diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..d6f2ca8 --- /dev/null +++ b/.env.example @@ -0,0 +1,12 @@ +# Tenant control-plane URL (no trailing path required) +ZEDCLOUD_BASE_URL=https://zedcontrol.zededa.net + +# Session / API token — sent as Authorization: Bearer +ZEDCLOUD_TOKEN= + +# Optional; Kubernetes/ZKS service also accepts X-API-KEY (defaults to ZEDCLOUD_TOKEN) +# ZEDCLOUD_API_KEY= + +# Optional tuning +# ZEDCLOUD_TIMEOUT=30 +# ZEDCLOUD_MAX_RETRIES=3 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..f9fdd25 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,40 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.10", "3.12"] + + steps: + - uses: actions/checkout@v4 + + - name: Install uv + uses: astral-sh/setup-uv@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Sync workspace + run: uv sync --all-packages --group dev + + - name: Verify OpenAPI codegen is current + run: | + uv run python scripts/generate_from_openapi.py + git diff --exit-code -- packages/zedcloud/src/zedcloud/_generated + + - name: Ruff + run: | + uv run ruff check packages scripts + uv run ruff format --check packages scripts + + - name: Unit tests + run: uv run pytest -q -m "not needs_cloud" + + - name: MCP tool list + run: uv run python -c "from zedcloud_mcp.server import list_tool_names; print(list_tool_names())" diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d767c86 --- /dev/null +++ b/.gitignore @@ -0,0 +1,33 @@ +# Byte-compiled / cache +__pycache__/ +*.py[cod] +*$py.class +*.egg-info/ +.eggs/ +dist/ +build/ +.pytest_cache/ +.ruff_cache/ +.mypy_cache/ +.coverage +htmlcov/ + +# Virtualenvs / uv +.venv/ +uv.lock.bak + +# Secrets & local env +.env +.env.* +!.env.example +*.pem +*.key + +# Editors / OS +.DS_Store +.idea/ +.vscode/ + +# Generated scratch +/tmp/ +*.oa3.json diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..e4fba21 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.12 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..ffc4bda --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 vignesh-zededa + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT ANY WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6b98a50 --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +.PHONY: generate install test lint mcp-list sync + +UV ?= uv + +sync: + $(UV) sync --all-packages --group dev + +generate: + $(UV) run python scripts/generate_from_openapi.py + +install: sync generate + +test: + $(UV) run pytest -q -m "not needs_cloud" + +lint: + $(UV) run ruff check packages scripts + $(UV) run ruff format --check packages scripts + +format: + $(UV) run ruff format packages scripts + $(UV) run ruff check --fix packages scripts + +mcp-list: + $(UV) run python -c "from zedcloud_mcp.server import list_tool_names; print('\n'.join(list_tool_names()))" diff --git a/README.md b/README.md index 1fb6ad2..8d886e4 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,177 @@ -# zedcloud-sdk -Python SDK, automation framework, and MCP server for ZEDEDA Zedcloud APIs +# Zedcloud Python SDK + +Typed Python client, pytest automation helpers, and MCP server for +[ZEDEDA Zedcloud](https://zededa.com/) control-plane APIs. + +OpenAPI specs are committed under [`openapi/`](openapi/) (mirrors of the +Swagger UI at `https://zedcontrol.zededa.net/api/v1/docs/`). + +## Packages + +| Package | Description | +|---------|-------------| +| [`zedcloud`](packages/zedcloud) | Typed sync SDK (`httpx` + Pydantic v2) | +| [`zedcloud-automation`](packages/zedcloud-automation) | Pytest fixtures, markers, resource cleanup | +| [`zedcloud-mcp`](packages/zedcloud-mcp) | MCP server (stdio) exposing high-value tools | + +## Requirements + +- Python 3.10+ +- [uv](https://docs.astral.sh/uv/) (recommended) or pip + +## Install + +```bash +# clone +git clone https://github.com/vignesh-zededa/zedcloud-sdk.git +cd zedcloud-sdk + +# workspace (SDK + automation + MCP + dev tools) +uv sync --all-packages --group dev + +# regenerate models/services from openapi/*.swagger.json +uv run python scripts/generate_from_openapi.py +# or: make generate +``` + +Editable install of just the SDK: + +```bash +uv pip install -e packages/zedcloud +# or: pip install -e packages/zedcloud +``` + +## Auth + +Copy [`.env.example`](.env.example) and export: + +```bash +export ZEDCLOUD_BASE_URL=https://zedcontrol.zededa.net +export ZEDCLOUD_TOKEN=YOUR_SESSION_TOKEN +# optional — Kubernetes/ZKS also sends X-API-KEY (defaults to the bearer token) +# export ZEDCLOUD_API_KEY=… +``` + +Most services use `Authorization: Bearer `. The Kubernetes / ZKS service +uses `ApiKeyAuth` (`X-API-KEY`); the client sends both headers for that namespace. + +## SDK quickstart + +```python +from zedcloud import ZedcloudClient +from zedcloud.pagination import collect_all + +with ZedcloudClient.from_env() as client: + apps = client.apps.query_edge_application_bundles(next_page_size=25, summary=True) + for app in apps.list_ or []: # OpenAPI field ``list`` is exposed as ``list_`` + print(app.id, app.name) + + nodes = collect_all(client.nodes.query_edge_nodes, page_size=50, summary=True) + print(f"{len(nodes)} nodes") + + # Kubernetes / ZKS (ApiKeyAuth) + clusters = client.k8s.list_zks_instances() +``` + +Service namespaces map to OpenAPI specs: + +`apps`, `nodes`, `networks`, `iam`, `k8s`, `storage`, `jobs`, `orchestration`, +`diag`, `app_profiles`, `node_clusters`. + +Methods are generated from swagger `operationId` values (snake_case). Each +method docstring includes the HTTP verb/path. + +## Codegen + +```bash +make generate +# equivalent: +uv run python scripts/generate_from_openapi.py +``` + +Pipeline: + +1. Convert each Swagger 2.0 `definitions` map → OpenAPI 3 `components/schemas` +2. Run `datamodel-code-generator` → Pydantic v2 models +3. Emit typed service wrappers under `zedcloud._generated.services` + +Do not hand-edit `_generated/`; change swagger or the generator script instead. + +## Automation + +```bash +# mocked / offline unit tests +uv run pytest -q -m "not needs_cloud" + +# live read-only smoke (requires credentials) +uv run pytest -q -m "smoke and needs_cloud" +``` + +Fixtures (`zedcloud_client`, `resource_tracker`) are registered via the +`zedcloud-automation` pytest plugin. + +## MCP server + +```bash +uv run zedcloud-mcp +``` + +Focused tools (not the full ~470 endpoints): nodes, apps, networks, ZKS/k8s, jobs. + +### Cursor + +Add to MCP settings (`.cursor/mcp.json` or Cursor Settings → MCP): + +```json +{ + "mcpServers": { + "zedcloud": { + "command": "uv", + "args": ["run", "--directory", "/absolute/path/to/zedcloud-sdk", "zedcloud-mcp"], + "env": { + "ZEDCLOUD_BASE_URL": "https://zedcontrol.zededa.net", + "ZEDCLOUD_TOKEN": "YOUR_SESSION_TOKEN" + } + } + } +} +``` + +### Claude Desktop + +```json +{ + "mcpServers": { + "zedcloud": { + "command": "uv", + "args": ["run", "--directory", "/absolute/path/to/zedcloud-sdk", "zedcloud-mcp"], + "env": { + "ZEDCLOUD_BASE_URL": "https://zedcontrol.zededa.net", + "ZEDCLOUD_TOKEN": "YOUR_SESSION_TOKEN" + } + } + } +} +``` + +List tools without starting a session: + +```bash +make mcp-list +``` + +## Development + +```bash +make sync # uv sync --all-packages --group dev +make generate # regenerate from openapi/ +make test # unit tests (skips needs_cloud) +make lint # ruff +``` + +CI (`.github/workflows/ci.yml`) runs lint, verifies codegen is clean, and executes +mocked unit tests on Python 3.10 and 3.12. + +## License + +MIT — see [LICENSE](LICENSE). diff --git a/docs/architecture.md b/docs/architecture.md new file mode 100644 index 0000000..1e80374 --- /dev/null +++ b/docs/architecture.md @@ -0,0 +1,38 @@ +# Architecture + +``` +openapi/*.swagger.json # committed Swagger 2.0 specs (11 services) + │ + ▼ +scripts/generate_from_openapi.py + │ + ├─► zedcloud._generated.models.* # Pydantic v2 models + └─► zedcloud._generated.services.* # typed method wrappers + │ + ▼ + ZedcloudClient + ├── apps / nodes / networks / … + └── k8s (ApiKeyAuth transport) + │ + ┌───────┴────────┐ + ▼ ▼ +zedcloud-automation zedcloud-mcp +(pytest fixtures) (stdio MCP tools) +``` + +## Auth + +| Mechanism | Header | Used by | +|-----------|--------|---------| +| BearerToken | `Authorization: Bearer ` | All services except Kubernetes | +| ApiKeyAuth | `X-API-KEY: ` | `zedge_kubernetes_service` | + +`ZedcloudClient` keeps two transports sharing one `httpx.Client`. The k8s +namespace sends both headers (API key defaults to the bearer token). + +## Pagination + +List endpoints commonly accept `next.pageToken`, `next.pageNum`, +`next.pageSize`, `next.totalPages` and return a `next` Cursor plus a `list` +array. Use `zedcloud.pagination.iter_pages` / `collect_all` with any generated +query method. diff --git a/docs/getting-started.md b/docs/getting-started.md new file mode 100644 index 0000000..7707e35 --- /dev/null +++ b/docs/getting-started.md @@ -0,0 +1,16 @@ +# Getting started + +1. Install [uv](https://docs.astral.sh/uv/). +2. `uv sync --all-packages --group dev` +3. `make generate` (if `_generated` is missing or specs changed) +4. Copy `.env.example` → export `ZEDCLOUD_BASE_URL` and `ZEDCLOUD_TOKEN` +5. Try: + +```python +from zedcloud import ZedcloudClient + +with ZedcloudClient.from_env() as c: + print(c.apps.query_edge_application_bundles(next_page_size=5, summary=True)) +``` + +See the root [README](../README.md) for MCP config and automation markers. diff --git a/openapi/zedge_app_profile_service.swagger.json b/openapi/zedge_app_profile_service.swagger.json new file mode 100644 index 0000000..62ea36c --- /dev/null +++ b/openapi/zedge_app_profile_service.swagger.json @@ -0,0 +1,4955 @@ +{ + "swagger": "2.0", + "info": { + "title": "ZEDEDA App Profiles Service", + "description": "The ZEDEDA App Profiles Service is part of ZEDEDA Edge Orchestration Platform. This service enables customers to define their app profiles on ZEDEDA platform and to manage them remotely.", + "termsOfService": "https://www.zededa.com/terms", + "version": "1.0", + "contact": { + "name": "ZEDEDA API Support", + "url": "https://www.zededa.com/support", + "email": "support@zededa.com" + }, + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.html" + } + }, + "tags": [ + { + "name": "AppProfileService" + }, + { + "name": "AssetGroupService" + }, + { + "name": "ProfileDeploymentService" + } + ], + "basePath": "/api", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/v1/appprofiles": { + "get": { + "summary": "Query app profiles", + "description": "Query the app profile records.", + "operationId": "AppProfileService_QueryAppProfiles", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AppProfiles" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "description": "summary flag", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "filter.namePattern", + "description": "app profile name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filter.id", + "description": "app profile id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "fields", + "description": "Fields to select: id, name, title, description", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "AppProfileService" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/app-profiles" + } + }, + "post": { + "summary": "Create app profile", + "description": "Create an app profile record.", + "operationId": "AppProfileService_CreateAppProfile", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this app profile record will conflict with an already existing app profile record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AppProfile" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "AppProfileService" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/app-profiles" + } + } + }, + "/v1/appprofiles/id/{id}": { + "get": { + "summary": "Get app profile", + "description": "Get the configuration (without security details) of an app profile record.", + "operationId": "AppProfileService_GetAppProfile", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AppProfileRead" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "Unique Id of the App profile", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "AppProfileService" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/app-profiles" + } + }, + "delete": { + "summary": "Delete app profile", + "description": "Delete an app profile record.", + "operationId": "AppProfileService_DeleteAppProfile", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because there are instances of this app profile deployed in edge node(s)", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "Unique Id of the App profile", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "AppProfileService" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/app-profiles" + } + }, + "put": { + "summary": "Update app profile", + "description": "Update an app profile record. The usual pattern to update an app profile record is to retrieve the record and update with the modified values in a new body to update the app profile record. Updating the app profile automatically creates a new version of the original app profile.", + "operationId": "AppProfileService_UpdateAppProfile", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing app profile record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "unique id for an App profile", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "user defined name for the App profile" + }, + "title": { + "type": "string", + "description": "user defined title for the app profile" + }, + "appPolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/ProfileAppPolicy" + }, + "description": "list of app instance policies" + }, + "networkPolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/ProfileNetworkPolicy" + }, + "description": "list of network instance policies" + }, + "volumePolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/ProfileVolumePolicy" + }, + "description": "list of volume instance policies" + }, + "latestVersion": { + "type": "integer", + "format": "int64", + "description": "latest version of app profile. Server-derived; value supplied in a create or update request is ignored" + }, + "status": { + "$ref": "#/definitions/AppProfileStatusType", + "description": "status of the app profile. Server-derived; value supplied in a create or update request is ignored" + } + } + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "AppProfileService" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/app-profiles" + } + } + }, + "/v1/appprofiles/id/{id}/version": { + "get": { + "summary": "Query app profile versions by app profile id", + "description": "Query the app profile version records using app profile id", + "operationId": "AppProfileService_QueryAppProfileRevisionById", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AppProfileVersionListResp" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "unique id for an App profile", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "name", + "description": "user defined name for the App profile", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "AppProfileService" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/app-profiles" + } + } + }, + "/v1/appprofiles/name/{name}": { + "get": { + "summary": "Get app profile by name", + "description": "Get the configuration (without security details) of an app profile record by name.", + "operationId": "AppProfileService_GetAppProfileByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AppProfileRead" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "User defined name of the app profile, unique across the enterprise. Once app profile is created, name can\u2019t be changed", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "AppProfileService" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/app-profiles" + } + } + }, + "/v1/appprofiles/name/{name}/version": { + "get": { + "summary": "Query app profile versions by app profile name", + "description": "Query the app profile version records using app profile name", + "operationId": "AppProfileService_QueryAppProfileRevisionByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AppProfileVersionListResp" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "user defined name for the App profile", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "id", + "description": "unique id for an App profile", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "AppProfileService" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/app-profiles" + } + } + }, + "/v1/assetgroups": { + "get": { + "summary": "Query asset groups", + "description": "Query the asset group records.", + "operationId": "AssetGroupService_QueryAssetGroups", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AssetGroupList" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "projectNamePattern", + "description": "project name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "namePattern", + "description": "asset group name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "summary", + "description": "Only summary of the records required", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "AssetGroupService" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/assetgroups" + } + }, + "post": { + "summary": "Create asset group", + "description": "Create a asset group record. An assetGroup is a subset of entities in a project identified by assetIds", + "operationId": "AssetGroupService_CreateAssetGroup", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this asset group record will conflict with an already existing asset group record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AssetGroup" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "AssetGroupService" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/assetgroups" + } + } + }, + "/v1/assetgroups/id/{id}": { + "get": { + "summary": "Get asset group", + "description": "Get the configuration (without security details) of a asset group record.", + "operationId": "AssetGroupService_GetAssetGroup", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AssetGroupRead" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "unique Id of the asset group", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "AssetGroupService" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/assetgroups" + } + }, + "delete": { + "summary": "Delete asset group", + "description": "Delete a asset group record.", + "operationId": "AssetGroupService_DeleteAssetGroup", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because there are instances of this asset group deployed in edge node(s)", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "unique Id of the asset group", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "AssetGroupService" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/assetgroups" + } + }, + "put": { + "summary": "Update asset group", + "description": "Update a asset group record. The usual pattern to update a asset group record is to retrieve the record and update with the modified values in a new body to update the asset group record. If the asset group has a profile deployment associated with it, the newly added assets will automatically be applied with the corresponding app profile. Similarly if the assets are removed from this asset group, corresponding policies will be removed from these assets.", + "operationId": "AssetGroupService_UpdateAssetGroup", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing asset group record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "unique Id of the asset group.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "User defined name of the asset group, unique across the enterprise. Once asset group is created, name can\u2019t be changed.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the asset group. Title can be changed at any time.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+" + }, + "description": { + "type": "string", + "description": "Detailed description of the asset group.", + "maxLength": 256 + }, + "projectId": { + "type": "string", + "description": "project id" + }, + "assetIds": { + "$ref": "#/definitions/AssetIDs" + }, + "assetTags": { + "$ref": "#/definitions/AssetTags" + } + }, + "description": "Assetgroups is a proto that should be used by user-agents to create/update asset groups to group various assets like devices", + "title": "Asset groups", + "required": [ + "name" + ] + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "AssetGroupService" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/assetgroups" + } + } + }, + "/v1/assetgroups/name/{name}": { + "get": { + "summary": "Get asset group by name", + "description": "Get the configuration (without security details) of a asset group record by name.", + "operationId": "AssetGroupService_GetAssetGroupByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AssetGroupRead" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "User defined name of the asset group, unique across the enterprise. Once object is created, name can\u2019t be changed", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "AssetGroupService" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/assetgroups" + } + } + }, + "/v1/profiledeployments": { + "get": { + "summary": "Query profile deployments", + "description": "Query the profile deployment records.", + "operationId": "ProfileDeploymentService_QueryProfileDeployments", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ProfileDeploymentList" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "filter.profileDeploymentId", + "description": "Unique id of the asset, unique across the enterprise.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filter.namePattern", + "description": "deployment name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ProfileDeploymentService" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/profiledeployments" + } + }, + "post": { + "summary": "Create profile deployment", + "description": "Create a profile deployment record. When an assetgroup is associated with the app profiles via profile deployments, the policies will be applied onto the assets present in that group.", + "operationId": "ProfileDeploymentService_CreateProfileDeployment", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this profile deployment record will conflict with an already existing profile deployment record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ProfileDeployment" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ProfileDeploymentService" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/profiledeployments" + } + } + }, + "/v1/profiledeployments/id/{id}": { + "get": { + "summary": "Get profile deployment", + "description": "Get the configuration (without security details) of a profile deployment record.", + "operationId": "ProfileDeploymentService_GetProfileDeployment", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ProfileDeployment" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "unique Id of the deployment", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ProfileDeploymentService" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/profiledeployments" + } + }, + "delete": { + "summary": "Delete profile deployment", + "description": "Delete a profile deployment record.", + "operationId": "ProfileDeploymentService_DeleteProfileDeployment", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because there are instances of this profile deployment deployed in edge node(s)", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "unique Id of the deployment", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ProfileDeploymentService" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/profiledeployments" + } + }, + "put": { + "summary": "Update profile deployment", + "description": "Update a profile deployment record. The usual pattern to update a profile deployment record is to retrieve the record and update with the modified values in a new body to update the profile deployment record.", + "operationId": "ProfileDeploymentService_UpdateProfileDeployment", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing profile deployment record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "unique Id of the deployment.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "User defined name of the deployment, unique across the enterprise. Once deployment is created, name can\u2019t be changed.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the deployment. Title can be changed at any time.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+" + }, + "description": { + "type": "string", + "description": "Detailed description of the deployment.", + "maxLength": 256 + }, + "projectId": { + "type": "string", + "description": "project id" + }, + "appProfileInfo": { + "$ref": "#/definitions/AppProfileInfo", + "description": "app profile id" + }, + "targetAssetGroup": { + "$ref": "#/definitions/TargetAssetGroup", + "description": "asset group info" + }, + "status": { + "type": "string" + } + }, + "description": "Profile Deployment is a proto that should be used by user-agents to create/update deployments", + "title": "Deployments for Application profile", + "required": [ + "name", + "appProfileInfo", + "projectId", + "targetAssetGroup" + ] + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ProfileDeploymentService" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/profiledeployments" + } + } + }, + "/v1/profiledeployments/id/{id}/resourcestatus": { + "get": { + "summary": "Query profile deployments resource status", + "description": "Query the profile deployment resourcs status.", + "operationId": "ProfileDeploymentService_QueryProfileDeploymentResourceStatus", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ProfileDeploymentResourceDetailedStatusResp" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "unique Id of the deployment.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ProfileDeploymentService" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/profiledeployments" + } + } + }, + "/v1/profiledeployments/name/{name}": { + "get": { + "summary": "Get profile deployment by name", + "description": "Get the configuration (without security details) of a profile deployment record by name.", + "operationId": "ProfileDeploymentService_GetProfileDeploymentByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ProfileDeployment" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "User defined name of the deployment, unique across the enterprise. Once object is created, name can\u2019t be changed", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ProfileDeploymentService" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/profiledeployments" + } + } + } + }, + "definitions": { + "Acl": { + "type": "object", + "properties": { + "matches": { + "type": "array", + "items": { + "$ref": "#/definitions/Match" + }, + "description": "Network traffic matching criteria consistngs of one or more of source IP address, destination IP address, protocol, source port and destination port" + }, + "actions": { + "type": "array", + "items": { + "$ref": "#/definitions/AclAction" + }, + "description": "Chain of actions to be taken on matching network traffic" + }, + "name": { + "type": "string", + "description": "Name of the Access Control List" + } + } + }, + "AclAction": { + "type": "object", + "properties": { + "drop": { + "type": "boolean", + "description": "Drop the packet", + "title": "Not used by ZedUI" + }, + "limit": { + "type": "boolean", + "description": "UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + "title": "Limit action on ACL rule" + }, + "limitValue": { + "$ref": "#/definitions/LimitParams", + "description": "Value to be used for limit action (Required if limit is true)", + "title": "only valid if limit flag is set, see below.\nNot used by ZedUI" + }, + "limitrate": { + "type": "integer", + "format": "int64", + "description": "UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + "title": "Rate limit in ACL rule" + }, + "limitunit": { + "type": "string", + "description": "UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + "title": "Rate limit unit in ACL rule" + }, + "limitburst": { + "type": "integer", + "format": "int64", + "description": "UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + "title": "Rate limit burst in ACL rule" + }, + "portmap": { + "type": "boolean", + "description": "UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + "title": "Enable device to app port mapping for incoming ACL rule, implicitly added by ZedUI code" + }, + "portmapto": { + "$ref": "#/definitions/MapParams", + "description": "UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + "title": "Device to app port mapping for incoming ACL rule" + } + } + }, + "AppCategory": { + "type": "string", + "enum": [ + "APP_CATEGORY_UNSPECIFIED", + "APP_CATEGORY_OPERATING_SYSTEM", + "APP_CATEGORY_INDUSTRIAL", + "APP_CATEGORY_EDGE_APPLICATION", + "APP_CATEGORY_NETWORKING", + "APP_CATEGORY_SECURITY", + "APP_CATEGORY_DATA_ANALYTICS", + "APP_CATEGORY_CLOUD_APPLICATION", + "APP_CATEGORY_DEVOPS", + "APP_CATEGORY_OTHERS" + ], + "default": "APP_CATEGORY_UNSPECIFIED", + "description": "- APP_CATEGORY_UNSPECIFIED: Invalid Edge Application Category\n - APP_CATEGORY_OPERATING_SYSTEM: Edge operating systems\n - APP_CATEGORY_INDUSTRIAL: Connectity solution for industrial protocols\n - APP_CATEGORY_EDGE_APPLICATION: Edge application framework featuring composite functions for data ingestion, buffering, analytics and export\n - APP_CATEGORY_NETWORKING: Edge networking services (e.g. SD-WAN, NFV)\n - APP_CATEGORY_SECURITY: Edge security services (e.g. protocol inspection, firewall)\n - APP_CATEGORY_DATA_ANALYTICS: Edge analytics (e.g. AI/ML) and data management (e.g. database, connectors) services\n - APP_CATEGORY_CLOUD_APPLICATION: Edge application runtimes, cloud connectivity and general application enablement\n - APP_CATEGORY_DEVOPS: Tools for Edge Application CI/CD and performance optimization\n - APP_CATEGORY_OTHERS: Miscellaneous functionality", + "title": "Edge Application Category" + }, + "AppInstanceLogs": { + "type": "object", + "properties": { + "access": { + "type": "boolean", + "description": "Flags to enable / disable sending of logs generated by app instance to zedcloud" + } + }, + "description": "App Instance Logs configuration", + "title": "App Instance Logs configuration", + "required": [ + "access" + ] + }, + "AppProfile": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "unique id for an App profile" + }, + "name": { + "type": "string", + "description": "user defined name for the App profile" + }, + "title": { + "type": "string", + "description": "user defined title for the app profile" + }, + "appPolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/ProfileAppPolicy" + }, + "description": "list of app instance policies" + }, + "networkPolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/ProfileNetworkPolicy" + }, + "description": "list of network instance policies" + }, + "volumePolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/ProfileVolumePolicy" + }, + "description": "list of volume instance policies" + }, + "latestVersion": { + "type": "integer", + "format": "int64", + "description": "latest version of app profile. Server-derived; value supplied in a create or update request is ignored" + }, + "status": { + "$ref": "#/definitions/AppProfileStatusType", + "description": "status of the app profile. Server-derived; value supplied in a create or update request is ignored" + } + } + }, + "AppProfileConfigSummary": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "unique id for app profile" + }, + "name": { + "type": "string", + "description": "user defined app profile name" + }, + "title": { + "type": "string", + "description": "user defined app profile title" + }, + "description": { + "type": "string", + "description": "Detailed description of the app profile.", + "maxLength": 256 + }, + "appPolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/ProfileAppPolicy" + }, + "description": "list of app instance policies" + }, + "networkPolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/ProfileNetworkPolicy" + }, + "description": "list of network instance policies" + }, + "volumePolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/ProfileVolumePolicy" + }, + "description": "list of volume instance policies" + } + } + }, + "AppProfileFilter": { + "type": "object", + "properties": { + "namePattern": { + "type": "string", + "description": "app profile name pattern" + }, + "id": { + "type": "string", + "description": "app profile id" + } + } + }, + "AppProfileInfo": { + "type": "object", + "properties": { + "appProfileId": { + "type": "string", + "description": "Unique ID of the asset group.", + "readOnly": true, + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", + "uniqueItems": true + }, + "version": { + "type": "integer", + "format": "int64" + } + } + }, + "AppProfileRead": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "unique id for an App profile" + }, + "name": { + "type": "string", + "description": "user defined name for the App profile" + }, + "title": { + "type": "string", + "description": "user defined title for the app profile" + }, + "appPolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/ProfileAppPolicy" + }, + "description": "list of app instance policies" + }, + "networkPolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/ProfileNetworkPolicy" + }, + "description": "list of network instance policies" + }, + "volumePolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/ProfileVolumePolicy" + }, + "description": "list of volume instance policies" + }, + "latestVersion": { + "type": "integer", + "format": "int64", + "description": "latest version of app profile" + }, + "status": { + "$ref": "#/definitions/AppProfileStatusType", + "description": "status of the app profile" + } + } + }, + "AppProfileStatusType": { + "type": "string", + "enum": [ + "APP_PROFILE_STATUS_TYPE_INACTIVE", + "APP_PROFILE_STATUS_TYPE_ACTIVE" + ], + "default": "APP_PROFILE_STATUS_TYPE_INACTIVE" + }, + "AppProfileVersion": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "unique id for an App profile" + }, + "name": { + "type": "string", + "description": "user defined name for the App profile" + }, + "title": { + "type": "string", + "description": "user defined title for the app profile" + }, + "appPolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/ProfileAppPolicy" + }, + "description": "list of app instance policies" + }, + "networkPolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/ProfileNetworkPolicy" + }, + "description": "list of network instance policies" + }, + "volumePolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/ProfileVolumePolicy" + }, + "description": "list of volume instance policies" + }, + "version": { + "type": "integer", + "format": "int64", + "description": "latest version of app profile" + } + } + }, + "AppProfileVersionListResp": { + "type": "object", + "properties": { + "versionList": { + "type": "array", + "items": { + "$ref": "#/definitions/AppProfileVersion" + }, + "description": "App profile version list response" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "cursor next" + } + } + }, + "AppProfiles": { + "type": "object", + "properties": { + "summaryByState": { + "$ref": "#/definitions/Summary", + "description": "app profile by summary" + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/AppProfileConfigSummary" + }, + "description": "App profile summary list response" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "cursor next" + } + } + }, + "AppType": { + "type": "string", + "enum": [ + "APP_TYPE_UNSPECIFIED", + "APP_TYPE_VM", + "APP_TYPE_VM_RUNTIME", + "APP_TYPE_CONTAINER", + "APP_TYPE_MODULE", + "APP_TYPE_DOCKER_COMPOSE" + ], + "default": "APP_TYPE_UNSPECIFIED", + "description": "type of app bundle." + }, + "AssetGroup": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "unique Id of the asset group.", + "readOnly": true, + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the asset group, unique across the enterprise. Once asset group is created, name can\u2019t be changed.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the asset group. Title can be changed at any time.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+" + }, + "description": { + "type": "string", + "description": "Detailed description of the asset group.", + "maxLength": 256 + }, + "projectId": { + "type": "string", + "description": "project id" + }, + "assetIds": { + "$ref": "#/definitions/AssetIDs" + }, + "assetTags": { + "$ref": "#/definitions/AssetTags" + } + }, + "description": "Assetgroups is a proto that should be used by user-agents to create/update asset groups to group various assets like devices", + "title": "Asset groups", + "required": [ + "name" + ] + }, + "AssetGroupList": { + "type": "object", + "properties": { + "next": { + "$ref": "#/definitions/Cursor", + "description": "cursor next" + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/AssetGroup" + }, + "description": "asset group summary list" + }, + "totalCount": { + "type": "integer", + "format": "int64", + "description": "asset group total count" + } + } + }, + "AssetGroupRead": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "unique Id of the asset group.", + "readOnly": true, + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the asset group, unique across the enterprise. Once asset group is created, name can\u2019t be changed.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the asset group. Title can be changed at any time.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+" + }, + "description": { + "type": "string", + "description": "Detailed description of the asset group.", + "maxLength": 256 + }, + "projectId": { + "type": "string", + "description": "project id" + }, + "assetIds": { + "$ref": "#/definitions/AssetIDs" + }, + "assetTags": { + "$ref": "#/definitions/AssetTags" + }, + "assetCount": { + "type": "integer", + "format": "int64" + } + }, + "title": "AssetGroupRead - refers to the response object for reading a asset group" + }, + "AssetIDs": { + "type": "object", + "properties": { + "ids": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "title": "AssetIDs - represents a list of asset IDs" + }, + "AssetTag": { + "type": "object", + "properties": { + "tag": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + } + } + }, + "AssetTags": { + "type": "object", + "properties": { + "assetTag": { + "type": "array", + "items": { + "$ref": "#/definitions/AssetTag" + } + } + } + }, + "Author": { + "type": "object", + "properties": { + "user": { + "type": "string", + "description": "UI map: AppEditPage:DeveloperPane:Name_Field, AppDetailsPage:DeveloperPane:Name_Field", + "title": "Name of the developer" + }, + "group": { + "type": "string", + "title": "Not used by ZedUI" + }, + "company": { + "type": "string", + "description": "UI map: AppEditPage:IdentityPane:Category_Field, AppDetailsPage:IdentityPane:Category_Field", + "title": "Company of the developer" + }, + "website": { + "type": "string", + "description": "UI map: AppEditPage:DeveloperPane:Website_Field, AppDetailsPage:DeveloperPane:Website_Field", + "title": "Website of the developer company" + }, + "email": { + "type": "string", + "description": "UI map: AppEditPage:DeveloperPane:Email_Field, AppDetailsPage:DeveloperPane:Email_Field", + "title": "Contact email of the developer company" + } + } + }, + "ContainerDetail": { + "type": "object", + "properties": { + "containerCreateOption": { + "type": "string", + "description": "Create options direct the creation of the Docker container", + "title": "Base64 encoded container specific details" + } + }, + "description": "common container detail." + }, + "Cursor": { + "type": "object", + "properties": { + "pageToken": { + "type": "string", + "description": "Page Token" + }, + "orderBy": { + "type": "array", + "items": { + "type": "string" + }, + "description": "OrderBy helps in sorting the list response" + }, + "pageNum": { + "type": "number", + "format": "int64", + "description": "Page Number" + }, + "pageSize": { + "type": "number", + "format": "int64", + "description": "Defines the page size" + }, + "totalPages": { + "type": "number", + "format": "int64", + "description": "Total number of pages to be fetched." + } + }, + "description": "Cursor helps in filtering the various list response like edge-app bundle list, model list, bundle list etc. ", + "title": "Cursor is used as filter in list operation." + }, + "CustomConfig": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of CustomConfig (Required)" + }, + "add": { + "type": "boolean", + "description": "Add the Custom Config to App Instance (Optional. Default: False)" + }, + "override": { + "type": "boolean", + "description": "Override existing custom config from App Bundle Manifest (Optional. Default: False)" + }, + "allowStorageResize": { + "type": "boolean", + "description": "Allow Appinstance storage to be resized after app instance is created. (Optional. Default: False)" + }, + "fieldDelimiter": { + "type": "string", + "description": "Field delimiter used in specifying variables in template. (Required)" + }, + "template": { + "type": "string", + "description": "base64 encrypted template string. (Optional)" + }, + "variableGroups": { + "type": "array", + "items": { + "$ref": "#/definitions/CustomConfigVariableGroup" + }, + "description": "List of Variable groups. (Required)" + } + } + }, + "CustomConfigVariableGroup": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the Variable Group(Required)" + }, + "variables": { + "type": "array", + "items": { + "$ref": "#/definitions/VariableGroupVariable" + }, + "description": "List of variables(Required)" + }, + "required": { + "type": "boolean", + "description": "Indicates if the variable group is required to be specified for the App Instance. (Optional. Default:False)" + }, + "condition": { + "$ref": "#/definitions/VariableGroupCondition", + "description": "Condition to apply the variable group. (Optional. Default: None)" + } + } + }, + "DeploymentType": { + "type": "string", + "enum": [ + "DEPLOYMENT_TYPE_UNSPECIFIED", + "DEPLOYMENT_TYPE_STAND_ALONE", + "DEPLOYMENT_TYPE_AZURE", + "DEPLOYMENT_TYPE_K3S", + "DEPLOYMENT_TYPE_AWS", + "DEPLOYMENT_TYPE_K3S_AZURE", + "DEPLOYMENT_TYPE_K3S_AWS", + "DEPLOYMENT_TYPE_VMWARE_VCE", + "DEPLOYMENT_TYPE_VMWARE_TKG_ATTACH", + "DEPLOYMENT_TYPE_DOCKER_RUNTIME" + ], + "default": "DEPLOYMENT_TYPE_UNSPECIFIED" + }, + "Details": { + "type": "object", + "example": { + "appCategory": "APP_CATEGORY_CLOUD_APPLICATION", + "os": "Linux" + }, + "properties": { + "category": { + "type": "string", + "default": "All", + "description": "UI map: AppMarketplacePage:AppCard:DescriptionField, AppEditPage:IdentityPane:CategoryField, AppDetailsPage:IdentityPane:CategoryField", + "title": "Type of the Edge application" + }, + "os": { + "type": "string", + "title": "Edge application's Operating System" + }, + "appCategory": { + "$ref": "#/definitions/AppCategory", + "default": "APP_CATEGORY_OTHERS", + "title": "Edge application category" + }, + "logo": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "UI map: AppEditPage:IdentityPane:Logo, AppDetailsPage:IdentityPane:Logo", + "title": "App Logo" + }, + "screenshotList": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "UI map: AppEditPage:IdentityPane:Screenshot_Fields, AppDetailsPage:IdentityPane:Screenshot_Fields", + "title": "App Screenshots" + }, + "licenseList": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "UI map: AppMarketplacePage:AppCard:License, AppEditPage:IdentityPane:License, AppDetailsPage:IdentityPane:License", + "title": "App Licenses" + }, + "support": { + "type": "string", + "description": "UI map: AppEditPage:DeveloperPane:Support_Description_Field, AppDetailsPage:DeveloperPane:Support_Description_Field", + "title": "Support Description" + }, + "agreementList": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "UI map: AppEditPage:DeveloperPane:Developer_Agreement_Field, AppDetailsPage:DeveloperPane:Developer_Agreement_Field", + "title": "Developer Agreements" + } + }, + "description": "Edge Application Artifact Details", + "title": "Edge Application detail", + "required": [ + "appCategory" + ] + }, + "DhcpServerConfig": { + "type": "object", + "properties": { + "subnet": { + "type": "string", + "description": "Subnet address" + }, + "mask": { + "type": "string", + "description": "Subnet Mask" + }, + "gateway": { + "type": "string", + "description": "IP Address of Network Gateway" + }, + "domain": { + "type": "string", + "description": "Network domain" + }, + "ntp": { + "type": "string", + "description": "IP Address of NTP Server", + "title": "ntp will be deprecated" + }, + "dns": { + "type": "array", + "items": { + "type": "string" + }, + "description": "IP Addresses of DNS servers", + "title": "possible DNS ip address" + }, + "dhcpRange": { + "$ref": "#/definitions/dhcpIpRange", + "description": "Range of IP addresses to be used for DHCP" + }, + "ntpServers": { + "type": "array", + "items": { + "$ref": "#/definitions/NtpServer" + }, + "description": "NTP Servers" + } + } + }, + "DockerRuntimeProtocolVersion": { + "type": "string", + "enum": [ + "RuntimeProtocolVersion_Unknown", + "RuntimeProtocolVersion_V1" + ], + "default": "RuntimeProtocolVersion_Unknown" + }, + "DockerRuntimeVersion": { + "type": "string", + "enum": [ + "RuntimeVersion_Unknown", + "RuntimeVersion_V1" + ], + "default": "RuntimeVersion_Unknown" + }, + "EIDRegister": { + "type": "object", + "properties": { + "AppCert": { + "type": "string", + "format": "byte", + "description": "app certificate" + }, + "AppPublicKey": { + "type": "string", + "format": "byte", + "description": "App public key" + }, + "AppPrivateKey": { + "type": "string", + "format": "byte", + "description": "App private key" + }, + "UUID": { + "type": "string", + "description": "UUID" + }, + "DisplayName": { + "type": "string", + "description": "Display name" + }, + "LispInstance": { + "type": "number", + "format": "int64", + "description": "Lisp Instance" + }, + "EID": { + "type": "string", + "description": "EID" + }, + "EIDHashLen": { + "type": "number", + "format": "int64", + "description": "EID hash length" + }, + "LispSignature": { + "type": "string", + "description": "Lisp Signature" + }, + "LispMapServers": { + "type": "array", + "items": { + "$ref": "#/definitions/LispServer" + }, + "description": "Lisp Map Server", + "title": "time CreateTime time.Time" + } + }, + "description": "EID Register", + "title": "EID Register detail", + "required": [ + "AppCert", + "AppPublicKey", + "AppPrivateKey", + "UUID", + "DisplayName", + "LispInstance", + "EID", + "EIDHashLen", + "LispSignature", + "LispMapServers" + ] + }, + "ImageDatastore": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Datastore ID" + }, + "name": { + "type": "string", + "description": "Datastore Name" + } + } + }, + "Interface": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Interface name used by the edge application" + }, + "type": { + "type": "string", + "description": "Physical Adapter type for this interface. Applicable only when \"direct attach\" flag is true." + }, + "optional": { + "type": "boolean", + "description": "Indicates if the interface is optional for edge application." + }, + "directattach": { + "type": "boolean", + "description": "If true, a physical adapter is assigned to the edge application directly. If false, a network instance is assigned to the edge application." + }, + "privateip": { + "type": "boolean", + "description": "If true, DHCP network can't be assigned and user needs to provide a static IP address." + }, + "acls": { + "type": "array", + "items": { + "$ref": "#/definitions/Acl" + }, + "description": "Traffic access control rules for this interface. Applicable only when \"direct attach\" flag is false." + } + } + }, + "IoType": { + "type": "string", + "enum": [ + "IO_TYPE_UNSPECIFIED", + "IO_TYPE_ETH", + "IO_TYPE_USB", + "IO_TYPE_COM", + "IO_TYPE_AUDIO", + "IO_TYPE_WLAN", + "IO_TYPE_WWAN", + "IO_TYPE_HDMI", + "IO_TYPE_LTE", + "IO_TYPE_STORAGE_NVME_DEVICE", + "IO_TYPE_STORAGE_SATA_DEVICE", + "IO_TYPE_ETH_PF", + "IO_TYPE_ETH_VF", + "IO_TYPE_USB_CONTROLLER", + "IO_TYPE_USB_DEVICE", + "IO_TYPE_CAN", + "IO_TYPE_VCAN", + "IO_TYPE_LCAN", + "IO_TYPE_VLAN", + "IO_TYPE_OTHER" + ], + "default": "IO_TYPE_UNSPECIFIED", + "description": "- IO_TYPE_UNSPECIFIED: No operation/ Invalid peration\n - IO_TYPE_ETH: Ethernet\n - IO_TYPE_USB: USB Type - General\n - IO_TYPE_COM: Communication Port\n - IO_TYPE_AUDIO: Audio Port\n - IO_TYPE_WLAN: wireless LAN\n - IO_TYPE_WWAN: Wireless wide area network\n - IO_TYPE_HDMI: High-Definition Multimedia Interface\n - IO_TYPE_LTE: LTE Interfaces\n - IO_TYPE_STORAGE_NVME_DEVICE: Storage NVME device\n - IO_TYPE_STORAGE_SATA_DEVICE: Storage SATA device\n - IO_TYPE_ETH_PF: Physical Interface (PF) of the Virtual Functions\n - IO_TYPE_ETH_VF: Virtual Function (VF)\n - IO_TYPE_USB_CONTROLLER: USB Type - Controller\n - IO_TYPE_USB_DEVICE: USB Type - Device\n - IO_TYPE_CAN: CAN - Device\n - IO_TYPE_VCAN: VCAN - Virtual CAN device\n - IO_TYPE_LCAN: LCAN - Logical CAN device\n - IO_TYPE_VLAN: VLAN - Virtual LAN device\n - IO_TYPE_OTHER: Other Io Types", + "title": "Input/Output Type" + }, + "LimitParams": { + "type": "object", + "properties": { + "limitrate": { + "type": "integer", + "format": "int64", + "description": "UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + "title": "Rate limit in ACL rule" + }, + "limitunit": { + "type": "string", + "description": "UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + "title": "Rate limit unit in ACL rule" + }, + "limitburst": { + "type": "integer", + "format": "int64", + "description": "UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + "title": "Rate limit burst in ACL rule" + } + } + }, + "LispConfig": { + "type": "object", + "properties": { + "lispiid": { + "type": "number", + "format": "int64", + "description": "lisp id" + }, + "allocate": { + "type": "boolean", + "description": "Allocate flag" + }, + "exportprivate": { + "type": "boolean", + "description": "Export Private flag" + }, + "allocationprefix": { + "type": "string", + "format": "byte", + "description": "Allocation Prefix" + }, + "allocationprefixlen": { + "type": "number", + "format": "int64", + "description": "Allocation Prefix Length" + }, + "sp": { + "type": "array", + "items": { + "$ref": "#/definitions/ServicePoint" + }, + "description": "Service Point List" + } + }, + "description": "List Configurations.", + "title": "Lisp Configurations" + }, + "LispServer": { + "type": "object", + "properties": { + "nameOrIp": { + "type": "string", + "description": "name/IP" + }, + "credential": { + "type": "string", + "description": "lisp credential" + } + }, + "description": "LispServer request payload", + "title": "LispServer payload detail", + "required": [ + "nameOrIp", + "credential" + ] + }, + "MapParams": { + "type": "object", + "properties": { + "appPort": { + "type": "integer", + "format": "int64", + "description": "Application Port value" + } + } + }, + "Match": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Type of Match (Required)", + "title": "enum: host, protocol, adapter\nAt the device level it will pick right interface to apply this match" + }, + "value": { + "type": "string", + "description": "Value of match (Required)" + } + } + }, + "ModuleDetail": { + "type": "object", + "example": { + "twinDetail": "IHsKICAgICAgIm5hbWUiOiAiU2VuZEludGVydmFsIiwKICAgICAgInZhbHVlIjogIjUiCiAgICB9" + }, + "properties": { + "twinDetail": { + "type": "string", + "description": "Base64 encoded module twin details, desired properties of the module will be updated to reflect these values" + }, + "routes": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Send messages between modules or send messages from modules to iot hub" + }, + "environment": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Extra information to module to make configuration easier" + }, + "moduleType": { + "$ref": "#/definitions/ModuleType", + "description": "Type of modules" + } + }, + "description": "Azure module specific details", + "title": "Module detail" + }, + "ModuleType": { + "type": "string", + "enum": [ + "MODULE_TYPE_UNSPECIFIED", + "MODULE_TYPE_SYSTEM_DEFINED", + "MODULE_TYPE_CUSTOM", + "MODULE_TYPE_AZURE_EDGE_AGENT", + "MODULE_TYPE_AZURE_EDGE_HUB" + ], + "default": "MODULE_TYPE_UNSPECIFIED", + "description": "module type." + }, + "NetInstOpaqueConfig": { + "type": "object", + "properties": { + "type": { + "type": "string", + "$ref": "#/definitions/OpaqueConfigType", + "description": "type of Opaque config" + }, + "oconfig": { + "type": "string", + "description": "base64 encoded string of opaque config" + }, + "lisp": { + "type": "string", + "$ref": "#/definitions/LispConfig", + "description": "Deprecated - Lisp config", + "title": "lisp - Deprecated" + } + }, + "description": "Network Instance Opaque config. This is service specific configuration." + }, + "NetworkInstanceDhcpType": { + "type": "string", + "enum": [ + "NETWORK_INSTANCE_DHCP_TYPE_UNSPECIFIED", + "NETWORK_INSTANCE_DHCP_TYPE_V4", + "NETWORK_INSTANCE_DHCP_TYPE_V6", + "NETWORK_INSTANCE_DHCP_TYPE_CRYPTOEID", + "NETWORK_INSTANCE_DHCP_TYPE_CRYPTOV4", + "NETWORK_INSTANCE_DHCP_TYPE_CRYPTOV6" + ], + "default": "NETWORK_INSTANCE_DHCP_TYPE_UNSPECIFIED", + "title": "NetworkInstanceDhcpType: Used in the network instance provide\n dhcp server configuration" + }, + "NetworkInstanceKind": { + "type": "string", + "enum": [ + "NETWORK_INSTANCE_KIND_UNSPECIFIED", + "NETWORK_INSTANCE_KIND_TRANSPARENT", + "NETWORK_INSTANCE_KIND_SWITCH", + "NETWORK_INSTANCE_KIND_LOCAL", + "NETWORK_INSTANCE_KIND_CLOUD", + "NETWORK_INSTANCE_KIND_MESH", + "NETWORK_INSTANCE_KIND_HONEYPOT" + ], + "default": "NETWORK_INSTANCE_KIND_UNSPECIFIED" + }, + "NtpServer": { + "type": "object", + "properties": { + "server": { + "type": "string", + "description": "NTP Server IP or FQDN" + } + }, + "description": "NTP Server", + "title": "NTP Server" + }, + "ObjectType": { + "type": "string", + "enum": [ + "OBJECT_TYPE_UNSPECIFIED", + "OBJECT_TYPE_USER", + "OBJECT_TYPE_EDGE_NODE", + "OBJECT_TYPE_EDGE_APP", + "OBJECT_TYPE_IMAGE", + "OBJECT_TYPE_EDGE_APP_INSTANCE", + "OBJECT_TYPE_PROJECT", + "OBJECT_TYPE_NETWORK", + "OBJECT_TYPE_DATASTORE", + "OBJECT_TYPE_SERVICE", + "OBJECT_TYPE_SERVICE_INSTANCE", + "OBJECT_TYPE_ENTERPRISE", + "OBJECT_TYPE_ROLE", + "OBJECT_TYPE_CREDENTIAL", + "OBJECT_TYPE_NETWORK_INSTANCE", + "OBJECT_TYPE_VOLUME_INSTANCE", + "OBJECT_TYPE_REALM", + "OBJECT_TYPE_AUTHPROFILE", + "OBJECT_TYPE_POLICY", + "OBJECT_TYPE_APP_POLICY", + "OBJECT_TYPE_CLUSTER_INSTANCE", + "OBJECT_TYPE_PLUGIN", + "OBJECT_TYPE_DOC_POLICY", + "OBJECT_TYPE_ORCHESTRATOR_CLUSTER", + "OBJECT_TYPE_TAGS", + "OBJECT_TYPE_EDGE_NODE_INTERFACE", + "OBJECT_TYPE_DEPLOYMENT", + "OBJECT_TYPE_ENTITLEMENTS", + "OBJECT_TYPE_DATA_STREAM", + "OBJECT_TYPE_API_USAGE", + "OBJECT_TYPE_APP_INSTANCE_SNAPSHOT", + "OBJECT_TYPE_PATCH_ENVELOPE", + "OBJECT_TYPE_RESOURCE_USAGE_TRACK", + "OBJECT_TYPE_PATCH_ENVELOPE_REFERENCE", + "OBJECT_TYPE_DEV_PASSTHROUGH", + "OBJECT_TYPE_EDGE_NODE_CLUSTER", + "OBJECT_TYPE_ASSET_GROUP", + "OBJECT_TYPE_APP_PROFILE", + "OBJECT_TYPE_PROFILE_DEPLOYMENT", + "OBJECT_TYPE_ZKS_INSTANCE", + "OBJECT_TYPE_CLUSTER_GROUP" + ], + "default": "OBJECT_TYPE_UNSPECIFIED" + }, + "OpaqueConfigType": { + "type": "string", + "enum": [ + "OPAQUE_CONFIG_TYPE_UNSPECIFIED", + "OPAQUE_CONFIG_TYPE_VPN", + "OPAQUE_CONFIG_TYPE_LISP" + ], + "default": "OPAQUE_CONFIG_TYPE_UNSPECIFIED" + }, + "Param": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the Parameter (Required)" + }, + "value": { + "type": "string", + "description": "Value of the parameter (Required)" + } + } + }, + "Permission": { + "type": "object" + }, + "ProbeConfig": { + "type": "object", + "properties": { + "enableGatewayPing": { + "type": "boolean", + "description": "Enable gateway ping" + }, + "pingMaxCost": { + "type": "number", + "format": "int64", + "description": "Ping max cost" + }, + "preferLowerCost": { + "type": "boolean", + "description": "Prefer lower cost" + }, + "preferStrongerWwanSignal": { + "type": "boolean", + "description": "Prefer stronger WWAN signal" + }, + "customProbeConfig": { + "type": "object", + "$ref": "#/definitions/commonConnectivityProbe", + "description": "Custom probe configuration" + } + }, + "description": "Probing configuration", + "title": "Probing configuration" + }, + "ProfileAppConfig": { + "type": "object", + "properties": { + "networks": { + "type": "integer", + "format": "int64", + "description": "user defined network options" + }, + "drives": { + "type": "integer", + "format": "int64", + "description": "user defined drives", + "readOnly": true + }, + "cpus": { + "type": "integer", + "format": "int64", + "description": "user defined cpus for bundle" + }, + "memory": { + "type": "integer", + "format": "int64", + "description": "user defined memory for bundle" + }, + "manifestJSON": { + "$ref": "#/definitions/VMManifest", + "description": "user defined manifest in JSON format" + }, + "storage": { + "type": "integer", + "format": "int64", + "description": "user defined storage for bundle" + }, + "nameProjectPart": { + "type": "string", + "description": "User provided name part for the auto deployed app" + }, + "nameAppPart": { + "type": "string", + "description": "User provided name part for the auto deployed app" + }, + "interfaces": { + "type": "array", + "items": { + "$ref": "#/definitions/appInterface" + }, + "description": "application interfaces" + }, + "startDelayInSeconds": { + "type": "integer", + "format": "int64", + "description": "start delay is the time in seconds EVE should wait after boot before starting the application instance" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "logs": { + "$ref": "#/definitions/AppInstanceLogs", + "description": "App Instance logs" + }, + "vminfo": { + "$ref": "#/definitions/vm", + "description": "virtual machine info" + }, + "remoteConsole": { + "type": "boolean", + "description": "Remote console flag" + }, + "newBundleVersionAvailable": { + "type": "boolean", + "description": "this flag denotes whether there is latest bundle available in the marketplace or not" + }, + "bundleVersion": { + "type": "integer", + "format": "int64", + "description": "current bundle version" + }, + "netInstTags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "netInstName": { + "type": "string", + "description": "network instance name" + } + }, + "description": "Edge application gets installed/uninstalled to/from edge node(s) and perform specific edge computing tasks. Lifecycle of Edge application (upgrade/restart) on Edge node can be managed and monitored by ZEDEDA Cloud controller through this detailed configuration.", + "title": "Edge application detailed configuration" + }, + "ProfileAppPolicy": { + "type": "object", + "properties": { + "metaData": { + "$ref": "#/definitions/ProfilePolicyCommon", + "description": "all the required metadata for a policy like id, name, different types of tags" + }, + "appConfig": { + "$ref": "#/definitions/ProfileAppConfig", + "description": "app config for app profile" + } + } + }, + "ProfileDeployment": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "unique Id of the deployment.", + "readOnly": true, + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the deployment, unique across the enterprise. Once deployment is created, name can\u2019t be changed.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the deployment. Title can be changed at any time.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+" + }, + "description": { + "type": "string", + "description": "Detailed description of the deployment.", + "maxLength": 256 + }, + "projectId": { + "type": "string", + "description": "project id" + }, + "appProfileInfo": { + "$ref": "#/definitions/AppProfileInfo", + "description": "app profile id" + }, + "targetAssetGroup": { + "$ref": "#/definitions/TargetAssetGroup", + "description": "asset group info" + }, + "status": { + "type": "string" + } + }, + "description": "Profile Deployment is a proto that should be used by user-agents to create/update deployments", + "title": "Deployments for Application profile", + "required": [ + "name", + "appProfileInfo", + "projectId", + "targetAssetGroup" + ] + }, + "ProfileDeploymentFilter": { + "type": "object", + "properties": { + "profileDeploymentId": { + "type": "string", + "description": "Unique id of the asset, unique across the enterprise.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "namePattern": { + "type": "string", + "description": "deployment name pattern" + } + } + }, + "ProfileDeploymentList": { + "type": "object", + "properties": { + "next": { + "$ref": "#/definitions/Cursor", + "description": "cursor next" + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/ProfileDeployment" + }, + "description": "deployment summary list" + } + } + }, + "ProfileDeploymentPerDeviceStatus": { + "type": "object", + "properties": { + "assetId": { + "type": "string", + "description": "Unique ID of the object.", + "readOnly": true, + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", + "uniqueItems": true + }, + "objectStatus": { + "type": "array", + "items": { + "$ref": "#/definitions/ProfileDeploymentResourceObjectStatus" + }, + "description": "list of status of objects created by deployment for the given asset id" + } + } + }, + "ProfileDeploymentResourceDetailedStatus": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "unique Id of the deployment.", + "readOnly": true, + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the deployment, unique across the enterprise. Once deployment is created, name can\u2019t be changed.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the deployment. Title can be changed at any time.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+" + }, + "description": { + "type": "string", + "description": "Detailed description of the deployment.", + "maxLength": 256 + }, + "projectId": { + "type": "string", + "description": "project id" + }, + "appProfileInfo": { + "type": "object", + "$ref": "#/definitions/AppProfileInfo", + "description": "app profile id" + }, + "targetAssetGroup": { + "type": "object", + "$ref": "#/definitions/TargetAssetGroup", + "description": "asset group info" + }, + "assetResourceStatus": { + "type": "array", + "items": { + "$ref": "#/definitions/ProfileDeploymentPerDeviceStatus" + }, + "description": "list of status of objects created by deployment" + } + } + }, + "ProfileDeploymentResourceDetailedStatusResp": { + "type": "object", + "properties": { + "resourceStatus": { + "$ref": "#/definitions/ProfileDeploymentResourceDetailedStatus", + "description": "List of status of deployment resources" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "Requested page details of filtered records" + } + } + }, + "ProfileDeploymentResourceObjectStatus": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Unique ID of the object.", + "readOnly": true, + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", + "uniqueItems": true + }, + "objectType": { + "$ref": "#/definitions/ObjectType", + "description": "object type" + }, + "objectRunState": { + "$ref": "#/definitions/RunState", + "description": "object run state" + }, + "jobId": { + "type": "string", + "description": "Job ID associated with the object creation. Only applicable for EdgeAppInstance objects.", + "readOnly": true + }, + "errorMessage": { + "type": "string", + "description": "Error message if the object creation or operation failed.", + "readOnly": true + } + } + }, + "ProfileNetworkConfig": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "port": { + "type": "string", + "description": "name of port mapping in the model", + "title": "name of port mapping in the model" + }, + "portTags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "kind": { + "$ref": "#/definitions/NetworkInstanceKind", + "description": "Kind of Network Instance ( Local, Switch etc )" + }, + "type": { + "$ref": "#/definitions/NetworkInstanceDhcpType", + "description": "Type of DHCP for this Network Instance" + }, + "ip": { + "$ref": "#/definitions/DhcpServerConfig", + "description": "Dhcp Server Configuration" + }, + "dnsList": { + "type": "array", + "items": { + "$ref": "#/definitions/StaticDNSList" + }, + "description": "List of Static DNS entries" + }, + "opaque": { + "$ref": "#/definitions/NetInstOpaqueConfig", + "description": "Service specific Config" + }, + "deviceDefault": { + "type": "boolean", + "description": "flag to indicate if this is the default network instance for the device", + "title": "flag to indicate if this is default network" + }, + "propagateConnectedRoutes": { + "type": "boolean", + "description": "Automatically propagate connected routes", + "title": "flag to indicate automatically propagate connected routes" + }, + "staticRoutes": { + "type": "array", + "items": { + "$ref": "#/definitions/StaticIPRoute" + }, + "description": "List of Static IP routes", + "title": "list of static IP routes" + } + } + }, + "ProfileNetworkPolicy": { + "type": "object", + "properties": { + "metaData": { + "$ref": "#/definitions/ProfilePolicyCommon", + "description": "all the required metadata for a policy like id, name, different types of tags" + }, + "networkConfig": { + "$ref": "#/definitions/ProfileNetworkConfig", + "description": "network instance config details" + } + } + }, + "ProfilePolicyCommon": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "unique id for an policy" + }, + "name": { + "type": "string", + "description": "user defined policy name" + }, + "title": { + "type": "string", + "description": "user defined policy title" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "user defined key-value pairs of a policy" + } + } + }, + "ProfileVolumeConfig": { + "type": "object", + "properties": { + "type": { + "type": "string", + "$ref": "#/definitions/VolumeInstanceType", + "description": "type of Volume Instance" + }, + "multiattach": { + "type": "boolean", + "description": "flag to enable the volume to be attached to multiple app instances" + }, + "cleartext": { + "type": "boolean", + "description": "flag to keep the contents of the volume unencrypted (in clear text)" + }, + "accessmode": { + "type": "string", + "$ref": "#/definitions/VolumeInstanceAccessMode", + "description": "Access mode" + }, + "sizeBytes": { + "type": "integer", + "format": "uint64", + "description": "size of volume" + }, + "image": { + "type": "string", + "description": "name of the image" + }, + "contentTreeId": { + "type": "string", + "description": "content tree ID" + }, + "label": { + "type": "string", + "description": "label" + }, + "purge": { + "$ref": "#/definitions/ZedCloudOpsCmd", + "description": "Purge Counter information" + }, + "contentTreeTargetCondition": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "user defined key-value pairs of a content tree that will be used for targeting by block storage" + }, + "blockStorageTags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "user defined key-value pairs of a block storage, will be used for targeting content tree" + } + } + }, + "ProfileVolumePolicy": { + "type": "object", + "properties": { + "metaData": { + "$ref": "#/definitions/ProfilePolicyCommon", + "description": "all the required metadata for a policy like id, name, different types of tags" + }, + "volumeConfig": { + "$ref": "#/definitions/ProfileVolumeConfig", + "description": "volume instance config details" + } + } + }, + "Resource": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the Resource (Required)" + }, + "value": { + "type": "string", + "description": "Value of Resource (Required)" + } + } + }, + "RunState": { + "type": "string", + "enum": [ + "RUN_STATE_UNSPECIFIED", + "RUN_STATE_ONLINE", + "RUN_STATE_HALTED", + "RUN_STATE_INIT", + "RUN_STATE_REBOOTING", + "RUN_STATE_OFFLINE", + "RUN_STATE_UNKNOWN", + "RUN_STATE_UNPROVISIONED", + "RUN_STATE_PROVISIONED", + "RUN_STATE_SUSPECT", + "RUN_STATE_DOWNLOADING", + "RUN_STATE_RESTARTING", + "RUN_STATE_PURGING", + "RUN_STATE_HALTING", + "RUN_STATE_ERROR", + "RUN_STATE_VERIFYING", + "RUN_STATE_LOADING", + "RUN_STATE_CREATING_VOLUME", + "RUN_STATE_BOOTING", + "RUN_STATE_MAINTENANCE_MODE", + "RUN_STATE_START_DELAYED", + "RUN_STATE_BASEOS_UPDATING", + "RUN_STATE_PREPARING_POWEROFF", + "RUN_STATE_POWERING_OFF", + "RUN_STATE_PREPARED_POWEROFF" + ], + "default": "RUN_STATE_UNSPECIFIED", + "description": "- RUN_STATE_ONLINE: Entity Online\n - RUN_STATE_HALTED: Entity Halted\n - RUN_STATE_INIT: Entity Initializing\n - RUN_STATE_REBOOTING: Entity Rebooting\n - RUN_STATE_OFFLINE: Entity Offline\n - RUN_STATE_UNKNOWN: Entity state Unknown\n - RUN_STATE_UNPROVISIONED: Entity Unprovisioned\n - RUN_STATE_PROVISIONED: Entity Provisioned\n - RUN_STATE_SUSPECT: Entity Suspect\n - RUN_STATE_DOWNLOADING: Edge-node downloading entity artifacts\n - RUN_STATE_RESTARTING: Entity Restarting\n - RUN_STATE_PURGING: Entity Purging\n - RUN_STATE_HALTING: Entity Halting\n - RUN_STATE_ERROR: Entity encountered an error\n - RUN_STATE_VERIFYING: Verification of downloaded Artifacts in Progress.\n - RUN_STATE_LOADING: Loading of Artifacts into local datastore in Progress.\n - RUN_STATE_CREATING_VOLUME: Volume creation from artifacts in Progress\n - RUN_STATE_BOOTING: Entity booting up\n - RUN_STATE_MAINTENANCE_MODE: Entity maintenance mode\n - RUN_STATE_START_DELAYED: Application start delayed as per configuration\n - RUN_STATE_BASEOS_UPDATING: Device BaseOs Update in Progress\n - RUN_STATE_PREPARING_POWEROFF: device preparing power off - shutting down all app instances\n - RUN_STATE_POWERING_OFF: device powering off from local profile server\n - RUN_STATE_PREPARED_POWEROFF: device prepared power off - all app instances are shut down", + "title": "RunState - On update, please update RunState_HttpRequest as well" + }, + "ServicePoint": { + "type": "object", + "properties": { + "type": { + "type": "object", + "$ref": "#/definitions/spType", + "description": "Service Point Type" + }, + "NameOrIp": { + "type": "string", + "description": "Service name/ service name" + }, + "Credential": { + "type": "string", + "description": "Service credentials" + } + }, + "description": "Service Point", + "title": "Service Point" + }, + "StaticDNSList": { + "type": "object", + "properties": { + "hostname": { + "type": "string", + "description": "Host name" + }, + "addrs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Addresses" + } + }, + "description": "Static DNS list", + "title": "Static DNS list" + }, + "StaticIPRoute": { + "type": "object", + "properties": { + "prefix": { + "type": "string", + "description": "IP Prefix" + }, + "gateway": { + "type": "string", + "description": "Gateway IP" + }, + "outputPort": { + "type": "string", + "description": "Output Port" + }, + "probeConfig": { + "type": "object", + "$ref": "#/definitions/ProbeConfig", + "description": "Probe Configuration" + } + }, + "description": "Static IP Routes", + "title": "Static IP Routes" + }, + "Summary": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Summary description" + }, + "total": { + "type": "number", + "format": "int64", + "description": "Total" + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "integer", + "format": "int64" + }, + "description": "Values: Map for storing " + } + }, + "description": "Summary is used to store the Summary details", + "title": "Summary is used to store the Summary details" + }, + "TargetAssetGroup": { + "type": "object", + "properties": { + "groupId": { + "type": "string", + "description": "unique Id of the asset group.", + "readOnly": true, + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", + "uniqueItems": true + } + } + }, + "UserDataTemplate": { + "type": "object", + "properties": { + "customConfig": { + "$ref": "#/definitions/CustomConfig" + } + } + }, + "VMManifest": { + "type": "object", + "properties": { + "acKind": { + "type": "string", + "default": "VMManifest", + "description": "UI map: N/A - not exposed to users", + "title": "Edge Application type" + }, + "acVersion": { + "type": "string", + "default": "1.2.0", + "description": "UI map: N/A - not exposed to users", + "title": "Manifest version" + }, + "name": { + "type": "string", + "description": "UI map: AppEditPage:IdentityPane:Name_Field, AppDetailsPage:IdentityPane:Name_Field", + "title": "Unique id of app manifest, should match object name" + }, + "displayName": { + "type": "string", + "description": "UI map: AppEditPage:IdentityPane:Title_Field, AppDetailsPage:IdentityPane:Title_Field", + "title": "Display name or title of app manifest" + }, + "description": { + "type": "string", + "description": "UI map: AppDetailsPage:IdentityPane:DescriptionField, AppMarketplacePage:AppCard:DescriptionField", + "title": "Description of the Edge application", + "pattern": "[0-9A-Za-z-]+" + }, + "owner": { + "$ref": "#/definitions/Author", + "description": "Owner of the application" + }, + "desc": { + "$ref": "#/definitions/Details", + "description": "Description of the application" + }, + "images": { + "type": "array", + "items": { + "$ref": "#/definitions/VMManifestImage" + }, + "description": "UI map: AppEditPage:DrivesPane, AppDetailsPage:DrivesPane", + "title": "Images used by the app" + }, + "interfaces": { + "type": "array", + "items": { + "$ref": "#/definitions/Interface" + }, + "description": "UI map: AppEditPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + "title": "I/O adapter settings" + }, + "permissions": { + "type": "array", + "items": { + "$ref": "#/definitions/Permission" + } + }, + "vmmode": { + "type": "string", + "default": "HV_HVM", + "description": "UI map: AppEditPage:IdentityPane:VM_Mode_Field, AppDetailsPage:IdentityPane:VM_Mode_Field", + "title": "VM mode for VM-based app" + }, + "enablevnc": { + "type": "boolean", + "description": "UI map: AppEditPage:IdentityPane:VNC_Field, AppDetailsPage:IdentityPane:VNC_Field", + "title": "Enable VNC for the app" + }, + "resources": { + "type": "array", + "items": { + "$ref": "#/definitions/Resource" + }, + "description": "UI map: AppEditPage:ResourcesPane, AppDetailsPage:ResourcesPane", + "title": "Hardware resource requirement (CPU, Memory, Storage) for the app" + }, + "configuration": { + "$ref": "#/definitions/UserDataTemplate", + "description": "Template for Custom Configuration. Used for Cloud-Init", + "title": "Annotations types.Annotations `json:\"Annotations,omitempty\"`\nLabels types.Labels `json:\"Labels,omitempty\"`" + }, + "containerDetail": { + "$ref": "#/definitions/ContainerDetail", + "description": "Create options direct the creation of the Docker container", + "title": "Container specific details" + }, + "module": { + "$ref": "#/definitions/ModuleDetail", + "description": "Azure module specific details like module twin, environment variable, routes", + "title": "Module specific details" + }, + "appType": { + "$ref": "#/definitions/AppType", + "description": "bundle type, eg: vm, container, module" + }, + "deploymentType": { + "$ref": "#/definitions/DeploymentType", + "description": "type of deployment for the app, eg: azure, k3s, standalone" + }, + "cpuPinningEnabled": { + "type": "boolean", + "description": "Enable CpuPinning" + }, + "runtimeVersion": { + "$ref": "#/definitions/DockerRuntimeVersion", + "description": "Indicates the version of container orchestration software", + "title": "docker-compose runtime specific versions" + }, + "runtimeProtocolVersion": { + "$ref": "#/definitions/DockerRuntimeProtocolVersion", + "description": "Indicates the internal communication protocol to pass configuration between Zedcloud and docker-compose runtime" + }, + "PersistentRuntimeSizeBytes": { + "type": "string", + "format": "uint64", + "description": "Size of persistent blank storage for runtime in bytes" + }, + "dockerComposeYamlText": { + "type": "string", + "description": "Docker compose base64 encoded plain text" + }, + "dockerComposeTarImageName": { + "type": "string", + "description": "Docker compose tar image name" + }, + "enableOemWinLicenseKey": { + "type": "boolean", + "description": "UI map: AppEditPage:IdentityPane:ENABLEVMCONFIG_Field, AppDetailsPage:IdentityPane:ENABLEVMCONFIG_Field", + "title": "Enable device to read the license info from APCI tables" + }, + "disableVTPM": { + "type": "boolean", + "description": "UI map: AppEditPage:IdentityPane:DISABLEVTPM_Field, AppDetailsPage:IdentityPane:DISABLEVTPM_Field", + "title": "Disable vTPM for a virtual machine (VM)" + } + } + }, + "VMManifestImage": { + "type": "object", + "properties": { + "imagename": { + "type": "string", + "description": "UI map: AppEditPage:DrivesPane:Image_Name_Field, AppDetailsPage:DrivesPane:Image_Name_Field" + }, + "imageid": { + "type": "string", + "description": "UI map: AppEditPage:DrivesPane:Image_ID_Field, AppDetailsPage:DrivesPane:Image_ID_Field" + }, + "imageformat": { + "$ref": "#/definitions/configFormat", + "description": "UI map: AppEditPage:DrivesPane:Image_Format_Field, AppDetailsPage:DrivesPane:Image_Format_Field" + }, + "maxsize": { + "type": "string", + "format": "uint64", + "description": "UI map: AppEditPage:DrivesPane:Max_Size_Field, AppDetailsPage:DrivesPane:Max_Size_Field" + }, + "preserve": { + "type": "boolean", + "description": "UI map: AppEditPage:DrivesPane:Preserve_Field, AppDetailsPage:DrivesPane:Preserve_Field" + }, + "target": { + "type": "string", + "description": "UI map: AppEditPage:DrivesPane:Target_Field, AppDetailsPage:DrivesPane:Target_Field", + "title": "enum: Disk, Kernel, Initrd, RamDisk" + }, + "drvtype": { + "type": "string", + "description": "UI map: AppEditPage:DrivesPane:Drive_Type_Field, AppDetailsPage:DrivesPane:Drive_Type_Field", + "title": "enum: CDROM, HDD, NET" + }, + "params": { + "type": "array", + "items": { + "$ref": "#/definitions/Param" + }, + "title": "Not used by ZedUI" + }, + "readonly": { + "type": "boolean", + "title": "Not used by ZedUI" + }, + "volumelabel": { + "type": "string", + "description": "UI map: AppEditPage:DrivesPane:Volume_Label, AppDetailsPage:DrivesPane:Volume_Label" + }, + "ignorepurge": { + "type": "boolean", + "description": "UI map: AppEditPage:DrivesPane:Ignorepurge, AppDetailsPage:DrivesPane:Ignorepurgee_Field" + }, + "cleartext": { + "type": "boolean", + "description": "UI map: AppEditPage:DrivesPane:Cleartext, AppDetailsPage:DrivesPane:ClearText_Field" + }, + "mountpath": { + "type": "string", + "description": "UI map: AppEditPage:DrivesPane:Mountpath, AppDetailsPage:DrivesPane:Mountpath_Field" + }, + "imagestatus": { + "type": "string", + "description": "UI map: AppEditPage:DrivesPane:Image_Status_Field, AppDetailsPage:DrivesPane:Image_Status_Field", + "title": "enum: UNSPECIFIED, CREATED, PENDING, UPLOADING, READY, INUSE, ARCHIVED, MAX, FAILED, UPLINKING" + }, + "datastore": { + "type": "array", + "items": { + "$ref": "#/definitions/ImageDatastore" + }, + "description": "UI map: AppEditPage:DrivesPane:DataStore_Field, AppDetailsPage:DrivesPane:DataStore_Field" + } + } + }, + "VariableFileEncoding": { + "type": "string", + "enum": [ + "FILE_ENCODING_UNSPECIFIED", + "FILE_ENCODING_BASE64" + ], + "default": "FILE_ENCODING_UNSPECIFIED", + "description": "- FILE_ENCODING_UNSPECIFIED: File content not encoded\n - FILE_ENCODING_BASE64: File content encoded in Base64", + "title": "File content encoding type" + }, + "VariableGroupCondition": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + }, + "operator": { + "$ref": "#/definitions/VariableGroupConditionOperator" + } + } + }, + "VariableGroupConditionOperator": { + "type": "string", + "enum": [ + "CONDITION_OPERATOR_UNSPECIFIED", + "CONDITION_OPERATOR_EQUALTO", + "CONDITION_OPERATOR_NOTEQUALTO" + ], + "default": "CONDITION_OPERATOR_UNSPECIFIED" + }, + "VariableGroupVariable": { + "type": "object", + "example": { + "format": "VARIABLE_FORMAT_TEXT", + "name": "username", + "label": "Enter User Name", + "required": "True" + }, + "properties": { + "type": { + "type": "string" + }, + "name": { + "type": "string", + "description": "Name of the Variable (Required)" + }, + "label": { + "type": "string", + "description": "Label for the variable (Required)" + }, + "maxLength": { + "type": "string", + "description": "Max length of the value of the variable(Optional. Default: 1024)" + }, + "required": { + "type": "boolean", + "description": "This variable MUST be specified when creating an App Instance. (Optional. Default: False)" + }, + "default": { + "type": "string", + "description": "Default value of the variable. (Optional. Default: )" + }, + "processInput": { + "type": "string" + }, + "value": { + "type": "string", + "description": "User-specified value of the variable.(Required if required is true. Optional otherwise)" + }, + "format": { + "$ref": "#/definitions/VariableVariableFormat", + "description": "Format of the user variable. (Required)" + }, + "encode": { + "$ref": "#/definitions/VariableFileEncoding", + "description": "Encoding of file content. Applicable if format is VARIABLE_FORMAT_FILE" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/VariableOptionVal" + }, + "description": "Key-Value pair of options. Applicable if format is VARIABLE_FORMAT_DROPDOWN" + } + }, + "description": "Edge Application Artifact Details", + "title": "Edge Application detail", + "required": [ + "format", + "name", + "label", + "required" + ] + }, + "VariableOptionVal": { + "type": "object", + "properties": { + "label": { + "type": "string", + "description": "Display label of the key in User-Agent" + }, + "value": { + "type": "string", + "description": "Value of the key to be used" + } + } + }, + "VariableVariableFormat": { + "type": "string", + "enum": [ + "VARIABLE_FORMAT_UNSPECIFIED", + "VARIABLE_FORMAT_TEXT", + "VARIABLE_FORMAT_NUMBER", + "VARIABLE_FORMAT_FILE", + "VARIABLE_FORMAT_DROPDOWN", + "VARIABLE_FORMAT_BOOLEAN", + "VARIABLE_FORMAT_PASSWORD" + ], + "default": "VARIABLE_FORMAT_UNSPECIFIED", + "description": "- VARIABLE_FORMAT_UNSPECIFIED: Invalid format\n - VARIABLE_FORMAT_TEXT: Value in string format\n - VARIABLE_FORMAT_NUMBER: Value in integer format\n - VARIABLE_FORMAT_FILE: Value to be read from a file\n - VARIABLE_FORMAT_DROPDOWN: Value to be selected from dropdown of options\n - VARIABLE_FORMAT_BOOLEAN: Value in boolean format\n - VARIABLE_FORMAT_PASSWORD: Value in string to be masked in User-Agent", + "title": "Custom variable format" + }, + "VmBootloaderMode": { + "type": "string", + "enum": [ + "VM_BOOTLOADER_MODE_UNSPECIFIED", + "VM_BOOTLOADER_MODE_LEGACY", + "VM_BOOTLOADER_MODE_UEFI" + ], + "default": "VM_BOOTLOADER_MODE_UNSPECIFIED", + "title": "VmBootloaderMode is used to specify the bootloader mode that will be used for the VM.\nIt represents the boot mechanism to be used to boot the VM" + }, + "VolumeInstanceAccessMode": { + "type": "string", + "enum": [ + "VOLUME_INSTANCE_ACCESS_MODE_INVALID", + "VOLUME_INSTANCE_ACCESS_MODE_READWRITE", + "VOLUME_INSTANCE_ACCESS_MODE_READONLY", + "VOLUME_INSTANCE_ACCESS_MODE_MULTIREAD_SINGLEWRITE" + ], + "default": "VOLUME_INSTANCE_ACCESS_MODE_INVALID" + }, + "VolumeInstanceType": { + "type": "string", + "enum": [ + "VOLUME_INSTANCE_TYPE_UNSPECIFIED", + "VOLUME_INSTANCE_TYPE_EMPTYDIR", + "VOLUME_INSTANCE_TYPE_BLOCKSTORAGE", + "VOLUME_INSTANCE_TYPE_HOSTFS", + "VOLUME_INSTANCE_TYPE_TMPFS", + "VOLUME_INSTANCE_TYPE_SECRET", + "VOLUME_INSTANCE_TYPE_NFS", + "VOLUME_INSTANCE_TYPE_AWS_BLOCK_STORAGE", + "VOLUME_INSTANCE_TYPE_CONTENT_TREE" + ], + "default": "VOLUME_INSTANCE_TYPE_UNSPECIFIED", + "title": "VolumeInstanceType - On update, please update VolumeInstanceType_HttpRequest as well" + }, + "ZcOpsStatus": { + "type": "string", + "enum": [ + "OPS_STATUS_UNSPECIFIED", + "OPS_STATUS_PENDING", + "OPS_STATUS_ONGOING", + "OPS_STATUS_COMPLETE" + ], + "default": "OPS_STATUS_UNSPECIFIED", + "description": "- OPS_STATUS_PENDING: In rare cases, system may not start operation when it was requested. Client will be notified that operation is PENDING\n - OPS_STATUS_ONGOING: system will start the operation, but at the time response was generated, operation is still ONGOING.\n - OPS_STATUS_COMPLETE: Even if the result of the operations may result in failure, but the OpsStatus will marked COMPLETE for almost all cases.", + "title": "ZedCloud internal operation status" + }, + "ZcOpsType": { + "type": "string", + "enum": [ + "OPS_TYPE_UNSPECIFIED", + "OPS_TYPE_READ", + "OPS_TYPE_DELETE", + "OPS_TYPE_CREATE", + "OPS_TYPE_UPDATE", + "OPS_TYPE_LIST" + ], + "default": "OPS_TYPE_UNSPECIFIED", + "title": "ZedCloud internal operation type" + }, + "ZedCloudOpsCmd": { + "type": "object", + "properties": { + "counter": { + "type": "number", + "format": "int64", + "description": "counter" + }, + "opsTime": { + "type": "object", + "format": "date-time", + "description": "Timestamp: Operational time" + } + }, + "description": "Zed cloud Operation command", + "title": "Zed cloud Operation command" + }, + "ZsrvError": { + "type": "object", + "properties": { + "ec": { + "$ref": "#/definitions/ZsrvErrorCode", + "title": "Enumrated error code, describes more granular numerical\nvalue than just httpStatus" + }, + "location": { + "type": "string", + "title": "Ignore: Internal field only" + }, + "details": { + "type": "string", + "title": "Field captures string description of details" + } + } + }, + "ZsrvErrorCode": { + "type": "string", + "enum": [ + "zMsgErrorNone", + "zMsgSucess", + "NotFound", + "AlreadyExists", + "VersionMismatch", + "RangeError", + "LargeResult", + "IncompleteData", + "InvalidData", + "FunctionUnsupported", + "NoMemory", + "SendFailure", + "Timeout", + "BadReqBody", + "BadReqParam", + "InvalidFieldFormat", + "UrlNotFound", + "ApiVersionNotSupported", + "Unauthorized", + "Forbidden", + "Conflict", + "NotModified", + "DependencyConflict", + "JsonFmtError", + "ProtoFmtError", + "CertError", + "DataBaseConnection", + "DBError", + "zMsgAccepted", + "zMsgCreated", + "PreConditionFailed", + "InternalServerError" + ], + "default": "zMsgErrorNone", + "description": "- zMsgErrorNone: common validation errors\n - IncompleteData: message had fields that weren't filled in\n - InvalidData: message contained the field that wasn't expected\n - FunctionUnsupported: this feature unavailable on this version of device\n - InvalidFieldFormat: message contained the field that wasn't correctly formatted\n - JsonFmtError: Marshal / Unmarshal errors\n - DataBaseConnection: generic DB error", + "title": "ZedCould internal error code" + }, + "ZsrvResponse": { + "type": "object", + "properties": { + "operationType": { + "$ref": "#/definitions/ZcOpsType", + "title": "Describes one of the operations type : possible values\n Read/Delete/Create/Update/List" + }, + "operationStatus": { + "$ref": "#/definitions/ZcOpsStatus", + "title": "if this is log running job" + }, + "objectKind": { + "type": "string", + "title": "zedcloud object kind on which the operation was performed" + }, + "objectId": { + "type": "string", + "title": "Unique value identifies the object that was operated on" + }, + "objectName": { + "type": "string", + "title": "name of the object" + }, + "objectRevision": { + "type": "string", + "title": "object revision post the operation, note Read operation\ndoesn't change the revision" + }, + "objectType": { + "$ref": "#/definitions/ObjectType" + }, + "operationTime": { + "type": "string", + "title": "time of operation" + }, + "startTime": { + "type": "string", + "title": "total time taken by operations" + }, + "endTime": { + "type": "string" + }, + "user": { + "type": "string", + "title": "the operation is performed on behalf of this user" + }, + "httpStatusCode": { + "type": "integer", + "format": "int32", + "title": "http response" + }, + "httpStatusMsg": { + "type": "string", + "title": "summary of the error in text format" + }, + "jobId": { + "type": "string", + "title": "for tracking asynchronous tasks" + }, + "error": { + "type": "array", + "items": { + "$ref": "#/definitions/ZsrvError" + }, + "title": "one or more errors will be set if the operation failed\ni.e. httpStatusCode != 2xx" + } + } + }, + "appACE": { + "type": "object", + "properties": { + "matches": { + "type": "array", + "items": { + "$ref": "#/definitions/appACEMatch" + }, + "description": "app ACE match" + }, + "actions": { + "type": "array", + "items": { + "$ref": "#/definitions/appACEAction" + }, + "description": "app ACE actions" + }, + "id": { + "type": "number", + "format": "int32", + "description": "app ACE id" + }, + "name": { + "type": "string", + "description": "User defined name of the app ACE, unique across the enterprise. Once object is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + } + }, + "description": "App ACE Configuration", + "title": "App ACE detaisn", + "required": [ + "matches", + "actions", + "id", + "name" + ] + }, + "appACEAction": { + "type": "object", + "properties": { + "drop": { + "type": "boolean", + "description": "ACE drop flag" + }, + "limit": { + "type": "boolean", + "description": "ACE limit flag" + }, + "limitrate": { + "type": "number", + "format": "int64", + "description": "ACE limit rate" + }, + "limitunit": { + "type": "string", + "description": "ACE limit unit" + }, + "limitburst": { + "type": "number", + "format": "int64", + "description": "ACE limit burst" + }, + "portmap": { + "type": "boolean", + "description": "application port map flag" + }, + "mapparams": { + "$ref": "#/definitions/appMapParams", + "description": "Application map params" + } + }, + "description": "App ACE actions", + "title": "App ACE Action", + "required": [ + "drop", + "limit", + "limitrate", + "limitunit", + "limitburst", + "portmap", + "mapparams" + ] + }, + "appACEMatch": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Type" + }, + "value": { + "type": "string", + "description": "Value" + } + }, + "description": "App ACE Match", + "title": "appACEMatch detail", + "required": [ + "type", + "value" + ] + }, + "appInterface": { + "type": "object", + "properties": { + "netname": { + "type": "string", + "description": "network name: will be deprecated in future, use netinstname" + }, + "io": { + "$ref": "#/definitions/phyAdapter", + "description": "Physical Adapter to be matched for interface assignment. Applicable only when \"direct attach\" flag is true" + }, + "intforder": { + "type": "number", + "format": "int64", + "description": "intforder" + }, + "intfname": { + "type": "string", + "description": "intf Name" + }, + "directattach": { + "type": "boolean", + "description": "direct attach flag", + "title": "comes from manifest during app create" + }, + "privateip": { + "type": "boolean", + "description": "Private IP flag" + }, + "acls": { + "type": "array", + "items": { + "$ref": "#/definitions/appACE" + }, + "description": "app Acls" + }, + "ipaddr": { + "type": "string", + "description": "IP address", + "title": "if netname points static DHCP then we need to take\nstatic /32 address here" + }, + "macaddr": { + "type": "string", + "description": "MAC address", + "title": "in case of p2v we might want to provide a mac-address.\napplicable only in case of DHCP=passthrough" + }, + "accessVlanId": { + "type": "number", + "format": "int64", + "description": "access port VLAN ID, vlan id of zero will be treated as trunk port and vlan id 1 is implicitly used by linux bridges", + "maximum": 4093, + "minimum": 2 + }, + "eidregister": { + "$ref": "#/definitions/EIDRegister", + "description": "EID register details", + "title": "FIXME: Check why is this required" + }, + "netinstname": { + "type": "string", + "description": "Network Instance name to be matched for interface assignment. Applicable only when \"direct attach\" flag is false" + }, + "netinsttag": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Network Instance tag to be matched for interface assignment. Applicable only when \"direct attach\" flag is false" + }, + "netinstid": { + "type": "string", + "description": "Network Instance id to be matched for interface assignment." + }, + "defaultNetInstance": { + "type": "boolean", + "description": "default instance flag" + }, + "allowToDiscover": { + "type": "boolean", + "description": "flag tells if appInstance have permission to access the network mappings from the connected netInstance" + } + }, + "description": "App Interface detail", + "title": "App Interface detail", + "required": [ + "intfname" + ] + }, + "appMapParams": { + "type": "object", + "properties": { + "port": { + "type": "number", + "format": "int64", + "description": "Application port" + } + }, + "description": "Application map parameters", + "title": "App map Params detail", + "required": [ + "port" + ] + }, + "commonConnectivityProbe": { + "type": "object", + "properties": { + "probeMethod": { + "$ref": "#/definitions/commonConnectivityProbeMethod", + "description": "Method to use to determine the connectivity status." + }, + "probeEndpoint": { + "$ref": "#/definitions/commonProbeEndpoint", + "description": "Endpoint to probe using the selected probing mechanism to determine\nthe connectivity status." + } + }, + "description": "Configuration for user-defined connectivity-testing probe." + }, + "commonConnectivityProbeMethod": { + "type": "string", + "enum": [ + "CONNECTIVITY_PROBE_METHOD_UNSPECIFIED", + "CONNECTIVITY_PROBE_METHOD_ICMP", + "CONNECTIVITY_PROBE_METHOD_TCP" + ], + "default": "CONNECTIVITY_PROBE_METHOD_UNSPECIFIED", + "description": "User-defined method to use to determine the connectivity status.\n\n - CONNECTIVITY_PROBE_METHOD_UNSPECIFIED: Connectivity probing method is not specified and therefore will not be used.\n - CONNECTIVITY_PROBE_METHOD_ICMP: Use ICMP ping against the probed endpoint to determine the connectivity status.\n - CONNECTIVITY_PROBE_METHOD_TCP: Try to establish TCP connection with the probed endpoint to determine the connectivity\nstatus." + }, + "commonProbeEndpoint": { + "type": "object", + "properties": { + "host": { + "type": "string", + "description": "IP address or FQDN." + }, + "port": { + "type": "integer", + "format": "int64", + "description": "TCP port required for CONNECTIVITY_PROBE_METHOD_TCP.\nLeave empty for CONNECTIVITY_PROBE_METHOD_ICMP." + } + }, + "description": "Address of a remote endpoint to probe in order to determine connectivity status." + }, + "configFormat": { + "type": "string", + "enum": [ + "FmtUnknown", + "RAW", + "QCOW", + "QCOW2", + "VHD", + "VMDK", + "OVA", + "VHDX", + "CONTAINER", + "ISO", + "PVC" + ], + "default": "FmtUnknown" + }, + "dhcpIpRange": { + "type": "object", + "properties": { + "start": { + "type": "string", + "description": "starting IP" + }, + "end": { + "type": "string", + "description": "ending IP" + } + }, + "description": "DHCP IP range", + "title": "DHCP IP range" + }, + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "hvMode": { + "type": "string", + "enum": [ + "HV_PV", + "HV_HVM", + "HV_FML", + "HV_NOHYPER", + "HV_LEGACY" + ], + "default": "HV_PV", + "description": "For now we need to tell the device which virtualization mode\nto use. Later we might use a single one for all VMs (on any particular\nISA). If we end up keeping this we should make the names be less\ntied to a particular hypervisor." + }, + "phyAdapter": { + "type": "object", + "properties": { + "type": { + "type": "object", + "$ref": "#/definitions/IoType", + "description": "IoType specifies the type of the Input output of the device" + }, + "name": { + "type": "string", + "description": "Physical Adapter name" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + } + }, + "description": "Physical Adapter", + "title": "Physical Adapter" + }, + "protobufAny": { + "type": "object", + "properties": { + "typeUrl": { + "type": "string" + }, + "value": { + "type": "string", + "format": "byte" + } + } + }, + "spType": { + "type": "string", + "enum": [ + "SPTYPE_INVALIDSRV", + "SPTYPE_MAPSERVER", + "SPTYPE_SUPPORTSERVER" + ], + "default": "SPTYPE_INVALIDSRV", + "description": "clone of types defined in API repo.\n\n - SPTYPE_MAPSERVER: mapping service for zededa overlay service\n - SPTYPE_SUPPORTSERVER: if device has support feature enabled, this ia cloud service\nwhich device can be reached." + }, + "vm": { + "type": "object", + "properties": { + "cpus": { + "type": "number", + "format": "int64", + "description": "CPUs" + }, + "memory": { + "type": "number", + "format": "int64", + "description": "Memory" + }, + "mode": { + "$ref": "#/definitions/hvMode", + "description": "Hardware Virtualization" + }, + "vnc": { + "type": "boolean", + "description": "VNC" + }, + "vncDisplay": { + "type": "number", + "format": "int64", + "description": "VNC display", + "readOnly": true + }, + "cpuPinningEnabled": { + "type": "boolean", + "description": "Enable CpuPinning" + }, + "vmmMaxmem": { + "type": "integer", + "format": "int64", + "description": "Maximum amount of memory in kbytes allowed for VM monitor to occupy" + }, + "bootloaderMode": { + "$ref": "#/definitions/VmBootloaderMode", + "description": "The bootloader mode that will be used for the VM. Default is VM_BOOTLOADER_MODE_LEGACY" + }, + "enableOemWinLicenseKey": { + "type": "boolean", + "description": "Enable device which has VM to receive the Windows license embedded in the ACPI tables" + }, + "disableVTPM": { + "type": "boolean", + "description": "Disable vTPM for virtual machines (VM)" + } + }, + "description": "Virtual machine memory configuration", + "title": "vm detail", + "required": [ + "cpus", + "memory", + "mode", + "vnc" + ] + } + }, + "securityDefinitions": { + "BearerToken": { + "type": "apiKey", + "description": "Bearer token for user session", + "name": "Authorization", + "in": "header" + } + }, + "security": [ + { + "BearerToken": [] + } + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/app-profiles" + } +} \ No newline at end of file diff --git a/openapi/zedge_app_service.swagger.json b/openapi/zedge_app_service.swagger.json new file mode 100644 index 0000000..c5a905e --- /dev/null +++ b/openapi/zedge_app_service.swagger.json @@ -0,0 +1,14727 @@ +{ + "swagger": "2.0", + "info": { + "title": "ZEDEDA Edge Application Service", + "description": "The ZEDEDA Edge Application Service is part of ZEDEDA Edge Orchestration Platform. This service enables customers to define their edge applications on ZEDEDA platform and to deploy/upgrade/restarti/monitor them to edge node(s) remotely. You can use the ZEDEDA Edge Application Service to provision and manage ilifecycle of thousands of edge applications to millions of edge nodes distributed in different geographical locations in a secure and scalable manner.", + "termsOfService": "https://www.zededa.com/terms", + "version": "1.0", + "contact": { + "name": "ZEDEDA API Support", + "url": "https://www.zededa.com/support", + "email": "support@zededa.com" + }, + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.html" + } + }, + "tags": [ + { + "name": "EdgeApplicationConfiguration" + }, + { + "name": "EdgeApplicationInstanceConfiguration" + }, + { + "name": "PatchEnvelopeConfiguration" + }, + { + "name": "EdgeApplicationInstanceStatus" + } + ], + "basePath": "/api", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/beta/apps": { + "get": { + "summary": "Query edge application bundles", + "description": "Query the edge application bundle records.", + "operationId": "EdgeApplicationConfiguration_QueryBetaEdgeApplicationBundles", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AppPublicApps" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "namePattern", + "description": "query param : \"name-pattern\" . Search * namePattern * in name field to filter records", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "originType", + "description": "origin of bundle", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "category", + "description": "category type of the bundle", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "summary", + "description": "Only summary of the records required", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "appType", + "description": "app type, eg: vm, container, module", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "APP_TYPE_UNSPECIFIED", + "APP_TYPE_VM", + "APP_TYPE_VM_RUNTIME", + "APP_TYPE_CONTAINER", + "APP_TYPE_MODULE", + "APP_TYPE_DOCKER_COMPOSE" + ], + "default": "APP_TYPE_UNSPECIFIED" + }, + { + "name": "deploymentType", + "description": "type of deployment for the app, eg: azure, k3s, standalone", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DEPLOYMENT_TYPE_UNSPECIFIED", + "DEPLOYMENT_TYPE_STAND_ALONE", + "DEPLOYMENT_TYPE_AZURE", + "DEPLOYMENT_TYPE_K3S", + "DEPLOYMENT_TYPE_AWS", + "DEPLOYMENT_TYPE_K3S_AZURE", + "DEPLOYMENT_TYPE_K3S_AWS", + "DEPLOYMENT_TYPE_VMWARE_VCE", + "DEPLOYMENT_TYPE_VMWARE_TKG_ATTACH", + "DEPLOYMENT_TYPE_DOCKER_RUNTIME" + ], + "default": "DEPLOYMENT_TYPE_UNSPECIFIED" + }, + { + "name": "appCategory", + "description": "category types of the bundle\n\n - APP_CATEGORY_UNSPECIFIED: Invalid Edge Application Category\n - APP_CATEGORY_OPERATING_SYSTEM: Edge operating systems\n - APP_CATEGORY_INDUSTRIAL: Connectity solution for industrial protocols\n - APP_CATEGORY_EDGE_APPLICATION: Edge application framework featuring composite functions for data ingestion, buffering, analytics and export\n - APP_CATEGORY_NETWORKING: Edge networking services (e.g. SD-WAN, NFV)\n - APP_CATEGORY_SECURITY: Edge security services (e.g. protocol inspection, firewall)\n - APP_CATEGORY_DATA_ANALYTICS: Edge analytics (e.g. AI/ML) and data management (e.g. database, connectors) services\n - APP_CATEGORY_CLOUD_APPLICATION: Edge application runtimes, cloud connectivity and general application enablement\n - APP_CATEGORY_DEVOPS: Tools for Edge Application CI/CD and performance optimization\n - APP_CATEGORY_OTHERS: Miscellaneous functionality", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string", + "enum": [ + "APP_CATEGORY_UNSPECIFIED", + "APP_CATEGORY_OPERATING_SYSTEM", + "APP_CATEGORY_INDUSTRIAL", + "APP_CATEGORY_EDGE_APPLICATION", + "APP_CATEGORY_NETWORKING", + "APP_CATEGORY_SECURITY", + "APP_CATEGORY_DATA_ANALYTICS", + "APP_CATEGORY_CLOUD_APPLICATION", + "APP_CATEGORY_DEVOPS", + "APP_CATEGORY_OTHERS" + ] + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "titlePattern", + "description": "query param : \"title-pattern\" . Search * titlePattern * in name field to filter records", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "matchAnyTag", + "description": "query param : \"match-any-tag\" . If true, match any of the provided tags (OR logic). If false (default), match all provided tags (AND logic).", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps": { + "get": { + "summary": "Query edge application bundles", + "description": "Query the edge application bundle records.", + "operationId": "EdgeApplicationConfiguration_QueryEdgeApplicationBundles", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/Apps" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "namePattern", + "description": "query param : \"name-pattern\" . Search * namePattern * in name field to filter records", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "originType", + "description": "origin of bundle", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "category", + "description": "category type of the bundle", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "summary", + "description": "Only summary of the records required", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "appType", + "description": "app type, eg: vm, container, module", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "APP_TYPE_UNSPECIFIED", + "APP_TYPE_VM", + "APP_TYPE_VM_RUNTIME", + "APP_TYPE_CONTAINER", + "APP_TYPE_MODULE", + "APP_TYPE_DOCKER_COMPOSE" + ], + "default": "APP_TYPE_UNSPECIFIED" + }, + { + "name": "deploymentType", + "description": "type of deployment for the app, eg: azure, k3s, standalone", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DEPLOYMENT_TYPE_UNSPECIFIED", + "DEPLOYMENT_TYPE_STAND_ALONE", + "DEPLOYMENT_TYPE_AZURE", + "DEPLOYMENT_TYPE_K3S", + "DEPLOYMENT_TYPE_AWS", + "DEPLOYMENT_TYPE_K3S_AZURE", + "DEPLOYMENT_TYPE_K3S_AWS", + "DEPLOYMENT_TYPE_VMWARE_VCE", + "DEPLOYMENT_TYPE_VMWARE_TKG_ATTACH", + "DEPLOYMENT_TYPE_DOCKER_RUNTIME" + ], + "default": "DEPLOYMENT_TYPE_UNSPECIFIED" + }, + { + "name": "appCategory", + "description": "category types of the bundle\n\n - APP_CATEGORY_UNSPECIFIED: Invalid Edge Application Category\n - APP_CATEGORY_OPERATING_SYSTEM: Edge operating systems\n - APP_CATEGORY_INDUSTRIAL: Connectity solution for industrial protocols\n - APP_CATEGORY_EDGE_APPLICATION: Edge application framework featuring composite functions for data ingestion, buffering, analytics and export\n - APP_CATEGORY_NETWORKING: Edge networking services (e.g. SD-WAN, NFV)\n - APP_CATEGORY_SECURITY: Edge security services (e.g. protocol inspection, firewall)\n - APP_CATEGORY_DATA_ANALYTICS: Edge analytics (e.g. AI/ML) and data management (e.g. database, connectors) services\n - APP_CATEGORY_CLOUD_APPLICATION: Edge application runtimes, cloud connectivity and general application enablement\n - APP_CATEGORY_DEVOPS: Tools for Edge Application CI/CD and performance optimization\n - APP_CATEGORY_OTHERS: Miscellaneous functionality", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string", + "enum": [ + "APP_CATEGORY_UNSPECIFIED", + "APP_CATEGORY_OPERATING_SYSTEM", + "APP_CATEGORY_INDUSTRIAL", + "APP_CATEGORY_EDGE_APPLICATION", + "APP_CATEGORY_NETWORKING", + "APP_CATEGORY_SECURITY", + "APP_CATEGORY_DATA_ANALYTICS", + "APP_CATEGORY_CLOUD_APPLICATION", + "APP_CATEGORY_DEVOPS", + "APP_CATEGORY_OTHERS" + ] + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "titlePattern", + "description": "query param : \"title-pattern\" . Search * titlePattern * in name field to filter records", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "matchAnyTag", + "description": "query param : \"match-any-tag\" . If true, match any of the provided tags (OR logic). If false (default), match all provided tags (AND logic).", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + }, + "post": { + "summary": "Create edge application bundle", + "description": "Create an edge application bundle record.", + "operationId": "EdgeApplicationConfiguration_CreateEdgeApplicationBundle", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this edge application record will conflict with an already existing edge application record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/App" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps/global": { + "get": { + "summary": "Query global edge application bundles", + "description": "Query the edge application bundle records present in the parent enetrprise", + "operationId": "EdgeApplicationConfiguration_QueryGlobalEdgeApplicationBundles", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/Apps" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "namePattern", + "description": "query param : \"name-pattern\" . Search * namePattern * in name field to filter records", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "originType", + "description": "origin of bundle", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "category", + "description": "category type of the bundle", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "summary", + "description": "Only summary of the records required", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "appType", + "description": "app type, eg: vm, container, module", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "APP_TYPE_UNSPECIFIED", + "APP_TYPE_VM", + "APP_TYPE_VM_RUNTIME", + "APP_TYPE_CONTAINER", + "APP_TYPE_MODULE", + "APP_TYPE_DOCKER_COMPOSE" + ], + "default": "APP_TYPE_UNSPECIFIED" + }, + { + "name": "deploymentType", + "description": "type of deployment for the app, eg: azure, k3s, standalone", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DEPLOYMENT_TYPE_UNSPECIFIED", + "DEPLOYMENT_TYPE_STAND_ALONE", + "DEPLOYMENT_TYPE_AZURE", + "DEPLOYMENT_TYPE_K3S", + "DEPLOYMENT_TYPE_AWS", + "DEPLOYMENT_TYPE_K3S_AZURE", + "DEPLOYMENT_TYPE_K3S_AWS", + "DEPLOYMENT_TYPE_VMWARE_VCE", + "DEPLOYMENT_TYPE_VMWARE_TKG_ATTACH", + "DEPLOYMENT_TYPE_DOCKER_RUNTIME" + ], + "default": "DEPLOYMENT_TYPE_UNSPECIFIED" + }, + { + "name": "appCategory", + "description": "category types of the bundle\n\n - APP_CATEGORY_UNSPECIFIED: Invalid Edge Application Category\n - APP_CATEGORY_OPERATING_SYSTEM: Edge operating systems\n - APP_CATEGORY_INDUSTRIAL: Connectity solution for industrial protocols\n - APP_CATEGORY_EDGE_APPLICATION: Edge application framework featuring composite functions for data ingestion, buffering, analytics and export\n - APP_CATEGORY_NETWORKING: Edge networking services (e.g. SD-WAN, NFV)\n - APP_CATEGORY_SECURITY: Edge security services (e.g. protocol inspection, firewall)\n - APP_CATEGORY_DATA_ANALYTICS: Edge analytics (e.g. AI/ML) and data management (e.g. database, connectors) services\n - APP_CATEGORY_CLOUD_APPLICATION: Edge application runtimes, cloud connectivity and general application enablement\n - APP_CATEGORY_DEVOPS: Tools for Edge Application CI/CD and performance optimization\n - APP_CATEGORY_OTHERS: Miscellaneous functionality", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string", + "enum": [ + "APP_CATEGORY_UNSPECIFIED", + "APP_CATEGORY_OPERATING_SYSTEM", + "APP_CATEGORY_INDUSTRIAL", + "APP_CATEGORY_EDGE_APPLICATION", + "APP_CATEGORY_NETWORKING", + "APP_CATEGORY_SECURITY", + "APP_CATEGORY_DATA_ANALYTICS", + "APP_CATEGORY_CLOUD_APPLICATION", + "APP_CATEGORY_DEVOPS", + "APP_CATEGORY_OTHERS" + ] + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "titlePattern", + "description": "query param : \"title-pattern\" . Search * titlePattern * in name field to filter records", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "matchAnyTag", + "description": "query param : \"match-any-tag\" . If true, match any of the provided tags (OR logic). If false (default), match all provided tags (AND logic).", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps/global/id/{id}": { + "get": { + "summary": "Get global edge application bundle", + "description": "Get the configuration (without security details) of a global edge application bundle record.", + "operationId": "EdgeApplicationConfiguration_GetGlobalEdgeApplicationBundle", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/App" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the edge application", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps/global/name/{name}": { + "get": { + "summary": "Get global edge application bundle", + "description": "Get the configuration (without security details) of a global edge application bundle record.", + "operationId": "EdgeApplicationConfiguration_GetGlobalEdgeApplicationBundleByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/App" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "User defined name of the edge application, unique across the enterprise. Once object is created, name can\u2019t be changed", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps/id/{id}": { + "get": { + "summary": "Get edge application bundle", + "description": "Get the configuration (without security details) of an edge application bundle record.", + "operationId": "EdgeApplicationConfiguration_GetEdgeApplicationBundle", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/App" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the edge application", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + }, + "delete": { + "summary": "Delete edge application bundle", + "description": "Delete an edge application bundle record.", + "operationId": "EdgeApplicationConfiguration_DeleteEdgeApplicationBundle", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because there are instances of this edge application deployed in edge node(s)", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the edge application", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + }, + "put": { + "summary": "Update edge application bundle", + "description": "Update an edge application bundle record. The usual pattern to update an edge application bundle record is to retrieve the record and update with the modified values in a new body to update the edge application bundle record.", + "operationId": "EdgeApplicationConfiguration_UpdateEdgeApplicationBundle", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing edge network record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/App_HttpRequest" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps/id/{id}/projects": { + "get": { + "summary": "Query the project access list of an edge application bundle", + "description": "Query the project access list of an edge application bundle", + "operationId": "EdgeApplicationConfiguration_QueryEdgeApplicationBundleProjectList", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AppProjectList" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the app bundle", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps/instances": { + "get": { + "summary": "Query edge application instances", + "description": "Query the edge application instance records.", + "operationId": "EdgeApplicationInstanceConfiguration_QueryEdgeApplicationInstances", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AppInstances" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "project", + "description": "User defined name of the project, unique across the enterprise. Once project is created, name can\u2019t be changed", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "bundle", + "description": "User defined name of the app instance, unique across the enterprise. Once app instance is created, name can\u2019t be changed", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "device", + "description": "User defined name of the device, unique across the enterprise. Once device is created, name can\u2019t be changed", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "namePattern", + "description": "name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "appType", + "description": "type of bundle", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "deploymentType", + "description": "type of deployment for the app, eg: azure, k3s, standalone", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DEPLOYMENT_TYPE_UNSPECIFIED", + "DEPLOYMENT_TYPE_STAND_ALONE", + "DEPLOYMENT_TYPE_AZURE", + "DEPLOYMENT_TYPE_K3S", + "DEPLOYMENT_TYPE_AWS", + "DEPLOYMENT_TYPE_K3S_AZURE", + "DEPLOYMENT_TYPE_K3S_AWS", + "DEPLOYMENT_TYPE_VMWARE_VCE", + "DEPLOYMENT_TYPE_VMWARE_TKG_ATTACH", + "DEPLOYMENT_TYPE_DOCKER_RUNTIME" + ], + "default": "DEPLOYMENT_TYPE_UNSPECIFIED" + }, + { + "name": "projectNamePattern", + "description": "project name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "deviceNamePattern", + "description": "device name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "summary", + "description": "summary flag", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "titlePattern", + "description": "title pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "fields", + "description": "Fields to select: id, name, title, description, projectId, tags, clusterID, appId, deviceId, manifestInfo, appType, appPolicyId, userDefinedVersion, remoteConsole", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + }, + "post": { + "summary": "Create edge application instance", + "description": "Create an edge application instance record.", + "operationId": "EdgeApplicationInstanceConfiguration_CreateEdgeApplicationInstance", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this edge application instance record will conflict with an already existing edge application iinstance record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AppInstance" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps/instances/id/{appInstanceId}/snapshot/name/{name}": { + "get": { + "summary": "Query Application instance snapshot", + "description": "Returns the snapshot with the specified name and application instance", + "operationId": "EdgeApplicationInstanceStatus_GetAppInstanceSnapshot", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AppInstanceSnapshot" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "appInstanceId", + "description": "Application Instance UUID", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "name", + "description": "Snapshot name. Unique across the application instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ] + }, + "delete": { + "summary": "Delete Application instance snapshot", + "description": "Deletes application instance snapshot with the specified name", + "operationId": "EdgeApplicationInstanceStatus_DeleteAppInstanceSnapshot", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "appInstanceId", + "description": "Application Instance UUID", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "name", + "description": "Snapshot name. Unique across the application instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ] + } + }, + "/v1/apps/instances/id/{id}": { + "get": { + "summary": "Get edge application instance", + "description": "Get the configuration (without security details) of an edge application instance record.", + "operationId": "EdgeApplicationInstanceConfiguration_GetEdgeApplicationInstance", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AppInstance" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the app instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + }, + "delete": { + "summary": "Delete edge application instance", + "description": "Delete an edge application instance record.", + "operationId": "EdgeApplicationInstanceConfiguration_DeleteEdgeApplicationInstance", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the app instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + }, + "put": { + "summary": "Update edge application instance", + "description": "Update an edge application instance. The usual pattern to update an edge application bundle record is to retrieve the record and update with the modified values in a new body to update the edge application bundle record.", + "operationId": "EdgeApplicationInstanceConfiguration_UpdateEdgeApplicationInstance", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing edge network record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AppInstanceUpdate_HttpRequest" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps/instances/id/{id}/activate": { + "put": { + "summary": "Activate edge application instance", + "description": "Activate an edge application instance. If already in active state no action is taken.", + "operationId": "EdgeApplicationInstanceConfiguration_ActivateEdgeApplicationInstance", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing edge network record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the app instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps/instances/id/{id}/console/remote": { + "put": { + "summary": "Connect to edge application instance console", + "description": "Remotely connect to console of an edge application instance running on the edge node where the edge application instance has been deployed.", + "operationId": "EdgeApplicationInstanceConfiguration_ConnectToEdgeApplicationInstance", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing edge network record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the app instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps/instances/id/{id}/deactivate": { + "put": { + "summary": "Deactivate edge application instance", + "description": "Deactivate an edge application instance. If already in inactive state no action is taken.", + "operationId": "EdgeApplicationInstanceConfiguration_DeActivateEdgeApplicationInstance", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing edge network record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the app instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps/instances/id/{id}/flowlog/classification": { + "get": { + "summary": "Get edge application instance network traffic flow log", + "description": "Get the network traffic flow log of an edge application instance as reported by the edge node where the edge application instance has been deployed.", + "operationId": "EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceTrafficFlows", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ClassificationResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "startTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "levels", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "DIRECTION", + "ACL_ID", + "ACTION", + "PROTO", + "REMOTE_IP", + "REMOTE_PORT", + "FQDN" + ] + }, + "collectionFormat": "multi" + }, + { + "name": "enterpriseId", + "description": "deprecated field", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metric", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "direction", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "aclid", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "action", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "FLOW_LOG_ACTION_UNSPECIFIED", + "FLOW_LOG_ACTION_DROP", + "FLOW_LOG_ACTION_ACCEPT" + ], + "default": "FLOW_LOG_ACTION_UNSPECIFIED" + }, + { + "name": "proto", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "remoteip", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "remoteport", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "fqdn", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps/instances/id/{id}/flowlog/toptalkers": { + "get": { + "summary": "Get edge application instance top talkers of the network traffic flows", + "description": "Get the top talkers of the network traffic flows of an edge application instance as reported by the edge node where the edge application instance has been deployed.", + "operationId": "EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceTopTalkers", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/TopTalkersResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "startTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "metricType", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "FLOW_LOG_METRIC_UNSPECIFIED", + "FLOW_LOG_METRIC_BYTES", + "FLOW_LOG_METRIC_PACKETS" + ], + "default": "FLOW_LOG_METRIC_UNSPECIFIED" + }, + { + "name": "enterpriseId", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "Cursor.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "Cursor.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "Cursor.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "Cursor.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "Cursor.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps/instances/id/{id}/logs": { + "get": { + "summary": "Get edge application instance log", + "description": "Get the log of an edge application instance as reported by the edge node where the edge application instance has been deployed.", + "operationId": "EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceLogs", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AppInstanceLogsResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the app instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "startTime", + "description": "start time for querying the app instance logs", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "description": "entime for querying the app instacne logs", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "interval", + "description": "interval at which logs needs to fetched", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "Cursor.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "Cursor.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "Cursor.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "Cursor.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "Cursor.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps/instances/id/{id}/opaque-status": { + "get": { + "summary": "Get patch envelope opaque status as base64 encoded string", + "description": "Get the base64 encoded opaque status of patch envelope attached to edge application instance as reported by the app instance.", + "operationId": "EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceOpaqueStatusById", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/OpaqueAppInstanceStatus" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the app instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps/instances/id/{id}/refresh": { + "put": { + "summary": "Refresh edge application instance", + "description": "Refresh an edge application instance. Update edge application instance to the latest version of the edge application. This operation will result in a restart of the edge application instance.", + "operationId": "EdgeApplicationInstanceConfiguration_RefreshEdgeApplicationInstance", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing edge network record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the app instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps/instances/id/{id}/refresh/purge": { + "put": { + "summary": "Refresh and purge edge application instance", + "description": "Refresh and purge an edge application instance, update edge application instance to the latest version of the edge application. This operation will result in loss of data and a restart of the edge application instance. ", + "operationId": "EdgeApplicationInstanceConfiguration_RefreshPurgeEdgeApplicationInstance", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing edge network record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the app instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps/instances/id/{id}/restart": { + "put": { + "summary": "Restart edge application instance", + "description": "Restart an edge application instance, initiate a restart of the edge application instance.", + "operationId": "EdgeApplicationInstanceConfiguration_RestartEdgeApplicationInstance", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing edge network record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the app instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps/instances/id/{id}/snapshots": { + "get": { + "summary": "Query Application instance snapshots", + "description": "Returns the list of all snapshots for the specified application instance", + "operationId": "EdgeApplicationInstanceStatus_GetAppInstanceSnapshots", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AppInstSnapshotsList" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the app instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ] + } + }, + "/v1/apps/instances/id/{id}/status": { + "get": { + "summary": "Get edge application instance status", + "description": "Get the status of an edge application instance as reported by the edge node where the edge application instance has been deployed.", + "operationId": "EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceStatus", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AppInstStatusMsg" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the app instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps/instances/id/{objid}/events": { + "get": { + "summary": "Get edge application instance events by id", + "description": "Get configuration and status events of an edge application instance by id.", + "operationId": "EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceEvents", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/EventQueryResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "objid", + "description": "Object id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "startTime", + "description": "start time in timestamp", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "description": "end time", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "severity", + "description": "severity", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "resource", + "description": "resource", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps/instances/id/{objid}/timeSeries/{mType}": { + "get": { + "summary": "Get edge application instance resource usage timeline", + "description": "Get the resource usage timeline of an edge application instance as reported by the edge node where the edge application instance has been deployed.", + "operationId": "EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceResourceMetricsById", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/MetricQueryResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "objid", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "mType", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "UNSPECIFIED", + "CPU_TOTAL", + "CPU_USAGE", + "MEMORY_TOTAL", + "MEMORY_UTILIZATION", + "NETWORK_TOTAL", + "NETWORK_RATES", + "EVENTS_COUNT", + "STORAGE_UTILIZATION", + "STORAGE_IO_ZPOOL", + "STORAGE_IO_ZVOL" + ] + }, + { + "name": "startTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "interval", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps/instances/name/{name}": { + "get": { + "summary": "Get edge application instance", + "description": "Get the configuration (without security details) of an edge application instance record.", + "operationId": "EdgeApplicationInstanceConfiguration_GetEdgeApplicationInstanceByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AppInstance" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "User defined name of the app instance, unique across the enterprise. Once app instance is created, name can\u2019t be changed", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps/instances/name/{name}/flowlog/classification": { + "get": { + "summary": "Get edge application instance network traffic flow log", + "description": "Get the network traffic flow log of an edge application instance as reported by the edge node where the edge application instance has been deployed.", + "operationId": "EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceTrafficFlows2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ClassificationResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "startTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "levels", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "DIRECTION", + "ACL_ID", + "ACTION", + "PROTO", + "REMOTE_IP", + "REMOTE_PORT", + "FQDN" + ] + }, + "collectionFormat": "multi" + }, + { + "name": "enterpriseId", + "description": "deprecated field", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metric", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "direction", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "aclid", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "action", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "FLOW_LOG_ACTION_UNSPECIFIED", + "FLOW_LOG_ACTION_DROP", + "FLOW_LOG_ACTION_ACCEPT" + ], + "default": "FLOW_LOG_ACTION_UNSPECIFIED" + }, + { + "name": "proto", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "remoteip", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "remoteport", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "fqdn", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps/instances/name/{name}/flowlog/toptalkers": { + "get": { + "summary": "Get edge application instance top talkers of the network traffic flows", + "description": "Get the top talkers of the network traffic flows of an edge application instance as reported by the edge node where the edge application instance has been deployed.", + "operationId": "EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceTopTalkers2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/TopTalkersResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "startTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "metricType", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "FLOW_LOG_METRIC_UNSPECIFIED", + "FLOW_LOG_METRIC_BYTES", + "FLOW_LOG_METRIC_PACKETS" + ], + "default": "FLOW_LOG_METRIC_UNSPECIFIED" + }, + { + "name": "enterpriseId", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "Cursor.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "Cursor.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "Cursor.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "Cursor.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "Cursor.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps/instances/name/{name}/opaque-status": { + "get": { + "summary": "Get patch envelope opaque status as base64 encoded string", + "description": "Get the base64 encoded opaque status of patch envelope attached to edge application instance as reported by the app instance.", + "operationId": "EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceOpaqueStatusByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/OpaqueAppInstanceStatus" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "User defined name of the app instance, unique across the enterprise. Once app instance is created, name can\u2019t be changed", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps/instances/name/{name}/status": { + "get": { + "summary": "Get edge application instance status", + "description": "Get the status of an edge application instance as reported by the edge node where the edge application instance has been deployed.", + "operationId": "EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceStatusByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AppInstStatusMsg" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "User defined name of the app instance, unique across the enterprise. Once app instance is created, name can\u2019t be changed", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps/instances/name/{objname}/events": { + "get": { + "summary": "Get edge application instance events by name", + "description": "Get configuration and status events of an edge application instance by name.", + "operationId": "EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceEventsByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/EventQueryResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "objname", + "description": "Object name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "startTime", + "description": "start time in timestamp", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "description": "end time", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "severity", + "description": "severity", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "resource", + "description": "resource", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps/instances/name/{objname}/timeSeries/{mType}": { + "get": { + "summary": "Get edge application instance resource usage timeline", + "description": "Get the resource usage timeline of an edge application instance as reported by the edge node where the edge application instance has been deployed.", + "operationId": "EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceResourceMetricsByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/MetricQueryResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "objname", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "mType", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "UNSPECIFIED", + "CPU_TOTAL", + "CPU_USAGE", + "MEMORY_TOTAL", + "MEMORY_UTILIZATION", + "NETWORK_TOTAL", + "NETWORK_RATES", + "EVENTS_COUNT", + "STORAGE_UTILIZATION", + "STORAGE_IO_ZPOOL", + "STORAGE_IO_ZVOL" + ] + }, + { + "name": "startTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "interval", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps/instances/patch-reference-update": { + "post": { + "summary": "Patch envelope reference update", + "description": "Attach/detach a patch envelope to app instance. For detaching, pass patch envelope id as empty string", + "operationId": "EdgeApplicationInstanceConfiguration_UpdatePatchEnvelopeReferencetoAppInstance", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "202": { + "description": "Accepted. The API gateway accepted the request for updating patch envelope reference but the update process has not been completed. Please check the job status to track the status of patch envelope reference update and any error messages.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PatchReferenceUpdateConfig" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps/instances/snapshot/id/{id}": { + "get": { + "summary": "Query Application instance snapshot", + "description": "Returns the snapshot with the specified UUID", + "operationId": "EdgeApplicationInstanceStatus_GetAppInstanceSnapshotByID", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AppInstanceSnapshot" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the app instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ] + } + }, + "/v1/apps/instances/snapshot/id/{id}/state": { + "get": { + "summary": "Query Application instance snapshot state", + "description": "Returns the snapshot state with the specified UUID", + "operationId": "EdgeApplicationInstanceStatus_GetAppInstanceSnapshotState", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AppInstanceSnapshotState" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the app instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ] + } + }, + "/v1/apps/instances/status": { + "get": { + "summary": "Query status of edge application instances", + "description": "Query the status of edge application instances as reported by the edge nodes where the edge application instances have been deployed.", + "operationId": "EdgeApplicationInstanceStatus_QueryEdgeApplicationInstanceStatus", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AppInstStatusListMsg" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "description": "app instance summary flag", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "appName", + "description": "User defined name of the app bundle, unique across the enterprise. Once app bundle is created, name can\u2019t be changed", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "runState", + "description": "aperation status", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "ONLINE", + "HALTED", + "INIT", + "REBOOTING", + "OFFLINE", + "UNKNOWN", + "UNPROVISIONED", + "PROVISIONED", + "SUSPECT", + "DOWNLOADING", + "RESTARTING", + "PURGING", + "HALTING", + "ERROR", + "VERIFYING", + "LOADING", + "CREATING_VOLUME", + "BOOTING", + "MAINTENANCE_MODE", + "START_DELAYED", + "BASEOS_UPDATING", + "PREPARING_POWEROFF", + "POWERING_OFF", + "PREPARED_POWEROFF" + ], + "default": "UNSPECIFIED" + }, + { + "name": "deviceName", + "description": "User defined name of the device, unique across the enterprise. Once device is created, name can\u2019t be changed", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "projectName", + "description": "User defined name of the project, unique across the enterprise. Once project is created, name can\u2019t be changed", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "namePattern", + "description": "name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "type", + "description": "type of app", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "tags", + "description": "json stringified key value pairs", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "projectNamePattern", + "description": "project name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "deviceNamePattern", + "description": "device name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "fields", + "description": "Fields to select: id, name, deviceId, appId, tags, adminState, clusterID, runState, Memory, Storage, swState, Cpu, projectId, title, appType, deploymentType, memorySummary", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "patchEnvelopeNamePattern", + "description": "patch envelope name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "patchEnvelopeReference", + "description": "app instance patch envelope reference check", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "REFERENCING_PATCH", + "NOT_REFERENCING_PATCH" + ], + "default": "UNSPECIFIED" + }, + { + "name": "titlePattern", + "description": "title pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "edgeNodeClusterID", + "description": "edge node cluster id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps/instances/status-config": { + "get": { + "summary": "Query status and config of edge application instances", + "description": "Edge application instances status config API is a composite API for application instance config and application instance status", + "operationId": "EdgeApplicationInstanceStatus_QueryEdgeApplicationInstanceStatusConfig", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AppInstConfigStatusList" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "description": "app instance summary flag", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "appName", + "description": "User defined name of the app bundle, unique across the enterprise. Once app bundle is created, name can\u2019t be changed", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "runState", + "description": "aperation status", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "ONLINE", + "HALTED", + "INIT", + "REBOOTING", + "OFFLINE", + "UNKNOWN", + "UNPROVISIONED", + "PROVISIONED", + "SUSPECT", + "DOWNLOADING", + "RESTARTING", + "PURGING", + "HALTING", + "ERROR", + "VERIFYING", + "LOADING", + "CREATING_VOLUME", + "BOOTING", + "MAINTENANCE_MODE", + "START_DELAYED", + "BASEOS_UPDATING", + "PREPARING_POWEROFF", + "POWERING_OFF", + "PREPARED_POWEROFF" + ], + "default": "UNSPECIFIED" + }, + { + "name": "deviceName", + "description": "User defined name of the device, unique across the enterprise. Once device is created, name can\u2019t be changed", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "projectName", + "description": "User defined name of the project, unique across the enterprise. Once project is created, name can\u2019t be changed", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "namePattern", + "description": "name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "type", + "description": "type of app", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "tags", + "description": "json stringified key value pairs", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "projectNamePattern", + "description": "project name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "deviceNamePattern", + "description": "device name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "fields", + "description": "Fields to select: id, name, deviceId, appId, tags, adminState, clusterID, runState, Memory, Storage, swState, Cpu, projectId, title, appType, deploymentType, memorySummary", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "patchEnvelopeNamePattern", + "description": "patch envelope name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "patchEnvelopeReference", + "description": "app instance patch envelope reference check", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "REFERENCING_PATCH", + "NOT_REFERENCING_PATCH" + ], + "default": "UNSPECIFIED" + }, + { + "name": "titlePattern", + "description": "title pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "edgeNodeClusterID", + "description": "edge node cluster id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps/instances/tags": { + "get": { + "summary": "Query Application instance tags", + "description": "Application Instance tags LIST API is to fetch the interfaces tags attached to app instances.", + "operationId": "EdgeApplicationInstanceStatus_GetApplicationInterfaceTags", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ObjectTagsList" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/apps/name/{name}": { + "get": { + "summary": "Get edge application bundle", + "description": "Get the configuration (without security details) of an edge application bundle record.", + "operationId": "EdgeApplicationConfiguration_GetEdgeApplicationBundleByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/App" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "User defined name of the edge application, unique across the enterprise. Once object is created, name can\u2019t be changed", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v1/patch-envelope": { + "get": { + "summary": "Get all the patch envelopes", + "description": "Get the list of patch envelope details.", + "operationId": "PatchEnvelopeConfiguration_GetPatchEnvelope", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/PatchEnvelopeList" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "projectNamePattern", + "description": "project name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "namePattern", + "description": "patch envelope name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "summary", + "description": "Only summary of the records required", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "PatchEnvelopeConfiguration" + ] + }, + "post": { + "summary": "Create patch envelope", + "description": "Create a patch envelope record.", + "operationId": "PatchEnvelopeConfiguration_CreatePatchEnvelope", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PatchEnvelope" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "PatchEnvelopeConfiguration" + ] + } + }, + "/v1/patch-envelope/id/{id}": { + "get": { + "summary": "Get patch envelope by id", + "description": "Get patch envelope detail by patch envelope id.", + "operationId": "PatchEnvelopeConfiguration_GetPatchEnvelopeById", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/PatchEnvelope" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the patch envelope", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "PatchEnvelopeConfiguration" + ] + }, + "delete": { + "summary": "Delete patch envelope", + "description": "Deletes patch envelope with specified id", + "operationId": "PatchEnvelopeConfiguration_DeleteAppInstanceSnapshot", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the patch envelope", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "PatchEnvelopeConfiguration" + ] + }, + "put": { + "summary": "Update patch envelope", + "description": "Update apatch envelope record. The usual pattern to update a patch envelope bundle record is to retrieve the record and update with the modified values in a new body.", + "operationId": "PatchEnvelopeConfiguration_UpdatePatchEnvelope", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the patch envelope.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "User defined name of the patch envelope, unique across the enterprise. Once patch envelope is created, name can\u2019t be changed.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the patch envelope. Title can be changed at any time.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+" + }, + "description": { + "type": "string", + "description": "Detailed description of the patch envelope.", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined info", + "readOnly": true + }, + "userDefinedVersion": { + "type": "string", + "description": "User defined version for the given patch envelope", + "title": "optional - arbitrary version string if any by user" + }, + "action": { + "$ref": "#/definitions/PatchEnvelopeAction", + "description": "Flag to represent whether device needs to present it to app instance", + "title": "if activate is false, device should only download\nimages and not present them to app instance" + }, + "artifacts": { + "type": "array", + "items": { + "$ref": "#/definitions/BinaryArtifact" + }, + "description": "Patch envelope artifacts" + }, + "projectId": { + "type": "string", + "description": "project id" + }, + "deviceCount": { + "type": "number", + "format": "int64", + "description": "number of devices referencing this patch envelope" + }, + "projectName": { + "type": "string", + "description": "project name" + } + }, + "description": "PatchEnvelope is a proto that should be used by user-agents to create/update opaque data for application instances.", + "title": "Opaque data for application instances", + "required": [ + "name", + "title", + "action", + "artifacts" + ] + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "PatchEnvelopeConfiguration" + ] + } + }, + "/v1/patch-envelope/name/{name}": { + "get": { + "summary": "Get patch envelope by name", + "description": "Get patch envelope detail by patch envelope name.", + "operationId": "PatchEnvelopeConfiguration_GetPatchEnvelopeByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/PatchEnvelope" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "User defined name of the patch envelope, unique across the enterprise. Once object is created, name can\u2019t be changed", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "PatchEnvelopeConfiguration" + ] + } + }, + "/v1/patch-envelope/status": { + "get": { + "summary": "Get patch envelope status", + "description": "Get patch envelope status information.", + "operationId": "PatchEnvelopeConfiguration_GetPatchEnvelopeStatus", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/PatchStatusListMsg" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "filter.deviceName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "fields", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "PatchEnvelopeConfiguration" + ] + } + }, + "/v2/apps/instances": { + "get": { + "summary": "Query edge application instances", + "description": "v2 API to query the edge application instance records.", + "operationId": "EdgeApplicationInstanceConfiguration_QueryEdgeApplicationInstancesV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AppInstances" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "project", + "description": "User defined name of the project, unique across the enterprise. Once project is created, name can\u2019t be changed", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "bundle", + "description": "User defined name of the app instance, unique across the enterprise. Once app instance is created, name can\u2019t be changed", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "device", + "description": "User defined name of the device, unique across the enterprise. Once device is created, name can\u2019t be changed", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "namePattern", + "description": "name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "appType", + "description": "type of bundle", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "deploymentType", + "description": "type of deployment for the app, eg: azure, k3s, standalone", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DEPLOYMENT_TYPE_UNSPECIFIED", + "DEPLOYMENT_TYPE_STAND_ALONE", + "DEPLOYMENT_TYPE_AZURE", + "DEPLOYMENT_TYPE_K3S", + "DEPLOYMENT_TYPE_AWS", + "DEPLOYMENT_TYPE_K3S_AZURE", + "DEPLOYMENT_TYPE_K3S_AWS", + "DEPLOYMENT_TYPE_VMWARE_VCE", + "DEPLOYMENT_TYPE_VMWARE_TKG_ATTACH", + "DEPLOYMENT_TYPE_DOCKER_RUNTIME" + ], + "default": "DEPLOYMENT_TYPE_UNSPECIFIED" + }, + { + "name": "projectNamePattern", + "description": "project name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "deviceNamePattern", + "description": "device name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "summary", + "description": "summary flag", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "titlePattern", + "description": "title pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "fields", + "description": "Fields to select: id, name, title, description, projectId, tags, clusterID, appId, deviceId, manifestInfo, appType, appPolicyId, userDefinedVersion, remoteConsole", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + }, + "post": { + "summary": "Create edge application instance", + "description": "v2 API to create an edge application instance record.", + "operationId": "EdgeApplicationInstanceConfiguration_CreateEdgeApplicationInstanceV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AppInstance" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v2/apps/instances/id/{id}": { + "get": { + "summary": "Get edge application instance", + "description": "v2 API to get the configuration (without security details) of an edge application instance record.", + "operationId": "EdgeApplicationInstanceConfiguration_GetEdgeApplicationInstanceV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AppInstance" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the app instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + }, + "delete": { + "summary": "Delete edge application instance", + "description": "v2 API to delete an edge application instance record.", + "operationId": "EdgeApplicationInstanceConfiguration_DeleteEdgeApplicationInstanceV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the app instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + }, + "put": { + "summary": "Update edge application instance", + "description": "v2 API to update an edge application instance. The usual pattern to update an edge application bundle record is to retrieve the record and update with the modified values in a new body to update the edge application bundle record.", + "operationId": "EdgeApplicationInstanceConfiguration_UpdateEdgeApplicationInstanceV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the app instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "User defined name of the app instance, unique across the enterprise. Once app instance is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the app instance. Title can be changed at any time", + "maxLength": 256, + "minLength": 3, + "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$" + }, + "description": { + "type": "string", + "description": "Detailed description of the app instance", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "app instance object revision details" + }, + "projectId": { + "type": "string", + "description": "project name which the given app instance belong to" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "clusterID": { + "type": "string", + "description": "System defined universally unique clusterInstance ID, unique across the enterprise.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "appId": { + "type": "string", + "description": "User defined name of the edge app, unique across the enterprise. Once app name is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "deviceId": { + "type": "string", + "description": "User defined name of the device name, unique across the enterprise. Once device name is defined, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "activate": { + "type": "boolean", + "description": "app instance activation flag" + }, + "vminfo": { + "$ref": "#/definitions/vm", + "description": "virtual machine info" + }, + "drives": { + "type": "array", + "items": { + "$ref": "#/definitions/drive" + }, + "description": "drive details" + }, + "interfaces": { + "type": "array", + "items": { + "$ref": "#/definitions/appInterface" + }, + "description": "application interfaces" + }, + "userData": { + "type": "string", + "description": "Deprecated: Application initiazation script in cloud-config format to be used by cloud-init" + }, + "customConfig": { + "$ref": "#/definitions/CustomConfig", + "description": "Application initialization script template in cloud-config format and user specified values" + }, + "collectStatsIPAddr": { + "type": "string", + "description": "holds the static Ip of the app instance" + }, + "bundleversion": { + "type": "string", + "description": "version of bundle app is referring to" + }, + "logs": { + "$ref": "#/definitions/AppInstanceLogs", + "description": "App Instance logs" + }, + "restart": { + "$ref": "#/definitions/ZedCloudOpsCmd", + "description": "Restart counter: ZedCloudOpsCmd" + }, + "refresh": { + "$ref": "#/definitions/ZedCloudOpsCmd", + "description": "Refresh counter: ZedCloudOpsCmd" + }, + "purge": { + "$ref": "#/definitions/ZedCloudOpsCmd", + "description": "Purge counter: ZedCloudOpsCmd" + }, + "remoteConsole": { + "type": "boolean", + "description": "Remote console flag" + }, + "encryptedSecrets": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "user encrypted secrets map" + }, + "cryptoKey": { + "type": "string", + "description": "Crypto Key for decrypting user secret information" + }, + "manifestInfo": { + "$ref": "#/definitions/ManifestInfo", + "description": "app manifest Info" + }, + "appType": { + "$ref": "#/definitions/AppType", + "description": "type of bundle" + }, + "isSecretUpdated": { + "type": "boolean", + "description": "This field tells whether user secrets has updated or not, especially the cusotom config" + }, + "appPolicyId": { + "type": "string", + "description": "app policy id" + }, + "deploymentType": { + "$ref": "#/definitions/DeploymentType", + "description": "type of deployment for the app, eg: azure, k3s, standalone" + }, + "userDefinedVersion": { + "type": "string", + "description": "Instance version tells which edge app does this instance is running" + }, + "startDelayInSeconds": { + "type": "integer", + "format": "int64", + "description": "start delay is the time in seconds EVE should wait after boot before starting the application instance" + }, + "cloudInitVersion": { + "type": "integer", + "format": "int64", + "description": "Cloud-init version that indicates whether it necessary or not for cloud-init tool to restart in a guest" + }, + "allowSnapshots": { + "type": "boolean", + "description": "Flag to determine if a snapshot creation is allowed" + }, + "maxSnapshots": { + "type": "integer", + "format": "int64", + "description": "Maximum number of snapshots allowed to be created" + }, + "availableSnapshots": { + "type": "array", + "items": { + "$ref": "#/definitions/AppInstanceSnapshot" + }, + "description": "The list of available snapshots of the application instance" + }, + "patchEnvelopeId": { + "type": "string", + "description": "patch envelope id" + }, + "patchEnvelopeName": { + "type": "string", + "description": "patch envelope name" + }, + "edgeNodeCluster": { + "$ref": "#/definitions/AppInstEdgeNodeCluster", + "description": "edge node cluster" + }, + "dockerComposeYamlText": { + "type": "string", + "description": "Docker compose base64 encoded plain text", + "title": "internal field", + "readOnly": true + }, + "dockerComposeTarImageName": { + "type": "string", + "description": "Docker compose tar image name", + "title": "internal field", + "readOnly": true + }, + "datastoreIdList": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of datastore ids containing private registry credentials", + "title": "internal field", + "readOnly": true + }, + "PersistentRuntimeSizeBytes": { + "type": "string", + "format": "uint64", + "description": "Persistent runtime size in bytes" + } + }, + "description": "App Instance detail", + "title": "App Instance detail", + "required": [ + "name", + "title", + "projectId", + "appId", + "deviceId", + "activate" + ] + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v2/apps/instances/id/{id}/activate": { + "put": { + "summary": "Activate edge application instance", + "description": "v2 API to activate an edge application instance. If already in active state no action is taken.", + "operationId": "EdgeApplicationInstanceConfiguration_ActivateEdgeApplicationInstanceV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the app instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v2/apps/instances/id/{id}/console/remote": { + "put": { + "summary": "Connect to edge application instance console", + "description": "v2 API to remotely connect to console of an edge application instance running on the edge node where the edge application instance has been deployed.", + "operationId": "EdgeApplicationInstanceConfiguration_ConnectToEdgeApplicationInstanceV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the app instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v2/apps/instances/id/{id}/deactivate": { + "put": { + "summary": "Deactivate edge application instance", + "description": "v2 API to deactivate an edge application instance. If already in inactive state no action is taken.", + "operationId": "EdgeApplicationInstanceConfiguration_DeActivateEdgeApplicationInstanceV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the app instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v2/apps/instances/id/{id}/flowlog/classification": { + "get": { + "summary": "Get edge application instance network traffic flow log", + "description": "v2 API to get the network traffic flow log of an edge application instance as reported by the edge node where the edge application instance has been deployed.", + "operationId": "EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceTrafficFlowsV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ClassificationResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "startTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "levels", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "DIRECTION", + "ACL_ID", + "ACTION", + "PROTO", + "REMOTE_IP", + "REMOTE_PORT", + "FQDN" + ] + }, + "collectionFormat": "multi" + }, + { + "name": "enterpriseId", + "description": "deprecated field", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metric", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "direction", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "aclid", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "action", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "FLOW_LOG_ACTION_UNSPECIFIED", + "FLOW_LOG_ACTION_DROP", + "FLOW_LOG_ACTION_ACCEPT" + ], + "default": "FLOW_LOG_ACTION_UNSPECIFIED" + }, + { + "name": "proto", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "remoteip", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "remoteport", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "fqdn", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v2/apps/instances/id/{id}/flowlog/toptalkers": { + "get": { + "summary": "Get edge application instance top talkers of the network traffic flows", + "description": "v2 API to get the top talkers of the network traffic flows of an edge application instance as reported by the edge node where the edge application instance has been deployed.", + "operationId": "EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceTopTalkersV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/TopTalkersResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "startTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "metricType", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "FLOW_LOG_METRIC_UNSPECIFIED", + "FLOW_LOG_METRIC_BYTES", + "FLOW_LOG_METRIC_PACKETS" + ], + "default": "FLOW_LOG_METRIC_UNSPECIFIED" + }, + { + "name": "enterpriseId", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "Cursor.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "Cursor.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "Cursor.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "Cursor.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "Cursor.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v2/apps/instances/id/{id}/logs": { + "get": { + "summary": "Get edge application instance log", + "description": "v2 API to get the log of an edge application instance as reported by the edge node where the edge application instance has been deployed.", + "operationId": "EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceLogsV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AppInstanceLogsResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the app instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "startTime", + "description": "start time for querying the app instance logs", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "description": "entime for querying the app instacne logs", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "interval", + "description": "interval at which logs needs to fetched", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "Cursor.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "Cursor.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "Cursor.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "Cursor.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "Cursor.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v2/apps/instances/id/{id}/opaque-status": { + "get": { + "summary": "Get patch envelope opaque status as base64 encoded string", + "description": "Get the base64 encoded opaque status of patch envelope attached to edge application instance as reported by the app instance.", + "operationId": "EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceOpaqueStatusByIdV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/OpaqueAppInstanceStatus" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the app instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v2/apps/instances/id/{id}/refresh": { + "put": { + "summary": "Refresh edge application instance", + "description": "v2 API to refresh an edge application instance. Update edge application instance to the latest version of the edge application. This operation will result in a restart of the edge application instance.", + "operationId": "EdgeApplicationInstanceConfiguration_RefreshEdgeApplicationInstanceV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the app instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v2/apps/instances/id/{id}/refresh/purge": { + "put": { + "summary": "Refresh and purge edge application instance", + "description": "v2 API to refresh and purge an edge application instance, update edge application instance to the latest version of the edge application. This operation will result in loss of data and a restart of the edge application instance.", + "operationId": "EdgeApplicationInstanceConfiguration_RefreshPurgeEdgeApplicationInstanceV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the app instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v2/apps/instances/id/{id}/restart": { + "put": { + "summary": "Restart edge application instance", + "description": "v2 API to restart an edge application instance, initiate a restart of the edge application instance.", + "operationId": "EdgeApplicationInstanceConfiguration_RestartEdgeApplicationInstanceV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the app instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v2/apps/instances/id/{id}/status": { + "get": { + "summary": "Get edge application instance status", + "description": "v2 API to get the status of an edge application instance as reported by the edge node where the edge application instance has been deployed.", + "operationId": "EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceStatusV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AppInstStatusMsg" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the app instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v2/apps/instances/id/{objid}/events": { + "get": { + "summary": "Get edge application instance events by id", + "description": "v2 API to get configuration and status events of an edge application instance by id.", + "operationId": "EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceEventsV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/EventQueryResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "objid", + "description": "Object id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "startTime", + "description": "start time in timestamp", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "description": "end time", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "severity", + "description": "severity", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "resource", + "description": "resource", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v2/apps/instances/id/{objid}/timeSeries/{mType}": { + "get": { + "summary": "Get edge application instance resource usage timeline", + "description": "v2 API to get the resource usage timeline of an edge application instance as reported by the edge node where the edge application instance has been deployed.", + "operationId": "EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceResourceMetricsByIdV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/MetricQueryResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "objid", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "mType", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "UNSPECIFIED", + "CPU_TOTAL", + "CPU_USAGE", + "MEMORY_TOTAL", + "MEMORY_UTILIZATION", + "NETWORK_TOTAL", + "NETWORK_RATES", + "EVENTS_COUNT", + "STORAGE_UTILIZATION", + "STORAGE_IO_ZPOOL", + "STORAGE_IO_ZVOL" + ] + }, + { + "name": "startTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "interval", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v2/apps/instances/name/{name}": { + "get": { + "summary": "Get edge application instance", + "description": "v2 API to get the configuration (without security details) of an edge application instance record.", + "operationId": "EdgeApplicationInstanceConfiguration_GetEdgeApplicationInstanceByNameV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AppInstance" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "User defined name of the app instance, unique across the enterprise. Once app instance is created, name can\u2019t be changed", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v2/apps/instances/name/{name}/flowlog/classification": { + "get": { + "summary": "Get edge application instance network traffic flow log", + "description": "v2 API to get the network traffic flow log of an edge application instance as reported by the edge node where the edge application instance has been deployed.", + "operationId": "EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceTrafficFlowsV22", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ClassificationResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "startTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "levels", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "DIRECTION", + "ACL_ID", + "ACTION", + "PROTO", + "REMOTE_IP", + "REMOTE_PORT", + "FQDN" + ] + }, + "collectionFormat": "multi" + }, + { + "name": "enterpriseId", + "description": "deprecated field", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metric", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "direction", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "aclid", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "action", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "FLOW_LOG_ACTION_UNSPECIFIED", + "FLOW_LOG_ACTION_DROP", + "FLOW_LOG_ACTION_ACCEPT" + ], + "default": "FLOW_LOG_ACTION_UNSPECIFIED" + }, + { + "name": "proto", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "remoteip", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "remoteport", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "fqdn", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v2/apps/instances/name/{name}/flowlog/toptalkers": { + "get": { + "summary": "Get edge application instance top talkers of the network traffic flows", + "description": "v2 API to get the top talkers of the network traffic flows of an edge application instance as reported by the edge node where the edge application instance has been deployed.", + "operationId": "EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceTopTalkersV22", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/TopTalkersResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "startTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "metricType", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "FLOW_LOG_METRIC_UNSPECIFIED", + "FLOW_LOG_METRIC_BYTES", + "FLOW_LOG_METRIC_PACKETS" + ], + "default": "FLOW_LOG_METRIC_UNSPECIFIED" + }, + { + "name": "enterpriseId", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "Cursor.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "Cursor.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "Cursor.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "Cursor.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "Cursor.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v2/apps/instances/name/{name}/opaque-status": { + "get": { + "summary": "Get patch envelope opaque status as base64 encoded string", + "description": "Get the base64 encoded opaque status of patch envelope attached to edge application instance as reported by the app instance.", + "operationId": "EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceOpaqueStatusByNameV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/OpaqueAppInstanceStatus" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "User defined name of the app instance, unique across the enterprise. Once app instance is created, name can\u2019t be changed", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v2/apps/instances/name/{name}/status": { + "get": { + "summary": "Get edge application instance status", + "description": "v2 API to get the status of an edge application instance as reported by the edge node where the edge application instance has been deployed.", + "operationId": "EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceStatusByNameV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AppInstStatusMsg" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "User defined name of the app instance, unique across the enterprise. Once app instance is created, name can\u2019t be changed", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v2/apps/instances/name/{objname}/events": { + "get": { + "summary": "Get edge application instance events by name", + "description": "v2 API to get configuration and status events of an edge application instance by name.", + "operationId": "EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceEventsByNameV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/EventQueryResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "objname", + "description": "Object name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "startTime", + "description": "start time in timestamp", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "description": "end time", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "severity", + "description": "severity", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "resource", + "description": "resource", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v2/apps/instances/name/{objname}/timeSeries/{mType}": { + "get": { + "summary": "Get edge application instance resource usage timeline", + "description": "v2 API to get the resource usage timeline of an edge application instance as reported by the edge node where the edge application instance has been deployed.", + "operationId": "EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceResourceMetricsByNameV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/MetricQueryResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "objname", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "mType", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "UNSPECIFIED", + "CPU_TOTAL", + "CPU_USAGE", + "MEMORY_TOTAL", + "MEMORY_UTILIZATION", + "NETWORK_TOTAL", + "NETWORK_RATES", + "EVENTS_COUNT", + "STORAGE_UTILIZATION", + "STORAGE_IO_ZPOOL", + "STORAGE_IO_ZVOL" + ] + }, + { + "name": "startTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "interval", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v2/apps/instances/patch-reference-update": { + "post": { + "summary": "Patch envelope reference update", + "description": "Attach/detach a patch envelope to app instance. For detaching, pass patch envelope id as empty string", + "operationId": "EdgeApplicationInstanceConfiguration_UpdatePatchEnvelopeReferencetoAppInstanceV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "202": { + "description": "Accepted. The API gateway accepted the request for updating patch envelope reference but the update process has not been completed. Please check the job status to track the status of patch envelope reference update and any error messages.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PatchReferenceUpdateConfig" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v2/apps/instances/status": { + "get": { + "summary": "Query status of edge application instances", + "description": "v2 API to query the status of edge application instances as reported by the edge nodes where the edge application instances have been deployed.", + "operationId": "EdgeApplicationInstanceStatus_QueryEdgeApplicationInstanceStatusV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AppInstStatusListMsg" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "description": "app instance summary flag", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "appName", + "description": "User defined name of the app bundle, unique across the enterprise. Once app bundle is created, name can\u2019t be changed", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "runState", + "description": "aperation status", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "ONLINE", + "HALTED", + "INIT", + "REBOOTING", + "OFFLINE", + "UNKNOWN", + "UNPROVISIONED", + "PROVISIONED", + "SUSPECT", + "DOWNLOADING", + "RESTARTING", + "PURGING", + "HALTING", + "ERROR", + "VERIFYING", + "LOADING", + "CREATING_VOLUME", + "BOOTING", + "MAINTENANCE_MODE", + "START_DELAYED", + "BASEOS_UPDATING", + "PREPARING_POWEROFF", + "POWERING_OFF", + "PREPARED_POWEROFF" + ], + "default": "UNSPECIFIED" + }, + { + "name": "deviceName", + "description": "User defined name of the device, unique across the enterprise. Once device is created, name can\u2019t be changed", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "projectName", + "description": "User defined name of the project, unique across the enterprise. Once project is created, name can\u2019t be changed", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "namePattern", + "description": "name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "type", + "description": "type of app", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "tags", + "description": "json stringified key value pairs", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "projectNamePattern", + "description": "project name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "deviceNamePattern", + "description": "device name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "fields", + "description": "Fields to select: id, name, deviceId, appId, tags, adminState, clusterID, runState, Memory, Storage, swState, Cpu, projectId, title, appType, deploymentType, memorySummary", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "patchEnvelopeNamePattern", + "description": "patch envelope name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "patchEnvelopeReference", + "description": "app instance patch envelope reference check", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "REFERENCING_PATCH", + "NOT_REFERENCING_PATCH" + ], + "default": "UNSPECIFIED" + }, + { + "name": "titlePattern", + "description": "title pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "edgeNodeClusterID", + "description": "edge node cluster id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + }, + "/v2/apps/instances/status-config": { + "get": { + "summary": "Query status and config of edge application instances", + "description": "Edge application instances status config v2 API is a composite API for application instance config and application instance status", + "operationId": "EdgeApplicationInstanceStatus_QueryEdgeApplicationInstanceStatusConfigV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AppInstConfigStatusList" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "description": "app instance summary flag", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "appName", + "description": "User defined name of the app bundle, unique across the enterprise. Once app bundle is created, name can\u2019t be changed", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "runState", + "description": "aperation status", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "ONLINE", + "HALTED", + "INIT", + "REBOOTING", + "OFFLINE", + "UNKNOWN", + "UNPROVISIONED", + "PROVISIONED", + "SUSPECT", + "DOWNLOADING", + "RESTARTING", + "PURGING", + "HALTING", + "ERROR", + "VERIFYING", + "LOADING", + "CREATING_VOLUME", + "BOOTING", + "MAINTENANCE_MODE", + "START_DELAYED", + "BASEOS_UPDATING", + "PREPARING_POWEROFF", + "POWERING_OFF", + "PREPARED_POWEROFF" + ], + "default": "UNSPECIFIED" + }, + { + "name": "deviceName", + "description": "User defined name of the device, unique across the enterprise. Once device is created, name can\u2019t be changed", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "projectName", + "description": "User defined name of the project, unique across the enterprise. Once project is created, name can\u2019t be changed", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "namePattern", + "description": "name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "type", + "description": "type of app", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "tags", + "description": "json stringified key value pairs", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "projectNamePattern", + "description": "project name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "deviceNamePattern", + "description": "device name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "fields", + "description": "Fields to select: id, name, deviceId, appId, tags, adminState, clusterID, runState, Memory, Storage, swState, Cpu, projectId, title, appType, deploymentType, memorySummary", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "patchEnvelopeNamePattern", + "description": "patch envelope name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "patchEnvelopeReference", + "description": "app instance patch envelope reference check", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "REFERENCING_PATCH", + "NOT_REFERENCING_PATCH" + ], + "default": "UNSPECIFIED" + }, + { + "name": "titlePattern", + "description": "title pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "edgeNodeClusterID", + "description": "edge node cluster id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeApplicationInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } + } + } + }, + "definitions": { + "Acl": { + "type": "object", + "properties": { + "matches": { + "type": "array", + "items": { + "$ref": "#/definitions/Match" + }, + "description": "Network traffic matching criteria consistngs of one or more of source IP address, destination IP address, protocol, source port and destination port" + }, + "actions": { + "type": "array", + "items": { + "$ref": "#/definitions/AclAction" + }, + "description": "Chain of actions to be taken on matching network traffic" + }, + "name": { + "type": "string", + "description": "Name of the Access Control List" + } + } + }, + "AclAction": { + "type": "object", + "properties": { + "drop": { + "type": "boolean", + "description": "Drop the packet", + "title": "Not used by ZedUI" + }, + "limit": { + "type": "boolean", + "description": "UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + "title": "Limit action on ACL rule" + }, + "limitValue": { + "$ref": "#/definitions/LimitParams", + "description": "Value to be used for limit action (Required if limit is true)", + "title": "only valid if limit flag is set, see below.\nNot used by ZedUI" + }, + "limitrate": { + "type": "integer", + "format": "int64", + "description": "UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + "title": "Rate limit in ACL rule" + }, + "limitunit": { + "type": "string", + "description": "UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + "title": "Rate limit unit in ACL rule" + }, + "limitburst": { + "type": "integer", + "format": "int64", + "description": "UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + "title": "Rate limit burst in ACL rule" + }, + "portmap": { + "type": "boolean", + "description": "UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + "title": "Enable device to app port mapping for incoming ACL rule, implicitly added by ZedUI code" + }, + "portmapto": { + "$ref": "#/definitions/MapParams", + "description": "UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + "title": "Device to app port mapping for incoming ACL rule" + } + } + }, + "ActionScope": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/ObjectType", + "description": "Scope of the action (e.g. project in case certificate expired at project level)" + }, + "id": { + "type": "string", + "description": "Unique id of the type (e.g. projectId in case of project type)" + } + } + }, + "AdminState": { + "type": "string", + "enum": [ + "ADMIN_STATE_UNSPECIFIED", + "ADMIN_STATE_CREATED", + "ADMIN_STATE_DELETED", + "ADMIN_STATE_ACTIVE", + "ADMIN_STATE_INACTIVE", + "ADMIN_STATE_REGISTERED", + "ADMIN_STATE_ARCHIVED", + "ADMIN_STATE_DELETION_PENDING" + ], + "default": "ADMIN_STATE_UNSPECIFIED", + "description": "- ADMIN_STATE_CREATED: Entity Created in the controller\n - ADMIN_STATE_DELETED: Entity Deleted in the controller\n - ADMIN_STATE_ACTIVE: Entity Activated in the controller\n - ADMIN_STATE_INACTIVE: Entity Deactivated in the controller\n - ADMIN_STATE_REGISTERED: Specific to Edge-node - Edge-node Registered with the controller\n - ADMIN_STATE_ARCHIVED: Entity Archived in the controller\n - ADMIN_STATE_DELETION_PENDING: Entity was marked as Deleted but not yet deleted in the controller", + "title": "AdminState - On update, please update AdminState_HttpRequest as well" + }, + "App": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the edge application", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the edge application, unique across the enterprise. Once object is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the edge application. Title can be changed at any time", + "maxLength": 256, + "minLength": 3, + "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$" + }, + "description": { + "type": "string", + "description": "Detailed description of the edge application", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined info" + }, + "networks": { + "type": "integer", + "format": "int64", + "description": "user defined network options" + }, + "drives": { + "type": "integer", + "format": "int64", + "description": "user defined drives", + "readOnly": true + }, + "cpus": { + "type": "integer", + "format": "int64", + "description": "user defined cpus for bundle" + }, + "memory": { + "type": "integer", + "format": "int64", + "description": "user defined memory for bundle" + }, + "manifestJSON": { + "$ref": "#/definitions/VMManifest", + "description": "user defined manifest in JSON format" + }, + "parentDetail": { + "$ref": "#/definitions/ObjectParentDetail", + "description": "origin and parent related details" + }, + "originType": { + "$ref": "#/definitions/Origin", + "description": "origin of object" + }, + "storage": { + "type": "integer", + "format": "int64", + "description": "user defined storage for bundle" + }, + "userDefinedVersion": { + "type": "string", + "description": "User defined version for the given edge-app" + }, + "projectAccessList": { + "type": "array", + "items": { + "type": "string" + }, + "description": "project access list of the app bundle" + }, + "isImported": { + "type": "boolean", + "description": "Flag to represent where app bundle is already imported" + }, + "appInstCount": { + "type": "integer", + "format": "int32", + "description": "App instance count" + }, + "datastoreIdList": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of datastore ids containing private registry credential" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "User defined tags for the edge application", + "maxLength": 32, + "pattern": "^[^<%&?/\\\\>]+$" + } + }, + "description": "Edge application gets installed/uninstalled to/from edge node(s) and perform specific edge computing tasks. Lifecycle of Edge application (upgrade/restart) on Edge node can be managed and monitored by ZEDEDA Cloud controller through this detailed configuration.", + "title": "Edge application detailed configuration", + "required": [ + "name", + "title", + "originType" + ] + }, + "AppCategory": { + "type": "string", + "enum": [ + "APP_CATEGORY_UNSPECIFIED", + "APP_CATEGORY_OPERATING_SYSTEM", + "APP_CATEGORY_INDUSTRIAL", + "APP_CATEGORY_EDGE_APPLICATION", + "APP_CATEGORY_NETWORKING", + "APP_CATEGORY_SECURITY", + "APP_CATEGORY_DATA_ANALYTICS", + "APP_CATEGORY_CLOUD_APPLICATION", + "APP_CATEGORY_DEVOPS", + "APP_CATEGORY_OTHERS" + ], + "default": "APP_CATEGORY_UNSPECIFIED", + "description": "- APP_CATEGORY_UNSPECIFIED: Invalid Edge Application Category\n - APP_CATEGORY_OPERATING_SYSTEM: Edge operating systems\n - APP_CATEGORY_INDUSTRIAL: Connectity solution for industrial protocols\n - APP_CATEGORY_EDGE_APPLICATION: Edge application framework featuring composite functions for data ingestion, buffering, analytics and export\n - APP_CATEGORY_NETWORKING: Edge networking services (e.g. SD-WAN, NFV)\n - APP_CATEGORY_SECURITY: Edge security services (e.g. protocol inspection, firewall)\n - APP_CATEGORY_DATA_ANALYTICS: Edge analytics (e.g. AI/ML) and data management (e.g. database, connectors) services\n - APP_CATEGORY_CLOUD_APPLICATION: Edge application runtimes, cloud connectivity and general application enablement\n - APP_CATEGORY_DEVOPS: Tools for Edge Application CI/CD and performance optimization\n - APP_CATEGORY_OTHERS: Miscellaneous functionality", + "title": "Edge Application Category" + }, + "AppInfo": { + "type": "object", + "properties": { + "appId": { + "type": "string", + "description": "system generated unique id for the app bundle", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+" + }, + "appName": { + "type": "string", + "description": "app bundle name" + } + } + }, + "AppInstConfigStatusList": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/appInstConfigStatus" + }, + "description": "app instance status summary" + }, + "summaryByState": { + "$ref": "#/definitions/Summary", + "description": "app instance status by state" + }, + "totalCount": { + "type": "integer", + "format": "int64", + "description": "total number of records" + }, + "summaryByAppType": { + "$ref": "#/definitions/Summary", + "description": "app instance summary by application type" + }, + "summaryByPatchEnvelope": { + "$ref": "#/definitions/Summary", + "description": "app instance summary by patch envelope" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "cursor next" + } + }, + "description": "AppInstConfigStatusList is used for listing the app instance statuses", + "title": "App instance config status list" + }, + "AppInstEdgeNodeCluster": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Id of the edge node cluster", + "pattern": "[0-9A-Za-z-]+" + }, + "designatedNodeID": { + "type": "string", + "description": "Id of the designated node", + "pattern": "[0-9A-Za-z-]+" + }, + "name": { + "type": "string", + "description": "edge node cluster name" + }, + "enableAppPinning": { + "type": "boolean", + "description": "enable application pinning to edge node cluster's designated node" + } + } + }, + "AppInstMemorySummary": { + "type": "object", + "properties": { + "AllocatedMB": { + "type": "number", + "format": "double", + "description": "Total memory allocated for the App instance.", + "title": "AllocatedMB - Total memory allocated to the App Instance.\nNormally, AllocatedMB >= UsedMB + AvailableMB" + }, + "UsedMB": { + "type": "number", + "format": "double", + "description": "Total memory used by the App within allocated memory" + }, + "AvailableMB": { + "type": "number", + "format": "double", + "description": "Available / Free memory in the App" + } + }, + "description": "Memory Information for the App Instance.", + "title": "App Instance Memory Summary" + }, + "AppInstPatchEnvelopeConfig_HttpRequestAppInstPatchEnvelope_HttpRequest": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "REFERENCING_PATCH", + "NOT_REFERENCING_PATCH" + ], + "default": "UNSPECIFIED", + "title": "AppInstPatchEnvelope_HttpRequest - Only for swagger documentation" + }, + "AppInstSnapshotsList": { + "type": "object", + "properties": { + "snapshots": { + "type": "array", + "items": { + "$ref": "#/definitions/AppInstanceSnapshot" + } + } + } + }, + "AppInstStatusListMsg": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/AppInstStatusSummaryMsg" + }, + "description": "app instance status summary" + }, + "summaryByState": { + "$ref": "#/definitions/Summary", + "description": "app instance status by state" + }, + "summaryByAppType": { + "$ref": "#/definitions/Summary", + "description": "app instance summary by application type" + }, + "summaryByPatchEnvelope": { + "$ref": "#/definitions/Summary", + "description": "app instance summary by patch envelope" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "cursor next" + } + }, + "description": "AppInstStatusListMsg is used for listing the app instance statuses", + "title": "App instance status list" + }, + "AppInstStatusMsg": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "app instance id" + }, + "name": { + "type": "string", + "description": "User defined name of the app instance, unique across the enterprise. Once app instance is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "deviceId": { + "type": "string", + "description": "User defined name of the device, unique across the enterprise. Once device is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "appId": { + "type": "string", + "description": "User defined name of the edge app, unique across the enterprise. Once edge app is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "adminState": { + "$ref": "#/definitions/AdminState", + "description": "App instance status" + }, + "errInfo": { + "type": "array", + "items": { + "$ref": "#/definitions/DeviceError" + }, + "description": "Device error details" + }, + "bootTime": { + "type": "string", + "format": "date-time", + "description": "device boot time" + }, + "lastUpdate": { + "type": "string", + "format": "date-time", + "description": "device last update time" + }, + "IoStatusList": { + "type": "array", + "items": { + "$ref": "#/definitions/IoBundleStatus" + }, + "description": "Io bundle status list" + }, + "swInfo": { + "type": "array", + "items": { + "$ref": "#/definitions/SWInfo" + }, + "description": "Software details" + }, + "runState": { + "$ref": "#/definitions/RunState", + "description": "app instance state" + }, + "netCounterList": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkCounters" + }, + "description": "network counter list" + }, + "Memory": { + "$ref": "#/definitions/MemorySummary", + "description": "memory summary" + }, + "Storage": { + "$ref": "#/definitions/StorageSummary", + "description": "storage summary" + }, + "netStatusList": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkStatus" + }, + "description": "network status list" + }, + "upTime": { + "type": "string", + "format": "date-time", + "description": "device up time" + }, + "swState": { + "$ref": "#/definitions/SWState", + "description": "software state" + }, + "Cpu": { + "$ref": "#/definitions/CpuSummary", + "description": "SPU details" + }, + "projectId": { + "type": "string", + "description": "User defined name of the project, unique across the enterprise. Once project is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "app instance status title" + }, + "appStatusFromTPController": { + "$ref": "#/definitions/AppStatusFromTPController", + "description": "app status from third party controller" + }, + "appType": { + "$ref": "#/definitions/AppType", + "description": "type of app" + }, + "clusterId": { + "type": "string", + "description": "System defined universally unique clusterInstance ID, unique across the enterprise.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "deploymentType": { + "$ref": "#/definitions/DeploymentType", + "description": "type of deployment for the app, eg: azure, k3s, standalone" + }, + "memorySummary": { + "$ref": "#/definitions/AppInstMemorySummary", + "description": "memory summary" + }, + "volumeRefs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "list of volume ids attached" + }, + "zpoolMetrics": { + "$ref": "#/definitions/StorageDeviceMetrics", + "description": "Last received counters for zvol metrics" + }, + "patchEnvelopeUsageInfo": { + "type": "array", + "items": { + "$ref": "#/definitions/PatchEnvelopeUsageInfo" + }, + "description": "patch envelope usage info" + }, + "containerStatusList": { + "type": "array", + "items": { + "$ref": "#/definitions/ComposeContainerStatus" + }, + "description": "docker-compose container status" + }, + "runtimePlatformVersions": { + "$ref": "#/definitions/RuntimePlatformVersions", + "description": "Runtime platform versions" + }, + "app": { + "$ref": "#/definitions/AppInfo", + "description": "App bundle specific info" + }, + "device": { + "$ref": "#/definitions/DevInfo", + "description": "Device specific info" + } + }, + "description": "AppInstanceStatusMsg encapsulates the status of an app instance", + "title": "App instance status message" + }, + "AppInstStatusSummaryMsg": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the app instance", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the app instance, unique across the enterprise. Once app instance is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "deviceId": { + "type": "string", + "description": "User defined name of the device, unique across the enterprise. Once device is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "appId": { + "type": "string", + "description": "User defined name of the edge app, unique across the enterprise. Once edge app is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "adminState": { + "$ref": "#/definitions/AdminState", + "description": "SPU details" + }, + "clusterID": { + "type": "string", + "description": "System defined universally unique clusterInstance ID, unique across the enterprise.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "runState": { + "$ref": "#/definitions/RunState", + "description": "operation status" + }, + "Memory": { + "$ref": "#/definitions/MemorySummary", + "description": "memory summary" + }, + "Storage": { + "$ref": "#/definitions/StorageSummary", + "description": "storage summary" + }, + "swState": { + "$ref": "#/definitions/SWState", + "description": "sotware state" + }, + "Cpu": { + "$ref": "#/definitions/CpuSummary", + "description": "cpu summary" + }, + "projectId": { + "type": "string", + "description": "User defined name of the project, unique across the enterprise. Once project is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the app instance. Title can be changed at any time", + "maxLength": 256, + "minLength": 3, + "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$" + }, + "appType": { + "$ref": "#/definitions/AppType", + "description": "type of app" + }, + "deploymentType": { + "$ref": "#/definitions/DeploymentType", + "description": "type of deployment for the app, eg: azure, k3s, standalone" + }, + "memorySummary": { + "$ref": "#/definitions/AppInstMemorySummary", + "description": "memory summary" + }, + "swInfo": { + "type": "array", + "items": { + "$ref": "#/definitions/SWInfo" + }, + "description": "Software details" + }, + "appName": { + "type": "string", + "description": "User defined name of the edge app, unique across the enterprise. Once edge app is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "projectName": { + "type": "string", + "description": "User defined name of the project, unique across the enterprise. Once project is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "deviceName": { + "type": "string", + "description": "User defined name of the device, unique across the enterprise. Once device is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "netStatusList": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkStatus" + }, + "description": "network status list" + } + }, + "description": "AppInstStatusSummaryMsg stores the summary of the app instance status", + "title": "App instance status summary" + }, + "AppInstance": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the app instance", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the app instance, unique across the enterprise. Once app instance is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the app instance. Title can be changed at any time", + "maxLength": 256, + "minLength": 3, + "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$" + }, + "description": { + "type": "string", + "description": "Detailed description of the app instance", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "app instance object revision details" + }, + "projectId": { + "type": "string", + "description": "project name which the given app instance belong to" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "clusterID": { + "type": "string", + "description": "System defined universally unique clusterInstance ID, unique across the enterprise.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "appId": { + "type": "string", + "description": "User defined name of the edge app, unique across the enterprise. Once app name is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "deviceId": { + "type": "string", + "description": "User defined name of the device name, unique across the enterprise. Once device name is defined, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "activate": { + "type": "boolean", + "description": "app instance activation flag" + }, + "vminfo": { + "$ref": "#/definitions/vm", + "description": "virtual machine info" + }, + "drives": { + "type": "array", + "items": { + "$ref": "#/definitions/drive" + }, + "description": "drive details" + }, + "interfaces": { + "type": "array", + "items": { + "$ref": "#/definitions/appInterface" + }, + "description": "application interfaces" + }, + "userData": { + "type": "string", + "description": "Deprecated: Application initiazation script in cloud-config format to be used by cloud-init" + }, + "customConfig": { + "$ref": "#/definitions/CustomConfig", + "description": "Application initialization script template in cloud-config format and user specified values" + }, + "collectStatsIPAddr": { + "type": "string", + "description": "holds the static Ip of the app instance" + }, + "bundleversion": { + "type": "string", + "description": "version of bundle app is referring to" + }, + "logs": { + "$ref": "#/definitions/AppInstanceLogs", + "description": "App Instance logs" + }, + "restart": { + "$ref": "#/definitions/ZedCloudOpsCmd", + "description": "Restart counter: ZedCloudOpsCmd" + }, + "refresh": { + "$ref": "#/definitions/ZedCloudOpsCmd", + "description": "Refresh counter: ZedCloudOpsCmd" + }, + "purge": { + "$ref": "#/definitions/ZedCloudOpsCmd", + "description": "Purge counter: ZedCloudOpsCmd" + }, + "remoteConsole": { + "type": "boolean", + "description": "Remote console flag" + }, + "encryptedSecrets": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "user encrypted secrets map" + }, + "cryptoKey": { + "type": "string", + "description": "Crypto Key for decrypting user secret information" + }, + "manifestInfo": { + "$ref": "#/definitions/ManifestInfo", + "description": "app manifest Info" + }, + "appType": { + "$ref": "#/definitions/AppType", + "description": "type of bundle" + }, + "isSecretUpdated": { + "type": "boolean", + "description": "This field tells whether user secrets has updated or not, especially the cusotom config" + }, + "appPolicyId": { + "type": "string", + "description": "app policy id" + }, + "deploymentType": { + "$ref": "#/definitions/DeploymentType", + "description": "type of deployment for the app, eg: azure, k3s, standalone" + }, + "userDefinedVersion": { + "type": "string", + "description": "Instance version tells which edge app does this instance is running" + }, + "startDelayInSeconds": { + "type": "integer", + "format": "int64", + "description": "start delay is the time in seconds EVE should wait after boot before starting the application instance" + }, + "cloudInitVersion": { + "type": "integer", + "format": "int64", + "description": "Cloud-init version that indicates whether it necessary or not for cloud-init tool to restart in a guest" + }, + "allowSnapshots": { + "type": "boolean", + "description": "Flag to determine if a snapshot creation is allowed" + }, + "maxSnapshots": { + "type": "integer", + "format": "int64", + "description": "Maximum number of snapshots allowed to be created" + }, + "availableSnapshots": { + "type": "array", + "items": { + "$ref": "#/definitions/AppInstanceSnapshot" + }, + "description": "The list of available snapshots of the application instance" + }, + "patchEnvelopeId": { + "type": "string", + "description": "patch envelope id" + }, + "patchEnvelopeName": { + "type": "string", + "description": "patch envelope name" + }, + "edgeNodeCluster": { + "$ref": "#/definitions/AppInstEdgeNodeCluster", + "description": "edge node cluster" + }, + "dockerComposeYamlText": { + "type": "string", + "description": "Docker compose base64 encoded plain text", + "title": "internal field", + "readOnly": true + }, + "dockerComposeTarImageName": { + "type": "string", + "description": "Docker compose tar image name", + "title": "internal field", + "readOnly": true + }, + "datastoreIdList": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of datastore ids containing private registry credentials", + "title": "internal field", + "readOnly": true + }, + "PersistentRuntimeSizeBytes": { + "type": "string", + "format": "uint64", + "description": "Persistent runtime size in bytes" + } + }, + "description": "App Instance detail", + "title": "App Instance detail", + "required": [ + "name", + "title", + "projectId", + "appId", + "deviceId", + "activate" + ] + }, + "AppInstanceLogs": { + "type": "object", + "properties": { + "access": { + "type": "boolean", + "description": "Flags to enable / disable sending of logs generated by app instance to zedcloud" + } + }, + "description": "App Instance Logs configuration", + "title": "App Instance Logs configuration", + "required": [ + "access" + ] + }, + "AppInstanceLogsQueryResponse": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/AppInstanceLogsQueryResponseItem" + }, + "description": "app instance logs query response" + }, + "totalRecords": { + "type": "number", + "format": "int64", + "description": "app instance logs query response" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "next cursor" + } + }, + "description": "AppInstanceLogsQueryResponse is used as response for querying app instance logs", + "title": "App instance logs query response" + }, + "AppInstanceLogsQueryResponseItem": { + "type": "object", + "properties": { + "msgid": { + "type": "string", + "format": "uint64", + "description": "message Id" + }, + "content": { + "type": "string", + "description": "app instance logs" + }, + "timestamp": { + "type": "string", + "format": "date-time", + "description": "timestamp of query time" + } + }, + "description": "AppInstanceLogsQueryResponseItem is used as the response for querying the logs of app instance", + "title": "App instance query log response" + }, + "AppInstanceLogsResponse": { + "type": "object", + "properties": { + "result": { + "$ref": "#/definitions/ZsrvResponse" + }, + "content": { + "$ref": "#/definitions/AppInstanceLogsQueryResponse" + } + } + }, + "AppInstanceSnapshot": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the app instance snapshot", + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "Snapshot name. Unique across the application instance" + }, + "state": { + "$ref": "#/definitions/SnapshotState", + "description": "Status of the snapshot" + }, + "config": { + "type": "object", + "$ref": "#/definitions/AppInstance", + "description": "The complete configuration of the application instance" + }, + "activate": { + "type": "boolean", + "description": "Indicates whether the snapshot should be activated" + }, + "immediate": { + "type": "boolean", + "description": "Indicates that the snapshot should be taken immediately" + } + }, + "description": "App instance snapshot", + "title": "App instance snapshot", + "required": [ + "name" + ] + }, + "AppInstanceSnapshotState": { + "type": "object", + "properties": { + "state": { + "$ref": "#/definitions/SnapshotState" + }, + "timestamp": { + "type": "string", + "format": "date-time" + } + } + }, + "AppInstanceUpdate_HttpRequest": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the app instance", + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the app instance, unique across the enterprise. Once app instance is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the app instance. Title can be changed at any time", + "maxLength": 256, + "minLength": 3, + "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$" + }, + "description": { + "type": "string", + "description": "Detailed description of the app instance", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "app instance object revision details" + }, + "projectId": { + "type": "string", + "description": "project name which the given app instance belong to" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "clusterID": { + "type": "string", + "description": "System defined universally unique clusterInstance ID, unique across the enterprise.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "appId": { + "type": "string", + "description": "User defined name of the edge app, unique across the enterprise. Once app name is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "deviceId": { + "type": "string", + "description": "User defined name of the device name, unique across the enterprise. Once device name is defined, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "activate": { + "type": "boolean", + "description": "app instance activation flag" + }, + "vminfo": { + "$ref": "#/definitions/vm", + "description": "virtual machine info" + }, + "drives": { + "type": "array", + "items": { + "$ref": "#/definitions/drive" + }, + "description": "drive details" + }, + "interfaces": { + "type": "array", + "items": { + "$ref": "#/definitions/appInterface" + }, + "description": "application interfaces" + }, + "userData": { + "type": "string", + "description": "Deprecated: Application initiazation script in cloud-config format to be used by cloud-init" + }, + "customConfig": { + "$ref": "#/definitions/CustomConfig", + "description": "Application initialization script template in cloud-config format and user specified values" + }, + "collectStatsIPAddr": { + "type": "string", + "description": "holds the static Ip of the app instance" + }, + "bundleversion": { + "type": "string", + "description": "version of bundle app is referring to" + }, + "logs": { + "$ref": "#/definitions/AppInstanceLogs", + "description": "App Instance logs" + }, + "restart": { + "$ref": "#/definitions/ZedCloudOpsCmd", + "description": "Restart counter: ZedCloudOpsCmd" + }, + "refresh": { + "$ref": "#/definitions/ZedCloudOpsCmd", + "description": "Refresh counter: ZedCloudOpsCmd" + }, + "purge": { + "$ref": "#/definitions/ZedCloudOpsCmd", + "description": "Purge counter: ZedCloudOpsCmd" + }, + "remoteConsole": { + "type": "boolean", + "description": "Remote console flag" + }, + "encryptedSecrets": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "user encrypted secrets map" + }, + "cryptoKey": { + "type": "string", + "description": "Crypto Key for decrypting user secret information" + }, + "manifestInfo": { + "$ref": "#/definitions/ManifestInfo", + "description": "app manifest Info" + }, + "appType": { + "$ref": "#/definitions/AppType", + "description": "type of bundle" + }, + "isSecretUpdated": { + "type": "boolean", + "description": "This field tells whether user secrets has updated or not, especially the cusotom config" + }, + "appPolicyId": { + "type": "string", + "description": "app policy id" + }, + "deploymentType": { + "$ref": "#/definitions/DeploymentType", + "description": "type of deployment for the app, eg: azure, k3s, standalone" + }, + "userDefinedVersion": { + "type": "string", + "description": "Instance version tells which edge app does this instance is running" + }, + "startDelayInSeconds": { + "type": "integer", + "format": "int64", + "description": "start delay is the time in seconds EVE should wait after boot before starting the application instance" + }, + "cloudInitVersion": { + "type": "integer", + "format": "int64", + "description": "Cloud-init version that indicates whether it necessary or not for cloud-init tool to restart in a guest" + }, + "allowSnapshots": { + "type": "boolean", + "description": "Flag to determine if a snapshot creation is allowed" + }, + "maxSnapshots": { + "type": "integer", + "format": "int64", + "description": "Maximum number of snapshots allowed to be created" + }, + "availableSnapshots": { + "type": "array", + "items": { + "$ref": "#/definitions/AppInstanceSnapshot" + }, + "description": "The list of available snapshots of the application instance" + }, + "patchEnvelopeId": { + "type": "string", + "description": "patch envelope id" + }, + "patchEnvelopeName": { + "type": "string", + "description": "patch envelope name" + }, + "edgeNodeCluster": { + "$ref": "#/definitions/AppInstEdgeNodeCluster", + "description": "edge node cluster" + } + }, + "description": "App Instance detail", + "title": "App Instance detail", + "required": [ + "name", + "title", + "projectId", + "appId", + "deviceId", + "activate" + ] + }, + "AppInstances": { + "type": "object", + "properties": { + "summaryByState": { + "$ref": "#/definitions/Summary", + "description": "app instance by summary" + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/AppInstance" + }, + "description": "app insatance list response" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "cursor next" + } + } + }, + "AppProjectList": { + "type": "object", + "properties": { + "projectDetails": { + "type": "array", + "items": { + "$ref": "#/definitions/ObjectDetail" + }, + "description": "List of projects which are associated with the given app" + }, + "totalCount": { + "type": "integer", + "format": "int64", + "description": "total number of records" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "Responded page details of filtered records" + } + } + }, + "AppPublicAppSummary": { + "type": "object", + "example": { + "id": "d85a545f-6510-4327-b03d-c02eef119e99", + "name": "sample-app" + }, + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the edge application", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the edge application, unique across the enterprise. Once object is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the edge application. Title can be changed at any time", + "maxLength": 256, + "minLength": 3, + "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$" + }, + "description": { + "type": "string", + "description": "Detailed description of the edge application", + "maxLength": 256 + }, + "manifestJSON": { + "$ref": "#/definitions/VMManifestSummary" + }, + "parentDetail": { + "$ref": "#/definitions/ObjectParentDetail", + "description": "origin and parent related details" + }, + "originType": { + "type": "object", + "$ref": "#/definitions/Origin", + "description": "origin of object", + "required": [ + "true" + ] + }, + "networks": { + "type": "integer", + "format": "int64", + "description": "user defined network options" + }, + "drives": { + "type": "integer", + "format": "int64", + "description": "user defined drives", + "readOnly": true + }, + "cpus": { + "type": "integer", + "format": "int64", + "description": "user defined cpus for bundle" + }, + "memory": { + "type": "integer", + "format": "int64", + "description": "user defined memory for bundle" + }, + "storage": { + "type": "integer", + "format": "int64", + "description": "user defined storage for bundle" + }, + "userDefinedVersion": { + "type": "string", + "description": "User defined version for the given edge-app" + }, + "appInstCount": { + "type": "integer", + "format": "int32", + "description": "AppCommon.App instance count" + }, + "isImported": { + "type": "boolean", + "description": "Flag to represent where app bundle is already imported" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "User defined tags for the edge application", + "maxLength": 32, + "pattern": "^[^<%&?/\\\\>]+$" + } + }, + "description": "Edge application summary", + "title": "Bundle summary", + "required": [ + "originType" + ] + }, + "AppPublicApps": { + "type": "object", + "properties": { + "next": { + "$ref": "#/definitions/Cursor", + "description": "cursor next" + }, + "summaryByCategory": { + "$ref": "#/definitions/Summary", + "description": "edge applications by category" + }, + "summaryByOrigin": { + "$ref": "#/definitions/Summary", + "description": "edge applications by origin" + }, + "summaryByAppType": { + "$ref": "#/definitions/Summary", + "description": "edge applications by appType" + }, + "summaryByAppInstanceDistribution": { + "$ref": "#/definitions/Summary", + "description": "app distribution summary" + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/AppPublicAppSummary" + }, + "description": "edge application summary list" + } + } + }, + "AppStatusFromTPController": { + "type": "object", + "properties": { + "appName": { + "type": "string" + }, + "appId": { + "type": "string" + }, + "eveDeviceId": { + "type": "string" + }, + "enterpriseId": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ControllerType" + }, + "azureStatus": { + "$ref": "#/definitions/AzureStatus" + }, + "vceStatus": { + "$ref": "#/definitions/VCEStatus" + } + } + }, + "AppSummary": { + "type": "object", + "example": { + "id": "d85a545f-6510-4327-b03d-c02eef119e99", + "name": "sample-app" + }, + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the edge application", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the edge application, unique across the enterprise. Once object is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the edge application. Title can be changed at any time", + "maxLength": 256, + "minLength": 3, + "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$" + }, + "description": { + "type": "string", + "description": "Detailed description of the edge application", + "maxLength": 256 + }, + "manifestJSON": { + "$ref": "#/definitions/VMManifestSummary" + }, + "parentDetail": { + "$ref": "#/definitions/ObjectParentDetail", + "description": "origin and parent related details" + }, + "originType": { + "type": "object", + "$ref": "#/definitions/Origin", + "description": "origin of object", + "required": [ + "true" + ] + }, + "networks": { + "type": "integer", + "format": "int64", + "description": "user defined network options" + }, + "drives": { + "type": "integer", + "format": "int64", + "description": "user defined drives", + "readOnly": true + }, + "cpus": { + "type": "integer", + "format": "int64", + "description": "user defined cpus for bundle" + }, + "memory": { + "type": "integer", + "format": "int64", + "description": "user defined memory for bundle" + }, + "storage": { + "type": "integer", + "format": "int64", + "description": "user defined storage for bundle" + }, + "userDefinedVersion": { + "type": "string", + "description": "User defined version for the given edge-app" + }, + "appInstCount": { + "type": "integer", + "format": "int32", + "description": "App instance count" + }, + "isImported": { + "type": "boolean", + "description": "Flag to represent where app bundle is already imported" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "User defined tags for the edge application", + "maxLength": 32, + "pattern": "^[^<%&?/\\\\>]+$" + } + }, + "description": "Edge application summary", + "title": "Bundle summary", + "required": [ + "originType" + ] + }, + "AppType": { + "type": "string", + "enum": [ + "APP_TYPE_UNSPECIFIED", + "APP_TYPE_VM", + "APP_TYPE_VM_RUNTIME", + "APP_TYPE_CONTAINER", + "APP_TYPE_MODULE", + "APP_TYPE_DOCKER_COMPOSE" + ], + "default": "APP_TYPE_UNSPECIFIED", + "description": "type of app bundle." + }, + "App_HttpRequest": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the edge application", + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the edge application, unique across the enterprise. Once object is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the edge application. Title can be changed at any time", + "maxLength": 256, + "minLength": 3, + "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$" + }, + "description": { + "type": "string", + "description": "Detailed description of the edge application", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined info" + }, + "networks": { + "type": "integer", + "format": "int64", + "description": "user defined network options" + }, + "drives": { + "type": "integer", + "format": "int64", + "description": "user defined drives", + "readOnly": true + }, + "cpus": { + "type": "integer", + "format": "int64", + "description": "user defined cpus for bundle" + }, + "memory": { + "type": "integer", + "format": "int64", + "description": "user defined memory for bundle" + }, + "manifestJSON": { + "$ref": "#/definitions/VMManifest", + "description": "user defined manifest in JSON format" + }, + "parentDetail": { + "$ref": "#/definitions/ObjectParentDetail", + "description": "origin and parent related details" + }, + "originType": { + "$ref": "#/definitions/Origin", + "description": "origin of object" + }, + "storage": { + "type": "integer", + "format": "int64", + "description": "user defined storage for bundle" + }, + "userDefinedVersion": { + "type": "string", + "description": "User defined version for the given edge-app" + }, + "projectAccessList": { + "type": "array", + "items": { + "type": "string" + }, + "description": "project access list of the app bundle" + }, + "isImported": { + "type": "boolean", + "description": "Flag to represent where app bundle is already imported" + }, + "appInstCount": { + "type": "integer", + "format": "int32", + "description": "App instance count" + }, + "datastoreIdList": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of datastore ids containing private registry credential" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "User defined tags for the edge application", + "maxLength": 32, + "pattern": "^[^<%&?/\\\\>]+$" + } + }, + "description": "Edge application gets installed/uninstalled to/from edge node(s) and perform specific edge computing tasks. Lifecycle of Edge application (upgrade/restart) on Edge node can be managed and monitored by ZEDEDA Cloud controller through this detailed configuration.", + "title": "Edge application detailed configuration", + "required": [ + "id", + "name", + "title", + "originType" + ] + }, + "Apps": { + "type": "object", + "properties": { + "next": { + "$ref": "#/definitions/Cursor", + "description": "cursor next" + }, + "summaryByCategory": { + "$ref": "#/definitions/Summary", + "description": "edge applications by category" + }, + "summaryByOrigin": { + "$ref": "#/definitions/Summary", + "description": "edge applications by origin" + }, + "summaryByAppType": { + "$ref": "#/definitions/Summary", + "description": "edge applications by appType" + }, + "summaryByAppInstanceDistribution": { + "$ref": "#/definitions/Summary", + "description": "app distribution summary" + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/AppSummary" + }, + "description": "edge application summary list" + } + }, + "title": "@ZProtoType:Public" + }, + "Author": { + "type": "object", + "properties": { + "user": { + "type": "string", + "description": "UI map: AppEditPage:DeveloperPane:Name_Field, AppDetailsPage:DeveloperPane:Name_Field", + "title": "Name of the developer" + }, + "group": { + "type": "string", + "title": "Not used by ZedUI" + }, + "company": { + "type": "string", + "description": "UI map: AppEditPage:IdentityPane:Category_Field, AppDetailsPage:IdentityPane:Category_Field", + "title": "Company of the developer" + }, + "website": { + "type": "string", + "description": "UI map: AppEditPage:DeveloperPane:Website_Field, AppDetailsPage:DeveloperPane:Website_Field", + "title": "Website of the developer company" + }, + "email": { + "type": "string", + "description": "UI map: AppEditPage:DeveloperPane:Email_Field, AppDetailsPage:DeveloperPane:Email_Field", + "title": "Contact email of the developer company" + } + } + }, + "AzureDevStatusDetail": { + "type": "object", + "properties": { + "oState": { + "type": "string" + }, + "aState": { + "type": "string" + }, + "connectionStateUpdatedTime": { + "type": "string" + }, + "twin": { + "$ref": "#/definitions/TwinDetail" + }, + "lastActivityTime": { + "type": "string" + }, + "statusUpdateTime": { + "type": "string" + } + } + }, + "AzureStatus": { + "type": "object", + "properties": { + "azureDevStatus": { + "$ref": "#/definitions/AzureDevStatusDetail" + } + }, + "description": "status of device from azure." + }, + "BinaryArtifact": { + "type": "object", + "properties": { + "format": { + "$ref": "#/definitions/OpaqueObjectCategory", + "title": "base64 or binary blob only - secret type is invalid" + }, + "base64Artifact": { + "$ref": "#/definitions/InlineOpaqueBase64Data" + }, + "binaryArtifact": { + "$ref": "#/definitions/ExternalOpaqueBinaryBlob" + }, + "artifactMetaData": { + "type": "string", + "title": "optional - any arbitrary metadata about/for artifact encoded to base64 string" + }, + "id": { + "type": "string", + "description": "System defined universally unique Id of the artifact.", + "title": "artifact id", + "readOnly": true, + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", + "uniqueItems": true + } + } + }, + "CellularStatus": { + "type": "object", + "properties": { + "providers": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkProvider" + }, + "description": "List of network providers" + }, + "modem": { + "type": "object", + "$ref": "#/definitions/ModemDetail", + "description": "Modem detail" + }, + "simCards": { + "type": "array", + "items": { + "$ref": "#/definitions/SIMCard" + }, + "description": "List of SIM Cards" + } + }, + "description": "CellularStatus contains status information for a single cellular network", + "title": "CellularStatus contains status information for a single cellular network" + }, + "ClassificationItem": { + "type": "object", + "properties": { + "sourceNode": { + "type": "string" + }, + "destNode": { + "type": "string" + }, + "metricValue": { + "type": "string", + "format": "uint64" + }, + "level": { + "type": "integer", + "format": "int64" + } + } + }, + "ClassificationRequest_HttpRequestFlowlogCategoryType_HttpRequest": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "DIRECTION", + "ACL_ID", + "ACTION", + "PROTO", + "REMOTE_IP", + "REMOTE_PORT", + "FQDN" + ], + "default": "UNSPECIFIED" + }, + "ClassificationResponse": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/ClassificationItem" + } + } + } + }, + "ComposeContainerStatus": { + "type": "object", + "properties": { + "containerName": { + "type": "string", + "description": "container name" + }, + "containerImage": { + "type": "string", + "description": "container image" + }, + "containerEntryPoint": { + "type": "string", + "description": "container entry point" + }, + "createTimeUTC": { + "type": "string", + "description": "container creation time - UTC" + }, + "portMaps": { + "type": "array", + "items": { + "$ref": "#/definitions/ContainerPortMap" + }, + "description": "ports mapped to container" + }, + "containerState": { + "type": "string", + "description": "running status of container (running, stopped, exited)" + }, + "uptime": { + "type": "number", + "format": "uint64", + "description": "container up-time in seconds from start" + }, + "errInfo": { + "type": "number", + "$ref": "#/definitions/DeviceError", + "description": "container error information" + } + } + }, + "ContainerDetail": { + "type": "object", + "properties": { + "containerCreateOption": { + "type": "string", + "description": "Create options direct the creation of the Docker container", + "title": "Base64 encoded container specific details" + } + }, + "description": "common container detail." + }, + "ContainerPortMap": { + "type": "object", + "properties": { + "ip": { + "type": "string", + "description": "container ip" + }, + "privatePort": { + "type": "number", + "format": "int64", + "description": "container private port" + }, + "publicPort": { + "type": "number", + "format": "int64", + "description": "container public port" + }, + "type": { + "type": "string", + "description": "port type (tcp, udp)" + }, + "runtimeIp": { + "type": "string", + "description": "IP address that can be used for connecting to port mapped containers inside runtime" + } + } + }, + "ControllerType": { + "type": "string", + "enum": [ + "CONTROLLER_TYPE_UNSPECIFIED", + "CONTROLLER_TYPE_AZURE", + "CONTROLLER_TYPE_AWS", + "CONTROLLER_TYPE_GCP", + "CONTROLLER_TYPE_VCO" + ], + "default": "CONTROLLER_TYPE_UNSPECIFIED", + "description": "third party controller types." + }, + "CpuSummary": { + "type": "object", + "properties": { + "Utilization": { + "type": "number", + "format": "double", + "description": "CPU Utilization" + } + }, + "description": "CPU Summary", + "title": "CPU Summary" + }, + "Cursor": { + "type": "object", + "properties": { + "pageToken": { + "type": "string", + "description": "Page Token" + }, + "orderBy": { + "type": "array", + "items": { + "type": "string" + }, + "description": "OrderBy helps in sorting the list response" + }, + "pageNum": { + "type": "number", + "format": "int64", + "description": "Page Number" + }, + "pageSize": { + "type": "number", + "format": "int64", + "description": "Defines the page size" + }, + "totalPages": { + "type": "number", + "format": "int64", + "description": "Total number of pages to be fetched." + } + }, + "description": "Cursor helps in filtering the various list response like edge-app bundle list, model list, bundle list etc. ", + "title": "Cursor is used as filter in list operation." + }, + "CustomConfig": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of CustomConfig (Required)" + }, + "add": { + "type": "boolean", + "description": "Add the Custom Config to App Instance (Optional. Default: False)" + }, + "override": { + "type": "boolean", + "description": "Override existing custom config from App Bundle Manifest (Optional. Default: False)" + }, + "allowStorageResize": { + "type": "boolean", + "description": "Allow Appinstance storage to be resized after app instance is created. (Optional. Default: False)" + }, + "fieldDelimiter": { + "type": "string", + "description": "Field delimiter used in specifying variables in template. (Required)" + }, + "template": { + "type": "string", + "description": "base64 encrypted template string. (Optional)" + }, + "variableGroups": { + "type": "array", + "items": { + "$ref": "#/definitions/CustomConfigVariableGroup" + }, + "description": "List of Variable groups. (Required)" + } + } + }, + "CustomConfigVariableGroup": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the Variable Group(Required)" + }, + "variables": { + "type": "array", + "items": { + "$ref": "#/definitions/VariableGroupVariable" + }, + "description": "List of variables(Required)" + }, + "required": { + "type": "boolean", + "description": "Indicates if the variable group is required to be specified for the App Instance. (Optional. Default:False)" + }, + "condition": { + "$ref": "#/definitions/VariableGroupCondition", + "description": "Condition to apply the variable group. (Optional. Default: None)" + } + } + }, + "DNSInfo": { + "type": "object", + "properties": { + "servers": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Array of dns server" + }, + "domain": { + "type": "string", + "description": "domain name" + }, + "search": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Array of search strings" + } + }, + "description": "DNSInfo is used to store Domain Name Server configuration. ", + "title": "DNSInfo consists of DNS Configurations.", + "required": [ + "servers", + "domain", + "search" + ] + }, + "DeploymentType": { + "type": "string", + "enum": [ + "DEPLOYMENT_TYPE_UNSPECIFIED", + "DEPLOYMENT_TYPE_STAND_ALONE", + "DEPLOYMENT_TYPE_AZURE", + "DEPLOYMENT_TYPE_K3S", + "DEPLOYMENT_TYPE_AWS", + "DEPLOYMENT_TYPE_K3S_AZURE", + "DEPLOYMENT_TYPE_K3S_AWS", + "DEPLOYMENT_TYPE_VMWARE_VCE", + "DEPLOYMENT_TYPE_VMWARE_TKG_ATTACH", + "DEPLOYMENT_TYPE_DOCKER_RUNTIME" + ], + "default": "DEPLOYMENT_TYPE_UNSPECIFIED" + }, + "Details": { + "type": "object", + "example": { + "appCategory": "APP_CATEGORY_CLOUD_APPLICATION", + "os": "Linux" + }, + "properties": { + "category": { + "type": "string", + "default": "All", + "description": "UI map: AppMarketplacePage:AppCard:DescriptionField, AppEditPage:IdentityPane:CategoryField, AppDetailsPage:IdentityPane:CategoryField", + "title": "Type of the Edge application" + }, + "os": { + "type": "string", + "title": "Edge application's Operating System" + }, + "appCategory": { + "$ref": "#/definitions/AppCategory", + "default": "APP_CATEGORY_OTHERS", + "title": "Edge application category" + }, + "logo": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "UI map: AppEditPage:IdentityPane:Logo, AppDetailsPage:IdentityPane:Logo", + "title": "App Logo" + }, + "screenshotList": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "UI map: AppEditPage:IdentityPane:Screenshot_Fields, AppDetailsPage:IdentityPane:Screenshot_Fields", + "title": "App Screenshots" + }, + "licenseList": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "UI map: AppMarketplacePage:AppCard:License, AppEditPage:IdentityPane:License, AppDetailsPage:IdentityPane:License", + "title": "App Licenses" + }, + "support": { + "type": "string", + "description": "UI map: AppEditPage:DeveloperPane:Support_Description_Field, AppDetailsPage:DeveloperPane:Support_Description_Field", + "title": "Support Description" + }, + "agreementList": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "UI map: AppEditPage:DeveloperPane:Developer_Agreement_Field, AppDetailsPage:DeveloperPane:Developer_Agreement_Field", + "title": "Developer Agreements" + } + }, + "description": "Edge Application Artifact Details", + "title": "Edge Application detail", + "required": [ + "appCategory" + ] + }, + "DevInfo": { + "type": "object", + "properties": { + "deviceId": { + "type": "string", + "description": "system generated unique id for the device", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+" + }, + "deviceName": { + "type": "string", + "description": "device name" + }, + "rawStatus": { + "type": "string", + "description": "device raw status" + } + } + }, + "DeviceEntity": { + "type": "object", + "properties": { + "entity": { + "$ref": "#/definitions/Entity" + }, + "entityId": { + "type": "string" + }, + "entityName": { + "type": "string" + } + } + }, + "DeviceError": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Description of the error" + }, + "severity": { + "type": "string", + "$ref": "#/definitions/Severity", + "description": "Severity of the error" + }, + "timestamp": { + "type": "object", + "format": "date-time", + "description": "Timestamp at which error had occurred" + }, + "entities": { + "type": "array", + "items": { + "$ref": "#/definitions/DeviceEntity" + }, + "description": "objects referenced by the description or retry_condition" + }, + "retryCondition": { + "type": "string", + "description": "condition for retry" + } + }, + "description": "DeviceError store the error occurred at the device side", + "title": "DeviceError is used to store the error details of the hardware.", + "required": [ + "description", + "severity", + "timestamp", + "entities" + ] + }, + "DockerRuntimeProtocolVersion": { + "type": "string", + "enum": [ + "RuntimeProtocolVersion_Unknown", + "RuntimeProtocolVersion_V1" + ], + "default": "RuntimeProtocolVersion_Unknown" + }, + "DockerRuntimeVersion": { + "type": "string", + "enum": [ + "RuntimeVersion_Unknown", + "RuntimeVersion_V1" + ], + "default": "RuntimeVersion_Unknown" + }, + "EIDRegister": { + "type": "object", + "properties": { + "AppCert": { + "type": "string", + "format": "byte", + "description": "app certificate" + }, + "AppPublicKey": { + "type": "string", + "format": "byte", + "description": "App public key" + }, + "AppPrivateKey": { + "type": "string", + "format": "byte", + "description": "App private key" + }, + "UUID": { + "type": "string", + "description": "UUID" + }, + "DisplayName": { + "type": "string", + "description": "Display name" + }, + "LispInstance": { + "type": "number", + "format": "int64", + "description": "Lisp Instance" + }, + "EID": { + "type": "string", + "description": "EID" + }, + "EIDHashLen": { + "type": "number", + "format": "int64", + "description": "EID hash length" + }, + "LispSignature": { + "type": "string", + "description": "Lisp Signature" + }, + "LispMapServers": { + "type": "array", + "items": { + "$ref": "#/definitions/LispServer" + }, + "description": "Lisp Map Server", + "title": "time CreateTime time.Time" + } + }, + "description": "EID Register", + "title": "EID Register detail", + "required": [ + "AppCert", + "AppPublicKey", + "AppPrivateKey", + "UUID", + "DisplayName", + "LispInstance", + "EID", + "EIDHashLen", + "LispSignature", + "LispMapServers" + ] + }, + "Entity": { + "type": "string", + "enum": [ + "ENTITY_UNSPECIFIED", + "ENTITY_BASE_OS", + "ENTITY_SYSTEM_ADAPTER", + "ENTITY_VAULT", + "ENTITY_ATTESTATION", + "ENTITY_APP_INSTANCE", + "ENTITY_PORT", + "ENTITY_NETWORK", + "ENTITY_NETWORK_INSTANCE", + "ENTITY_CONTENT_TREE", + "ENTITY_CONTENT_BLOB", + "ENTITY_VOLUME" + ], + "default": "ENTITY_UNSPECIFIED", + "description": "- ENTITY_UNSPECIFIED: Invalid Device Entity\n - ENTITY_BASE_OS: Base OS entity\n - ENTITY_SYSTEM_ADAPTER: System Adapter Entity\n - ENTITY_VAULT: Vault Entity\n - ENTITY_ATTESTATION: Attestation Entity\n - ENTITY_APP_INSTANCE: App Instance Entity\n - ENTITY_PORT: Port Entity\n - ENTITY_NETWORK: Network Entity\n - ENTITY_NETWORK_INSTANCE: Network Instance Entity\n - ENTITY_CONTENT_TREE: ContentTree Entity\n - ENTITY_CONTENT_BLOB: Blob Entity\n - ENTITY_VOLUME: VOLUME Entity", + "title": "Edge node components" + }, + "EventQueryResponse": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/EventQueryResponseItem" + }, + "description": "Event Query response list" + }, + "next": { + "type": "object", + "$ref": "#/definitions/Cursor", + "description": "Cursor filter" + }, + "summary": { + "$ref": "#/definitions/Summary", + "description": "Summary of filtered events." + } + }, + "description": "Event query response request payload", + "title": "Event query Response payload detail", + "required": [ + "list", + "next" + ] + }, + "EventQueryResponseItem": { + "type": "object", + "properties": { + "user": { + "type": "string", + "description": "User name" + }, + "project": { + "type": "string", + "description": "project name" + }, + "device": { + "type": "string", + "description": "device name" + }, + "instance": { + "type": "string", + "description": "instance name" + }, + "severity": { + "type": "string", + "description": "severity: FIXME: should be ENUM" + }, + "description": { + "type": "string", + "description": "Event description" + }, + "timestamp": { + "type": "object", + "format": "date-time", + "description": "event timestamp" + }, + "source": { + "type": "object", + "$ref": "#/definitions/EventSource", + "description": "source" + }, + "resource": { + "type": "string", + "description": "Event resources" + }, + "eventType": { + "type": "string", + "description": "Event type" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Event tags" + }, + "resourceName": { + "type": "string", + "description": "Event resources" + }, + "jsonData": { + "type": "object", + "description": "Event resources" + }, + "clusterInstance": { + "type": "string", + "description": "clusterInstance name" + } + }, + "description": "Event query response item payload", + "title": "Event query response item payload detail" + }, + "EventSource": { + "type": "string", + "enum": [ + "EVENT_SOURCE_UNSPECIFIED", + "EVENT_SOURCE_SYSTEM", + "EVENT_SOURCE_USER" + ], + "default": "EVENT_SOURCE_UNSPECIFIED", + "description": "- EVENT_SOURCE_UNSPECIFIED: Default\n - EVENT_SOURCE_SYSTEM: Event is generated as a result of status change reported by edge node / application\n - EVENT_SOURCE_USER: Event is generated as a result of an user's configuration action", + "title": "Source of events" + }, + "ExternalOpaqueBinaryBlob": { + "type": "object", + "properties": { + "imageName": { + "type": "string", + "title": "Name of the image uploaded into data store" + }, + "fileNameToUse": { + "type": "string", + "title": "optional - file name to be used for storing this data in EVE.\nthe same file name shall be advertised to application agent" + }, + "blobMetaData": { + "type": "string", + "description": "Eve shall use the image name when fileNameToUse is empty\noptional - this can be image type or size etc encoded into a single string.\nonly the application instance agents will interpret this." + }, + "imageId": { + "type": "string" + } + } + }, + "FlowlogAction": { + "type": "string", + "enum": [ + "FLOW_LOG_ACTION_UNSPECIFIED", + "FLOW_LOG_ACTION_DROP", + "FLOW_LOG_ACTION_ACCEPT" + ], + "default": "FLOW_LOG_ACTION_UNSPECIFIED" + }, + "FlowlogMetric": { + "type": "string", + "enum": [ + "FLOW_LOG_METRIC_UNSPECIFIED", + "FLOW_LOG_METRIC_BYTES", + "FLOW_LOG_METRIC_PACKETS" + ], + "default": "FLOW_LOG_METRIC_UNSPECIFIED" + }, + "GPSLocation": { + "type": "object", + "properties": { + "latitude": { + "type": "number", + "format": "double", + "description": "Latitude" + }, + "longitude": { + "type": "number", + "format": "double", + "description": "Longitude" + }, + "altitude": { + "type": "number", + "format": "double", + "description": "Altitude from mean sea level" + }, + "timestamp": { + "type": "object", + "format": "date-time", + "description": "UTC timestamp" + }, + "horizontalReliability": { + "type": "number", + "format": "int64", + "description": "Horizontal reliability" + }, + "verticalReliability": { + "type": "number", + "format": "int64", + "description": "Vertical reliability" + }, + "horizontalUncertainty": { + "type": "number", + "format": "double", + "description": "Horizontal uncertainty" + }, + "verticalUncertainty": { + "type": "number", + "format": "double", + "description": "Vertical uncertainty" + }, + "logicalLabel": { + "type": "string", + "description": "Logical label of the adapter used to get GPS coordinates" + } + } + }, + "GeoLocation": { + "type": "object", + "properties": { + "underlayIP": { + "type": "string", + "description": "Single IP address, either in IPv4 or in IPv6 format" + }, + "hostname": { + "type": "string", + "description": "Host name" + }, + "city": { + "type": "string", + "description": "City" + }, + "region": { + "type": "string", + "description": "Region" + }, + "country": { + "type": "string", + "description": "Country code consisting of 2 capital letters as per ISO 3166-1 alpha2 standard" + }, + "loc": { + "type": "string", + "description": "Ordered pair of (latitude, longitude) separated by comma (,). Latitude is the horizontal component used for geographic positioning; it is the angle between 0\u00b0 (the equator) and \u00b190\u00b0 (north or south) at the poles measured in decimal degrees. It is the first value in an ordered pair. A negative number denotes a location south of the equator; a positive number is north. Longitude is the vertical component used for geographic positioning; it is the angle between 0\u00b0 (the Prime Meridian) and \u00b1180\u00b0 (westward or eastward) measured in decimal degrees. It is the second number in an ordered pair. A negative number indicates a location west of Greenwich, England; a positive number east." + }, + "org": { + "type": "string", + "description": "The name of the recipient, firm, or company at this geographical location." + }, + "postal": { + "type": "string", + "description": "Postal code (ZIP code for USA) of the geographical location" + }, + "latlong": { + "type": "string", + "description": "Deprecated field: comma, separated lat, long" + }, + "freeloc": { + "type": "string", + "description": "Free formatted location string" + } + }, + "description": "Geographic location of an edge node determined by a variety of data collection mechanisms (e.g. network routing addresses or internal GPS devices).", + "title": "Geographic location of an edge node" + }, + "ImageDatastore": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Datastore ID" + }, + "name": { + "type": "string", + "description": "Datastore Name" + } + } + }, + "InlineOpaqueBase64Data": { + "type": "object", + "properties": { + "base64Data": { + "type": "string", + "title": "base64 encoded" + }, + "fileNameToUse": { + "type": "string", + "title": "file name to be used for storing this data in EVE.\nthe same file name shall be advertised to application agent" + }, + "base64MetaData": { + "type": "string", + "title": "optional - any arbitrary metadata encoded to base64 string" + } + } + }, + "InstanceTransitionAction": { + "type": "string", + "enum": [ + "INSTANCE_TA_UNSPECIFIED", + "INSTANCE_TA_NONE", + "INSTANCE_TA_UPDATEREQUIRED", + "INSTANCE_TA_UPDATEWITHRESTART", + "INSTANCE_TA_UPDATEWITHPURGE" + ], + "default": "INSTANCE_TA_UNSPECIFIED", + "description": "- INSTANCE_TA_UNSPECIFIED: Default. Invalid option\n - INSTANCE_TA_NONE: Either Edge app bundle has not changed or Edge app bundle has\nchanged but the changes do not impact Edge app instances\n - INSTANCE_TA_UPDATEREQUIRED: Edge app bundle has changed. Changes impact Edge app Instances\nEdge App instances need to be restarted with temporary loss of access\n - INSTANCE_TA_UPDATEWITHRESTART: Transition Action: Update with Restart\n - INSTANCE_TA_UPDATEWITHPURGE: Edge app bundle has changed. Changes impact Edge app Instances\nEdge App instances need to be deleted and created again with\ntemporary loss of access and permanent loss of data", + "title": "Instance Transition action" + }, + "Interface": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Interface name used by the edge application" + }, + "type": { + "type": "string", + "description": "Physical Adapter type for this interface. Applicable only when \"direct attach\" flag is true." + }, + "optional": { + "type": "boolean", + "description": "Indicates if the interface is optional for edge application." + }, + "directattach": { + "type": "boolean", + "description": "If true, a physical adapter is assigned to the edge application directly. If false, a network instance is assigned to the edge application." + }, + "privateip": { + "type": "boolean", + "description": "If true, DHCP network can't be assigned and user needs to provide a static IP address." + }, + "acls": { + "type": "array", + "items": { + "$ref": "#/definitions/Acl" + }, + "description": "Traffic access control rules for this interface. Applicable only when \"direct attach\" flag is false." + } + } + }, + "IoAddresses": { + "type": "object", + "properties": { + "macAddress": { + "type": "string" + } + } + }, + "IoBundleStatus": { + "type": "object", + "properties": { + "type": { + "type": "object", + "$ref": "#/definitions/IoType", + "description": "IoType specifies the type of the Input output of the device" + }, + "name": { + "type": "string", + "description": "Io Bundle status name" + }, + "members": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Member Array", + "title": "members - Deprecated by memberList" + }, + "appName": { + "type": "string", + "description": "Application name" + }, + "lteInfo": { + "type": "object", + "$ref": "#/definitions/LTEAdapter", + "description": "LTE information" + }, + "err": { + "$ref": "#/definitions/DeviceError", + "description": "Device error details", + "title": "6 - DEPRECATED" + }, + "memberList": { + "type": "array", + "items": { + "$ref": "#/definitions/IoMemberStatus" + }, + "description": "List of IO members" + } + }, + "description": "IoBundleStatus is used to store the status of the Input Output bundle", + "title": "IoBundleStatus is used to store the status of the Input Output bundle", + "required": [ + "type", + "name", + "members", + "appName" + ] + }, + "IoMemberStatus": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "IoBundle Member name" + }, + "ioAddress": { + "$ref": "#/definitions/IoAddresses", + "description": "IO addresses of the member. Each address corresponds to the member in the members array" + } + } + }, + "IoType": { + "type": "string", + "enum": [ + "IO_TYPE_UNSPECIFIED", + "IO_TYPE_ETH", + "IO_TYPE_USB", + "IO_TYPE_COM", + "IO_TYPE_AUDIO", + "IO_TYPE_WLAN", + "IO_TYPE_WWAN", + "IO_TYPE_HDMI", + "IO_TYPE_LTE", + "IO_TYPE_STORAGE_NVME_DEVICE", + "IO_TYPE_STORAGE_SATA_DEVICE", + "IO_TYPE_ETH_PF", + "IO_TYPE_ETH_VF", + "IO_TYPE_USB_CONTROLLER", + "IO_TYPE_USB_DEVICE", + "IO_TYPE_CAN", + "IO_TYPE_VCAN", + "IO_TYPE_LCAN", + "IO_TYPE_VLAN", + "IO_TYPE_OTHER" + ], + "default": "IO_TYPE_UNSPECIFIED", + "description": "- IO_TYPE_UNSPECIFIED: No operation/ Invalid peration\n - IO_TYPE_ETH: Ethernet\n - IO_TYPE_USB: USB Type - General\n - IO_TYPE_COM: Communication Port\n - IO_TYPE_AUDIO: Audio Port\n - IO_TYPE_WLAN: wireless LAN\n - IO_TYPE_WWAN: Wireless wide area network\n - IO_TYPE_HDMI: High-Definition Multimedia Interface\n - IO_TYPE_LTE: LTE Interfaces\n - IO_TYPE_STORAGE_NVME_DEVICE: Storage NVME device\n - IO_TYPE_STORAGE_SATA_DEVICE: Storage SATA device\n - IO_TYPE_ETH_PF: Physical Interface (PF) of the Virtual Functions\n - IO_TYPE_ETH_VF: Virtual Function (VF)\n - IO_TYPE_USB_CONTROLLER: USB Type - Controller\n - IO_TYPE_USB_DEVICE: USB Type - Device\n - IO_TYPE_CAN: CAN - Device\n - IO_TYPE_VCAN: VCAN - Virtual CAN device\n - IO_TYPE_LCAN: LCAN - Logical CAN device\n - IO_TYPE_VLAN: VLAN - Virtual LAN device\n - IO_TYPE_OTHER: Other Io Types", + "title": "Input/Output Type" + }, + "LTEAdapter": { + "type": "object", + "properties": { + "simName": { + "type": "string", + "description": "Name of SIM card." + }, + "cellModuleName": { + "type": "string", + "description": "Name of Cell Module" + }, + "imsi": { + "type": "string", + "description": "imsi of the SIM" + }, + "iccid": { + "type": "string", + "description": "iccid of the SIM" + }, + "simcardState": { + "type": "string", + "$ref": "#/definitions/SimcardState", + "description": "State of SimCard" + }, + "imei": { + "type": "string", + "description": "IMEI of Cell Radio." + }, + "firmwareVersion": { + "type": "string", + "description": "Firmware Version of Cell Radio." + } + }, + "description": "Details of LTE Adapter", + "title": "LTE Adapter" + }, + "LimitParams": { + "type": "object", + "properties": { + "limitrate": { + "type": "integer", + "format": "int64", + "description": "UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + "title": "Rate limit in ACL rule" + }, + "limitunit": { + "type": "string", + "description": "UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + "title": "Rate limit unit in ACL rule" + }, + "limitburst": { + "type": "integer", + "format": "int64", + "description": "UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + "title": "Rate limit burst in ACL rule" + } + } + }, + "LispServer": { + "type": "object", + "properties": { + "nameOrIp": { + "type": "string", + "description": "name/IP" + }, + "credential": { + "type": "string", + "description": "lisp credential" + } + }, + "description": "LispServer request payload", + "title": "LispServer payload detail", + "required": [ + "nameOrIp", + "credential" + ] + }, + "ManifestInfo": { + "type": "object", + "properties": { + "bundleVersion": { + "type": "string", + "description": "Current version of edge application being used" + }, + "nextBundleVersion": { + "type": "string", + "description": "Next version of edge application available" + }, + "transitionAction": { + "type": "string", + "$ref": "#/definitions/InstanceTransitionAction", + "description": "Recommended transition action" + }, + "params": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Common and Custom parameters for deciding on transition actions" + }, + "details": { + "$ref": "#/definitions/TransDetails", + "description": "Details for recommended transition action" + }, + "enablevnc": { + "type": "boolean", + "description": "Enable vnc for the app" + } + }, + "description": "Details about transition parameters and indication for cause of the transition and recommendation for the transition action", + "title": "Transition action information" + }, + "MapParams": { + "type": "object", + "properties": { + "appPort": { + "type": "integer", + "format": "int64", + "description": "Application Port value" + } + } + }, + "Match": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Type of Match (Required)", + "title": "enum: host, protocol, adapter\nAt the device level it will pick right interface to apply this match" + }, + "value": { + "type": "string", + "description": "Value of match (Required)" + } + } + }, + "MemorySummary": { + "type": "object", + "properties": { + "TotalMB": { + "type": "number", + "format": "double", + "description": "Total memory for the device in MBs" + }, + "UsedMB": { + "type": "number", + "format": "double", + "description": "Total memory used by the device in MBs within allocated memory" + }, + "AllocatedMB": { + "type": "number", + "format": "double", + "description": "Total allocated memory in MBs" + } + }, + "description": "Memory Summary", + "title": "Memory Summary" + }, + "MetricQueryRequestWithId_HttpRequestMetricType_HttpRequest": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "CPU_TOTAL", + "CPU_USAGE", + "MEMORY_TOTAL", + "MEMORY_UTILIZATION", + "NETWORK_TOTAL", + "NETWORK_RATES", + "EVENTS_COUNT", + "STORAGE_UTILIZATION", + "STORAGE_IO_ZPOOL", + "STORAGE_IO_ZVOL" + ], + "default": "UNSPECIFIED", + "title": "MetricType_HttpRequest - only for swagger documentation" + }, + "MetricQueryRequestWithName_HttpRequestMetricType_HttpRequest": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "CPU_TOTAL", + "CPU_USAGE", + "MEMORY_TOTAL", + "MEMORY_UTILIZATION", + "NETWORK_TOTAL", + "NETWORK_RATES", + "EVENTS_COUNT", + "STORAGE_UTILIZATION", + "STORAGE_IO_ZPOOL", + "STORAGE_IO_ZVOL" + ], + "default": "UNSPECIFIED", + "title": "MetricType_HttpRequest - only for swagger documentation" + }, + "MetricQueryResponse": { + "type": "object", + "properties": { + "threshold": { + "$ref": "#/definitions/MetricThreshold" + }, + "metricType": { + "type": "string" + }, + "xLabel": { + "type": "string" + }, + "yLabels": { + "type": "array", + "items": { + "type": "string" + } + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/MetricQueryResponseItem" + } + } + } + }, + "MetricQueryResponseItem": { + "type": "object", + "properties": { + "timestamp": { + "type": "string", + "format": "date-time" + }, + "values": { + "type": "array", + "items": { + "type": "number", + "format": "double" + } + } + } + }, + "MetricThreshold": { + "type": "object", + "properties": { + "yellow": { + "type": "number", + "format": "double" + }, + "red": { + "type": "number", + "format": "double" + } + } + }, + "ModemDetail": { + "type": "object", + "properties": { + "manufacturer": { + "type": "string", + "description": "Modem manufacturer" + }, + "model": { + "type": "string", + "description": "Modem model" + }, + "firmwareVersion": { + "type": "string", + "description": "Modem firmware version" + }, + "imei": { + "type": "string", + "description": "Modem IMEI" + }, + "operatingState": { + "type": "string", + "$ref": "#/definitions/ZCellularOperatingState", + "description": "Modem operating state" + }, + "controlProtocol": { + "type": "string", + "$ref": "#/definitions/ZCellularControlProtocol", + "description": "Modem control protocol" + } + }, + "description": "ModemDetail describes a cellular Modem", + "title": "ModemDetail describes a cellular Modem" + }, + "ModuleDetail": { + "type": "object", + "example": { + "twinDetail": "IHsKICAgICAgIm5hbWUiOiAiU2VuZEludGVydmFsIiwKICAgICAgInZhbHVlIjogIjUiCiAgICB9" + }, + "properties": { + "twinDetail": { + "type": "string", + "description": "Base64 encoded module twin details, desired properties of the module will be updated to reflect these values" + }, + "routes": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Send messages between modules or send messages from modules to iot hub" + }, + "environment": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Extra information to module to make configuration easier" + }, + "moduleType": { + "$ref": "#/definitions/ModuleType", + "description": "Type of modules" + } + }, + "description": "Azure module specific details", + "title": "Module detail" + }, + "ModuleSummary": { + "type": "object", + "properties": { + "moduleType": { + "$ref": "#/definitions/ModuleType", + "description": "Type of modules" + } + }, + "description": "Azure module specific details", + "title": "Module detail" + }, + "ModuleType": { + "type": "string", + "enum": [ + "MODULE_TYPE_UNSPECIFIED", + "MODULE_TYPE_SYSTEM_DEFINED", + "MODULE_TYPE_CUSTOM", + "MODULE_TYPE_AZURE_EDGE_AGENT", + "MODULE_TYPE_AZURE_EDGE_HUB" + ], + "default": "MODULE_TYPE_UNSPECIFIED", + "description": "module type." + }, + "NetProxyServer": { + "type": "object", + "properties": { + "proto": { + "type": "object", + "$ref": "#/definitions/NetworkProxyProto", + "description": "Net Proxy proto" + }, + "server": { + "type": "string", + "description": "Net Proxy Server" + }, + "port": { + "type": "number", + "format": "int64", + "description": "Net Proxy Port" + } + }, + "description": "Net Proxy Server", + "title": "Net Proxy Server" + }, + "NetProxyStatus": { + "type": "object", + "properties": { + "networkProxy": { + "type": "boolean", + "description": "Use pacfile (Auto discover or manual upload)", + "title": "Enable, the proxy configuration coming from network" + }, + "proxies": { + "type": "array", + "items": { + "$ref": "#/definitions/NetProxyServer" + }, + "description": "protocol level proxies", + "title": "protocol level proxies" + }, + "exceptions": { + "type": "string", + "description": "exceptions" + }, + "pacfile": { + "type": "string", + "description": "proxy configuration in a pacfile", + "title": "proxy configuration in a pacfile" + }, + "networkProxyURL": { + "type": "string", + "description": "Network Proxy URL", + "title": "Direct URL for wpad.dat download" + }, + "wpadProxyURL": { + "type": "string", + "description": "WPAD Proxy URL" + } + }, + "description": "NetProxyStatus is used to store the proxy configurations", + "title": "NetProxyStatus is used to store the proxy configurations" + }, + "NetworkCounters": { + "type": "object", + "properties": { + "ifName": { + "type": "string", + "description": "ifName" + }, + "txBytes": { + "type": "number", + "format": "uint64", + "description": "Tx Bytes" + }, + "rxBytes": { + "type": "number", + "format": "uint64", + "description": "Rx Bytes" + }, + "txPkts": { + "type": "number", + "format": "uint64", + "description": "Tx Packets" + }, + "rxPkts": { + "type": "number", + "format": "uint64", + "description": "Rx packets" + }, + "txErrors": { + "type": "number", + "format": "uint64", + "description": "Tx Errors" + }, + "rxErrors": { + "type": "number", + "format": "uint64", + "description": "Rx Errors" + }, + "txDrops": { + "type": "number", + "format": "uint64", + "description": "Tx Drops" + }, + "rxDrops": { + "type": "number", + "format": "uint64", + "description": "Rx Drops" + }, + "txAclDrops": { + "type": "number", + "format": "uint64", + "description": "Tx ACL Rate Drops" + }, + "rxAclDrops": { + "type": "number", + "format": "uint64", + "description": "Rx ACL Rate Drops" + }, + "txAclRateLimitDrops": { + "type": "number", + "format": "uint64", + "description": "Tx ACL Rate Limit Drops" + }, + "rxAclRateLimitDrops": { + "type": "number", + "format": "uint64", + "description": "Rx ACL Rate Limit Drops" + } + }, + "description": "NetworkCounter is used to store the Network Stats and Counters", + "title": "NetworkCounter is used to store the Network Stats and Counters" + }, + "NetworkProvider": { + "type": "object", + "properties": { + "plmn": { + "type": "string", + "description": "PLMN code" + }, + "name": { + "type": "string", + "description": "Human-friendly name" + }, + "rat": { + "type": "string", + "$ref": "#/definitions/RadioAccessTechnology", + "description": "Radio Access Technology" + }, + "roaming": { + "type": "boolean", + "description": "Is Roaming ON" + }, + "connectedAt": { + "type": "string", + "format": "date-time", + "description": "Time when was the connection established" + } + }, + "description": "NetworkProvider describes a cellular Network Provider", + "title": "NetworkProvider describes a cellular Network Provider" + }, + "NetworkProxyProto": { + "type": "string", + "enum": [ + "NETWORK_PROXY_PROTO_HTTP", + "NETWORK_PROXY_PROTO_HTTPS", + "NETWORK_PROXY_PROTO_SOCKS", + "NETWORK_PROXY_PROTO_FTP", + "NETWORK_PROXY_PROTO_OTHER" + ], + "default": "NETWORK_PROXY_PROTO_HTTP" + }, + "NetworkStatus": { + "type": "object", + "properties": { + "up": { + "type": "boolean", + "description": "Network Status flag" + }, + "macAddr": { + "type": "string", + "description": "mac Address" + }, + "ifName": { + "type": "string", + "description": "ifName" + }, + "ipAddrs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Array of IP addresses" + }, + "defaultRouters": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Default Routers" + }, + "dns": { + "type": "object", + "$ref": "#/definitions/DNSInfo", + "description": "DNS Configuration" + }, + "location": { + "type": "object", + "$ref": "#/definitions/GeoLocation", + "description": "Geo Location Details" + }, + "uplink": { + "type": "boolean", + "description": "Uplink flag" + }, + "proxy": { + "type": "object", + "$ref": "#/definitions/NetProxyStatus", + "description": "Network Proxy status" + }, + "errInfo": { + "type": "object", + "$ref": "#/definitions/DeviceError", + "description": "Network error details" + }, + "gpsLocation": { + "type": "object", + "$ref": "#/definitions/GPSLocation", + "description": "Location from GNSS receivers on WWAN type adapters" + }, + "cellular": { + "type": "object", + "$ref": "#/definitions/CellularStatus", + "description": "Cellular network status" + }, + "mtu": { + "type": "integer", + "format": "int64", + "description": "Network MTU" + }, + "pnacStatus": { + "$ref": "#/definitions/PNACPortStatus", + "description": "PNAC 802.1X authentication status for this port", + "title": "PNAC (802.1X) authentication status for this port" + }, + "configSource": { + "$ref": "#/definitions/commonPortConfigSource", + "description": "Identifies the source of this network port configuration" + } + }, + "description": "NetworkStatus is used to store the Network status", + "title": "NetworkStatus is used to store the Network Status" + }, + "ObjectDetail": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "ObjectParentDetail": { + "type": "object", + "properties": { + "idOfParentObject": { + "type": "string", + "description": "system defined unique id of parent object", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "required": [ + "true" + ] + }, + "versionOfParentObject": { + "type": "integer", + "format": "int64", + "description": "version of object present in parent", + "readOnly": true, + "pattern": "[0-9]+" + }, + "updateAvailable": { + "type": "boolean", + "description": "Update required flag" + }, + "referenceExists": { + "type": "boolean", + "description": "Relation with child and parent object exists or not" + } + }, + "description": "ObjectImportDetail consists of various object attributes like idOfParentObject, versionOfParentObject, updateAvailable, referenceExists", + "title": "Object Import Detail", + "required": [ + "idOfParentObject" + ] + }, + "ObjectRevision": { + "type": "object", + "properties": { + "prev": { + "type": "string", + "description": "Previous" + }, + "curr": { + "type": "string", + "description": "Current Database version of the record" + }, + "createdAt": { + "type": "object", + "format": "date-time", + "description": "The time, in milliseconds since the epoch, when the record was created." + }, + "createdBy": { + "type": "string", + "description": "User data: Created By" + }, + "updatedAt": { + "type": "object", + "format": "date-time", + "description": "The time, in milliseconds since the epoch, when the record was last updated." + }, + "updatedBy": { + "type": "string", + "description": "User data: Updated By" + } + }, + "description": "ObjectRevision store the user details, who has doent the necessary operation like Create Operation or update operation", + "title": "ObjectRevision is used to store the user information.", + "required": [ + "curr", + "createdAt", + "createdBy", + "updatedAt", + "updatedBy" + ] + }, + "ObjectTag": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "object tag key identifier." + }, + "value": { + "type": "string", + "description": "value associated for the object tag key" + }, + "description": { + "type": "string", + "description": "Description of the tag key" + } + }, + "description": "Object tag deaails.", + "title": "Object Tag details" + }, + "ObjectTagsList": { + "type": "object", + "properties": { + "objectTags": { + "type": "array", + "items": { + "$ref": "#/definitions/ObjectTag" + }, + "description": "Details of Object tags list records." + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "Returned record page." + } + }, + "description": "Returned list of Object tags matched by filter criteria", + "title": "Object tag list records" + }, + "ObjectType": { + "type": "string", + "enum": [ + "OBJECT_TYPE_UNSPECIFIED", + "OBJECT_TYPE_USER", + "OBJECT_TYPE_EDGE_NODE", + "OBJECT_TYPE_EDGE_APP", + "OBJECT_TYPE_IMAGE", + "OBJECT_TYPE_EDGE_APP_INSTANCE", + "OBJECT_TYPE_PROJECT", + "OBJECT_TYPE_NETWORK", + "OBJECT_TYPE_DATASTORE", + "OBJECT_TYPE_SERVICE", + "OBJECT_TYPE_SERVICE_INSTANCE", + "OBJECT_TYPE_ENTERPRISE", + "OBJECT_TYPE_ROLE", + "OBJECT_TYPE_CREDENTIAL", + "OBJECT_TYPE_NETWORK_INSTANCE", + "OBJECT_TYPE_VOLUME_INSTANCE", + "OBJECT_TYPE_REALM", + "OBJECT_TYPE_AUTHPROFILE", + "OBJECT_TYPE_POLICY", + "OBJECT_TYPE_APP_POLICY", + "OBJECT_TYPE_CLUSTER_INSTANCE", + "OBJECT_TYPE_PLUGIN", + "OBJECT_TYPE_DOC_POLICY", + "OBJECT_TYPE_ORCHESTRATOR_CLUSTER", + "OBJECT_TYPE_TAGS", + "OBJECT_TYPE_EDGE_NODE_INTERFACE", + "OBJECT_TYPE_DEPLOYMENT", + "OBJECT_TYPE_ENTITLEMENTS", + "OBJECT_TYPE_DATA_STREAM", + "OBJECT_TYPE_API_USAGE", + "OBJECT_TYPE_APP_INSTANCE_SNAPSHOT", + "OBJECT_TYPE_PATCH_ENVELOPE", + "OBJECT_TYPE_RESOURCE_USAGE_TRACK", + "OBJECT_TYPE_PATCH_ENVELOPE_REFERENCE", + "OBJECT_TYPE_DEV_PASSTHROUGH", + "OBJECT_TYPE_EDGE_NODE_CLUSTER", + "OBJECT_TYPE_ASSET_GROUP", + "OBJECT_TYPE_APP_PROFILE", + "OBJECT_TYPE_PROFILE_DEPLOYMENT", + "OBJECT_TYPE_ZKS_INSTANCE", + "OBJECT_TYPE_CLUSTER_GROUP" + ], + "default": "OBJECT_TYPE_UNSPECIFIED" + }, + "OpaqueAppInstanceStatus": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the app instance", + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "App instance name. Unique across the application instance" + }, + "opaqueAppInstanceStatus": { + "type": "string", + "format": "byte", + "description": "opaque app instance status info" + }, + "deviceId": { + "type": "string", + "description": "User defined name of the device, unique across the enterprise.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "lastUpdateTime": { + "type": "string", + "format": "date-time", + "description": "last update time" + } + }, + "description": "Opaque Status for the app instance.", + "title": "Opaque App Instance Status" + }, + "OpaqueObjectCategory": { + "type": "string", + "enum": [ + "OpaqueObjectCategoryUnknown", + "OpaqueObjectCategoryInline", + "OpaqueObjectCategoryExternalBinary" + ], + "default": "OpaqueObjectCategoryUnknown" + }, + "Origin": { + "type": "string", + "enum": [ + "ORIGIN_UNSPECIFIED", + "ORIGIN_IMPORTED", + "ORIGIN_LOCAL", + "ORIGIN_GLOBAL", + "ORIGIN_APP_PROFILE_LOCAL" + ], + "default": "ORIGIN_UNSPECIFIED", + "description": "- ORIGIN_UNSPECIFIED: default options, which says no Operation/Invalid Operation\n - ORIGIN_IMPORTED: Object imported from global enterprise.\n - ORIGIN_LOCAL: Objectl created locally.\n - ORIGIN_GLOBAL: Object created in global store,\nto use this type user should have root previlage.\n - ORIGIN_APP_PROFILE_LOCAL: Object created via App profile", + "title": "OriginType : enum specifies the Object orgigin type" + }, + "PNACPortStatus": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "description": "Whether 802.1X authentication is enabled on this port" + }, + "supplicantState": { + "$ref": "#/definitions/PNACSupplicantState", + "description": "802.1X supplicant state" + }, + "lastAuthTimestamp": { + "type": "string", + "format": "date-time", + "description": "Timestamp of the most recent successful 802.1X authentication." + }, + "err": { + "type": "object", + "$ref": "#/definitions/DeviceError", + "description": "Supplicant authentication error details" + } + }, + "description": "PNACPortStatus reports the 802.1X authentication status of a network port." + }, + "PNACSupplicantState": { + "type": "string", + "enum": [ + "PNAC_SUPPLICANT_STATE_UNSPECIFIED", + "PNAC_SUPPLICANT_STATE_DISCONNECTED", + "PNAC_SUPPLICANT_STATE_CONNECTING", + "PNAC_SUPPLICANT_STATE_AUTHENTICATING", + "PNAC_SUPPLICANT_STATE_AUTHENTICATED", + "PNAC_SUPPLICANT_STATE_FAILED", + "PNAC_SUPPLICANT_STATE_HELD" + ], + "default": "PNAC_SUPPLICANT_STATE_UNSPECIFIED", + "description": "PNACSupplicantState describes the 802.1X supplicant state for PNAC.\n\n - PNAC_SUPPLICANT_STATE_DISCONNECTED: Supplicant is idle or link is down; no authentication in progress.\n - PNAC_SUPPLICANT_STATE_CONNECTING: Link is up and the supplicant is initiating authentication.\n - PNAC_SUPPLICANT_STATE_AUTHENTICATING: Active EAP authentication exchange is in progress.\n - PNAC_SUPPLICANT_STATE_AUTHENTICATED: Authentication completed successfully; port is authorized.\n - PNAC_SUPPLICANT_STATE_FAILED: Authentication failed and access was not granted.\n - PNAC_SUPPLICANT_STATE_HELD: Supplicant is in a held or backoff state following repeated failures." + }, + "Param": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the Parameter (Required)" + }, + "value": { + "type": "string", + "description": "Value of the parameter (Required)" + } + } + }, + "PatchEnvelope": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the patch envelope.", + "readOnly": true, + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the patch envelope, unique across the enterprise. Once patch envelope is created, name can\u2019t be changed.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the patch envelope. Title can be changed at any time.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+" + }, + "description": { + "type": "string", + "description": "Detailed description of the patch envelope.", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined info", + "readOnly": true + }, + "userDefinedVersion": { + "type": "string", + "description": "User defined version for the given patch envelope", + "title": "optional - arbitrary version string if any by user" + }, + "action": { + "$ref": "#/definitions/PatchEnvelopeAction", + "description": "Flag to represent whether device needs to present it to app instance", + "title": "if activate is false, device should only download\nimages and not present them to app instance" + }, + "artifacts": { + "type": "array", + "items": { + "$ref": "#/definitions/BinaryArtifact" + }, + "description": "Patch envelope artifacts" + }, + "projectId": { + "type": "string", + "description": "project id" + }, + "deviceCount": { + "type": "number", + "format": "int64", + "description": "number of devices referencing this patch envelope" + }, + "projectName": { + "type": "string", + "description": "project name" + } + }, + "description": "PatchEnvelope is a proto that should be used by user-agents to create/update opaque data for application instances.", + "title": "Opaque data for application instances", + "required": [ + "name", + "title", + "action", + "artifacts" + ] + }, + "PatchEnvelopeAction": { + "type": "string", + "enum": [ + "PATCH_ENVELOPE_ACTION_UNSPECIFIED", + "PATCH_ENVELOPE_ACTION_STORE", + "PATCH_ENVELOPE_ACTION_ACTIVATE" + ], + "default": "PATCH_ENVELOPE_ACTION_UNSPECIFIED" + }, + "PatchEnvelopeList": { + "type": "object", + "properties": { + "next": { + "$ref": "#/definitions/Cursor", + "description": "cursor next" + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/PatchEnvelope" + }, + "description": "patch envelope summary list" + }, + "summaryByAction": { + "$ref": "#/definitions/Summary", + "description": "patch envelopes summary by action" + }, + "totalCount": { + "type": "integer", + "format": "int64", + "description": "patch envelope total count" + } + } + }, + "PatchEnvelopeState": { + "type": "string", + "enum": [ + "PatchEnvelopeStateUnknown", + "PatchEnvelopeStateErrored", + "PatchEnvelopeStateReceived", + "PatchEnvelopeStateDownloading", + "PatchEnvelopeStateDownloaded", + "PatchEnvelopeStateReady", + "PatchEnvelopeStateActive" + ], + "default": "PatchEnvelopeStateUnknown", + "title": "- PatchEnvelopeStateErrored: there is an error with config or during download or verification failed\n - PatchEnvelopeStateReceived: Configuration received but no downloads started\n - PatchEnvelopeStateDownloading: Artifact/Volume download started\nOne or more of the artifacts are being downloaded\n - PatchEnvelopeStateDownloaded: all downloads finished, verified and added to content tree\n - PatchEnvelopeStateReady: patch envelope ready for application instances\napplication instances will still not be allowed\nto fetch the patch envelope contents\n - PatchEnvelopeStateActive: application instances are now allowed to fetch contents" + }, + "PatchEnvelopeStatus": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "patch envelope id" + }, + "name": { + "type": "string", + "description": "User defined name of the patch envelope, unique across the enterprise. Once patch envelope is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "userDefinedVersion": { + "type": "string", + "description": "User defined version for the given patch envelope" + }, + "state": { + "$ref": "#/definitions/PatchEnvelopeState", + "description": "Patch envelope state" + }, + "errors": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Patch envelope error" + }, + "projectId": { + "type": "string", + "description": "project id" + }, + "projectName": { + "type": "string", + "description": "project name" + }, + "deviceId": { + "type": "string", + "description": "device id" + }, + "deviceName": { + "type": "string", + "description": "device name" + } + }, + "description": "PatchEnvelopeStatus encapsulates the status of an patch envelope", + "title": "Patch Envelope status message" + }, + "PatchEnvelopeUsageInfo": { + "type": "object", + "properties": { + "uuid": { + "type": "string", + "description": "Id of patch envelope", + "title": "UUID of PatchEnvelope" + }, + "patchApiCallCount": { + "type": "number", + "format": "uint64", + "description": "number of times app instance called patch APIs", + "title": "count the number of times app instance called patch APIs" + }, + "version": { + "type": "string", + "description": "version of patch envelope", + "title": "Version of PatchEnvelope" + }, + "downloadCount": { + "type": "string", + "format": "uint64", + "description": " number of times app instance download whole patch envelope or part of it", + "title": "count the number of times app instance actually downloaded\nwhole patch envelope or part of it" + } + } + }, + "PatchReferenceUpdateConfig": { + "type": "object", + "properties": { + "projectId": { + "type": "string" + }, + "patchenvelopeId": { + "type": "string" + }, + "appInstIDList": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "PatchStatusFilter": { + "type": "object", + "properties": { + "deviceName": { + "type": "string" + } + } + }, + "PatchStatusListMsg": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/PatchEnvelopeStatus" + } + }, + "totalCount": { + "type": "integer", + "format": "int64" + }, + "next": { + "$ref": "#/definitions/Cursor" + } + } + }, + "Permission": { + "type": "object" + }, + "RadioAccessTechnology": { + "type": "string", + "enum": [ + "RADIO_ACCESS_TECHNOLOGY_UNSPECIFIED", + "RADIO_ACCESS_TECHNOLOGY_GSM", + "RADIO_ACCESS_TECHNOLOGY_UMTS", + "RADIO_ACCESS_TECHNOLOGY_LTE", + "RADIO_ACCESS_TECHNOLOGY_5GNR" + ], + "default": "RADIO_ACCESS_TECHNOLOGY_UNSPECIFIED", + "description": " - RADIO_ACCESS_TECHNOLOGY_GSM: Global System for Mobile Communications (2G).\n - RADIO_ACCESS_TECHNOLOGY_UMTS: Universal Mobile Telecommunications System (3G).\n - RADIO_ACCESS_TECHNOLOGY_LTE: Long Term Evolution (4G).\n - RADIO_ACCESS_TECHNOLOGY_5GNR: 5G New Radio." + }, + "Resource": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the Resource (Required)" + }, + "value": { + "type": "string", + "description": "Value of Resource (Required)" + } + } + }, + "RunState": { + "type": "string", + "enum": [ + "RUN_STATE_UNSPECIFIED", + "RUN_STATE_ONLINE", + "RUN_STATE_HALTED", + "RUN_STATE_INIT", + "RUN_STATE_REBOOTING", + "RUN_STATE_OFFLINE", + "RUN_STATE_UNKNOWN", + "RUN_STATE_UNPROVISIONED", + "RUN_STATE_PROVISIONED", + "RUN_STATE_SUSPECT", + "RUN_STATE_DOWNLOADING", + "RUN_STATE_RESTARTING", + "RUN_STATE_PURGING", + "RUN_STATE_HALTING", + "RUN_STATE_ERROR", + "RUN_STATE_VERIFYING", + "RUN_STATE_LOADING", + "RUN_STATE_CREATING_VOLUME", + "RUN_STATE_BOOTING", + "RUN_STATE_MAINTENANCE_MODE", + "RUN_STATE_START_DELAYED", + "RUN_STATE_BASEOS_UPDATING", + "RUN_STATE_PREPARING_POWEROFF", + "RUN_STATE_POWERING_OFF", + "RUN_STATE_PREPARED_POWEROFF" + ], + "default": "RUN_STATE_UNSPECIFIED", + "description": "- RUN_STATE_ONLINE: Entity Online\n - RUN_STATE_HALTED: Entity Halted\n - RUN_STATE_INIT: Entity Initializing\n - RUN_STATE_REBOOTING: Entity Rebooting\n - RUN_STATE_OFFLINE: Entity Offline\n - RUN_STATE_UNKNOWN: Entity state Unknown\n - RUN_STATE_UNPROVISIONED: Entity Unprovisioned\n - RUN_STATE_PROVISIONED: Entity Provisioned\n - RUN_STATE_SUSPECT: Entity Suspect\n - RUN_STATE_DOWNLOADING: Edge-node downloading entity artifacts\n - RUN_STATE_RESTARTING: Entity Restarting\n - RUN_STATE_PURGING: Entity Purging\n - RUN_STATE_HALTING: Entity Halting\n - RUN_STATE_ERROR: Entity encountered an error\n - RUN_STATE_VERIFYING: Verification of downloaded Artifacts in Progress.\n - RUN_STATE_LOADING: Loading of Artifacts into local datastore in Progress.\n - RUN_STATE_CREATING_VOLUME: Volume creation from artifacts in Progress\n - RUN_STATE_BOOTING: Entity booting up\n - RUN_STATE_MAINTENANCE_MODE: Entity maintenance mode\n - RUN_STATE_START_DELAYED: Application start delayed as per configuration\n - RUN_STATE_BASEOS_UPDATING: Device BaseOs Update in Progress\n - RUN_STATE_PREPARING_POWEROFF: device preparing power off - shutting down all app instances\n - RUN_STATE_POWERING_OFF: device powering off from local profile server\n - RUN_STATE_PREPARED_POWEROFF: device prepared power off - all app instances are shut down", + "title": "RunState - On update, please update RunState_HttpRequest as well" + }, + "RunStateConfig_HttpRequestRunState_HttpRequest": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "ONLINE", + "HALTED", + "INIT", + "REBOOTING", + "OFFLINE", + "UNKNOWN", + "UNPROVISIONED", + "PROVISIONED", + "SUSPECT", + "DOWNLOADING", + "RESTARTING", + "PURGING", + "HALTING", + "ERROR", + "VERIFYING", + "LOADING", + "CREATING_VOLUME", + "BOOTING", + "MAINTENANCE_MODE", + "START_DELAYED", + "BASEOS_UPDATING", + "PREPARING_POWEROFF", + "POWERING_OFF", + "PREPARED_POWEROFF" + ], + "default": "UNSPECIFIED", + "title": "RunState_HttpRequest - Only for swagger documentation" + }, + "RuntimePlatformVersions": { + "type": "object", + "properties": { + "agentVersion": { + "type": "string", + "description": "agent version" + }, + "composeVersion": { + "type": "string", + "description": "compose version" + }, + "containerRuntimeVersion": { + "type": "string", + "description": "container runtime platform version" + }, + "kernelVersion": { + "type": "string", + "description": "kernel version" + }, + "kubernetesVersion": { + "type": "string", + "description": "kubernetes version" + } + } + }, + "SIMCard": { + "type": "object", + "properties": { + "slotNumber": { + "type": "number", + "format": "int64", + "description": "Slot number" + }, + "slotActivated": { + "type": "boolean", + "description": "Is Slot activated" + }, + "iccid": { + "type": "string", + "description": "Integrated Circuit Card Identifier" + }, + "imsi": { + "type": "string", + "description": "International Mobile Subscriber Identity" + }, + "state": { + "type": "string", + "description": "Current state of the SIM card" + } + }, + "description": "SIMCard describes a SIM slot", + "title": "SIMCard describes a SIM slot" + }, + "SWInfo": { + "type": "object", + "properties": { + "version": { + "type": "string", + "description": "software version" + }, + "hash": { + "type": "string", + "description": "software hash" + }, + "state": { + "$ref": "#/definitions/SWState", + "description": "Software state" + }, + "disk": { + "type": "string", + "description": "software disk" + }, + "downloadProgress": { + "type": "number", + "format": "int64", + "description": "download progress" + }, + "imageName": { + "type": "string", + "description": "image name" + } + }, + "description": "Software Information", + "title": "Software Information" + }, + "SWState": { + "type": "string", + "enum": [ + "SW_STATE_UNSPECIFIED", + "SW_STATE_INITIAL", + "SW_STATE_DOWNLOAD_IN_PROGRESS", + "SW_STATE_DOWNLOADED", + "SW_STATE_VERIFIED", + "SW_STATE_INSTALLED", + "SW_STATE_BOOTING", + "SW_STATE_RUNNING", + "SW_STATE_HALTING", + "SW_STATE_HALTED", + "SW_STATE_REFRESHING", + "SW_STATE_PURGING", + "SW_STATE_RESOLVING_TAG", + "SW_STATE_RESOLVED_TAG", + "SW_STATE_CREATING_VOLUME", + "SW_STATE_CREATED_VOLUME", + "SW_STATE_VERIFYING", + "SW_STATE_LOADING", + "SW_STATE_LOADED", + "SW_STATE_AWAITNETWORKINSTANCE" + ], + "default": "SW_STATE_UNSPECIFIED", + "description": "- SW_STATE_RESOLVING_TAG: Prior to DOWNLOAD_STARTED we go through these:\nResolving an image tag\n - SW_STATE_RESOLVED_TAG: Tag has been resolved/failed\n - SW_STATE_CREATING_VOLUME: Prior to INSTALLED we go through these:\nVolume create in progress\n - SW_STATE_CREATED_VOLUME: Volume create done/failed\n - SW_STATE_VERIFYING: Verification in-progress\n - SW_STATE_LOADING: Loading blob in CAS\n - SW_STATE_LOADED: Loaded blob in CAS\n - SW_STATE_AWAITNETWORKINSTANCE: Wait for network instance", + "title": "State of EVE/Edge Application software" + }, + "Severity": { + "type": "string", + "enum": [ + "SEVERITY_UNSPECIFIED", + "SEVERITY_NOTICE", + "SEVERITY_WARNING", + "SEVERITY_ERROR" + ], + "default": "SEVERITY_UNSPECIFIED", + "title": "Severity tells the severity type" + }, + "SharedStorageSummary": { + "type": "object", + "properties": { + "Id": { + "type": "string", + "description": "Id" + }, + "Name": { + "type": "string", + "description": "Name" + }, + "AllocatedMB": { + "type": "number", + "format": "double", + "description": "Allocated Storage in MBs" + }, + "UsedMB": { + "type": "number", + "format": "double", + "description": "How much is used within the allocated total storage" + } + }, + "description": "Shared Storage Summary", + "title": "Shared Storage Summary" + }, + "SimcardState": { + "type": "string", + "enum": [ + "SIMCARD_STATE_INVALID", + "SIMCARD_STATE_ASSIGNED", + "SIMCARD_STATE_PROVISIONED", + "SIMCARD_STATE_ACTIVE", + "SIMCARD_STATE_SUSPENDED", + "SIMCARD_STATE_CANCELLED" + ], + "default": "SIMCARD_STATE_INVALID" + }, + "SnapshotState": { + "type": "string", + "enum": [ + "INVALID", + "IDLE", + "CREATING", + "CREATED", + "CREATE_FAILED", + "ROLLING_BACK", + "ACTIVE", + "ROLLBACK_FAILED", + "DELETING", + "DELETE_FAILED", + "DELETED" + ], + "default": "INVALID" + }, + "StorageDeviceMetrics": { + "type": "object", + "properties": { + "readErrors": { + "type": "number", + "format": "int64", + "description": "read errors counter" + }, + "writeErrors": { + "type": "number", + "format": "int64", + "description": "write errors counter" + }, + "checksumErrors": { + "type": "number", + "format": "int64", + "description": "checksum errors counter" + }, + "bytesRead": { + "type": "number", + "format": "int64", + "description": "read bytes counter" + }, + "bytesWrite": { + "type": "number", + "format": "int64", + "description": "write bytes counter" + } + } + }, + "StorageSummary": { + "type": "object", + "properties": { + "TotalMB": { + "type": "number", + "format": "double", + "description": "Total Storage for the device in MBs" + }, + "UsedMB": { + "type": "number", + "format": "double", + "description": "How much is used within the allocated total storage" + }, + "AllocatedMB": { + "type": "number", + "format": "double", + "description": "Total reserved for running applications + temp. images etc" + }, + "sharedStorageSummary": { + "type": "array", + "items": { + "$ref": "#/definitions/SharedStorageSummary" + }, + "description": "Shared storage summary" + }, + "Id": { + "type": "string", + "description": "Id" + }, + "Name": { + "type": "string", + "description": "Name" + } + }, + "description": "Storage Summary", + "title": "Storage Summary" + }, + "Summary": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Summary description" + }, + "total": { + "type": "number", + "format": "int64", + "description": "Total" + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "integer", + "format": "int64" + }, + "description": "Values: Map for storing " + } + }, + "description": "Summary is used to store the Summary details", + "title": "Summary is used to store the Summary details" + }, + "TopTalkersResponse": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/TopTalkersResponseItem" + } + }, + "next": { + "$ref": "#/definitions/Cursor" + } + } + }, + "TopTalkersResponseItem": { + "type": "object", + "properties": { + "localAddr": { + "type": "string", + "minLength": 1, + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + }, + "remoteAddr": { + "type": "string" + }, + "localPort": { + "type": "integer", + "format": "int64" + }, + "remotePort": { + "type": "integer", + "format": "int64" + }, + "proto": { + "type": "integer", + "format": "int64" + }, + "Total": { + "type": "string", + "format": "uint64" + }, + "rxTotal": { + "type": "string", + "format": "uint64" + }, + "txTotal": { + "type": "string", + "format": "uint64" + } + } + }, + "TransCause": { + "type": "string", + "enum": [ + "TRANS_CAUSE_UNSPECIFIED", + "TRANS_CAUSE_APP_DRIVE_CHANGED", + "TRANS_CAUSE_APP_NETWORK_CHANGED", + "TRANS_CAUSE_APP_CUSTOM_CONFIG_CHANGED", + "TRANS_CAUSE_APP_MODULE_BUNDLE_UPDATE", + "TRANS_CAUSE_APP_DESC_CHANGED", + "TRANS_CAUSE_APP_FIXED_RESOURCES_CHANGED", + "TRANS_CAUSE_APP_VNC_MODE_CHANGED", + "TRANS_CAUSE_APP_VM_MODE_CHANGED", + "TRANS_CAUSE_INTER_CA_EXPIRING", + "TRANS_CAUSE_INTER_CA_EXPIRED", + "TRANS_CAUSE_DEVICE_CA_EXPIRING", + "TRANS_CAUSE_DEVICE_CA_EXPIRED", + "TRANS_CAUSE_IDENTITY_CA_EXPIRING", + "TRANS_CAUSE_IDENTITY_CA_EXPIRED", + "TRANS_CAUSE_APP_COMPOSE_TAR_IMAGE_CHANGED", + "TRANS_CAUSE_APP_COMPOSE_YAML_CHANGED", + "TRANS_CAUSE_APP_COMPOSE_DATASTORE_CHANGED", + "TRANS_CAUSE_APP_ENABLE_VM_CONFIG_CHANGED" + ], + "default": "TRANS_CAUSE_UNSPECIFIED" + }, + "TransDetails": { + "type": "object", + "properties": { + "cause": { + "$ref": "#/definitions/TransCause", + "description": "Cause of the transition action" + }, + "severity": { + "type": "string", + "description": "Urgency of the recommended action (ERROR - must take action immediately, WARN - must take action but not immediately, NOTICE - may take action" + }, + "scope": { + "$ref": "#/definitions/ActionScope", + "description": "Scope of the action (e.g. project, cluster, instance)" + } + } + }, + "TwinDetail": { + "type": "object", + "properties": { + "authenticationType": { + "type": "string" + }, + "cloudToDeviceMessageCount": { + "type": "integer", + "format": "int64" + }, + "reported": { + "type": "string", + "format": "byte" + }, + "desired": { + "type": "string", + "format": "byte" + }, + "moduleCount": { + "type": "integer", + "format": "int64" + }, + "lastDesiredStatus": { + "type": "string", + "format": "byte" + }, + "tags": { + "type": "string", + "format": "byte" + }, + "statusCode": { + "type": "integer", + "format": "int32" + }, + "description": { + "type": "string" + } + } + }, + "UserDataTemplate": { + "type": "object", + "properties": { + "customConfig": { + "$ref": "#/definitions/CustomConfig" + } + } + }, + "VCEStatus": { + "type": "object", + "properties": { + "vceStatusDetail": { + "$ref": "#/definitions/VCEStatusDetail" + } + }, + "description": "status of object on velocloud." + }, + "VCEStatusDetail": { + "type": "object", + "properties": { + "vceURL": { + "type": "string" + }, + "vceEdgeId": { + "type": "integer", + "format": "int64" + }, + "activationState": { + "type": "string" + }, + "edgeState": { + "type": "string" + }, + "serviceState": { + "type": "string" + }, + "haState": { + "type": "string" + }, + "haPreviousState": { + "type": "string" + }, + "bastionState": { + "type": "string" + }, + "created": { + "type": "string", + "format": "date-time" + }, + "activationKey": { + "type": "string" + }, + "activationKeyExpires": { + "type": "string", + "format": "date-time" + }, + "activationTime": { + "type": "string", + "format": "date-time" + }, + "serialNumber": { + "type": "string" + }, + "lteRegion": { + "type": "string" + }, + "alertsEnabled": { + "type": "boolean" + }, + "operatorAlertsEnabled": { + "type": "boolean" + }, + "edgeStateTime": { + "type": "string", + "format": "date-time" + }, + "isLive": { + "type": "boolean" + }, + "systemUpSince": { + "type": "string", + "format": "date-time" + }, + "serviceUpSince": { + "type": "string", + "format": "date-time" + }, + "lastContact": { + "type": "string", + "format": "date-time" + }, + "haLastContact": { + "type": "string", + "format": "date-time" + }, + "haSerialNumber": { + "type": "string" + }, + "modified": { + "type": "string", + "format": "date-time" + }, + "isHub": { + "type": "boolean" + }, + "statusFetchedAt": { + "type": "string", + "format": "date-time" + } + } + }, + "VMManifest": { + "type": "object", + "properties": { + "acKind": { + "type": "string", + "default": "VMManifest", + "description": "UI map: N/A - not exposed to users", + "title": "Edge Application type" + }, + "acVersion": { + "type": "string", + "default": "1.2.0", + "description": "UI map: N/A - not exposed to users", + "title": "Manifest version" + }, + "name": { + "type": "string", + "description": "UI map: AppEditPage:IdentityPane:Name_Field, AppDetailsPage:IdentityPane:Name_Field", + "title": "Unique id of app manifest, should match object name" + }, + "displayName": { + "type": "string", + "description": "UI map: AppEditPage:IdentityPane:Title_Field, AppDetailsPage:IdentityPane:Title_Field", + "title": "Display name or title of app manifest" + }, + "description": { + "type": "string", + "description": "UI map: AppDetailsPage:IdentityPane:DescriptionField, AppMarketplacePage:AppCard:DescriptionField", + "title": "Description of the Edge application", + "pattern": "[0-9A-Za-z-]+" + }, + "owner": { + "$ref": "#/definitions/Author", + "description": "Owner of the application" + }, + "desc": { + "$ref": "#/definitions/Details", + "description": "Description of the application" + }, + "images": { + "type": "array", + "items": { + "$ref": "#/definitions/VMManifestImage" + }, + "description": "UI map: AppEditPage:DrivesPane, AppDetailsPage:DrivesPane", + "title": "Images used by the app" + }, + "interfaces": { + "type": "array", + "items": { + "$ref": "#/definitions/Interface" + }, + "description": "UI map: AppEditPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + "title": "I/O adapter settings" + }, + "permissions": { + "type": "array", + "items": { + "$ref": "#/definitions/Permission" + } + }, + "vmmode": { + "type": "string", + "default": "HV_HVM", + "description": "UI map: AppEditPage:IdentityPane:VM_Mode_Field, AppDetailsPage:IdentityPane:VM_Mode_Field", + "title": "VM mode for VM-based app" + }, + "enablevnc": { + "type": "boolean", + "description": "UI map: AppEditPage:IdentityPane:VNC_Field, AppDetailsPage:IdentityPane:VNC_Field", + "title": "Enable VNC for the app" + }, + "resources": { + "type": "array", + "items": { + "$ref": "#/definitions/Resource" + }, + "description": "UI map: AppEditPage:ResourcesPane, AppDetailsPage:ResourcesPane", + "title": "Hardware resource requirement (CPU, Memory, Storage) for the app" + }, + "configuration": { + "$ref": "#/definitions/UserDataTemplate", + "description": "Template for Custom Configuration. Used for Cloud-Init", + "title": "Annotations types.Annotations `json:\"Annotations,omitempty\"`\nLabels types.Labels `json:\"Labels,omitempty\"`" + }, + "containerDetail": { + "$ref": "#/definitions/ContainerDetail", + "description": "Create options direct the creation of the Docker container", + "title": "Container specific details" + }, + "module": { + "$ref": "#/definitions/ModuleDetail", + "description": "Azure module specific details like module twin, environment variable, routes", + "title": "Module specific details" + }, + "appType": { + "$ref": "#/definitions/AppType", + "description": "bundle type, eg: vm, container, module" + }, + "deploymentType": { + "$ref": "#/definitions/DeploymentType", + "description": "type of deployment for the app, eg: azure, k3s, standalone" + }, + "cpuPinningEnabled": { + "type": "boolean", + "description": "Enable CpuPinning" + }, + "runtimeVersion": { + "$ref": "#/definitions/DockerRuntimeVersion", + "description": "Indicates the version of container orchestration software", + "title": "docker-compose runtime specific versions" + }, + "runtimeProtocolVersion": { + "$ref": "#/definitions/DockerRuntimeProtocolVersion", + "description": "Indicates the internal communication protocol to pass configuration between Zedcloud and docker-compose runtime" + }, + "PersistentRuntimeSizeBytes": { + "type": "string", + "format": "uint64", + "description": "Size of persistent blank storage for runtime in bytes" + }, + "dockerComposeYamlText": { + "type": "string", + "description": "Docker compose base64 encoded plain text" + }, + "dockerComposeTarImageName": { + "type": "string", + "description": "Docker compose tar image name" + }, + "enableOemWinLicenseKey": { + "type": "boolean", + "description": "UI map: AppEditPage:IdentityPane:ENABLEVMCONFIG_Field, AppDetailsPage:IdentityPane:ENABLEVMCONFIG_Field", + "title": "Enable device to read the license info from APCI tables" + }, + "disableVTPM": { + "type": "boolean", + "description": "UI map: AppEditPage:IdentityPane:DISABLEVTPM_Field, AppDetailsPage:IdentityPane:DISABLEVTPM_Field", + "title": "Disable vTPM for a virtual machine (VM)" + } + } + }, + "VMManifestImage": { + "type": "object", + "properties": { + "imagename": { + "type": "string", + "description": "UI map: AppEditPage:DrivesPane:Image_Name_Field, AppDetailsPage:DrivesPane:Image_Name_Field" + }, + "imageid": { + "type": "string", + "description": "UI map: AppEditPage:DrivesPane:Image_ID_Field, AppDetailsPage:DrivesPane:Image_ID_Field" + }, + "imageformat": { + "$ref": "#/definitions/configFormat", + "description": "UI map: AppEditPage:DrivesPane:Image_Format_Field, AppDetailsPage:DrivesPane:Image_Format_Field" + }, + "maxsize": { + "type": "string", + "format": "uint64", + "description": "UI map: AppEditPage:DrivesPane:Max_Size_Field, AppDetailsPage:DrivesPane:Max_Size_Field" + }, + "preserve": { + "type": "boolean", + "description": "UI map: AppEditPage:DrivesPane:Preserve_Field, AppDetailsPage:DrivesPane:Preserve_Field" + }, + "target": { + "type": "string", + "description": "UI map: AppEditPage:DrivesPane:Target_Field, AppDetailsPage:DrivesPane:Target_Field", + "title": "enum: Disk, Kernel, Initrd, RamDisk" + }, + "drvtype": { + "type": "string", + "description": "UI map: AppEditPage:DrivesPane:Drive_Type_Field, AppDetailsPage:DrivesPane:Drive_Type_Field", + "title": "enum: CDROM, HDD, NET" + }, + "params": { + "type": "array", + "items": { + "$ref": "#/definitions/Param" + }, + "title": "Not used by ZedUI" + }, + "readonly": { + "type": "boolean", + "title": "Not used by ZedUI" + }, + "volumelabel": { + "type": "string", + "description": "UI map: AppEditPage:DrivesPane:Volume_Label, AppDetailsPage:DrivesPane:Volume_Label" + }, + "ignorepurge": { + "type": "boolean", + "description": "UI map: AppEditPage:DrivesPane:Ignorepurge, AppDetailsPage:DrivesPane:Ignorepurgee_Field" + }, + "cleartext": { + "type": "boolean", + "description": "UI map: AppEditPage:DrivesPane:Cleartext, AppDetailsPage:DrivesPane:ClearText_Field" + }, + "mountpath": { + "type": "string", + "description": "UI map: AppEditPage:DrivesPane:Mountpath, AppDetailsPage:DrivesPane:Mountpath_Field" + }, + "imagestatus": { + "type": "string", + "description": "UI map: AppEditPage:DrivesPane:Image_Status_Field, AppDetailsPage:DrivesPane:Image_Status_Field", + "title": "enum: UNSPECIFIED, CREATED, PENDING, UPLOADING, READY, INUSE, ARCHIVED, MAX, FAILED, UPLINKING" + }, + "datastore": { + "type": "array", + "items": { + "$ref": "#/definitions/ImageDatastore" + }, + "description": "UI map: AppEditPage:DrivesPane:DataStore_Field, AppDetailsPage:DrivesPane:DataStore_Field" + } + } + }, + "VMManifestSummary": { + "type": "object", + "properties": { + "acKind": { + "type": "string", + "default": "VMManifest", + "description": "UI map: N/A - not exposed to users", + "title": "Edge Application type" + }, + "acVersion": { + "type": "string", + "default": "1.2.0", + "description": "UI map: N/A - not exposed to users", + "title": "Manifest version" + }, + "name": { + "type": "string", + "description": "UI map: AppEditPage:IdentityPane:Name_Field, AppDetailsPage:IdentityPane:Name_Field", + "title": "Unique id of app manifest, should match object name" + }, + "displayName": { + "type": "string", + "description": "UI map: AppEditPage:IdentityPane:Title_Field, AppDetailsPage:IdentityPane:Title_Field", + "title": "Display name or title of app manifest" + }, + "description": { + "type": "string", + "description": "UI map: AppDetailsPage:IdentityPane:DescriptionField, AppMarketplacePage:AppCard:DescriptionField", + "title": "Description of the Edge application", + "pattern": "[0-9A-Za-z-]+" + }, + "desc": { + "$ref": "#/definitions/Details", + "description": "Details of the Edge App" + }, + "module": { + "$ref": "#/definitions/ModuleSummary", + "description": "Azure module specific details like module twin, environment variable, routes", + "title": "Module specific details" + }, + "appType": { + "$ref": "#/definitions/AppType", + "description": "bundle type, eg: vm, container, module" + }, + "deploymentType": { + "$ref": "#/definitions/DeploymentType", + "description": "type of deployment for the app, eg: azure, k3s, standalone" + } + }, + "title": "VMManifestSummary - App summary for list views" + }, + "VariableFileEncoding": { + "type": "string", + "enum": [ + "FILE_ENCODING_UNSPECIFIED", + "FILE_ENCODING_BASE64" + ], + "default": "FILE_ENCODING_UNSPECIFIED", + "description": "- FILE_ENCODING_UNSPECIFIED: File content not encoded\n - FILE_ENCODING_BASE64: File content encoded in Base64", + "title": "File content encoding type" + }, + "VariableGroupCondition": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + }, + "operator": { + "$ref": "#/definitions/VariableGroupConditionOperator" + } + } + }, + "VariableGroupConditionOperator": { + "type": "string", + "enum": [ + "CONDITION_OPERATOR_UNSPECIFIED", + "CONDITION_OPERATOR_EQUALTO", + "CONDITION_OPERATOR_NOTEQUALTO" + ], + "default": "CONDITION_OPERATOR_UNSPECIFIED" + }, + "VariableGroupVariable": { + "type": "object", + "example": { + "format": "VARIABLE_FORMAT_TEXT", + "name": "username", + "label": "Enter User Name", + "required": "True" + }, + "properties": { + "type": { + "type": "string" + }, + "name": { + "type": "string", + "description": "Name of the Variable (Required)" + }, + "label": { + "type": "string", + "description": "Label for the variable (Required)" + }, + "maxLength": { + "type": "string", + "description": "Max length of the value of the variable(Optional. Default: 1024)" + }, + "required": { + "type": "boolean", + "description": "This variable MUST be specified when creating an App Instance. (Optional. Default: False)" + }, + "default": { + "type": "string", + "description": "Default value of the variable. (Optional. Default: )" + }, + "processInput": { + "type": "string" + }, + "value": { + "type": "string", + "description": "User-specified value of the variable.(Required if required is true. Optional otherwise)" + }, + "format": { + "$ref": "#/definitions/VariableVariableFormat", + "description": "Format of the user variable. (Required)" + }, + "encode": { + "$ref": "#/definitions/VariableFileEncoding", + "description": "Encoding of file content. Applicable if format is VARIABLE_FORMAT_FILE" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/VariableOptionVal" + }, + "description": "Key-Value pair of options. Applicable if format is VARIABLE_FORMAT_DROPDOWN" + } + }, + "description": "Edge Application Artifact Details", + "title": "Edge Application detail", + "required": [ + "format", + "name", + "label", + "required" + ] + }, + "VariableOptionVal": { + "type": "object", + "properties": { + "label": { + "type": "string", + "description": "Display label of the key in User-Agent" + }, + "value": { + "type": "string", + "description": "Value of the key to be used" + } + } + }, + "VariableVariableFormat": { + "type": "string", + "enum": [ + "VARIABLE_FORMAT_UNSPECIFIED", + "VARIABLE_FORMAT_TEXT", + "VARIABLE_FORMAT_NUMBER", + "VARIABLE_FORMAT_FILE", + "VARIABLE_FORMAT_DROPDOWN", + "VARIABLE_FORMAT_BOOLEAN", + "VARIABLE_FORMAT_PASSWORD" + ], + "default": "VARIABLE_FORMAT_UNSPECIFIED", + "description": "- VARIABLE_FORMAT_UNSPECIFIED: Invalid format\n - VARIABLE_FORMAT_TEXT: Value in string format\n - VARIABLE_FORMAT_NUMBER: Value in integer format\n - VARIABLE_FORMAT_FILE: Value to be read from a file\n - VARIABLE_FORMAT_DROPDOWN: Value to be selected from dropdown of options\n - VARIABLE_FORMAT_BOOLEAN: Value in boolean format\n - VARIABLE_FORMAT_PASSWORD: Value in string to be masked in User-Agent", + "title": "Custom variable format" + }, + "VmBootloaderMode": { + "type": "string", + "enum": [ + "VM_BOOTLOADER_MODE_UNSPECIFIED", + "VM_BOOTLOADER_MODE_LEGACY", + "VM_BOOTLOADER_MODE_UEFI" + ], + "default": "VM_BOOTLOADER_MODE_UNSPECIFIED", + "title": "VmBootloaderMode is used to specify the bootloader mode that will be used for the VM.\nIt represents the boot mechanism to be used to boot the VM" + }, + "ZCellularControlProtocol": { + "type": "string", + "enum": [ + "Z_CELLULAR_CONTROL_PROTOCOL_UNSPECIFIED", + "Z_CELLULAR_CONTROL_PROTOCOL_QMI", + "Z_CELLULAR_CONTROL_PROTOCOL_MBIM" + ], + "default": "Z_CELLULAR_CONTROL_PROTOCOL_UNSPECIFIED" + }, + "ZCellularOperatingState": { + "type": "string", + "enum": [ + "Z_CELLULAR_OPERATING_STATE_UNSPECIFIED", + "Z_CELLULAR_OPERATING_STATE_OFFLINE", + "Z_CELLULAR_OPERATING_STATE_RADIO_OFF", + "Z_CELLULAR_OPERATING_STATE_ONLINE", + "Z_CELLULAR_OPERATING_STATE_ONLINE_AND_CONNECTED", + "Z_CELLULAR_OPERATING_STATE_UNRECOGNIZED" + ], + "default": "Z_CELLULAR_OPERATING_STATE_UNSPECIFIED" + }, + "ZcOpsStatus": { + "type": "string", + "enum": [ + "OPS_STATUS_UNSPECIFIED", + "OPS_STATUS_PENDING", + "OPS_STATUS_ONGOING", + "OPS_STATUS_COMPLETE" + ], + "default": "OPS_STATUS_UNSPECIFIED", + "description": "- OPS_STATUS_PENDING: In rare cases, system may not start operation when it was requested. Client will be notified that operation is PENDING\n - OPS_STATUS_ONGOING: system will start the operation, but at the time response was generated, operation is still ONGOING.\n - OPS_STATUS_COMPLETE: Even if the result of the operations may result in failure, but the OpsStatus will marked COMPLETE for almost all cases.", + "title": "ZedCloud internal operation status" + }, + "ZcOpsType": { + "type": "string", + "enum": [ + "OPS_TYPE_UNSPECIFIED", + "OPS_TYPE_READ", + "OPS_TYPE_DELETE", + "OPS_TYPE_CREATE", + "OPS_TYPE_UPDATE", + "OPS_TYPE_LIST" + ], + "default": "OPS_TYPE_UNSPECIFIED", + "title": "ZedCloud internal operation type" + }, + "ZedCloudOpsCmd": { + "type": "object", + "properties": { + "counter": { + "type": "number", + "format": "int64", + "description": "counter" + }, + "opsTime": { + "type": "object", + "format": "date-time", + "description": "Timestamp: Operational time" + } + }, + "description": "Zed cloud Operation command", + "title": "Zed cloud Operation command" + }, + "ZsrvError": { + "type": "object", + "properties": { + "ec": { + "$ref": "#/definitions/ZsrvErrorCode", + "title": "Enumrated error code, describes more granular numerical\nvalue than just httpStatus" + }, + "location": { + "type": "string", + "title": "Ignore: Internal field only" + }, + "details": { + "type": "string", + "title": "Field captures string description of details" + } + } + }, + "ZsrvErrorCode": { + "type": "string", + "enum": [ + "zMsgErrorNone", + "zMsgSucess", + "NotFound", + "AlreadyExists", + "VersionMismatch", + "RangeError", + "LargeResult", + "IncompleteData", + "InvalidData", + "FunctionUnsupported", + "NoMemory", + "SendFailure", + "Timeout", + "BadReqBody", + "BadReqParam", + "InvalidFieldFormat", + "UrlNotFound", + "ApiVersionNotSupported", + "Unauthorized", + "Forbidden", + "Conflict", + "NotModified", + "DependencyConflict", + "JsonFmtError", + "ProtoFmtError", + "CertError", + "DataBaseConnection", + "DBError", + "zMsgAccepted", + "zMsgCreated", + "PreConditionFailed", + "InternalServerError" + ], + "default": "zMsgErrorNone", + "description": "- zMsgErrorNone: common validation errors\n - IncompleteData: message had fields that weren't filled in\n - InvalidData: message contained the field that wasn't expected\n - FunctionUnsupported: this feature unavailable on this version of device\n - InvalidFieldFormat: message contained the field that wasn't correctly formatted\n - JsonFmtError: Marshal / Unmarshal errors\n - DataBaseConnection: generic DB error", + "title": "ZedCould internal error code" + }, + "ZsrvResponse": { + "type": "object", + "properties": { + "operationType": { + "$ref": "#/definitions/ZcOpsType", + "title": "Describes one of the operations type : possible values\n Read/Delete/Create/Update/List" + }, + "operationStatus": { + "$ref": "#/definitions/ZcOpsStatus", + "title": "if this is log running job" + }, + "objectKind": { + "type": "string", + "title": "zedcloud object kind on which the operation was performed" + }, + "objectId": { + "type": "string", + "title": "Unique value identifies the object that was operated on" + }, + "objectName": { + "type": "string", + "title": "name of the object" + }, + "objectRevision": { + "type": "string", + "title": "object revision post the operation, note Read operation\ndoesn't change the revision" + }, + "objectType": { + "$ref": "#/definitions/ObjectType" + }, + "operationTime": { + "type": "string", + "title": "time of operation" + }, + "startTime": { + "type": "string", + "title": "total time taken by operations" + }, + "endTime": { + "type": "string" + }, + "user": { + "type": "string", + "title": "the operation is performed on behalf of this user" + }, + "httpStatusCode": { + "type": "integer", + "format": "int32", + "title": "http response" + }, + "httpStatusMsg": { + "type": "string", + "title": "summary of the error in text format" + }, + "jobId": { + "type": "string", + "title": "for tracking asynchronous tasks" + }, + "error": { + "type": "array", + "items": { + "$ref": "#/definitions/ZsrvError" + }, + "title": "one or more errors will be set if the operation failed\ni.e. httpStatusCode != 2xx" + } + } + }, + "appACE": { + "type": "object", + "properties": { + "matches": { + "type": "array", + "items": { + "$ref": "#/definitions/appACEMatch" + }, + "description": "app ACE match" + }, + "actions": { + "type": "array", + "items": { + "$ref": "#/definitions/appACEAction" + }, + "description": "app ACE actions" + }, + "id": { + "type": "number", + "format": "int32", + "description": "app ACE id" + }, + "name": { + "type": "string", + "description": "User defined name of the app ACE, unique across the enterprise. Once object is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + } + }, + "description": "App ACE Configuration", + "title": "App ACE detaisn", + "required": [ + "matches", + "actions", + "id", + "name" + ] + }, + "appACEAction": { + "type": "object", + "properties": { + "drop": { + "type": "boolean", + "description": "ACE drop flag" + }, + "limit": { + "type": "boolean", + "description": "ACE limit flag" + }, + "limitrate": { + "type": "number", + "format": "int64", + "description": "ACE limit rate" + }, + "limitunit": { + "type": "string", + "description": "ACE limit unit" + }, + "limitburst": { + "type": "number", + "format": "int64", + "description": "ACE limit burst" + }, + "portmap": { + "type": "boolean", + "description": "application port map flag" + }, + "mapparams": { + "$ref": "#/definitions/appMapParams", + "description": "Application map params" + } + }, + "description": "App ACE actions", + "title": "App ACE Action", + "required": [ + "drop", + "limit", + "limitrate", + "limitunit", + "limitburst", + "portmap", + "mapparams" + ] + }, + "appACEMatch": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Type" + }, + "value": { + "type": "string", + "description": "Value" + } + }, + "description": "App ACE Match", + "title": "appACEMatch detail", + "required": [ + "type", + "value" + ] + }, + "appInstConfigStatus": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the app instance", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the app instance, unique across the enterprise. Once app instance is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "deviceId": { + "type": "string", + "description": "System generated identifier for the device", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "deviceName": { + "type": "string", + "description": "User defined name of the device, unique across the enterprise. Once device is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "appId": { + "type": "string", + "description": "System generated identifier for the app bundle", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "appName": { + "type": "string", + "description": "User defined name of the edge app, unique across the enterprise. Once edge app is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "projectId": { + "type": "string", + "description": "System generated identifier for the project", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "projectName": { + "type": "string", + "description": "User defined name of the project, unique across the enterprise. Once project is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "runState": { + "$ref": "#/definitions/RunState", + "description": "operation status" + }, + "Storage": { + "$ref": "#/definitions/StorageSummary", + "description": "storage summary" + }, + "cpuUtilization": { + "type": "number", + "format": "double", + "description": "cpu utilization" + }, + "memoryUtilization": { + "type": "number", + "format": "double", + "description": "memory utilization" + }, + "storageUtilization": { + "type": "number", + "format": "double", + "description": "storage utilization" + }, + "appType": { + "$ref": "#/definitions/AppType", + "description": "type of app" + }, + "userDefinedVersion": { + "type": "string", + "description": "Instance version tells which edge app does this instance is running" + }, + "swState": { + "$ref": "#/definitions/SWState", + "description": "sotware state" + }, + "swInfo": { + "type": "array", + "items": { + "$ref": "#/definitions/SWInfo" + }, + "description": "Software details" + }, + "manifestInfo": { + "$ref": "#/definitions/ManifestInfo", + "description": "app manifest Info" + }, + "patchEnvelopeId": { + "type": "string", + "description": "Patch envelope Id" + }, + "patchEnvelopeName": { + "type": "string", + "description": "Patch envelope name" + }, + "deploymentType": { + "$ref": "#/definitions/DeploymentType", + "description": "type of deployment for the app" + }, + "netStatusList": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkStatus" + }, + "description": "network status list" + }, + "vminfo": { + "$ref": "#/definitions/vm", + "description": "virtual machine info" + }, + "remoteConsole": { + "type": "boolean", + "description": "Remote console flag" + } + }, + "description": "appInstConfigStatus stores the summary of the app instance config status", + "title": "App instance config status" + }, + "appInterface": { + "type": "object", + "properties": { + "netname": { + "type": "string", + "description": "network name: will be deprecated in future, use netinstname" + }, + "io": { + "$ref": "#/definitions/phyAdapter", + "description": "Physical Adapter to be matched for interface assignment. Applicable only when \"direct attach\" flag is true" + }, + "intforder": { + "type": "number", + "format": "int64", + "description": "intforder" + }, + "intfname": { + "type": "string", + "description": "intf Name" + }, + "directattach": { + "type": "boolean", + "description": "direct attach flag", + "title": "comes from manifest during app create" + }, + "privateip": { + "type": "boolean", + "description": "Private IP flag" + }, + "acls": { + "type": "array", + "items": { + "$ref": "#/definitions/appACE" + }, + "description": "app Acls" + }, + "ipaddr": { + "type": "string", + "description": "IP address", + "title": "if netname points static DHCP then we need to take\nstatic /32 address here" + }, + "macaddr": { + "type": "string", + "description": "MAC address", + "title": "in case of p2v we might want to provide a mac-address.\napplicable only in case of DHCP=passthrough" + }, + "accessVlanId": { + "type": "number", + "format": "int64", + "description": "access port VLAN ID, vlan id of zero will be treated as trunk port and vlan id 1 is implicitly used by linux bridges", + "maximum": 4093, + "minimum": 2 + }, + "eidregister": { + "$ref": "#/definitions/EIDRegister", + "description": "EID register details", + "title": "FIXME: Check why is this required" + }, + "netinstname": { + "type": "string", + "description": "Network Instance name to be matched for interface assignment. Applicable only when \"direct attach\" flag is false" + }, + "netinsttag": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Network Instance tag to be matched for interface assignment. Applicable only when \"direct attach\" flag is false" + }, + "netinstid": { + "type": "string", + "description": "Network Instance id to be matched for interface assignment." + }, + "defaultNetInstance": { + "type": "boolean", + "description": "default instance flag" + }, + "allowToDiscover": { + "type": "boolean", + "description": "flag tells if appInstance have permission to access the network mappings from the connected netInstance" + } + }, + "description": "App Interface detail", + "title": "App Interface detail", + "required": [ + "intfname" + ] + }, + "appMapParams": { + "type": "object", + "properties": { + "port": { + "type": "number", + "format": "int64", + "description": "Application port" + } + }, + "description": "Application map parameters", + "title": "App map Params detail", + "required": [ + "port" + ] + }, + "commonNetworkConfigOrigin": { + "type": "string", + "enum": [ + "NETWORK_CONFIG_ORIGIN_UNSPECIFIED", + "NETWORK_CONFIG_ORIGIN_CONTROLLER", + "NETWORK_CONFIG_ORIGIN_BOOTSTRAP", + "NETWORK_CONFIG_ORIGIN_OVERRIDE", + "NETWORK_CONFIG_ORIGIN_LASTRESORT", + "NETWORK_CONFIG_ORIGIN_TUI", + "NETWORK_CONFIG_ORIGIN_LOC", + "NETWORK_CONFIG_ORIGIN_LPS" + ], + "default": "NETWORK_CONFIG_ORIGIN_UNSPECIFIED", + "description": "NetworkConfigOrigin enumerates all possible origins of a network port configuration.\n\n - NETWORK_CONFIG_ORIGIN_UNSPECIFIED: Unknown or unset origin.\n - NETWORK_CONFIG_ORIGIN_CONTROLLER: Config received from the controller.\n - NETWORK_CONFIG_ORIGIN_BOOTSTRAP: Initial device config embedded in the EVE installer, signed by the controller.\n - NETWORK_CONFIG_ORIGIN_OVERRIDE: Manually created JSON config injected into the installer.\n - NETWORK_CONFIG_ORIGIN_LASTRESORT: Fallback configuration automatically generated to enable DHCP on all Ethernet ports.\nUsed when no network config is available or when \"network.fallback.any.eth\" is enabled\nand none of the existing configs provide controller connectivity.\n - NETWORK_CONFIG_ORIGIN_TUI: Config entered via the terminal UI (TUI).\n - NETWORK_CONFIG_ORIGIN_LOC: Configuration signed by the controller and delivered through the\nLocal Operator Console (LOC) in an air-gapped environment.\n - NETWORK_CONFIG_ORIGIN_LPS: Config changes made locally through the Local Profile Server (LPS)." + }, + "commonPortConfigSource": { + "type": "object", + "properties": { + "origin": { + "$ref": "#/definitions/commonNetworkConfigOrigin", + "description": "Indicates where EVE obtained the network config." + }, + "submittedAt": { + "type": "string", + "format": "date-time", + "description": "Timestamp when this port\u2019s configuration was originally submitted\nor created at its source.\n\nMeaning depends on the origin:\n- Controller, LOC, bootstrap: timestamp provided by the controller.\n- Local override.json: when the file was first loaded by EVE.\n- Last-resort: when EVE generated the fallback config.\n- LPS modifications: when the modified config was received.\n- TUI: when the user submitted the configuration.\n\nThis is different from DevicePortStatus.timePriority, which is used\nto compare and prioritize different sources of network configuration\n(and may be synthetic for some sources, e.g. year 2000 for override.json,\nepoch 0 for last-resort). By contrast, submitted_at represents when this\nport\u2019s configuration first came into existence, regardless of when or whether\nthe device applied it.\n\nNote: this is a per-port timestamp. The underlying network config may\ncover multiple ports, but only the portion relevant to this port is\nreflected here." + } + }, + "description": "PortConfigSource describes the origin of the configuration used for a network port.\nIt helps distinguish between controller-provided, locally-modified, or initial configs." + }, + "configFormat": { + "type": "string", + "enum": [ + "FmtUnknown", + "RAW", + "QCOW", + "QCOW2", + "VHD", + "VMDK", + "OVA", + "VHDX", + "CONTAINER", + "ISO", + "PVC" + ], + "default": "FmtUnknown" + }, + "drive": { + "type": "object", + "properties": { + "imagename": { + "type": "string", + "description": "Name of Image Object used for the drive." + }, + "maxsize": { + "type": "number", + "format": "uint64", + "description": "Drive maximum size" + }, + "readonly": { + "type": "boolean", + "description": "Read only flag. If set, drive is mounted as readonly by app instance." + }, + "preserve": { + "type": "boolean", + "description": "Preserve the drive even when all app instances using it are deleted" + }, + "drvtype": { + "type": "string", + "description": "Type of Drive. Valid Values: UNSPECIFIED, CDROM, HDD, NET, HDD_EMPTY. HDD_EMPTY - is to allocate the empty disk of maxsizebytes specified" + }, + "target": { + "type": "string", + "description": "type of target. Valid values: Disk, Kernel, Initrd, RamDisk" + }, + "volumelabel": { + "type": "string", + "description": "User defined volume to use for this drive " + }, + "mvolname": { + "type": "string", + "description": "mutable Volume for this drive. Only one of imvolname and mvolname must be specified." + }, + "imvolname": { + "type": "string", + "description": "immutable Volume for this drive. Only one of imvolname and mvolname must be specified." + }, + "ignorepurge": { + "type": "boolean", + "description": "don't purge this drive as part of purge command for mutable volumes" + }, + "cleartext": { + "type": "boolean", + "description": "If set, don't encrypt the drive. Store in cleartext" + }, + "mountpath": { + "type": "string", + "description": "Mount Path for the drive in the App Instance" + }, + "runtimeInternal": { + "type": "boolean", + "description": "If set, the drive is internal to the runtime and not externally exposed with API", + "readOnly": true + } + }, + "description": "Drive configuration", + "title": "Drive details", + "required": [ + "imagename", + "maxsize", + "readonly", + "preserve", + "drvtype", + "target" + ] + }, + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "hvMode": { + "type": "string", + "enum": [ + "HV_PV", + "HV_HVM", + "HV_FML", + "HV_NOHYPER", + "HV_LEGACY" + ], + "default": "HV_PV", + "description": "For now we need to tell the device which virtualization mode\nto use. Later we might use a single one for all VMs (on any particular\nISA). If we end up keeping this we should make the names be less\ntied to a particular hypervisor." + }, + "phyAdapter": { + "type": "object", + "properties": { + "type": { + "type": "object", + "$ref": "#/definitions/IoType", + "description": "IoType specifies the type of the Input output of the device" + }, + "name": { + "type": "string", + "description": "Physical Adapter name" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + } + }, + "description": "Physical Adapter", + "title": "Physical Adapter" + }, + "protobufAny": { + "type": "object", + "properties": { + "typeUrl": { + "type": "string" + }, + "value": { + "type": "string", + "format": "byte" + } + } + }, + "protobufNullValue": { + "type": "string", + "enum": [ + "NULL_VALUE" + ], + "default": "NULL_VALUE", + "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\n The JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." + }, + "vm": { + "type": "object", + "properties": { + "cpus": { + "type": "number", + "format": "int64", + "description": "CPUs" + }, + "memory": { + "type": "number", + "format": "int64", + "description": "Memory" + }, + "mode": { + "$ref": "#/definitions/hvMode", + "description": "Hardware Virtualization" + }, + "vnc": { + "type": "boolean", + "description": "VNC" + }, + "vncDisplay": { + "type": "number", + "format": "int64", + "description": "VNC display", + "readOnly": true + }, + "cpuPinningEnabled": { + "type": "boolean", + "description": "Enable CpuPinning" + }, + "vmmMaxmem": { + "type": "integer", + "format": "int64", + "description": "Maximum amount of memory in kbytes allowed for VM monitor to occupy" + }, + "bootloaderMode": { + "$ref": "#/definitions/VmBootloaderMode", + "description": "The bootloader mode that will be used for the VM. Default is VM_BOOTLOADER_MODE_LEGACY" + }, + "enableOemWinLicenseKey": { + "type": "boolean", + "description": "Enable device which has VM to receive the Windows license embedded in the ACPI tables" + }, + "disableVTPM": { + "type": "boolean", + "description": "Disable vTPM for virtual machines (VM)" + } + }, + "description": "Virtual machine memory configuration", + "title": "vm detail", + "required": [ + "cpus", + "memory", + "mode", + "vnc" + ] + } + }, + "securityDefinitions": { + "BearerToken": { + "type": "apiKey", + "description": "Bearer token for user session", + "name": "Authorization", + "in": "header" + } + }, + "security": [ + { + "BearerToken": [] + } + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-apps" + } +} \ No newline at end of file diff --git a/openapi/zedge_diag_service.swagger.json b/openapi/zedge_diag_service.swagger.json new file mode 100644 index 0000000..c790692 --- /dev/null +++ b/openapi/zedge_diag_service.swagger.json @@ -0,0 +1,5611 @@ +{ + "swagger": "2.0", + "info": { + "title": "ZEDEDA Diagnostics Service", + "description": "ZEDEDA Diagnostics Service is a helper service that provides insight into two things - cloud diagnostics data and edge diagnostics data. As part of Cloud Diagnostics, it allows insight into zedcontrol cluster. As part of Edge Diagnisticss, it collects monitoring data from the edge nodes and presents an aggregated timeline view of resource usage and health of edge nodes", + "termsOfService": "https://www.zededa.com/terms", + "version": "1.0", + "contact": { + "name": "ZEDEDA API Support", + "url": "https://www.zededa.com/support", + "email": "support@zededa.com" + }, + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.html" + } + }, + "tags": [ + { + "name": "CloudDiagnostics" + }, + { + "name": "EdgeDiagnostics" + } + ], + "basePath": "/api", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/v1/cloud/healthreport": { + "get": { + "summary": "Get Cloud services health report", + "description": "Get Cloud services health report.", + "operationId": "CloudDiagnostics_GetClusterHealthReport", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/HealthServiceResp" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "tags": [ + "CloudDiagnostics" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com/hc/en-us/articles/30323173611931-ZEDEDA-API-Overview" + }, + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ] + } + }, + "/v1/cloud/ping": { + "get": { + "summary": "Check Cloud reachability", + "description": "Check Cloud reachability by sending a ping message to API gateway. API gateway will echo back either \"pong\" or the id specified.", + "operationId": "CloudDiagnostics_checkClusterHealth", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/PingMsgSendResp" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "pingId", + "in": "query", + "required": false, + "type": "string", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "CloudDiagnostics" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com/hc/en-us/articles/30323173611931-ZEDEDA-API-Overview" + } + } + }, + "/v1/cloud/ping/id/{pingId}": { + "get": { + "summary": "Check Cloud reachability", + "description": "Check Cloud reachability by sending a ping message to API gateway. API gateway will echo back either \"pong\" or the id specified.", + "operationId": "CloudDiagnostics_checkClusterHealth2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/PingMsgSendResp" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "pingId", + "in": "path", + "required": true, + "type": "string", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "CloudDiagnostics" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com/hc/en-us/articles/30323173611931-ZEDEDA-API-Overview" + } + } + }, + "/v1/cloud/policies": { + "get": { + "summary": "Query Cloud policies", + "description": "Query policy records of latest version of Cloud policies.", + "operationId": "CloudDiagnostics_QueryCloudPolicies", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/PolicyDocVersionResp" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "all", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "CloudDiagnostics" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com/hc/en-us/articles/30323173611931-ZEDEDA-API-Overview" + } + }, + "post": { + "summary": "Create Cloud policy document", + "description": "Create policy document", + "operationId": "CloudDiagnostics_CreateCloudPolicyDocument", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/PolicyDocVersionResp" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PolicyDocVersion" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "CloudDiagnostics" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com/hc/en-us/articles/30323173611931-ZEDEDA-API-Overview" + } + } + }, + "/v1/cloud/policies/id/{id}": { + "get": { + "summary": "Get Cloud policy document", + "description": "Get policy document for specific version of Cloud policy.", + "operationId": "CloudDiagnostics_GetCloudPolicyDocument", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/PolicyDocVersionResp" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "CloudDiagnostics" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com/hc/en-us/articles/30323173611931-ZEDEDA-API-Overview" + } + }, + "delete": { + "summary": "Delete Cloud policy specific version", + "description": "Delete policy record for specific version of Cloud policy.", + "operationId": "CloudDiagnostics_DeleteCloudPolicyDocument", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/PolicyDocVersionResp" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "CloudDiagnostics" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com/hc/en-us/articles/30323173611931-ZEDEDA-API-Overview" + } + } + }, + "/v1/cloud/policies/latest": { + "put": { + "summary": "Update Cloud policy specific version", + "description": "Update Cloud policy specific version", + "operationId": "CloudDiagnostics_MarkCloudPolicyLatest", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/PolicyDocVersionResp" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PolicyDocVersion" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "CloudDiagnostics" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com/hc/en-us/articles/30323173611931-ZEDEDA-API-Overview" + } + } + }, + "/v1/cloud/version": { + "get": { + "summary": "Get Cloud controller software version", + "description": "Get Cloud controller software version.", + "operationId": "CloudDiagnostics_GetClusterVersion", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CloudVersionResp" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "tags": [ + "CloudDiagnostics" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com/hc/en-us/articles/30323173611931-ZEDEDA-API-Overview" + }, + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ] + } + }, + "/v1/devices/id/{id}/config": { + "get": { + "summary": "Get current Device twin configuration", + "description": "Get currentnext Device twin configuration for the edge node. Edge node has read this configuration when it queried Cloud controller last time.", + "operationId": "EdgeDiagnostics_GetDeviceTwinConfig", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ConfigServiceResp" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "system generated unique id for a device", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeDiagnostics" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com/hc/en-us/articles/30323173611931-ZEDEDA-API-Overview" + } + }, + "put": { + "summary": "Re-generate device configuration", + "description": "Re-generate the device configuration. Edge node will get this configuration when it queries Cloud controller next time.", + "operationId": "EdgeDiagnostics_RegenDeviceConfig", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "system generated unique id for a device", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeDiagnostics" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com/hc/en-us/articles/30323173611931-ZEDEDA-API-Overview" + } + } + }, + "/v1/devices/id/{id}/config/bootstrap": { + "get": { + "summary": "Get bootstrap Device twin configuration", + "description": "Get bootstrap Device twin configuration for the edge node. Doesn't change the existing edge node configuration.", + "operationId": "EdgeDiagnostics_GetDeviceTwinBootstrapConfig", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ConfigServiceResp" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "405": { + "description": "Method not allowed. The API request can't be performed due to a wrong edge node's admin status.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "system generated unique id for a device", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeDiagnostics" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com/hc/en-us/articles/30323173611931-ZEDEDA-API-Overview" + } + } + }, + "/v1/devices/id/{id}/config/next": { + "get": { + "summary": "Get next Device twin configuration", + "description": "Get next Device twin configuration for the edge node. Edge node will get this configuration when it queries Cloud controller next time.", + "operationId": "EdgeDiagnostics_GetDeviceTwinNextConfig", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ConfigServiceResp" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "system generated unique id for a device", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeDiagnostics" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com/hc/en-us/articles/30323173611931-ZEDEDA-API-Overview" + } + } + }, + "/v1/devices/id/{id}/config/offline": { + "get": { + "summary": "Get offline Device twin configuration", + "description": "Get offline Device twin configuration for the edge node. Edge node will get this configuration when it queries Cloud controller next time.", + "operationId": "EdgeDiagnostics_GetDeviceTwinOfflineNextConfig", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ConfigServiceResp" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "system generated unique id for a device", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeDiagnostics" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com/hc/en-us/articles/30323173611931-ZEDEDA-API-Overview" + } + } + }, + "/v1/devices/name/{name}/config": { + "get": { + "summary": "Get current Device twin configuration", + "description": "Get currentnext Device twin configuration for the edge node. Edge node has read this configuration when it queried Cloud controller last time.", + "operationId": "EdgeDiagnostics_GetDeviceTwinConfigByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ConfigServiceResp" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "user defined device name for a device", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeDiagnostics" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com/hc/en-us/articles/30323173611931-ZEDEDA-API-Overview" + } + } + }, + "/v1/devices/name/{name}/config/bootstrap": { + "get": { + "summary": "Get bootstrap Device twin configuration", + "description": "Get bootstrap Device twin configuration for the edge node. Doesn't change the existing edge node configuration.", + "operationId": "EdgeDiagnostics_GetDeviceTwinBootstrapConfigByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ConfigServiceResp" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "405": { + "description": "Method not allowed. The API request can't be performed due to a wrong edge node's admin status.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "user defined device name for a device", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeDiagnostics" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com/hc/en-us/articles/30323173611931-ZEDEDA-API-Overview" + } + } + }, + "/v1/devices/name/{name}/config/next": { + "get": { + "summary": "Get next Device twin configuration", + "description": "Get next Device twin configuration for the edge node. Edge node will get this configuration when it queries Cloud controller next time.", + "operationId": "EdgeDiagnostics_GetDeviceTwinNextConfigByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ConfigServiceResp" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "user defined device name for a device", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeDiagnostics" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com/hc/en-us/articles/30323173611931-ZEDEDA-API-Overview" + } + } + }, + "/v1/devices/name/{name}/config/offline": { + "get": { + "summary": "Get offline Device twin configuration", + "description": "Get offline Device twin configuration for the edge node. Edge node will get this configuration when it queries Cloud controller next time.", + "operationId": "EdgeDiagnostics_GetDeviceTwinOfflineConfigByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ConfigServiceResp" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "user defined device name for a device", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeDiagnostics" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com/hc/en-us/articles/30323173611931-ZEDEDA-API-Overview" + } + } + }, + "/v1/events": { + "get": { + "summary": "Get events timeline", + "description": "Get aggregated events timeline", + "operationId": "EdgeDiagnostics_GetEventsTimeline", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/EventQueryResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-app level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "objname", + "description": "Object name", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "objid", + "description": "Object id", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "objtype", + "description": "Object type", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "USER", + "EDGE_NODE", + "EDGE_APP", + "IMAGE", + "EDGE_APP_INSTANCE", + "PROJECT", + "NETWORK", + "DATASTORE", + "SERVICE", + "SERVICE_INSTANCE", + "ENTERPRISE", + "ROLE", + "CREDENTIAL", + "NETWORK_INSTANCE", + "VOLUME_INSTANCE", + "REALM", + "AUTHPROFILE", + "POLICY", + "APP_POLICY", + "CLUSTER_INSTANCE", + "PLUGIN", + "DOC_POLICY", + "ORCHESTRATOR_CLUSTER", + "TAGS", + "EDGE_NODE_INTERFACE", + "DEPLOYMENT", + "ENTITLEMENTS", + "DATA_STREAM", + "API_USAGE", + "APP_INSTANCE_SNAPSHOT" + ], + "default": "UNSPECIFIED" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeDiagnostics" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com/hc/en-us/articles/30323173611931-ZEDEDA-API-Overview" + } + } + }, + "/v1/events/timeSeries/{mType}": { + "get": { + "summary": "Get resource usage timeline", + "description": "Get the aggregated resource usage timeline as reported by the edge nodes and edge application instances.", + "operationId": "EdgeDiagnostics_GetResourceMetricsTimeline", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/MetricQueryResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-app level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "mType", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "METRIC_TYPE_UNSPECIFIED", + "METRIC_TYPE_CPU_TOTAL", + "METRIC_TYPE_CPU_USAGE", + "METRIC_TYPE_MEMORY_TOTAL", + "METRIC_TYPE_MEMORY_UTILIZATION", + "METRIC_TYPE_NETWORK_TOTAL", + "METRIC_TYPE_NETWORK_RATES", + "METRIC_TYPE_EVENTS_COUNT", + "METRIC_TYPE_STORAGE_UTILIZATION", + "METRIC_TYPE_STORAGE_IO_ZPOOL", + "METRIC_TYPE_STORAGE_IO_ZVOL" + ] + }, + { + "name": "objtype", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "OBJECT_TYPE_UNSPECIFIED", + "OBJECT_TYPE_USER", + "OBJECT_TYPE_EDGE_NODE", + "OBJECT_TYPE_EDGE_APP", + "OBJECT_TYPE_IMAGE", + "OBJECT_TYPE_EDGE_APP_INSTANCE", + "OBJECT_TYPE_PROJECT", + "OBJECT_TYPE_NETWORK", + "OBJECT_TYPE_DATASTORE", + "OBJECT_TYPE_SERVICE", + "OBJECT_TYPE_SERVICE_INSTANCE", + "OBJECT_TYPE_ENTERPRISE", + "OBJECT_TYPE_ROLE", + "OBJECT_TYPE_CREDENTIAL", + "OBJECT_TYPE_NETWORK_INSTANCE", + "OBJECT_TYPE_VOLUME_INSTANCE", + "OBJECT_TYPE_REALM", + "OBJECT_TYPE_AUTHPROFILE", + "OBJECT_TYPE_POLICY", + "OBJECT_TYPE_APP_POLICY", + "OBJECT_TYPE_CLUSTER_INSTANCE", + "OBJECT_TYPE_PLUGIN", + "OBJECT_TYPE_DOC_POLICY", + "OBJECT_TYPE_ORCHESTRATOR_CLUSTER", + "OBJECT_TYPE_TAGS", + "OBJECT_TYPE_EDGE_NODE_INTERFACE", + "OBJECT_TYPE_DEPLOYMENT", + "OBJECT_TYPE_ENTITLEMENTS", + "OBJECT_TYPE_DATA_STREAM", + "OBJECT_TYPE_API_USAGE", + "OBJECT_TYPE_APP_INSTANCE_SNAPSHOT", + "OBJECT_TYPE_PATCH_ENVELOPE", + "OBJECT_TYPE_RESOURCE_USAGE_TRACK", + "OBJECT_TYPE_PATCH_ENVELOPE_REFERENCE", + "OBJECT_TYPE_DEV_PASSTHROUGH", + "OBJECT_TYPE_EDGE_NODE_CLUSTER", + "OBJECT_TYPE_ASSET_GROUP", + "OBJECT_TYPE_APP_PROFILE", + "OBJECT_TYPE_PROFILE_DEPLOYMENT", + "OBJECT_TYPE_ZKS_INSTANCE", + "OBJECT_TYPE_CLUSTER_GROUP" + ], + "default": "OBJECT_TYPE_UNSPECIFIED" + }, + { + "name": "objname", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "startTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "interval", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "enterpriseId", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "objid", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeDiagnostics" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com/hc/en-us/articles/30323173611931-ZEDEDA-API-Overview" + } + } + }, + "/v1/events/topUsers": { + "get": { + "summary": "Get top users", + "description": "Get top users.", + "operationId": "EdgeDiagnostics_GetTopUsers2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/EventTopUsersResp" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-app level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "tags": [ + "EdgeDiagnostics" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com/hc/en-us/articles/30323173611931-ZEDEDA-API-Overview" + }, + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ] + } + }, + "/v1/hello": { + "post": { + "summary": "Check Cloud services health", + "description": "Check Cloud services health by sending a hello name to microservice behind API Gateway. Microservice will echo back the name.", + "operationId": "CloudDiagnostics_checkMicroserviceHealth", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/HelloResp" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/HelloName" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "CloudDiagnostics" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com/hc/en-us/articles/30323173611931-ZEDEDA-API-Overview" + } + } + }, + "/v1/timeSeries/{mType}": { + "get": { + "summary": "Get resource usage timeline", + "description": "Get the aggregated resource usage timeline as reported by the edge nodes and edge application instances.", + "operationId": "EdgeDiagnostics_GetResourceMetricsTimeline2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/MetricQueryResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-app level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "mType", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "METRIC_TYPE_UNSPECIFIED", + "METRIC_TYPE_CPU_TOTAL", + "METRIC_TYPE_CPU_USAGE", + "METRIC_TYPE_MEMORY_TOTAL", + "METRIC_TYPE_MEMORY_UTILIZATION", + "METRIC_TYPE_NETWORK_TOTAL", + "METRIC_TYPE_NETWORK_RATES", + "METRIC_TYPE_EVENTS_COUNT", + "METRIC_TYPE_STORAGE_UTILIZATION", + "METRIC_TYPE_STORAGE_IO_ZPOOL", + "METRIC_TYPE_STORAGE_IO_ZVOL" + ] + }, + { + "name": "objtype", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "OBJECT_TYPE_UNSPECIFIED", + "OBJECT_TYPE_USER", + "OBJECT_TYPE_EDGE_NODE", + "OBJECT_TYPE_EDGE_APP", + "OBJECT_TYPE_IMAGE", + "OBJECT_TYPE_EDGE_APP_INSTANCE", + "OBJECT_TYPE_PROJECT", + "OBJECT_TYPE_NETWORK", + "OBJECT_TYPE_DATASTORE", + "OBJECT_TYPE_SERVICE", + "OBJECT_TYPE_SERVICE_INSTANCE", + "OBJECT_TYPE_ENTERPRISE", + "OBJECT_TYPE_ROLE", + "OBJECT_TYPE_CREDENTIAL", + "OBJECT_TYPE_NETWORK_INSTANCE", + "OBJECT_TYPE_VOLUME_INSTANCE", + "OBJECT_TYPE_REALM", + "OBJECT_TYPE_AUTHPROFILE", + "OBJECT_TYPE_POLICY", + "OBJECT_TYPE_APP_POLICY", + "OBJECT_TYPE_CLUSTER_INSTANCE", + "OBJECT_TYPE_PLUGIN", + "OBJECT_TYPE_DOC_POLICY", + "OBJECT_TYPE_ORCHESTRATOR_CLUSTER", + "OBJECT_TYPE_TAGS", + "OBJECT_TYPE_EDGE_NODE_INTERFACE", + "OBJECT_TYPE_DEPLOYMENT", + "OBJECT_TYPE_ENTITLEMENTS", + "OBJECT_TYPE_DATA_STREAM", + "OBJECT_TYPE_API_USAGE", + "OBJECT_TYPE_APP_INSTANCE_SNAPSHOT", + "OBJECT_TYPE_PATCH_ENVELOPE", + "OBJECT_TYPE_RESOURCE_USAGE_TRACK", + "OBJECT_TYPE_PATCH_ENVELOPE_REFERENCE", + "OBJECT_TYPE_DEV_PASSTHROUGH", + "OBJECT_TYPE_EDGE_NODE_CLUSTER", + "OBJECT_TYPE_ASSET_GROUP", + "OBJECT_TYPE_APP_PROFILE", + "OBJECT_TYPE_PROFILE_DEPLOYMENT", + "OBJECT_TYPE_ZKS_INSTANCE", + "OBJECT_TYPE_CLUSTER_GROUP" + ], + "default": "OBJECT_TYPE_UNSPECIFIED" + }, + { + "name": "objname", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "startTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "interval", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "enterpriseId", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "objid", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeDiagnostics" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com/hc/en-us/articles/30323173611931-ZEDEDA-API-Overview" + } + } + } + }, + "definitions": { + "BriefHealth": { + "type": "object", + "properties": { + "serviceHealthStatus": { + "type": "string" + } + } + }, + "CloudVersion": { + "type": "object", + "properties": { + "comp": { + "type": "string" + }, + "ver": { + "type": "string" + } + } + }, + "CloudVersionResp": { + "type": "object", + "properties": { + "version": { + "$ref": "#/definitions/CloudVersion" + }, + "result": { + "$ref": "#/definitions/ZsrvResponse" + } + } + }, + "CmdArg": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Command line argument: key" + }, + "value": { + "type": "string", + "description": "Command line argument: value" + } + }, + "description": "CmdArg store the passed command line key and values", + "title": "CmdArg is used to store the command line arguments" + }, + "ConfigServiceResp": { + "type": "object", + "properties": { + "config": { + "$ref": "#/definitions/configEdgeDevConfig" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "readAt": { + "type": "string", + "format": "date-time" + }, + "result": { + "$ref": "#/definitions/ZsrvResponse" + }, + "lastKnownStatus": { + "$ref": "#/definitions/LastKnownStatus" + }, + "pconfig": { + "type": "string", + "title": "protobuf stringified" + }, + "nextConfig": { + "$ref": "#/definitions/configEdgeDevConfig", + "title": "Next config (config which available for the device, but is not yet pushed to the device)\nLatest config (config which is generated, but not allowed to be pushed to the device due to config lock configured on the device)" + }, + "nextConfigHash": { + "type": "string" + }, + "latestConfig": { + "$ref": "#/definitions/configEdgeDevConfig" + }, + "latestConfigHash": { + "type": "string" + }, + "localOperatorConsoleBlobList": { + "$ref": "#/definitions/LocalOperatorConsoleBlobList", + "title": "Local Operator Console Blob Config" + } + }, + "title": "Edge Device Configuration Response to CLI/UI routed via Kafka" + }, + "Cursor": { + "type": "object", + "properties": { + "pageToken": { + "type": "string", + "description": "Page Token" + }, + "orderBy": { + "type": "array", + "items": { + "type": "string" + }, + "description": "OrderBy helps in sorting the list response" + }, + "pageNum": { + "type": "number", + "format": "int64", + "description": "Page Number" + }, + "pageSize": { + "type": "number", + "format": "int64", + "description": "Defines the page size" + }, + "totalPages": { + "type": "number", + "format": "int64", + "description": "Total number of pages to be fetched." + } + }, + "description": "Cursor helps in filtering the various list response like edge-app bundle list, model list, bundle list etc. ", + "title": "Cursor is used as filter in list operation." + }, + "DebugKnobDetail": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "system generated unique id for a device", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+" + }, + "debugKnob": { + "type": "boolean", + "description": "debug knob flag" + }, + "expiry": { + "type": "string", + "format": "uint64", + "description": "debug expiry time in minutes" + }, + "expired": { + "type": "boolean", + "description": "debug knob expiry status flag" + } + }, + "description": "Device debug knob configuration request payload holds the device debug mode properties", + "title": "Device debug knob configuration" + }, + "DeviceCmdsSubType": { + "type": "string", + "enum": [ + "DeviceNoOp", + "DeviceStart", + "DeviceStop", + "DeviceReboot", + "DeviceShutdown", + "DeviceUpdateOS", + "DeviceApplyOS", + "DeviceReset", + "DeviceAddOS", + "DeviceDropOS", + "DeviceOffboard", + "DeviceActivate", + "DeviceDeActivate", + "DeviceBaseosRetry", + "DeviceStartDebugMode", + "DeviceStopDebugMode", + "PreparePowerOff", + "DeviceStartEdgeviewMode", + "DeviceStopEdgeviewMode", + "DeviceEdgeviewClientScript" + ], + "default": "DeviceNoOp", + "description": " - DeviceNoOp: Device Operation: No Operation\n - DeviceStart: Device Operation: Start\n - DeviceStop: Device Operation: Stop\n - DeviceReboot: Device Operation: Reboot: Power cycle the device\n - DeviceShutdown: Device Operation: Shutdown- Power off the device\n - DeviceUpdateOS: Device Operation: Update OS- deprecated\n - DeviceApplyOS: Device Operation: Apply OS- Change Boot order of installed images\n - DeviceReset: Device Operation: Reset- Config reset to factory default\n - DeviceAddOS: Device Operation: Add OS- Install new image but don't change boot order\n - DeviceDropOS: Device Operation: Drop OS- Remove uninstalled image but don't change boot order\n - DeviceOffboard: Device Operation Type: offboard the device\n - DeviceActivate: Device Activate\n - DeviceDeActivate: Device Deactivate\n - DeviceBaseosRetry: Device Operation: Retry OS\n - DeviceStartDebugMode: Device Operation: Run device in debug mode.\n - DeviceStopDebugMode: Device Operation: Stop device in debug mode.\n - PreparePowerOff: Device Operation: Gracefully shutdown all apps and prepare for power down.\n - DeviceStartEdgeviewMode: Device Operation: Run device in edgeview mode.\n - DeviceStopEdgeviewMode: Device Operation: Stop device in edgeview mode.\n - DeviceEdgeviewClientScript: Device Operation: get Edgeview client script if activated." + }, + "EventQueryRequestWithType_HttpRequestObjectType_HttpRequest": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "USER", + "EDGE_NODE", + "EDGE_APP", + "IMAGE", + "EDGE_APP_INSTANCE", + "PROJECT", + "NETWORK", + "DATASTORE", + "SERVICE", + "SERVICE_INSTANCE", + "ENTERPRISE", + "ROLE", + "CREDENTIAL", + "NETWORK_INSTANCE", + "VOLUME_INSTANCE", + "REALM", + "AUTHPROFILE", + "POLICY", + "APP_POLICY", + "CLUSTER_INSTANCE", + "PLUGIN", + "DOC_POLICY", + "ORCHESTRATOR_CLUSTER", + "TAGS", + "EDGE_NODE_INTERFACE", + "DEPLOYMENT", + "ENTITLEMENTS", + "DATA_STREAM", + "API_USAGE", + "APP_INSTANCE_SNAPSHOT" + ], + "default": "UNSPECIFIED" + }, + "EventQueryResponse": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/EventQueryResponseItem" + }, + "description": "Event Query response list" + }, + "next": { + "type": "object", + "$ref": "#/definitions/Cursor", + "description": "Cursor filter" + }, + "summary": { + "$ref": "#/definitions/Summary", + "description": "Summary of filtered events." + } + }, + "description": "Event query response request payload", + "title": "Event query Response payload detail", + "required": [ + "list", + "next" + ] + }, + "EventQueryResponseItem": { + "type": "object", + "properties": { + "user": { + "type": "string", + "description": "User name" + }, + "project": { + "type": "string", + "description": "project name" + }, + "device": { + "type": "string", + "description": "device name" + }, + "instance": { + "type": "string", + "description": "instance name" + }, + "severity": { + "type": "string", + "description": "severity: FIXME: should be ENUM" + }, + "description": { + "type": "string", + "description": "Event description" + }, + "timestamp": { + "type": "object", + "format": "date-time", + "description": "event timestamp" + }, + "source": { + "type": "object", + "$ref": "#/definitions/EventSource", + "description": "source" + }, + "resource": { + "type": "string", + "description": "Event resources" + }, + "eventType": { + "type": "string", + "description": "Event type" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Event tags" + }, + "resourceName": { + "type": "string", + "description": "Event resources" + }, + "jsonData": { + "type": "object", + "description": "Event resources" + }, + "clusterInstance": { + "type": "string", + "description": "clusterInstance name" + } + }, + "description": "Event query response item payload", + "title": "Event query response item payload detail" + }, + "EventSource": { + "type": "string", + "enum": [ + "EVENT_SOURCE_UNSPECIFIED", + "EVENT_SOURCE_SYSTEM", + "EVENT_SOURCE_USER" + ], + "default": "EVENT_SOURCE_UNSPECIFIED", + "description": "- EVENT_SOURCE_UNSPECIFIED: Default\n - EVENT_SOURCE_SYSTEM: Event is generated as a result of status change reported by edge node / application\n - EVENT_SOURCE_USER: Event is generated as a result of an user's configuration action", + "title": "Source of events" + }, + "EventTopUsersData": { + "type": "object", + "properties": { + "userName": { + "type": "string" + }, + "eventCount": { + "type": "integer", + "format": "int64" + } + } + }, + "EventTopUsersResp": { + "type": "object", + "properties": { + "topUsers": { + "type": "array", + "items": { + "$ref": "#/definitions/EventTopUsersData" + } + } + } + }, + "HealthDesc": { + "type": "object", + "properties": { + "hostName": { + "type": "string" + }, + "envName": { + "type": "string" + }, + "serviceName": { + "type": "string" + }, + "serviceInstance": { + "type": "string" + }, + "briefHealth": { + "$ref": "#/definitions/BriefHealth" + } + } + }, + "HealthServiceResp": { + "type": "object", + "properties": { + "healthService": { + "$ref": "#/definitions/HealthServiceSubType" + }, + "hresult": { + "$ref": "#/definitions/ZsrvResponse" + }, + "healthDesc": { + "type": "array", + "items": { + "$ref": "#/definitions/HealthDesc" + } + } + } + }, + "HealthServiceSubType": { + "type": "string", + "enum": [ + "Publisher", + "Subscriber" + ], + "default": "Publisher" + }, + "HelloName": { + "type": "object", + "properties": { + "firstName": { + "type": "string" + }, + "lastName": { + "type": "string" + }, + "encryptedSecrets": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "cryptoKey": { + "type": "string" + } + } + }, + "HelloResp": { + "type": "object", + "properties": { + "response": { + "type": "string" + } + } + }, + "LastKnownStatus": { + "type": "object", + "properties": { + "lastKnownStatusLine": { + "type": "string" + }, + "lastAttemptState": { + "type": "integer", + "format": "int32" + }, + "lastAttemptedAt": { + "type": "string", + "format": "date-time" + } + } + }, + "LocalOperatorConsoleBlob": { + "type": "object", + "properties": { + "devId": { + "type": "string" + }, + "config": { + "type": "string" + }, + "encryptedConfig": { + "type": "string" + } + }, + "title": "Local Operator Console Blob" + }, + "LocalOperatorConsoleBlobList": { + "type": "object", + "properties": { + "localOperatorConsoleBlobList": { + "type": "array", + "items": { + "$ref": "#/definitions/LocalOperatorConsoleBlob" + } + }, + "controllerCerts": { + "type": "string" + } + }, + "title": "Local Operator Console Blob List" + }, + "MetricQueryResponse": { + "type": "object", + "properties": { + "threshold": { + "$ref": "#/definitions/MetricThreshold" + }, + "metricType": { + "type": "string" + }, + "xLabel": { + "type": "string" + }, + "yLabels": { + "type": "array", + "items": { + "type": "string" + } + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/MetricQueryResponseItem" + } + } + } + }, + "MetricQueryResponseItem": { + "type": "object", + "properties": { + "timestamp": { + "type": "string", + "format": "date-time" + }, + "values": { + "type": "array", + "items": { + "type": "number", + "format": "double" + } + } + } + }, + "MetricThreshold": { + "type": "object", + "properties": { + "yellow": { + "type": "number", + "format": "double" + }, + "red": { + "type": "number", + "format": "double" + } + } + }, + "MetricType": { + "type": "string", + "enum": [ + "METRIC_TYPE_UNSPECIFIED", + "METRIC_TYPE_CPU_TOTAL", + "METRIC_TYPE_CPU_USAGE", + "METRIC_TYPE_MEMORY_TOTAL", + "METRIC_TYPE_MEMORY_UTILIZATION", + "METRIC_TYPE_NETWORK_TOTAL", + "METRIC_TYPE_NETWORK_RATES", + "METRIC_TYPE_EVENTS_COUNT", + "METRIC_TYPE_STORAGE_UTILIZATION", + "METRIC_TYPE_STORAGE_IO_ZPOOL", + "METRIC_TYPE_STORAGE_IO_ZVOL" + ], + "default": "METRIC_TYPE_UNSPECIFIED", + "title": "MetricType - On update, please update MetricType_HttpRequest as well" + }, + "ObjectRevision": { + "type": "object", + "properties": { + "prev": { + "type": "string", + "description": "Previous" + }, + "curr": { + "type": "string", + "description": "Current Database version of the record" + }, + "createdAt": { + "type": "object", + "format": "date-time", + "description": "The time, in milliseconds since the epoch, when the record was created." + }, + "createdBy": { + "type": "string", + "description": "User data: Created By" + }, + "updatedAt": { + "type": "object", + "format": "date-time", + "description": "The time, in milliseconds since the epoch, when the record was last updated." + }, + "updatedBy": { + "type": "string", + "description": "User data: Updated By" + } + }, + "description": "ObjectRevision store the user details, who has doent the necessary operation like Create Operation or update operation", + "title": "ObjectRevision is used to store the user information.", + "required": [ + "curr", + "createdAt", + "createdBy", + "updatedAt", + "updatedBy" + ] + }, + "ObjectType": { + "type": "string", + "enum": [ + "OBJECT_TYPE_UNSPECIFIED", + "OBJECT_TYPE_USER", + "OBJECT_TYPE_EDGE_NODE", + "OBJECT_TYPE_EDGE_APP", + "OBJECT_TYPE_IMAGE", + "OBJECT_TYPE_EDGE_APP_INSTANCE", + "OBJECT_TYPE_PROJECT", + "OBJECT_TYPE_NETWORK", + "OBJECT_TYPE_DATASTORE", + "OBJECT_TYPE_SERVICE", + "OBJECT_TYPE_SERVICE_INSTANCE", + "OBJECT_TYPE_ENTERPRISE", + "OBJECT_TYPE_ROLE", + "OBJECT_TYPE_CREDENTIAL", + "OBJECT_TYPE_NETWORK_INSTANCE", + "OBJECT_TYPE_VOLUME_INSTANCE", + "OBJECT_TYPE_REALM", + "OBJECT_TYPE_AUTHPROFILE", + "OBJECT_TYPE_POLICY", + "OBJECT_TYPE_APP_POLICY", + "OBJECT_TYPE_CLUSTER_INSTANCE", + "OBJECT_TYPE_PLUGIN", + "OBJECT_TYPE_DOC_POLICY", + "OBJECT_TYPE_ORCHESTRATOR_CLUSTER", + "OBJECT_TYPE_TAGS", + "OBJECT_TYPE_EDGE_NODE_INTERFACE", + "OBJECT_TYPE_DEPLOYMENT", + "OBJECT_TYPE_ENTITLEMENTS", + "OBJECT_TYPE_DATA_STREAM", + "OBJECT_TYPE_API_USAGE", + "OBJECT_TYPE_APP_INSTANCE_SNAPSHOT", + "OBJECT_TYPE_PATCH_ENVELOPE", + "OBJECT_TYPE_RESOURCE_USAGE_TRACK", + "OBJECT_TYPE_PATCH_ENVELOPE_REFERENCE", + "OBJECT_TYPE_DEV_PASSTHROUGH", + "OBJECT_TYPE_EDGE_NODE_CLUSTER", + "OBJECT_TYPE_ASSET_GROUP", + "OBJECT_TYPE_APP_PROFILE", + "OBJECT_TYPE_PROFILE_DEPLOYMENT", + "OBJECT_TYPE_ZKS_INSTANCE", + "OBJECT_TYPE_CLUSTER_GROUP" + ], + "default": "OBJECT_TYPE_UNSPECIFIED" + }, + "PingMsgSendResp": { + "type": "object", + "properties": { + "pingId": { + "type": "string", + "format": "int64" + } + } + }, + "PolicyDocVersion": { + "type": "object", + "properties": { + "policy": { + "type": "string" + }, + "version": { + "type": "string" + }, + "fileURL": { + "type": "string" + }, + "revision": { + "$ref": "#/definitions/ObjectRevision" + } + } + }, + "PolicyDocVersionList": { + "type": "object", + "properties": { + "summary": { + "$ref": "#/definitions/Summary" + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/PolicyDocVersion" + } + }, + "next": { + "$ref": "#/definitions/Cursor" + } + } + }, + "PolicyDocVersionResp": { + "type": "object", + "properties": { + "result": { + "$ref": "#/definitions/ZsrvResponse" + }, + "pinfo": { + "$ref": "#/definitions/PolicyDocVersion" + }, + "plist": { + "$ref": "#/definitions/PolicyDocVersionList" + } + } + }, + "Summary": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Summary description" + }, + "total": { + "type": "number", + "format": "int64", + "description": "Total" + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "integer", + "format": "int64" + }, + "description": "Values: Map for storing " + } + }, + "description": "Summary is used to store the Summary details", + "title": "Summary is used to store the Summary details" + }, + "WifiConfigcryptoblock": { + "type": "object", + "properties": { + "identity": { + "type": "string" + }, + "password": { + "type": "string" + } + } + }, + "ZcOpsStatus": { + "type": "string", + "enum": [ + "OPS_STATUS_UNSPECIFIED", + "OPS_STATUS_PENDING", + "OPS_STATUS_ONGOING", + "OPS_STATUS_COMPLETE" + ], + "default": "OPS_STATUS_UNSPECIFIED", + "description": "- OPS_STATUS_PENDING: In rare cases, system may not start operation when it was requested. Client will be notified that operation is PENDING\n - OPS_STATUS_ONGOING: system will start the operation, but at the time response was generated, operation is still ONGOING.\n - OPS_STATUS_COMPLETE: Even if the result of the operations may result in failure, but the OpsStatus will marked COMPLETE for almost all cases.", + "title": "ZedCloud internal operation status" + }, + "ZcOpsType": { + "type": "string", + "enum": [ + "OPS_TYPE_UNSPECIFIED", + "OPS_TYPE_READ", + "OPS_TYPE_DELETE", + "OPS_TYPE_CREATE", + "OPS_TYPE_UPDATE", + "OPS_TYPE_LIST" + ], + "default": "OPS_TYPE_UNSPECIFIED", + "title": "ZedCloud internal operation type" + }, + "ZsrvError": { + "type": "object", + "properties": { + "ec": { + "$ref": "#/definitions/ZsrvErrorCode", + "title": "Enumrated error code, describes more granular numerical\nvalue than just httpStatus" + }, + "location": { + "type": "string", + "title": "Ignore: Internal field only" + }, + "details": { + "type": "string", + "title": "Field captures string description of details" + } + } + }, + "ZsrvErrorCode": { + "type": "string", + "enum": [ + "zMsgErrorNone", + "zMsgSucess", + "NotFound", + "AlreadyExists", + "VersionMismatch", + "RangeError", + "LargeResult", + "IncompleteData", + "InvalidData", + "FunctionUnsupported", + "NoMemory", + "SendFailure", + "Timeout", + "BadReqBody", + "BadReqParam", + "InvalidFieldFormat", + "UrlNotFound", + "ApiVersionNotSupported", + "Unauthorized", + "Forbidden", + "Conflict", + "NotModified", + "DependencyConflict", + "JsonFmtError", + "ProtoFmtError", + "CertError", + "DataBaseConnection", + "DBError", + "zMsgAccepted", + "zMsgCreated", + "PreConditionFailed", + "InternalServerError" + ], + "default": "zMsgErrorNone", + "description": "- zMsgErrorNone: common validation errors\n - IncompleteData: message had fields that weren't filled in\n - InvalidData: message contained the field that wasn't expected\n - FunctionUnsupported: this feature unavailable on this version of device\n - InvalidFieldFormat: message contained the field that wasn't correctly formatted\n - JsonFmtError: Marshal / Unmarshal errors\n - DataBaseConnection: generic DB error", + "title": "ZedCould internal error code" + }, + "ZsrvResponse": { + "type": "object", + "properties": { + "operationType": { + "$ref": "#/definitions/ZcOpsType", + "title": "Describes one of the operations type : possible values\n Read/Delete/Create/Update/List" + }, + "operationStatus": { + "$ref": "#/definitions/ZcOpsStatus", + "title": "if this is log running job" + }, + "objectKind": { + "type": "string", + "title": "zedcloud object kind on which the operation was performed" + }, + "objectId": { + "type": "string", + "title": "Unique value identifies the object that was operated on" + }, + "objectName": { + "type": "string", + "title": "name of the object" + }, + "objectRevision": { + "type": "string", + "title": "object revision post the operation, note Read operation\ndoesn't change the revision" + }, + "objectType": { + "$ref": "#/definitions/ObjectType" + }, + "operationTime": { + "type": "string", + "title": "time of operation" + }, + "startTime": { + "type": "string", + "title": "total time taken by operations" + }, + "endTime": { + "type": "string" + }, + "user": { + "type": "string", + "title": "the operation is performed on behalf of this user" + }, + "httpStatusCode": { + "type": "integer", + "format": "int32", + "title": "http response" + }, + "httpStatusMsg": { + "type": "string", + "title": "summary of the error in text format" + }, + "jobId": { + "type": "string", + "title": "for tracking asynchronous tasks" + }, + "error": { + "type": "array", + "items": { + "$ref": "#/definitions/ZsrvError" + }, + "title": "one or more errors will be set if the operation failed\ni.e. httpStatusCode != 2xx" + } + } + }, + "commonBootOrder": { + "type": "string", + "enum": [ + "BOOT_ORDER_UNSPECIFIED", + "BOOT_ORDER_USB", + "BOOT_ORDER_NOUSB" + ], + "default": "BOOT_ORDER_UNSPECIFIED", + "description": "BootOrder controls boot device priority for VMs.\nUsed by both Controller API (VmConfig.boot_order) and LPS API (AppBootConfig.usb_boot).\n\n - BOOT_ORDER_UNSPECIFIED: Default boot order (no modification). The actual behavior depends on\nwhether a custom OVMF.fd is used: if custom OVMF.fd is provided, its\nprecooked boot order applies; otherwise, USB has priority according\nto the UEFI standard.\n - BOOT_ORDER_USB: Enable USB boot priority - OVMF will prioritize USB devices in boot order.\n - BOOT_ORDER_NOUSB: Disable USB boot - OVMF will deprioritize USB devices in boot order." + }, + "commonCellularIPType": { + "type": "string", + "enum": [ + "CELLULAR_IP_TYPE_UNSPECIFIED", + "CELLULAR_IP_TYPE_IPV4", + "CELLULAR_IP_TYPE_IPV4_AND_IPV6", + "CELLULAR_IP_TYPE_IPV6" + ], + "default": "CELLULAR_IP_TYPE_UNSPECIFIED", + "description": "The IP addressing type to use for a given attach or default bearer.\n\n - CELLULAR_IP_TYPE_UNSPECIFIED: IP type is not specified.\nWhen unspecified, EVE will not enforce an IP type in the bearer configuration.\nThe modem will instead use its built-in profiles (see CellularProfile) to determine\nthe appropriate IP type for the network.\n - CELLULAR_IP_TYPE_IPV4: IPv4 only.\n - CELLULAR_IP_TYPE_IPV4_AND_IPV6: IPv4 and IPv6.\n - CELLULAR_IP_TYPE_IPV6: IPv6 only." + }, + "commonCipherBlock": { + "type": "object", + "properties": { + "cipherContextId": { + "type": "string", + "title": "cipher context id" + }, + "initialValue": { + "type": "string", + "format": "byte", + "title": "Initial Value for Symmetric Key derivation" + }, + "cipherData": { + "type": "string", + "format": "byte", + "title": "encrypted sensitive data" + }, + "clearTextSha256": { + "type": "string", + "format": "byte", + "title": "sha256 of the plaintext sensitive data" + } + }, + "title": "Encrypted sensitive data information" + }, + "commonCipherContext": { + "type": "object", + "properties": { + "contextId": { + "type": "string", + "title": "cipher context id, key to this structure" + }, + "hashScheme": { + "$ref": "#/definitions/evecommonHashAlgorithm", + "title": "algorithm used to compute hash for certificates" + }, + "keyExchangeScheme": { + "$ref": "#/definitions/commonKeyExchangeScheme", + "description": "for key exchange scheme, like ECDH etc." + }, + "encryptionScheme": { + "$ref": "#/definitions/commonEncryptionScheme", + "description": "for encrypting sensitive data, like AES256 etc." + }, + "deviceCertHash": { + "type": "string", + "format": "byte", + "title": "device public certificate hash" + }, + "controllerCertHash": { + "type": "string", + "format": "byte", + "title": "controller certificate hash" + } + }, + "title": "Cipher information to decrypt Sensitive Data" + }, + "commonConnectivityProbe": { + "type": "object", + "properties": { + "probeMethod": { + "$ref": "#/definitions/commonConnectivityProbeMethod", + "description": "Method to use to determine the connectivity status." + }, + "probeEndpoint": { + "$ref": "#/definitions/commonProbeEndpoint", + "description": "Endpoint to probe using the selected probing mechanism to determine\nthe connectivity status." + } + }, + "description": "Configuration for user-defined connectivity-testing probe." + }, + "commonConnectivityProbeMethod": { + "type": "string", + "enum": [ + "CONNECTIVITY_PROBE_METHOD_UNSPECIFIED", + "CONNECTIVITY_PROBE_METHOD_ICMP", + "CONNECTIVITY_PROBE_METHOD_TCP" + ], + "default": "CONNECTIVITY_PROBE_METHOD_UNSPECIFIED", + "description": "User-defined method to use to determine the connectivity status.\n\n - CONNECTIVITY_PROBE_METHOD_UNSPECIFIED: Connectivity probing method is not specified and therefore will not be used.\n - CONNECTIVITY_PROBE_METHOD_ICMP: Use ICMP ping against the probed endpoint to determine the connectivity status.\n - CONNECTIVITY_PROBE_METHOD_TCP: Try to establish TCP connection with the probed endpoint to determine the connectivity\nstatus." + }, + "commonDHCPType": { + "type": "string", + "enum": [ + "DHCPNoop", + "Static", + "DHCPNone", + "Client" + ], + "default": "DHCPNoop", + "title": "- Static: Statically configure the DHCP for port\n - DHCPNone: Don't run any DHCP, we are in passthrough mode for app\n - Client: Run the DHCP client on this port" + }, + "commonDhcpOptionsIgnore": { + "type": "object", + "properties": { + "ntpServerExclusively": { + "type": "boolean", + "description": "When true, statically configured NTP servers are used exclusively,\nignoring any NTP servers provided by DHCP.\nIf true and no static NTP servers are set, no NTP servers will be used.\nFor DHCP (IPv4), this applies to option 42.\nFor DHCPv6 (IPv6), this applies to option 56." + }, + "ipAddressesExclusively": { + "type": "boolean", + "description": "When true, statically configured IP addresses are used exclusively,\nignoring any IP addresses provided by DHCP.\nIf true and no static IP addresses are set, the interface will have no IP assigned." + }, + "dnsConfigExclusively": { + "type": "boolean", + "description": "When true, statically configured DNS servers and domain name(s) are used\nexclusively, ignoring any DNS-related configuration provided by DHCP.\nIf true and no static DNS servers are set, no DNS servers will be used.\nSimilarly, if no static domain name(s) are set, no domain name(s) will be used.\nFor DHCP (IPv4), this applies to option 6 (DNS servers), option 15\n(single domain name), and option 119 (search domains).\nFor DHCPv6 (IPv6), this applies to option 23 (DNS servers) and option 24\n(domain search list)." + }, + "gatewaysExclusively": { + "type": "boolean", + "description": "When true, statically configured gateway addresses are used exclusively,\nignoring any routers provided by DHCP.\nIf true and no static routers are set, no gateway will be used.\nFor DHCP (IPv4), this applies to option 3.\nFor DHCPv6 (IPv6), this applies to option 24." + } + }, + "description": "DhcpOptionsIgnore specifies which DHCP-provided options\nshould be ignored by the device, allowing static configuration\nto override DHCP where applicable.\n\nCurrently supported options include:\n - IP addresses\n - NTP servers\n - DNS servers and domains\n - Router (gateway) addresses\n\nThis allows flexible merging or exclusive use of static config fields.\n\nFor full DHCP option references:\n - DHCP: https://www.iana.org/assignments/bootp-dhcp-parameters/bootp-dhcp-parameters.xhtml\n - DHCPv6: https://www.iana.org/assignments/dhcpv6-parameters/dhcpv6-parameters.xhtml" + }, + "commonEncryptionScheme": { + "type": "string", + "enum": [ + "SA_NONE", + "SA_AES_256_CFB" + ], + "default": "SA_NONE", + "title": "Encryption Scheme for Cipher Payload" + }, + "commonKeyExchangeScheme": { + "type": "string", + "enum": [ + "KEA_NONE", + "KEA_ECDH" + ], + "default": "KEA_NONE", + "title": "Security Key Exchange Method" + }, + "commonNetworkType": { + "type": "string", + "enum": [ + "NETWORKTYPENOOP", + "V4", + "V6", + "CryptoV4", + "CryptoV6", + "CryptoEID", + "V4Only", + "V6Only", + "DualV4V6" + ], + "default": "NETWORKTYPENOOP" + }, + "commonPhyIoMemberUsage": { + "type": "string", + "enum": [ + "PhyIoUsageNone", + "PhyIoUsageMgmtAndApps", + "PhyIoUsageShared", + "PhyIoUsageDedicated", + "PhyIoUsageDisabled", + "PhyIoUsageMgmtOnly" + ], + "default": "PhyIoUsageNone", + "description": "PhyIoMemberUsage - Indicates how each adaptor must be used by Eve.\n\n - PhyIoUsageMgmtAndApps: Used by both management and apps.\n - PhyIoUsageShared: Shared by multiple apps\n - PhyIoUsageDedicated: used by only one app\n - PhyIoUsageDisabled: Adapter Blocked. Do not use the Adapter.\n - PhyIoUsageMgmtOnly: Used for Management traffic only. Cannot be used by Apps." + }, + "commonPhyIoType": { + "type": "string", + "enum": [ + "PhyIoNoop", + "PhyIoNetEth", + "PhyIoUSB", + "PhyIoCOM", + "PhyIoAudio", + "PhyIoNetWLAN", + "PhyIoNetWWAN", + "PhyIoHDMI", + "PhyIoNVMEStorage", + "PhyIoSATAStorage", + "PhyIoNetEthPF", + "PhyIoNetEthVF", + "PhyIoUSBController", + "PhyIoUSBDevice", + "PhyIoCAN", + "PhyIoVCAN", + "PhyIoLCAN", + "PhyIoOther" + ], + "default": "PhyIoNoop" + }, + "commonProbeEndpoint": { + "type": "object", + "properties": { + "host": { + "type": "string", + "description": "IP address or FQDN." + }, + "port": { + "type": "integer", + "format": "int64", + "description": "TCP port required for CONNECTIVITY_PROBE_METHOD_TCP.\nLeave empty for CONNECTIVITY_PROBE_METHOD_ICMP." + } + }, + "description": "Address of a remote endpoint to probe in order to determine connectivity status." + }, + "commonProxyConfig": { + "type": "object", + "properties": { + "networkProxyEnable": { + "type": "boolean", + "title": "enable network level proxy in the form of WPAD" + }, + "proxies": { + "type": "array", + "items": { + "$ref": "#/definitions/commonProxyServer" + }, + "title": "dedicated per protocol information" + }, + "exceptions": { + "type": "string", + "title": "exceptions separated by commas" + }, + "pacfile": { + "type": "string", + "title": "or pacfile can be in place of others\nbase64 encoded" + }, + "networkProxyURL": { + "type": "string", + "title": "Direct URL for wpad.dat download" + }, + "proxyCertPEM": { + "type": "array", + "items": { + "type": "string", + "format": "byte" + }, + "title": "Uploaded proxy certificate or certificate chain for MITM\nthis may be needed either in explicit (has ProxyServer items), automatic\n(networkProxyEnable) or transparent (network layer not aware of proxy)" + } + } + }, + "commonProxyServer": { + "type": "object", + "properties": { + "proto": { + "$ref": "#/definitions/commonproxyProto" + }, + "server": { + "type": "string" + }, + "port": { + "type": "integer", + "format": "int64" + } + } + }, + "commonWiFiKeyScheme": { + "type": "string", + "enum": [ + "SchemeNOOP", + "WPAPSK", + "WPAEAP" + ], + "default": "SchemeNOOP" + }, + "commonZnetStaticDNSEntry": { + "type": "object", + "properties": { + "HostName": { + "type": "string" + }, + "Address": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "title": "These are list of static mapping that can be added to network" + }, + "commonipRange": { + "type": "object", + "properties": { + "start": { + "type": "string" + }, + "end": { + "type": "string" + } + } + }, + "commonipspec": { + "type": "object", + "properties": { + "dhcp": { + "$ref": "#/definitions/commonDHCPType" + }, + "subnet": { + "type": "string", + "title": "subnet is CIDR format...x.y.z.l/nn" + }, + "gateway": { + "type": "string" + }, + "domain": { + "type": "string" + }, + "ntp": { + "type": "string", + "title": "ntp and more_ntp are used as a union to specify several NTP servers\nvia IP address or FQDN\nthis is for historical reasons when we only allowed to specify one\nNTP server" + }, + "moreNtp": { + "type": "array", + "items": { + "type": "string" + } + }, + "dns": { + "type": "array", + "items": { + "type": "string" + } + }, + "dhcpRange": { + "$ref": "#/definitions/commonipRange", + "description": "for IPAM management when dhcp is turned on.\nIf none provided, system will default pool." + }, + "dhcpOptionsIgnore": { + "$ref": "#/definitions/commonDhcpOptionsIgnore", + "title": "Even if DhcpType is Client, EVE still accepts static\nIP config and will merge it with the DHCP-provided one by default\nuse the following option to override this behavior" + } + }, + "title": "Common for IPv4 and IPv6" + }, + "commonproxyProto": { + "type": "string", + "enum": [ + "PROXY_HTTP", + "PROXY_HTTPS", + "PROXY_SOCKS", + "PROXY_FTP", + "PROXY_OTHER" + ], + "default": "PROXY_HTTP" + }, + "configACE": { + "type": "object", + "properties": { + "matches": { + "type": "array", + "items": { + "$ref": "#/definitions/configACEMatch" + }, + "title": "multiple matches here is for various fields of 6 tuples\n for example\n 1) host=www.example.com & port=http\n 2) ip=8.8.8.8 & port=53 & proto=UDP\n 3) adapter=uplink && port=8080 && proto=TCP" + }, + "actions": { + "type": "array", + "items": { + "$ref": "#/definitions/configACEAction" + }, + "description": "Expect only single action...repeated here is\nfor future work." + }, + "name": { + "type": "string" + }, + "id": { + "type": "integer", + "format": "int32" + }, + "dir": { + "$ref": "#/definitions/configACEDirection" + } + } + }, + "configACEAction": { + "type": "object", + "properties": { + "drop": { + "type": "boolean" + }, + "limit": { + "type": "boolean", + "title": "limit action, and its associated parameter" + }, + "limitrate": { + "type": "integer", + "format": "int64" + }, + "limitunit": { + "type": "string" + }, + "limitburst": { + "type": "integer", + "format": "int64" + }, + "portmap": { + "type": "boolean", + "title": "port map action, and its associated parameter" + }, + "appPort": { + "type": "integer", + "format": "int64" + } + } + }, + "configACEDirection": { + "type": "string", + "enum": [ + "BOTH", + "INGRESS", + "EGRESS" + ], + "default": "BOTH" + }, + "configACEMatch": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Supported ACE match types:\n * \"ip\": value should be an IP address of a remote endpoint. The match is satisfied\n for outbound and inbound flow if the destination and the source IP address\n matches the given value, respectively. Can be combined with any other match\n type to further narrow down the selection criteria.\n * \"host\": value should be a domain name of a remote endpoint. It can be either a fully\n qualified, or a partially qualified domain name (FQDN or PQDN). A packet is\n matched if it is destined to or originated from an IP address that was obtained\n by a DNS query for that exact domain or any of its subdomains. For example,\n match of type \"host\" with value \"domain.com\" will also apply to the endpoint\n \"subdomain.domain.com\". Can be combined with other match types except for \"eidset\".\n * \"eidset\": special match type for the overlay network. Matches IPs of all applications\n deployed in the same network as well as all IPs with statically configured\n DNS entries (under the config field NetworkInstanceConfig.Dns). For this type,\n value field is not used. Can be combined with other match types except for\n \"host\".\n * \"protocol\": value should specify the protocol to match. Protocol can be one of \"tcp\",\n \"udp\", \"icmp\", or \"all\", or it can be a numeric value, representing one\n of these protocols or a different one. A protocol name from /etc/protocols\n is also allowed. Protocol match can be combined with any other match type\n (often combined with port numbers).\n * \"lport\": value should be an application local port number. For filtering actions,\n this is the source port for outbound traffic and destination port for inbound\n traffic. For PORTMAP action, this represents application port as exposed\n to the external network (i.e., if :2222 is mapped to :22,\n lport refers to 2222). lport can be combined with any other match type.\n It is actually required to combine \"lport\" and \"protocol\" inside the same ACE.\n In other words, port without protocol is not valid.\n * \"fport\": value should be a remote endpoint port number (foreign port). Used for filtering\n actions, but not for PORTMAP (do not confuse with \"lport\", which is still used to\n represent the forwarded port - the forwarded port is still considered as local).\n \"fport\" can be combined with any other match type. It is actually required\n to combine \"fport\" with \"protocol\" inside the same ACE. In other words, port\n without protocol is not valid.\n * \"adapter\": value should be an adapter shared label (SystemAdapter.shared_labels).\n It can be used for an inbound ACE to apply the rule only to packets arriving\n via one of the matched network adapters. Typically used to activate a given\n port-forwarding rule (PORTMAP) for only a subset of network adapters.\n When not specified, the rule applies to every port attached to the network\n instance (i.e. equivalent to setting \"adapter\" to the pre-defined shared\n label \"all\").\n Adapter label cannot be used for outbound ACE. This is because the EVE firewall\n is applied before routing, and the output network adapter is not yet known." + }, + "value": { + "type": "string" + } + } + }, + "configAdapter": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/commonPhyIoType" + }, + "name": { + "type": "string" + }, + "ethVf": { + "$ref": "#/definitions/configEthVF" + }, + "interfaceOrder": { + "type": "integer", + "format": "int64", + "description": "Define the network interface order relative to other directly assigned\nnetwork devices and virtual network adapters.\nOnly applies to (assignable) network adapters, i.e. types: \"PhyIoNetEth\", \"PhyIoNetWLAN\",\n\"PhyIoNetWWAN\" and \"PhyIoNetEthVF\".\nThe numbering is across both the \"Adapter\" (direct assignments) and the \"NetworkAdapter\"\n(virtual interfaces) lists for a given \"AppInstanceConfig\", thus every entry in these\nlists, excluding non-networking adapters, must have a unique order number\n(when the \"enforce_network_interface_order\" is enabled, see \"VmConfig\").\nInterface with a lower order value should appear inside the application before\ninterface with a higher order value.\nThe implementation of this ordering may depend on the hypervisor. For example,\nthe hypervisor might virtualize the PCI bus and assign lower PCI addresses to\ninterfaces with lower order values. But the actual outcome of interface ordering\ndepends on the application and EVE therefore cannot guarantee desired order.\nSince this field was introduced in later versions, older EVE versions do not support\nuser-defined interface ordering. For backward compatibility, the user-defined\norder is applied only if \"enforce_network_interface_order\" is enabled for the given\napplication (see \"VmConfig\", file \"vm.proto\")." + } + }, + "description": "Adapter bundles corresponding to a subset of what is in ZioBundle\nWhen used by a NetworkInstanceConfig the name is the logicallabel\nfor the network adapter." + }, + "configAddressType": { + "type": "string", + "enum": [ + "First", + "IPV4", + "IPV6", + "CryptoIPV4", + "CryptoIPV6", + "Last" + ], + "default": "First" + }, + "configAffinityType": { + "type": "string", + "enum": [ + "AFFINITY_TYPE_PREFERRED", + "AFFINITY_TYPE_REQUIRED" + ], + "default": "AFFINITY_TYPE_PREFERRED", + "description": "- AFFINITY_TYPE_PREFERRED: Preferred - designated_node_id is preferred for placement but\nif the node is unhealthy, app can run on other nodes.\n - AFFINITY_TYPE_REQUIRED: Required - designated_node_id is required to be healthy for\napp instance to boot, app will not failover to other nodes.", + "title": "Type of app instance affinity" + }, + "configAppDebugAccessPolicy": { + "type": "object", + "properties": { + "allowApp": { + "type": "boolean", + "title": "app side of edge-view access is allowed or not" + } + }, + "title": "App debug policy applicable to edge-view" + }, + "configAppInstanceConfig": { + "type": "object", + "properties": { + "uuidandversion": { + "$ref": "#/definitions/configUUIDandVersion" + }, + "displayname": { + "type": "string" + }, + "fixedresources": { + "$ref": "#/definitions/configVmConfig" + }, + "drives": { + "type": "array", + "items": { + "$ref": "#/definitions/configDrive" + }, + "description": "VolumeRefs, if supported by EVE, will supersede drives. Drives still\nexist for backward compatibility.\nDrives will be deprecated in the future.\nThe order here is critical because they are presented to the VM or\ncontainer in the order they are listed, e.g., the first VM image\nwill be the root disk." + }, + "activate": { + "type": "boolean", + "description": "Set activate to start the application instance; clear it to stop it." + }, + "interfaces": { + "type": "array", + "items": { + "$ref": "#/definitions/configNetworkAdapter" + }, + "description": "NetworkAdapter are virtual adapters assigned to the application\nThe order here is critical because they are presented to the VM or\ncontainer in the order they are listed, e.g., the first NetworkAdapter\nwill appear in a Linux VM as eth0. Also, the MAC address is determined\nbased on the order in the list." + }, + "adapters": { + "type": "array", + "items": { + "$ref": "#/definitions/configAdapter" + }, + "title": "Physical adapters such as eth1 or USB controllers and GPUs assigned\nto the application instance.\nThe Name in Adapter should be set to PhysicalIO.assigngrp" + }, + "restart": { + "$ref": "#/definitions/configInstanceOpsCmd", + "description": "The device behavior for a restart command (if counter increased)\nis to restart the application instance\nIncreasing this multiple times does not imply the application instance\nwill restart more than once.\nEVE can assume that the adapters did not change." + }, + "purge": { + "$ref": "#/definitions/configInstanceOpsCmd", + "description": "The EVE behavior for a purge command is to restart the application instance\nwith the first drive/volumeRef recreated from its origin." + }, + "userData": { + "type": "string", + "description": "App Instance initialization configuration data provided by user\nThis will be used as \"user-data\" in cloud-init\nEmpty string will indicate that cloud-init is not required\nIt is also used to carry environment variables for containers.\nXXX will be deprecated and replaced by the cipherData below." + }, + "remoteConsole": { + "type": "boolean", + "description": "Config flag if the app-instance should be made accessible\nthrough a remote console session established by the device." + }, + "cipherData": { + "$ref": "#/definitions/commonCipherBlock", + "title": "contains the encrypted userdata" + }, + "collectStatsIPAddr": { + "type": "string", + "title": "The static IP address assigned on the NetworkAdapter which App Container\nstats collection uses. If the 'collectStatsIPAddr' is not empty and valid,\nit enables the container stats collection for this App.\nDuring App instance creation, after user enables the collection of stats\nfrom App, cloud needs to make sure at least one 'Local' type of Network-Instance\nis assigned to the App interface, and based on the subnet of the NI, statically\nassign an IP address on the same subnet, e.g. 10.1.0.100" + }, + "volumeRefList": { + "type": "array", + "items": { + "$ref": "#/definitions/configVolumeRef" + }, + "description": "The volumes to be attached to the app-instance.\nThe order here is critical because they are presented to the VM or\ncontainer in the order they are listed, e.g., the first VM image\nwill be the root disk.\nNote that since the name volumeRef was used before and deprecated\npython protobuf seems to require that we use a different name." + }, + "metaDataType": { + "$ref": "#/definitions/configMetaDataType", + "title": "metadata type to use for app if provided inside userData" + }, + "profileList": { + "type": "array", + "items": { + "type": "string" + }, + "description": "profile_list is a set of strings which can be used to control which sets\nof applications are run. Combined with the activate flag above.\nIf the profile list is empty it means wildcard; application will\nbe started independent of the global or local profile specified for the\ndevice." + }, + "startDelayInSeconds": { + "type": "integer", + "format": "int64", + "description": "start_delay_in_seconds - Applicable only when EVE boots up fresh and starts\napplications for the first time after boot up. This is the amount of time that\nEVE waits (after boot finish) before starting each application.\nDefault value 0 -> start application immediately.\nNon-Zero value -> After EVE is ready to start application instance, wait for the\ngiven amount of time before starting the respective application instance." + }, + "service": { + "type": "boolean", + "title": "service - run app instance as a service container in the host/dom0\nwill override default capabilities with configuration\ndefined in org.mobyproject.config label of image provided by linuxkit" + }, + "cloudInitVersion": { + "type": "integer", + "format": "int64", + "description": "All changes to the cloud-init config are tracked using this version field -\nonce the version is changed cloud-init tool restarts in a guest." + }, + "snapshot": { + "$ref": "#/definitions/configSnapshotConfig", + "title": "SnapshotConfig is used to track the snapshots of the app instance" + }, + "patchRef": { + "$ref": "#/definitions/configPatchEnvelopeRef", + "title": "PatchEnvelopeRef is used to track all patch envelopes used by the app instance" + }, + "designatedNodeId": { + "type": "string", + "description": "Designated Node Id is used for cluster nodes to determine placement of\nthe AppInstance when an EdgeNodeCluster config is present.\nSee affinity below to set the desired node affinity.\neg. Preferred or Required." + }, + "vmResolution": { + "type": "string", + "description": "Custom resolution applies to VM that is running in FML mode only." + }, + "runtimeType": { + "$ref": "#/definitions/configAppRuntimeType", + "title": "AppRuntimeType - to indicate the types of Application Runtime Deployment" + }, + "affinity": { + "$ref": "#/definitions/configAffinityType", + "description": "Affinity is used for cluster nodes to determine\npreferred or required node scheduling for app instances.\nNode Id for scheduling is defined in designated_node_id." + } + }, + "description": "The complete configuration for an Application Instance\nWhen changing key fields such as the drives/volumeRefs or the number\nof interfaces, the controller is required to issue a purge command i.e.,\nincrease the purge counter. Otherwise there will be an error (The controller\ncan also issue a purge command to re-construct the content of the first\ndrive/volumeRef without any changes.)\nSome changes such as ACL changes in the interfaces do not require a restart,\nbut all other changes (such as fixedresources and adapters) require a\nrestart command i.e., an increase to the restart counter. The restart counter\ncan also be increased to cause an application instance restart without\nany other change to the application instance." + }, + "configAppRuntimeType": { + "type": "string", + "enum": [ + "APP_RUNTIME_TYPE_UNSPECIFIED", + "APP_RUNTIME_TYPE_DOCKER" + ], + "default": "APP_RUNTIME_TYPE_UNSPECIFIED", + "description": "AppRuntimeType - to indicate the types of Application Deployment\nFor instance, the need to gather of docker container metrics and logs\nfrom the agent inside applications on EVE device." + }, + "configBaseOS": { + "type": "object", + "properties": { + "contentTreeUuid": { + "type": "string", + "title": "UUID for ContentTree with BaseOS image" + }, + "retryUpdate": { + "$ref": "#/definitions/configDeviceOpsCmd", + "description": "retry_update\nRetry the BaseOs update if the update failed previously.\n1) If this image is in FAILED state, retry the image update.\n2) If this image is already active and fully installed (PartitionState = UPDATED),\n Do nothing. Just update the baseos_update_counter in Info message.\n3) If this image is same as active image, but status is NOT yet UPDATED, or\n if the update to this image is in progress, wait till the update\n concludes (Success / Error+rollback) - then trigger the retry as needed." + }, + "activate": { + "type": "boolean", + "title": "if not set BaseOS will be installed,\nbut not activated" + }, + "baseOsVersion": { + "type": "string" + } + } + }, + "configBaseOSConfig": { + "type": "object", + "properties": { + "uuidandversion": { + "$ref": "#/definitions/configUUIDandVersion" + }, + "drives": { + "type": "array", + "items": { + "$ref": "#/definitions/configDrive" + }, + "description": "volumeID will supersede drives. Drives still\nexist for backward compatibility.\nDrives will be deprecated in the future." + }, + "activate": { + "type": "boolean" + }, + "baseOSVersion": { + "type": "string" + }, + "volumeID": { + "type": "string" + } + } + }, + "configCellularAccessPoint": { + "type": "object", + "properties": { + "simSlot": { + "type": "integer", + "format": "int64", + "description": "SIM card slot to which this configuration applies.\n0 - unspecified (apply to currently activated or the only available)\n1 - config for SIM card in the first slot\n2 - config for SIM card in the second slot\netc." + }, + "apn": { + "type": "string", + "description": "Access Point Network to connect into.\nBy default it is \"internet\".\nApplies to the default bearer.\nTo modify the attach bearer APN, use attach_apn instead." + }, + "authProtocol": { + "$ref": "#/definitions/evecommonCellularAuthProtocol", + "description": "Authentication protocol used by the network.\nApplies to the default bearer.\nTo modify the authentication protocol for the attach bearer, use attach_auth_protocol instead." + }, + "cipherData": { + "$ref": "#/definitions/commonCipherBlock", + "description": "Cipher data may contain encrypted user credentials\n(inside cellular_net_* fields of EncryptionBlock).\nEncryptionBlock allows separate configuration of credentials for the attach\nand default bearers." + }, + "preferredPlmns": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The set of cellular network operators that modem should preferably try to register\nand connect into.\nNetwork operator should be referenced by PLMN (Public Land Mobile Network) code,\nconsisting of 3-digits MCC (Mobile Country Code) and 2 or 3-digits MNC (Mobile Network Code),\nseparated by a dash, e.g. \"310-260\".\nIf empty, then modem will select the network automatically based on the SIM card config." + }, + "forbidRoaming": { + "type": "boolean", + "description": "If true, then modem will avoid connecting to networks with roaming." + }, + "preferredRats": { + "type": "array", + "items": { + "$ref": "#/definitions/evecommonRadioAccessTechnology" + }, + "description": "The list of preferred Radio Access Technologies (RATs) to use for connecting\nto the network.\nOrder matters, first is the most preferred, second is tried next, etc.\nNot listed technologies will not be tried.\nIf empty, then modem will select RAT automatically." + }, + "ipType": { + "$ref": "#/definitions/commonCellularIPType", + "description": "The IP addressing type to use for the default bearer." + }, + "attachApn": { + "type": "string", + "description": "Access Point Name (APN) for the attach (initial) bearer.\nThis field is optional. If not specified, EVE will not send any attach bearer\nconfiguration to the modem. Instead, the modem will use one of its pre-installed\nprofiles (see CellularProfile) to determine the configuration." + }, + "attachIpType": { + "$ref": "#/definitions/commonCellularIPType", + "description": "The IP addressing type to use for the attach bearer.\nLeave undefined if attach_apn is not specified." + }, + "attachAuthProtocol": { + "$ref": "#/definitions/evecommonCellularAuthProtocol", + "description": "Authentication protocol used for the attach bearer.\nLeave undefined if attach_apn is not specified." + } + }, + "description": "CellularAccessPoint contains config parameters for connecting to a cellular network." + }, + "configCellularConfig": { + "type": "object", + "properties": { + "APN": { + "type": "string", + "description": "APN string - by default it is \"internet\".\nTO BE DEPRECATED: Fill connection arguments inside access_points instead.\nIf access_points is non-empty, then APN field is ignored." + }, + "probe": { + "$ref": "#/definitions/configCellularConnectivityProbe", + "description": "Optional cellular connectivity probing.\nBy default it is enabled." + }, + "locationTracking": { + "type": "boolean", + "description": "Some LTE modems have GNSS receiver integrated and can be used for device\nlocation tracking.\nEnable this option to have location info periodically obtained from this\nmodem and published to controller and to applications." + }, + "accessPoints": { + "type": "array", + "items": { + "$ref": "#/definitions/configCellularAccessPoint" + }, + "description": "Parameters to apply for connecting to cellular networks.\nConfigured separately for every SIM card inserted into the modem." + }, + "activatedSimSlot": { + "type": "integer", + "format": "int64", + "description": "Select SIM card slot to activate.\nCurrently, EVE support only single-standby SIM card mode.\n0 - unspecified (leave the currently activated)\n1 - activate the first SIM slot\n2 - activate the second SIM slot\netc." + } + } + }, + "configCellularConnectivityProbe": { + "type": "object", + "properties": { + "disable": { + "type": "boolean", + "description": "If true, then probing is disabled." + }, + "probeAddress": { + "type": "string", + "description": "IP/FQDN to periodically probe using 3 pings per iteration to determine connectivity status.\nThis field is now deprecated and replaced with custom_probe (see below).\nTo maintain backward-compatibility, EVE will check both probe_address and custom_probe\nand will use whichever has non-zero value (if any), but preferring custom_probe." + }, + "customProbe": { + "$ref": "#/definitions/commonConnectivityProbe", + "description": "User-defined probe for cellular connectivity testing.\nOnly IP address is allowed as ConnectivityProbe.probe_address (and port if needed),\nnot hostname.\nThe probing algorithm is more complex that just testing reachability of a remote\nendpoint and the goal is to minimize generated traffic, probing time and false negatives\n(that would trigger undesired re-connect).\nEVE will periodically check the modem status, accessibility of DNS server(s) and potentially\nalso proxies in the local network, and only as the last resort (if connectivity state\nis still unclear) it will probe the remote endpoint. If custom_probe is not defined,\nEVE will try to ping \"8.8.8.8\" (Google public DNS).\nIt is recommended to use custom probe for private LTE networks where public DNS servers\nmight not be allowed by the firewall (and hence ping would fail even with a working\nconnectivity)." + } + }, + "description": "CellularConnectivityProbe is used to periodically check the connectivity status of a cellular network\nby probing a remote endpoint.\nWhenever the probe fails, the cellular connection is automatically restarted. If the probe keeps failing\neven after the restart, the failure is reported in ZCellularStatus.probeError.\nThe connectivity probing interval is 5 minutes and currently it is not configurable." + }, + "configConfigItem": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "description": "Timers and other per-device policy which relates to the interaction\nwith zedcloud. Note that the timers are randomized on the device\nto avoid synchronization with other devices. Random range is between\nbetween .5 and 1.5 of these nominal values. If not set (i.e. zero),\nit means the default value of 60 seconds." + }, + "configContentTree": { + "type": "object", + "properties": { + "uuid": { + "type": "string" + }, + "dsId": { + "type": "string" + }, + "URL": { + "type": "string" + }, + "iformat": { + "$ref": "#/definitions/configFormat" + }, + "sha256": { + "type": "string", + "title": "The sha is for the top blob of the ContentTree" + }, + "maxSizeBytes": { + "type": "string", + "format": "uint64", + "description": "maxSizeBytes used for capping resource consumption in EVE.\nmaxSizeBytes indicates the maximum download size of content tree." + }, + "siginfo": { + "$ref": "#/definitions/configSignatureInfo" + }, + "displayName": { + "type": "string" + }, + "generationCount": { + "type": "string", + "format": "int64", + "description": "For container ContentTree, sha256 might not be available in config.\nIf the sha256 is not available then it needs to be resolved corresponding to the tag\nchange in generation_count indicates that the resolution of tag is needed\ngeneration_count needs to be updated when purge is required for an existing\ninstance. In case of new instance using the same content tree, EVE will get\nnew content tree UUID in the device configuration from the controller." + }, + "customMetaData": { + "type": "string", + "description": "An arbitrary string. Usage depends on the content purpose. Currently the\nonly usage is with custom application blobs (AppCustom) - this string will\nappear in the restAPI endpoint available at http://169.254.169.254. So user\napplication can read that data and treat the blob accordingly." + }, + "dsIdsList": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of DatastoreConfig UUIDs, that must have the same content. In case of\nnetwork failure, the download process can fallback to the next datastore\nin the list." + }, + "designatedNodeId": { + "type": "string", + "description": "To inform the edge-node if the device receiving this content tree is\nresponsible for content tree download or not." + } + }, + "title": "ContentTree describes the top of some content tree. The controller needs\nto allocate a uuid for it, and that uuid will be sent by EVE in the\nZInfoContentTree message" + }, + "configDatastoreConfig": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "dType": { + "$ref": "#/definitions/configDsType" + }, + "fqdn": { + "type": "string" + }, + "apiKey": { + "type": "string", + "title": "to be deprecated, use cipherData instead" + }, + "password": { + "type": "string", + "title": "to be deprecated, use cipherData instead" + }, + "dpath": { + "type": "string", + "title": "depending on datastore types, it could be bucket or path" + }, + "region": { + "type": "string", + "title": "Applies for some datastore types" + }, + "cipherData": { + "$ref": "#/definitions/commonCipherBlock", + "title": "contains the encrypted credentials" + }, + "dsCertPEM": { + "type": "array", + "items": { + "type": "string", + "format": "byte" + }, + "title": "Uploaded datastore certificate or certificate chain" + } + }, + "title": "The DataStoreConfig contains common parameters for a give source of\nimages aka ContentTrees, such as the credentials and server" + }, + "configDevDebugAccessPolicy": { + "type": "object", + "properties": { + "allowDev": { + "type": "boolean", + "title": "device side of edge-view access is allowed or not" + } + }, + "title": "Dev debug policy applicable to edge-view" + }, + "configDeviceOpsCmd": { + "type": "object", + "properties": { + "counter": { + "type": "integer", + "format": "int64" + }, + "desiredState": { + "type": "boolean" + }, + "opsTime": { + "type": "string", + "title": "FIXME: change to timestamp, once we move to gogo proto" + } + }, + "description": "Device Operational Commands Semantic\nFor rebooting device, command=Reset, counter = counter+delta, desiredState = on\nFor poweroff device, command=Reset, counter = counter+delta, desiredState = off\nFor backup at midnight, command=Backup, counter = counter+delta, desiredState=n/a, opsTime = mm/dd/yy:hh:ss\nCurrent implementation does support only single command outstanding for each\ntype. In future can be extended to have more scheduled events." + }, + "configDiskConfig": { + "type": "object", + "properties": { + "disk": { + "$ref": "#/definitions/evecommonDiskDescription" + }, + "oldDisk": { + "$ref": "#/definitions/evecommonDiskDescription", + "title": "define old disk here to replace it with new one defined in disk, omit it to not use replacement" + }, + "diskConfig": { + "$ref": "#/definitions/configDiskConfigType" + } + }, + "title": "DiskConfig describe desired configuration of disk\nIf we want change state to online/offline we should define its state\nIf we want to add disk we should define it here and set DiskConfigType to online or offline\nIf we want to remove disk we should set its state to unused or appdirect\nIf we want to replace disk we should fill old_disk to be replaced with disk\nProgress of operation is expected to be available in info messages" + }, + "configDiskConfigType": { + "type": "string", + "enum": [ + "DISK_CONFIG_TYPE_UNSPECIFIED", + "DISK_CONFIG_TYPE_EVEOS", + "DISK_CONFIG_TYPE_PERSIST", + "DISK_CONFIG_TYPE_ZFS_ONLINE", + "DISK_CONFIG_TYPE_ZFS_OFFLINE", + "DISK_CONFIG_TYPE_APPDIRECT", + "DISK_CONFIG_TYPE_UNUSED" + ], + "default": "DISK_CONFIG_TYPE_UNSPECIFIED", + "title": "DiskConfigType is the desired configuration of disks" + }, + "configDisksArrayType": { + "type": "string", + "enum": [ + "DISKS_ARRAY_TYPE_UNSPECIFIED", + "DISKS_ARRAY_TYPE_RAID0", + "DISKS_ARRAY_TYPE_RAID1", + "DISKS_ARRAY_TYPE_RAID5", + "DISKS_ARRAY_TYPE_RAID6" + ], + "default": "DISKS_ARRAY_TYPE_UNSPECIFIED", + "title": "DisksArrayType is the desired configuration of disks in DisksConfig" + }, + "configDisksConfig": { + "type": "object", + "properties": { + "disks": { + "type": "array", + "items": { + "$ref": "#/definitions/configDiskConfig" + } + }, + "arrayType": { + "$ref": "#/definitions/configDisksArrayType" + }, + "children": { + "type": "array", + "items": { + "$ref": "#/definitions/configDisksConfig" + } + } + }, + "description": "For example to use stripe of two pairs of mirrored disks we should define\nDisksConfig without disks with array_type DISKS_ARRAY_TYPE_RAID0\nwith two children with properly defined disks inside and with array_type DISKS_ARRAY_TYPE_RAID1\nand empty children", + "title": "DisksConfig is a configuration of disks\nWe expect information about disks to be filled and will try to adjust disks states accordingly\nAll disks defined in disks field expected to have array type defined in array_type\nTo support nested topologies we can use children field" + }, + "configDrive": { + "type": "object", + "properties": { + "image": { + "$ref": "#/definitions/eveconfigImage" + }, + "readonly": { + "type": "boolean" + }, + "preserve": { + "type": "boolean" + }, + "drvtype": { + "$ref": "#/definitions/configDriveType" + }, + "target": { + "$ref": "#/definitions/configTarget" + }, + "maxsizebytes": { + "type": "string", + "format": "int64", + "description": "maxsizebytes indicates the maximum size of the volume.\nInitial image size will be resized to the maxsizebytes\niff maxsizebytes is greater than the image size." + } + }, + "title": "XXX the Drive will be deprecated and we will use Volumes instead" + }, + "configDriveType": { + "type": "string", + "enum": [ + "Unclassified", + "CDROM", + "HDD", + "NET", + "HDD_EMPTY" + ], + "default": "Unclassified", + "description": "- HDD_EMPTY: this type is allocate the empty disk of maxsizebytes specified", + "title": "XXX the DriveType will be deprecated when we deprecate Drive" + }, + "configDsType": { + "type": "string", + "enum": [ + "DsUnknown", + "DsHttp", + "DsHttps", + "DsS3", + "DsSFTP", + "DsContainerRegistry", + "DsAzureBlob", + "DsGoogleStorage" + ], + "default": "DsUnknown" + }, + "configEVE_OPAQUE_OBJECT_CATEGORY": { + "type": "string", + "enum": [ + "UNKNOWN", + "BASE64", + "BINARYBLOB", + "SECRET" + ], + "default": "UNKNOWN" + }, + "configEVE_PATCH_ENVELOPE_ACTION": { + "type": "string", + "enum": [ + "STORE", + "ACTIVATE" + ], + "default": "STORE" + }, + "configEdgeDevConfig": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/configUUIDandVersion" + }, + "apps": { + "type": "array", + "items": { + "$ref": "#/definitions/configAppInstanceConfig" + } + }, + "networks": { + "type": "array", + "items": { + "$ref": "#/definitions/configNetworkConfig" + } + }, + "datastores": { + "type": "array", + "items": { + "$ref": "#/definitions/configDatastoreConfig" + } + }, + "base": { + "type": "array", + "items": { + "$ref": "#/definitions/configBaseOSConfig" + }, + "description": "OBSOLETE - base. Use baseos instead. Controller should fill this for\nbackward compatibility till all the Older Eve images are no longer\nsupported." + }, + "reboot": { + "$ref": "#/definitions/configDeviceOpsCmd" + }, + "backup": { + "$ref": "#/definitions/configDeviceOpsCmd" + }, + "configItems": { + "type": "array", + "items": { + "$ref": "#/definitions/configConfigItem" + } + }, + "systemAdapterList": { + "type": "array", + "items": { + "$ref": "#/definitions/configSystemAdapter" + }, + "description": "systemAdapterList - List of DeviceNetworkAdapters. Only Network\n adapters ( Ex: eth0, wlan1 etc ) have a corresponding SystemAdapter.\nnon-Network adapters do not have systemadapters." + }, + "deviceIoList": { + "type": "array", + "items": { + "$ref": "#/definitions/configPhysicalIO" + }, + "title": "deviceIoList - List of Physical Adapters. Includes both Network\n Adapters and Non-Network Adapters ( USB / Com etc )" + }, + "manufacturer": { + "type": "string", + "title": "Override dmidecode info if set" + }, + "productName": { + "type": "string" + }, + "networkInstances": { + "type": "array", + "items": { + "$ref": "#/definitions/configNetworkInstanceConfig" + } + }, + "cipherContexts": { + "type": "array", + "items": { + "$ref": "#/definitions/commonCipherContext" + }, + "title": "controller supplies a list of cipher contexts,\ncontaining certificate and other details, to be\nused for sensitive data decryption" + }, + "contentInfo": { + "type": "array", + "items": { + "$ref": "#/definitions/configContentTree" + }, + "description": "These images aka ContentTrees and Volumes should be created by EVE\nindependently of any application usage.\nApplication instances will refer to the volumes." + }, + "volumes": { + "type": "array", + "items": { + "$ref": "#/definitions/configVolume" + } + }, + "controllercertConfighash": { + "type": "string", + "description": "This field is used by the device to detect when it needs to re-download\nthe controller certs using the /certs API endpoint.\nThe controller just needs to ensure this value changes when it wants the\ndevice to re-fetch the controller certs, for instance by having it\nbe a hash of all of the controller certificates." + }, + "maintenanceMode": { + "type": "boolean", + "description": "deprecated 23;\nIf maintence_mode is set the device will operate in a limited mode e.g.,\nnot start applications etc as to enable inspection of its state and\nrecover from bad state." + }, + "controllerEpoch": { + "type": "string", + "format": "int64", + "title": "controller_epoch indicates current epoch of config\nif we set new epoch, EVE sends all info messages to controller\nit captures when a new controller takes over and needs all the info be resent" + }, + "baseos": { + "$ref": "#/definitions/configBaseOS", + "title": "Baseos Config Block" + }, + "globalProfile": { + "type": "string", + "description": "global_profile, if set, controls set of applications which will run.\nThe Activate=true app instances which have this profile in their profile_list\nwill run. If the global_profile is not set, then the profile_list is not\nused to gate the application instances." + }, + "localProfileServer": { + "type": "string", + "title": "local_profile_server, if set, indicates a hostname/IPv4/IPv6 address and\noptional port number at which EVE will request for a local profile.\nIf such a local profile is retrieved, it will override the global_profile.\nThe syntax follows the usual URL server name syntax thus the following\nare example valid strings:\n [fe80::1]:1234\n 10.1.1.1:1234\n hostname:1234\n [fe80::1]\n 10.1.1.1\n hostname\nIf the port number is not specified, it will default to 8888" + }, + "profileServerToken": { + "type": "string", + "description": "Together with a local_profile_server one can specify a\nprofile_server_token. EVE must verify that the response from the\nlocal_profile_server contains this token." + }, + "vlans": { + "type": "array", + "items": { + "$ref": "#/definitions/configVlanAdapter" + }, + "description": "A list of VLAN sub-interfaces configured for EVE management traffic and\nfor local network instances." + }, + "bonds": { + "type": "array", + "items": { + "$ref": "#/definitions/eveconfigBondAdapter" + }, + "description": "A list of bond interfaces (LAGs) aggregating physical network adapters." + }, + "edgeview": { + "$ref": "#/definitions/configEdgeViewConfig", + "title": "edge-view configuration" + }, + "disks": { + "$ref": "#/definitions/configDisksConfig", + "title": "disks configuration" + }, + "shutdown": { + "$ref": "#/definitions/configDeviceOpsCmd", + "description": "Graceful shutdown of all app instances on the edge node.\nAny local profile server is shut down after all the other app instances\nhave halted.\nNote that this does not power off the edge node since there is no remote\npower on capability; power off can be done locally using the Local Profile\nServer API." + }, + "deviceName": { + "type": "string" + }, + "projectName": { + "type": "string" + }, + "projectId": { + "type": "string" + }, + "enterpriseName": { + "type": "string" + }, + "enterpriseId": { + "type": "string" + }, + "configTimestamp": { + "type": "string", + "format": "date-time", + "description": "Timestamp updated by controller whenever device config is modified.\nUsed by EVE to properly order configurations that originate at the same controller\nbut get submitted to device through different ways:\n /config API vs. initial config for bootstrapping vs. USB-based config override etc.\nThis ensures that device will not accidentally revert back to an older configuration.\nDoes not apply to legacy override.json and usb.json mechanisms." + }, + "locConfig": { + "$ref": "#/definitions/configLOCConfig", + "title": "Configuration of the Local Operator Console (LOC)" + }, + "patchEnvelopes": { + "type": "array", + "items": { + "$ref": "#/definitions/configEvePatchEnvelope" + } + }, + "cluster": { + "$ref": "#/definitions/eveconfigEdgeNodeCluster", + "title": "cluster configuration" + }, + "pnacs": { + "type": "array", + "items": { + "$ref": "#/definitions/configPNAC" + }, + "description": "Port access control configuration per PhysicalIO port." + }, + "scepProfiles": { + "type": "array", + "items": { + "$ref": "#/definitions/eveconfigSCEPProfile" + }, + "description": "SCEP (Simple Certificate Enrollment Protocol) profiles.\nCurrently used only in conjunction with 802.1X to enroll certificates\nwhich are then used for port-based authentication.\nSupport for additional certificate enrollment protocols may be added\nin the future, each with its own configuration type and profile list." + } + }, + "description": "This is the response to a GET /api/v1/edgeDevice/config\nThe EdgeDevConfig message carries all of the device's configuration from\nthe controller to the device.\nThe device will request these messages either periodically or as a result\nof some TBD notification.\nThe message is assumed to be protected by a TLS session bound to the\ndevice certificate." + }, + "configEdgeViewConfig": { + "type": "object", + "properties": { + "token": { + "type": "string", + "title": "JWT token for signed info, it contains the dispatcher\nendpoint IP:Port, device UUID, nonce and expiration time" + }, + "dispCertPem": { + "type": "array", + "items": { + "type": "string", + "format": "byte" + }, + "title": "dispatcher certificate(s) if it's not well-known CA signed" + }, + "devPolicy": { + "$ref": "#/definitions/configDevDebugAccessPolicy", + "title": "policy for device access through edge-view" + }, + "appPolicy": { + "$ref": "#/definitions/configAppDebugAccessPolicy", + "title": "policy access for apps through edge-view" + }, + "extPolicy": { + "$ref": "#/definitions/configExternalEndPointPolicy", + "title": "policy access for external endpoint through edge-view" + }, + "generationId": { + "type": "integer", + "format": "int64", + "title": "Generation ID for re-start edgeview without parameter changes" + } + } + }, + "configEncryptedExternalOpaqueBinaryBlob": { + "type": "object", + "properties": { + "cipherData": { + "$ref": "#/definitions/commonCipherBlock", + "title": "Encrypted serialized copy of ExternalOpaqueBinaryBlob" + } + } + }, + "configEncryptedInlineOpaqueBase64Data": { + "type": "object", + "properties": { + "cipherData": { + "$ref": "#/definitions/commonCipherBlock", + "title": "Encrypted serialized copy of InlineOpaqueBase64Data" + } + } + }, + "configEthVF": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "format": "int64" + }, + "mac": { + "type": "string" + }, + "vlanId": { + "type": "integer", + "format": "int64" + } + }, + "title": "Information regarding Virtual Function (VF) customisation" + }, + "configEveBinaryArtifact": { + "type": "object", + "properties": { + "format": { + "$ref": "#/definitions/configEVE_OPAQUE_OBJECT_CATEGORY", + "title": "base64 or binary blob only - secret type is invalid" + }, + "inline": { + "$ref": "#/definitions/eveconfigInlineOpaqueBase64Data" + }, + "volumeRef": { + "$ref": "#/definitions/eveconfigExternalOpaqueBinaryBlob" + }, + "encryptedInline": { + "$ref": "#/definitions/configEncryptedInlineOpaqueBase64Data", + "description": "There is an intended skip in field IDs here\nto handle the existing artifactMetaData\nand metadata_cipher_data fields." + }, + "encryptedVolumeref": { + "$ref": "#/definitions/configEncryptedExternalOpaqueBinaryBlob" + }, + "artifactMetaData": { + "type": "string", + "title": "If metadata_cipher_data is set then artifactMetaData can be ignored" + }, + "metadataCipherData": { + "$ref": "#/definitions/commonCipherBlock", + "description": "Optional encryption for EveBinaryArtifact.artifactMetaData\nCipherBlock.cipherData should contain the encrypted serialized\ncopy of an EncryptionBlock structure with\nEncryptionBlock.user = ENCRYPTION_BLOCK_USER_BINARY_ARTIFACT_METADATA\nand EncryptionBlock.encrypted_data set to the EveBinaryArtifact.artifactMetaData text." + } + } + }, + "configEvePatchEnvelope": { + "type": "object", + "properties": { + "displayName": { + "type": "string", + "title": "Unique name provided by user" + }, + "uuid": { + "type": "string", + "title": "Unique" + }, + "version": { + "type": "string", + "title": "arbitrary version from user" + }, + "action": { + "$ref": "#/definitions/configEVE_PATCH_ENVELOPE_ACTION", + "title": "way this object should be treated" + }, + "artifacts": { + "type": "array", + "items": { + "$ref": "#/definitions/configEveBinaryArtifact" + } + }, + "appInstIdsAllowed": { + "type": "array", + "items": { + "type": "string" + }, + "title": "List of application instance ids that should\nbe allowed to access this patch envelope" + }, + "createTime": { + "type": "string", + "format": "date-time", + "title": "Time object created in UTC format" + } + } + }, + "configExternalEndPointPolicy": { + "type": "object", + "properties": { + "allowExt": { + "type": "boolean", + "title": "external of device side of edge-view access is allowed or not" + } + }, + "title": "External Endpoint applicable to edge-view\nTo mean the entity external to the device, e.g. a local-profile server on the LAN outside of mgmt\nor app-shared ports. since it's not part of EVE, and not part of EVE applications. In the EdgeView code,\nif tcp session setup is to an address we don't have, it identifies the request as 'external'" + }, + "configFormat": { + "type": "string", + "enum": [ + "FmtUnknown", + "RAW", + "QCOW", + "QCOW2", + "VHD", + "VMDK", + "OVA", + "VHDX", + "CONTAINER", + "ISO", + "PVC" + ], + "default": "FmtUnknown" + }, + "configHAScheme": { + "type": "string", + "enum": [ + "HA_SCHEME_UNSPECIFIED", + "HA_SCHEME_K3S_EMBEDDED" + ], + "default": "HA_SCHEME_UNSPECIFIED", + "title": "- HA_SCHEME_K3S_EMBEDDED: k3s embedded ETCD/raft HA scheme with 3, 5, etc control plane nodes" + }, + "configInstanceOpsCmd": { + "type": "object", + "properties": { + "counter": { + "type": "integer", + "format": "int64" + }, + "opsTime": { + "type": "string" + } + } + }, + "configLOCConfig": { + "type": "object", + "properties": { + "locUrl": { + "type": "string", + "title": "If set indicates URL of the Local Operator Console (LOC)" + }, + "datastoreCollectInfoId": { + "type": "array", + "items": { + "type": "string" + }, + "description": "several datastores can be specified, but at the current moment only one will be supported\nthis is done to be extensible to allow to specify the datastore or have alternatives in\ncase of failure", + "title": "UUID of the datastore to upload the collect-info tarball to - only DsHttp and DsHttps is currently possible\nthe directory is specified by dpath in DatastoreConfig and the filename is the standard collect-info.sh\nfilename with the device uuid concatenated,\nf.e.: eve-info-v34-2025-05-13-08-53-52-5d0767ee-0547-4569-b530-387e526f8cb9.tar.gz" + } + } + }, + "configLoadBalancerInterface": { + "type": "object", + "properties": { + "interfaceName": { + "type": "string" + }, + "addressCidrs": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "configLoadBalancerService": { + "type": "object", + "properties": { + "interfaces": { + "type": "array", + "items": { + "$ref": "#/definitions/configLoadBalancerInterface" + } + } + } + }, + "configMetaDataType": { + "type": "string", + "enum": [ + "MetaDataDrive", + "MetaDataNone", + "MetaDataOpenStack", + "MetaDataDriveMultipart" + ], + "default": "MetaDataDrive", + "title": "Type of cloud-init data to provide to application" + }, + "configNetworkAdapter": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "networkId": { + "type": "string" + }, + "addr": { + "type": "string" + }, + "hostname": { + "type": "string" + }, + "cryptoEid": { + "type": "string", + "title": "more configuration for getting addr/EID" + }, + "lispsignature": { + "type": "string" + }, + "pemcert": { + "type": "string", + "format": "byte" + }, + "pemprivatekey": { + "type": "string", + "format": "byte" + }, + "macAddress": { + "type": "string", + "title": "Used in case of P2V, where we want to specify a macAddress\nto vif, that is simulated towards app" + }, + "acls": { + "type": "array", + "items": { + "$ref": "#/definitions/configACE" + }, + "title": "firewall" + }, + "accessVlanId": { + "type": "integer", + "format": "int64", + "title": "access port vlan id\napp interface with access vlan id of zero will be treated as trunk port\nvalid vlan id range: 2 - 4093\nvlan id 1 is implicitly used by linux bridges" + }, + "allowToDiscover": { + "type": "boolean", + "title": "allow AppInstance to discover other AppInstances\nattached to this network instance. Default is false" + }, + "interfaceOrder": { + "type": "integer", + "format": "int64", + "description": "Define the network interface order relative to other virtual network adapters\nand directly assigned network devices.\nThe numbering is across both the \"Adapter\" (direct assignments) and the \"NetworkAdapter\"\n(virtual interfaces) lists for a given \"AppInstanceConfig\", thus every entry in these\nlists, excluding non-networking adapters, must have a unique order number\n(when the \"enforce_network_interface_order\" is enabled, see \"VmConfig\").\nInterface with a lower order value should appear inside the application before\ninterface with a higher order value.\nThe implementation of this ordering may depend on the hypervisor. For example,\nthe hypervisor might virtualize the PCI bus and assign lower PCI addresses to\ninterfaces with lower order values. But the actual outcome of interface ordering\ndepends on the application and EVE therefore cannot guarantee desired order.\nSince this field was introduced in later versions, older EVE versions do not support\nuser-defined interface ordering. For backward compatibility, the user-defined\norder is applied only if \"enforce_network_interface_order\" is enabled for the given\napplication (see \"VmConfig\", file \"vm.proto\")." + } + } + }, + "configNetworkConfig": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/commonNetworkType" + }, + "ip": { + "$ref": "#/definitions/commonipspec", + "title": "network ip specification" + }, + "dns": { + "type": "array", + "items": { + "$ref": "#/definitions/commonZnetStaticDNSEntry" + } + }, + "entProxy": { + "$ref": "#/definitions/commonProxyConfig", + "title": "enterprise proxy" + }, + "wireless": { + "$ref": "#/definitions/configWirelessConfig", + "title": "wireless specification" + }, + "mtu": { + "type": "integer", + "format": "int64", + "description": "Maximum transmission unit (MTU) to set on the associated network adapter(s).\nThis is the largest IP packet that the underlying link can and is allowed to carry.\nThis does not include the L2 header size (e.g. Ethernet header or a VLAN tag size).\nThe value is a 16-byte unsigned integer, representing the MTU size in bytes.\nThe minimum accepted value for the MTU is 1280 (RFC 8200, \"IPv6 minimum link MTU\").\nIf not defined (zero value), EVE will set the default MTU size, which depends\non the network adapter type. Ethernet and WiFi adapters default to 1500 bytes,\nwhile cellular modems typically receive their MTU value from the network provider\n(which EVE will use unless user overrides the MTU value)." + } + } + }, + "configNetworkInstanceConfig": { + "type": "object", + "properties": { + "uuidandversion": { + "$ref": "#/definitions/configUUIDandVersion" + }, + "displayname": { + "type": "string" + }, + "instType": { + "$ref": "#/definitions/configZNetworkInstType", + "title": "instType - Type of network instance ( local, bridge etc )" + }, + "activate": { + "type": "boolean", + "description": "activate\n - True by default. If set to false ( deactivate), the network instance\n configuration is downloaded to the device, but the network instance\n itself is not created on the device." + }, + "port": { + "$ref": "#/definitions/configAdapter", + "description": "Port(s) providing external connectivity for the network instance.\nEither a single port referenced by its name (SystemAdapter.Name, aka logical label)\nor an adapter shared-label matching zero or more network ports (ports containing this\nlabel in SystemAdapter.shared_labels).\nNote that apart from the user-defined adapter labels, EVE automatically assigns shared\nlabel \"all\" to every port, \"uplink\" to every management port and \"freeuplink\" to every\nmanagement port with zero cost.\nBoth physical (e.g. eth0) and logical (e.g. vlan0) ports are allowed.\nHowever, EVE may filter out some of the matched ports which are not compatible\nwith the network instance type (e.g. wireless adapters cannot be used with switch NI\nand ports without IP addresses are not usable for local NIs).\nNetwork instance with no assigned port (empty port reference or label not matching\nany port) is air-gapped, i.e. completely isolated from external networks.\nWith multiple ports assigned, the behaviour depends on the network instance type.\nSwitch network instance will run Rapid Spanning Tree Protocol (RSTP) to avoid bridge\nloops and the broadcast storm that results from them.\nLocal network instance will apply IP routes configured for the matched ports (either\nstatically or via DHCP) to select the next hop and the output port for a given flow.\nTraffic not matching any connected, statically-configured, or DHCP-received route,\nwill be routed according to the default route. Unless user configures a static default\nroute with customized output port selection, EVE will pick one of the ports for\nthe default route by periodic connectivity probing, performed for every selected port\n(skipped if NI has 1 or 0 ports).\nFirst, NI ports are filtered down to those with a known gateway IP. Then probing\nis used to determine connectivity status. For NIs with EVE-provided \"uplink\" or\n\"freeuplink\" labels, i.e. matching only mgmt ports, EVE checks port gateway IP\nreachability using ICMP ping and controller reachability with TCP connect to\n:443. For NIs with user-defined shared-labels, possibly also matching\napp-shared ports, only ICMP ping of the port gateway is performed. EVE then picks port\nwith a working connectivity, preferring the currently used one.\nAdd a static default route (see 'static_routes\" below) to customize the output port\nselection algorithm." + }, + "stp": { + "$ref": "#/definitions/configSpanningTreeProtocol", + "description": "Configuration for the Spanning Tree Protocol (STP), which is run for switch network\ninstance when the port label matches multiple network ports." + }, + "cfg": { + "$ref": "#/definitions/configNetworkInstanceOpaqueConfig", + "title": "cfg - Used to pass some feature-specific configuration to the\n network instance. For Ex: Lisp, StriongSwan etc" + }, + "ipType": { + "$ref": "#/definitions/configAddressType", + "title": "type of ipSpec" + }, + "ip": { + "$ref": "#/definitions/commonipspec", + "description": "network ip specification\nNote that ip.gateway must be a valid IP address and can not be all-zeroes.\nTo suppress automatic propagation of the default route into apps, configure network\ninstance as air-gapped (without port) or mark all NI ports as app-shared\n(not for management) and ensure that they will not get a default route\n(e.g. set ip.gateway of the attached NetworkConfig(s) to all-zeroes IP)." + }, + "dns": { + "type": "array", + "items": { + "$ref": "#/definitions/commonZnetStaticDNSEntry" + }, + "title": "static DNS entry, if we are running DNS/DHCP service" + }, + "propagateConnectedRoutes": { + "type": "boolean", + "description": "Enable to use DHCP to automatically propagate routes for port subnets\ninto applications connected to them indirectly through local network instances.\nThis option is only valid for local network instances. For other types\nof network instances, it will be ignored." + }, + "staticRoutes": { + "type": "array", + "items": { + "$ref": "#/definitions/eveconfigIPRoute" + }, + "description": "List of IP routes statically added to the network instance routing table.\nStatically routed subnets are also propagated to connected applications\nusing DHCP, with gateway set to the network instance bridge IP if it is\noutside of the network instance subnet.\n\nIP route gateway may point to an external endpoint (provided that network\ninstance is not air-gapped), or to an IP address of one of the applications\nconnected to the network instance. For an external gateway, user may specify\noutput port label instead of the IP address. EVE will automatically determine\nthe gateway IP address (based on the port config statically configured or received\nvia DHCP).\n\nStatic routes are handled independently from connected routes. While connected\nroutes are propagated to applications only if enabled by propagate_connected_routes,\nstatic routes are always propagated. Both connected and statically configured\nroutes can be propagated at the same time, there are no restrictions for using both.\n\nNote that the default route (with the bridge IP as the gateway) is automatically\npropagated to connected applications, unless network instance is air-gapped\n(without port) or all NI ports are app-shared (not management) and neither\nof them has a default route. In both cases, it is possible to enforce default\nroute propagation by configuring a static default route for the network instance.\n\nFor more info on static and connected routes please refer to:\nhttps://wiki.lfedge.org/display/EVE/Connected+and+Static+IP+Route\n\nThis option is only valid for local network instances. For other types\nof network instances, it will be ignored." + }, + "mtu": { + "type": "integer", + "format": "int64", + "description": "Maximum transmission unit (MTU) to set for the network instance and all application\ninterfaces connected to it.\nThis is the largest IP packet that the network instance is allowed to carry.\nThis does not include the L2 header size (e.g. Ethernet header or a VLAN tag size).\nThe value is a 16-byte unsigned integer, representing the MTU size in bytes.\nThe minimum accepted value for the MTU is 1280 (RFC 8200, \"IPv6 minimum link MTU\").\nIf not defined (zero value), EVE will set the MTU to the default value of 1500 bytes.\nOn the host side, MTU is set to interfaces by EVE. On the guest (app) side,\nthe responsibility to set the MTU lies either with EVE or with the user/app, depending on\nthe network instance, app type and the type of interfaces used (local or switch,\nVM or container, virtio or emulated).\nFor container applications running inside an EVE-created shim-VM, EVE initializes\nthe MTU of interfaces during shim-VM boot. Furthermore, interfaces connected\nto local network instances will have their MTUs automatically updated if there is\na change in MTU configuration. To update the MTU of interfaces connected to switch\nnetwork instances, the user may run an external DHCP server in the network and publish\nMTU changes via DHCP option 26 (the DHCP client run by EVE inside shim-VM will pick it up\nand apply it).\nIn the case of VM applications, it is mostly the responsibility of the app/user to set\nand keep the MTUs up-to-date.\nIf device provides HW-assisted virtualization capabilities, EVE will connect VM with\nnetwork instances using para-virtualized virtio interfaces, which allow to propagate MTU\nvalue from the host to the guest. If the virtio driver used by the app supports the MTU\npropagation (VIRTIO_NET_F_MTU feature flag is set), the initial MTU values will be set\nusing virtio (regardless of the network instance type).\nTo support MTU update for interfaces connected to local network instances, the app can\nrun a DHCP client and receive the latest MTU via DHCP option 26. For switch network\ninstances, the user can run his own external DHCP server in the network with the MTU\noption configured.\nPlease note that application traffic leaving or entering the device via a network\nadapter associated with the network instance is additionally limited by MTU values\nof NI ports, configured within their NetworkConfig objects (refer to netconfig.proto).\nIf the configured network instance MTU is higher than MTU of any of the NI ports,\nEVE will flag the network instance with an error and use the lowest MTU among\nall the NI ports for the network instance instead. This is to prevent apps from sending\npackets exceeding the path MTU. Packets entering NI via port with a higher MTU and with\nsize exceeding the NI MTU will get fragmented inside EVE (if allowed by IP header).\nBy default (if MTU is not configured by the user, i.e. 'mtu' is zero), EVE uses 1500\nas MTU for air-gapped network instances and the lowest MTU among NI ports for NIs with\nexternal connectivity." + }, + "disableFlowlog": { + "type": "boolean", + "description": "Disable flow logging for this network instance.\nWhen flow logging is enabled, EVE periodically records all application TCP and UDP\nflows. A flow record includes the application UUID, VIF name, open/close timestamps,\nsource/destination IP/port/protocol 5-tuple, and packet and byte counters.\nAdditionally, EVE records every DNS request made by an application, including\nthe request time, the hostname being resolved, and the returned IP address(es).\nThe flow logging API can be found in proto/config/flowlog/flowlog.proto\nIf flow logging is not needed, it is recommended to disable this feature as it\ncan potentially generate a large amount of data, which is then uploaded to the controller.\nDepending on the implementation, it may also introduce additional packet processing\noverhead." + }, + "vlanAccessPorts": { + "type": "array", + "items": { + "$ref": "#/definitions/configVlanAccessPort" + }, + "description": "VLAN access ports configured for a switch network instance.\nFor other types of network instances, this option is ignored.\nThis setting applies to physical network ports attached to the network instance.\nVLAN configuration for application interfaces is applied separately via AppInstanceConfig\n(see NetworkAdapter.access_vlan_id)." + }, + "forwardLldp": { + "type": "boolean", + "description": "Enables forwarding of LLDP (Link Layer Discovery Protocol) frames across this\nnetwork instance.\nLLDP is used by devices to advertise identity and capabilities to directly\nconnected neighbors, and is often required for topology discovery and network\nmanagement tools.\nWhen enabled, LLDP frames (EtherType 0x88cc) are not dropped or suppressed\nby the forwarding plane." + } + } + }, + "configNetworkInstanceLispConfig": { + "type": "object", + "properties": { + "LispMSs": { + "type": "array", + "items": { + "$ref": "#/definitions/configZcServicePoint" + } + }, + "LispInstanceId": { + "type": "integer", + "format": "int64" + }, + "allocate": { + "type": "boolean" + }, + "exportprivate": { + "type": "boolean" + }, + "allocationprefix": { + "type": "string", + "format": "byte" + }, + "allocationprefixlen": { + "type": "integer", + "format": "int64" + }, + "experimental": { + "type": "boolean", + "title": "various configuration to dataPlane, lispers.net vs Zededa" + } + }, + "title": "Lisp NetworkInstance config" + }, + "configNetworkInstanceOpaqueConfig": { + "type": "object", + "properties": { + "oconfig": { + "type": "string" + }, + "lispConfig": { + "$ref": "#/definitions/configNetworkInstanceLispConfig" + }, + "type": { + "$ref": "#/definitions/configZNetworkOpaqueConfigType" + } + }, + "description": "Network Instance Opaque config. In future we might add more fields here\nbut idea is here. This is service specific configuration." + }, + "configPNAC": { + "type": "object", + "properties": { + "logicallabel": { + "type": "string", + "title": "Logical name of the associated physical Ethernet interface (PhysicalIO.logicallabel)" + }, + "eapIdentity": { + "type": "string", + "description": "EAP identity (optional).\nEven when certificate-based authentication is used (e.g., EAP-TLS),\nan explicit EAP identity may be configured and does not need to match\nthe certificate\u2019s DN or SAN attributes.\nIf no EAP identity is configured and a certificate-based EAP method\nis used, EVE will derive the identity from the enrolled certificate,\npreferring the subject common name (CN), or the SAN URI if CN is absent." + }, + "eapMethod": { + "$ref": "#/definitions/eveconfigEAPMethod", + "description": "EAP method to use for authentication.\nCurrently, only EAP-TLS is supported; additional methods may be added in the future." + }, + "certEnrollmentProfileName": { + "type": "string", + "description": "Certificate enrollment profile to use for authentication.\nRelevant only when the selected EAP method requires a certificate (e.g., EAP-TLS).\n\nThis field references the profile_name of a certificate enrollment profile\ndefined in EdgeDevConfig (currently SCEP profiles only, see scep_profiles).\nWhile SCEP is the only supported enrollment protocol today, this field is\nintended to reference any supported enrollment profile in the future." + } + }, + "description": "Configuration for Port-based Network Access Control (PNAC)." + }, + "configPatchEnvelopeRef": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "one of them should be non-empty\nnon-empty name overrides the id" + }, + "id": { + "type": "string" + } + } + }, + "configPhyIOUsagePolicy": { + "type": "object", + "properties": { + "freeUplink": { + "type": "boolean" + } + }, + "title": "Given additional details for EVE software to how to treat this\ninterface. Example policies could be limit use of LTE interface\nor only use Eth1 only if Eth0 is not available etc\nNote that this is the static information from the model.\nCurrent configuration is in systemAdapter" + }, + "configPhysicalIO": { + "type": "object", + "properties": { + "ptype": { + "$ref": "#/definitions/commonPhyIoType" + }, + "phylabel": { + "type": "string", + "title": "physical label typically printed on box.\nExample Eth0, Eth1, Wifi0, ComA, ComB" + }, + "phyaddrs": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "The hardware bus address. The key to this map can be of the following\n(case-insensitive) values:\n\"pcilong\": the address is a PCI id of the form 0000:02:00.0\n\"ifname\": the address is a string for a network interface like \"eth1\"\n\"serial\": the address is a Linux serial port alias such as \"/dev/ttyS2\"\n\"irq\": the address is a number such as \"5\". This can be a comma\n separated list of integers or even a range of integers. Hence using\n a string to address this.\n\"ioports\": the address is a string such as \"2f8-2ff\"\n\"usbaddr\": the address is a USB of the form of \"1:2.3\"\nIf the type is PhyIoNet*, then there needs to be an \"ifname\" physaddr." + }, + "logicallabel": { + "type": "string", + "title": "logicallabel - provides the ability to model designer to refer\n the physicalIO port to using more friendly name\nFor example Eth0->Mgmt0\n or USBA->ConfigDiskA etc" + }, + "assigngrp": { + "type": "string", + "description": "This is the name used in AppInstanceConfig.adapters to assign an\nadapter to an application.\n\nIf assigngrp is not set, the Adapter cannot be assigned to any\napplication. One example is, when the adapter is on the same Pci\nbus as another device required by Dom0.\n\nEven if there is only one device on the its PCIBus, the assignGrp Must\nbe set.", + "title": "assigngrp\nAssignment Group, is unique label that is applied across PhysicalIOs\nEntireGroup can be assigned to application or nothing at all" + }, + "usage": { + "$ref": "#/definitions/commonPhyIoMemberUsage", + "title": "usage - indicates the role of adapter ( mgmt / blocked / app-direct\n etc. )" + }, + "usagePolicy": { + "$ref": "#/definitions/configPhyIOUsagePolicy", + "description": "usagePolicy - Policy Object used to further refine the usage.\nFor example, specify if this should be only used as fallback?\n Or used as the primary uplink? Allow App traffic? restrict\n app traffic?? etc.." + }, + "cbattr": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "title": "physical and logical attributes\n For example in WWAN to which firmware version to load etc" + }, + "vflist": { + "$ref": "#/definitions/configVfList", + "title": "list of Virtual Functions (VF) for given Physical Function (PF)\nonly applies for PHY_IO_TYPE_PHY_IO_NET_ETH_PF" + }, + "parentassigngrp": { + "type": "string", + "description": "Parent Assignment Group is there to reference the parent assignment\ngroup in order to make the device dependent on a different device.\nCurrently the concrete reason to do this is to make a usb device dependent\non the PCI address the USB controller is using to prevent passthrough of\nthe USB controller in one application while trying to passthrough\na USB device on this controller to another application.\n\nWe only allow these two cases:\n- children and their parent devices are assigned to the same application\n instance\n- parent device stays in host and one or more children (in separate\n assignment groups) are assigned to one or more application instances", + "title": "parentassigngrp" + } + }, + "title": "PhysicalIO:\n Absolute low level description of physical buses and ports that are\n available on given platform.\n Collection of these IOs, constitute what we would call as hardware\n model. Each physical IO is manageable and visible to EVE software, and\n it can be further configured to either provide IP connectivity or\n directly be given to workloads" + }, + "configPortProbe": { + "type": "object", + "properties": { + "enableGwPing": { + "type": "boolean", + "description": "Use ICMP ping towards the port's gateway IP to determine connectivity status.\nThis probing is performed much more frequently than the custom_probe and provides\nfaster fail-over. On the other hand, it generates more traffic through the probed\nports. Use gw_ping_max_cost (see below) to limit which ports it is enabled for\nbased on the port cost.\nAvoid using this probe method if the gateway router is configured to drop/ignore\nICMP pings and therefore this probe method would return false negatives." + }, + "gwPingMaxCost": { + "type": "integer", + "format": "int64", + "description": "Ports exceeding this cost will have the gateway probing disabled to reduce\ntraffic generated by probing (only less-frequent custom_probe will be performed)." + }, + "customProbe": { + "$ref": "#/definitions/commonConnectivityProbe", + "description": "User-defined method to use to determine the port connectivity status.\nRun additionally to gateway pings (if enabled)." + } + }, + "description": "Configuration for port connectivity probe." + }, + "configSignatureInfo": { + "type": "object", + "properties": { + "intercertsurl": { + "type": "string" + }, + "signercerturl": { + "type": "string" + }, + "signature": { + "type": "string", + "format": "byte" + } + }, + "description": "XXX this will be deprecated when all deployed instances of EVE\nno longer expect it. 5.6.X depend on it. 5.7.1 does not." + }, + "configSnapshotConfig": { + "type": "object", + "properties": { + "activeSnapshot": { + "type": "string", + "description": "active_snapshot is the id of the snapshot which is expected to be used by\nthe application.\nIt may be empty if no snapshot expected to be used." + }, + "rollbackCmd": { + "$ref": "#/definitions/configInstanceOpsCmd", + "description": "rollback_cmd is used to trigger a rollback to the snapshot with the\nactive_snapshot id.\nThe counter inside the InstanceOpsCmd is incremented when a snapshot is\nused for a rollback. It should not be decreased.\nThe counter's semantics is the same as the one used in the restart/purge\ncommands. It's necessary for the cases, when the state of the device is\nbehind the controller because it hasn't yet managed to fetch the latest\ndeclarative statement. Only increasing the counter will trigger the\nrollback." + }, + "maxSnapshots": { + "type": "integer", + "format": "int64", + "description": "max_snapshots is the maximum number of snapshots that can be stored for the\napplication instance.\nIf the number of snapshots exceeds the max_snapshots, the oldest snapshot\nwill be deleted. It's so even if the oldest snapshot is the active one.\nAs an example, let's consider the following scenario:\nThe value of max_snapshots is 1. Then a snapshot is created. VM continues\nworking. Then a rollback to the snapshot created earlier is requested, so\nthe first snapshot becomes active. EVE performs the rollback. Then the\ncontroller requests a new snapshot be created. EVE is configured to store\nonly 1 snapshot, hence the first one should be deleted." + }, + "snapshots": { + "type": "array", + "items": { + "$ref": "#/definitions/configSnapshotDesc" + }, + "description": "snapshots is the list of snapshots of the application instance.\nIt is used to synchronize the list of snapshots between the controller and\nthe device. This can be used to provide an id of a new snapshot or to\ndelete an existing snapshot.\nTo provide a new snapshot id, the controller should send a message with\nthe new snapshot id in the snapshots list. The id is generated by\nController in this case. (It can be also generated by EVE, if the snapshot\ncreation is triggered locally. In this case the ID will be returned in the\nZInfoApp.snapshots[].id field, see the `info.proto` file).\nWorth noting that the snapshot creation is not triggered by the appearance\nof the snapshot id in the available_snapshots list. The snapshot creation\nwill be triggered by the behaviour defined in the snapshot type field.\nTo delete a snapshot, the controller should send a message that does not\ncontain the snapshot id in the available_snapshots list. The device will\ndelete the snapshot with the absent id." + } + }, + "title": "The snapshot information for an Application Instance" + }, + "configSnapshotDesc": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "id of the snapshot.\nThe format of the ID is a standard UUIDv4.\nShould be unique within the app instance. Generated by the Controller in\nthe case the snapshot creation is requested by the Controller, or by EVE\nin the case the snapshot creation is triggered locally.\nCorresponds to the ZInfoApp.snapshots[].id field (see the `info.proto`\nfile)." + }, + "type": { + "$ref": "#/definitions/eveconfigSnapshotType", + "description": "type of the snapshot creation trigger." + } + }, + "title": "A descriptor of the snapshot instance" + }, + "configSpanningTreeProtocol": { + "type": "object", + "properties": { + "portsWithBpduGuard": { + "type": "string", + "description": "Ports matched by this adapter label (logical or shared) will have the BPDU guard enabled.\nIt makes sense to enable the guard on ports which are expected to be leafs\nand therefore not participate in STP, or where the downstream bridges are not fully\ntrusted." + } + }, + "description": "Configuration for the Spanning Tree Protocol (STP), which is run for switch network\ninstance when the port label matches multiple network ports." + }, + "configSystemAdapter": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "name - Name of the Network Interface. This is the Port Name\n used in Info / Metrics / flowlog etc. Name cannot be changed.\nThis will be the Network Port name." + }, + "freeUplink": { + "type": "boolean", + "title": "DEPRECATED by cost below" + }, + "uplink": { + "type": "boolean", + "title": "uplink - DEPRECATED by PhysicalIO.Usage / PhysicalIO.UsagePolicy\nthis is part of the uplink group\ndeprecate: have a separate device policy object in the API" + }, + "networkUUID": { + "type": "string", + "title": "networkUUID - attach this network config for this adapter\nif not set, depending on Usage of Adapter, would be treated as\nan L2 port" + }, + "addr": { + "type": "string", + "description": "addr - if its static network we need ip address\nIf this is specified, networkUUID must also be specified. addr\nis expected to be in sync with the network object (same subnet etc )." + }, + "alias": { + "type": "string", + "description": "alias - Device just reflects it back in status / Metrics back to\ncloud." + }, + "lowerLayerName": { + "type": "string", + "description": "lowerLayerName - For example, if lower layer is PhysicalAdapter\n( physical interface), this should point to logicallabel of the\nphysicalIO." + }, + "cost": { + "type": "integer", + "format": "int64", + "description": "Cost of sending traffic over the port.\nUsed to prioritize ports and give preference to lower-cost ports (e.g. eth over wwan).\n0 is the lowest cost (free); 255 the highest.\nCan be set for management and app-shared ports.\nCost is used for EVE management traffic and for local network instances with multiple\nports. For any request towards the controller or for an image download, EVE tries ports\nin the order of increasing cost, starting with the free ports. Once it finds the lowest\ncost port with a working connectivity, it may spread the load if there are multiple\nconnected ports of the same cost.\nFor local networking instances with multiple ports, the cost may be used to decide\nwhich port to use for a particular destination network (incl. port selection for\nthe default route). Unlike the management traffic, load-balancing is currently\nnot supported for local network instances and the app traffic that is routed through\nthem." + }, + "sharedLabels": { + "type": "array", + "items": { + "type": "string" + }, + "title": "A set of user-defined \"shared\" labels attached to the adapter.\nThere are no restrictions on the format of an adapter label, it can be any\nnon-empty string.\nUnlike the logical label (aka port logical name), shared label is not a unique\nport identifier. Instead, the same shared label can be assigned to multiple ports.\nNote that EVE automatically assigns \"all\" label to every port, \"uplink\" label to every\nmanagement port and \"freeuplink\" label to every management port with zero cost.\n(\"automatically assigns\" is meant here in imaginary sense, these labels are not supposed\nto be explicitly added by the controller to SystemAdapters inside EdgeDevConfig).\nShared label can be used to:\n - designate a group of network adapters to be used by a network instances for external\n connectivity\n - limit port-forwarding firewall rule to only a subset of network adapters\n - create a multi-path static IP route (with multiple ports providing access to the routed\n destination network)" + }, + "allowLocalModifications": { + "type": "boolean", + "description": "Allow the local operator to make (limited) configuration changes to this network adapter." + } + }, + "description": "systemAdapters are higher-level IP-ready network endpoints.\nsystemAdapters give all the required bits to turn the physical IOs\nand intermediate L2 objects into useful IP endpoints.\nThese endpoints can be further used to connect to controller or\ncan be shared between workload/services running on the node." + }, + "configTarget": { + "type": "string", + "enum": [ + "TgtUnknown", + "Disk", + "Kernel", + "Initrd", + "RamDisk", + "AppCustom" + ], + "default": "TgtUnknown" + }, + "configUUIDandVersion": { + "type": "object", + "properties": { + "uuid": { + "type": "string" + }, + "version": { + "type": "string" + } + } + }, + "configVfList": { + "type": "object", + "properties": { + "vfCount": { + "type": "integer", + "format": "int64", + "title": "how many Virtual Functions (VF) will be created" + }, + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/configEthVF" + }, + "title": "optional configuration for given Virtual Function (VF)" + } + } + }, + "configVlanAccessPort": { + "type": "object", + "properties": { + "vlanId": { + "type": "integer", + "format": "int64", + "title": "VLAN ID from the range <1,4094>" + }, + "accessPort": { + "type": "string", + "description": "Physical network adapter used as the access port for the given VLAN.\nEither a single NI port referenced by its name (SystemAdapter.Name, aka logical label)\nor an adapter shared-label matching zero or more NI ports." + } + }, + "description": "VLAN Access Port config applied to physical port(s) attached to a Switch Network Instance." + }, + "configVlanAdapter": { + "type": "object", + "properties": { + "logicallabel": { + "type": "string", + "description": "Logical name of this VLAN adapter." + }, + "interfaceName": { + "type": "string", + "description": "A physical name of the VLAN sub-interface.\nNote that the interface name is limited in Linux kernel to 15 characters.\nIf not defined, logicallabel will be used instead." + }, + "lowerLayerName": { + "type": "string", + "description": "Logical name of the lower layer adapter (bond or physicalIO)." + }, + "vlanId": { + "type": "integer", + "format": "int64", + "description": "VLAN ID. Valid values are from 1 to 4094." + } + }, + "description": "VlanAdapter represents a single VLAN sub-interface.\nThe parent, which is referenced by lower_layer_name,\nshould be either PhysicalIO or BondAdapter." + }, + "configVmBootMode": { + "type": "string", + "enum": [ + "VM_BOOT_MODE_UNSPECIFIED", + "VM_BOOT_MODE_LEGACY", + "VM_BOOT_MODE_UEFI" + ], + "default": "VM_BOOT_MODE_UNSPECIFIED", + "title": "Boot mechanisms supported by the BIOS of the Virtual Machine" + }, + "configVmConfig": { + "type": "object", + "properties": { + "kernel": { + "type": "string" + }, + "ramdisk": { + "type": "string" + }, + "memory": { + "type": "integer", + "format": "int64", + "title": "in kbytes; rounded up to Mbytes for xen" + }, + "maxmem": { + "type": "integer", + "format": "int64", + "title": "in kbytes; xen only, default equal to 'memory', so no ballooning" + }, + "vcpus": { + "type": "integer", + "format": "int64", + "description": "The amount of the VCPUs in the VM." + }, + "maxcpus": { + "type": "integer", + "format": "int64", + "description": "In the case of the Xen hypervisor - the maximal amount of the VCPUs\navailable to the VM. Can be greater than `vcpus` (the VCPUs online on the\nVM start). If the field is not set, it is initialized by EVE to the value\nin the `vcpus` field." + }, + "rootdev": { + "type": "string" + }, + "extraargs": { + "type": "string" + }, + "bootloader": { + "type": "string" + }, + "cpus": { + "type": "string", + "description": "Currently is not handled by EVE.\nCPU mask of the CPUs assigned to the VM. Represented in the form\n\"d[[,-]d]*\". E.g. \"0-2\" or \"0-2,5,6\". CPUs start with 0. For example, the\nmask \"0,3\" would mean that only physical CPUs 0 and 3 are available for\nthe VM." + }, + "devicetree": { + "type": "string" + }, + "dtdev": { + "type": "array", + "items": { + "type": "string" + } + }, + "irqs": { + "type": "array", + "items": { + "type": "integer", + "format": "int64" + } + }, + "iomem": { + "type": "array", + "items": { + "type": "string" + } + }, + "virtualizationMode": { + "$ref": "#/definitions/configVmMode" + }, + "enableVnc": { + "type": "boolean", + "title": "Enable VNC access to the edge application" + }, + "vncDisplay": { + "type": "integer", + "format": "int64" + }, + "vncPasswd": { + "type": "string" + }, + "disableLogs": { + "type": "boolean", + "title": "Change of the 'disable logs' field can be handled without VM reboot" + }, + "pinCpu": { + "type": "boolean", + "description": "Set if the VM should run in a mode with pinned CPUs.\nIn this case any VCPU thread created by QEMU runs on a dedicated physical\nCPU. All the other QEMU threads will be limited to run on the physical\nCPUs defined by CPU mask. The CPU mask is provided with the 'cpus' field,\ndefined above. If the CPU mask is not set, the physical CPUs to be used\nfor running QEMU threads are picked automatically by Pillar: it just takes\nthat amount of available physical CPUs that is defined with the 'vcpus'\nparameter defined above." + }, + "vmmMaxmem": { + "type": "integer", + "format": "int64", + "title": "Maximum amount of memory in kbytes allowed for VM monitor to occupy,\naka \"overhead\". E.g. for the qemu-kvm hypervisor the memory limit\nfor one VM instance (guest RAM + VM monitor) is set according to the\nfollowing equation: `memory` + `vmm_maxmem`" + }, + "enableVncShimVm": { + "type": "boolean", + "title": "Enable VNC access to the shim VM harboring the edge application (for containers only)" + }, + "bootMode": { + "$ref": "#/definitions/configVmBootMode", + "title": "Boot mode: Legacy or UEFI" + }, + "enforceNetworkInterfaceOrder": { + "type": "boolean", + "description": "Enables enforcement of user-defined ordering for network interfaces.\nThis applies to both virtual interfaces (specified in the \"AppInstanceConfig.interfaces\" list)\nand directly assigned network adapters (specified in the \"AppInstanceConfig.adapters\" list\nas items of type \"PhyIoNetEth\", \"PhyIoNetWLAN\", \"PhyIoNetWWAN\", and \"PhyIoNetEthVF\").\nNote: Older versions of EVE may not support enforcing the user-defined order\nof application network interfaces. The controller can check\n\"ZInfoDevice.api_capability\" to verify if the configured device supports the\nAPI capability \"API_CAPABILITY_ENFORCED_NET_INTERFACE_ORDER\".\nPlease beware that EVE's ability to influence the order of VM application interfaces\nis limited. Depending on the application's operating system, achieving the desired network\ninterface order might not be possible." + }, + "enableOemWinLicenseKey": { + "type": "boolean", + "title": "The app should receive the Windows license embedded in ACPI tables" + }, + "disableVtpm": { + "type": "boolean", + "description": "Disable vTPM for the VM, this defaults to false according to the\nproto3 specification." + }, + "bootOrder": { + "$ref": "#/definitions/commonBootOrder", + "description": "Boot order configuration for this VM.\nControls boot device priority, particularly for USB devices.\n\nPriority hierarchy (highest to lowest):\n 1. LPS API (/api/v1/app-boot-config) - if LPS has a cached config for the app\n 2. This field (boot_order) - if not BOOT_ORDER_UNSPECIFIED\n 3. Device property (app.boot.order) - device-wide default\n\nNote: LPS config is cached and persisted to disk. This allows boot order\nto be applied immediately after EVE reboot, before LPS VM is available.\nIf LPS returns 404, the cache is cleared and Controller/Device settings apply.\nSee PROFILE.md for detailed LPS response handling.\n\nThe setting is passed to OVMF via fw_cfg \"opt/eve.bootorder\" when the VM starts.\nChanges take effect on the next VM restart." + } + } + }, + "configVmMode": { + "type": "string", + "enum": [ + "PV", + "HVM", + "Filler", + "FML", + "NOHYPER", + "LEGACY" + ], + "default": "PV", + "description": "For now we need to tell the device which virtualization mode\nto use. Later we might use a single one for all VMs (on any particular\nISA). If we end up keeping this we should make the names be less\ntied to a particular hypervisor." + }, + "configVolume": { + "type": "object", + "properties": { + "uuid": { + "type": "string" + }, + "origin": { + "$ref": "#/definitions/configVolumeContentOrigin", + "description": "origin of the volume content." + }, + "protocols": { + "type": "array", + "items": { + "$ref": "#/definitions/configVolumeAccessProtocols" + }, + "title": "describes all the different ways how this Volume can\nbe offered to Tasks" + }, + "generationCount": { + "type": "string", + "format": "int64", + "title": "change in generationCount indicates that the mutated volume needs to be\npurged and built from scratch. This is a generalization of the purge\ncommand for an application instance" + }, + "maxsizebytes": { + "type": "string", + "format": "int64", + "description": "miscellaneous attributes of the Volume\nmaxSizeBytes Used for capping resource consumption in EVE.\nmaxSizeBytes indicates the maximum size of the volume." + }, + "readonly": { + "type": "boolean" + }, + "displayName": { + "type": "string" + }, + "clearText": { + "type": "boolean" + }, + "target": { + "$ref": "#/definitions/configTarget" + }, + "designatedNodeId": { + "type": "string", + "title": "To inform the edge-node if the device receiving this Volume is\nresponsible for volume creation, convert PVC, or not" + } + }, + "description": "The Volume describes a storage volume which should exist on the device.\nThis can currently either be blank or created from a ContentTree\nIf maxSizeBytes is zero it means unlimited by the controller. In that\ncase EVE needs to determine how much space it can assign and limit any\ndownloaded ContentTree and the created volume based on that calculated size." + }, + "configVolumeAccessProtocols": { + "type": "string", + "enum": [ + "VAP_NONE", + "VAP_9P" + ], + "default": "VAP_NONE", + "title": "The protocol that the task will use to access the Volume" + }, + "configVolumeContentOrigin": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/configVolumeContentOriginType" + }, + "downloadContentTreeID": { + "type": "string" + } + } + }, + "configVolumeContentOriginType": { + "type": "string", + "enum": [ + "VCOT_UNKNOWN", + "VCOT_BLANK", + "VCOT_DOWNLOAD" + ], + "default": "VCOT_UNKNOWN" + }, + "configVolumeRef": { + "type": "object", + "properties": { + "uuid": { + "type": "string" + }, + "generationCount": { + "type": "string", + "format": "int64" + }, + "mountDir": { + "type": "string", + "title": "Indicates volume mount point inside container\nif mount_dir is empty then it will be mounted on /mnt" + } + }, + "title": "Reference to a Volume specified separately in the API\nIf a volume is purged (re-created from scratch) it will either have a new\nUUID or a new generationCount" + }, + "configWifiConfig": { + "type": "object", + "properties": { + "wifiSSID": { + "type": "string" + }, + "keyScheme": { + "$ref": "#/definitions/commonWiFiKeyScheme" + }, + "identity": { + "type": "string", + "title": "to be deprecated, use cipherData instead" + }, + "password": { + "type": "string", + "title": "to be deprecated, use cipherData instead" + }, + "crypto": { + "$ref": "#/definitions/WifiConfigcryptoblock" + }, + "priority": { + "type": "integer", + "format": "int32" + }, + "cipherData": { + "$ref": "#/definitions/commonCipherBlock" + } + } + }, + "configWirelessConfig": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/evecommonWirelessType" + }, + "cellularCfg": { + "type": "array", + "items": { + "$ref": "#/definitions/configCellularConfig" + } + }, + "wifiCfg": { + "type": "array", + "items": { + "$ref": "#/definitions/configWifiConfig" + } + } + } + }, + "configZNetworkInstType": { + "type": "string", + "enum": [ + "ZNetInstFirst", + "ZnetInstSwitch", + "ZnetInstLocal", + "ZnetInstCloud", + "ZnetInstMesh", + "ZnetInstHoneyPot", + "ZnetInstTransparent", + "ZNetInstLast" + ], + "default": "ZNetInstFirst" + }, + "configZNetworkOpaqueConfigType": { + "type": "string", + "enum": [ + "ZNetOConfigVPN", + "ZNetOConfigLisp" + ], + "default": "ZNetOConfigVPN" + }, + "configZcServicePoint": { + "type": "object", + "properties": { + "zsType": { + "$ref": "#/definitions/configZcServiceType" + }, + "NameOrIp": { + "type": "string" + }, + "Credential": { + "type": "string" + } + }, + "title": "This is way to tell the device if there is service in cloud somewhere,\nwhat type it is how to access it" + }, + "configZcServiceType": { + "type": "string", + "enum": [ + "zcloudInvalidSrv", + "mapServer", + "supportServer" + ], + "default": "zcloudInvalidSrv", + "title": "- mapServer: mapping service for zededa overlay service\n - supportServer: if device has support feature enabled, this is cloud service from\ndevice can be reached" + }, + "evecommonCellularAuthProtocol": { + "type": "string", + "enum": [ + "CELLULAR_AUTH_PROTOCOL_NONE", + "CELLULAR_AUTH_PROTOCOL_PAP", + "CELLULAR_AUTH_PROTOCOL_CHAP", + "CELLULAR_AUTH_PROTOCOL_PAP_AND_CHAP" + ], + "default": "CELLULAR_AUTH_PROTOCOL_NONE", + "description": "CellularAuthProtocol defines the authentication protocol used for cellular connection.\n\n - CELLULAR_AUTH_PROTOCOL_NONE: No authentication.\n - CELLULAR_AUTH_PROTOCOL_PAP: Password Authentication Protocol.\n - CELLULAR_AUTH_PROTOCOL_CHAP: Challenge-Handshake Authentication Protocol.\n - CELLULAR_AUTH_PROTOCOL_PAP_AND_CHAP: Both PAP and CHAP." + }, + "evecommonDiskDescription": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "logicalName": { + "type": "string" + }, + "serial": { + "type": "string" + } + }, + "title": "DiskDescription describes disk\nwe can use different data to locate disk in the system" + }, + "evecommonHashAlgorithm": { + "type": "string", + "enum": [ + "HASH_ALGORITHM_INVALID", + "HASH_ALGORITHM_SHA256_16BYTES", + "HASH_ALGORITHM_SHA256_32BYTES" + ], + "default": "HASH_ALGORITHM_INVALID" + }, + "evecommonRadioAccessTechnology": { + "type": "string", + "enum": [ + "RADIO_ACCESS_TECHNOLOGY_UNSPECIFIED", + "RADIO_ACCESS_TECHNOLOGY_GSM", + "RADIO_ACCESS_TECHNOLOGY_UMTS", + "RADIO_ACCESS_TECHNOLOGY_LTE", + "RADIO_ACCESS_TECHNOLOGY_5GNR" + ], + "default": "RADIO_ACCESS_TECHNOLOGY_UNSPECIFIED", + "description": " - RADIO_ACCESS_TECHNOLOGY_GSM: Global System for Mobile Communications (2G).\n - RADIO_ACCESS_TECHNOLOGY_UMTS: Universal Mobile Telecommunications System (3G).\n - RADIO_ACCESS_TECHNOLOGY_LTE: Long Term Evolution (4G).\n - RADIO_ACCESS_TECHNOLOGY_5GNR: 5G New Radio." + }, + "evecommonWirelessType": { + "type": "string", + "enum": [ + "TypeNOOP", + "WiFi", + "Cellular" + ], + "default": "TypeNOOP" + }, + "eveconfigArpMonitor": { + "type": "object", + "properties": { + "interval": { + "type": "integer", + "format": "int64", + "description": "Interval specifies the ARP link monitoring frequency in milliseconds." + }, + "ipTargets": { + "type": "array", + "items": { + "type": "string" + }, + "description": "IpTargets specifies the IPv4 addresses to use as ARP monitoring peers.\nThese are the targets of ARP requests sent to determine the health of links." + } + }, + "description": "ArpMonitor : ARP-based link monitoring parameters.\nDefined for BondAdapter." + }, + "eveconfigBondAdapter": { + "type": "object", + "properties": { + "logicallabel": { + "type": "string", + "description": "Name of this bond adapter." + }, + "interfaceName": { + "type": "string", + "description": "A physical name of the bond interface.\nNote that the interface name is limited in Linux kernel to 15 characters.\nIf not defined, logicallabel will be used instead." + }, + "lowerLayerNames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Logical names of aggregated PhysicalIOs.\nFor all bonding modes but Active-Backup the order is irrelevant.\nIn the Active-Backup mode (BOND_MODE_ACTIVE_BACKUP), the first PhysicalIO\nin the list will be considered as the primary port (i.e. only when\nthe primary is off-line will alternate ports be used)." + }, + "bondMode": { + "$ref": "#/definitions/eveconfigBondMode", + "title": "A bonding mode specifies the policy indicating how bonding slaves are used\nduring network transmission" + }, + "mii": { + "$ref": "#/definitions/eveconfigMIIMonitor", + "description": "The MII monitor is driver-dependent. It monitors the links from the device\nto the nearest connected switch. If the failure occurs beyond the nearest\nconnected switch, it cannot be detected by MII monitor." + }, + "arp": { + "$ref": "#/definitions/eveconfigArpMonitor", + "description": "The ARP monitor is based on the communication to the target\nhosts designated by their IP addresses. Even if the link is beyond\nthe nearest connected switch, the APR monitor can detect it." + }, + "lacpRate": { + "$ref": "#/definitions/eveconfigLacpRate", + "description": "Option specifying the rate in which EVE will ask LACP link partners\nto transmit LACPDU packets in 802.3ad mode." + } + }, + "description": "BondAdapter aggregates multiple PhysicalIOs into one adapter for redundancy\nand load-spreading purposes." + }, + "eveconfigBondMode": { + "type": "string", + "enum": [ + "BOND_MODE_UNSPECIFIED", + "BOND_MODE_BALANCE_RR", + "BOND_MODE_ACTIVE_BACKUP", + "BOND_MODE_BALANCE_XOR", + "BOND_MODE_BROADCAST", + "BOND_MODE_802_3AD", + "BOND_MODE_BALANCE_TLB", + "BOND_MODE_BALANCE_ALB" + ], + "default": "BOND_MODE_UNSPECIFIED", + "description": "A bonding mode specifies the policy indicating how bonding slaves are used\nduring network transmission.\n\n - BOND_MODE_UNSPECIFIED: BOND_MODE_UNSPECIFIED : if bonding mode is not explicitly specified,\nthen by default Round-Robin policy is applied (BOND_MODE_BALANCE_RR).\n - BOND_MODE_BALANCE_RR: BOND_MODE_BALANCE_RR : transmit packets in sequential order from the first\navailable slave through the last. This mode provides load balancing\nand fault tolerance.\nThis is the default bonding mode.\n - BOND_MODE_ACTIVE_BACKUP: BOND_MODE_ACTIVE_BACKUP : only one slave in the bond is active.\nA different slave becomes active if, and only if, the active slave fails.\nThe bond's MAC address is externally visible on only one port to avoid\nconfusing the switch.\nThis mode provides fault tolerance.\n - BOND_MODE_BALANCE_XOR: BOND_MODE_BALANCE_XOR : packet source and destination MAC addresses are\nused to calculate hash and select the output slave interface accordingly.\nThis algorithm will place all traffic destined to a particular network\npeer on the same slave.\nThis mode provides load balancing and fault tolerance.\n - BOND_MODE_BROADCAST: BOND_MODE_BROADCAST: transmits everything on all slave interfaces.\nThis mode provides fault tolerance.\n - BOND_MODE_802_3AD: BOND_MODE_802_3AD : IEEE 802.3ad Dynamic link aggregation.\nCreates aggregation groups that share the same speed and duplex settings.\nUtilizes all slaves in the active aggregator according to the 802.3ad\nspecification.\nRequires that upstream networks equipment supports and has the IEEE 802.3ad\nDynamic link aggregation properly configured.\n - BOND_MODE_BALANCE_TLB: BOND_MODE_BALANCE_TLB : adaptive transmit load balancing. Channel bonding that\ndoes not require any special switch support. The outgoing traffic\nis distributed according to the current load (computed relative to the speed)\non each slave.\nIncoming traffic is received by the current slave. If the receiving slave\nfails, another slave takes over the MAC address of the failed receiving slave.\nThis mode provides (TX) load balancing and fault tolerance.\n - BOND_MODE_BALANCE_ALB: BOND_MODE_BALANCE_ALB : adaptive load balancing. Includes BOND_MODE_BALANCE_TLB\nplus receive load balancing (RLB) for IPV4 traffic, and does not require\nany special switch support. The receive load balancing is achieved by ARP\nnegotiation.\nThis mode provides load balancing and fault tolerance." + }, + "eveconfigCSRProfile": { + "type": "object", + "properties": { + "commonName": { + "type": "string", + "description": "X.509 Distinguished Name (DN) attributes." + }, + "organization": { + "type": "string" + }, + "organizationalUnit": { + "type": "string" + }, + "country": { + "type": "string" + }, + "state": { + "type": "string" + }, + "locality": { + "type": "string" + }, + "sanDns": { + "type": "array", + "items": { + "type": "string" + }, + "description": "X.509 Subject Alternative Name (SAN) attributes." + }, + "sanIp": { + "type": "array", + "items": { + "type": "string" + } + }, + "sanUri": { + "type": "array", + "items": { + "type": "string" + } + }, + "sanEmail": { + "type": "array", + "items": { + "type": "string" + } + }, + "renewPeriodPercent": { + "type": "integer", + "format": "int64", + "description": "Certificate renewal settings.\nPercentage of the certificate validity period after which\nthe device should attempt renewal (e.g., 80 = renew after 80%)." + }, + "keyType": { + "$ref": "#/definitions/eveconfigKeyType", + "description": "Key algorithm and parameters used to generate the private key." + }, + "hashAlgorithm": { + "$ref": "#/definitions/eveconfigHashAlgorithm", + "description": "Hash algorithm used for signing operations\n(CSR generation, SCEP messages, etc.)." + } + }, + "description": "Certificate Signing Request (CSR) configuration profile.\nDefines subject identity, extensions, cryptographic parameters,\nand renewal behavior for certificate enrollment." + }, + "eveconfigClusterType": { + "type": "string", + "enum": [ + "CLUSTER_TYPE_UNSPECIFIED", + "CLUSTER_TYPE_K3S_BASE", + "CLUSTER_TYPE_REPLICATED_STORAGE", + "CLUSTER_TYPE_HA" + ], + "default": "CLUSTER_TYPE_UNSPECIFIED", + "title": "- CLUSTER_TYPE_K3S_BASE: cluster with only native kubernetes orchestration for user applications\n - CLUSTER_TYPE_REPLICATED_STORAGE: cluster with orchestration by EVE APIs for user applications\n - CLUSTER_TYPE_HA: deprecated" + }, + "eveconfigEAPMethod": { + "type": "string", + "enum": [ + "EAP_METHOD_UNSPECIFIED", + "EAP_METHOD_TLS" + ], + "default": "EAP_METHOD_UNSPECIFIED", + "title": "Supported EAP methods" + }, + "eveconfigEdgeNodeCluster": { + "type": "object", + "properties": { + "clusterName": { + "type": "string", + "title": "cluster name, in case it has multiple cluster on the same site" + }, + "clusterId": { + "type": "string", + "title": "cluster UUID" + }, + "clusterInterface": { + "type": "string", + "title": "Cluster-Interface, for example \"mgmt0\", this is the logicallabel of the physicalIO" + }, + "clusterIpPrefix": { + "type": "string", + "title": "the 'cluster-prefix' IP address of the 'Cluster-Interface', 10.244.244.2/28" + }, + "isWorkerNode": { + "type": "boolean", + "title": "This device is an 'Agent' node" + }, + "joinServerIp": { + "type": "string", + "title": "Server IP address to join the cluster. E.g. 10.244.244.1" + }, + "encryptedClusterToken": { + "$ref": "#/definitions/commonCipherBlock", + "title": "encrypted token string, use edge-node TPM to decrypt" + }, + "clusterType": { + "$ref": "#/definitions/eveconfigClusterType", + "title": "Cluster Type for eve to determine component, app, and volume scheduling needs" + }, + "tieBreakerNodeId": { + "type": "string", + "description": "Node Id for eve to disable all pod scheduling\nEVE-OS should use this to set kubernetes node labels identifying\nthe tie-breaker node to the kubernetes scheduler.\nNode labels are used in the node selector specification of\nkubernetes objects to direct pod scheduling away from a\nspecific node due to node limitations." + }, + "haScheme": { + "$ref": "#/definitions/configHAScheme", + "description": "High-availability scheme used by the cluster control plane." + }, + "loadBalancerService": { + "$ref": "#/definitions/configLoadBalancerService", + "description": "Optional load balancer service configuration." + }, + "masterNodeUuids": { + "type": "array", + "items": { + "type": "string" + }, + "description": "UUIDs of all designated master/control-plane nodes in the cluster,\nas known to the controller. Surviving EVE nodes use this list to\nprune k8s Node objects (and thereby k3s embedded etcd members) for\nmasters the controller has removed (e.g. after a \"replace node\"\noperation in the UI). Workers are not listed here." + } + } + }, + "eveconfigExternalOpaqueBinaryBlob": { + "type": "object", + "properties": { + "imageName": { + "type": "string", + "title": "Name of the image uploaded into data store" + }, + "fileNameToUse": { + "type": "string", + "title": "file name to be used for storing this data in EVE\nthe same file name shall be advertised to application agent\nif it's empty EVE will use image name" + }, + "blobMetaData": { + "type": "string", + "title": "can be image type or size encoded into a single string" + }, + "imageId": { + "type": "string", + "title": "Target field of Volume set to AppCustom\nrefers to UUID of a volume" + } + } + }, + "eveconfigHashAlgorithm": { + "type": "string", + "enum": [ + "HASH_ALGORITHM_UNSPECIFIED", + "HASH_ALGORITHM_SHA256", + "HASH_ALGORITHM_SHA384", + "HASH_ALGORITHM_SHA512" + ], + "default": "HASH_ALGORITHM_UNSPECIFIED", + "description": "Supported hash algorithms for signing." + }, + "eveconfigIPRoute": { + "type": "object", + "properties": { + "destinationNetwork": { + "type": "string", + "description": "Destination network address in the CIDR format: /\nIt is allowed to submit default route with all-zeroes destination network address\n0.0.0.0/0 or ::/0." + }, + "gateway": { + "type": "string", + "description": "Gateway IP address.\nThis must be a valid IP address and can not be all-zeroes.\nAt least one of 'gateway' or 'port' (see below) must be defined (both can be set).\nThis can be an external gateway IP or an IP address of one of the app instances\nconnected to the network instance." + }, + "port": { + "type": "string", + "description": "Output device port for the routed traffic.\nEither a single NI port referenced by its name (SystemAdapter.Name, aka logical label)\nor an adapter shared-label matching zero or more NI ports (multipath routing).\nCan be used additionally to or instead of `gateway` to determine the next hop\nand the output network interface for the destination network.\nAt least one of 'gateway' or 'port' must be defined.\nSince 'port' refers to one or more physical network adapters, it is not applicable\nto routes where gateway points to another application instance running on EVE.\nIf shared label is used, EVE will pick (at most) one of the matched ports to be used\nfor route at a given time. Port is selected based on connectivity status, port costs,\nwwan signal strength, etc. - see config options below.\nNote that load-balancing across multiple ports is not yet supported.\nAlso please note that if `gateway` is defined, only ports with subnets containing\nthe gateway IP will be considered." + }, + "probe": { + "$ref": "#/definitions/configPortProbe", + "description": "Periodically probe remote endpoint to determine connectivity status of every port\nselected for the route (by the 'port' label, see above). One of the ports with\na working connectivity is then picked for the route. If there are multiple connected\nports, other port selection criteria are considered (port costs, wwan signal strength,\netc., see other options of IPRoute).\nProbing effectively provides automatic fail-over between ports.\nIf 'port' is not defined or references only a single port (e.g. directly by\nthe logical label), probing is skipped (nothing to fail-over to anyway).\nIf probing is not enabled, EVE picks the port based on other remaining criteria,\nsuch as cost, wwan network signal, etc. (and eventually possibly making a random\nchoice)." + }, + "preferLowerCost": { + "type": "boolean", + "description": "When EVE is deciding which port to use for multipath route and multiple ports have\nworking connectivity (or probing is disabled), port can be selected based on the cost\n(see SystemAdapter.cost). If this option is enabled, EVE will prefer ports with lower\ncosts." + }, + "preferStrongerWwanSignal": { + "type": "boolean", + "description": "When EVE is deciding which port to use for multipath route and there are multiple\ncandidates among cellular modems, it might make sense to consider the current cellular\nnetwork signal strength. If this option is enabled, EVE will prefer cellular ports\nwith better signal (only among cellular ports)." + } + } + }, + "eveconfigImage": { + "type": "object", + "properties": { + "uuidandversion": { + "$ref": "#/definitions/configUUIDandVersion" + }, + "name": { + "type": "string", + "title": "it could be relative path/name as well; appended to the datastore dpath" + }, + "sha256": { + "type": "string" + }, + "iformat": { + "$ref": "#/definitions/configFormat" + }, + "siginfo": { + "$ref": "#/definitions/configSignatureInfo", + "title": "if its signed image" + }, + "dsId": { + "type": "string" + }, + "sizeBytes": { + "type": "string", + "format": "int64", + "description": "sizeBytes indicates the maximum download size of an image.\nA value of 0 will indicate the unlimited download." + } + }, + "title": "XXX the Image will be deprecated and we will use ContentTree instead" + }, + "eveconfigInlineOpaqueBase64Data": { + "type": "object", + "properties": { + "base64Data": { + "type": "string", + "title": "base64 encoded data" + }, + "fileNameToUse": { + "type": "string", + "title": "file name to be used for storing this data\nsame file name shall be advertised to application agent" + }, + "base64MetaData": { + "type": "string", + "title": "any arbitrary metadata encoded to base64 string" + } + } + }, + "eveconfigKeyType": { + "type": "string", + "enum": [ + "KEY_TYPE_UNSPECIFIED", + "KEY_TYPE_RSA_2048", + "KEY_TYPE_RSA_3072", + "KEY_TYPE_RSA_4096", + "KEY_TYPE_ECDSA_P256", + "KEY_TYPE_ECDSA_P384", + "KEY_TYPE_ECDSA_P521" + ], + "default": "KEY_TYPE_UNSPECIFIED", + "description": "Supported key types (algorithm and parameters).\n\n - KEY_TYPE_RSA_2048: RSA key types.\n - KEY_TYPE_ECDSA_P256: ECDSA key types." + }, + "eveconfigLacpRate": { + "type": "string", + "enum": [ + "LACP_RATE_UNSPECIFIED", + "LACP_RATE_SLOW", + "LACP_RATE_FAST" + ], + "default": "LACP_RATE_UNSPECIFIED", + "description": "Option specifying the rate in which EVE will ask LACP link partners\nto transmit LACPDU packets in 802.3ad mode.\n\n - LACP_RATE_UNSPECIFIED: Default LACP rate is Slow.\n - LACP_RATE_SLOW: Request LACP partner to transmit LACPDUs every 30 seconds.\n - LACP_RATE_FAST: Request LACP partner to transmit LACPDUs every 1 second." + }, + "eveconfigMIIMonitor": { + "type": "object", + "properties": { + "interval": { + "type": "integer", + "format": "int64", + "description": "Specifies the MII link monitoring frequency in milliseconds.\nThis determines how often the link state of each bond slave is inspected\nfor link failures." + }, + "updelay": { + "type": "integer", + "format": "int64", + "description": "Updelay specifies the time, in milliseconds, to wait before enabling\na bond slave after a link recovery has been detected.\nThe updelay value should be a multiple of the monitoring interval; if not,\nit will be rounded down to the nearest multiple.\nThe default value is 0." + }, + "downdelay": { + "type": "integer", + "format": "int64", + "description": "Specifies the time, in milliseconds, to wait before disabling a bond\nslave after a link failure has been detected.\nThe downdelay value should be a multiple of the monitoring interval; if not,\nit will be rounded down to the nearest multiple.\nThe default value is 0." + } + }, + "description": "MIIMonitor : MII link monitoring parameters.\nDefined for BondAdapter." + }, + "eveconfigSCEPProfile": { + "type": "object", + "properties": { + "profileName": { + "type": "string", + "description": "User-assigned logical name for this certificate enrollment profile.\nMust be unique within the device configuration.\n\nCurrently, this name is unique among EdgeDevConfig.scep_profiles only.\nIn the future, when additional certificate enrollment protocols are supported,\nprofile names are expected to be unique across all enrollment profile types." + }, + "scepUrl": { + "type": "string", + "title": "Full SCEP server URL, including scheme, host, and path.\nExample: https://ca.example.com/scep" + }, + "useControllerProxy": { + "type": "boolean", + "description": "If true, SCEP requests are sent via the controller-provided SCEP proxy.\nIf false, the device connects directly to the SCEP server.\nThe proxy option is intended for deployments where the SCEP server\nis not reachable from the unauthenticated or provisioning network." + }, + "scepChallengePassword": { + "$ref": "#/definitions/commonCipherBlock", + "description": "Encrypted SCEP challenge password.\nUsed for one-time or shared-secret\u2013based authorization during\ncertificate enrollment." + }, + "caCertPem": { + "type": "array", + "items": { + "type": "string", + "format": "byte" + }, + "description": "Trusted CA certificate chain used for SCEP operations.\nRequired by RFC 8894, Section 2.2.\n\n- Each certificate in the chain that is capable of key encryption\n (typically only the issuing CA) will receive a copy of the encrypted\n symmetric key used to encrypt the PKCS#7 certificate enrollment request.\n- The full set of certificates is used to validate the CA signature\n on SCEP responses." + }, + "csrProfile": { + "$ref": "#/definitions/eveconfigCSRProfile", + "description": "Certificate Signing Request (CSR) configuration profile.\nDefines subject attributes, key parameters, and extensions\nfor the certificate enrollment request." + } + }, + "description": "SCEP (Simple Certificate Enrollment Protocol) configuration profile.\nDefines how a device enrolls for X.509 certificates using SCEP,\nincluding server connectivity, trust anchors, and CSR parameters." + }, + "eveconfigSnapshotType": { + "type": "string", + "enum": [ + "SNAPSHOT_TYPE_UNSPECIFIED", + "SNAPSHOT_TYPE_APP_UPDATE", + "SNAPSHOT_TYPE_IMMEDIATE" + ], + "default": "SNAPSHOT_TYPE_UNSPECIFIED", + "title": "Type of the snapshot creation trigger" + }, + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "typeUrl": { + "type": "string" + }, + "value": { + "type": "string", + "format": "byte" + } + } + }, + "protobufNullValue": { + "type": "string", + "enum": [ + "NULL_VALUE" + ], + "default": "NULL_VALUE", + "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\n The JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." + } + }, + "securityDefinitions": { + "BearerToken": { + "type": "apiKey", + "description": "Bearer token for user session", + "name": "Authorization", + "in": "header" + } + }, + "security": [ + { + "BearerToken": [] + } + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com/hc/en-us/articles/30323173611931-ZEDEDA-API-Overview" + } +} \ No newline at end of file diff --git a/openapi/zedge_job_service.swagger.json b/openapi/zedge_job_service.swagger.json new file mode 100644 index 0000000..a0de25a --- /dev/null +++ b/openapi/zedge_job_service.swagger.json @@ -0,0 +1,4181 @@ +{ + "swagger": "2.0", + "info": { + "title": "ZEDEDA Job Service", + "description": "The ZEDEDA Job Service is helper service to ZEDEDA Edge Application Service and ZEDEDA Edge Node Service. This service allows device administrators and operators to update Edge nodes and manage Edge Applications in bulk. Jobs execute edge node management and edge application management against a set of edge nodes or edge applications matching a selection criteria. For example, an operator would use a job to initiate and track installation of a lightning detection edge application on all edge nodes inistalled in all windmills in a particular Texas ZIP code (defined as a project).", + "termsOfService": "https://www.zededa.com/terms", + "version": "1.0", + "contact": { + "name": "ZEDEDA API Support", + "url": "https://www.zededa.com/support", + "email": "support@zededa.com" + }, + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.html" + } + }, + "tags": [ + { + "name": "BulkJobOps" + } + ], + "basePath": "/api", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/v1/jobs": { + "get": { + "summary": "Query asynchronous job requests", + "description": "Query the asynchronous job request records.", + "operationId": "BulkJobOps_QueryJobs", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/JobConfigList" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-app level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "description": "Only summary count is required.", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "jobStatus", + "description": "status of the job.", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "projectName", + "description": "project name.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "namePattern", + "description": "name pattern of the job.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "BulkJobOps" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/jobs" + } + }, + "post": { + "summary": "Create asynchronous job request", + "description": "Create an asynchronous job request record.", + "operationId": "BulkJobOps_CreateJob", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-app level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this job record will conflict with an already existing job record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/JobConfig" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "BulkJobOps" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/jobs" + } + } + }, + "/v1/jobs/apps/bundles/import": { + "put": { + "summary": "Update job request to import edge application bundles", + "description": "Update job request to import edge application bundle(s) from global App Store matching selection criteria.", + "operationId": "BulkJobOps_BulkImportEdgeApplications", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-app level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing asynchronous job request record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BulkConfig" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "BulkJobOps" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/jobs" + } + } + }, + "/v1/jobs/apps/instances/create": { + "put": { + "summary": "Update job request to create edge application instances", + "description": "Update job request to create edge application instance(s) on edge node(s) matching selection criteria.", + "operationId": "BulkJobOps_BulkCreateEdgeApplicationInstances", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-app level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing asynchronous job request record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BulkConfig" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "BulkJobOps" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/jobs" + } + } + }, + "/v1/jobs/apps/instances/refresh": { + "put": { + "summary": "Update job request to refresh edge application instances", + "description": "Update job request to refresh edge application instances matching selection criteria. Update edge application instance(s) to the latest version of the edge application. This operation will result in a restart of the edge application instance(s).", + "operationId": "BulkJobOps_BulkRefreshEdgeApplicationInstances", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-app level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing asynchronous job request record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BulkConfig" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "BulkJobOps" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/jobs" + } + } + }, + "/v1/jobs/apps/instances/refresh/purge": { + "put": { + "summary": "Update job request to refresh and purge edge application instances", + "description": "Update job request to refresh and purge edge application instances matching selection criteria. Update edge application instance(s) to the latest version of the edge application. This operation will result in loss of data and a restart of the edge application instance(s). ", + "operationId": "BulkJobOps_BulkRefreshAndPurgeEdgeApplicationInstances", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-app level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing asynchronous job request record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BulkConfig" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "BulkJobOps" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/jobs" + } + } + }, + "/v1/jobs/devices/baseos/upgrade": { + "put": { + "summary": "Update job request to update EVE image on edge nodes", + "description": "Update job request to update EVE image on edge nodes. If edge node is already running the latest EVE image no action is taken.", + "operationId": "BulkJobOps_BulkUpdateEdgeNodeBaseOS", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-app level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing asynchronous job request record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BulkConfig" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "BulkJobOps" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/jobs" + } + } + }, + "/v1/jobs/devices/baseos/upgrade/retry": { + "put": { + "summary": "Update job request to retry update EVE image on edge nodes", + "description": "Update job request to retry update EVE image on edge nodes. If edge node is already running the latest EVE image no action is taken.", + "operationId": "BulkJobOps_BulkUpdateEdgeNodeBaseOSRetry", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-app level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing asynchronous job request record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BulkConfig" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "BulkJobOps" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/jobs" + } + } + }, + "/v1/jobs/devices/deployment/tags": { + "put": { + "summary": "Update job request to update Deployment tag on edge nodes in bulk.", + "description": "Update job request to update Deployment tag on edge nodes in bulk.", + "operationId": "BulkJobOps_BulkUpdateEdgeNodeBaseOSDeploymentTag", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-app level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing asynchronous job request record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BulkConfig" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "BulkJobOps" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/jobs" + } + } + }, + "/v1/jobs/devices/project/target": { + "put": { + "summary": "Update job request to update EVE image project and target on edge nodes", + "description": "Update job request to update EVE image project and target on edge nodes. If edge node is already running the latest EVE image no action is taken.", + "operationId": "BulkJobOps_BulkUpdateEdgeNodeBaseOSProject", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-app level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing asynchronous job request record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BulkConfig" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "BulkJobOps" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/jobs" + } + } + }, + "/v1/jobs/devices/tags": { + "put": { + "summary": "Update job request to update EVE image tag on edge nodes", + "description": "Update job request to update EVE image tag on edge nodes. If edge node is already running the latest EVE image no action is taken.", + "operationId": "BulkJobOps_BulkUpdateEdgeNodeBaseOSTag", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-app level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing asynchronous job request record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BulkConfig" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "BulkJobOps" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/jobs" + } + } + }, + "/v1/jobs/id/{id}": { + "get": { + "summary": "Get asynchronous job request", + "description": "Get the configuration and status of an asynchronous job request record.", + "operationId": "BulkJobOps_GetJobById", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/JobConfig" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-app level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the job request", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "BulkJobOps" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/jobs" + } + }, + "put": { + "summary": "Update asynchronous job request", + "description": "Update an asynchronous job request record. The usual pattern to update an asynchronous job request record is to retrieve the record and update with the modified values in a new body to update the asynchronous job request record.", + "operationId": "BulkJobOps_UpdateJob", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-app level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing asynchronous job request record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the job request", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "User defined name of the job request, unique across the enterprise. Once object is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "objectType": { + "$ref": "#/definitions/ObjectType", + "description": "object type for which job has been created" + }, + "operationType": { + "$ref": "#/definitions/BulkService" + }, + "status": { + "$ref": "#/definitions/JobStatus", + "description": "status of the job", + "readOnly": true + }, + "objectList": { + "type": "array", + "items": { + "type": "string" + } + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "start time of the job", + "readOnly": true + }, + "finishTime": { + "type": "string", + "format": "date-time", + "description": "finish time of the job", + "readOnly": true + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined info", + "readOnly": true + }, + "individualOpStatus": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "status of individual field of the given object", + "readOnly": true + }, + "selectionCriteria": { + "$ref": "#/definitions/SelectionCriteria", + "description": "selection criteria for the job", + "readOnly": true + }, + "errorDetailOfJob": { + "type": "string", + "description": "detailed error with which job/task has failed", + "readOnly": true + }, + "title": { + "type": "string", + "description": "user or system specified title" + }, + "description": { + "type": "string", + "description": "user or system specified description" + }, + "projectId": { + "type": "string", + "description": "project Id in which job is getting created" + } + }, + "description": "config required for job ops", + "title": "config required for job ops", + "required": [ + "name", + "objectType" + ] + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "BulkJobOps" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/jobs" + } + } + }, + "/v1/jobs/id/{id}/objectType/{objectType}": { + "get": { + "summary": "Get asynchronous job request", + "description": "Get the configuration and status of an asynchronous job request record.", + "operationId": "BulkJobOps_GetJob", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/JobConfig" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-app level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the job request", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "objectType", + "description": "object type for which job has been created", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "OBJECT_TYPE_UNSPECIFIED", + "OBJECT_TYPE_USER", + "OBJECT_TYPE_EDGE_NODE", + "OBJECT_TYPE_EDGE_APP", + "OBJECT_TYPE_IMAGE", + "OBJECT_TYPE_EDGE_APP_INSTANCE", + "OBJECT_TYPE_PROJECT", + "OBJECT_TYPE_NETWORK", + "OBJECT_TYPE_DATASTORE", + "OBJECT_TYPE_SERVICE", + "OBJECT_TYPE_SERVICE_INSTANCE", + "OBJECT_TYPE_ENTERPRISE", + "OBJECT_TYPE_ROLE", + "OBJECT_TYPE_CREDENTIAL", + "OBJECT_TYPE_NETWORK_INSTANCE", + "OBJECT_TYPE_VOLUME_INSTANCE", + "OBJECT_TYPE_REALM", + "OBJECT_TYPE_AUTHPROFILE", + "OBJECT_TYPE_POLICY", + "OBJECT_TYPE_APP_POLICY", + "OBJECT_TYPE_CLUSTER_INSTANCE", + "OBJECT_TYPE_PLUGIN", + "OBJECT_TYPE_DOC_POLICY", + "OBJECT_TYPE_ORCHESTRATOR_CLUSTER", + "OBJECT_TYPE_TAGS", + "OBJECT_TYPE_EDGE_NODE_INTERFACE", + "OBJECT_TYPE_DEPLOYMENT", + "OBJECT_TYPE_ENTITLEMENTS", + "OBJECT_TYPE_DATA_STREAM", + "OBJECT_TYPE_API_USAGE", + "OBJECT_TYPE_APP_INSTANCE_SNAPSHOT", + "OBJECT_TYPE_PATCH_ENVELOPE", + "OBJECT_TYPE_RESOURCE_USAGE_TRACK", + "OBJECT_TYPE_PATCH_ENVELOPE_REFERENCE", + "OBJECT_TYPE_DEV_PASSTHROUGH", + "OBJECT_TYPE_EDGE_NODE_CLUSTER", + "OBJECT_TYPE_ASSET_GROUP", + "OBJECT_TYPE_APP_PROFILE", + "OBJECT_TYPE_PROFILE_DEPLOYMENT", + "OBJECT_TYPE_ZKS_INSTANCE", + "OBJECT_TYPE_CLUSTER_GROUP" + ] + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "BulkJobOps" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/jobs" + } + }, + "delete": { + "summary": "Delete asynchronous job request", + "description": "Delete an asynchronous job request record.", + "operationId": "BulkJobOps_DeleteJob", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-app level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this job is in progress, dependent tasks are still running", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the job request", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "objectType", + "description": "object type for which job has been created", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "OBJECT_TYPE_UNSPECIFIED", + "OBJECT_TYPE_USER", + "OBJECT_TYPE_EDGE_NODE", + "OBJECT_TYPE_EDGE_APP", + "OBJECT_TYPE_IMAGE", + "OBJECT_TYPE_EDGE_APP_INSTANCE", + "OBJECT_TYPE_PROJECT", + "OBJECT_TYPE_NETWORK", + "OBJECT_TYPE_DATASTORE", + "OBJECT_TYPE_SERVICE", + "OBJECT_TYPE_SERVICE_INSTANCE", + "OBJECT_TYPE_ENTERPRISE", + "OBJECT_TYPE_ROLE", + "OBJECT_TYPE_CREDENTIAL", + "OBJECT_TYPE_NETWORK_INSTANCE", + "OBJECT_TYPE_VOLUME_INSTANCE", + "OBJECT_TYPE_REALM", + "OBJECT_TYPE_AUTHPROFILE", + "OBJECT_TYPE_POLICY", + "OBJECT_TYPE_APP_POLICY", + "OBJECT_TYPE_CLUSTER_INSTANCE", + "OBJECT_TYPE_PLUGIN", + "OBJECT_TYPE_DOC_POLICY", + "OBJECT_TYPE_ORCHESTRATOR_CLUSTER", + "OBJECT_TYPE_TAGS", + "OBJECT_TYPE_EDGE_NODE_INTERFACE", + "OBJECT_TYPE_DEPLOYMENT", + "OBJECT_TYPE_ENTITLEMENTS", + "OBJECT_TYPE_DATA_STREAM", + "OBJECT_TYPE_API_USAGE", + "OBJECT_TYPE_APP_INSTANCE_SNAPSHOT", + "OBJECT_TYPE_PATCH_ENVELOPE", + "OBJECT_TYPE_RESOURCE_USAGE_TRACK", + "OBJECT_TYPE_PATCH_ENVELOPE_REFERENCE", + "OBJECT_TYPE_DEV_PASSTHROUGH", + "OBJECT_TYPE_EDGE_NODE_CLUSTER", + "OBJECT_TYPE_ASSET_GROUP", + "OBJECT_TYPE_APP_PROFILE", + "OBJECT_TYPE_PROFILE_DEPLOYMENT", + "OBJECT_TYPE_ZKS_INSTANCE", + "OBJECT_TYPE_CLUSTER_GROUP" + ] + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "BulkJobOps" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/jobs" + } + } + }, + "/v1/jobs/models/import": { + "put": { + "summary": "Update job request to import hardware models", + "description": "Update job request to import hardware model(s) from global Model Store matching selection criteria.", + "operationId": "BulkJobOps_BulkImportHardwareModels", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-app level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing asynchronous job request record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BulkConfig" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "BulkJobOps" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/jobs" + } + } + }, + "/v1/jobs/name/{name}/objectType/{objectType}": { + "get": { + "summary": "Get asynchronous job request", + "description": "Get the configuration and status of an asynchronous job request record.", + "operationId": "BulkJobOps_GetJobByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/JobConfig" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-app level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "User defined name of the job request, unique across the enterprise. Once object is created, name can\u2019t be changed", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "objectType", + "description": "object type for which job has been created", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "OBJECT_TYPE_UNSPECIFIED", + "OBJECT_TYPE_USER", + "OBJECT_TYPE_EDGE_NODE", + "OBJECT_TYPE_EDGE_APP", + "OBJECT_TYPE_IMAGE", + "OBJECT_TYPE_EDGE_APP_INSTANCE", + "OBJECT_TYPE_PROJECT", + "OBJECT_TYPE_NETWORK", + "OBJECT_TYPE_DATASTORE", + "OBJECT_TYPE_SERVICE", + "OBJECT_TYPE_SERVICE_INSTANCE", + "OBJECT_TYPE_ENTERPRISE", + "OBJECT_TYPE_ROLE", + "OBJECT_TYPE_CREDENTIAL", + "OBJECT_TYPE_NETWORK_INSTANCE", + "OBJECT_TYPE_VOLUME_INSTANCE", + "OBJECT_TYPE_REALM", + "OBJECT_TYPE_AUTHPROFILE", + "OBJECT_TYPE_POLICY", + "OBJECT_TYPE_APP_POLICY", + "OBJECT_TYPE_CLUSTER_INSTANCE", + "OBJECT_TYPE_PLUGIN", + "OBJECT_TYPE_DOC_POLICY", + "OBJECT_TYPE_ORCHESTRATOR_CLUSTER", + "OBJECT_TYPE_TAGS", + "OBJECT_TYPE_EDGE_NODE_INTERFACE", + "OBJECT_TYPE_DEPLOYMENT", + "OBJECT_TYPE_ENTITLEMENTS", + "OBJECT_TYPE_DATA_STREAM", + "OBJECT_TYPE_API_USAGE", + "OBJECT_TYPE_APP_INSTANCE_SNAPSHOT", + "OBJECT_TYPE_PATCH_ENVELOPE", + "OBJECT_TYPE_RESOURCE_USAGE_TRACK", + "OBJECT_TYPE_PATCH_ENVELOPE_REFERENCE", + "OBJECT_TYPE_DEV_PASSTHROUGH", + "OBJECT_TYPE_EDGE_NODE_CLUSTER", + "OBJECT_TYPE_ASSET_GROUP", + "OBJECT_TYPE_APP_PROFILE", + "OBJECT_TYPE_PROFILE_DEPLOYMENT", + "OBJECT_TYPE_ZKS_INSTANCE", + "OBJECT_TYPE_CLUSTER_GROUP" + ] + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "BulkJobOps" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/jobs" + } + } + } + }, + "definitions": { + "ActionScope": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/ObjectType", + "description": "Scope of the action (e.g. project in case certificate expired at project level)" + }, + "id": { + "type": "string", + "description": "Unique id of the type (e.g. projectId in case of project type)" + } + } + }, + "AppInstEdgeNodeCluster": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Id of the edge node cluster", + "pattern": "[0-9A-Za-z-]+" + }, + "designatedNodeID": { + "type": "string", + "description": "Id of the designated node", + "pattern": "[0-9A-Za-z-]+" + }, + "name": { + "type": "string", + "description": "edge node cluster name" + }, + "enableAppPinning": { + "type": "boolean", + "description": "enable application pinning to edge node cluster's designated node" + } + } + }, + "AppInstance": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the app instance", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the app instance, unique across the enterprise. Once app instance is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the app instance. Title can be changed at any time", + "maxLength": 256, + "minLength": 3, + "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$" + }, + "description": { + "type": "string", + "description": "Detailed description of the app instance", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "app instance object revision details" + }, + "projectId": { + "type": "string", + "description": "project name which the given app instance belong to" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "clusterID": { + "type": "string", + "description": "System defined universally unique clusterInstance ID, unique across the enterprise.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "appId": { + "type": "string", + "description": "User defined name of the edge app, unique across the enterprise. Once app name is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "deviceId": { + "type": "string", + "description": "User defined name of the device name, unique across the enterprise. Once device name is defined, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "activate": { + "type": "boolean", + "description": "app instance activation flag" + }, + "vminfo": { + "$ref": "#/definitions/vm", + "description": "virtual machine info" + }, + "drives": { + "type": "array", + "items": { + "$ref": "#/definitions/drive" + }, + "description": "drive details" + }, + "interfaces": { + "type": "array", + "items": { + "$ref": "#/definitions/appInterface" + }, + "description": "application interfaces" + }, + "userData": { + "type": "string", + "description": "Deprecated: Application initiazation script in cloud-config format to be used by cloud-init" + }, + "customConfig": { + "$ref": "#/definitions/CustomConfig", + "description": "Application initialization script template in cloud-config format and user specified values" + }, + "collectStatsIPAddr": { + "type": "string", + "description": "holds the static Ip of the app instance" + }, + "bundleversion": { + "type": "string", + "description": "version of bundle app is referring to" + }, + "logs": { + "$ref": "#/definitions/AppInstanceLogs", + "description": "App Instance logs" + }, + "restart": { + "$ref": "#/definitions/ZedCloudOpsCmd", + "description": "Restart counter: ZedCloudOpsCmd" + }, + "refresh": { + "$ref": "#/definitions/ZedCloudOpsCmd", + "description": "Refresh counter: ZedCloudOpsCmd" + }, + "purge": { + "$ref": "#/definitions/ZedCloudOpsCmd", + "description": "Purge counter: ZedCloudOpsCmd" + }, + "remoteConsole": { + "type": "boolean", + "description": "Remote console flag" + }, + "encryptedSecrets": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "user encrypted secrets map" + }, + "cryptoKey": { + "type": "string", + "description": "Crypto Key for decrypting user secret information" + }, + "manifestInfo": { + "$ref": "#/definitions/ManifestInfo", + "description": "app manifest Info" + }, + "appType": { + "$ref": "#/definitions/AppType", + "description": "type of bundle" + }, + "isSecretUpdated": { + "type": "boolean", + "description": "This field tells whether user secrets has updated or not, especially the cusotom config" + }, + "appPolicyId": { + "type": "string", + "description": "app policy id" + }, + "deploymentType": { + "$ref": "#/definitions/DeploymentType", + "description": "type of deployment for the app, eg: azure, k3s, standalone" + }, + "userDefinedVersion": { + "type": "string", + "description": "Instance version tells which edge app does this instance is running" + }, + "startDelayInSeconds": { + "type": "integer", + "format": "int64", + "description": "start delay is the time in seconds EVE should wait after boot before starting the application instance" + }, + "cloudInitVersion": { + "type": "integer", + "format": "int64", + "description": "Cloud-init version that indicates whether it necessary or not for cloud-init tool to restart in a guest" + }, + "allowSnapshots": { + "type": "boolean", + "description": "Flag to determine if a snapshot creation is allowed" + }, + "maxSnapshots": { + "type": "integer", + "format": "int64", + "description": "Maximum number of snapshots allowed to be created" + }, + "availableSnapshots": { + "type": "array", + "items": { + "$ref": "#/definitions/AppInstanceSnapshot" + }, + "description": "The list of available snapshots of the application instance" + }, + "patchEnvelopeId": { + "type": "string", + "description": "patch envelope id" + }, + "patchEnvelopeName": { + "type": "string", + "description": "patch envelope name" + }, + "edgeNodeCluster": { + "$ref": "#/definitions/AppInstEdgeNodeCluster", + "description": "edge node cluster" + }, + "dockerComposeYamlText": { + "type": "string", + "description": "Docker compose base64 encoded plain text", + "title": "internal field", + "readOnly": true + }, + "dockerComposeTarImageName": { + "type": "string", + "description": "Docker compose tar image name", + "title": "internal field", + "readOnly": true + }, + "datastoreIdList": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of datastore ids containing private registry credentials", + "title": "internal field", + "readOnly": true + }, + "PersistentRuntimeSizeBytes": { + "type": "string", + "format": "uint64", + "description": "Persistent runtime size in bytes" + } + }, + "description": "App Instance detail", + "title": "App Instance detail", + "required": [ + "name", + "title", + "projectId", + "appId", + "deviceId", + "activate" + ] + }, + "AppInstanceDeploy": { + "type": "object", + "properties": { + "instanceConfig": { + "type": "array", + "items": { + "$ref": "#/definitions/BulkInstanceConfig" + }, + "description": "XXX for now user will send only one common config. In future with complex\nfiltering and payload, user can send instance config per device." + } + } + }, + "AppInstanceLogs": { + "type": "object", + "properties": { + "access": { + "type": "boolean", + "description": "Flags to enable / disable sending of logs generated by app instance to zedcloud" + } + }, + "description": "App Instance Logs configuration", + "title": "App Instance Logs configuration", + "required": [ + "access" + ] + }, + "AppInstanceRefreshAndPurge": { + "type": "object", + "properties": { + "purge": { + "type": "boolean" + } + } + }, + "AppInstanceSnapshot": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the app instance snapshot", + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "Snapshot name. Unique across the application instance" + }, + "state": { + "$ref": "#/definitions/SnapshotState", + "description": "Status of the snapshot" + }, + "config": { + "type": "object", + "$ref": "#/definitions/AppInstance", + "description": "The complete configuration of the application instance" + }, + "activate": { + "type": "boolean", + "description": "Indicates whether the snapshot should be activated" + }, + "immediate": { + "type": "boolean", + "description": "Indicates that the snapshot should be taken immediately" + } + }, + "description": "App instance snapshot", + "title": "App instance snapshot", + "required": [ + "name" + ] + }, + "AppType": { + "type": "string", + "enum": [ + "APP_TYPE_UNSPECIFIED", + "APP_TYPE_VM", + "APP_TYPE_VM_RUNTIME", + "APP_TYPE_CONTAINER", + "APP_TYPE_MODULE", + "APP_TYPE_DOCKER_COMPOSE" + ], + "default": "APP_TYPE_UNSPECIFIED", + "description": "type of app bundle." + }, + "BaseOSImage": { + "type": "object", + "properties": { + "uuid": { + "type": "string", + "description": "system generated unique id for an image" + }, + "version": { + "type": "string", + "description": "image version" + }, + "imageName": { + "type": "string", + "description": "image name" + }, + "activate": { + "type": "boolean", + "description": "activation flag" + }, + "imvolId": { + "type": "string", + "description": "immutable Volume for this base image" + } + }, + "description": "Base OS image request details", + "title": "Base OS image payload detail", + "required": [ + "uuid", + "version", + "imageName", + "activate" + ] + }, + "BaseosUpdate": { + "type": "object", + "properties": { + "baseimage": { + "$ref": "#/definitions/BaseOSImage" + } + } + }, + "BulkConfig": { + "type": "object", + "properties": { + "selectionCriteria": { + "$ref": "#/definitions/SelectionCriteria" + }, + "jobId": { + "type": "string" + }, + "jobName": { + "type": "string" + }, + "baseosUpdate": { + "$ref": "#/definitions/BaseosUpdate" + }, + "instanceDeploy": { + "$ref": "#/definitions/AppInstanceDeploy" + }, + "instanceRefreshAndPurge": { + "$ref": "#/definitions/AppInstanceRefreshAndPurge" + }, + "modelImport": { + "$ref": "#/definitions/ModelImport" + }, + "bundleImport": { + "$ref": "#/definitions/BundleImport" + }, + "tagUpdate": { + "$ref": "#/definitions/TagUpdate" + }, + "deploymentTagUpdate": { + "$ref": "#/definitions/DeploymentTagUpdate" + }, + "deviceProjectAndTargetUpdate": { + "$ref": "#/definitions/DeviceProjectAndTargetUpdate" + } + }, + "description": "config required for bulk ops." + }, + "BulkInstanceConfig": { + "type": "object", + "properties": { + "deviceId": { + "type": "string" + }, + "appInstanceConfig": { + "$ref": "#/definitions/AppInstance" + }, + "netInstanceDetail": { + "$ref": "#/definitions/NetworkConfigOrDefault" + }, + "netInstanceConfig": { + "type": "array", + "items": { + "$ref": "#/definitions/NetInstConfig" + } + } + } + }, + "BulkService": { + "type": "string", + "enum": [ + "BULK_SERVICE_UNSPECIFIED", + "BULK_SERVICE_BASEOS_UPDATE", + "BULK_SERVICE_APPINSTANCE_DEPLOY", + "BULK_SERVICE_APPINSTANCE_REFRESH", + "BULK_SERVICE_APPINSTANCE_PURGE", + "BULK_SERVICE_MODEL_IMPORT", + "BULK_SERVICE_BUNDLE_IMPORT", + "BULK_SERVICE_APPINSTANCE_CERT_UPDATE", + "BULK_SERVICE_APPINSTANCE_DELETE", + "BULK_SERVICE_BASEOS_UPDATE_RETRY", + "BULK_SERVICE_APPINSTANCE_UPDATE", + "BULK_SERVICE_DEVICE_TAG_UPDATE", + "BULK_SERVICE_DEVICE_TAG_DEPLOYMENT_UPDATE", + "BULK_SERVICE_DEVICE_PROJECT_AND_TARGET_UPDATE", + "BULK_SERVICE_DEPLOYMENT_CREATE", + "BULK_SERVICE_APPLY_PATCH_ENVELOPE" + ], + "default": "BULK_SERVICE_UNSPECIFIED", + "title": "type of bulk operation" + }, + "BundleDetail": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "parentBundleId": { + "type": "string" + } + } + }, + "BundleImport": { + "type": "object", + "properties": { + "bundleConfig": { + "type": "array", + "items": { + "$ref": "#/definitions/BundleDetail" + } + } + } + }, + "Cursor": { + "type": "object", + "properties": { + "pageToken": { + "type": "string", + "description": "Page Token" + }, + "orderBy": { + "type": "array", + "items": { + "type": "string" + }, + "description": "OrderBy helps in sorting the list response" + }, + "pageNum": { + "type": "number", + "format": "int64", + "description": "Page Number" + }, + "pageSize": { + "type": "number", + "format": "int64", + "description": "Defines the page size" + }, + "totalPages": { + "type": "number", + "format": "int64", + "description": "Total number of pages to be fetched." + } + }, + "description": "Cursor helps in filtering the various list response like edge-app bundle list, model list, bundle list etc. ", + "title": "Cursor is used as filter in list operation." + }, + "CustomConfig": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of CustomConfig (Required)" + }, + "add": { + "type": "boolean", + "description": "Add the Custom Config to App Instance (Optional. Default: False)" + }, + "override": { + "type": "boolean", + "description": "Override existing custom config from App Bundle Manifest (Optional. Default: False)" + }, + "allowStorageResize": { + "type": "boolean", + "description": "Allow Appinstance storage to be resized after app instance is created. (Optional. Default: False)" + }, + "fieldDelimiter": { + "type": "string", + "description": "Field delimiter used in specifying variables in template. (Required)" + }, + "template": { + "type": "string", + "description": "base64 encrypted template string. (Optional)" + }, + "variableGroups": { + "type": "array", + "items": { + "$ref": "#/definitions/CustomConfigVariableGroup" + }, + "description": "List of Variable groups. (Required)" + } + } + }, + "CustomConfigVariableGroup": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the Variable Group(Required)" + }, + "variables": { + "type": "array", + "items": { + "$ref": "#/definitions/VariableGroupVariable" + }, + "description": "List of variables(Required)" + }, + "required": { + "type": "boolean", + "description": "Indicates if the variable group is required to be specified for the App Instance. (Optional. Default:False)" + }, + "condition": { + "$ref": "#/definitions/VariableGroupCondition", + "description": "Condition to apply the variable group. (Optional. Default: None)" + } + } + }, + "CustomUpdateModelFields": { + "type": "object", + "properties": { + "customModelAttributes": { + "$ref": "#/definitions/ModelAttributes" + } + } + }, + "DeploymentTagUpdate": { + "type": "object", + "properties": { + "deploymentTag": { + "type": "string", + "description": "deployment tag to be updated on the device", + "readOnly": true + } + }, + "description": "deployment tag will be required to target deployment version on the device", + "title": "deployment tag required for the devices", + "required": [ + "deploymentTag" + ] + }, + "DeploymentType": { + "type": "string", + "enum": [ + "DEPLOYMENT_TYPE_UNSPECIFIED", + "DEPLOYMENT_TYPE_STAND_ALONE", + "DEPLOYMENT_TYPE_AZURE", + "DEPLOYMENT_TYPE_K3S", + "DEPLOYMENT_TYPE_AWS", + "DEPLOYMENT_TYPE_K3S_AZURE", + "DEPLOYMENT_TYPE_K3S_AWS", + "DEPLOYMENT_TYPE_VMWARE_VCE", + "DEPLOYMENT_TYPE_VMWARE_TKG_ATTACH", + "DEPLOYMENT_TYPE_DOCKER_RUNTIME" + ], + "default": "DEPLOYMENT_TYPE_UNSPECIFIED" + }, + "DeviceProjectAndTargetUpdate": { + "type": "object", + "properties": { + "projectId": { + "type": "string", + "description": "project id." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "tag to be updated on the device", + "readOnly": true + }, + "deploymentTag": { + "type": "string", + "description": "deployment tag to be updated on the device", + "readOnly": true + }, + "override": { + "type": "boolean", + "description": "Set this flag to override given tags over existing tags. Otherwise the tags will be merged/appended" + } + }, + "description": "project id will be required to move the device to a new project", + "title": "project id required for the devices", + "required": [ + "projectId" + ] + }, + "DhcpServerConfig": { + "type": "object", + "properties": { + "subnet": { + "type": "string", + "description": "Subnet address" + }, + "mask": { + "type": "string", + "description": "Subnet Mask" + }, + "gateway": { + "type": "string", + "description": "IP Address of Network Gateway" + }, + "domain": { + "type": "string", + "description": "Network domain" + }, + "ntp": { + "type": "string", + "description": "IP Address of NTP Server", + "title": "ntp will be deprecated" + }, + "dns": { + "type": "array", + "items": { + "type": "string" + }, + "description": "IP Addresses of DNS servers", + "title": "possible DNS ip address" + }, + "dhcpRange": { + "$ref": "#/definitions/dhcpIpRange", + "description": "Range of IP addresses to be used for DHCP" + }, + "ntpServers": { + "type": "array", + "items": { + "$ref": "#/definitions/NtpServer" + }, + "description": "NTP Servers" + } + } + }, + "EIDRegister": { + "type": "object", + "properties": { + "AppCert": { + "type": "string", + "format": "byte", + "description": "app certificate" + }, + "AppPublicKey": { + "type": "string", + "format": "byte", + "description": "App public key" + }, + "AppPrivateKey": { + "type": "string", + "format": "byte", + "description": "App private key" + }, + "UUID": { + "type": "string", + "description": "UUID" + }, + "DisplayName": { + "type": "string", + "description": "Display name" + }, + "LispInstance": { + "type": "number", + "format": "int64", + "description": "Lisp Instance" + }, + "EID": { + "type": "string", + "description": "EID" + }, + "EIDHashLen": { + "type": "number", + "format": "int64", + "description": "EID hash length" + }, + "LispSignature": { + "type": "string", + "description": "Lisp Signature" + }, + "LispMapServers": { + "type": "array", + "items": { + "$ref": "#/definitions/LispServer" + }, + "description": "Lisp Map Server", + "title": "time CreateTime time.Time" + } + }, + "description": "EID Register", + "title": "EID Register detail", + "required": [ + "AppCert", + "AppPublicKey", + "AppPrivateKey", + "UUID", + "DisplayName", + "LispInstance", + "EID", + "EIDHashLen", + "LispSignature", + "LispMapServers" + ] + }, + "InstanceTransitionAction": { + "type": "string", + "enum": [ + "INSTANCE_TA_UNSPECIFIED", + "INSTANCE_TA_NONE", + "INSTANCE_TA_UPDATEREQUIRED", + "INSTANCE_TA_UPDATEWITHRESTART", + "INSTANCE_TA_UPDATEWITHPURGE" + ], + "default": "INSTANCE_TA_UNSPECIFIED", + "description": "- INSTANCE_TA_UNSPECIFIED: Default. Invalid option\n - INSTANCE_TA_NONE: Either Edge app bundle has not changed or Edge app bundle has\nchanged but the changes do not impact Edge app instances\n - INSTANCE_TA_UPDATEREQUIRED: Edge app bundle has changed. Changes impact Edge app Instances\nEdge App instances need to be restarted with temporary loss of access\n - INSTANCE_TA_UPDATEWITHRESTART: Transition Action: Update with Restart\n - INSTANCE_TA_UPDATEWITHPURGE: Edge app bundle has changed. Changes impact Edge app Instances\nEdge App instances need to be deleted and created again with\ntemporary loss of access and permanent loss of data", + "title": "Instance Transition action" + }, + "IoType": { + "type": "string", + "enum": [ + "IO_TYPE_UNSPECIFIED", + "IO_TYPE_ETH", + "IO_TYPE_USB", + "IO_TYPE_COM", + "IO_TYPE_AUDIO", + "IO_TYPE_WLAN", + "IO_TYPE_WWAN", + "IO_TYPE_HDMI", + "IO_TYPE_LTE", + "IO_TYPE_STORAGE_NVME_DEVICE", + "IO_TYPE_STORAGE_SATA_DEVICE", + "IO_TYPE_ETH_PF", + "IO_TYPE_ETH_VF", + "IO_TYPE_USB_CONTROLLER", + "IO_TYPE_USB_DEVICE", + "IO_TYPE_CAN", + "IO_TYPE_VCAN", + "IO_TYPE_LCAN", + "IO_TYPE_VLAN", + "IO_TYPE_OTHER" + ], + "default": "IO_TYPE_UNSPECIFIED", + "description": "- IO_TYPE_UNSPECIFIED: No operation/ Invalid peration\n - IO_TYPE_ETH: Ethernet\n - IO_TYPE_USB: USB Type - General\n - IO_TYPE_COM: Communication Port\n - IO_TYPE_AUDIO: Audio Port\n - IO_TYPE_WLAN: wireless LAN\n - IO_TYPE_WWAN: Wireless wide area network\n - IO_TYPE_HDMI: High-Definition Multimedia Interface\n - IO_TYPE_LTE: LTE Interfaces\n - IO_TYPE_STORAGE_NVME_DEVICE: Storage NVME device\n - IO_TYPE_STORAGE_SATA_DEVICE: Storage SATA device\n - IO_TYPE_ETH_PF: Physical Interface (PF) of the Virtual Functions\n - IO_TYPE_ETH_VF: Virtual Function (VF)\n - IO_TYPE_USB_CONTROLLER: USB Type - Controller\n - IO_TYPE_USB_DEVICE: USB Type - Device\n - IO_TYPE_CAN: CAN - Device\n - IO_TYPE_VCAN: VCAN - Virtual CAN device\n - IO_TYPE_LCAN: LCAN - Logical CAN device\n - IO_TYPE_VLAN: VLAN - Virtual LAN device\n - IO_TYPE_OTHER: Other Io Types", + "title": "Input/Output Type" + }, + "JobConfig": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "User defined name of the job request, unique across the enterprise. Once object is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "id": { + "type": "string", + "description": "System defined universally unique Id of the job request", + "readOnly": true, + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", + "uniqueItems": true + }, + "objectType": { + "$ref": "#/definitions/ObjectType", + "description": "object type for which job has been created" + }, + "operationType": { + "$ref": "#/definitions/BulkService" + }, + "status": { + "$ref": "#/definitions/JobStatus", + "description": "status of the job", + "readOnly": true + }, + "objectList": { + "type": "array", + "items": { + "type": "string" + } + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "start time of the job", + "readOnly": true + }, + "finishTime": { + "type": "string", + "format": "date-time", + "description": "finish time of the job", + "readOnly": true + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined info", + "readOnly": true + }, + "individualOpStatus": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "status of individual field of the given object", + "readOnly": true + }, + "selectionCriteria": { + "$ref": "#/definitions/SelectionCriteria", + "description": "selection criteria for the job", + "readOnly": true + }, + "errorDetailOfJob": { + "type": "string", + "description": "detailed error with which job/task has failed", + "readOnly": true + }, + "title": { + "type": "string", + "description": "user or system specified title" + }, + "description": { + "type": "string", + "description": "user or system specified description" + }, + "projectId": { + "type": "string", + "description": "project Id in which job is getting created" + } + }, + "description": "config required for job ops", + "title": "config required for job ops", + "required": [ + "name", + "objectType" + ] + }, + "JobConfigList": { + "type": "object", + "properties": { + "summaryByState": { + "$ref": "#/definitions/Summary", + "description": "Summary information about job list records." + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/JobConfig" + }, + "description": "Details of job list records." + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "Returned record page." + } + }, + "description": "Returned list of jobs matched by filter criteria", + "title": "Job list records" + }, + "JobStatus": { + "type": "string", + "enum": [ + "JOB_STATUS_UNSPECIFIED", + "JOB_STATUS_INITIALIZED", + "JOB_STATUS_READY", + "JOB_STATUS_INPROGRESS", + "JOB_STATUS_COMPLETED", + "JOB_STATUS_FAILED", + "JOB_STATUS_ABORTED" + ], + "default": "JOB_STATUS_UNSPECIFIED", + "description": "job status." + }, + "LispConfig": { + "type": "object", + "properties": { + "lispiid": { + "type": "number", + "format": "int64", + "description": "lisp id" + }, + "allocate": { + "type": "boolean", + "description": "Allocate flag" + }, + "exportprivate": { + "type": "boolean", + "description": "Export Private flag" + }, + "allocationprefix": { + "type": "string", + "format": "byte", + "description": "Allocation Prefix" + }, + "allocationprefixlen": { + "type": "number", + "format": "int64", + "description": "Allocation Prefix Length" + }, + "sp": { + "type": "array", + "items": { + "$ref": "#/definitions/ServicePoint" + }, + "description": "Service Point List" + } + }, + "description": "List Configurations.", + "title": "Lisp Configurations" + }, + "LispServer": { + "type": "object", + "properties": { + "nameOrIp": { + "type": "string", + "description": "name/IP" + }, + "credential": { + "type": "string", + "description": "lisp credential" + } + }, + "description": "LispServer request payload", + "title": "LispServer payload detail", + "required": [ + "nameOrIp", + "credential" + ] + }, + "ManifestInfo": { + "type": "object", + "properties": { + "bundleVersion": { + "type": "string", + "description": "Current version of edge application being used" + }, + "nextBundleVersion": { + "type": "string", + "description": "Next version of edge application available" + }, + "transitionAction": { + "type": "string", + "$ref": "#/definitions/InstanceTransitionAction", + "description": "Recommended transition action" + }, + "params": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Common and Custom parameters for deciding on transition actions" + }, + "details": { + "$ref": "#/definitions/TransDetails", + "description": "Details for recommended transition action" + }, + "enablevnc": { + "type": "boolean", + "description": "Enable vnc for the app" + } + }, + "description": "Details about transition parameters and indication for cause of the transition and recommendation for the transition action", + "title": "Transition action information" + }, + "ModelAttributes": { + "type": "object", + "properties": { + "memory": { + "type": "string" + }, + "storage": { + "type": "string" + }, + "cpus": { + "type": "string" + } + } + }, + "ModelImport": { + "type": "object", + "properties": { + "modelConfig": { + "type": "array", + "items": { + "$ref": "#/definitions/SysModelDetail" + } + } + } + }, + "NetInstConfig": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the network instance", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the network instance, unique across the enterprise. Once object is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the network instance. Title can be changed at any time", + "maxLength": 256, + "minLength": 3, + "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$" + }, + "description": { + "type": "string", + "description": "Detailed description of the network instance", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined info for the object" + }, + "projectId": { + "type": "string", + "description": "id of the project in which network instance is created" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "clusterID": { + "type": "string", + "description": "id of the Cluster in which the network instance is configured", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "deviceId": { + "type": "string", + "description": "id of the device on which network instance is created", + "title": "device on which this network is running" + }, + "port": { + "type": "string", + "description": "name of port mapping in the model", + "title": "name of port mapping in the model" + }, + "portTags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "kind": { + "$ref": "#/definitions/NetworkInstanceKind", + "description": "Kind of Network Instance ( Local, Switch etc )" + }, + "dhcp": { + "type": "boolean", + "description": "Deprecated", + "title": "dhcp - DEPRECATED" + }, + "type": { + "$ref": "#/definitions/NetworkInstanceDhcpType", + "description": "Type of DHCP for this Network Instance" + }, + "ip": { + "$ref": "#/definitions/DhcpServerConfig", + "description": "Dhcp Server Configuration" + }, + "dnsList": { + "type": "array", + "items": { + "$ref": "#/definitions/StaticDNSList" + }, + "description": "List of Static DNS entries" + }, + "oconfig": { + "type": "string", + "title": "Deprecated" + }, + "lisp": { + "$ref": "#/definitions/LispConfig", + "description": "Lisp Config : read only for now. Deprecated." + }, + "opaque": { + "$ref": "#/definitions/NetInstOpaqueConfig", + "description": "Service specific Config" + }, + "deviceDefault": { + "type": "boolean", + "description": "flag to indicate if this is the default network instance for the device", + "title": "flag to indicate if this is default network" + }, + "networkPolicyId": { + "type": "string", + "description": "id of the network policy to be attached to this network instance" + }, + "propagateConnectedRoutes": { + "type": "boolean", + "description": "Automatically propagate connected routes" + }, + "staticRoutes": { + "type": "array", + "items": { + "$ref": "#/definitions/StaticIPRoute" + }, + "description": "List of Static IP routes" + }, + "mtu": { + "type": "integer", + "format": "int64", + "description": "Maximum transmission unit (MTU) to set for the network instance and all application interfaces connected to it" + }, + "edgeNodeCluster": { + "$ref": "#/definitions/NetInstEdgeNodeCluster", + "description": "Edge Node Cluster" + }, + "forwardLldp": { + "type": "boolean", + "description": "Enables forwarding of LLDP (Link Layer Discovery Protocol) frames across this\nnetwork instance.\nLLDP is used by devices to advertise identity and capabilities to directly\nconnected neighbors, and is often required for topology discovery and network\nmanagement tools.\nWhen enabled, LLDP frames (EtherType 0x88cc) are not dropped or suppressed\nby the forwarding plane." + } + }, + "description": "Network instance provides Edge applications a variety of connectivity choices for all types of networks. This enables logical secure connectivity between Edge applications within a single Edge node and within a logical group of Edge nodes. This provides detailed configuration of a Network instance.", + "title": "Network instance detailed configuration", + "required": [ + "name", + "title", + "deviceId", + "port", + "kind" + ] + }, + "NetInstEdgeNodeCluster": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Id of the Edge Node Cluster", + "pattern": "[0-9A-Za-z-]+" + }, + "designatedNodeID": { + "type": "string", + "description": "Id of the designated Edge Node", + "pattern": "[0-9A-Za-z-]+" + } + } + }, + "NetInstOpaqueConfig": { + "type": "object", + "properties": { + "type": { + "type": "string", + "$ref": "#/definitions/OpaqueConfigType", + "description": "type of Opaque config" + }, + "oconfig": { + "type": "string", + "description": "base64 encoded string of opaque config" + }, + "lisp": { + "type": "string", + "$ref": "#/definitions/LispConfig", + "description": "Deprecated - Lisp config", + "title": "lisp - Deprecated" + } + }, + "description": "Network Instance Opaque config. This is service specific configuration." + }, + "NetworkConfigOrDefault": { + "type": "object", + "properties": { + "netInstanceDefault": { + "type": "boolean" + }, + "netInstanceConfig": { + "$ref": "#/definitions/NetInstConfig" + } + } + }, + "NetworkInstanceDhcpType": { + "type": "string", + "enum": [ + "NETWORK_INSTANCE_DHCP_TYPE_UNSPECIFIED", + "NETWORK_INSTANCE_DHCP_TYPE_V4", + "NETWORK_INSTANCE_DHCP_TYPE_V6", + "NETWORK_INSTANCE_DHCP_TYPE_CRYPTOEID", + "NETWORK_INSTANCE_DHCP_TYPE_CRYPTOV4", + "NETWORK_INSTANCE_DHCP_TYPE_CRYPTOV6" + ], + "default": "NETWORK_INSTANCE_DHCP_TYPE_UNSPECIFIED", + "title": "NetworkInstanceDhcpType: Used in the network instance provide\n dhcp server configuration" + }, + "NetworkInstanceKind": { + "type": "string", + "enum": [ + "NETWORK_INSTANCE_KIND_UNSPECIFIED", + "NETWORK_INSTANCE_KIND_TRANSPARENT", + "NETWORK_INSTANCE_KIND_SWITCH", + "NETWORK_INSTANCE_KIND_LOCAL", + "NETWORK_INSTANCE_KIND_CLOUD", + "NETWORK_INSTANCE_KIND_MESH", + "NETWORK_INSTANCE_KIND_HONEYPOT" + ], + "default": "NETWORK_INSTANCE_KIND_UNSPECIFIED" + }, + "NtpServer": { + "type": "object", + "properties": { + "server": { + "type": "string", + "description": "NTP Server IP or FQDN" + } + }, + "description": "NTP Server", + "title": "NTP Server" + }, + "ObjectRevision": { + "type": "object", + "properties": { + "prev": { + "type": "string", + "description": "Previous" + }, + "curr": { + "type": "string", + "description": "Current Database version of the record" + }, + "createdAt": { + "type": "object", + "format": "date-time", + "description": "The time, in milliseconds since the epoch, when the record was created." + }, + "createdBy": { + "type": "string", + "description": "User data: Created By" + }, + "updatedAt": { + "type": "object", + "format": "date-time", + "description": "The time, in milliseconds since the epoch, when the record was last updated." + }, + "updatedBy": { + "type": "string", + "description": "User data: Updated By" + } + }, + "description": "ObjectRevision store the user details, who has doent the necessary operation like Create Operation or update operation", + "title": "ObjectRevision is used to store the user information.", + "required": [ + "curr", + "createdAt", + "createdBy", + "updatedAt", + "updatedBy" + ] + }, + "ObjectType": { + "type": "string", + "enum": [ + "OBJECT_TYPE_UNSPECIFIED", + "OBJECT_TYPE_USER", + "OBJECT_TYPE_EDGE_NODE", + "OBJECT_TYPE_EDGE_APP", + "OBJECT_TYPE_IMAGE", + "OBJECT_TYPE_EDGE_APP_INSTANCE", + "OBJECT_TYPE_PROJECT", + "OBJECT_TYPE_NETWORK", + "OBJECT_TYPE_DATASTORE", + "OBJECT_TYPE_SERVICE", + "OBJECT_TYPE_SERVICE_INSTANCE", + "OBJECT_TYPE_ENTERPRISE", + "OBJECT_TYPE_ROLE", + "OBJECT_TYPE_CREDENTIAL", + "OBJECT_TYPE_NETWORK_INSTANCE", + "OBJECT_TYPE_VOLUME_INSTANCE", + "OBJECT_TYPE_REALM", + "OBJECT_TYPE_AUTHPROFILE", + "OBJECT_TYPE_POLICY", + "OBJECT_TYPE_APP_POLICY", + "OBJECT_TYPE_CLUSTER_INSTANCE", + "OBJECT_TYPE_PLUGIN", + "OBJECT_TYPE_DOC_POLICY", + "OBJECT_TYPE_ORCHESTRATOR_CLUSTER", + "OBJECT_TYPE_TAGS", + "OBJECT_TYPE_EDGE_NODE_INTERFACE", + "OBJECT_TYPE_DEPLOYMENT", + "OBJECT_TYPE_ENTITLEMENTS", + "OBJECT_TYPE_DATA_STREAM", + "OBJECT_TYPE_API_USAGE", + "OBJECT_TYPE_APP_INSTANCE_SNAPSHOT", + "OBJECT_TYPE_PATCH_ENVELOPE", + "OBJECT_TYPE_RESOURCE_USAGE_TRACK", + "OBJECT_TYPE_PATCH_ENVELOPE_REFERENCE", + "OBJECT_TYPE_DEV_PASSTHROUGH", + "OBJECT_TYPE_EDGE_NODE_CLUSTER", + "OBJECT_TYPE_ASSET_GROUP", + "OBJECT_TYPE_APP_PROFILE", + "OBJECT_TYPE_PROFILE_DEPLOYMENT", + "OBJECT_TYPE_ZKS_INSTANCE", + "OBJECT_TYPE_CLUSTER_GROUP" + ], + "default": "OBJECT_TYPE_UNSPECIFIED" + }, + "OpaqueConfigType": { + "type": "string", + "enum": [ + "OPAQUE_CONFIG_TYPE_UNSPECIFIED", + "OPAQUE_CONFIG_TYPE_VPN", + "OPAQUE_CONFIG_TYPE_LISP" + ], + "default": "OPAQUE_CONFIG_TYPE_UNSPECIFIED" + }, + "ProbeConfig": { + "type": "object", + "properties": { + "enableGatewayPing": { + "type": "boolean", + "description": "Enable gateway ping" + }, + "pingMaxCost": { + "type": "number", + "format": "int64", + "description": "Ping max cost" + }, + "preferLowerCost": { + "type": "boolean", + "description": "Prefer lower cost" + }, + "preferStrongerWwanSignal": { + "type": "boolean", + "description": "Prefer stronger WWAN signal" + }, + "customProbeConfig": { + "type": "object", + "$ref": "#/definitions/commonConnectivityProbe", + "description": "Custom probe configuration" + } + }, + "description": "Probing configuration", + "title": "Probing configuration" + }, + "SelectionCriteria": { + "type": "object", + "properties": { + "projectId": { + "type": "string" + }, + "bundleId": { + "type": "string" + }, + "deviceIdList": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "ServicePoint": { + "type": "object", + "properties": { + "type": { + "type": "object", + "$ref": "#/definitions/spType", + "description": "Service Point Type" + }, + "NameOrIp": { + "type": "string", + "description": "Service name/ service name" + }, + "Credential": { + "type": "string", + "description": "Service credentials" + } + }, + "description": "Service Point", + "title": "Service Point" + }, + "SnapshotState": { + "type": "string", + "enum": [ + "INVALID", + "IDLE", + "CREATING", + "CREATED", + "CREATE_FAILED", + "ROLLING_BACK", + "ACTIVE", + "ROLLBACK_FAILED", + "DELETING", + "DELETE_FAILED", + "DELETED" + ], + "default": "INVALID" + }, + "StaticDNSList": { + "type": "object", + "properties": { + "hostname": { + "type": "string", + "description": "Host name" + }, + "addrs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Addresses" + } + }, + "description": "Static DNS list", + "title": "Static DNS list" + }, + "StaticIPRoute": { + "type": "object", + "properties": { + "prefix": { + "type": "string", + "description": "IP Prefix" + }, + "gateway": { + "type": "string", + "description": "Gateway IP" + }, + "outputPort": { + "type": "string", + "description": "Output Port" + }, + "probeConfig": { + "type": "object", + "$ref": "#/definitions/ProbeConfig", + "description": "Probe Configuration" + } + }, + "description": "Static IP Routes", + "title": "Static IP Routes" + }, + "Summary": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Summary description" + }, + "total": { + "type": "number", + "format": "int64", + "description": "Total" + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "integer", + "format": "int64" + }, + "description": "Values: Map for storing " + } + }, + "description": "Summary is used to store the Summary details", + "title": "Summary is used to store the Summary details" + }, + "SysModelDetail": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "parentModelId": { + "type": "string" + }, + "customModelFields": { + "$ref": "#/definitions/CustomUpdateModelFields" + } + } + }, + "TagUpdate": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "tag to be updated on the device", + "readOnly": true + }, + "override": { + "type": "boolean", + "description": "Set this flag to override given tags over existing tags. Otherwise the tags will be merged/appended" + } + }, + "description": "device tag will be required to auto deploy objects on the device", + "title": "tags required for the devices", + "required": [ + "tags" + ] + }, + "TransCause": { + "type": "string", + "enum": [ + "TRANS_CAUSE_UNSPECIFIED", + "TRANS_CAUSE_APP_DRIVE_CHANGED", + "TRANS_CAUSE_APP_NETWORK_CHANGED", + "TRANS_CAUSE_APP_CUSTOM_CONFIG_CHANGED", + "TRANS_CAUSE_APP_MODULE_BUNDLE_UPDATE", + "TRANS_CAUSE_APP_DESC_CHANGED", + "TRANS_CAUSE_APP_FIXED_RESOURCES_CHANGED", + "TRANS_CAUSE_APP_VNC_MODE_CHANGED", + "TRANS_CAUSE_APP_VM_MODE_CHANGED", + "TRANS_CAUSE_INTER_CA_EXPIRING", + "TRANS_CAUSE_INTER_CA_EXPIRED", + "TRANS_CAUSE_DEVICE_CA_EXPIRING", + "TRANS_CAUSE_DEVICE_CA_EXPIRED", + "TRANS_CAUSE_IDENTITY_CA_EXPIRING", + "TRANS_CAUSE_IDENTITY_CA_EXPIRED", + "TRANS_CAUSE_APP_COMPOSE_TAR_IMAGE_CHANGED", + "TRANS_CAUSE_APP_COMPOSE_YAML_CHANGED", + "TRANS_CAUSE_APP_COMPOSE_DATASTORE_CHANGED", + "TRANS_CAUSE_APP_ENABLE_VM_CONFIG_CHANGED" + ], + "default": "TRANS_CAUSE_UNSPECIFIED" + }, + "TransDetails": { + "type": "object", + "properties": { + "cause": { + "$ref": "#/definitions/TransCause", + "description": "Cause of the transition action" + }, + "severity": { + "type": "string", + "description": "Urgency of the recommended action (ERROR - must take action immediately, WARN - must take action but not immediately, NOTICE - may take action" + }, + "scope": { + "$ref": "#/definitions/ActionScope", + "description": "Scope of the action (e.g. project, cluster, instance)" + } + } + }, + "VariableFileEncoding": { + "type": "string", + "enum": [ + "FILE_ENCODING_UNSPECIFIED", + "FILE_ENCODING_BASE64" + ], + "default": "FILE_ENCODING_UNSPECIFIED", + "description": "- FILE_ENCODING_UNSPECIFIED: File content not encoded\n - FILE_ENCODING_BASE64: File content encoded in Base64", + "title": "File content encoding type" + }, + "VariableGroupCondition": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + }, + "operator": { + "$ref": "#/definitions/VariableGroupConditionOperator" + } + } + }, + "VariableGroupConditionOperator": { + "type": "string", + "enum": [ + "CONDITION_OPERATOR_UNSPECIFIED", + "CONDITION_OPERATOR_EQUALTO", + "CONDITION_OPERATOR_NOTEQUALTO" + ], + "default": "CONDITION_OPERATOR_UNSPECIFIED" + }, + "VariableGroupVariable": { + "type": "object", + "example": { + "format": "VARIABLE_FORMAT_TEXT", + "name": "username", + "label": "Enter User Name", + "required": "True" + }, + "properties": { + "type": { + "type": "string" + }, + "name": { + "type": "string", + "description": "Name of the Variable (Required)" + }, + "label": { + "type": "string", + "description": "Label for the variable (Required)" + }, + "maxLength": { + "type": "string", + "description": "Max length of the value of the variable(Optional. Default: 1024)" + }, + "required": { + "type": "boolean", + "description": "This variable MUST be specified when creating an App Instance. (Optional. Default: False)" + }, + "default": { + "type": "string", + "description": "Default value of the variable. (Optional. Default: )" + }, + "processInput": { + "type": "string" + }, + "value": { + "type": "string", + "description": "User-specified value of the variable.(Required if required is true. Optional otherwise)" + }, + "format": { + "$ref": "#/definitions/VariableVariableFormat", + "description": "Format of the user variable. (Required)" + }, + "encode": { + "$ref": "#/definitions/VariableFileEncoding", + "description": "Encoding of file content. Applicable if format is VARIABLE_FORMAT_FILE" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/VariableOptionVal" + }, + "description": "Key-Value pair of options. Applicable if format is VARIABLE_FORMAT_DROPDOWN" + } + }, + "description": "Edge Application Artifact Details", + "title": "Edge Application detail", + "required": [ + "format", + "name", + "label", + "required" + ] + }, + "VariableOptionVal": { + "type": "object", + "properties": { + "label": { + "type": "string", + "description": "Display label of the key in User-Agent" + }, + "value": { + "type": "string", + "description": "Value of the key to be used" + } + } + }, + "VariableVariableFormat": { + "type": "string", + "enum": [ + "VARIABLE_FORMAT_UNSPECIFIED", + "VARIABLE_FORMAT_TEXT", + "VARIABLE_FORMAT_NUMBER", + "VARIABLE_FORMAT_FILE", + "VARIABLE_FORMAT_DROPDOWN", + "VARIABLE_FORMAT_BOOLEAN", + "VARIABLE_FORMAT_PASSWORD" + ], + "default": "VARIABLE_FORMAT_UNSPECIFIED", + "description": "- VARIABLE_FORMAT_UNSPECIFIED: Invalid format\n - VARIABLE_FORMAT_TEXT: Value in string format\n - VARIABLE_FORMAT_NUMBER: Value in integer format\n - VARIABLE_FORMAT_FILE: Value to be read from a file\n - VARIABLE_FORMAT_DROPDOWN: Value to be selected from dropdown of options\n - VARIABLE_FORMAT_BOOLEAN: Value in boolean format\n - VARIABLE_FORMAT_PASSWORD: Value in string to be masked in User-Agent", + "title": "Custom variable format" + }, + "VmBootloaderMode": { + "type": "string", + "enum": [ + "VM_BOOTLOADER_MODE_UNSPECIFIED", + "VM_BOOTLOADER_MODE_LEGACY", + "VM_BOOTLOADER_MODE_UEFI" + ], + "default": "VM_BOOTLOADER_MODE_UNSPECIFIED", + "title": "VmBootloaderMode is used to specify the bootloader mode that will be used for the VM.\nIt represents the boot mechanism to be used to boot the VM" + }, + "ZcOpsStatus": { + "type": "string", + "enum": [ + "OPS_STATUS_UNSPECIFIED", + "OPS_STATUS_PENDING", + "OPS_STATUS_ONGOING", + "OPS_STATUS_COMPLETE" + ], + "default": "OPS_STATUS_UNSPECIFIED", + "description": "- OPS_STATUS_PENDING: In rare cases, system may not start operation when it was requested. Client will be notified that operation is PENDING\n - OPS_STATUS_ONGOING: system will start the operation, but at the time response was generated, operation is still ONGOING.\n - OPS_STATUS_COMPLETE: Even if the result of the operations may result in failure, but the OpsStatus will marked COMPLETE for almost all cases.", + "title": "ZedCloud internal operation status" + }, + "ZcOpsType": { + "type": "string", + "enum": [ + "OPS_TYPE_UNSPECIFIED", + "OPS_TYPE_READ", + "OPS_TYPE_DELETE", + "OPS_TYPE_CREATE", + "OPS_TYPE_UPDATE", + "OPS_TYPE_LIST" + ], + "default": "OPS_TYPE_UNSPECIFIED", + "title": "ZedCloud internal operation type" + }, + "ZedCloudOpsCmd": { + "type": "object", + "properties": { + "counter": { + "type": "number", + "format": "int64", + "description": "counter" + }, + "opsTime": { + "type": "object", + "format": "date-time", + "description": "Timestamp: Operational time" + } + }, + "description": "Zed cloud Operation command", + "title": "Zed cloud Operation command" + }, + "ZsrvError": { + "type": "object", + "properties": { + "ec": { + "$ref": "#/definitions/ZsrvErrorCode", + "title": "Enumrated error code, describes more granular numerical\nvalue than just httpStatus" + }, + "location": { + "type": "string", + "title": "Ignore: Internal field only" + }, + "details": { + "type": "string", + "title": "Field captures string description of details" + } + } + }, + "ZsrvErrorCode": { + "type": "string", + "enum": [ + "zMsgErrorNone", + "zMsgSucess", + "NotFound", + "AlreadyExists", + "VersionMismatch", + "RangeError", + "LargeResult", + "IncompleteData", + "InvalidData", + "FunctionUnsupported", + "NoMemory", + "SendFailure", + "Timeout", + "BadReqBody", + "BadReqParam", + "InvalidFieldFormat", + "UrlNotFound", + "ApiVersionNotSupported", + "Unauthorized", + "Forbidden", + "Conflict", + "NotModified", + "DependencyConflict", + "JsonFmtError", + "ProtoFmtError", + "CertError", + "DataBaseConnection", + "DBError", + "zMsgAccepted", + "zMsgCreated", + "PreConditionFailed", + "InternalServerError" + ], + "default": "zMsgErrorNone", + "description": "- zMsgErrorNone: common validation errors\n - IncompleteData: message had fields that weren't filled in\n - InvalidData: message contained the field that wasn't expected\n - FunctionUnsupported: this feature unavailable on this version of device\n - InvalidFieldFormat: message contained the field that wasn't correctly formatted\n - JsonFmtError: Marshal / Unmarshal errors\n - DataBaseConnection: generic DB error", + "title": "ZedCould internal error code" + }, + "ZsrvResponse": { + "type": "object", + "properties": { + "operationType": { + "$ref": "#/definitions/ZcOpsType", + "title": "Describes one of the operations type : possible values\n Read/Delete/Create/Update/List" + }, + "operationStatus": { + "$ref": "#/definitions/ZcOpsStatus", + "title": "if this is log running job" + }, + "objectKind": { + "type": "string", + "title": "zedcloud object kind on which the operation was performed" + }, + "objectId": { + "type": "string", + "title": "Unique value identifies the object that was operated on" + }, + "objectName": { + "type": "string", + "title": "name of the object" + }, + "objectRevision": { + "type": "string", + "title": "object revision post the operation, note Read operation\ndoesn't change the revision" + }, + "objectType": { + "$ref": "#/definitions/ObjectType" + }, + "operationTime": { + "type": "string", + "title": "time of operation" + }, + "startTime": { + "type": "string", + "title": "total time taken by operations" + }, + "endTime": { + "type": "string" + }, + "user": { + "type": "string", + "title": "the operation is performed on behalf of this user" + }, + "httpStatusCode": { + "type": "integer", + "format": "int32", + "title": "http response" + }, + "httpStatusMsg": { + "type": "string", + "title": "summary of the error in text format" + }, + "jobId": { + "type": "string", + "title": "for tracking asynchronous tasks" + }, + "error": { + "type": "array", + "items": { + "$ref": "#/definitions/ZsrvError" + }, + "title": "one or more errors will be set if the operation failed\ni.e. httpStatusCode != 2xx" + } + } + }, + "appACE": { + "type": "object", + "properties": { + "matches": { + "type": "array", + "items": { + "$ref": "#/definitions/appACEMatch" + }, + "description": "app ACE match" + }, + "actions": { + "type": "array", + "items": { + "$ref": "#/definitions/appACEAction" + }, + "description": "app ACE actions" + }, + "id": { + "type": "number", + "format": "int32", + "description": "app ACE id" + }, + "name": { + "type": "string", + "description": "User defined name of the app ACE, unique across the enterprise. Once object is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + } + }, + "description": "App ACE Configuration", + "title": "App ACE detaisn", + "required": [ + "matches", + "actions", + "id", + "name" + ] + }, + "appACEAction": { + "type": "object", + "properties": { + "drop": { + "type": "boolean", + "description": "ACE drop flag" + }, + "limit": { + "type": "boolean", + "description": "ACE limit flag" + }, + "limitrate": { + "type": "number", + "format": "int64", + "description": "ACE limit rate" + }, + "limitunit": { + "type": "string", + "description": "ACE limit unit" + }, + "limitburst": { + "type": "number", + "format": "int64", + "description": "ACE limit burst" + }, + "portmap": { + "type": "boolean", + "description": "application port map flag" + }, + "mapparams": { + "$ref": "#/definitions/appMapParams", + "description": "Application map params" + } + }, + "description": "App ACE actions", + "title": "App ACE Action", + "required": [ + "drop", + "limit", + "limitrate", + "limitunit", + "limitburst", + "portmap", + "mapparams" + ] + }, + "appACEMatch": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Type" + }, + "value": { + "type": "string", + "description": "Value" + } + }, + "description": "App ACE Match", + "title": "appACEMatch detail", + "required": [ + "type", + "value" + ] + }, + "appInterface": { + "type": "object", + "properties": { + "netname": { + "type": "string", + "description": "network name: will be deprecated in future, use netinstname" + }, + "io": { + "$ref": "#/definitions/phyAdapter", + "description": "Physical Adapter to be matched for interface assignment. Applicable only when \"direct attach\" flag is true" + }, + "intforder": { + "type": "number", + "format": "int64", + "description": "intforder" + }, + "intfname": { + "type": "string", + "description": "intf Name" + }, + "directattach": { + "type": "boolean", + "description": "direct attach flag", + "title": "comes from manifest during app create" + }, + "privateip": { + "type": "boolean", + "description": "Private IP flag" + }, + "acls": { + "type": "array", + "items": { + "$ref": "#/definitions/appACE" + }, + "description": "app Acls" + }, + "ipaddr": { + "type": "string", + "description": "IP address", + "title": "if netname points static DHCP then we need to take\nstatic /32 address here" + }, + "macaddr": { + "type": "string", + "description": "MAC address", + "title": "in case of p2v we might want to provide a mac-address.\napplicable only in case of DHCP=passthrough" + }, + "accessVlanId": { + "type": "number", + "format": "int64", + "description": "access port VLAN ID, vlan id of zero will be treated as trunk port and vlan id 1 is implicitly used by linux bridges", + "maximum": 4093, + "minimum": 2 + }, + "eidregister": { + "$ref": "#/definitions/EIDRegister", + "description": "EID register details", + "title": "FIXME: Check why is this required" + }, + "netinstname": { + "type": "string", + "description": "Network Instance name to be matched for interface assignment. Applicable only when \"direct attach\" flag is false" + }, + "netinsttag": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Network Instance tag to be matched for interface assignment. Applicable only when \"direct attach\" flag is false" + }, + "netinstid": { + "type": "string", + "description": "Network Instance id to be matched for interface assignment." + }, + "defaultNetInstance": { + "type": "boolean", + "description": "default instance flag" + }, + "allowToDiscover": { + "type": "boolean", + "description": "flag tells if appInstance have permission to access the network mappings from the connected netInstance" + } + }, + "description": "App Interface detail", + "title": "App Interface detail", + "required": [ + "intfname" + ] + }, + "appMapParams": { + "type": "object", + "properties": { + "port": { + "type": "number", + "format": "int64", + "description": "Application port" + } + }, + "description": "Application map parameters", + "title": "App map Params detail", + "required": [ + "port" + ] + }, + "commonConnectivityProbe": { + "type": "object", + "properties": { + "probeMethod": { + "$ref": "#/definitions/commonConnectivityProbeMethod", + "description": "Method to use to determine the connectivity status." + }, + "probeEndpoint": { + "$ref": "#/definitions/commonProbeEndpoint", + "description": "Endpoint to probe using the selected probing mechanism to determine\nthe connectivity status." + } + }, + "description": "Configuration for user-defined connectivity-testing probe." + }, + "commonConnectivityProbeMethod": { + "type": "string", + "enum": [ + "CONNECTIVITY_PROBE_METHOD_UNSPECIFIED", + "CONNECTIVITY_PROBE_METHOD_ICMP", + "CONNECTIVITY_PROBE_METHOD_TCP" + ], + "default": "CONNECTIVITY_PROBE_METHOD_UNSPECIFIED", + "description": "User-defined method to use to determine the connectivity status.\n\n - CONNECTIVITY_PROBE_METHOD_UNSPECIFIED: Connectivity probing method is not specified and therefore will not be used.\n - CONNECTIVITY_PROBE_METHOD_ICMP: Use ICMP ping against the probed endpoint to determine the connectivity status.\n - CONNECTIVITY_PROBE_METHOD_TCP: Try to establish TCP connection with the probed endpoint to determine the connectivity\nstatus." + }, + "commonProbeEndpoint": { + "type": "object", + "properties": { + "host": { + "type": "string", + "description": "IP address or FQDN." + }, + "port": { + "type": "integer", + "format": "int64", + "description": "TCP port required for CONNECTIVITY_PROBE_METHOD_TCP.\nLeave empty for CONNECTIVITY_PROBE_METHOD_ICMP." + } + }, + "description": "Address of a remote endpoint to probe in order to determine connectivity status." + }, + "dhcpIpRange": { + "type": "object", + "properties": { + "start": { + "type": "string", + "description": "starting IP" + }, + "end": { + "type": "string", + "description": "ending IP" + } + }, + "description": "DHCP IP range", + "title": "DHCP IP range" + }, + "drive": { + "type": "object", + "properties": { + "imagename": { + "type": "string", + "description": "Name of Image Object used for the drive." + }, + "maxsize": { + "type": "number", + "format": "uint64", + "description": "Drive maximum size" + }, + "readonly": { + "type": "boolean", + "description": "Read only flag. If set, drive is mounted as readonly by app instance." + }, + "preserve": { + "type": "boolean", + "description": "Preserve the drive even when all app instances using it are deleted" + }, + "drvtype": { + "type": "string", + "description": "Type of Drive. Valid Values: UNSPECIFIED, CDROM, HDD, NET, HDD_EMPTY. HDD_EMPTY - is to allocate the empty disk of maxsizebytes specified" + }, + "target": { + "type": "string", + "description": "type of target. Valid values: Disk, Kernel, Initrd, RamDisk" + }, + "volumelabel": { + "type": "string", + "description": "User defined volume to use for this drive " + }, + "mvolname": { + "type": "string", + "description": "mutable Volume for this drive. Only one of imvolname and mvolname must be specified." + }, + "imvolname": { + "type": "string", + "description": "immutable Volume for this drive. Only one of imvolname and mvolname must be specified." + }, + "ignorepurge": { + "type": "boolean", + "description": "don't purge this drive as part of purge command for mutable volumes" + }, + "cleartext": { + "type": "boolean", + "description": "If set, don't encrypt the drive. Store in cleartext" + }, + "mountpath": { + "type": "string", + "description": "Mount Path for the drive in the App Instance" + }, + "runtimeInternal": { + "type": "boolean", + "description": "If set, the drive is internal to the runtime and not externally exposed with API", + "readOnly": true + } + }, + "description": "Drive configuration", + "title": "Drive details", + "required": [ + "imagename", + "maxsize", + "readonly", + "preserve", + "drvtype", + "target" + ] + }, + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "hvMode": { + "type": "string", + "enum": [ + "HV_PV", + "HV_HVM", + "HV_FML", + "HV_NOHYPER", + "HV_LEGACY" + ], + "default": "HV_PV", + "description": "For now we need to tell the device which virtualization mode\nto use. Later we might use a single one for all VMs (on any particular\nISA). If we end up keeping this we should make the names be less\ntied to a particular hypervisor." + }, + "phyAdapter": { + "type": "object", + "properties": { + "type": { + "type": "object", + "$ref": "#/definitions/IoType", + "description": "IoType specifies the type of the Input output of the device" + }, + "name": { + "type": "string", + "description": "Physical Adapter name" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + } + }, + "description": "Physical Adapter", + "title": "Physical Adapter" + }, + "protobufAny": { + "type": "object", + "properties": { + "typeUrl": { + "type": "string" + }, + "value": { + "type": "string", + "format": "byte" + } + } + }, + "spType": { + "type": "string", + "enum": [ + "SPTYPE_INVALIDSRV", + "SPTYPE_MAPSERVER", + "SPTYPE_SUPPORTSERVER" + ], + "default": "SPTYPE_INVALIDSRV", + "description": "clone of types defined in API repo.\n\n - SPTYPE_MAPSERVER: mapping service for zededa overlay service\n - SPTYPE_SUPPORTSERVER: if device has support feature enabled, this ia cloud service\nwhich device can be reached." + }, + "vm": { + "type": "object", + "properties": { + "cpus": { + "type": "number", + "format": "int64", + "description": "CPUs" + }, + "memory": { + "type": "number", + "format": "int64", + "description": "Memory" + }, + "mode": { + "$ref": "#/definitions/hvMode", + "description": "Hardware Virtualization" + }, + "vnc": { + "type": "boolean", + "description": "VNC" + }, + "vncDisplay": { + "type": "number", + "format": "int64", + "description": "VNC display", + "readOnly": true + }, + "cpuPinningEnabled": { + "type": "boolean", + "description": "Enable CpuPinning" + }, + "vmmMaxmem": { + "type": "integer", + "format": "int64", + "description": "Maximum amount of memory in kbytes allowed for VM monitor to occupy" + }, + "bootloaderMode": { + "$ref": "#/definitions/VmBootloaderMode", + "description": "The bootloader mode that will be used for the VM. Default is VM_BOOTLOADER_MODE_LEGACY" + }, + "enableOemWinLicenseKey": { + "type": "boolean", + "description": "Enable device which has VM to receive the Windows license embedded in the ACPI tables" + }, + "disableVTPM": { + "type": "boolean", + "description": "Disable vTPM for virtual machines (VM)" + } + }, + "description": "Virtual machine memory configuration", + "title": "vm detail", + "required": [ + "cpus", + "memory", + "mode", + "vnc" + ] + } + }, + "securityDefinitions": { + "BearerToken": { + "type": "apiKey", + "description": "Bearer token for user session", + "name": "Authorization", + "in": "header" + } + }, + "security": [ + { + "BearerToken": [] + } + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/jobs" + } +} \ No newline at end of file diff --git a/openapi/zedge_kubernetes_service.swagger.json b/openapi/zedge_kubernetes_service.swagger.json new file mode 100644 index 0000000..49302e1 --- /dev/null +++ b/openapi/zedge_kubernetes_service.swagger.json @@ -0,0 +1,7114 @@ +{ + "swagger": "2.0", + "info": { + "title": "ZEDEDA Kubernetes Service", + "description": "The ZEDEDA Kubernetes Service provides APIs for managing Kubernetes deployments and Helm charts in edge clusters.", + "termsOfService": "https://www.zededa.com/terms", + "version": "1.0", + "contact": { + "name": "ZEDEDA API Support", + "url": "https://www.zededa.com/support", + "email": "support@zededa.com" + }, + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.html" + } + }, + "tags": [ + { + "name": "KubernetesDeployments", + "description": "APIs for managing Kubernetes deployments" + }, + { + "name": "HelmChartManagement", + "description": "APIs for managing Helm charts in Kubernetes clusters. Provides operations for importing, creating, updating, deleting, and retrieving Helm charts from both global and enterprise-specific repositories." + }, + { + "name": "KubernetesGitOps", + "description": "APIs for managing GitOps configurations and continuous deployment from Git repositories to Kubernetes clusters" + }, + { + "name": "PrivateHelmRepositories", + "description": "APIs for managing private Helm repositories and their authentication configurations" + }, + { + "name": "KubernetesSecrets", + "description": "APIs for managing Kubernetes secrets including SSH keys, basic authentication credentials, and other sensitive data. Supports create, read, and list operations." + }, + { + "name": "ZKSClusterInstances", + "description": "APIs for managing ZKS (ZEDEDA Kubernetes Service) cluster instances including creation, management, node operations, and status monitoring" + }, + { + "name": "ClusterGroups", + "description": "APIs for managing cluster groups including creation, deletion, status monitoring, and manifest generation" + }, + { + "name": "KubernetesSnapshots", + "description": "APIs for managing etcd snapshots on Kubernetes clusters" + }, + { + "name": "KubernetesDashboard", + "description": "APIs for the embedded Kubernetes dashboard \u2014 SA-scoped proxy, kubeconfig download, and cluster-shell WebSocket" + } + ], + "basePath": "/api", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/v1/cluster/instances/kubernetes/deployments": { + "get": { + "summary": "List all deployments", + "description": "Retrieve a list of all Kubernetes deployments. Includes summary statistics and deployment status information.\n\n**Example Request:**\n```\nGET /v1/cluster/instances/kubernetes/deployments\n```\n\n**Example Response:**\n```json\n{\n \"total_count\": 3,\n \"state_summary\": {\n \"ready\": 2,\n \"pending\": 1,\n \"failed\": 0\n },\n \"deployments\": [\n {\n \"id\": \"dep-abc123\",\n \"name\": \"nginx-deployment\",\n \"title\": \"NGINX Web Server\",\n \"description\": \"Production NGINX deployment\",\n \"project_id\": \"proj-12345\",\n \"type\": \"HELMCHART\",\n \"deployment_status\": \"Ready\",\n \"created_at\": \"2024-01-15T10:30:00Z\",\n \"updated_at\": \"2024-01-15T11:00:00Z\"\n },\n {\n \"id\": \"dep-def456\",\n \"name\": \"redis-cache\",\n \"title\": \"Redis Cache\",\n \"description\": \"Redis caching layer\",\n \"project_id\": \"proj-12345\",\n \"type\": \"HELMCHART\",\n \"deployment_status\": \"Ready\",\n \"created_at\": \"2024-01-14T15:20:00Z\",\n \"updated_at\": \"2024-01-14T15:25:00Z\"\n }\n ]\n}\n```", + "operationId": "KubernetesDeployments_ListDeployments", + "responses": { + "200": { + "description": "Successfully retrieved deployment list", + "schema": { + "$ref": "#/definitions/DeploymentListResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to list deployments.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to retrieve deployments due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "tags": [ + "KubernetesDeployments" + ], + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ] + }, + "post": { + "summary": "Create a new Kubernetes deployment", + "description": "Create a new Kubernetes deployment with Helm charts or other supported deployment types. This API supports both single-cluster and multi-cluster deployments.\n\n**Example Request:**\n```json\n{\n \"type\": \"HELMCHART\",\n \"metadata\": {\n \"name\": \"nginx-deployment\",\n \"title\": \"NGINX Web Server\",\n \"description\": \"Production NGINX deployment with custom configuration\",\n \"project_id\": \"proj-12345\"\n },\n \"data\": {\n \"helm_chart_data\": {\n \"chart\": {\n \"name\": \"nginx\",\n \"version\": \"15.4.0\",\n \"custom_values\": {\n \"replicaCount\": 3,\n \"service\": {\n \"type\": \"LoadBalancer\",\n \"port\": 80\n },\n \"ingress\": {\n \"enabled\": true,\n \"hosts\": [\"nginx.example.com\"]\n }\n },\n \"repo_identifier\": \"bitnami\"\n },\n \"target_clusters\": {\n \"is_multi_cluster\": false,\n \"cluster_metadata\": {\n \"cluster_id\": \"cluster-abc123\",\n \"orchestrator_cluster_id\": \"rancher-cluster-123\",\n \"cluster_name\": \"production-k8s\",\n \"kube_version\": \"v1.28.0\"\n }\n }\n }\n }\n}\n```\n\n**Example Response:**\n```json\n{\n \"operationType\": \"OPS_TYPE_UNSPECIFIED\",\n \"operationStatus\": \"OPS_STATUS_UNSPECIFIED\",\n \"objectKind\": \"\",\n \"objectId\": \"dep-abc123\",\n \"objectName\": \"nginx-deployment\",\n \"objectRevision\": \"\",\n \"objectType\": \"OBJECT_TYPE_UNSPECIFIED\",\n \"operationTime\": \"\",\n \"startTime\": \"\",\n \"endTime\": \"\",\n \"user\": \"\",\n \"httpStatusCode\": 201,\n \"httpStatusMsg\": \"\",\n \"jobId\": \"\",\n \"error\": [\n {\n \"ec\": \"zMsgSucess\",\n \"location\": \"\",\n \"details\": \"\"\n }\n ]\n}\n```", + "operationId": "KubernetesDeployments_CreateDeployment", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "201": { + "description": "Successfully created deployment", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. Invalid deployment configuration or missing required fields.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to create deployments.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. Deployment with the same name already exists.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to create deployment due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DeploymentRequest" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "KubernetesDeployments" + ] + } + }, + "/v1/cluster/instances/kubernetes/deployments/id/{deploymentId}": { + "get": { + "summary": "Get deployment by ID", + "description": "Retrieve detailed information about a specific Kubernetes deployment including its current status, configuration, and metadata.\n\n**Example Request:**\n```\nGET /v1/cluster/instances/kubernetes/deployments/id/dep-abc123\n```\n\n**Example Response:**\n```json\n{\n \"id\": \"dep-abc123\",\n \"name\": \"nginx-deployment\",\n \"title\": \"NGINX Web Server\",\n \"description\": \"Production NGINX deployment with custom configuration\",\n \"project_id\": \"proj-12345\",\n \"type\": \"HELMCHART\",\n \"spec\": {\n \"helm_chart_data\": {\n \"chart\": {\n \"name\": \"nginx\",\n \"version\": \"15.4.0\",\n \"custom_values\": {\n \"replicaCount\": 3,\n \"service\": {\n \"type\": \"LoadBalancer\",\n \"port\": 80\n }\n },\n \"repo_identifier\": \"bitnami\"\n },\n \"target_clusters\": {\n \"is_multi_cluster\": false,\n \"cluster_metadata\": {\n \"cluster_id\": \"cluster-abc123\",\n \"cluster_name\": \"production-k8s\"\n }\n }\n }\n },\n \"deployment_status\": \"Ready\",\n \"created_at\": \"2024-01-15T10:30:00Z\",\n \"updated_at\": \"2024-01-15T11:00:00Z\",\n \"created_by\": \"user@example.com\",\n \"updated_by\": \"user@example.com\"\n}\n```", + "operationId": "KubernetesDeployments_GetDeployment", + "responses": { + "200": { + "description": "Successfully retrieved deployment", + "schema": { + "$ref": "#/definitions/DeploymentGetResponse" + } + }, + "400": { + "description": "Bad Request. Invalid deployment ID format.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to view this deployment.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. Deployment with the specified ID does not exist.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to retrieve deployment due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "deploymentId", + "description": "Unique identifier of the deployment (required). Example: 'dep-abc123'", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "KubernetesDeployments" + ] + }, + "delete": { + "summary": "Delete a deployment", + "description": "Delete a Kubernetes deployment and all its associated resources. This action is irreversible and will remove the deployment from all target clusters.\n\n**Example Request:**\n```\nDELETE /v1/cluster/instances/kubernetes/deployments/id/dep-abc123\n```\n\n**Example Response:**\n```json\n{\n \"operationType\": \"OPS_TYPE_UNSPECIFIED\",\n \"operationStatus\": \"OPS_STATUS_UNSPECIFIED\",\n \"objectKind\": \"\",\n \"objectId\": \"dep-abc123\",\n \"objectName\": \"nginx-deployment\",\n \"objectRevision\": \"\",\n \"objectType\": \"OBJECT_TYPE_UNSPECIFIED\",\n \"operationTime\": \"\",\n \"startTime\": \"\",\n \"endTime\": \"\",\n \"user\": \"\",\n \"httpStatusCode\": 200,\n \"httpStatusMsg\": \"\",\n \"jobId\": \"\",\n \"error\": [\n {\n \"ec\": \"zMsgSucess\",\n \"location\": \"\",\n \"details\": \"\"\n }\n ]\n}\n```\n\n**Note:** The deployment_id parameter is **required** and must be a valid deployment identifier.", + "operationId": "KubernetesDeployments_DeleteDeployment", + "responses": { + "200": { + "description": "Successfully deleted deployment", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. Invalid deployment ID format.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to delete this deployment.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. Deployment with the specified ID does not exist.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. Cannot delete deployment due to dependencies or current state.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to delete deployment due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "deploymentId", + "description": "Unique identifier of the deployment (required). Example: 'dep-abc123'", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "KubernetesDeployments" + ] + }, + "put": { + "summary": "Update a deployment", + "description": "Update an existing Kubernetes deployment configuration. This can include updating Helm chart values, changing target clusters, or modifying deployment metadata.\n\n**Example Request:**\n```\nPUT /v1/cluster/instances/kubernetes/deployments/id/dep-abc123\n```\n\n```json\n{\n \"deployment_id\": \"dep-abc123\",\n \"deployment_request\": {\n \"type\": \"HELMCHART\",\n \"metadata\": {\n \"name\": \"nginx-deployment\",\n \"title\": \"NGINX Web Server - Updated\",\n \"description\": \"Updated NGINX deployment with SSL configuration\",\n \"project_id\": \"proj-12345\"\n },\n \"data\": {\n \"helm_chart_data\": {\n \"chart\": {\n \"name\": \"nginx\",\n \"version\": \"15.5.0\",\n \"custom_values\": {\n \"replicaCount\": 5,\n \"service\": {\n \"type\": \"LoadBalancer\",\n \"port\": 80\n },\n \"ingress\": {\n \"enabled\": true,\n \"hosts\": [\"nginx.example.com\"],\n \"tls\": {\n \"enabled\": true,\n \"secretName\": \"nginx-tls\"\n }\n }\n },\n \"repo_identifier\": \"bitnami\"\n },\n \"target_clusters\": {\n \"is_multi_cluster\": false,\n \"cluster_metadata\": {\n \"cluster_id\": \"cluster-abc123\",\n \"orchestrator_cluster_id\": \"rancher-cluster-123\",\n \"cluster_name\": \"production-k8s\",\n \"kube_version\": \"v1.28.0\"\n }\n }\n }\n }\n }\n}\n```\n\n**Example Response:**\n```json\n{\n \"operationType\": \"OPS_TYPE_UNSPECIFIED\",\n \"operationStatus\": \"OPS_STATUS_UNSPECIFIED\",\n \"objectKind\": \"\",\n \"objectId\": \"dep-abc123\",\n \"objectName\": \"nginx-deployment\",\n \"objectRevision\": \"\",\n \"objectType\": \"OBJECT_TYPE_UNSPECIFIED\",\n \"operationTime\": \"\",\n \"startTime\": \"\",\n \"endTime\": \"\",\n \"user\": \"\",\n \"httpStatusCode\": 200,\n \"httpStatusMsg\": \"\",\n \"jobId\": \"\",\n \"error\": [\n {\n \"ec\": \"zMsgSucess\",\n \"location\": \"\",\n \"details\": \"\"\n }\n ]\n}\n```", + "operationId": "KubernetesDeployments_UpdateDeployment", + "responses": { + "200": { + "description": "Successfully updated deployment", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. Invalid deployment configuration or ID format.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to update this deployment.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. Deployment with the specified ID does not exist.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. Update conflicts with current deployment state.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to update deployment due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "deploymentId", + "description": "Unique identifier of the deployment to update (required). Example: 'dep-abc123'", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "description": "Updated deployment configuration (required)", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DeploymentRequest", + "description": "Updated deployment configuration (required)" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "KubernetesDeployments" + ] + } + }, + "/v1/cluster/instances/kubernetes/gitrepos": { + "get": { + "summary": "List all GitRepo configurations", + "description": "Retrieve a list of all GitRepo configurations with their status and summary information. Includes statistics about sync status and resource counts.\n\n**Example Request:**\n```\nGET /v1/cluster/instances/kubernetes/gitrepos\n```\n\n**Example Response:**\n```json\n{\n \"totalCount\": 2,\n \"stateSummary\": {\n \"description\": \"GitRepo Status Summary\",\n \"total\": 2,\n \"values\": {\n \"Active\": 1,\n \"Pending\": 1\n }\n },\n \"gitrepos\": [\n {\n \"id\": \"gitrepo-abc123\",\n \"name\": \"app-manifests\",\n \"title\": \"Application Manifests Repository\",\n \"description\": \"Git repository containing production application manifests\",\n \"workspace\": \"default\",\n \"status\": {\n \"display\": {\n \"ready_bundle_deployments\": \"3/3\",\n \"state\": \"Active\"\n }\n },\n \"created_at\": \"2024-01-15T10:30:00Z\",\n \"updated_at\": \"2024-01-15T11:00:00Z\"\n },\n {\n \"id\": \"gitrepo-def456\",\n \"name\": \"helm-charts\",\n \"title\": \"Helm Charts Repository\",\n \"description\": \"Repository containing Helm chart definitions\",\n \"workspace\": \"default\",\n \"status\": {\n \"display\": {\n \"ready_bundle_deployments\": \"0/2\",\n \"state\": \"Pending\"\n }\n },\n \"created_at\": \"2024-01-14T15:20:00Z\",\n \"updated_at\": \"2024-01-14T15:25:00Z\"\n }\n ]\n}\n```", + "operationId": "KubernetesGitOps_ListGitRepos", + "responses": { + "200": { + "description": "Successfully retrieved GitRepo configuration list", + "schema": { + "$ref": "#/definitions/GitRepoListResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to list GitRepo configurations.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to retrieve GitRepo list due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "tags": [ + "KubernetesGitOps" + ], + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ] + }, + "post": { + "summary": "Create a new GitRepo configuration", + "description": "Create a new GitRepo configuration to enable continuous deployment from a Git repository. This allows automatic synchronization of Kubernetes manifests or Helm charts from a Git repository to target clusters.\n\n**Example Request:**\n```json\n{\n \"metadata\": {\n \"name\": \"app-manifests\",\n \"title\": \"Application Manifests Repository\",\n \"description\": \"Git repository containing production application manifests\"\n },\n \"data\": {\n \"project_id\": \"proj-12345\",\n \"repo_details\": {\n \"url\": \"https://github.com/myorg/k8s-manifests.git\",\n \"branch\": \"main\",\n \"path_list\": [\"applications/\", \"ingress/\"]\n },\n \"auth\": {\n \"git\": {\n \"secret\": {\n \"type\": \"SECRET_TYPE_OPAQUE\",\n \"name\": \"git-credentials\"\n }\n }\n },\n \"target\": {\n \"type\": \"GIT_REPO_TARGET_TYPE_CLUSTER\",\n \"value\": \"cluster-abc123\"\n }\n }\n}\n```\n\n**Example Response:**\n```json\n{\n \"operationType\": \"OPS_TYPE_UNSPECIFIED\",\n \"operationStatus\": \"OPS_STATUS_UNSPECIFIED\",\n \"objectKind\": \"\",\n \"objectId\": \"gitrepo-abc123\",\n \"objectName\": \"app-manifests\",\n \"objectRevision\": \"\",\n \"objectType\": \"OBJECT_TYPE_UNSPECIFIED\",\n \"operationTime\": \"\",\n \"startTime\": \"\",\n \"endTime\": \"\",\n \"user\": \"\",\n \"httpStatusCode\": 201,\n \"httpStatusMsg\": \"\",\n \"jobId\": \"\",\n \"error\": [\n {\n \"ec\": \"zMsgSucess\",\n \"location\": \"\",\n \"details\": \"\"\n }\n ]\n}\n```", + "operationId": "KubernetesGitOps_CreateGitRepo", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "201": { + "description": "Successfully created GitRepo configuration", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. Invalid GitRepo configuration or missing required fields.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to create GitRepo configurations.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. GitRepo configuration with the same name already exists.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to create GitRepo configuration due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GitRepoCreateRequest" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "KubernetesGitOps" + ] + } + }, + "/v1/cluster/instances/kubernetes/gitrepos/id/{gitrepoId}": { + "get": { + "summary": "Get GitRepo configuration by ID", + "description": "Retrieve detailed information about a specific GitRepo configuration including its current status, sync information, and metadata.\n\n**Example Request:**\n```\nGET /v1/cluster/instances/kubernetes/gitrepos/id/gitrepo-abc123\n```\n\n**Example Response:**\n```json\n{\n \"id\": \"gitrepo-abc123\",\n \"name\": \"app-manifests\",\n \"title\": \"Application Manifests Repository\",\n \"description\": \"Git repository containing production application manifests\",\n \"workspace\": \"default\",\n \"data\": {\n \"project_id\": \"proj-12345\",\n \"repo_details\": {\n \"url\": \"https://github.com/myorg/k8s-manifests.git\",\n \"branch\": \"main\",\n \"commit\": \"a1b2c3d4e5f6\",\n \"path_list\": [\"applications/\", \"ingress/\"]\n },\n \"target\": {\n \"type\": \"GIT_REPO_TARGET_TYPE_CLUSTER\",\n \"value\": \"cluster-abc123\"\n }\n },\n \"status\": {\n \"display\": {\n \"ready_bundle_deployments\": \"3/3\",\n \"state\": \"Active\"\n },\n \"conditions\": [\n {\n \"type\": \"Ready\",\n \"status\": \"True\",\n \"message\": \"GitRepo is ready and syncing\"\n }\n ],\n \"resource_counts\": {\n \"ready\": 3,\n \"desired_ready\": 3\n }\n },\n \"created_at\": \"2024-01-15T10:30:00Z\",\n \"updated_at\": \"2024-01-15T11:00:00Z\",\n \"created_by\": \"user@example.com\",\n \"updated_by\": \"user@example.com\"\n}\n```", + "operationId": "KubernetesGitOps_GetGitRepo", + "responses": { + "200": { + "description": "Successfully retrieved GitRepo configuration", + "schema": { + "$ref": "#/definitions/GitRepoGetResponse" + } + }, + "400": { + "description": "Bad Request. Invalid GitRepo ID format.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to view this GitRepo configuration.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. GitRepo configuration with the specified ID does not exist.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to retrieve GitRepo configuration due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "gitrepoId", + "description": "Unique identifier of the GitRepo (required). Example: 'gitrepo-abc123'", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "KubernetesGitOps" + ] + }, + "delete": { + "summary": "Delete GitRepo configuration", + "description": "Delete a GitRepo configuration. This will stop the synchronization from the Git repository and remove all associated resources from the target clusters. This action is irreversible.\n\n**Example Request:**\n```\nDELETE /v1/cluster/instances/kubernetes/gitrepos/id/gitrepo-abc123\n```\n\n**Example Response:**\n```json\n{\n \"operationType\": \"OPS_TYPE_UNSPECIFIED\",\n \"operationStatus\": \"OPS_STATUS_UNSPECIFIED\",\n \"objectKind\": \"\",\n \"objectId\": \"gitrepo-abc123\",\n \"objectName\": \"app-manifests\",\n \"objectRevision\": \"\",\n \"objectType\": \"OBJECT_TYPE_UNSPECIFIED\",\n \"operationTime\": \"\",\n \"startTime\": \"\",\n \"endTime\": \"\",\n \"user\": \"\",\n \"httpStatusCode\": 200,\n \"httpStatusMsg\": \"\",\n \"jobId\": \"\",\n \"error\": [\n {\n \"ec\": \"zMsgSucess\",\n \"location\": \"\",\n \"details\": \"\"\n }\n ]\n}\n```\n\n**Warning:** This operation will remove the GitRepo configuration and stop synchronization. All resources deployed through this GitRepo will be removed from target clusters.\n\n**Note:** The gitrepo_id parameter is **required** and must be a valid GitRepo identifier.", + "operationId": "KubernetesGitOps_DeleteGitRepo", + "responses": { + "200": { + "description": "Successfully deleted GitRepo configuration", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. Invalid GitRepo ID format.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to delete this GitRepo configuration.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. GitRepo configuration with the specified ID does not exist.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. Cannot delete GitRepo configuration because it is currently in use or in a transitioning state.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to delete GitRepo configuration due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "gitrepoId", + "description": "Unique identifier of the GitRepo (required). Example: 'gitrepo-abc123'", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "KubernetesGitOps" + ] + }, + "put": { + "summary": "Update GitRepo configuration", + "description": "Update an existing GitRepo configuration. This allows modification of repository details, authentication settings, and target configuration. The GitRepo name cannot be changed after creation.\n\n**Example Request:**\n```json\n{\n \"gitrepo_id\": \"gitrepo-abc123\",\n \"metadata\": {\n \"name\": \"app-manifests\",\n \"title\": \"Updated Application Manifests Repository\",\n \"description\": \"Updated Git repository containing production application manifests\"\n },\n \"data\": {\n \"project_id\": \"proj-12345\",\n \"repo_details\": {\n \"url\": \"https://github.com/myorg/k8s-manifests.git\",\n \"branch\": \"production\",\n \"path_list\": [\"applications/\", \"ingress/\", \"monitoring/\"]\n },\n \"auth\": {\n \"git\": {\n \"secret\": {\n \"type\": \"SECRET_TYPE_OPAQUE\",\n \"name\": \"updated-git-credentials\"\n }\n }\n },\n \"target\": {\n \"type\": \"GIT_REPO_TARGET_TYPE_CLUSTER_GROUP\",\n \"value\": \"production-clusters\"\n }\n }\n}\n```\n\n**Example Response:**\n```json\n{\n \"operationType\": \"OPS_TYPE_UNSPECIFIED\",\n \"operationStatus\": \"OPS_STATUS_UNSPECIFIED\",\n \"objectKind\": \"\",\n \"objectId\": \"gitrepo-abc123\",\n \"objectName\": \"app-manifests\",\n \"objectRevision\": \"\",\n \"objectType\": \"OBJECT_TYPE_UNSPECIFIED\",\n \"operationTime\": \"\",\n \"startTime\": \"\",\n \"endTime\": \"\",\n \"user\": \"\",\n \"httpStatusCode\": 200,\n \"httpStatusMsg\": \"\",\n \"jobId\": \"\",\n \"error\": [\n {\n \"ec\": \"zMsgSucess\",\n \"location\": \"\",\n \"details\": \"\"\n }\n ]\n}\n```", + "operationId": "KubernetesGitOps_UpdateGitRepo", + "responses": { + "200": { + "description": "Successfully updated GitRepo configuration", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. Invalid GitRepo configuration or missing required fields.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to update this GitRepo configuration.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. GitRepo configuration with the specified ID does not exist.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. Cannot update GitRepo configuration due to conflicting state.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to update GitRepo configuration due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "gitrepoId", + "description": "Unique identifier of the GitRepo to update (required). Example: 'gitrepo-abc123'", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/definitions/GitRepoMetadata", + "description": "Metadata for the GitRepo (name cannot be updated, required)" + }, + "data": { + "$ref": "#/definitions/GitRepoData", + "description": "Data specification for the GitRepo (required)" + } + }, + "description": "Request message for updating an existing GitRepo configuration", + "title": "GitRepo update request", + "required": [ + "gitrepo_id", + "metadata", + "data" + ] + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "KubernetesGitOps" + ] + } + }, + "/v1/cluster/instances/kubernetes/helm/charts": { + "get": { + "summary": "List Helm Charts", + "description": "Retrieve a list of all available Helm charts in the project repository with their versions and metadata.\n\n**Example Request:**\n```\nGET /v1/cluster/instances/kubernetes/helm/charts\n```\n\n**Example Response:**\n```json\n{\n \"api_version\": \"v2\",\n \"generated\": \"2024-01-15T12:00:00Z\",\n \"repo_identifier\": \"project-charts\",\n \"repo_name\": \"Project Repository\",\n \"entries\": {\n \"nginx\": [\n {\n \"name\": \"nginx\",\n \"version\": \"15.4.0\",\n \"app_version\": \"1.25.3\",\n \"description\": \"NGINX Open Source based on NGINX Alpine\",\n \"created\": \"2024-01-10T09:00:00Z\",\n \"digest\": \"sha256:abc123def456...\",\n \"urls\": [\"/charts/nginx-15.4.0.tgz\"]\n },\n {\n \"name\": \"nginx\",\n \"version\": \"15.3.0\",\n \"app_version\": \"1.25.2\",\n \"description\": \"NGINX Open Source based on NGINX Alpine\",\n \"created\": \"2024-01-05T14:30:00Z\",\n \"digest\": \"sha256:def456ghi789...\",\n \"urls\": [\"/charts/nginx-15.3.0.tgz\"]\n }\n ],\n \"redis\": [\n {\n \"name\": \"redis\",\n \"version\": \"18.1.0\",\n \"app_version\": \"7.2.3\",\n \"description\": \"Redis is an in-memory database\",\n \"created\": \"2024-01-12T16:45:00Z\",\n \"digest\": \"sha256:ghi789jkl012...\",\n \"urls\": [\"/charts/redis-18.1.0.tgz\"]\n }\n ]\n }\n}\n```", + "operationId": "HelmChartManagement_ListHelmCharts", + "responses": { + "200": { + "description": "OK. Successfully retrieved list of Helm charts.", + "schema": { + "$ref": "#/definitions/HelmChartListResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because of invalid credentials.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the user does not have access to the resource.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to retrieve chart list.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "tags": [ + "HelmChartManagement" + ], + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ] + }, + "post": { + "summary": "Create Helm Chart", + "description": "Upload and create a new Helm chart package in the project repository. The chart package should be provided as a .tgz file using multipart/form-data with the field name 'chart'.\n\n**Example Request using curl:**\n```bash\ncurl -X POST \\\n -H \"X-API-KEY: your-api-key\" \\\n -F \"chart=@nginx-chart-1.0.0.tgz\" \\\n https://api.zededa.com/api/v1/cluster/instances/kubernetes/helm/charts\n```\n\n**Example Response:**\n```json\n{\n \"operationType\": \"OPS_TYPE_UNSPECIFIED\",\n \"operationStatus\": \"OPS_STATUS_UNSPECIFIED\",\n \"objectKind\": \"\",\n \"objectId\": \"4495fb8b-187e-4fc1-8c28-6a8ac6629833\",\n \"objectName\": \"nginx-chart\",\n \"objectRevision\": \"\",\n \"objectType\": \"OBJECT_TYPE_UNSPECIFIED\",\n \"operationTime\": \"\",\n \"startTime\": \"\",\n \"endTime\": \"\",\n \"user\": \"\",\n \"httpStatusCode\": 201,\n \"httpStatusMsg\": \"\",\n \"jobId\": \"\",\n \"error\": [\n {\n \"ec\": \"zMsgSucess\",\n \"location\": \"\",\n \"details\": \"\"\n }\n ]\n}\n```\n\n**Note:** The chart file (*.tgz) is **required** and must be a valid Helm chart package.", + "operationId": "HelmChartManagement_CreateHelmChart", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "201": { + "description": "Created. Helm chart successfully uploaded and created in the project repository.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. Invalid chart file format or missing required chart metadata.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because of invalid credentials.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the user does not have access to the resource.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. A chart with the same name and version already exists in the repository.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to process chart upload or repository operation.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "tags": [ + "HelmChartManagement" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + }, + { + "name": "chart", + "in": "formData", + "required": true, + "type": "file", + "description": "Helm chart package file (.tgz format)", + "x-mimetype": "application/gzip" + } + ], + "consumes": [ + "multipart/form-data" + ] + } + }, + "/v1/cluster/instances/kubernetes/helm/charts/name/{chartName}": { + "delete": { + "summary": "Delete Helm Chart", + "description": "Delete a Helm chart from the project repository. This action is irreversible and will remove all versions of the specified chart.\n\n**Example Request:**\n```\nDELETE /v1/cluster/instances/kubernetes/helm/charts/name/nginx\n```\n\n**Example Response:**\n```json\n{\n \"operationType\": \"OPS_TYPE_UNSPECIFIED\",\n \"operationStatus\": \"OPS_STATUS_UNSPECIFIED\",\n \"objectKind\": \"\",\n \"objectId\": \"4495fb8b-187e-4fc1-8c28-6a8ac6629833\",\n \"objectName\": \"nginx\",\n \"objectRevision\": \"\",\n \"objectType\": \"OBJECT_TYPE_UNSPECIFIED\",\n \"operationTime\": \"\",\n \"startTime\": \"\",\n \"endTime\": \"\",\n \"user\": \"\",\n \"httpStatusCode\": 200,\n \"httpStatusMsg\": \"\",\n \"jobId\": \"\",\n \"error\": [\n {\n \"ec\": \"zMsgSucess\",\n \"location\": \"\",\n \"details\": \"\"\n }\n ]\n}\n```\n\n**Warning:** This operation will delete ALL versions of the specified chart. If you need to delete a specific version, use the update operation to remove that version from the repository.\n\n**Note:** The chart_name parameter is **required** and must be a valid chart name in the repository.", + "operationId": "HelmChartManagement_DeleteHelmChart", + "responses": { + "200": { + "description": "OK. Helm chart successfully deleted from the repository.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because of invalid credentials.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the user does not have access to the resource.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The specified chart name and version combination does not exist.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. Cannot delete chart because it is currently in use by deployments.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to delete chart from repository.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "chartName", + "description": "Name of the Helm chart (required). Example: 'nginx'", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "HelmChartManagement" + ] + } + }, + "/v1/cluster/instances/kubernetes/helm/charts/name/{chartName}/version/{chartVersion}": { + "get": { + "summary": "Get Helm Chart", + "description": "Retrieve detailed information about a specific Helm chart including its metadata, default values, and configuration options.\n\n**Example Request:**\n```\nGET /v1/cluster/instances/kubernetes/helm/charts/name/nginx/version/15.4.0?repo_identifier=bitnami\n```\n\n**Example Response:**\n```json\n{\n \"readme\": \"# NGINX Chart\\n\\nThis chart deploys NGINX on Kubernetes...\",\n \"app_readme\": \"# NGINX Application\\n\\nNGINX is a web server...\",\n \"questions\": {\n \"replicaCount\": {\n \"type\": \"integer\",\n \"label\": \"Number of replicas\",\n \"default\": 1,\n \"min\": 1,\n \"max\": 10\n },\n \"service.type\": {\n \"type\": \"enum\",\n \"label\": \"Service type\",\n \"options\": [\"ClusterIP\", \"NodePort\", \"LoadBalancer\"]\n }\n },\n \"values\": {\n \"replicaCount\": 1,\n \"image\": {\n \"repository\": \"bitnami/nginx\",\n \"tag\": \"1.25.3\",\n \"pullPolicy\": \"IfNotPresent\"\n },\n \"service\": {\n \"type\": \"ClusterIP\",\n \"port\": 80\n }\n },\n \"chart\": {\n \"name\": \"nginx\",\n \"version\": \"15.4.0\",\n \"app_version\": \"1.25.3\",\n \"description\": \"NGINX Open Source based on NGINX Alpine\",\n \"home\": \"https://github.com/bitnami/charts/tree/main/bitnami/nginx\",\n \"sources\": [\"https://github.com/bitnami/containers/tree/main/bitnami/nginx\"],\n \"keywords\": [\"nginx\", \"http\", \"web\", \"www\", \"reverse proxy\"],\n \"maintainers\": [\n {\n \"name\": \"VMware, Inc.\",\n \"url\": \"https://github.com/bitnami/charts\"\n }\n ]\n },\n \"repo_identifier\": \"bitnami\"\n}\n```\n\n**Note:** Both chart_name and chart_version are **required** parameters. repo_identifier is **optional** and defaults to the local repository.", + "operationId": "HelmChartManagement_GetHelmChart", + "responses": { + "200": { + "description": "OK. Successfully retrieved Helm chart information.", + "schema": { + "$ref": "#/definitions/HelmChartInfoResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because of invalid credentials.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the user does not have access to the resource.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The specified chart name and version combination does not exist.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to retrieve chart information.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "chartName", + "description": "Name of the Helm chart (required). Example: 'nginx'", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "chartVersion", + "description": "Version of the Helm chart (required). Example: '15.4.0'", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "repoIdentifier", + "description": "Identifier for the Helm chart repository (optional). Example: 'bitnami'. Defaults to local repository if not specified", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "HelmChartManagement" + ] + }, + "put": { + "summary": "Update Helm Chart", + "description": "Update an existing Helm chart with a new chart package. The chart name and version must match the existing chart being updated. The chart package should be provided as a .tgz file using multipart/form-data with the field name 'chart'.\n\n**Example Request using curl:**\n```bash\ncurl -X PUT \\\n -H \"X-API-KEY: your-api-key\" \\\n -F \"chart=@nginx-chart-1.0.1.tgz\" \\\n https://api.zededa.com/api/v1/cluster/instances/kubernetes/helm/charts/name/nginx/version/1.0.0\n```\n\n**Example Response:**\n```json\n{\n \"operationType\": \"OPS_TYPE_UNSPECIFIED\",\n \"operationStatus\": \"OPS_STATUS_UNSPECIFIED\",\n \"objectKind\": \"\",\n \"objectId\": \"4495fb8b-187e-4fc1-8c28-6a8ac6629833\",\n \"objectName\": \"nginx-chart\",\n \"objectRevision\": \"\",\n \"objectType\": \"OBJECT_TYPE_UNSPECIFIED\",\n \"operationTime\": \"\",\n \"startTime\": \"\",\n \"endTime\": \"\",\n \"user\": \"\",\n \"httpStatusCode\": 200,\n \"httpStatusMsg\": \"\",\n \"jobId\": \"\",\n \"error\": [\n {\n \"ec\": \"zMsgSucess\",\n \"location\": \"\",\n \"details\": \"\"\n }\n ]\n}\n```\n\n**Note:** Both chart_name and chart_version path parameters are **required** and must match an existing chart.", + "operationId": "HelmChartManagement_UpdateHelmChart", + "responses": { + "200": { + "description": "OK. Helm chart successfully updated in the project repository.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. Invalid chart file or version mismatch.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because of invalid credentials.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the user does not have access to the resource.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The specified chart name and version combination does not exist.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to update chart in repository.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "chartName", + "description": "Name of the Helm chart (required). Example: 'nginx'", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "chartVersion", + "description": "Version of the Helm chart (required). Example: '1.0.0'", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + }, + { + "name": "chart", + "in": "formData", + "required": true, + "type": "file", + "description": "Helm chart package file (.tgz format)", + "x-mimetype": "application/gzip" + } + ], + "tags": [ + "HelmChartManagement" + ], + "produces": [ + "application/json" + ], + "consumes": [ + "multipart/form-data" + ] + } + }, + "/v1/cluster/instances/kubernetes/helm/repository": { + "get": { + "summary": "List all private Helm repositories", + "description": "Retrieve a list of all configured private Helm repositories with their status and configuration information.\n\n**Example Request:**\n```\nGET /v1/cluster/instances/kubernetes/helm/repository\n```\n\n**Example Response:**\n```json\n{\n \"list\": [\n {\n \"id\": \"private-repo-abc123\",\n \"metadata\": {\n \"name\": \"company-charts\",\n \"title\": \"Company Private Helm Repository\",\n \"description\": \"Private Helm repository containing company-specific charts\",\n \"tags\": {\n \"environment\": \"production\"\n }\n },\n \"spec\": {\n \"repoDetails\": {\n \"type\": \"PRIVATE_REPO_TYPE_HELM_INDEX\",\n \"url\": \"https://charts.company.com/helm\"\n }\n },\n \"status\": {\n \"error\": false,\n \"message\": \"Repository is accessible\",\n \"name\": \"company-charts\"\n },\n \"repoIdentifier\": \"company-charts-repo\"\n },\n {\n \"id\": \"private-repo-def456\",\n \"metadata\": {\n \"name\": \"team-charts\",\n \"title\": \"Team Specific Charts\",\n \"description\": \"Charts for team-specific applications\"\n },\n \"spec\": {\n \"repoDetails\": {\n \"type\": \"PRIVATE_REPO_TYPE_GIT\",\n \"url\": \"https://git.company.com/helm-charts\",\n \"branch\": \"main\"\n }\n },\n \"status\": {\n \"error\": false,\n \"message\": \"Repository is accessible\",\n \"name\": \"team-charts\"\n },\n \"repoIdentifier\": \"team-charts-repo\"\n }\n ],\n \"total\": 2\n}\n```", + "operationId": "PrivateHelmRepositories_ListPrivateRepos", + "responses": { + "200": { + "description": "Successfully retrieved private repository list", + "schema": { + "$ref": "#/definitions/PrivateRepoListResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to list private repositories.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to retrieve private repository list due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "tags": [ + "PrivateHelmRepositories" + ], + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ] + }, + "post": { + "summary": "Create a new private Helm repository", + "description": "Create a new private Helm repository configuration to access Helm charts from private repositories with authentication. This enables deployment of Helm charts from secured repositories.\n\n**Example Request:**\n```json\n{\n \"metadata\": {\n \"name\": \"company-charts\",\n \"title\": \"Company Private Helm Repository\",\n \"description\": \"Private Helm repository containing company-specific charts\",\n \"tags\": {\n \"environment\": \"production\",\n \"team\": \"platform\"\n }\n },\n \"spec\": {\n \"repoDetails\": {\n \"type\": \"PRIVATE_REPO_TYPE_HELM_INDEX\",\n \"url\": \"https://charts.company.com/helm\",\n \"branch\": \"main\"\n },\n \"auth\": {\n \"secret\": {\n \"type\": \"SECRET_TYPE_BASIC_AUTH\",\n \"name\": \"helm-repo-credentials\"\n }\n }\n }\n}\n```\n\n**Example Response:**\n```json\n{\n \"operationType\": \"OPS_TYPE_UNSPECIFIED\",\n \"operationStatus\": \"OPS_STATUS_UNSPECIFIED\",\n \"objectKind\": \"\",\n \"objectId\": \"private-repo-abc123\",\n \"objectName\": \"company-charts\",\n \"objectRevision\": \"\",\n \"objectType\": \"OBJECT_TYPE_UNSPECIFIED\",\n \"operationTime\": \"\",\n \"startTime\": \"\",\n \"endTime\": \"\",\n \"user\": \"\",\n \"httpStatusCode\": 201,\n \"httpStatusMsg\": \"\",\n \"jobId\": \"\",\n \"error\": [\n {\n \"ec\": \"zMsgSucess\",\n \"location\": \"\",\n \"details\": \"\"\n }\n ]\n}\n```", + "operationId": "PrivateHelmRepositories_CreatePrivateRepo", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "201": { + "description": "Successfully created private Helm repository configuration", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. Invalid repository configuration or missing required fields.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to create private repository configurations.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. Private repository configuration with the same name already exists.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to create private repository configuration due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PrivateRepoCreateRequest" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "PrivateHelmRepositories" + ] + } + }, + "/v1/cluster/instances/kubernetes/helm/repository/id/{id}": { + "put": { + "summary": "Update private Helm repository", + "description": "Update an existing private Helm repository configuration. This allows modification of repository details, authentication settings, and metadata. The repository name cannot be changed after creation.\n\n**Example Request:**\n```json\n{\n \"id\": \"private-repo-abc123\",\n \"metadata\": {\n \"name\": \"company-charts\",\n \"title\": \"Updated Company Private Helm Repository\",\n \"description\": \"Updated private Helm repository containing company-specific charts\",\n \"tags\": {\n \"environment\": \"production\",\n \"team\": \"platform\",\n \"updated\": \"2024-01-15\"\n }\n },\n \"spec\": {\n \"repoDetails\": {\n \"type\": \"PRIVATE_REPO_TYPE_HELM_INDEX\",\n \"url\": \"https://charts.company.com/helm/v2\",\n \"branch\": \"main\"\n },\n \"auth\": {\n \"secret\": {\n \"type\": \"SECRET_TYPE_TOKEN\",\n \"name\": \"updated-helm-repo-token\"\n }\n }\n }\n}\n```\n\n**Example Response:**\n```json\n{\n \"operationType\": \"OPS_TYPE_UNSPECIFIED\",\n \"operationStatus\": \"OPS_STATUS_UNSPECIFIED\",\n \"objectKind\": \"\",\n \"objectId\": \"private-repo-abc123\",\n \"objectName\": \"company-charts\",\n \"objectRevision\": \"\",\n \"objectType\": \"OBJECT_TYPE_UNSPECIFIED\",\n \"operationTime\": \"\",\n \"startTime\": \"\",\n \"endTime\": \"\",\n \"user\": \"\",\n \"httpStatusCode\": 200,\n \"httpStatusMsg\": \"\",\n \"jobId\": \"\",\n \"error\": [\n {\n \"ec\": \"zMsgSucess\",\n \"location\": \"\",\n \"details\": \"\"\n }\n ]\n}\n```", + "operationId": "PrivateHelmRepositories_UpdatePrivateRepo", + "responses": { + "200": { + "description": "Successfully updated private repository configuration", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. Invalid repository configuration or missing required fields.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to update this private repository.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. Private repository with the specified ID does not exist.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. Cannot update private repository due to conflicting state.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to update private repository due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "Unique identifier of the private repository to update (required)", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/definitions/PrivateRepoMetadata", + "description": "Metadata for the private repository (name cannot be updated, required)" + }, + "spec": { + "$ref": "#/definitions/PrivateRepoSpec", + "description": "Specification for the private repository (required)" + } + }, + "description": "Request message for updating an existing private repository configuration", + "title": "Private Repository update request", + "required": [ + "metadata", + "spec" + ] + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "PrivateHelmRepositories" + ] + } + }, + "/v1/cluster/instances/kubernetes/helm/repository/id/{privateRepoId}": { + "get": { + "summary": "Get private Helm repository by ID", + "description": "Retrieve detailed information about a specific private Helm repository including its configuration, authentication details, and status.\n\n**Example Request:**\n```\nGET /v1/cluster/instances/kubernetes/helm/repository/id/private-repo-abc123\n```\n\n**Example Response:**\n```json\n{\n \"id\": \"private-repo-abc123\",\n \"metadata\": {\n \"name\": \"company-charts\",\n \"title\": \"Company Private Helm Repository\",\n \"description\": \"Private Helm repository containing company-specific charts\",\n \"tags\": {\n \"environment\": \"production\",\n \"team\": \"platform\"\n }\n },\n \"spec\": {\n \"repoDetails\": {\n \"type\": \"PRIVATE_REPO_TYPE_HELM_INDEX\",\n \"url\": \"https://charts.company.com/helm\",\n \"branch\": \"main\"\n },\n \"auth\": {\n \"secret\": {\n \"id\": \"secret-123\",\n \"type\": \"SECRET_TYPE_BASIC_AUTH\",\n \"name\": \"helm-repo-credentials\",\n \"data\": {\n \"username\": \"helm-user\",\n \"password\": \"***\"\n }\n }\n }\n },\n \"status\": {\n \"error\": false,\n \"message\": \"Repository is accessible and ready\",\n \"name\": \"company-charts\",\n \"transitioning\": false\n },\n \"repoIdentifier\": \"company-charts-repo\"\n}\n```", + "operationId": "PrivateHelmRepositories_GetPrivateRepo", + "responses": { + "200": { + "description": "Successfully retrieved private repository configuration", + "schema": { + "$ref": "#/definitions/PrivateRepoGetByIdResponse" + } + }, + "400": { + "description": "Bad Request. Invalid repository ID format.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to view this private repository.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. Private repository with the specified ID does not exist.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to retrieve private repository due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "privateRepoId", + "description": "Unique identifier of the Private Repository (required). Example: 'private-repo-abc123'", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "PrivateHelmRepositories" + ] + }, + "delete": { + "summary": "Delete private Helm repository", + "description": "Delete a private Helm repository configuration. This will remove access to the private repository and all its associated configurations. This action is irreversible.\n\n**Example Request:**\n```\nDELETE /v1/cluster/instances/kubernetes/helm/repository/id/private-repo-abc123\n```\n\n**Example Response:**\n```json\n{\n \"operationType\": \"OPS_TYPE_UNSPECIFIED\",\n \"operationStatus\": \"OPS_STATUS_UNSPECIFIED\",\n \"objectKind\": \"\",\n \"objectId\": \"private-repo-abc123\",\n \"objectName\": \"company-charts\",\n \"objectRevision\": \"\",\n \"objectType\": \"OBJECT_TYPE_UNSPECIFIED\",\n \"operationTime\": \"\",\n \"startTime\": \"\",\n \"endTime\": \"\",\n \"user\": \"\",\n \"httpStatusCode\": 200,\n \"httpStatusMsg\": \"\",\n \"jobId\": \"\",\n \"error\": [\n {\n \"ec\": \"zMsgSucess\",\n \"location\": \"\",\n \"details\": \"\"\n }\n ]\n}\n```\n\n**Warning:** This operation will remove the private repository configuration and stop access to its charts. Any deployments using charts from this repository may be affected.\n\n**Note:** The private_repo_id parameter is **required** and must be a valid repository identifier.", + "operationId": "PrivateHelmRepositories_DeletePrivateRepo", + "responses": { + "200": { + "description": "Successfully deleted private repository configuration", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. Invalid repository ID format.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to delete this private repository.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. Private repository with the specified ID does not exist.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. Cannot delete private repository because it is currently in use by deployments.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to delete private repository due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "privateRepoId", + "description": "Unique identifier of the Private Repository (required). Example: 'private-repo-abc123'", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "PrivateHelmRepositories" + ] + } + }, + "/v1/cluster/instances/kubernetes/helm/repository/id/{privateRepoId}/charts": { + "get": { + "summary": "Get Helm charts from private repository", + "description": "Retrieve a list of available Helm charts from a specific private repository with their versions and metadata.\n\n**Example Request:**\n```\nGET /v1/cluster/instances/kubernetes/helm/repository/id/private-repo-abc123/charts\n```\n\n**Example Response:**\n```json\n{\n \"api_version\": \"v2\",\n \"generated\": \"2024-01-15T12:00:00Z\",\n \"repo_identifier\": \"company-charts-repo\",\n \"repo_name\": \"Company Private Repository\",\n \"entries\": {\n \"company-app\": [\n {\n \"name\": \"company-app\",\n \"version\": \"2.1.0\",\n \"app_version\": \"1.5.0\",\n \"description\": \"Company proprietary application\",\n \"created\": \"2024-01-10T09:00:00Z\",\n \"digest\": \"sha256:abc123def456...\",\n \"urls\": [\"/charts/company-app-2.1.0.tgz\"]\n },\n {\n \"name\": \"company-app\",\n \"version\": \"2.0.0\",\n \"app_version\": \"1.4.0\",\n \"description\": \"Company proprietary application\",\n \"created\": \"2024-01-05T14:30:00Z\",\n \"digest\": \"sha256:def456ghi789...\",\n \"urls\": [\"/charts/company-app-2.0.0.tgz\"]\n }\n ],\n \"internal-service\": [\n {\n \"name\": \"internal-service\",\n \"version\": \"1.0.0\",\n \"app_version\": \"0.9.0\",\n \"description\": \"Internal microservice\",\n \"created\": \"2024-01-12T16:45:00Z\",\n \"digest\": \"sha256:ghi789jkl012...\",\n \"urls\": [\"/charts/internal-service-1.0.0.tgz\"]\n }\n ]\n }\n}\n```", + "operationId": "PrivateHelmRepositories_GetPrivateRepoCharts", + "responses": { + "200": { + "description": "Successfully retrieved chart list from private repository", + "schema": { + "$ref": "#/definitions/HelmChartListResponse" + } + }, + "400": { + "description": "Bad Request. Invalid repository ID format.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to access this private repository.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. Private repository with the specified ID does not exist.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to retrieve charts from private repository due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "privateRepoId", + "description": "Unique identifier of the Private Repository (required). Example: 'private-repo-abc123'", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "PrivateHelmRepositories" + ] + } + }, + "/v1/cluster/instances/kubernetes/secrets": { + "get": { + "summary": "List all Kubernetes secrets", + "description": "Retrieve a list of all configured Kubernetes secrets with their metadata and status information. Secret data is not included in list responses for security reasons.\n\n**Query Parameters:**\n- `projectId` (optional): Filter secrets by project ID\n\n**Example Request:**\n```\nGET /v1/cluster/instances/kubernetes/secrets\nGET /v1/cluster/instances/kubernetes/secrets?projectId=project-123\n```\n\n**Example Response:**\n```json\n{\n \"secrets\": [\n {\n \"id\": \"secret-abc123\",\n \"_type\": \"Secret\",\n \"kind\": \"Secret\",\n \"metadata\": {\n \"name\": \"git-ssh-key\",\n \"type\": \"SECRET_TYPE_SSH\",\n \"creation_timestamp\": \"2024-01-15T10:30:00Z\",\n \"project_id\": \"project-123\",\n \"state\": {\n \"error\": false,\n \"message\": \"Secret is active\",\n \"name\": \"git-ssh-key\",\n \"transitioning\": false\n }\n }\n },\n {\n \"id\": \"secret-def456\",\n \"_type\": \"Secret\",\n \"kind\": \"Secret\",\n \"metadata\": {\n \"name\": \"registry-credentials\",\n \"type\": \"SECRET_TYPE_BASIC_AUTH\",\n \"creation_timestamp\": \"2024-01-15T11:00:00Z\",\n \"project_id\": \"project-123\",\n \"state\": {\n \"error\": false,\n \"message\": \"Secret is active\",\n \"name\": \"registry-credentials\",\n \"transitioning\": false\n }\n }\n }\n ],\n \"total_count\": 2\n}\n```", + "operationId": "KubernetesSecrets_ListSecrets", + "responses": { + "200": { + "description": "Successfully retrieved secrets list", + "schema": { + "$ref": "#/definitions/SecretListResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to list secrets.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to retrieve secrets list due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "tags": [ + "KubernetesSecrets" + ], + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ] + }, + "post": { + "summary": "Create a new Kubernetes secret", + "description": "Create a new Kubernetes secret for storing sensitive data like SSH keys, basic authentication credentials, or other secrets needed for deployments.\n\n**Example Request (SSH Secret):**\n```json\n{\n \"metadata\": {\n \"name\": \"git-ssh-key\",\n \"type\": \"SECRET_TYPE_SSH\",\n \"project_id\": \"project-123\"\n },\n \"data\": {\n \"ssh_private_key\": \"-----BEGIN RSA PRIVATE KEY-----\\nMIIEpAIBAAKCAQEA...\",\n \"ssh_public_key\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQ...\"\n }\n}\n```\n\n**Example Request (SECRET_TYPE_BASIC_AUTH Secret):**\n```json\n{\n \"metadata\": {\n \"name\": \"registry-credentials\",\n \"type\": \"SECRET_TYPE_BASIC_AUTH\",\n \"project_id\": \"project-123\"\n },\n \"data\": {\n \"encoded_username\": \"dXNlcm5hbWU=\",\n \"encoded_password\": \"cGFzc3dvcmQ=\"\n }\n}\n```\n\n**Example Response:**\n```json\n{\n \"operationType\": \"OPS_TYPE_UNSPECIFIED\",\n \"operationStatus\": \"OPS_STATUS_UNSPECIFIED\",\n \"objectKind\": \"\",\n \"objectId\": \"secret-abc123\",\n \"objectName\": \"git-ssh-key\",\n \"objectRevision\": \"\",\n \"objectType\": \"OBJECT_TYPE_UNSPECIFIED\",\n \"operationTime\": \"\",\n \"startTime\": \"\",\n \"endTime\": \"\",\n \"user\": \"\",\n \"httpStatusCode\": 201,\n \"httpStatusMsg\": \"\",\n \"jobId\": \"\",\n \"error\": [\n {\n \"ec\": \"zMsgSucess\",\n \"location\": \"\",\n \"details\": \"\"\n }\n ]\n}\n```", + "operationId": "KubernetesSecrets_CreateSecret", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "201": { + "description": "Successfully created Kubernetes secret", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. Invalid secret configuration or missing required fields.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to create secrets.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. Secret with the same name already exists.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to create secret due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SecretCreateRequest" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "KubernetesSecrets" + ] + } + }, + "/v1/cluster/instances/kubernetes/secrets/id/{secretId}": { + "get": { + "summary": "Get Kubernetes secret by ID", + "description": "Retrieve detailed information about a specific Kubernetes secret including its metadata and decrypted data.\n\n**Example Request:**\n```\nGET /v1/cluster/instances/kubernetes/secrets/id/secret-abc123\n```\n\n**Example Response (SSH Secret):**\n```json\n{\n \"id\": \"secret-abc123\",\n \"_type\": \"Secret\",\n \"kind\": \"Secret\",\n \"metadata\": {\n \"name\": \"git-ssh-key\",\n \"type\": \"SECRET_TYPE_SSH\",\n \"creation_timestamp\": \"2024-01-15T10:30:00Z\",\n \"project_id\": \"project-123\",\n \"state\": {\n \"error\": false,\n \"message\": \"Secret is active and ready\",\n \"name\": \"git-ssh-key\",\n \"transitioning\": false\n }\n },\n \"data\": {\n \"ssh_private_key\": \"-----BEGIN RSA PRIVATE KEY-----\\nMIIEpAIBAAKCAQEA...\",\n \"ssh_public_key\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQ...\"\n }\n}\n```\n\n**Example Response (SECRET_TYPE_BASIC_AUTH Secret):**\n```json\n{\n \"id\": \"secret-def456\",\n \"_type\": \"Secret\",\n \"kind\": \"Secret\",\n \"metadata\": {\n \"name\": \"registry-credentials\",\n \"type\": \"SECRET_TYPE_BASIC_AUTH\",\n \"creation_timestamp\": \"2024-01-15T11:00:00Z\",\n \"project_id\": \"project-123\",\n \"state\": {\n \"error\": false,\n \"message\": \"Secret is active and ready\",\n \"name\": \"registry-credentials\",\n \"transitioning\": false\n }\n },\n \"data\": {\n \"username\": \"registry-user\",\n \"password\": \"***\"\n }\n}\n```", + "operationId": "KubernetesSecrets_GetSecret", + "responses": { + "200": { + "description": "Successfully retrieved secret information", + "schema": { + "$ref": "#/definitions/SecretInfoResponse" + } + }, + "400": { + "description": "Bad Request. Invalid secret ID format.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to view this secret.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. Secret with the specified ID does not exist.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to retrieve secret due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "secretId", + "description": "Unique identifier of the secret. This field is required and must be a valid secret ID.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "KubernetesSecrets" + ] + } + }, + "/v1/cluster/instances/kubernetes/snapshots/operations/{operationId}": { + "get": { + "summary": "Get snapshot operation status", + "description": "Poll the status of an async snapshot operation using the operation ID returned by create, restore, or delete calls.", + "operationId": "KubernetesSnapshots_GetSnapshotOperation", + "responses": { + "200": { + "description": "Operation status retrieved successfully", + "schema": { + "$ref": "#/definitions/SnapshotOperationResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to view this operation.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. Operation ID does not exist.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "operationId", + "description": "Unique identifier of the async operation returned by create, restore, or delete", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "KubernetesSnapshots" + ] + } + }, + "/v1/cluster/instances/kubernetes/snapshots/{clusterId}": { + "get": { + "summary": "List etcd snapshots", + "description": "Retrieve all etcd snapshots for the specified cluster. Returns a list of snapshot metadata including state, size, location, and k3s version.", + "operationId": "KubernetesSnapshots_ListSnapshots", + "responses": { + "200": { + "description": "Successfully retrieved snapshot list", + "schema": { + "$ref": "#/definitions/SnapshotListResponse" + } + }, + "400": { + "description": "Bad Request. Invalid cluster ID.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to list snapshots.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "clusterId", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "KubernetesSnapshots" + ] + } + }, + "/v1/cluster/instances/kubernetes/snapshots/{clusterId}/create": { + "post": { + "summary": "Create an etcd snapshot", + "description": "Trigger an etcd snapshot on the specified cluster. Returns an async operation response. The `snapshot_timeout` field controls the retention period (TTL) in seconds \u2014 minimum 300 s, default 3600 s.", + "operationId": "KubernetesSnapshots_CreateSnapshot", + "responses": { + "200": { + "description": "Snapshot operation initiated successfully", + "schema": { + "$ref": "#/definitions/SnapshotOperationResponse" + } + }, + "400": { + "description": "Bad Request. Invalid cluster ID or request body.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to create snapshots.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "clusterId", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "snapshotTimeout": { + "type": "integer", + "format": "int32" + } + }, + "title": "HTTP wrapper for snapshot create \u2014 cluster_id is a path param, snapshot_timeout is the body field" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "KubernetesSnapshots" + ] + } + }, + "/v1/cluster/instances/kubernetes/snapshots/{clusterId}/{name}": { + "delete": { + "summary": "Delete an etcd snapshot", + "description": "Delete a named etcd snapshot from the specified cluster. Returns an async operation response.", + "operationId": "KubernetesSnapshots_DeleteSnapshot", + "responses": { + "200": { + "description": "Delete operation initiated successfully", + "schema": { + "$ref": "#/definitions/SnapshotOperationResponse" + } + }, + "400": { + "description": "Bad Request. Invalid cluster ID or snapshot name.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to delete snapshots.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. Snapshot with the specified name does not exist.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "clusterId", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "KubernetesSnapshots" + ] + } + }, + "/v1/cluster/instances/kubernetes/snapshots/{clusterId}/{name}/restore": { + "post": { + "summary": "Restore an etcd snapshot", + "description": "Restore a named etcd snapshot on the specified cluster. Returns an async operation response. The `snapshot_timeout` field controls the maximum wait time in seconds \u2014 minimum 300 s, default 3600 s.", + "operationId": "KubernetesSnapshots_RestoreSnapshot", + "responses": { + "200": { + "description": "Restore operation initiated successfully", + "schema": { + "$ref": "#/definitions/SnapshotOperationResponse" + } + }, + "400": { + "description": "Bad Request. Invalid cluster ID, snapshot name, or request body.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to restore snapshots.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. Snapshot with the specified name does not exist.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "clusterId", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "snapshotTimeout": { + "type": "integer", + "format": "int32" + } + }, + "title": "HTTP wrapper for snapshot restore \u2014 cluster_id and name are path params, snapshot_timeout is the body field" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "KubernetesSnapshots" + ] + } + }, + "/v1/cluster/instances/kubernetes/{clusterId}/cluster-shell": { + "get": { + "summary": "Open cluster-shell WebSocket", + "description": "Creates a temporary pod (image rancher/shell:v0.4.1) in zks-system with the resolved SA's RBAC scope, then proxies an exec WebSocket so the caller gets an interactive /bin/sh inside that pod. kubectl is pre-configured to talk to a localhost kubectl-proxy sidecar \u2014 the SA token never reaches the shell user. Pod is deleted on disconnect or after 30-min server-side TTL. Audit events: cluster_shell.session.start, .end, .ttl_exceeded.", + "operationId": "KubernetesDashboard_ClusterShell", + "responses": { + "101": { + "description": "Switching Protocols \u2014 WebSocket established", + "schema": {} + }, + "200": { + "description": "A successful response.", + "schema": { + "properties": {} + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because of invalid credentials.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have access to this cluster's project.", + "schema": {} + }, + "500": { + "description": "Internal Server Error. Pod creation, SA token fetch, or upstream WebSocket failed.", + "schema": {} + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "clusterId", + "description": "Rancher cluster ID", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "command", + "description": "Shell command to execute inside the cluster-shell pod. Defaults to /bin/sh.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "KubernetesDashboard" + ] + } + }, + "/v1/cluster/instances/kubernetes/{clusterId}/kubeconfig": { + "get": { + "summary": "Download dashboard kubeconfig", + "description": "Returns a kubeconfig YAML (Content-Type: application/yaml) pointing at the ZedCloud kubectl-proxy endpoint. The embedded bearer is the user's ZedCloud session token; downstream Kubernetes RBAC is enforced via the resolved SA (admin or viewer based on caller's role in the cluster's project). Treat the file as sensitive: it grants the bearer the user's ZedCloud session.", + "operationId": "KubernetesDashboard_GetDashboardKubeconfig", + "responses": { + "200": { + "description": "Kubeconfig YAML file download", + "schema": { + "properties": {} + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because of invalid credentials.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have access to this cluster's project.", + "schema": {} + }, + "500": { + "description": "Internal Server Error. SA token fetch or cluster config unavailable.", + "schema": {} + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "clusterId", + "description": "Rancher cluster ID (e.g. c-xxxxx)", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "KubernetesDashboard" + ] + } + }, + "/v1/cluster/instances/kubernetes/{clusterId}/proxy/{path}": { + "get": { + "summary": "Proxy Kubernetes API request", + "description": "Unified pass-through proxy to the downstream cluster Kubernetes API. Method allowed per resolved SA \u2014 admin gets full CRUD, viewer is restricted to GET/HEAD. Path allowlist applies. Interactive subresources (exec/attach/portforward) are denied for viewer.", + "operationId": "KubernetesDashboard_ProxyKubernetesRequest", + "responses": { + "200": { + "description": "Response from the downstream Kubernetes API", + "schema": { + "properties": {} + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because of invalid credentials.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User lacks access, viewer attempted a write method or interactive subresource, or path is disallowed.", + "schema": {} + }, + "500": { + "description": "Internal Server Error. SA token fetch failed or upstream unreachable.", + "schema": {} + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "clusterId", + "description": "Rancher cluster ID", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "path", + "description": "Kubernetes API path (e.g. api/v1/namespaces or apis/apps/v1/deployments)", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "KubernetesDashboard" + ] + }, + "delete": { + "summary": "Proxy Kubernetes API request", + "description": "Unified pass-through proxy to the downstream cluster Kubernetes API. Method allowed per resolved SA \u2014 admin gets full CRUD, viewer is restricted to GET/HEAD. Path allowlist applies. Interactive subresources (exec/attach/portforward) are denied for viewer.", + "operationId": "KubernetesDashboard_ProxyKubernetesRequest5", + "responses": { + "200": { + "description": "Response from the downstream Kubernetes API", + "schema": { + "properties": {} + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because of invalid credentials.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User lacks access, viewer attempted a write method or interactive subresource, or path is disallowed.", + "schema": {} + }, + "500": { + "description": "Internal Server Error. SA token fetch failed or upstream unreachable.", + "schema": {} + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "clusterId", + "description": "Rancher cluster ID", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "path", + "description": "Kubernetes API path (e.g. api/v1/namespaces or apis/apps/v1/deployments)", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "KubernetesDashboard" + ] + }, + "post": { + "summary": "Proxy Kubernetes API request", + "description": "Unified pass-through proxy to the downstream cluster Kubernetes API. Method allowed per resolved SA \u2014 admin gets full CRUD, viewer is restricted to GET/HEAD. Path allowlist applies. Interactive subresources (exec/attach/portforward) are denied for viewer.", + "operationId": "KubernetesDashboard_ProxyKubernetesRequest2", + "responses": { + "200": { + "description": "Response from the downstream Kubernetes API", + "schema": { + "properties": {} + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because of invalid credentials.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User lacks access, viewer attempted a write method or interactive subresource, or path is disallowed.", + "schema": {} + }, + "500": { + "description": "Internal Server Error. SA token fetch failed or upstream unreachable.", + "schema": {} + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "clusterId", + "description": "Rancher cluster ID", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "path", + "description": "Kubernetes API path (e.g. api/v1/namespaces or apis/apps/v1/deployments)", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "KubernetesDashboard" + ] + }, + "put": { + "summary": "Proxy Kubernetes API request", + "description": "Unified pass-through proxy to the downstream cluster Kubernetes API. Method allowed per resolved SA \u2014 admin gets full CRUD, viewer is restricted to GET/HEAD. Path allowlist applies. Interactive subresources (exec/attach/portforward) are denied for viewer.", + "operationId": "KubernetesDashboard_ProxyKubernetesRequest3", + "responses": { + "200": { + "description": "Response from the downstream Kubernetes API", + "schema": { + "properties": {} + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because of invalid credentials.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User lacks access, viewer attempted a write method or interactive subresource, or path is disallowed.", + "schema": {} + }, + "500": { + "description": "Internal Server Error. SA token fetch failed or upstream unreachable.", + "schema": {} + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "clusterId", + "description": "Rancher cluster ID", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "path", + "description": "Kubernetes API path (e.g. api/v1/namespaces or apis/apps/v1/deployments)", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "KubernetesDashboard" + ] + }, + "patch": { + "summary": "Proxy Kubernetes API request", + "description": "Unified pass-through proxy to the downstream cluster Kubernetes API. Method allowed per resolved SA \u2014 admin gets full CRUD, viewer is restricted to GET/HEAD. Path allowlist applies. Interactive subresources (exec/attach/portforward) are denied for viewer.", + "operationId": "KubernetesDashboard_ProxyKubernetesRequest4", + "responses": { + "200": { + "description": "Response from the downstream Kubernetes API", + "schema": { + "properties": {} + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because of invalid credentials.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User lacks access, viewer attempted a write method or interactive subresource, or path is disallowed.", + "schema": {} + }, + "500": { + "description": "Internal Server Error. SA token fetch failed or upstream unreachable.", + "schema": {} + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "clusterId", + "description": "Rancher cluster ID", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "path", + "description": "Kubernetes API path (e.g. api/v1/namespaces or apis/apps/v1/deployments)", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "KubernetesDashboard" + ] + } + }, + "/v1/zks/cluster/groups": { + "post": { + "summary": "Create a new cluster group", + "description": "Create a new cluster group with specified configuration and manifest.\n\n**Example Request:**\n```json\n{\n \"projectId\": \"project-123\",\n \"name\": \"production-cluster-group\",\n \"title\": \"Production Cluster Group\",\n \"description\": \"Cluster group for production environments\",\n \"tags\": {\n \"environment\": \"production\",\n \"region\": \"us-west\",\n \"team\": \"platform\"\n },\n \"manifest\": {\n \"yamlContent\": \"apiVersion: v1\\nkind: Namespace\\nmetadata:\\n name: production-ns\"\n }\n}\n```\n\n**Example Response:**\n```json\n{\n \"operationType\": \"OPS_TYPE_UNSPECIFIED\",\n \"operationStatus\": \"OPS_STATUS_UNSPECIFIED\",\n \"objectKind\": \"\",\n \"objectId\": \"cluster-group-abc123\",\n \"objectName\": \"production-cluster-group\",\n \"objectRevision\": \"\",\n \"objectType\": \"OBJECT_TYPE_UNSPECIFIED\",\n \"operationTime\": \"\",\n \"startTime\": \"\",\n \"endTime\": \"\",\n \"user\": \"\",\n \"httpStatusCode\": 201,\n \"httpStatusMsg\": \"\",\n \"jobId\": \"\",\n \"error\": [\n {\n \"ec\": \"zMsgSucess\",\n \"location\": \"\",\n \"details\": \"\"\n }\n ]\n}\n```", + "operationId": "ClusterGroups_CreateClusterGroup", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "201": { + "description": "Successfully created cluster group", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. Invalid cluster group configuration or missing required fields.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to create cluster groups.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. Cluster group with the same name already exists.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to create cluster group due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ClusterGroup" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ClusterGroups" + ] + } + }, + "/v1/zks/cluster/groups/id/{clusterGroupId}": { + "delete": { + "summary": "Delete cluster group", + "description": "Delete a cluster group and all its associated resources. This operation is irreversible and will remove the cluster group configuration.\n\n**Example Request:**\n```\nDELETE /v1/zks/cluster/groups/id/cluster-group-abc123\n```\n\n**Example Response:**\n```json\n{\n \"operationType\": \"OPS_TYPE_UNSPECIFIED\",\n \"operationStatus\": \"OPS_STATUS_UNSPECIFIED\",\n \"objectKind\": \"\",\n \"objectId\": \"cluster-group-abc123\",\n \"objectName\": \"production-cluster-group\",\n \"objectRevision\": \"\",\n \"objectType\": \"OBJECT_TYPE_UNSPECIFIED\",\n \"operationTime\": \"\",\n \"startTime\": \"\",\n \"endTime\": \"\",\n \"user\": \"\",\n \"httpStatusCode\": 200,\n \"httpStatusMsg\": \"\",\n \"jobId\": \"\",\n \"error\": [\n {\n \"ec\": \"zMsgSucess\",\n \"location\": \"\",\n \"details\": \"\"\n }\n ]\n}\n```\n\n**Warning:** This operation will permanently delete the cluster group and all its configurations. Ensure all important data is backed up before deletion.", + "operationId": "ClusterGroups_DeleteClusterGroup", + "responses": { + "200": { + "description": "Successfully deleted cluster group", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. Invalid cluster group ID format.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to delete this cluster group.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. Cluster group with the specified ID does not exist.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. Cannot delete cluster group due to active dependencies.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to delete cluster group due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "clusterGroupId", + "description": "Unique identifier of the cluster group. This field is required and must be a valid cluster group ID.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ClusterGroups" + ] + } + }, + "/v1/zks/cluster/groups/id/{id}": { + "put": { + "summary": "Update cluster group", + "description": "Update an existing cluster group configuration including name, title, description, tags, and manifest.\n\n**Example Request:**\n```json\n{\n \"id\": \"cluster-group-abc123\",\n \"projectId\": \"project-123\",\n \"name\": \"production-cluster-group\",\n \"title\": \"Updated Production Cluster Group\",\n \"description\": \"Updated cluster group for production environments\",\n \"tags\": {\n \"environment\": \"production\",\n \"region\": \"us-west\",\n \"version\": \"v2\"\n },\n \"manifest\": {\n \"yamlContent\": \"apiVersion: v1\\nkind: Namespace\\nmetadata:\\n name: production-ns\\n labels:\\n version: v2\"\n }\n}\n```\n\n**Example Response:**\n```json\n{\n \"operationType\": \"OPS_TYPE_UNSPECIFIED\",\n \"operationStatus\": \"OPS_STATUS_UNSPECIFIED\",\n \"objectKind\": \"\",\n \"objectId\": \"cluster-group-abc123\",\n \"objectName\": \"production-cluster-group\",\n \"objectRevision\": \"\",\n \"objectType\": \"OBJECT_TYPE_UNSPECIFIED\",\n \"operationTime\": \"\",\n \"startTime\": \"\",\n \"endTime\": \"\",\n \"user\": \"\",\n \"httpStatusCode\": 200,\n \"httpStatusMsg\": \"\",\n \"jobId\": \"\",\n \"error\": [\n {\n \"ec\": \"zMsgSucess\",\n \"location\": \"\",\n \"details\": \"\"\n }\n ]\n}\n```", + "operationId": "ClusterGroups_UpdateClusterGroup", + "responses": { + "200": { + "description": "Successfully updated cluster group", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. Invalid cluster group configuration or missing required fields.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to update this cluster group.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. Cluster group with the specified ID does not exist.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. Update conflicts with current cluster group state.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to update cluster group due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the cluster group", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "projectId": { + "type": "string", + "description": "Foreign key to the project", + "pattern": "[0-9A-Za-z-]+" + }, + "name": { + "type": "string", + "description": "User defined name of the cluster group, unique across the enterprise. Once cluster group is created, name can\u2019t be changed" + }, + "title": { + "type": "string", + "description": "User defined title of the cluster group. Title can be changed at any time" + }, + "description": { + "type": "string", + "description": "Detailed description of the cluster group" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "manifest": { + "type": "object", + "$ref": "#/definitions/ClusterGroupManifest", + "description": "The cluster group manifest" + } + }, + "description": "Cluster Group details", + "title": "Cluster Group details", + "required": [ + "projectId", + "name" + ] + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ClusterGroups" + ] + } + }, + "/v1/zks/cluster/groups/manifest": { + "get": { + "summary": "Get cluster group manifest", + "description": "Generate and retrieve a cluster group manifest based on specified criteria.\n\n**Query Parameters:**\n- `name`: Name of the cluster group\n- `projectName`: Name of the project\n- `tags`: Tags filter (JSON object)\n\n**Example Request:**\n```\nGET /v1/zks/cluster/groups/manifest?name=production-cluster-group&projectName=production-project\nGET /v1/zks/cluster/groups/manifest?tags={\"environment\":\"production\"}\n```\n\n**Example Response:**\n```json\n{\n \"manifest\": {\n \"yamlContent\": \"apiVersion: v1\\nkind: Namespace\\nmetadata:\\n name: production-ns\\n labels:\\n environment: production\\n---\\napiVersion: apps/v1\\nkind: Deployment\\nmetadata:\\n name: app-deployment\\n namespace: production-ns\\nspec:\\n replicas: 3\\n selector:\\n matchLabels:\\n app: production-app\\n template:\\n metadata:\\n labels:\\n app: production-app\\n spec:\\n containers:\\n - name: app\\n image: nginx:latest\\n ports:\\n - containerPort: 80\"\n }\n}\n```", + "operationId": "ClusterGroups_GetClusterGroupManifest", + "responses": { + "200": { + "description": "Successfully generated cluster group manifest", + "schema": { + "$ref": "#/definitions/ClusterGroupManifestOutput" + } + }, + "400": { + "description": "Bad Request. Invalid query parameters or manifest generation criteria.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to access cluster group manifests.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. No cluster group found matching the specified criteria.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to generate manifest due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "tags": [ + "ClusterGroups" + ], + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ] + } + }, + "/v1/zks/cluster/groups/status": { + "get": { + "summary": "Get cluster groups status", + "description": "Retrieve detailed status information for all cluster groups including readiness, resources, and cluster details.\n\n**Query Parameters:**\n- `id`: Filter by cluster group ID\n- `name`: Filter by cluster group name\n- `namePattern`: Filter by cluster group name pattern\n- `projectName`: Filter by project name\n- `projectNamePattern`: Filter by project name pattern\n\n**Example Request:**\n```\nGET /v1/zks/cluster/groups/status\nGET /v1/zks/cluster/groups/status?name=production-cluster-group\nGET /v1/zks/cluster/groups/status?projectName=production-project\n```\n\n**Example Response:**\n```json\n{\n \"list\": [\n {\n \"id\": \"cluster-group-abc123\",\n \"projectId\": \"project-123\",\n \"projectName\": \"Production Project\",\n \"name\": \"production-cluster-group\",\n \"title\": \"Production Cluster Group\",\n \"description\": \"Cluster group for production environments\",\n \"tags\": {\n \"environment\": \"production\",\n \"region\": \"us-west\"\n },\n \"state\": \"DEPLOYED\",\n \"clusterReadiness\": {\n \"total\": 5,\n \"ready\": 4\n },\n \"resources\": {\n \"amount\": 25,\n \"summary\": {\n \"missing\": 0,\n \"modified\": 1,\n \"notReady\": 1,\n \"orphaned\": 0,\n \"ready\": 23,\n \"unknown\": 0,\n \"waitApplied\": 0\n }\n },\n \"clusters\": [\n {\n \"name\": \"cluster-001\",\n \"state\": \"DEPLOYED\",\n \"bundleReady\": \"True\",\n \"reposReady\": \"True\",\n \"resources\": 5,\n \"lastSeen\": \"2024-01-15T12:00:00Z\",\n \"age\": \"2024-01-10T10:00:00Z\"\n }\n ],\n \"namespace\": \"production-ns\",\n \"age\": \"2024-01-10T10:00:00Z\"\n }\n ]\n}\n```", + "operationId": "ClusterGroups_GetClusterGroupsStatus", + "responses": { + "200": { + "description": "Successfully retrieved cluster groups status", + "schema": { + "$ref": "#/definitions/ClusterGroupStatusListResp" + } + }, + "400": { + "description": "Bad Request. Invalid query parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to view cluster groups status.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to retrieve status due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "tags": [ + "ClusterGroups" + ], + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ] + } + }, + "/v1/zks/instances": { + "get": { + "summary": "List all ZKS instances", + "description": "Retrieve a list of all ZKS instances with their basic information and metadata.\n\n**Query Parameters:**\n- Pagination parameters supported via cursor\n\n**Example Request:**\n```\nGET /v1/zks/instances\n```\n\n**Example Response:**\n```json\n{\n \"list\": [\n {\n \"id\": \"zks-instance-abc123\",\n \"projectId\": \"project-123\",\n \"name\": \"production-cluster\",\n \"title\": \"Production Kubernetes Cluster\",\n \"description\": \"Main production cluster for edge applications\",\n \"tags\": {\n \"environment\": \"production\",\n \"region\": \"us-west\"\n },\n \"nOfNodes\": 3\n },\n {\n \"id\": \"zks-instance-def456\",\n \"projectId\": \"project-456\",\n \"name\": \"development-cluster\",\n \"title\": \"Development Kubernetes Cluster\",\n \"description\": \"Development cluster for testing\",\n \"tags\": {\n \"environment\": \"development\",\n \"region\": \"us-east\"\n },\n \"nOfNodes\": 1\n }\n ],\n \"next\": {\n \"pageToken\": \"next-page-token\"\n }\n}\n```", + "operationId": "ZKSClusterInstances_ListZKSInstances", + "responses": { + "200": { + "description": "Successfully retrieved ZKS instances list", + "schema": { + "$ref": "#/definitions/ZksInstancesList" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to list ZKS instances.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to retrieve ZKS instances list due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "tags": [ + "ZKSClusterInstances" + ], + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ] + }, + "post": { + "summary": "Create a new ZKS instance", + "description": "Create a new ZKS (ZEDEDA Kubernetes Service) cluster instance with specified nodes and configuration.\n\n**Example Request:**\n```json\n{\n \"projectId\": \"project-123\",\n \"name\": \"production-cluster\",\n \"title\": \"Production Kubernetes Cluster\",\n \"description\": \"Main production cluster for edge applications\",\n \"tags\": {\n \"environment\": \"production\",\n \"region\": \"us-west\",\n \"purpose\": \"edge-computing\"\n },\n \"nodes\": [\n {\n \"id\": \"node-001\",\n \"clusterInterface\": \"eth0\"\n },\n {\n \"id\": \"node-002\",\n \"clusterInterface\": \"eth0\"\n }\n ],\n \"isImported\": false\n}\n```\n\n**Example Response:**\n```json\n{\n \"operationType\": \"OPS_TYPE_UNSPECIFIED\",\n \"operationStatus\": \"OPS_STATUS_UNSPECIFIED\",\n \"objectKind\": \"\",\n \"objectId\": \"zks-instance-abc123\",\n \"objectName\": \"production-cluster\",\n \"objectRevision\": \"\",\n \"objectType\": \"OBJECT_TYPE_UNSPECIFIED\",\n \"operationTime\": \"\",\n \"startTime\": \"\",\n \"endTime\": \"\",\n \"user\": \"\",\n \"httpStatusCode\": 201,\n \"httpStatusMsg\": \"\",\n \"jobId\": \"\",\n \"error\": [\n {\n \"ec\": \"zMsgSucess\",\n \"location\": \"\",\n \"details\": \"\"\n }\n ]\n}\n```", + "operationId": "ZKSClusterInstances_CreateZKSInstance", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "201": { + "description": "Successfully created ZKS instance", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. Invalid ZKS instance configuration or missing required fields.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to create ZKS instances.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. ZKS instance with the same name already exists.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to create ZKS instance due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ZksInstance" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ZKSClusterInstances" + ] + }, + "put": { + "summary": "Bulk update ZKS instances", + "description": "Update multiple ZKS instances at once with new tags or other common properties. This operation is useful for applying changes to multiple clusters simultaneously.\n\n**Example Request:**\n```json\n{\n \"ids\": [\n \"zks-instance-abc123\",\n \"zks-instance-def456\",\n \"zks-instance-ghi789\"\n ],\n \"data\": {\n \"tags\": {\n \"environment\": \"production\",\n \"version\": \"v2\",\n \"managed-by\": \"platform-team\"\n }\n }\n}\n```\n\n**Example Response:**\n```json\n{\n \"operationType\": \"OPS_TYPE_UNSPECIFIED\",\n \"operationStatus\": \"OPS_STATUS_UNSPECIFIED\",\n \"objectKind\": \"\",\n \"objectId\": \"\",\n \"objectName\": \"\",\n \"objectRevision\": \"\",\n \"objectType\": \"OBJECT_TYPE_UNSPECIFIED\",\n \"operationTime\": \"\",\n \"startTime\": \"\",\n \"endTime\": \"\",\n \"user\": \"\",\n \"httpStatusCode\": 200,\n \"httpStatusMsg\": \"\",\n \"jobId\": \"\",\n \"error\": [\n {\n \"ec\": \"zMsgSucess\",\n \"location\": \"\",\n \"details\": \"Successfully updated 3 ZKS instances\"\n }\n ]\n}\n```", + "operationId": "ZKSClusterInstances_BulkUpdateZKSInstances", + "responses": { + "200": { + "description": "Successfully updated ZKS instances", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. Invalid bulk update configuration or empty instance IDs list.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to update ZKS instances.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. One or more ZKS instances with the specified IDs do not exist.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to update ZKS instances due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ZksInstanceBulkUpdate" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ZKSClusterInstances" + ] + } + }, + "/v1/zks/instances/id/{id}": { + "put": { + "summary": "Update ZKS instance", + "description": "Update an existing ZKS instance configuration including name, title, description, and tags.\n\n**Example Request:**\n```json\n{\n \"id\": \"zks-instance-abc123\",\n \"projectId\": \"project-123\",\n \"name\": \"production-cluster\",\n \"title\": \"Updated Production Kubernetes Cluster\",\n \"description\": \"Updated main production cluster for edge applications\",\n \"tags\": {\n \"environment\": \"production\",\n \"region\": \"us-west\",\n \"version\": \"v2\"\n },\n \"nodes\": [\n {\n \"id\": \"node-001\",\n \"clusterInterface\": \"eth0\"\n },\n {\n \"id\": \"node-002\",\n \"clusterInterface\": \"eth0\"\n }\n ],\n \"isImported\": false\n}\n```\n\n**Example Response:**\n```json\n{\n \"operationType\": \"OPS_TYPE_UNSPECIFIED\",\n \"operationStatus\": \"OPS_STATUS_UNSPECIFIED\",\n \"objectKind\": \"\",\n \"objectId\": \"zks-instance-abc123\",\n \"objectName\": \"production-cluster\",\n \"objectRevision\": \"\",\n \"objectType\": \"OBJECT_TYPE_UNSPECIFIED\",\n \"operationTime\": \"\",\n \"startTime\": \"\",\n \"endTime\": \"\",\n \"user\": \"\",\n \"httpStatusCode\": 200,\n \"httpStatusMsg\": \"\",\n \"jobId\": \"\",\n \"error\": [\n {\n \"ec\": \"zMsgSucess\",\n \"location\": \"\",\n \"details\": \"\"\n }\n ]\n}\n```", + "operationId": "ZKSClusterInstances_UpdateZKSInstance", + "responses": { + "200": { + "description": "Successfully updated ZKS instance", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. Invalid ZKS instance configuration or missing required fields.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to update this ZKS instance.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. ZKS instance with the specified ID does not exist.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. Update conflicts with current instance state.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to update ZKS instance due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the zks instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "projectId": { + "type": "string", + "description": "Foreign key to the project", + "pattern": "[0-9A-Za-z-]+" + }, + "name": { + "type": "string", + "description": "User defined name of the zks instance, unique across the enterprise. Once zks instance is created, name can\u2019t be changed" + }, + "title": { + "type": "string", + "description": "User defined title of the zks instance. Title can be changed at any time" + }, + "description": { + "type": "string", + "description": "Detailed description of the zks instance" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "nodes": { + "type": "array", + "items": { + "$ref": "#/definitions/ZksInstanceNode" + }, + "description": "A list of nodes in the zks instance" + }, + "isImported": { + "type": "boolean", + "description": "Indicates if the ZKS instance is imported from an external source" + }, + "clusterPrefix": { + "type": "string", + "description": "Cluster prefix for the ZKS instance" + } + }, + "description": "ZKS Instance details", + "title": "ZKS Instance details", + "required": [ + "projectId", + "name", + "nodes" + ] + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ZKSClusterInstances" + ] + } + }, + "/v1/zks/instances/id/{zksId}": { + "get": { + "summary": "Get ZKS instance by ID", + "description": "Retrieve detailed information about a specific ZKS instance including its configuration, nodes, and metadata.\n\n**Example Request:**\n```\nGET /v1/zks/instances/id/zks-instance-abc123\n```\n\n**Example Response:**\n```json\n{\n \"id\": \"zks-instance-abc123\",\n \"projectId\": \"project-123\",\n \"name\": \"production-cluster\",\n \"title\": \"Production Kubernetes Cluster\",\n \"description\": \"Main production cluster for edge applications\",\n \"tags\": {\n \"environment\": \"production\",\n \"region\": \"us-west\",\n \"purpose\": \"edge-computing\"\n },\n \"nodes\": [\n {\n \"id\": \"node-001\",\n \"clusterInterface\": \"eth0\"\n },\n {\n \"id\": \"node-002\",\n \"clusterInterface\": \"eth0\"\n }\n ],\n \"isImported\": false\n}\n```", + "operationId": "ZKSClusterInstances_GetZKSInstance", + "responses": { + "200": { + "description": "Successfully retrieved ZKS instance information", + "schema": { + "$ref": "#/definitions/ZksInstance" + } + }, + "400": { + "description": "Bad Request. Invalid ZKS instance ID format.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to view this ZKS instance.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. ZKS instance with the specified ID does not exist.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to retrieve ZKS instance due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "zksId", + "description": "Unique identifier of the ZKS instance. This field is required and must be a valid ZKS instance ID.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ZKSClusterInstances" + ] + }, + "delete": { + "summary": "Delete ZKS instance", + "description": "Delete a ZKS instance and all its associated resources. This operation is irreversible and will terminate all running workloads.\n\n**Example Request:**\n```\nDELETE /v1/zks/instances/id/zks-instance-abc123\n```\n\n**Example Response:**\n```json\n{\n \"operationType\": \"OPS_TYPE_UNSPECIFIED\",\n \"operationStatus\": \"OPS_STATUS_UNSPECIFIED\",\n \"objectKind\": \"\",\n \"objectId\": \"zks-instance-abc123\",\n \"objectName\": \"production-cluster\",\n \"objectRevision\": \"\",\n \"objectType\": \"OBJECT_TYPE_UNSPECIFIED\",\n \"operationTime\": \"\",\n \"startTime\": \"\",\n \"endTime\": \"\",\n \"user\": \"\",\n \"httpStatusCode\": 200,\n \"httpStatusMsg\": \"\",\n \"jobId\": \"\",\n \"error\": [\n {\n \"ec\": \"zMsgSucess\",\n \"location\": \"\",\n \"details\": \"\"\n }\n ]\n}\n```\n\n**Warning:** This operation will permanently delete the ZKS instance and all its data. Ensure all important data is backed up before deletion.", + "operationId": "ZKSClusterInstances_DeleteZKSInstance", + "responses": { + "200": { + "description": "Successfully deleted ZKS instance", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. Invalid ZKS instance ID format.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to delete this ZKS instance.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. ZKS instance with the specified ID does not exist.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. Cannot delete ZKS instance due to active workloads or dependencies.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to delete ZKS instance due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "zksId", + "description": "Unique identifier of the ZKS instance. This field is required and must be a valid ZKS instance ID.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ZKSClusterInstances" + ] + } + }, + "/v1/zks/instances/id/{zksId}/metrics": { + "get": { + "summary": "Get ZKS instance metrics by ID", + "description": "Retrieve detailed metrics for a specific ZKS instance including resource utilization and capacity information.\n\n**Example Request:**\n```\nGET /v1/zks/instances/id/zks-instance-abc123/metrics\n```\n\n**Example Response:**\n```json\n{\n \"id\": \"zks-instance-abc123\",\n \"name\": \"production-cluster\",\n \"provider\": \"k3s\",\n \"kubeVersion\": \"v1.28.2+k3s1\",\n \"architecture\": \"amd64\",\n \"created\": \"2024-01-15T10:00:00Z\",\n \"totalResources\": 100,\n \"nOfNodes\": 3,\n \"deployments\": 15,\n \"capacity\": {\n \"pods\": {\n \"used\": 25,\n \"total\": 110\n },\n \"cpus\": {\n \"reserved\": {\n \"current\": 2.5,\n \"total\": 8.0\n },\n \"used\": {\n \"current\": 1.8,\n \"total\": 8.0\n }\n },\n \"memory\": {\n \"reserved\": {\n \"current\": 4.0,\n \"total\": 16.0\n },\n \"used\": {\n \"current\": 3.2,\n \"total\": 16.0\n }\n }\n }\n}\n```", + "operationId": "ZKSClusterInstances_GetZKSInstanceMetrics", + "responses": { + "200": { + "description": "Successfully retrieved ZKS instance metrics", + "schema": { + "$ref": "#/definitions/ZksInstanceMetrics" + } + }, + "400": { + "description": "Bad Request. Invalid ZKS instance ID format.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to view metrics for this ZKS instance.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. ZKS instance with the specified ID does not exist.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to retrieve metrics due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "zksId", + "description": "Unique identifier of the ZKS instance. This field is required and must be a valid ZKS instance ID.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ZKSClusterInstances" + ] + } + }, + "/v1/zks/instances/id/{zksId}/nodes": { + "put": { + "summary": "Update ZKS instance nodes", + "description": "Add or remove nodes from a ZKS instance. This operation allows scaling the cluster up or down by managing individual nodes.\n\n**Example Request (Add Nodes):**\n```json\n{\n \"action\": \"NODE_ACTION_ADD_NODES\",\n \"nodes\": [\n {\n \"id\": \"node-003\",\n \"clusterInterface\": \"eth0\"\n },\n {\n \"id\": \"node-004\",\n \"clusterInterface\": \"eth0\"\n }\n ]\n}\n```\n\n**Example Request (Remove Nodes):**\n```json\n{\n \"action\": \"NODE_ACTION_REMOVE_NODES\",\n \"nodes\": [\n {\n \"id\": \"node-002\",\n \"clusterInterface\": \"eth0\"\n }\n ]\n}\n```\n\n**Example Response:**\n```json\n{\n \"operationType\": \"OPS_TYPE_UNSPECIFIED\",\n \"operationStatus\": \"OPS_STATUS_UNSPECIFIED\",\n \"objectKind\": \"\",\n \"objectId\": \"zks-instance-abc123\",\n \"objectName\": \"production-cluster\",\n \"objectRevision\": \"\",\n \"objectType\": \"OBJECT_TYPE_UNSPECIFIED\",\n \"operationTime\": \"\",\n \"startTime\": \"\",\n \"endTime\": \"\",\n \"user\": \"\",\n \"httpStatusCode\": 200,\n \"httpStatusMsg\": \"\",\n \"jobId\": \"\",\n \"error\": [\n {\n \"ec\": \"zMsgSucess\",\n \"location\": \"\",\n \"details\": \"\"\n }\n ]\n}\n```", + "operationId": "ZKSClusterInstances_UpdateZKSInstanceNodes", + "responses": { + "200": { + "description": "Successfully updated ZKS instance nodes", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. Invalid node update configuration or missing required fields.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to update this ZKS instance.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. ZKS instance with the specified ID does not exist.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. Cannot update nodes due to cluster state or resource constraints.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to update nodes due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "zksId", + "description": "ZKS instance ID for the node update operation", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "action": { + "$ref": "#/definitions/NodeAction", + "description": "Action to be performed on the nodes" + }, + "nodes": { + "type": "array", + "items": { + "$ref": "#/definitions/ZksInstanceNode" + }, + "description": "List of nodes to be added or removed" + } + }, + "title": "ZksNodeUpdate for node update operations" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ZKSClusterInstances" + ] + } + }, + "/v1/zks/instances/id/{zksId}/registration-commands": { + "get": { + "summary": "Get registration commands by ID", + "description": "Retrieve registration commands for adding nodes to a ZKS instance. These commands can be executed on edge devices to join them to the cluster.\n\n**Example Request:**\n```\nGET /v1/zks/instances/id/zks-instance-abc123/registration-commands\n```\n\n**Example Response:**\n```json\n{\n \"created\": \"2024-01-15T10:30:00Z\",\n \"manifestUrl\": \"https://api.zededa.com/manifests/zks-instance-abc123\",\n \"commands\": {\n \"command\": \"curl -sfL https://get.k3s.io | K3S_URL=https://cluster.example.com:6443 K3S_TOKEN=K1234567890abcdef::server:1234567890abcdef sh -\",\n \"insecureCommand\": \"curl -sfL https://get.k3s.io | K3S_URL=https://cluster.example.com:6443 K3S_TOKEN=K1234567890abcdef::server:1234567890abcdef INSTALL_K3S_SKIP_VERIFY=true sh -\",\n \"nodeCommand\": \"curl -sfL https://get.k3s.io | K3S_URL=https://cluster.example.com:6443 K3S_TOKEN=K1234567890abcdef::server:1234567890abcdef sh -s - agent\",\n \"windowsNodeCommand\": \"Invoke-WebRequest -Uri https://github.com/k3s-io/k3s/releases/download/v1.28.2%2Bk3s1/k3s-windows-amd64.exe -OutFile k3s.exe\"\n }\n}\n```", + "operationId": "ZKSClusterInstances_GetZKSInstanceRegistrationCommands", + "responses": { + "200": { + "description": "Successfully retrieved registration commands", + "schema": { + "$ref": "#/definitions/ZksInstanceRegistrationInfo" + } + }, + "400": { + "description": "Bad Request. Invalid ZKS instance ID format.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to view registration commands.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. ZKS instance with the specified ID does not exist.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to retrieve registration commands due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "zksId", + "description": "Unique identifier of the ZKS instance. This field is required and must be a valid ZKS instance ID.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ZKSClusterInstances" + ] + } + }, + "/v1/zks/instances/id/{zksId}/upgrade": { + "put": { + "summary": "Upgrade ZKS instance", + "description": "Upgrade a ZKS instance to a new base OS image or Kubernetes version. This operation will update the underlying infrastructure.\n\n**Example Request:**\n```json\n{\n \"baseOSImage\": {\n \"name\": \"ubuntu-22.04-lts\",\n \"version\": \"22.04.3\",\n \"digest\": \"sha256:abcd1234...\"\n }\n}\n```\n\n**Example Response:**\n```json\n{\n \"operationType\": \"OPS_TYPE_UNSPECIFIED\",\n \"operationStatus\": \"OPS_STATUS_UNSPECIFIED\",\n \"objectKind\": \"\",\n \"objectId\": \"zks-instance-abc123\",\n \"objectName\": \"production-cluster\",\n \"objectRevision\": \"\",\n \"objectType\": \"OBJECT_TYPE_UNSPECIFIED\",\n \"operationTime\": \"\",\n \"startTime\": \"\",\n \"endTime\": \"\",\n \"user\": \"\",\n \"httpStatusCode\": 200,\n \"httpStatusMsg\": \"\",\n \"jobId\": \"upgrade-job-123\",\n \"error\": [\n {\n \"ec\": \"zMsgSucess\",\n \"location\": \"\",\n \"details\": \"\"\n }\n ]\n}\n```\n\n**Note:** Upgrade operations may take significant time to complete and will be processed asynchronously.", + "operationId": "ZKSClusterInstances_UpgradeZKSInstance", + "responses": { + "200": { + "description": "Successfully initiated ZKS instance upgrade", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. Invalid upgrade configuration or missing required fields.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to upgrade this ZKS instance.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. ZKS instance with the specified ID does not exist.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. Cannot upgrade due to cluster state or ongoing operations.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to initiate upgrade due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "zksId", + "description": "ZKS instance ID for the upgrade operation", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "baseOSImage": { + "$ref": "#/definitions/BaseOSImage" + } + } + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ZKSClusterInstances" + ] + } + }, + "/v1/zks/instances/import": { + "post": { + "summary": "Import an existing ZKS instance", + "description": "Import an existing Kubernetes cluster as a ZKS instance into the ZEDEDA platform. This allows managing externally created clusters through ZEDEDA.\n\n**Example Request:**\n```json\n{\n \"projectId\": \"project-123\",\n \"name\": \"imported-cluster\",\n \"title\": \"Imported Production Cluster\",\n \"description\": \"Externally created cluster imported into ZEDEDA\",\n \"tags\": {\n \"environment\": \"production\",\n \"source\": \"external\"\n },\n \"nodes\": [\n {\n \"id\": \"node-001\",\n \"clusterInterface\": \"eth0\"\n }\n ],\n \"isImported\": true\n}\n```\n\n**Example Response:**\n```json\n{\n \"operationType\": \"OPS_TYPE_UNSPECIFIED\",\n \"operationStatus\": \"OPS_STATUS_UNSPECIFIED\",\n \"objectKind\": \"\",\n \"objectId\": \"zks-instance-def456\",\n \"objectName\": \"imported-cluster\",\n \"objectRevision\": \"\",\n \"objectType\": \"OBJECT_TYPE_UNSPECIFIED\",\n \"operationTime\": \"\",\n \"startTime\": \"\",\n \"endTime\": \"\",\n \"user\": \"\",\n \"httpStatusCode\": 201,\n \"httpStatusMsg\": \"\",\n \"jobId\": \"\",\n \"error\": [\n {\n \"ec\": \"zMsgSucess\",\n \"location\": \"\",\n \"details\": \"\"\n }\n ]\n}\n```", + "operationId": "ZKSClusterInstances_ImportZKSInstance", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "201": { + "description": "Successfully imported ZKS instance", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. Invalid import configuration or missing required fields.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to import ZKS instances.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. ZKS instance with the same name already exists.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to import ZKS instance due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ZksInstance" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ZKSClusterInstances" + ] + } + }, + "/v1/zks/instances/k3s-upgrade": { + "put": { + "summary": "Bulk upgrade K3s version", + "description": "Upgrade K3s version for multiple ZKS instances simultaneously. This operation initiates a rolling upgrade across the specified clusters.\n\n**Example Request:**\n```json\n{\n \"ids\": [\n \"zks-instance-abc123\",\n \"zks-instance-def456\"\n ],\n \"data\": {\n \"version\": \"v1.28.5+k3s1\"\n }\n}\n```\n\n**Example Response:**\n```json\n{\n \"operationType\": \"OPS_TYPE_UNSPECIFIED\",\n \"operationStatus\": \"OPS_STATUS_UNSPECIFIED\",\n \"objectKind\": \"\",\n \"objectId\": \"\",\n \"objectName\": \"\",\n \"objectRevision\": \"\",\n \"objectType\": \"OBJECT_TYPE_UNSPECIFIED\",\n \"operationTime\": \"\",\n \"startTime\": \"\",\n \"endTime\": \"\",\n \"user\": \"\",\n \"httpStatusCode\": 200,\n \"httpStatusMsg\": \"\",\n \"jobId\": \"bulk-upgrade-job-123\",\n \"error\": [\n {\n \"ec\": \"zMsgSucess\",\n \"location\": \"\",\n \"details\": \"K3s upgrade initiated for 2 ZKS instances\"\n }\n ]\n}\n```\n\n**Note:** Upgrade operations are asynchronous and may take considerable time to complete.", + "operationId": "ZKSClusterInstances_BulkUpgradeK3s", + "responses": { + "200": { + "description": "Successfully initiated K3s upgrade", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. Invalid upgrade configuration or empty instance IDs list.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to upgrade ZKS instances.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. One or more ZKS instances with the specified IDs do not exist.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. Cannot upgrade due to cluster state or ongoing operations.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to initiate K3s upgrade due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ZksInstanceK3sBulkUpgrade" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ZKSClusterInstances" + ] + } + }, + "/v1/zks/instances/k3s-versions": { + "get": { + "summary": "Get available K3s versions", + "description": "Retrieve a list of available K3s versions that can be used for cluster creation or upgrades.\n\n**Example Request:**\n```\nGET /v1/zks/instances/k3s-versions\n```\n\n**Example Response:**\n```json\n{\n \"list\": [\n {\n \"id\": \"v1.28.5+k3s1\",\n \"version\": \"v1.28.5+k3s1\",\n \"type\": \"release\"\n },\n {\n \"id\": \"v1.28.4+k3s2\",\n \"version\": \"v1.28.4+k3s2\",\n \"type\": \"release\"\n },\n {\n \"id\": \"v1.27.9+k3s1\",\n \"version\": \"v1.27.9+k3s1\",\n \"type\": \"release\"\n },\n {\n \"id\": \"v1.29.0+k3s1\",\n \"version\": \"v1.29.0+k3s1\",\n \"type\": \"beta\"\n }\n ]\n}\n```", + "operationId": "ZKSClusterInstances_GetK3sVersions", + "responses": { + "200": { + "description": "Successfully retrieved K3s versions list", + "schema": { + "$ref": "#/definitions/ZksK3sVersionList" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to view K3s versions.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to retrieve K3s versions due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "tags": [ + "ZKSClusterInstances" + ], + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ] + } + }, + "/v1/zks/instances/name/{zksName}": { + "get": { + "summary": "Get ZKS instance by name", + "description": "Retrieve detailed information about a specific ZKS instance by its name.\n\n**Example Request:**\n```\nGET /v1/zks/instances/name/production-cluster\n```\n\n**Example Response:**\n```json\n{\n \"id\": \"zks-instance-abc123\",\n \"projectId\": \"project-123\",\n \"name\": \"production-cluster\",\n \"title\": \"Production Kubernetes Cluster\",\n \"description\": \"Main production cluster for edge applications\",\n \"tags\": {\n \"environment\": \"production\",\n \"region\": \"us-west\"\n },\n \"nodes\": [\n {\n \"id\": \"node-001\",\n \"clusterInterface\": \"eth0\"\n }\n ],\n \"isImported\": false\n}\n```", + "operationId": "ZKSClusterInstances_GetZKSInstanceByName", + "responses": { + "200": { + "description": "Successfully retrieved ZKS instance information", + "schema": { + "$ref": "#/definitions/ZksInstance" + } + }, + "400": { + "description": "Bad Request. Invalid ZKS instance name format.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to view this ZKS instance.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. ZKS instance with the specified name does not exist.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to retrieve ZKS instance due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "zksName", + "description": "Name of the ZKS instance. This field is required and must be a valid ZKS instance name.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ZKSClusterInstances" + ] + } + }, + "/v1/zks/instances/name/{zksName}/metrics": { + "get": { + "summary": "Get ZKS instance metrics by name", + "description": "Retrieve detailed metrics for a specific ZKS instance by its name including resource utilization and capacity information.\n\n**Example Request:**\n```\nGET /v1/zks/instances/name/production-cluster/metrics\n```\n\n**Example Response:**\n```json\n{\n \"id\": \"zks-instance-abc123\",\n \"name\": \"production-cluster\",\n \"provider\": \"k3s\",\n \"kubeVersion\": \"v1.28.2+k3s1\",\n \"architecture\": \"amd64\",\n \"created\": \"2024-01-15T10:00:00Z\",\n \"totalResources\": 100,\n \"nOfNodes\": 3,\n \"deployments\": 15,\n \"capacity\": {\n \"pods\": {\n \"used\": 25,\n \"total\": 110\n },\n \"cpus\": {\n \"reserved\": {\n \"current\": 2.5,\n \"total\": 8.0\n },\n \"used\": {\n \"current\": 1.8,\n \"total\": 8.0\n }\n },\n \"memory\": {\n \"reserved\": {\n \"current\": 4.0,\n \"total\": 16.0\n },\n \"used\": {\n \"current\": 3.2,\n \"total\": 16.0\n }\n }\n }\n}\n```", + "operationId": "ZKSClusterInstances_GetZKSInstanceMetricsByName", + "responses": { + "200": { + "description": "Successfully retrieved ZKS instance metrics", + "schema": { + "$ref": "#/definitions/ZksInstanceMetrics" + } + }, + "400": { + "description": "Bad Request. Invalid ZKS instance name format.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to view metrics for this ZKS instance.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. ZKS instance with the specified name does not exist.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to retrieve metrics due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "zksName", + "description": "Name of the ZKS instance. This field is required and must be a valid ZKS instance name.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ZKSClusterInstances" + ] + } + }, + "/v1/zks/instances/name/{zksName}/registration-commands": { + "get": { + "summary": "Get registration commands by name", + "description": "Retrieve registration commands for adding nodes to a ZKS instance by its name. These commands can be executed on edge devices to join them to the cluster.\n\n**Example Request:**\n```\nGET /v1/zks/instances/name/production-cluster/registration-commands\n```\n\n**Example Response:**\n```json\n{\n \"created\": \"2024-01-15T10:30:00Z\",\n \"manifestUrl\": \"https://api.zededa.com/manifests/production-cluster\",\n \"commands\": {\n \"command\": \"curl -sfL https://get.k3s.io | K3S_URL=https://cluster.example.com:6443 K3S_TOKEN=K1234567890abcdef::server:1234567890abcdef sh -\",\n \"insecureCommand\": \"curl -sfL https://get.k3s.io | K3S_URL=https://cluster.example.com:6443 K3S_TOKEN=K1234567890abcdef::server:1234567890abcdef INSTALL_K3S_SKIP_VERIFY=true sh -\",\n \"nodeCommand\": \"curl -sfL https://get.k3s.io | K3S_URL=https://cluster.example.com:6443 K3S_TOKEN=K1234567890abcdef::server:1234567890abcdef sh -s - agent\",\n \"windowsNodeCommand\": \"Invoke-WebRequest -Uri https://github.com/k3s-io/k3s/releases/download/v1.28.2%2Bk3s1/k3s-windows-amd64.exe -OutFile k3s.exe\"\n }\n}\n```", + "operationId": "ZKSClusterInstances_GetZKSInstanceRegistrationCommandsByName", + "responses": { + "200": { + "description": "Successfully retrieved registration commands", + "schema": { + "$ref": "#/definitions/ZksInstanceRegistrationInfo" + } + }, + "400": { + "description": "Bad Request. Invalid ZKS instance name format.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to view registration commands.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. ZKS instance with the specified name does not exist.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to retrieve registration commands due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "zksName", + "description": "Name of the ZKS instance. This field is required and must be a valid ZKS instance name.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ZKSClusterInstances" + ] + } + }, + "/v1/zks/instances/status": { + "get": { + "summary": "Get ZKS instances status", + "description": "Retrieve detailed status information for all ZKS instances including runtime metrics, capacity information, and node health.\n\n**Query Parameters:**\n- `zksid` (optional): Filter by ZKS instance ID\n- `zksname` (optional): Filter by ZKS instance name\n- `zksnamePattern` (optional): Filter by ZKS instance name pattern\n- `projectName` (optional): Filter by project name\n- `projectNamePattern` (optional): Filter by project name pattern\n- `tags` (optional): Filter by tags (JSON object)\n\n**Example Request:**\n```\nGET /v1/zks/instances/status\nGET /v1/zks/instances/status?zksname=production-cluster\nGET /v1/zks/instances/status?projectName=production-project\n```\n\n**Example Response:**\n```json\n{\n \"list\": [\n {\n \"id\": \"zks-instance-abc123\",\n \"projectId\": \"project-123\",\n \"name\": \"production-cluster\",\n \"title\": \"Production Kubernetes Cluster\",\n \"description\": \"Main production cluster\",\n \"tags\": {\n \"environment\": \"production\"\n },\n \"runState\": \"DEPLOYED\",\n \"kubeVersion\": \"v1.28.2\",\n \"architecture\": \"amd64\",\n \"created\": \"2024-01-15T10:00:00Z\",\n \"totalResources\": 100,\n \"nOfNodes\": 3,\n \"deployments\": 15,\n \"capacity\": {\n \"pods\": {\n \"used\": 25,\n \"total\": 110\n },\n \"cpus\": {\n \"reserved\": {\n \"current\": 2.5,\n \"total\": 8.0\n },\n \"used\": {\n \"current\": 1.8,\n \"total\": 8.0\n }\n },\n \"memory\": {\n \"reserved\": {\n \"current\": 4.0,\n \"total\": 16.0\n },\n \"used\": {\n \"current\": 3.2,\n \"total\": 16.0\n }\n }\n },\n \"projectName\": \"Production Project\",\n \"isImported\": false\n }\n ],\n \"summaries\": {\n \"statuses\": {\n \"online\": 3,\n \"init\": 0,\n \"suspect\": 0,\n \"error\": 0,\n \"unspecified\": 0,\n \"unknown\": 0,\n \"offline\": 0,\n \"pending\": 0\n }\n },\n \"next\": {\n \"pageToken\": \"next-page-token\"\n }\n}\n```", + "operationId": "ZKSClusterInstances_GetZKSInstancesStatus", + "responses": { + "200": { + "description": "Successfully retrieved ZKS instances status", + "schema": { + "$ref": "#/definitions/ZksInstanceStatusListResp" + } + }, + "400": { + "description": "Bad Request. Invalid query parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. Authentication credentials are missing or invalid.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. User does not have permission to view ZKS instances status.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. Failed to retrieve status due to server error.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "tags": [ + "ZKSClusterInstances" + ], + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ] + } + } + }, + "definitions": { + "AdminState": { + "type": "string", + "enum": [ + "ADMIN_STATE_UNSPECIFIED", + "ADMIN_STATE_CREATED", + "ADMIN_STATE_DELETED", + "ADMIN_STATE_ACTIVE", + "ADMIN_STATE_INACTIVE", + "ADMIN_STATE_REGISTERED", + "ADMIN_STATE_ARCHIVED", + "ADMIN_STATE_DELETION_PENDING" + ], + "default": "ADMIN_STATE_UNSPECIFIED", + "description": "- ADMIN_STATE_CREATED: Entity Created in the controller\n - ADMIN_STATE_DELETED: Entity Deleted in the controller\n - ADMIN_STATE_ACTIVE: Entity Activated in the controller\n - ADMIN_STATE_INACTIVE: Entity Deactivated in the controller\n - ADMIN_STATE_REGISTERED: Specific to Edge-node - Edge-node Registered with the controller\n - ADMIN_STATE_ARCHIVED: Entity Archived in the controller\n - ADMIN_STATE_DELETION_PENDING: Entity was marked as Deleted but not yet deleted in the controller", + "title": "AdminState - On update, please update AdminState_HttpRequest as well" + }, + "BaseOSImage": { + "type": "object", + "properties": { + "uuid": { + "type": "string", + "description": "system generated unique id for an image" + }, + "version": { + "type": "string", + "description": "image version" + }, + "imageName": { + "type": "string", + "description": "image name" + }, + "activate": { + "type": "boolean", + "description": "activation flag" + }, + "imvolId": { + "type": "string", + "description": "immutable Volume for this base image" + } + }, + "description": "Base OS image request details", + "title": "Base OS image payload detail", + "required": [ + "uuid", + "version", + "imageName", + "activate" + ] + }, + "BasicAuthCredentials": { + "type": "object", + "properties": { + "username": { + "type": "string", + "description": "Username for basic authentication" + }, + "password": { + "type": "string", + "description": "Password for basic authentication" + } + }, + "description": "Username and password credentials for basic authentication", + "title": "Basic authentication credentials" + }, + "Chart": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the Helm chart. Example: 'nginx'" + }, + "version": { + "type": "string", + "description": "Version of the Helm chart. Example: '15.4.0'" + }, + "customValues": { + "type": "object", + "description": "Custom values for the Helm chart. Example: {'replicaCount': 3, 'service': {'type': 'LoadBalancer', 'port': 80}}" + }, + "repoIdentifier": { + "type": "string", + "description": "Repository identifier for the Helm chart. Example: 'bitnami'" + } + }, + "description": "Details of the Helm chart", + "title": "Helm chart details", + "required": [ + "name", + "version" + ] + }, + "ClusterCapacity": { + "type": "object", + "properties": { + "pods": { + "$ref": "#/definitions/PodsCapacity", + "description": "Pods capacity of the cluster" + }, + "cpus": { + "$ref": "#/definitions/ResourceCapacityUsage", + "description": "CPU capacity of the cluster" + }, + "memory": { + "$ref": "#/definitions/ResourceCapacityUsage", + "description": "Memory capacity of the cluster" + } + }, + "title": "ClusterCapacity represents the overall capacity of a cluster" + }, + "ClusterGroup": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the cluster group", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "projectId": { + "type": "string", + "description": "Foreign key to the project", + "pattern": "[0-9A-Za-z-]+" + }, + "name": { + "type": "string", + "description": "User defined name of the cluster group, unique across the enterprise. Once cluster group is created, name can\u2019t be changed" + }, + "title": { + "type": "string", + "description": "User defined title of the cluster group. Title can be changed at any time" + }, + "description": { + "type": "string", + "description": "Detailed description of the cluster group" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "manifest": { + "type": "object", + "$ref": "#/definitions/ClusterGroupManifest", + "description": "The cluster group manifest" + } + }, + "description": "Cluster Group details", + "title": "Cluster Group details", + "required": [ + "projectId", + "name" + ] + }, + "ClusterGroupCluster": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the cluster in the cluster group" + }, + "state": { + "type": "string", + "$ref": "#/definitions/RunState", + "description": "State of the cluster in the cluster group" + }, + "bundleReady": { + "type": "string", + "description": "Bundle readiness of the cluster in the cluster group" + }, + "reposReady": { + "type": "string", + "description": "Repository readiness of the cluster in the cluster group" + }, + "resources": { + "type": "integer", + "format": "int64", + "description": "Number of resources in the cluster in the cluster group" + }, + "lastSeen": { + "type": "string", + "format": "date-time", + "description": "Last seen timestamp of the cluster in the cluster group" + }, + "age": { + "type": "string", + "format": "date-time", + "description": "Age of the cluster in the cluster group" + } + } + }, + "ClusterGroupManifest": { + "type": "object", + "properties": { + "yamlContent": { + "type": "string", + "description": "The content of an yaml manifest" + } + }, + "description": "Cluster Group Manifest details", + "title": "Cluster Group Manifest details", + "required": [ + "yamlContent" + ] + }, + "ClusterGroupManifestJaml": { + "type": "object", + "properties": { + "yamlContent": { + "type": "string", + "description": "The content of an jaml manifest" + } + } + }, + "ClusterGroupManifestOutput": { + "type": "object", + "properties": { + "manifest": { + "$ref": "#/definitions/ClusterGroupManifestJaml", + "description": "The cluster group manifest in jaml format" + } + } + }, + "ClusterGroupResourceSummary": { + "type": "object", + "properties": { + "missing": { + "type": "integer", + "format": "int64", + "description": "Number of resources in the cluster group that are missing" + }, + "modified": { + "type": "integer", + "format": "int64", + "description": "Number of resources in the cluster group that are modified" + }, + "notReady": { + "type": "integer", + "format": "int64", + "description": "Number of resources in the cluster group that are not ready" + }, + "orphaned": { + "type": "integer", + "format": "int64", + "description": "Number of resources in the cluster group that are orphaned" + }, + "ready": { + "type": "integer", + "format": "int64", + "description": "Number of resources in the cluster group that are ready" + }, + "unknown": { + "type": "integer", + "format": "int64", + "description": "Number of resources in the cluster group that are in unknown state" + }, + "waitApplied": { + "type": "integer", + "format": "int64", + "description": "Number of resources in the cluster group that are waiting for applied state" + } + } + }, + "ClusterGroupResources": { + "type": "object", + "properties": { + "amount": { + "type": "integer", + "format": "int64", + "description": "Total resources of clusters in the cluster group" + }, + "summary": { + "$ref": "#/definitions/ClusterGroupResourceSummary", + "description": "Summary of the resources in the cluster group" + } + } + }, + "ClusterGroupStatus": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the cluster group", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "projectId": { + "type": "string", + "description": "Foreign key to the project", + "pattern": "[0-9A-Za-z-]+" + }, + "projectName": { + "type": "string", + "description": "Name of the project to which this cluster group belongs" + }, + "name": { + "type": "string", + "description": "User defined name of the cluster group, unique across the enterprise. Once cluster group is created, name can\u2019t be changed" + }, + "title": { + "type": "string", + "description": "User defined title of the cluster group. Title can be changed at any time" + }, + "description": { + "type": "string", + "description": "Detailed description of the cluster group" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "state": { + "$ref": "#/definitions/RunState", + "description": "Run state of the cluster group" + }, + "clusterReadiness": { + "$ref": "#/definitions/ClusterReadiness", + "description": "Readiness of the clusters in the cluster group" + }, + "resources": { + "$ref": "#/definitions/ClusterGroupResources", + "description": "Resources in the cluster group" + }, + "clusters": { + "type": "array", + "items": { + "$ref": "#/definitions/ClusterGroupCluster" + }, + "description": "List of clusters in the cluster group" + }, + "namespace": { + "type": "string", + "description": "Namespace of the cluster group" + }, + "age": { + "type": "string", + "format": "date-time", + "description": "Age of the cluster group" + }, + "clusterTags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Cluster tags are name/value pairs that enable you to categorize clusters" + } + } + }, + "ClusterGroupStatusListResp": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/ClusterGroupStatus" + }, + "description": "Detailed statuses of the cluster groups" + }, + "result": { + "$ref": "#/definitions/ZsrvResponse", + "description": "Response result" + }, + "totalCount": { + "type": "integer", + "format": "int64", + "description": "Total number of cluster groups satisfying the filter criteria" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "Cursor for pagination" + } + } + }, + "ClusterMetadata": { + "type": "object", + "properties": { + "clusterId": { + "type": "string", + "description": "ID of the target cluster. Example: 'cluster-abc123'" + }, + "orchestratorClusterId": { + "type": "string", + "description": "Orchestrator cluster ID. Example: 'rancher-cluster-123'" + }, + "clusterName": { + "type": "string", + "description": "Name of the target cluster. Example: 'production-k8s'" + }, + "kubeVersion": { + "type": "string", + "description": "Kubernetes version of the target cluster. Example: 'v1.28.0'" + } + }, + "description": "Metadata for the target cluster", + "title": "Cluster metadata", + "required": [ + "clusterId", + "orchestratorClusterId" + ] + }, + "ClusterReadiness": { + "type": "object", + "properties": { + "total": { + "type": "integer", + "format": "int64", + "description": "Total number of clusters in the cluster group" + }, + "ready": { + "type": "integer", + "format": "int64", + "description": "Number of clusters in the cluster group that are ready" + } + } + }, + "Cursor": { + "type": "object", + "properties": { + "pageToken": { + "type": "string", + "description": "Page Token" + }, + "orderBy": { + "type": "array", + "items": { + "type": "string" + }, + "description": "OrderBy helps in sorting the list response" + }, + "pageNum": { + "type": "number", + "format": "int64", + "description": "Page Number" + }, + "pageSize": { + "type": "number", + "format": "int64", + "description": "Defines the page size" + }, + "totalPages": { + "type": "number", + "format": "int64", + "description": "Total number of pages to be fetched." + } + }, + "description": "Cursor helps in filtering the various list response like edge-app bundle list, model list, bundle list etc. ", + "title": "Cursor is used as filter in list operation." + }, + "DeploymentData": { + "type": "object", + "properties": { + "helmChartData": { + "$ref": "#/definitions/HelmChartData", + "description": "Helm chart data for the deployment" + } + }, + "description": "Data for the deployment", + "title": "Deployment data", + "required": [ + "helmChartData" + ] + }, + "DeploymentGetResponse": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Deployment ID" + }, + "name": { + "type": "string", + "description": "Release name" + }, + "title": { + "type": "string", + "description": "Title of the deployment" + }, + "description": { + "type": "string", + "description": "Description of the deployment" + }, + "projectId": { + "type": "string", + "description": "Project ID associated with the deployment" + }, + "type": { + "$ref": "#/definitions/K8sDeploymentType", + "description": "Type of deployment" + }, + "spec": { + "$ref": "#/definitions/DeploymentData", + "description": "Deployment spec" + }, + "deploymentStatus": { + "type": "string", + "description": "Deployment status" + }, + "resourceStatusMap": { + "type": "array", + "items": { + "type": "object" + }, + "description": "Map of resource status details" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "description": "Creation timestamp" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "description": "Last update timestamp" + }, + "createdBy": { + "type": "string", + "description": "User who created the deployment" + }, + "updatedBy": { + "type": "string", + "description": "User who last updated the deployment" + } + }, + "description": "Deployment get response", + "title": "Deployment get response" + }, + "DeploymentListResponse": { + "type": "object", + "properties": { + "totalCount": { + "type": "integer", + "format": "int64", + "description": "Total number of deployments" + }, + "stateSummary": { + "$ref": "#/definitions/Summary", + "description": "Summary of deployment states" + }, + "deployments": { + "type": "array", + "items": { + "$ref": "#/definitions/DeploymentGetResponse" + }, + "description": "List of deployments" + } + }, + "description": "Response containing a list of deployments", + "title": "Deployment list response" + }, + "DeploymentRequest": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/K8sDeploymentType", + "description": "Type of deployment (required). Currently only 'HELMCHART' is supported." + }, + "metadata": { + "$ref": "#/definitions/Metadata", + "description": "Metadata for the deployment (required)" + }, + "data": { + "$ref": "#/definitions/DeploymentData", + "description": "Data for the deployment (required)" + } + }, + "description": "Deployment create request", + "title": "Deployment create request", + "required": [ + "type", + "metadata", + "data" + ] + }, + "GitAuthConfig": { + "type": "object", + "properties": { + "secret": { + "$ref": "#/definitions/GitRepoSecretConfig", + "description": "Secret configuration for Git authentication" + } + }, + "description": "Authentication configuration for Git repository access", + "title": "Git authentication configuration" + }, + "GitRepoAuthConfig": { + "type": "object", + "properties": { + "encodedCertificates": { + "type": "string", + "description": "Base64 encoded certificates for TLS authentication" + }, + "insecureSkipTlsVerify": { + "type": "boolean", + "description": "Skip TLS certificate verification" + }, + "git": { + "$ref": "#/definitions/GitAuthConfig", + "description": "Git-specific authentication configuration" + }, + "helm": { + "$ref": "#/definitions/HelmAuthConfig", + "description": "Helm-specific authentication configuration" + } + }, + "description": "Complete authentication configuration for GitRepo including certificates and credentials", + "title": "GitRepo authentication configuration" + }, + "GitRepoCondition": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Type of the condition" + }, + "status": { + "type": "string", + "description": "Status of the condition (True, False, Unknown)" + }, + "error": { + "type": "boolean", + "description": "Whether the condition represents an error state" + }, + "transitioning": { + "type": "boolean", + "description": "Whether the condition is in a transitioning state" + }, + "message": { + "type": "string", + "description": "Human readable message indicating details about the condition" + }, + "lastUpdateTime": { + "type": "string", + "description": "Last time the condition was updated" + } + }, + "description": "Status condition information for a GitRepo", + "title": "GitRepo condition" + }, + "GitRepoCreateRequest": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/definitions/GitRepoMetadata", + "description": "Metadata for the GitRepo (required)" + }, + "data": { + "$ref": "#/definitions/GitRepoData", + "description": "Data specification for the GitRepo (required)" + } + }, + "description": "Request message for creating a new GitRepo configuration", + "title": "GitRepo create request", + "required": [ + "metadata", + "data" + ] + }, + "GitRepoData": { + "type": "object", + "properties": { + "projectId": { + "type": "string", + "description": "Project ID where the GitRepo belongs (required)" + }, + "repoDetails": { + "$ref": "#/definitions/GitRepoRepositoryDetails", + "description": "Repository details and configuration (required)" + }, + "auth": { + "$ref": "#/definitions/GitRepoAuthConfig", + "description": "Authentication configuration, required for private repositories" + }, + "target": { + "$ref": "#/definitions/GitRepoTargetConfig", + "description": "Target deployment configuration (required)" + } + }, + "description": "Complete data specification for a GitRepo configuration", + "title": "GitRepo data", + "required": [ + "projectId", + "repoDetails", + "target" + ] + }, + "GitRepoEvents": { + "type": "object", + "properties": { + "reason": { + "type": "string", + "description": "Reason for the event" + }, + "type": { + "type": "string", + "description": "Type of the event" + }, + "message": { + "type": "string", + "description": "Detailed message about the event" + }, + "lastUpdateTime": { + "type": "string", + "format": "date-time", + "description": "Last time the event was updated" + } + }, + "description": "Events related to GitRepo operations", + "title": "GitRepo events" + }, + "GitRepoGetResponse": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Unique identifier of the GitRepo" + }, + "name": { + "type": "string", + "description": "Name of the GitRepo configuration" + }, + "title": { + "type": "string", + "description": "Display title of the GitRepo configuration" + }, + "description": { + "type": "string", + "description": "Description of the GitRepo configuration" + }, + "workspace": { + "type": "string", + "description": "Workspace where the GitRepo is deployed" + }, + "data": { + "$ref": "#/definitions/GitRepoData", + "description": "Specification details" + }, + "status": { + "$ref": "#/definitions/GitRepoGetStatus", + "description": "Current status information" + }, + "events": { + "type": "array", + "items": { + "$ref": "#/definitions/GitRepoEvents" + }, + "description": "List of events related to the GitRepo" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "description": "Timestamp when the GitRepo was created" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "description": "Timestamp when the GitRepo was last updated" + }, + "createdBy": { + "type": "string", + "description": "User who created the GitRepo" + }, + "updatedBy": { + "type": "string", + "description": "User who last updated the GitRepo" + } + }, + "description": "Complete response for GitRepo GET operations including metadata, specification, and status", + "title": "GitRepo get response" + }, + "GitRepoGetStatus": { + "type": "object", + "properties": { + "display": { + "$ref": "#/definitions/GitRepoStatusDisplay", + "description": "Display status information" + }, + "conditions": { + "type": "array", + "items": { + "$ref": "#/definitions/GitRepoCondition" + }, + "description": "List of conditions describing the current state" + }, + "resourceCounts": { + "$ref": "#/definitions/GitRepoResourceCounts", + "description": "Resource count information" + }, + "resourceStatusMap": { + "type": "array", + "items": { + "$ref": "#/definitions/GitRepoResourceStatusMap" + }, + "description": "Detailed status map of individual resources managed by this GitRepo" + }, + "state": { + "$ref": "#/definitions/GitRepoState", + "description": "Current state information for the GitRepo" + }, + "summary": { + "type": "object", + "description": "Summary information for the GitRepo" + } + }, + "description": "Status information for GitRepo including sync status and resource conditions", + "title": "GitRepo get status" + }, + "GitRepoListResponse": { + "type": "object", + "properties": { + "totalCount": { + "type": "integer", + "format": "int32", + "description": "Total count of GitRepos" + }, + "stateSummary": { + "$ref": "#/definitions/GitRepoListStatusSummary", + "description": "Summary of GitRepo statuses" + }, + "gitrepos": { + "type": "array", + "items": { + "$ref": "#/definitions/GitRepoGetResponse" + }, + "description": "List of GitRepo entries" + } + }, + "description": "Response for GitRepo LIST operations containing multiple GitRepo entries with summary information", + "title": "GitRepo list response" + }, + "GitRepoListStatusSummary": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Description of the status summary" + }, + "total": { + "type": "integer", + "format": "int32", + "description": "Total number of GitRepos" + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "integer", + "format": "int32" + }, + "description": "Map of status values and their counts" + } + }, + "description": "Summary of GitRepo statuses in the list response", + "title": "GitRepo list status summary" + }, + "GitRepoMetadata": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the GitRepo configuration (required)" + }, + "title": { + "type": "string", + "description": "Display title of the GitRepo configuration" + }, + "description": { + "type": "string", + "description": "Description of the GitRepo configuration" + } + }, + "description": "Metadata information for a GitRepo configuration", + "title": "GitRepo metadata", + "required": [ + "name" + ] + }, + "GitRepoRepositoryDetails": { + "type": "object", + "properties": { + "url": { + "type": "string", + "description": "Git repository URL (required)" + }, + "branch": { + "type": "string", + "description": "Git branch to track" + }, + "commit": { + "type": "string", + "description": "Specific git commit hash" + }, + "pathList": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of paths within the repository to monitor" + } + }, + "description": "Repository configuration details for GitRepo", + "title": "GitRepo repository details", + "required": [ + "url" + ] + }, + "GitRepoResourceCounts": { + "type": "object", + "properties": { + "desiredReady": { + "type": "integer", + "format": "int32", + "description": "Desired ready count" + }, + "missing": { + "type": "integer", + "format": "int32", + "description": "Missing resources count" + }, + "modified": { + "type": "integer", + "format": "int32", + "description": "Modified resources count" + }, + "notReady": { + "type": "integer", + "format": "int32", + "description": "Not ready resources count" + }, + "orphaned": { + "type": "integer", + "format": "int32", + "description": "Orphaned resources count" + }, + "ready": { + "type": "integer", + "format": "int32", + "description": "Ready resources count" + }, + "unknown": { + "type": "integer", + "format": "int32", + "description": "Unknown resources count" + }, + "waitApplied": { + "type": "integer", + "format": "int32", + "description": "Wait applied resources count" + } + }, + "description": "Count of resources in different states", + "title": "GitRepo resource counts" + }, + "GitRepoResourceStatusMap": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "description": "API version of the resource" + }, + "kind": { + "type": "string", + "description": "Kind of Kubernetes resource" + }, + "name": { + "type": "string", + "description": "Name of the resource" + }, + "namespace": { + "type": "string", + "description": "Namespace of the resource" + }, + "state": { + "type": "string", + "description": "State of the resource" + } + }, + "description": "Status information for individual resources with detailed mapping", + "title": "GitRepo resource status map" + }, + "GitRepoSecretConfig": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/SecretType", + "description": "Type of secret for authentication(SECRET_TYPE_SSH, SECRET_TYPE_BASIC_AUTH, SECRET_TYPE_UNSPECIFIED, SECRET_TYPE_NONE). For a Public Repository, set type as SECRET_TYPE_NONE" + }, + "name": { + "type": "string", + "description": "Name of the secret" + } + }, + "description": "Secret configuration for GitRepo authentication, required for private repositories", + "title": "GitRepo secret configuration" + }, + "GitRepoState": { + "type": "object", + "properties": { + "error": { + "type": "boolean", + "description": "Indicates if the GitRepo is in an error state" + }, + "message": { + "type": "string", + "description": "Status message providing additional details about the GitRepo state" + }, + "name": { + "type": "string", + "description": "current state name" + }, + "transitioning": { + "type": "boolean", + "description": "Indicates if the GitRepo is currently undergoing state transition" + } + }, + "description": "Current operational state of a GitRepo", + "title": "GitRepo state" + }, + "GitRepoStatusDisplay": { + "type": "object", + "properties": { + "readyBundleDeployments": { + "type": "string", + "description": "Ready bundle deployments count" + }, + "state": { + "type": "string", + "description": "Current state of the GitRepo" + } + }, + "description": "Display-friendly status information", + "title": "GitRepo status display" + }, + "GitRepoTargetConfig": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/GitRepoTargetType", + "description": "Type of target for GitRepo deployment (required)" + }, + "value": { + "type": "string", + "description": "Target value (cluster ID, cluster group ID, etc.). Required when type is CLUSTER or CLUSTER_GROUP, not required for ALL_CLUSTER" + } + }, + "description": "Target configuration specifying where the GitRepo should be deployed", + "title": "GitRepo target configuration", + "required": [ + "type" + ] + }, + "GitRepoTargetType": { + "type": "string", + "enum": [ + "GIT_REPO_TARGET_TYPE_UNKNOWN", + "GIT_REPO_TARGET_TYPE_ALL_CLUSTER", + "GIT_REPO_TARGET_TYPE_CLUSTER", + "GIT_REPO_TARGET_TYPE_CLUSTER_GROUP" + ], + "default": "GIT_REPO_TARGET_TYPE_UNKNOWN", + "title": "GitRepo Target Types" + }, + "HelmAuthConfig": { + "type": "object", + "properties": { + "secret": { + "$ref": "#/definitions/GitRepoSecretConfig", + "description": "Secret configuration for Helm authentication" + }, + "helmRepoUrlRegex": { + "type": "string", + "description": "Regular expression pattern to match Helm repository URLs" + } + }, + "description": "Authentication configuration for Helm repository access", + "title": "Helm authentication configuration" + }, + "HelmChartData": { + "type": "object", + "properties": { + "chart": { + "$ref": "#/definitions/Chart", + "description": "Helm chart details for the deployment" + }, + "targetClusters": { + "$ref": "#/definitions/TargetClusters", + "description": "Target clusters for the deployment" + } + }, + "description": "Data for the Helm chart deployment", + "title": "Helm chart data", + "required": [ + "chart", + "targetClusters" + ] + }, + "HelmChartDependency": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the dependency chart. Example: 'postgresql'", + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + }, + "repository": { + "type": "string", + "description": "Repository URL for the dependency. Example: 'https://charts.bitnami.com/bitnami'" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Tags associated with the dependency. Example: ['database', 'postgresql']" + }, + "version": { + "type": "string", + "description": "Version constraint for the dependency. Example: '^12.0.0'" + } + }, + "description": "Dependency information for a Helm chart", + "title": "Helm chart dependency" + }, + "HelmChartDetail": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Chart annotations including category, images, and licenses" + }, + "apiVersion": { + "type": "string", + "description": "Helm chart API version" + }, + "appVersion": { + "type": "string", + "description": "Version of the application packaged in the chart" + }, + "dependencies": { + "type": "array", + "items": { + "$ref": "#/definitions/HelmChartDependency" + }, + "description": "List of chart dependencies" + }, + "description": { + "type": "string", + "description": "Description of the Helm chart" + }, + "home": { + "type": "string", + "description": "Home page URL for the chart" + }, + "icon": { + "type": "string", + "description": "Icon URL for the chart" + }, + "keywords": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Keywords associated with the chart" + }, + "maintainers": { + "type": "array", + "items": { + "$ref": "#/definitions/HelmChartMaintainer" + }, + "description": "List of chart maintainers" + }, + "name": { + "type": "string", + "description": "Name of the Helm chart" + }, + "sources": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of source code URLs for the chart" + }, + "version": { + "type": "string", + "description": "Version of the Helm chart" + } + }, + "description": "Detailed metadata information for a Helm chart", + "title": "Helm chart metadata" + }, + "HelmChartInfoResponse": { + "type": "object", + "properties": { + "readme": { + "type": "string", + "description": "README content for the Helm chart" + }, + "appReadme": { + "type": "string", + "description": "Application-specific README content" + }, + "questions": { + "type": "object", + "description": "Configuration questions for the Helm chart" + }, + "values": { + "type": "object", + "description": "Default values for the Helm chart" + }, + "chart": { + "$ref": "#/definitions/HelmChartDetail", + "description": "Detailed chart metadata and information" + }, + "repoIdentifier": { + "type": "string", + "description": "Identifier for the Helm chart repository" + } + }, + "description": "Comprehensive Helm chart data containing chart details, configuration, and metadata", + "title": "Helm chart data" + }, + "HelmChartListResponse": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "description": "API version of the chart index" + }, + "generated": { + "type": "string", + "description": "Timestamp when the chart index was generated" + }, + "repoIdentifier": { + "type": "string", + "description": "Identifier for the Helm chart repository" + }, + "repoName": { + "type": "string", + "description": "Name of the Helm chart repository" + }, + "entries": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "object" + } + }, + "description": "Map of chart names to list of chart version details" + } + }, + "description": "Response containing a list of Helm charts with their metadata and versions", + "title": "Helm chart list response" + }, + "HelmChartMaintainer": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the maintainer. Example: 'Zededa Team'" + }, + "url": { + "type": "string", + "description": "URL or contact information for the maintainer. Example: 'https://github.com/bitnami/charts'" + } + }, + "description": "Maintainer information for a Helm chart", + "title": "Helm chart maintainer" + }, + "K8sDeploymentType": { + "type": "string", + "enum": [ + "K8sDeploymentType_UNSPECIFIED", + "HELMCHART" + ], + "default": "K8sDeploymentType_UNSPECIFIED" + }, + "Metadata": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the deployment. Example: 'nginx-deployment'" + }, + "title": { + "type": "string", + "description": "Human-readable title of the deployment. Example: 'NGINX Web Server'" + }, + "description": { + "type": "string", + "description": "Description of the deployment. Example: 'Production NGINX deployment with custom configuration'" + }, + "projectId": { + "type": "string", + "description": "Project ID associated with the deployment" + } + }, + "description": "Metadata for the deployment", + "title": "Metadata for deployment", + "required": [ + "name", + "projectId" + ] + }, + "NodeAction": { + "type": "string", + "enum": [ + "NODE_ACTION_UNSPECIFIED", + "NODE_ACTION_ADD_NODES", + "NODE_ACTION_REMOVE_NODES" + ], + "default": "NODE_ACTION_UNSPECIFIED", + "title": "NodeAction enum for node operations" + }, + "ObjectType": { + "type": "string", + "enum": [ + "OBJECT_TYPE_UNSPECIFIED", + "OBJECT_TYPE_USER", + "OBJECT_TYPE_EDGE_NODE", + "OBJECT_TYPE_EDGE_APP", + "OBJECT_TYPE_IMAGE", + "OBJECT_TYPE_EDGE_APP_INSTANCE", + "OBJECT_TYPE_PROJECT", + "OBJECT_TYPE_NETWORK", + "OBJECT_TYPE_DATASTORE", + "OBJECT_TYPE_SERVICE", + "OBJECT_TYPE_SERVICE_INSTANCE", + "OBJECT_TYPE_ENTERPRISE", + "OBJECT_TYPE_ROLE", + "OBJECT_TYPE_CREDENTIAL", + "OBJECT_TYPE_NETWORK_INSTANCE", + "OBJECT_TYPE_VOLUME_INSTANCE", + "OBJECT_TYPE_REALM", + "OBJECT_TYPE_AUTHPROFILE", + "OBJECT_TYPE_POLICY", + "OBJECT_TYPE_APP_POLICY", + "OBJECT_TYPE_CLUSTER_INSTANCE", + "OBJECT_TYPE_PLUGIN", + "OBJECT_TYPE_DOC_POLICY", + "OBJECT_TYPE_ORCHESTRATOR_CLUSTER", + "OBJECT_TYPE_TAGS", + "OBJECT_TYPE_EDGE_NODE_INTERFACE", + "OBJECT_TYPE_DEPLOYMENT", + "OBJECT_TYPE_ENTITLEMENTS", + "OBJECT_TYPE_DATA_STREAM", + "OBJECT_TYPE_API_USAGE", + "OBJECT_TYPE_APP_INSTANCE_SNAPSHOT", + "OBJECT_TYPE_PATCH_ENVELOPE", + "OBJECT_TYPE_RESOURCE_USAGE_TRACK", + "OBJECT_TYPE_PATCH_ENVELOPE_REFERENCE", + "OBJECT_TYPE_DEV_PASSTHROUGH", + "OBJECT_TYPE_EDGE_NODE_CLUSTER", + "OBJECT_TYPE_ASSET_GROUP", + "OBJECT_TYPE_APP_PROFILE", + "OBJECT_TYPE_PROFILE_DEPLOYMENT", + "OBJECT_TYPE_ZKS_INSTANCE", + "OBJECT_TYPE_CLUSTER_GROUP" + ], + "default": "OBJECT_TYPE_UNSPECIFIED" + }, + "PodsCapacity": { + "type": "object", + "properties": { + "used": { + "type": "integer", + "format": "int32", + "description": "Used pods capacity" + }, + "total": { + "type": "integer", + "format": "int32", + "description": "Total pods capacity" + } + }, + "title": "ResourceCapacity represents capacity info for pods" + }, + "PrivateRepoAuthConfig": { + "type": "object", + "properties": { + "secret": { + "$ref": "#/definitions/PrivateRepoSecretConfig", + "description": "Secret configuration for authentication" + } + }, + "description": "Authentication configuration for private repository access", + "title": "Private Repository authentication configuration" + }, + "PrivateRepoAuthInfo": { + "type": "object", + "properties": { + "secret": { + "$ref": "#/definitions/PrivateRepoSecretInfo", + "description": "Enhanced secret information for authentication" + } + }, + "description": "Enhanced authentication information including secret details for private repository access", + "title": "Private Repository authentication information" + }, + "PrivateRepoCreateRequest": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/definitions/PrivateRepoMetadata", + "description": "Metadata for the private repository (required)" + }, + "spec": { + "$ref": "#/definitions/PrivateRepoSpec", + "description": "Specification for the private repository (required)" + } + }, + "description": "Request message for creating a new private repository configuration", + "title": "Private Repository create request", + "required": [ + "metadata", + "spec" + ] + }, + "PrivateRepoGetByIdResponse": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Unique identifier of the private repository" + }, + "metadata": { + "$ref": "#/definitions/PrivateRepoMetadata", + "description": "Metadata information for the private repository" + }, + "spec": { + "$ref": "#/definitions/PrivateRepoSpecInfo", + "description": "Enhanced specification of the private repository" + }, + "status": { + "$ref": "#/definitions/PrivateRepoStatus", + "description": "Current operational status of the private repository" + }, + "repoIdentifier": { + "type": "string", + "description": "Unique identifier for the private repository" + } + }, + "description": "Detailed response message for private repository get by ID operation including metadata, specification, and status", + "title": "Private Repository detailed response" + }, + "PrivateRepoListResponse": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/PrivateRepoGetByIdResponse" + }, + "description": "List of private repositories" + }, + "total": { + "type": "integer", + "format": "int32", + "description": "Total number of private repositories" + } + }, + "description": "Response message for listing private repositories", + "title": "Private Repository list response" + }, + "PrivateRepoMetadata": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the private repository configuration (required)" + }, + "title": { + "type": "string", + "description": "Display title of the private repository configuration" + }, + "description": { + "type": "string", + "description": "Description of the private repository configuration" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags associated with the private repository" + } + }, + "description": "Metadata information for a private repository configuration", + "title": "Private Repository metadata", + "required": [ + "name" + ] + }, + "PrivateRepoRepositoryDetails": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/PrivateRepoType", + "description": "Type of the private repository (PRIVATE_REPO_TYPE_HELM_INDEX, PRIVATE_REPO_TYPE_GIT, PRIVATE_REPO_TYPE_UNSPECIFIED). This is a required parameter" + }, + "url": { + "type": "string", + "description": "Private repository URL (required)" + }, + "branch": { + "type": "string", + "description": "Git branch to track" + } + }, + "description": "Repository configuration details for private repository", + "title": "Private Repository details", + "required": [ + "type", + "url" + ] + }, + "PrivateRepoSecretConfig": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/SecretType", + "description": "Type of the secret (SECRET_TYPE_SSH, SECRET_TYPE_BASIC_AUTH, SECRET_TYPE_UNSPECIFIED, SECRET_TYPE_NONE). This field is required for private repositories and must be a valid Kubernetes secret type. For a public repository, set type as SECRET_TYPE_NONE" + }, + "name": { + "type": "string", + "description": "Name of the secret resource" + } + }, + "description": "Secret configuration for private repository authentication", + "title": "Private Repository secret configuration" + }, + "PrivateRepoSecretInfo": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Unique identifier of the secret" + }, + "type": { + "$ref": "#/definitions/SecretType", + "description": "Type of secret for authentication" + }, + "name": { + "type": "string", + "description": "Name of the secret resource" + }, + "data": { + "$ref": "#/definitions/SecretData", + "description": "Secret credentials data" + } + }, + "description": "Enhanced secret information including credentials data for private repository authentication", + "title": "Private Repository secret information" + }, + "PrivateRepoSpec": { + "type": "object", + "properties": { + "repoDetails": { + "$ref": "#/definitions/PrivateRepoRepositoryDetails", + "description": "Repository details and configuration (required)" + }, + "auth": { + "$ref": "#/definitions/PrivateRepoAuthConfig", + "description": "Authentication configuration, required for private repositories" + } + }, + "description": "Complete specification for a private repository configuration", + "title": "Private Repository specification", + "required": [ + "repoDetails" + ] + }, + "PrivateRepoSpecInfo": { + "type": "object", + "properties": { + "repoDetails": { + "$ref": "#/definitions/PrivateRepoRepositoryDetails", + "description": "Repository details and configuration" + }, + "auth": { + "$ref": "#/definitions/PrivateRepoAuthInfo", + "description": "Enhanced authentication configuration" + } + }, + "description": "Enhanced specification information for a private repository configuration", + "title": "Private Repository specification information" + }, + "PrivateRepoStatus": { + "type": "object", + "properties": { + "error": { + "type": "boolean", + "description": "Indicates if the repository is in an error state" + }, + "message": { + "type": "string", + "description": "Status message providing additional details about the repository state" + }, + "name": { + "type": "string", + "description": "Name of the repository in its current state" + }, + "transitioning": { + "type": "boolean", + "description": "Indicates if the repository is currently undergoing state transition" + } + }, + "description": "Current operational status of a private repository", + "title": "Private Repository status" + }, + "PrivateRepoType": { + "type": "string", + "enum": [ + "PRIVATE_REPO_TYPE_UNSPECIFIED", + "PRIVATE_REPO_TYPE_GIT", + "PRIVATE_REPO_TYPE_HELM_INDEX" + ], + "default": "PRIVATE_REPO_TYPE_UNSPECIFIED", + "title": "Private Repository Type" + }, + "ResourceCapacityUsage": { + "type": "object", + "properties": { + "reserved": { + "$ref": "#/definitions/ResourceUsage", + "description": "Reserved resource usage" + }, + "used": { + "$ref": "#/definitions/ResourceUsage", + "description": "Used resource usage" + } + }, + "title": "ResourceCapacityUsage represents capacity with reserved and used values" + }, + "ResourceUsage": { + "type": "object", + "properties": { + "current": { + "type": "number", + "format": "double", + "description": "Current resource usage" + }, + "total": { + "type": "number", + "format": "double", + "description": "Total resource usage" + } + }, + "title": "ResourceUsage represents usage metrics for a resource" + }, + "RunState": { + "type": "string", + "enum": [ + "RUN_STATE_UNSPECIFIED", + "RUN_STATE_ONLINE", + "RUN_STATE_HALTED", + "RUN_STATE_INIT", + "RUN_STATE_REBOOTING", + "RUN_STATE_OFFLINE", + "RUN_STATE_UNKNOWN", + "RUN_STATE_UNPROVISIONED", + "RUN_STATE_PROVISIONED", + "RUN_STATE_SUSPECT", + "RUN_STATE_DOWNLOADING", + "RUN_STATE_RESTARTING", + "RUN_STATE_PURGING", + "RUN_STATE_HALTING", + "RUN_STATE_ERROR", + "RUN_STATE_VERIFYING", + "RUN_STATE_LOADING", + "RUN_STATE_CREATING_VOLUME", + "RUN_STATE_BOOTING", + "RUN_STATE_MAINTENANCE_MODE", + "RUN_STATE_START_DELAYED", + "RUN_STATE_BASEOS_UPDATING", + "RUN_STATE_PREPARING_POWEROFF", + "RUN_STATE_POWERING_OFF", + "RUN_STATE_PREPARED_POWEROFF" + ], + "default": "RUN_STATE_UNSPECIFIED", + "description": "- RUN_STATE_ONLINE: Entity Online\n - RUN_STATE_HALTED: Entity Halted\n - RUN_STATE_INIT: Entity Initializing\n - RUN_STATE_REBOOTING: Entity Rebooting\n - RUN_STATE_OFFLINE: Entity Offline\n - RUN_STATE_UNKNOWN: Entity state Unknown\n - RUN_STATE_UNPROVISIONED: Entity Unprovisioned\n - RUN_STATE_PROVISIONED: Entity Provisioned\n - RUN_STATE_SUSPECT: Entity Suspect\n - RUN_STATE_DOWNLOADING: Edge-node downloading entity artifacts\n - RUN_STATE_RESTARTING: Entity Restarting\n - RUN_STATE_PURGING: Entity Purging\n - RUN_STATE_HALTING: Entity Halting\n - RUN_STATE_ERROR: Entity encountered an error\n - RUN_STATE_VERIFYING: Verification of downloaded Artifacts in Progress.\n - RUN_STATE_LOADING: Loading of Artifacts into local datastore in Progress.\n - RUN_STATE_CREATING_VOLUME: Volume creation from artifacts in Progress\n - RUN_STATE_BOOTING: Entity booting up\n - RUN_STATE_MAINTENANCE_MODE: Entity maintenance mode\n - RUN_STATE_START_DELAYED: Application start delayed as per configuration\n - RUN_STATE_BASEOS_UPDATING: Device BaseOs Update in Progress\n - RUN_STATE_PREPARING_POWEROFF: device preparing power off - shutting down all app instances\n - RUN_STATE_POWERING_OFF: device powering off from local profile server\n - RUN_STATE_PREPARED_POWEROFF: device prepared power off - all app instances are shut down", + "title": "RunState - On update, please update RunState_HttpRequest as well" + }, + "SSHCredentials": { + "type": "object", + "properties": { + "sshPrivateKey": { + "type": "string", + "description": "Base64 encoded SSH private key for authentication, Required if Secret type is SECRET_TYPE_SSH" + }, + "sshPublicKey": { + "type": "string", + "description": "Base64 encoded SSH public key for authentication, Required if Secret type is SECRET_TYPE_SSH" + } + }, + "description": "SSH key pair credentials for SSH-based authentication", + "title": "SSH credentials" + }, + "SecretCreateRequest": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/definitions/SecretMetadata", + "description": "Metadata for the secret to be created. This field is required." + }, + "data": { + "$ref": "#/definitions/SecretData", + "description": "Secret data including credentials or keys. This field is required." + } + }, + "description": "Request message for creating a new Kubernetes secret", + "title": "Secret creation request", + "required": [ + "metadata", + "data" + ] + }, + "SecretData": { + "type": "object", + "properties": { + "encodedUsername": { + "type": "string", + "description": "Base64 encoded username for basic authentication, Required if Secret type is SECRET_TYPE_BASIC_AUTH" + }, + "encodedPassword": { + "type": "string", + "description": "Base64 encoded password for basic authentication, Required if Secret type is SECRET_TYPE_BASIC_AUTH" + }, + "sshPublicKey": { + "type": "string", + "description": "Base64 encoded SSH public key for SSH authentication, Required if Secret type is SECRET_TYPE_SSH" + }, + "sshPrivateKey": { + "type": "string", + "description": "Base64 encoded SSH private key for SSH authentication, Required if Secret type is SECRET_TYPE_SSH" + } + }, + "description": "Raw data for Kubernetes secrets including encoded credentials and SSH keys", + "title": "Kubernetes secret data" + }, + "SecretInfoResponse": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Unique identifier of the secret" + }, + "_type": { + "type": "string", + "description": "Type of the secret" + }, + "kind": { + "type": "string", + "description": "Kubernetes resource kind" + }, + "metadata": { + "$ref": "#/definitions/SecretMetadata", + "description": "Metadata information for the secret" + }, + "data": { + "$ref": "#/definitions/SSHCredentials", + "description": "SSH key credentials" + } + }, + "description": "Response containing comprehensive information about a Kubernetes secret", + "title": "Secret information response" + }, + "SecretListResponse": { + "type": "object", + "properties": { + "secrets": { + "type": "array", + "items": { + "$ref": "#/definitions/SecretInfoResponse" + }, + "description": "List of secrets with their detailed information" + }, + "totalCount": { + "type": "integer", + "format": "int32", + "description": "Total number of secrets available" + } + }, + "description": "Response containing a list of Kubernetes secrets with pagination information", + "title": "Secret list response" + }, + "SecretMetadata": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the Kubernetes secret. This field is required and must be a valid Kubernetes secret name.", + "maxLength": 253, + "minLength": 1, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + }, + "type": { + "$ref": "#/definitions/SecretType", + "description": "Type of the secret (SECRET_TYPE_SSH, SECRET_TYPE_BASIC_AUTH, SECRET_TYPE_UNSPECIFIED, SECRET_TYPE_NONE). This field is required and must be a valid Kubernetes secret type." + }, + "creationTimestamp": { + "type": "string", + "description": "Timestamp when the secret was created" + }, + "projectId": { + "type": "string", + "description": "Project identifier that owns this secret" + }, + "state": { + "$ref": "#/definitions/SecretState", + "description": "Current state of the secret including error status and transition information" + } + }, + "description": "Metadata information for a Kubernetes secret including name, type, and state", + "title": "Kubernetes secret metadata", + "required": [ + "name", + "type" + ] + }, + "SecretState": { + "type": "object", + "properties": { + "error": { + "type": "boolean", + "description": "Indicates if the secret is in an error state" + }, + "message": { + "type": "string", + "description": "Status message providing additional details about the secret state" + }, + "name": { + "type": "string", + "description": "Name of the secret in its current state" + }, + "transitioning": { + "type": "boolean", + "description": "Indicates if the secret is currently undergoing state transition" + } + }, + "description": "Current operational state of a Kubernetes secret", + "title": "Secret state" + }, + "SecretType": { + "type": "string", + "enum": [ + "SECRET_TYPE_UNSPECIFIED", + "SECRET_TYPE_SSH", + "SECRET_TYPE_BASIC_AUTH", + "SECRET_TYPE_NONE" + ], + "default": "SECRET_TYPE_UNSPECIFIED", + "title": "Kubernetes Secret Types" + }, + "SnapshotGetResponse": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the snapshot" + }, + "clusterId": { + "type": "string", + "description": "ID of the cluster" + }, + "nodeName": { + "type": "string", + "description": "Name of the node where the snapshot was taken" + }, + "size": { + "type": "string", + "format": "int64", + "description": "Size of the snapshot in bytes" + }, + "status": { + "$ref": "#/definitions/SnapshotStatusInfo", + "description": "Status information for the snapshot" + }, + "location": { + "type": "string", + "description": "Snapshot Location in ZKS server" + }, + "k3sVersion": { + "type": "string", + "description": "k3s Version" + }, + "createdAt": { + "type": "string", + "format": "int64", + "description": "When the snapshot record was created" + } + }, + "description": "Complete response for Snapshot GET operations including metadata and status", + "title": "Snapshot get response" + }, + "SnapshotListResponse": { + "type": "object", + "properties": { + "totalCount": { + "type": "integer", + "format": "int32", + "description": "Total count of snapshots" + }, + "snapshots": { + "type": "array", + "items": { + "$ref": "#/definitions/SnapshotGetResponse" + }, + "description": "List of snapshot entries" + } + }, + "description": "Response for Snapshot LIST operations", + "title": "Snapshot list response" + }, + "SnapshotOperationResponse": { + "type": "object", + "properties": { + "operationId": { + "type": "string", + "description": "Unique identifier for the async operation" + }, + "operationType": { + "$ref": "#/definitions/SnapshotOperationType", + "description": "Type of the operation" + }, + "status": { + "$ref": "#/definitions/SnapshotOperationStatus", + "description": "Current status of the operation" + }, + "phase": { + "type": "string", + "description": "Current phase of the operation" + }, + "clusterId": { + "type": "string", + "description": "Cluster ID associated with the operation" + }, + "snapshotId": { + "type": "string", + "description": "Snapshot id generated for the operation" + }, + "snapshotName": { + "type": "string", + "description": "Snapshot Name" + }, + "message": { + "type": "string", + "description": "Status message" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "description": "When the operation was created" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "description": "When the operation was last updated" + } + }, + "description": "Response for async snapshot operations (create, restore, delete)", + "title": "Snapshot operation response" + }, + "SnapshotOperationStatus": { + "type": "string", + "enum": [ + "SNAPSHOT_OPERATION_STATUS_UNSPECIFIED", + "SNAPSHOT_OPERATION_STATUS_IN_PROGRESS", + "SNAPSHOT_OPERATION_STATUS_COMPLETED", + "SNAPSHOT_OPERATION_STATUS_FAILED", + "SNAPSHOT_OPERATION_STATUS_TIMED_OUT" + ], + "default": "SNAPSHOT_OPERATION_STATUS_UNSPECIFIED", + "title": "Snapshot Operation Status" + }, + "SnapshotOperationType": { + "type": "string", + "enum": [ + "SNAPSHOT_OPERATION_TYPE_UNSPECIFIED", + "SNAPSHOT_OPERATION_TYPE_CREATE", + "SNAPSHOT_OPERATION_TYPE_RESTORE", + "SNAPSHOT_OPERATION_TYPE_DELETE" + ], + "default": "SNAPSHOT_OPERATION_TYPE_UNSPECIFIED", + "title": "Snapshot Operation Type" + }, + "SnapshotStatusInfo": { + "type": "object", + "properties": { + "state": { + "type": "string", + "description": "Current state of the snapshot (e.g., ready, creating, error)" + }, + "message": { + "type": "string", + "description": "Status message with additional details" + } + }, + "description": "Status information for a snapshot", + "title": "Snapshot status info" + }, + "Summary": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Summary description" + }, + "total": { + "type": "number", + "format": "int64", + "description": "Total" + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "integer", + "format": "int64" + }, + "description": "Values: Map for storing " + } + }, + "description": "Summary is used to store the Summary details", + "title": "Summary is used to store the Summary details" + }, + "TargetClusters": { + "type": "object", + "properties": { + "isMultiCluster": { + "type": "boolean", + "description": "Indicates if the deployment is for multiple clusters. Example: false" + }, + "clusterTags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags for the clusters where the deployment will be applied. Example: {'environment': 'production', 'region': 'us-west-2'}. This field is reserved for future use and not currently implemented." + }, + "clusterMetadata": { + "$ref": "#/definitions/ClusterMetadata", + "description": "Metadata for the target cluster when is_multi_cluster is false" + } + }, + "description": "Clusters where the deployment will be applied", + "title": "Target clusters for deployment", + "required": [ + "isMultiCluster", + "clusterMetadata" + ] + }, + "ZcOpsStatus": { + "type": "string", + "enum": [ + "OPS_STATUS_UNSPECIFIED", + "OPS_STATUS_PENDING", + "OPS_STATUS_ONGOING", + "OPS_STATUS_COMPLETE" + ], + "default": "OPS_STATUS_UNSPECIFIED", + "description": "- OPS_STATUS_PENDING: In rare cases, system may not start operation when it was requested. Client will be notified that operation is PENDING\n - OPS_STATUS_ONGOING: system will start the operation, but at the time response was generated, operation is still ONGOING.\n - OPS_STATUS_COMPLETE: Even if the result of the operations may result in failure, but the OpsStatus will marked COMPLETE for almost all cases.", + "title": "ZedCloud internal operation status" + }, + "ZcOpsType": { + "type": "string", + "enum": [ + "OPS_TYPE_UNSPECIFIED", + "OPS_TYPE_READ", + "OPS_TYPE_DELETE", + "OPS_TYPE_CREATE", + "OPS_TYPE_UPDATE", + "OPS_TYPE_LIST" + ], + "default": "OPS_TYPE_UNSPECIFIED", + "title": "ZedCloud internal operation type" + }, + "ZksInstance": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the zks instance", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "projectId": { + "type": "string", + "description": "Foreign key to the project", + "pattern": "[0-9A-Za-z-]+" + }, + "name": { + "type": "string", + "description": "User defined name of the zks instance, unique across the enterprise. Once zks instance is created, name can\u2019t be changed" + }, + "title": { + "type": "string", + "description": "User defined title of the zks instance. Title can be changed at any time" + }, + "description": { + "type": "string", + "description": "Detailed description of the zks instance" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "nodes": { + "type": "array", + "items": { + "$ref": "#/definitions/ZksInstanceNode" + }, + "description": "A list of nodes in the zks instance" + }, + "isImported": { + "type": "boolean", + "description": "Indicates if the ZKS instance is imported from an external source" + }, + "clusterPrefix": { + "type": "string", + "description": "Cluster prefix for the ZKS instance" + } + }, + "description": "ZKS Instance details", + "title": "ZKS Instance details", + "required": [ + "projectId", + "name", + "nodes" + ] + }, + "ZksInstanceBulkUpdate": { + "type": "object", + "properties": { + "ids": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of ZKS instance IDs to be updated" + }, + "data": { + "$ref": "#/definitions/ZksInstanceBulkUpdateData", + "description": "Data for bulk update" + } + } + }, + "ZksInstanceBulkUpdateData": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "New tags for the ZKS instance" + } + } + }, + "ZksInstanceK3sBulkUpgrade": { + "type": "object", + "properties": { + "ids": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of ZKS instance IDs to be upgraded" + }, + "data": { + "$ref": "#/definitions/ZksInstanceK3sBulkUpgradeData", + "description": "Data for bulk upgrade" + } + } + }, + "ZksInstanceK3sBulkUpgradeData": { + "type": "object", + "properties": { + "version": { + "type": "string", + "description": "K3s version to upgrade to" + } + } + }, + "ZksInstanceMetrics": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "ZKS instance ID for which metrics are provided" + }, + "name": { + "type": "string", + "description": "ZKS instance name for which metrics are provided" + }, + "provider": { + "type": "string", + "description": "Provider of the zks instance" + }, + "kubeVersion": { + "type": "string", + "description": "Kubernetes version of the zks instance" + }, + "architecture": { + "type": "string", + "description": "Architecture of the zks instance" + }, + "created": { + "type": "string", + "format": "date-time", + "description": "Creation time of the zks instance" + }, + "totalResources": { + "type": "integer", + "format": "int32", + "description": "Total resources in the zks instance" + }, + "nOfNodes": { + "type": "integer", + "format": "int32", + "description": "Number of nodes in the zks instance" + }, + "deployments": { + "type": "integer", + "format": "int32", + "description": "Number of deployments in the zks instance" + }, + "capacity": { + "$ref": "#/definitions/ClusterCapacity", + "description": "Capacity information of the zks instance" + } + } + }, + "ZksInstanceNode": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the node", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "clusterInterface": { + "type": "string", + "description": "Cluster interface of the node" + } + }, + "description": "ZKS Instance node detail", + "title": "ZKS Instance node detail", + "required": [ + "id", + "clusterInterface" + ] + }, + "ZksInstanceRegistrationCommands": { + "type": "object", + "properties": { + "command": { + "type": "string", + "description": "Command to register a node with the ZKS instance" + }, + "insecureCommand": { + "type": "string", + "description": "Insecure command to register a node with the ZKS instance" + }, + "nodeCommand": { + "type": "string", + "description": "Node command to register a node with the ZKS instance" + }, + "windowsNodeCommand": { + "type": "string", + "description": "Windows node command to register a node with the ZKS instance" + } + } + }, + "ZksInstanceRegistrationInfo": { + "type": "object", + "properties": { + "created": { + "type": "string", + "description": "Timestamp when the registration commands were created" + }, + "manifestUrl": { + "type": "string", + "description": "URL to fetch the registration manifest" + }, + "commands": { + "$ref": "#/definitions/ZksInstanceRegistrationCommands", + "description": "Registration commands for the ZKS instance" + } + } + }, + "ZksInstanceStatus": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the zks instance" + }, + "projectId": { + "type": "string", + "description": "Foreign key to the project" + }, + "name": { + "type": "string", + "description": "User defined name of the zks instance, unique across the enterprise. Once zks instance is created, name can\u2019t be changed" + }, + "title": { + "type": "string", + "description": "User defined title of the zks instance. Title can be changed at any time" + }, + "description": { + "type": "string", + "description": "Detailed description of the zks instance" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources." + }, + "runState": { + "$ref": "#/definitions/RunState", + "description": "Current state of the zks instance" + }, + "provider": { + "type": "string", + "description": "Provider of the zks instance" + }, + "kubeVersion": { + "type": "string", + "description": "Kubernetes version of the zks instance" + }, + "architecture": { + "type": "string", + "description": "Architecture of the zks instance" + }, + "created": { + "type": "string", + "format": "date-time", + "description": "Creation time of the zks instance" + }, + "totalResources": { + "type": "integer", + "format": "int32", + "description": "Total resources in the zks instance" + }, + "nOfNodes": { + "type": "integer", + "format": "int32", + "description": "Number of nodes in the zks instance" + }, + "deployments": { + "type": "integer", + "format": "int32", + "description": "Number of deployments in the zks instance" + }, + "capacity": { + "$ref": "#/definitions/ClusterCapacity", + "description": "Capacity information of the zks instance" + }, + "zksClusterId": { + "type": "string", + "description": "ZKS cluster ID" + }, + "projectName": { + "type": "string", + "description": "Name of the project to which the zks instance belongs" + }, + "zksBaseUrl": { + "type": "string", + "description": "Base URL of the ZKS instance" + }, + "isImported": { + "type": "boolean", + "description": "Indicates if the ZKS instance is imported from an external source" + }, + "fleetWorkspaceName": { + "type": "string", + "description": "Name of the Fleet workspace associated with the ZKS instance" + }, + "totalNumberOfNodes": { + "type": "integer", + "format": "int32", + "description": "Total number of nodes in the ZKS instance" + }, + "clusterPrefix": { + "type": "string", + "description": "Cluster prefix for the ZKS instance" + }, + "adminState": { + "$ref": "#/definitions/AdminState", + "description": "Current admin state of the zks instance" + } + }, + "title": "ZksClusterStatus represents detailed status information for a cluster" + }, + "ZksInstanceStatusListResp": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/ZksInstanceStatus" + }, + "description": "Detailed statuses of the zks instances" + }, + "result": { + "$ref": "#/definitions/ZsrvResponse", + "description": "Response result" + }, + "summaries": { + "$ref": "#/definitions/ZksInstanceStatusSummaries", + "description": "Summaries of the ZKS instance statuses" + }, + "totalCount": { + "type": "integer", + "format": "int64", + "description": "Total count of zks instances matching the filter" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "Cursor for pagination" + } + } + }, + "ZksInstanceStatusSummaries": { + "type": "object", + "properties": { + "statuses": { + "$ref": "#/definitions/ZksInstanceStatusSummary", + "description": "Summary of the zks instance status" + } + } + }, + "ZksInstanceStatusSummary": { + "type": "object", + "properties": { + "online": { + "type": "integer", + "format": "int32", + "description": "Number of online nodes in the zks instance" + }, + "init": { + "type": "integer", + "format": "int32", + "description": "Number of nodes in init state in the zks instance" + }, + "suspect": { + "type": "integer", + "format": "int32", + "description": "Number of suspect nodes in the zks instance" + }, + "error": { + "type": "integer", + "format": "int32", + "description": "Number of error nodes in the zks instance" + }, + "unspecified": { + "type": "integer", + "format": "int32", + "description": "Number of nodes in unspecified state in the zks instance" + }, + "unknown": { + "type": "integer", + "format": "int32", + "description": "Number of nodes in unknown state in the zks instance" + }, + "offline": { + "type": "integer", + "format": "int32", + "description": "Number of offline nodes in the zks instance" + }, + "pending": { + "type": "integer", + "format": "int32", + "description": "Number of pending nodes in the zks instance" + } + } + }, + "ZksInstanceSummary": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the zks instance" + }, + "projectId": { + "type": "string", + "description": "Foreign key to the project" + }, + "name": { + "type": "string", + "description": "User defined name of the zks instance, unique across the enterprise. Once zks instance is created, name can\u2019t be changed" + }, + "title": { + "type": "string", + "description": "User defined title of the zks instance. Title can be changed at any time" + }, + "description": { + "type": "string", + "description": "Detailed description of the zks instance" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources." + }, + "nOfNodes": { + "type": "integer", + "format": "int32", + "description": "Number of nodes in the zks instance" + } + }, + "title": "ZksInstanceSummary is used for listing ZKS instances" + }, + "ZksInstancesList": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/ZksInstanceSummary" + }, + "description": "List of ZKS instances" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "next cursor" + } + }, + "title": "ZksInstancesList is the response for listing ZKS instances" + }, + "ZksK3sVersion": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Unique identifier for the K3s version" + }, + "version": { + "type": "string", + "description": "K3s version string" + }, + "type": { + "type": "string", + "description": "Type of the K3s version (e.g., release, beta)" + } + } + }, + "ZksK3sVersionList": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/ZksK3sVersion" + }, + "description": "List of available K3s versions" + } + } + }, + "ZsrvError": { + "type": "object", + "properties": { + "ec": { + "$ref": "#/definitions/ZsrvErrorCode", + "title": "Enumrated error code, describes more granular numerical\nvalue than just httpStatus" + }, + "location": { + "type": "string", + "title": "Ignore: Internal field only" + }, + "details": { + "type": "string", + "title": "Field captures string description of details" + } + } + }, + "ZsrvErrorCode": { + "type": "string", + "enum": [ + "zMsgErrorNone", + "zMsgSucess", + "NotFound", + "AlreadyExists", + "VersionMismatch", + "RangeError", + "LargeResult", + "IncompleteData", + "InvalidData", + "FunctionUnsupported", + "NoMemory", + "SendFailure", + "Timeout", + "BadReqBody", + "BadReqParam", + "InvalidFieldFormat", + "UrlNotFound", + "ApiVersionNotSupported", + "Unauthorized", + "Forbidden", + "Conflict", + "NotModified", + "DependencyConflict", + "JsonFmtError", + "ProtoFmtError", + "CertError", + "DataBaseConnection", + "DBError", + "zMsgAccepted", + "zMsgCreated", + "PreConditionFailed", + "InternalServerError" + ], + "default": "zMsgErrorNone", + "description": "- zMsgErrorNone: common validation errors\n - IncompleteData: message had fields that weren't filled in\n - InvalidData: message contained the field that wasn't expected\n - FunctionUnsupported: this feature unavailable on this version of device\n - InvalidFieldFormat: message contained the field that wasn't correctly formatted\n - JsonFmtError: Marshal / Unmarshal errors\n - DataBaseConnection: generic DB error", + "title": "ZedCould internal error code" + }, + "ZsrvResponse": { + "type": "object", + "properties": { + "operationType": { + "$ref": "#/definitions/ZcOpsType", + "title": "Describes one of the operations type : possible values\n Read/Delete/Create/Update/List" + }, + "operationStatus": { + "$ref": "#/definitions/ZcOpsStatus", + "title": "if this is log running job" + }, + "objectKind": { + "type": "string", + "title": "zedcloud object kind on which the operation was performed" + }, + "objectId": { + "type": "string", + "title": "Unique value identifies the object that was operated on" + }, + "objectName": { + "type": "string", + "title": "name of the object" + }, + "objectRevision": { + "type": "string", + "title": "object revision post the operation, note Read operation\ndoesn't change the revision" + }, + "objectType": { + "$ref": "#/definitions/ObjectType" + }, + "operationTime": { + "type": "string", + "title": "time of operation" + }, + "startTime": { + "type": "string", + "title": "total time taken by operations" + }, + "endTime": { + "type": "string" + }, + "user": { + "type": "string", + "title": "the operation is performed on behalf of this user" + }, + "httpStatusCode": { + "type": "integer", + "format": "int32", + "title": "http response" + }, + "httpStatusMsg": { + "type": "string", + "title": "summary of the error in text format" + }, + "jobId": { + "type": "string", + "title": "for tracking asynchronous tasks" + }, + "error": { + "type": "array", + "items": { + "$ref": "#/definitions/ZsrvError" + }, + "title": "one or more errors will be set if the operation failed\ni.e. httpStatusCode != 2xx" + } + } + }, + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "typeUrl": { + "type": "string" + }, + "value": { + "type": "string", + "format": "byte" + } + } + }, + "protobufNullValue": { + "type": "string", + "enum": [ + "NULL_VALUE" + ], + "default": "NULL_VALUE", + "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\n The JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." + } + }, + "securityDefinitions": { + "ApiKeyAuth": { + "type": "apiKey", + "name": "X-API-KEY", + "in": "header" + } + }, + "security": [ + { + "ApiKeyAuth": [] + } + ], + "externalDocs": { + "description": "ZEDEDA Kubernetes Management Documentation", + "url": "https://help.zededa.com/hc/en-us/categories/39343791302299-Edge-Kubernetes" + } +} \ No newline at end of file diff --git a/openapi/zedge_network_service.swagger.json b/openapi/zedge_network_service.swagger.json new file mode 100644 index 0000000..7191cec --- /dev/null +++ b/openapi/zedge_network_service.swagger.json @@ -0,0 +1,4305 @@ +{ + "swagger": "2.0", + "info": { + "title": "ZEDEDA Edge Network Service", + "description": "The ZEDEDA Edge Network Service is helper service to ZEDEDA Edge Application Service. This service provides edge nodes and applications a variety of connectivity choices for all types of networks. This enables physical connectivity with Ethernet, WiFi, LTE to communicate with Cloud Controller and Data Centres on one hand and logical secure connectivity between applications within a single edge node and within a logical group of edge nodes. This also supports secure tunnel from an edge node or an edge application in a remote location to a Data server behindi firewall in AWS or Azure or On-premise VPC.", + "termsOfService": "https://www.zededa.com/terms", + "version": "1.0", + "contact": { + "name": "ZEDEDA API Support", + "url": "https://www.zededa.com/support", + "email": "support@zededa.com" + }, + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.html" + } + }, + "tags": [ + { + "name": "EdgeNetworkConfiguration" + }, + { + "name": "EdgeNetworkInstanceConfiguration" + }, + { + "name": "EdgeNetworkInstanceStatus" + } + ], + "basePath": "/api", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/v1/netinsts": { + "get": { + "summary": "Query edge network instances", + "description": "Query the edge network instance records.", + "operationId": "EdgeNetworkInstanceConfiguration_QueryEdgeNetworkInstances", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/NetInstList" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "deviceName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "projectName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "namePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "tags", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "deviceNamePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "projectNamePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "summary", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "titlePattern", + "description": "title pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "fields", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNetworkInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-network" + } + }, + "post": { + "summary": "Create edge network instance", + "description": "Create an edge network instance record.", + "operationId": "EdgeNetworkInstanceConfiguration_CreateEdgeNetworkInstance", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this edge network record will conflict with an already existing edge network record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NetInstConfig" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNetworkInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-network" + } + } + }, + "/v1/netinsts/id/{id}": { + "get": { + "summary": "Get edge network instance", + "description": "Get the configuration (without security details) of an edge network instance record.", + "operationId": "EdgeNetworkInstanceConfiguration_GetEdgeNetworkInstance", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/NetInstConfig" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the network instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNetworkInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-network" + } + }, + "delete": { + "summary": "Delete edge network instance", + "description": "Delete an edge network instance record.", + "operationId": "EdgeNetworkInstanceConfiguration_DeleteEdgeNetworkInstance", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the network instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNetworkInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-network" + } + }, + "put": { + "summary": "Update edge network instance", + "description": "Update an edge network instance. The usual pattern to update an edge network instance record is to retrieve the record and update with the modified values in a new body to update the edge network instance record.", + "operationId": "EdgeNetworkInstanceConfiguration_UpdateEdgeNetworkInstance", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing edge network record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NetInstConfigUpdate_HttpRequest" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNetworkInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-network" + } + } + }, + "/v1/netinsts/id/{id}/status": { + "get": { + "summary": "Get edge network instance status", + "description": "Get the status of an edge network instance as reported by the edge node where the edge network instance has been deployed.", + "operationId": "EdgeNetworkInstanceStatus_GetEdgeNetworkInstanceStatus", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/NetInstStatusMsg" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNetworkInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-network" + } + } + }, + "/v1/netinsts/name/{name}": { + "get": { + "summary": "Get edge network instance", + "description": "Get the configuration (without security details) of an edge network instance record.", + "operationId": "EdgeNetworkInstanceConfiguration_GetEdgeNetworkInstanceByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/NetInstConfig" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "User defined name of the network instance, unique across the enterprise. Once object is created, name can\u2019t be changed", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNetworkInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-network" + } + } + }, + "/v1/netinsts/name/{name}/status": { + "get": { + "summary": "Get edge network instance status", + "description": "Get the status of an edge network instance as reported by the edge node where the edge network instance has been deployed.", + "operationId": "EdgeNetworkInstanceStatus_GetEdgeNetworkInstanceStatusByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/NetInstStatusMsg" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNetworkInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-network" + } + } + }, + "/v1/netinsts/status": { + "get": { + "summary": "Query status of edge network instances", + "description": "Query the status of edge network instances as reported by the edge nodes where the edge network instances have been deployed.", + "operationId": "EdgeNetworkInstanceStatus_QueryEdgeNetworkInstanceStatus", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/NetInstStatusListMsg" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "deviceName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "projectName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "namePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "tags", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "runState", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "ONLINE", + "HALTED", + "INIT", + "REBOOTING", + "OFFLINE", + "UNKNOWN", + "UNPROVISIONED", + "PROVISIONED", + "SUSPECT", + "DOWNLOADING", + "RESTARTING", + "PURGING", + "HALTING", + "ERROR", + "VERIFYING", + "LOADING", + "CREATING_VOLUME", + "BOOTING", + "MAINTENANCE_MODE", + "START_DELAYED", + "BASEOS_UPDATING", + "PREPARING_POWEROFF", + "POWERING_OFF", + "PREPARED_POWEROFF" + ], + "default": "UNSPECIFIED" + }, + { + "name": "deviceNamePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "projectNamePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "type", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "kind", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "summary", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "fields", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNetworkInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-network" + } + } + }, + "/v1/netinsts/status-config": { + "get": { + "summary": "Query status and config of edge network instances", + "description": "Query the status and config of edge network instances as reported by the edge nodes where the edge network instances have been deployed.", + "operationId": "EdgeNetworkInstanceStatus_QueryEdgeNetworkInstanceStatusConfig", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/NetInstConfigStatusList" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "deviceName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "projectName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "namePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "tags", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "runState", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "ONLINE", + "HALTED", + "INIT", + "REBOOTING", + "OFFLINE", + "UNKNOWN", + "UNPROVISIONED", + "PROVISIONED", + "SUSPECT", + "DOWNLOADING", + "RESTARTING", + "PURGING", + "HALTING", + "ERROR", + "VERIFYING", + "LOADING", + "CREATING_VOLUME", + "BOOTING", + "MAINTENANCE_MODE", + "START_DELAYED", + "BASEOS_UPDATING", + "PREPARING_POWEROFF", + "POWERING_OFF", + "PREPARED_POWEROFF" + ], + "default": "UNSPECIFIED" + }, + { + "name": "deviceNamePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "projectNamePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "type", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "kind", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "summary", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "fields", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNetworkInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-network" + } + } + }, + "/v1/netinsts/tags": { + "get": { + "summary": "Query Network instance tags", + "description": "Netork instance tags LIST API is to fetch the interfaces tags attached to app instances.", + "operationId": "EdgeNetworkInstanceStatus_GetNetworkInstanceInterfaceTags", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ObjectTagsList" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNetworkInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-network" + } + } + }, + "/v1/networks": { + "get": { + "summary": "Query edge networks", + "description": "Query the edge network records.", + "operationId": "EdgeNetworkConfiguration_QueryEdgeNetworks", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/NetConfigList" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "projectName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "namePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "projectNamePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "dist", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "kind", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "summary", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "defaultNetwork", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "titlePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNetworkConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-network" + } + }, + "post": { + "summary": "Create edge network", + "description": "Create an edge network record.", + "operationId": "EdgeNetworkConfiguration_CreateEdgeNetwork", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this edge network record will conflict with an already existing edge network record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NetConfig" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNetworkConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-network" + } + } + }, + "/v1/networks/id/{id}": { + "get": { + "summary": "Get edge network", + "description": "Get the configuration (without security details) of an edge network record.", + "operationId": "EdgeNetworkConfiguration_GetEdgeNetwork", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/NetConfig" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the network", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNetworkConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-network" + } + }, + "delete": { + "summary": "Delete edge network", + "description": "Delete an edge network record.", + "operationId": "EdgeNetworkConfiguration_DeleteEdgeNetwork", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the network", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNetworkConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-network" + } + }, + "put": { + "summary": "Update edge network", + "description": "Update an edge network. The usual pattern to update an edge network record is to retrieve the record and update with the modified values in a new body to update the edge network record.", + "operationId": "EdgeNetworkConfiguration_UpdateEdgeNetwork", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing edge network record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NetConfigForUpdate_HttpRequest" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNetworkConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-network" + } + } + }, + "/v1/networks/id/{id}/devices": { + "get": { + "summary": "Get edge network devices by id", + "description": "Get the list of devices associated with the specified network.", + "operationId": "EdgeNetworkConfiguration_GetEdgeNetworkDevicesById", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/NetworkDeviceList" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the network", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNetworkConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-network" + } + } + }, + "/v1/networks/name/{name}": { + "get": { + "summary": "Get edge network", + "description": "Get the configuration (without security details) of an edge network record.", + "operationId": "EdgeNetworkConfiguration_GetEdgeNetworkByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/NetConfig" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "User defined name of the network, unique across the enterprise. Once object is created, name can\u2019t be changed", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNetworkConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-network" + } + } + } + }, + "definitions": { + "CellularAuthProtocol": { + "type": "string", + "enum": [ + "CELLULAR_AUTH_PROTOCOL_NONE", + "CELLULAR_AUTH_PROTOCOL_PAP", + "CELLULAR_AUTH_PROTOCOL_CHAP", + "CELLULAR_AUTH_PROTOCOL_PAP_AND_CHAP" + ], + "default": "CELLULAR_AUTH_PROTOCOL_NONE", + "description": " - CELLULAR_AUTH_PROTOCOL_NONE: No authentication.\n - CELLULAR_AUTH_PROTOCOL_PAP: Password Authentication Protocol.\n - CELLULAR_AUTH_PROTOCOL_CHAP: Challenge-Handshake Authentication Protocol.\n - CELLULAR_AUTH_PROTOCOL_PAP_AND_CHAP: Both PAP and CHAP." + }, + "Cursor": { + "type": "object", + "properties": { + "pageToken": { + "type": "string", + "description": "Page Token" + }, + "orderBy": { + "type": "array", + "items": { + "type": "string" + }, + "description": "OrderBy helps in sorting the list response" + }, + "pageNum": { + "type": "number", + "format": "int64", + "description": "Page Number" + }, + "pageSize": { + "type": "number", + "format": "int64", + "description": "Defines the page size" + }, + "totalPages": { + "type": "number", + "format": "int64", + "description": "Total number of pages to be fetched." + } + }, + "description": "Cursor helps in filtering the various list response like edge-app bundle list, model list, bundle list etc. ", + "title": "Cursor is used as filter in list operation." + }, + "DeviceEntity": { + "type": "object", + "properties": { + "entity": { + "$ref": "#/definitions/Entity" + }, + "entityId": { + "type": "string" + }, + "entityName": { + "type": "string" + } + } + }, + "DeviceError": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Description of the error" + }, + "severity": { + "type": "string", + "$ref": "#/definitions/Severity", + "description": "Severity of the error" + }, + "timestamp": { + "type": "object", + "format": "date-time", + "description": "Timestamp at which error had occurred" + }, + "entities": { + "type": "array", + "items": { + "$ref": "#/definitions/DeviceEntity" + }, + "description": "objects referenced by the description or retry_condition" + }, + "retryCondition": { + "type": "string", + "description": "condition for retry" + } + }, + "description": "DeviceError store the error occurred at the device side", + "title": "DeviceError is used to store the error details of the hardware.", + "required": [ + "description", + "severity", + "timestamp", + "entities" + ] + }, + "DhcpServerConfig": { + "type": "object", + "properties": { + "subnet": { + "type": "string", + "description": "Subnet address" + }, + "mask": { + "type": "string", + "description": "Subnet Mask" + }, + "gateway": { + "type": "string", + "description": "IP Address of Network Gateway" + }, + "domain": { + "type": "string", + "description": "Network domain" + }, + "ntp": { + "type": "string", + "description": "IP Address of NTP Server", + "title": "ntp will be deprecated" + }, + "dns": { + "type": "array", + "items": { + "type": "string" + }, + "description": "IP Addresses of DNS servers", + "title": "possible DNS ip address" + }, + "dhcpRange": { + "$ref": "#/definitions/dhcpIpRange", + "description": "Range of IP addresses to be used for DHCP" + }, + "ntpServers": { + "type": "array", + "items": { + "$ref": "#/definitions/NtpServer" + }, + "description": "NTP Servers" + } + } + }, + "Entity": { + "type": "string", + "enum": [ + "ENTITY_UNSPECIFIED", + "ENTITY_BASE_OS", + "ENTITY_SYSTEM_ADAPTER", + "ENTITY_VAULT", + "ENTITY_ATTESTATION", + "ENTITY_APP_INSTANCE", + "ENTITY_PORT", + "ENTITY_NETWORK", + "ENTITY_NETWORK_INSTANCE", + "ENTITY_CONTENT_TREE", + "ENTITY_CONTENT_BLOB", + "ENTITY_VOLUME" + ], + "default": "ENTITY_UNSPECIFIED", + "description": "- ENTITY_UNSPECIFIED: Invalid Device Entity\n - ENTITY_BASE_OS: Base OS entity\n - ENTITY_SYSTEM_ADAPTER: System Adapter Entity\n - ENTITY_VAULT: Vault Entity\n - ENTITY_ATTESTATION: Attestation Entity\n - ENTITY_APP_INSTANCE: App Instance Entity\n - ENTITY_PORT: Port Entity\n - ENTITY_NETWORK: Network Entity\n - ENTITY_NETWORK_INSTANCE: Network Instance Entity\n - ENTITY_CONTENT_TREE: ContentTree Entity\n - ENTITY_CONTENT_BLOB: Blob Entity\n - ENTITY_VOLUME: VOLUME Entity", + "title": "Edge node components" + }, + "IPAssignment": { + "type": "object", + "properties": { + "macAddress": { + "type": "string" + }, + "ipAddress": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "IoAddresses": { + "type": "object", + "properties": { + "macAddress": { + "type": "string" + } + } + }, + "IoBundleStatus": { + "type": "object", + "properties": { + "type": { + "type": "object", + "$ref": "#/definitions/IoType", + "description": "IoType specifies the type of the Input output of the device" + }, + "name": { + "type": "string", + "description": "Io Bundle status name" + }, + "members": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Member Array", + "title": "members - Deprecated by memberList" + }, + "appName": { + "type": "string", + "description": "Application name" + }, + "lteInfo": { + "type": "object", + "$ref": "#/definitions/LTEAdapter", + "description": "LTE information" + }, + "err": { + "$ref": "#/definitions/DeviceError", + "description": "Device error details", + "title": "6 - DEPRECATED" + }, + "memberList": { + "type": "array", + "items": { + "$ref": "#/definitions/IoMemberStatus" + }, + "description": "List of IO members" + } + }, + "description": "IoBundleStatus is used to store the status of the Input Output bundle", + "title": "IoBundleStatus is used to store the status of the Input Output bundle", + "required": [ + "type", + "name", + "members", + "appName" + ] + }, + "IoMemberStatus": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "IoBundle Member name" + }, + "ioAddress": { + "$ref": "#/definitions/IoAddresses", + "description": "IO addresses of the member. Each address corresponds to the member in the members array" + } + } + }, + "IoType": { + "type": "string", + "enum": [ + "IO_TYPE_UNSPECIFIED", + "IO_TYPE_ETH", + "IO_TYPE_USB", + "IO_TYPE_COM", + "IO_TYPE_AUDIO", + "IO_TYPE_WLAN", + "IO_TYPE_WWAN", + "IO_TYPE_HDMI", + "IO_TYPE_LTE", + "IO_TYPE_STORAGE_NVME_DEVICE", + "IO_TYPE_STORAGE_SATA_DEVICE", + "IO_TYPE_ETH_PF", + "IO_TYPE_ETH_VF", + "IO_TYPE_USB_CONTROLLER", + "IO_TYPE_USB_DEVICE", + "IO_TYPE_CAN", + "IO_TYPE_VCAN", + "IO_TYPE_LCAN", + "IO_TYPE_VLAN", + "IO_TYPE_OTHER" + ], + "default": "IO_TYPE_UNSPECIFIED", + "description": "- IO_TYPE_UNSPECIFIED: No operation/ Invalid peration\n - IO_TYPE_ETH: Ethernet\n - IO_TYPE_USB: USB Type - General\n - IO_TYPE_COM: Communication Port\n - IO_TYPE_AUDIO: Audio Port\n - IO_TYPE_WLAN: wireless LAN\n - IO_TYPE_WWAN: Wireless wide area network\n - IO_TYPE_HDMI: High-Definition Multimedia Interface\n - IO_TYPE_LTE: LTE Interfaces\n - IO_TYPE_STORAGE_NVME_DEVICE: Storage NVME device\n - IO_TYPE_STORAGE_SATA_DEVICE: Storage SATA device\n - IO_TYPE_ETH_PF: Physical Interface (PF) of the Virtual Functions\n - IO_TYPE_ETH_VF: Virtual Function (VF)\n - IO_TYPE_USB_CONTROLLER: USB Type - Controller\n - IO_TYPE_USB_DEVICE: USB Type - Device\n - IO_TYPE_CAN: CAN - Device\n - IO_TYPE_VCAN: VCAN - Virtual CAN device\n - IO_TYPE_LCAN: LCAN - Logical CAN device\n - IO_TYPE_VLAN: VLAN - Virtual LAN device\n - IO_TYPE_OTHER: Other Io Types", + "title": "Input/Output Type" + }, + "IpSpec": { + "type": "object", + "properties": { + "deprecatedDhcp": { + "type": "boolean", + "title": "deprecated" + }, + "dhcp": { + "$ref": "#/definitions/NetworkDHCPType" + }, + "subnet": { + "type": "string" + }, + "mask": { + "type": "string" + }, + "gateway": { + "type": "string" + }, + "domain": { + "type": "string" + }, + "ntp": { + "type": "string", + "title": "ntp will be deprecated" + }, + "dns": { + "type": "array", + "items": { + "type": "string" + } + }, + "dhcpRange": { + "$ref": "#/definitions/dhcpIpRange", + "description": "for IPAM management when dhcp is turned on.\nIf none provided, system will default pool." + }, + "ntpServers": { + "type": "array", + "items": { + "$ref": "#/definitions/NtpServer" + } + }, + "ntpServerExclusively": { + "type": "boolean" + } + } + }, + "LTEAdapter": { + "type": "object", + "properties": { + "simName": { + "type": "string", + "description": "Name of SIM card." + }, + "cellModuleName": { + "type": "string", + "description": "Name of Cell Module" + }, + "imsi": { + "type": "string", + "description": "imsi of the SIM" + }, + "iccid": { + "type": "string", + "description": "iccid of the SIM" + }, + "simcardState": { + "type": "string", + "$ref": "#/definitions/SimcardState", + "description": "State of SimCard" + }, + "imei": { + "type": "string", + "description": "IMEI of Cell Radio." + }, + "firmwareVersion": { + "type": "string", + "description": "Firmware Version of Cell Radio." + } + }, + "description": "Details of LTE Adapter", + "title": "LTE Adapter" + }, + "LispConfig": { + "type": "object", + "properties": { + "lispiid": { + "type": "number", + "format": "int64", + "description": "lisp id" + }, + "allocate": { + "type": "boolean", + "description": "Allocate flag" + }, + "exportprivate": { + "type": "boolean", + "description": "Export Private flag" + }, + "allocationprefix": { + "type": "string", + "format": "byte", + "description": "Allocation Prefix" + }, + "allocationprefixlen": { + "type": "number", + "format": "int64", + "description": "Allocation Prefix Length" + }, + "sp": { + "type": "array", + "items": { + "$ref": "#/definitions/ServicePoint" + }, + "description": "Service Point List" + } + }, + "description": "List Configurations.", + "title": "Lisp Configurations" + }, + "NetCellularAccessPoint": { + "type": "object", + "properties": { + "simSlot": { + "type": "integer", + "format": "int64", + "description": "SIM card slot to which this configuration applies.\n0 - unspecified (apply to currently activated or the only available)\n1 - config for SIM card in the first slot\n2 - config for SIM card in the second slot\netc." + }, + "apn": { + "type": "string", + "description": "Access Point Network to connect into.\nBy default it is \"internet\"." + }, + "authProtocol": { + "$ref": "#/definitions/evecommonCellularAuthProtocol", + "description": "Authentication protocol used by the network." + }, + "cipherData": { + "$ref": "#/definitions/commonCipherBlock", + "description": "Cipher data may contain encrypted user credentials\n(inside cellNetUsername and cellNetPassword fields)." + }, + "preferredPlmns": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The set of cellular network operators that modem should preferably try to register\nand connect into.\nNetwork operator should be referenced by PLMN (Public Land Mobile Network) code,\nconsisting of 3-digits MCC (Mobile Country Code) and 2 or 3-digits MNC (Mobile Network Code),\nseparated by a dash, e.g. \"310-260\".\nIf empty, then modem will select the network automatically based on the SIM card config." + }, + "forbidRoaming": { + "type": "boolean", + "description": "If true, then modem will avoid connecting to networks with roaming." + }, + "preferredRats": { + "type": "array", + "items": { + "$ref": "#/definitions/evecommonRadioAccessTechnology" + }, + "description": "The list of preferred Radio Access Technologies (RATs) to use for connecting\nto the network.\nOrder matters, first is the most preferred, second is tried next, etc.\nNot listed technologies will not be tried.\nIf empty, then modem will select RAT automatically." + }, + "ipType": { + "$ref": "#/definitions/commonCellularIPType", + "description": "The IP addressing type to use for the default bearer." + }, + "attachApn": { + "type": "string", + "description": "Access Point Name (APN) for the attach (initial) bearer.\nThis field is optional. If not specified, EVE will not send any attach bearer\nconfiguration to the modem. Instead, the modem will use one of its pre-installed\nprofiles (see CellularProfile) to determine the configuration." + }, + "attachIpType": { + "$ref": "#/definitions/commonCellularIPType", + "description": "The IP addressing type to use for the attach bearer.\nLeave undefined if attach_apn is not specified." + }, + "attachAuthProtocol": { + "$ref": "#/definitions/CellularAuthProtocol", + "description": "Authentication protocol used for the attach bearer.\nLeave undefined if attach_apn is not specified." + }, + "secrets": { + "$ref": "#/definitions/NetCellularAccessPointSecrets" + }, + "encryptedSecrets": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "cryptoKey": { + "type": "string" + }, + "attachSecrets": { + "$ref": "#/definitions/NetCellularAccessPointSecrets" + }, + "attachEncryptedSecrets": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "NetCellularAccessPointSecrets": { + "type": "object", + "properties": { + "username": { + "type": "string", + "description": "Cellular Username" + }, + "password": { + "type": "string", + "description": "Cellular Password" + } + } + }, + "NetCellularConfig": { + "type": "object", + "properties": { + "APN": { + "type": "string", + "description": "APN string - by default it is \"internet\".\nTO BE DEPRECATED: Fill connection arguments inside access_points instead.\nIf access_points is non-empty, then APN field is ignored." + }, + "probe": { + "$ref": "#/definitions/configCellularConnectivityProbe", + "description": "Optional cellular connectivity probing.\nBy default it is enabled." + }, + "locationTracking": { + "type": "boolean", + "description": "Some LTE modems have GNSS receiver integrated and can be used for device\nlocation tracking.\nEnable this option to have location info periodically obtained from this\nmodem and published to controller and to applications." + }, + "accessPoints": { + "type": "array", + "items": { + "$ref": "#/definitions/NetCellularAccessPoint" + }, + "description": "Parameters to apply for connecting to cellular networks.\nConfigured separately for every SIM card inserted into the modem." + }, + "activatedSimSlot": { + "type": "integer", + "format": "int64", + "description": "Select SIM card slot to activate.\nCurrently, EVE support only single-standby SIM card mode.\n0 - unspecified (leave the currently activated)\n1 - activate the first SIM slot\n2 - activate the second SIM slot\netc." + } + } + }, + "NetConfig": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the network", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the network, unique across the enterprise. Once object is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the network. Title can be changed at any time", + "maxLength": 256, + "minLength": 3, + "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$" + }, + "description": { + "type": "string", + "description": "Detailed description of the network", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined info" + }, + "projectId": { + "type": "string" + }, + "kind": { + "$ref": "#/definitions/NetworkKind" + }, + "ip": { + "$ref": "#/definitions/IpSpec" + }, + "dnsList": { + "type": "array", + "items": { + "$ref": "#/definitions/StaticDNSList" + } + }, + "proxy": { + "$ref": "#/definitions/NetProxyConfig", + "title": "enterprise proxy" + }, + "enterpriseDefault": { + "type": "boolean", + "title": "make this network default for device" + }, + "mtu": { + "type": "integer", + "format": "int64", + "title": "Maximum transmission unit (MTU) to set on the associated network adapter(s)" + }, + "wireless": { + "$ref": "#/definitions/NetWirelessConfig", + "title": "Wifi configuration" + }, + "project": { + "$ref": "#/definitions/NetProjectInfo", + "title": "project configuration" + } + }, + "description": "Network provides Edge nodes a variety of connectivity choices for all types of networks. This enables physical connectivity with Ethernet, WiFi, LTE to communicate with ZEDEDA Cloud controller and Data Centres.", + "title": "Network detailed configuration", + "required": [ + "name", + "title", + "projectId", + "kind", + "ip" + ] + }, + "NetConfigForUpdate_HttpRequest": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the network", + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the network, unique across the enterprise. Once object is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the network. Title can be changed at any time", + "maxLength": 256, + "minLength": 3, + "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$" + }, + "description": { + "type": "string", + "description": "Detailed description of the network", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined info" + }, + "projectId": { + "type": "string" + }, + "kind": { + "$ref": "#/definitions/NetworkKind" + }, + "ip": { + "$ref": "#/definitions/IpSpec" + }, + "dnsList": { + "type": "array", + "items": { + "$ref": "#/definitions/StaticDNSList" + } + }, + "proxy": { + "$ref": "#/definitions/NetProxyConfig", + "title": "enterprise proxy" + }, + "enterpriseDefault": { + "type": "boolean", + "title": "make this network default for device" + }, + "mtu": { + "type": "integer", + "format": "int64", + "title": "Maximum transmission unit (MTU) to set on the associated network adapter(s)" + }, + "wireless": { + "$ref": "#/definitions/NetWirelessConfig", + "title": "Wifi configuration" + }, + "project": { + "$ref": "#/definitions/NetProjectInfo", + "title": "project configuration" + } + }, + "description": "Network provides Edge nodes a variety of connectivity choices for all types of networks. This enables physical connectivity with Ethernet, WiFi, LTE to communicate with ZEDEDA Cloud controller and Data Centres.", + "title": "Network detailed configuration", + "required": [ + "id", + "name", + "title", + "revision", + "projectId", + "kind", + "ip" + ] + }, + "NetConfigList": { + "type": "object", + "properties": { + "summary": { + "$ref": "#/definitions/Summary", + "title": "Summary has been deprecated" + }, + "summaryByKind": { + "$ref": "#/definitions/Summary" + }, + "summaryByProxy": { + "$ref": "#/definitions/Summary" + }, + "summaryByDist": { + "$ref": "#/definitions/Summary" + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/NetConfig" + } + }, + "next": { + "$ref": "#/definitions/Cursor" + } + } + }, + "NetInstConfig": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the network instance", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the network instance, unique across the enterprise. Once object is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the network instance. Title can be changed at any time", + "maxLength": 256, + "minLength": 3, + "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$" + }, + "description": { + "type": "string", + "description": "Detailed description of the network instance", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined info for the object" + }, + "projectId": { + "type": "string", + "description": "id of the project in which network instance is created" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "clusterID": { + "type": "string", + "description": "id of the Cluster in which the network instance is configured", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "deviceId": { + "type": "string", + "description": "id of the device on which network instance is created", + "title": "device on which this network is running" + }, + "port": { + "type": "string", + "description": "name of port mapping in the model", + "title": "name of port mapping in the model" + }, + "portTags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "kind": { + "$ref": "#/definitions/NetworkInstanceKind", + "description": "Kind of Network Instance ( Local, Switch etc )" + }, + "dhcp": { + "type": "boolean", + "description": "Deprecated", + "title": "dhcp - DEPRECATED" + }, + "type": { + "$ref": "#/definitions/NetworkInstanceDhcpType", + "description": "Type of DHCP for this Network Instance" + }, + "ip": { + "$ref": "#/definitions/DhcpServerConfig", + "description": "Dhcp Server Configuration" + }, + "dnsList": { + "type": "array", + "items": { + "$ref": "#/definitions/StaticDNSList" + }, + "description": "List of Static DNS entries" + }, + "oconfig": { + "type": "string", + "title": "Deprecated" + }, + "lisp": { + "$ref": "#/definitions/LispConfig", + "description": "Lisp Config : read only for now. Deprecated." + }, + "opaque": { + "$ref": "#/definitions/NetInstOpaqueConfig", + "description": "Service specific Config" + }, + "deviceDefault": { + "type": "boolean", + "description": "flag to indicate if this is the default network instance for the device", + "title": "flag to indicate if this is default network" + }, + "networkPolicyId": { + "type": "string", + "description": "id of the network policy to be attached to this network instance" + }, + "propagateConnectedRoutes": { + "type": "boolean", + "description": "Automatically propagate connected routes" + }, + "staticRoutes": { + "type": "array", + "items": { + "$ref": "#/definitions/StaticIPRoute" + }, + "description": "List of Static IP routes" + }, + "mtu": { + "type": "integer", + "format": "int64", + "description": "Maximum transmission unit (MTU) to set for the network instance and all application interfaces connected to it" + }, + "edgeNodeCluster": { + "$ref": "#/definitions/NetInstEdgeNodeCluster", + "description": "Edge Node Cluster" + }, + "forwardLldp": { + "type": "boolean", + "description": "Enables forwarding of LLDP (Link Layer Discovery Protocol) frames across this\nnetwork instance.\nLLDP is used by devices to advertise identity and capabilities to directly\nconnected neighbors, and is often required for topology discovery and network\nmanagement tools.\nWhen enabled, LLDP frames (EtherType 0x88cc) are not dropped or suppressed\nby the forwarding plane." + } + }, + "description": "Network instance provides Edge applications a variety of connectivity choices for all types of networks. This enables logical secure connectivity between Edge applications within a single Edge node and within a logical group of Edge nodes. This provides detailed configuration of a Network instance.", + "title": "Network instance detailed configuration", + "required": [ + "name", + "title", + "deviceId", + "port", + "kind" + ] + }, + "NetInstConfigStatus": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the network instance", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the network instance, unique across the enterprise. Once object is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "runState": { + "$ref": "#/definitions/RunState" + }, + "upTimeStamp": { + "type": "string", + "format": "date-time" + }, + "uplinkIntf": { + "type": "string" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "clusterID": { + "type": "string", + "description": "User defined name of the clusterInstance, unique across the enterprise.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "type": { + "$ref": "#/definitions/NetworkInstanceDhcpType" + }, + "kind": { + "$ref": "#/definitions/NetworkInstanceKind" + }, + "deviceDefault": { + "type": "boolean" + }, + "deviceId": { + "type": "string" + }, + "projectId": { + "type": "string" + }, + "deviceName": { + "type": "string" + }, + "projectName": { + "type": "string" + }, + "networkPolicyId": { + "type": "string" + }, + "edgeNodeClusterID": { + "type": "string" + } + }, + "description": "NetInstConfigStatus stores the summary of the network instance config status.", + "title": "Network instance config status" + }, + "NetInstConfigStatusList": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/NetInstConfigStatus" + } + }, + "summaryByKind": { + "$ref": "#/definitions/Summary", + "description": "Summary information about netinstance config status list records by network instance kind." + }, + "summaryByAddressType": { + "$ref": "#/definitions/Summary", + "description": "Summary information about netinstance config status list records by addressing type." + }, + "next": { + "$ref": "#/definitions/Cursor" + } + } + }, + "NetInstConfigUpdate_HttpRequest": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the network instance", + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the network instance, unique across the enterprise. Once object is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the network instance. Title can be changed at any time", + "maxLength": 256, + "minLength": 3, + "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$" + }, + "description": { + "type": "string", + "description": "Detailed description of the network instance", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined info for the object" + }, + "projectId": { + "type": "string", + "description": "id of the project in which network instance is created" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "clusterID": { + "type": "string", + "description": "id of the Cluster in which the network instance is configured", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "deviceId": { + "type": "string", + "description": "id of the device on which network instance is created", + "title": "device on which this network is running" + }, + "port": { + "type": "string", + "description": "name of port mapping in the model", + "title": "name of port mapping in the model" + }, + "portTags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "kind": { + "$ref": "#/definitions/NetworkInstanceKind", + "description": "Kind of Network Instance ( Local, Switch etc )" + }, + "dhcp": { + "type": "boolean", + "description": "Deprecated", + "title": "dhcp - DEPRECATED" + }, + "type": { + "$ref": "#/definitions/NetworkInstanceDhcpType", + "description": "Type of DHCP for this Network Instance" + }, + "ip": { + "$ref": "#/definitions/DhcpServerConfig", + "description": "Dhcp Server Configuration" + }, + "dnsList": { + "type": "array", + "items": { + "$ref": "#/definitions/StaticDNSList" + }, + "description": "List of Static DNS entries" + }, + "oconfig": { + "type": "string", + "title": "Deprecated" + }, + "lisp": { + "$ref": "#/definitions/LispConfig", + "description": "Lisp Config : read only for now. Deprecated." + }, + "opaque": { + "$ref": "#/definitions/NetInstOpaqueConfig", + "description": "Service specific Config" + }, + "deviceDefault": { + "type": "boolean", + "description": "flag to indicate if this is the default network instance for the device", + "title": "flag to indicate if this is default network" + }, + "networkPolicyId": { + "type": "string", + "description": "id of the network policy to be attached to this network instance" + }, + "propagateConnectedRoutes": { + "type": "boolean", + "description": "Automatically propagate connected routes" + }, + "staticRoutes": { + "type": "array", + "items": { + "$ref": "#/definitions/StaticIPRoute" + }, + "description": "List of Static IP routes" + }, + "mtu": { + "type": "integer", + "format": "int64", + "description": "Maximum transmission unit (MTU) to set for the network instance and all application interfaces connected to it" + }, + "edgeNodeCluster": { + "$ref": "#/definitions/NetInstEdgeNodeCluster", + "description": "Edge Node Cluster" + }, + "forwardLldp": { + "type": "boolean", + "description": "enable/disable lldp frame forward" + } + }, + "description": "Network instance provides Edge applications a variety of connectivity choices for all types of networks. This enables logical secure connectivity between Edge applications within a single Edge node and within a logical group of Edge nodes. This provides detailed configuration of a Network instance.", + "title": "Network instance detailed configuration", + "required": [ + "id", + "name", + "title", + "deviceId", + "port", + "kind" + ] + }, + "NetInstEdgeNodeCluster": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Id of the Edge Node Cluster", + "pattern": "[0-9A-Za-z-]+" + }, + "designatedNodeID": { + "type": "string", + "description": "Id of the designated Edge Node", + "pattern": "[0-9A-Za-z-]+" + } + } + }, + "NetInstList": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/NetInstShortConfig" + } + }, + "cfgList": { + "type": "array", + "items": { + "$ref": "#/definitions/NetInstConfig" + } + }, + "summaryByKind": { + "$ref": "#/definitions/Summary", + "description": "Summary information about netinstance list records by network instance kind." + }, + "summaryByAddressType": { + "$ref": "#/definitions/Summary", + "description": "Summary information about netinstance list records by addressing type." + }, + "next": { + "$ref": "#/definitions/Cursor" + } + } + }, + "NetInstOpaqueConfig": { + "type": "object", + "properties": { + "type": { + "type": "string", + "$ref": "#/definitions/OpaqueConfigType", + "description": "type of Opaque config" + }, + "oconfig": { + "type": "string", + "description": "base64 encoded string of opaque config" + }, + "lisp": { + "type": "string", + "$ref": "#/definitions/LispConfig", + "description": "Deprecated - Lisp config", + "title": "lisp - Deprecated" + } + }, + "description": "Network Instance Opaque config. This is service specific configuration." + }, + "NetInstShortConfig": { + "type": "object", + "example": { + "id": "d85a545f-6510-4327-b03d-c02eef119e99", + "name": "sample-app" + }, + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the network instance", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the network instance, unique across the enterprise. Once object is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "deviceId": { + "type": "string" + }, + "projectId": { + "type": "string" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "kind": { + "$ref": "#/definitions/NetworkInstanceKind" + }, + "type": { + "$ref": "#/definitions/NetworkInstanceDhcpType" + }, + "forwardLldp": { + "type": "boolean" + }, + "deviceDefault": { + "type": "boolean" + }, + "networkPolicyId": { + "type": "string", + "description": "network policy id" + } + }, + "description": "Network instance provides Edge applications a variety of connectivity choices for all types of networks. This enables logical secure connectivity between Edge applications within a single Edge node and within a logical group of Edge nodes. This provides summary configuration of a Network instance.", + "title": "Network instance summary configuration" + }, + "NetInstStatusListMsg": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/NetInstStatusSummaryMsg" + } + }, + "summaryByKind": { + "$ref": "#/definitions/Summary", + "description": "Summary information about netinstance status list records by network instance kind." + }, + "summaryByAddressType": { + "$ref": "#/definitions/Summary", + "description": "Summary information about netinstance status list records by addressing type." + }, + "next": { + "$ref": "#/definitions/Cursor" + } + } + }, + "NetInstStatusMsg": { + "type": "object", + "example": { + "id": "d85a545f-6510-4327-b03d-c02eef119e99", + "name": "sample-app" + }, + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the network instance", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the network instance, unique across the enterprise. Once object is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "deviceId": { + "type": "string", + "title": "device on which this network is running" + }, + "runState": { + "$ref": "#/definitions/RunState" + }, + "upTimeStamp": { + "type": "string", + "format": "date-time" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "clusterID": { + "type": "string", + "description": "System defined universally unique clusterInstance ID, unique across the enterprise.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "projectId": { + "type": "string" + }, + "kind": { + "$ref": "#/definitions/NetworkInstanceKind" + }, + "bridgeNum": { + "type": "integer", + "format": "int64" + }, + "bridgeName": { + "type": "string" + }, + "bridgeIPAddr": { + "type": "string" + }, + "ipMappings": { + "type": "array", + "items": { + "$ref": "#/definitions/IPAssignment" + } + }, + "vifs": { + "type": "array", + "items": { + "$ref": "#/definitions/VifInfo" + } + }, + "ipv4Eid": { + "type": "boolean" + }, + "assignedAdapters": { + "type": "array", + "items": { + "$ref": "#/definitions/IoBundleStatus" + } + }, + "uplinkIntf": { + "type": "string" + }, + "mtu": { + "type": "integer", + "format": "int64", + "description": "Maximum transmission unit (MTU) to set for the network instance and all application interfaces connected to it" + }, + "ipRoutes": { + "type": "array", + "items": { + "$ref": "#/definitions/eveinfoIPRoute" + }, + "description": "List of IP routes used by the network instance" + }, + "ports": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of ports used by the network instance" + }, + "errInfo": { + "type": "array", + "items": { + "$ref": "#/definitions/DeviceError" + } + }, + "rawStatus": { + "type": "string" + } + }, + "description": "Network instance provides Edge applications a variety of connectivity choices for all types of networks. This enables logical secure connectivity between Edge applications within a single Edge node and within a logical group of Edge nodes. This provides detailed status of a Network instance.", + "title": "Network instance detailed status" + }, + "NetInstStatusSummaryMsg": { + "type": "object", + "example": { + "id": "d85a545f-6510-4327-b03d-c02eef119e99", + "name": "sample-app" + }, + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the network instance", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the network instance, unique across the enterprise. Once object is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "runState": { + "$ref": "#/definitions/RunState" + }, + "upTimeStamp": { + "type": "string", + "format": "date-time" + }, + "uplinkIntf": { + "type": "string" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "clusterID": { + "type": "string", + "description": "User defined name of the clusterInstance, unique across the enterprise.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "type": { + "$ref": "#/definitions/NetworkInstanceDhcpType" + }, + "kind": { + "$ref": "#/definitions/NetworkInstanceKind" + }, + "deviceId": { + "type": "string" + }, + "projectId": { + "type": "string" + }, + "deviceName": { + "type": "string" + }, + "projectName": { + "type": "string" + }, + "edgeNodeClusterID": { + "type": "string" + } + }, + "description": "Network instance provides Edge applications a variety of connectivity choices for all types of networks. This enables logical secure connectivity between Edge applications within a single Edge node and within a logical group of Edge nodes. This provides summary status of a Network instance.", + "title": "Network instance summary status" + }, + "NetProjectInfo": { + "type": "object", + "properties": { + "projectId": { + "type": "string", + "description": "system generated unique id for a project", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+" + }, + "projectName": { + "type": "string", + "description": "project name" + } + } + }, + "NetProxyConfig": { + "type": "object", + "properties": { + "networkProxy": { + "type": "boolean", + "description": "Network proxy" + }, + "proxies": { + "type": "array", + "items": { + "$ref": "#/definitions/NetProxyServer" + }, + "description": "Net Proxy: protocol level proxies", + "title": "protocol level proxies" + }, + "exceptions": { + "type": "string", + "description": "Proxy exceptions" + }, + "pacfile": { + "type": "string", + "description": "proxy configuration in a pacfile", + "title": "proxy configuration in a pacfile" + }, + "networkProxyURL": { + "type": "string", + "description": "Network Proxy URL", + "title": "Direct URL for wpad.dat download" + }, + "networkProxyCerts": { + "type": "array", + "items": { + "type": "string", + "format": "byte" + }, + "description": "Network Proxy Certificates", + "title": "Proxy Certificates" + } + }, + "description": "Net Proxy Configurations", + "title": "Net Proxy Configurations" + }, + "NetProxyServer": { + "type": "object", + "properties": { + "proto": { + "type": "object", + "$ref": "#/definitions/NetworkProxyProto", + "description": "Net Proxy proto" + }, + "server": { + "type": "string", + "description": "Net Proxy Server" + }, + "port": { + "type": "number", + "format": "int64", + "description": "Net Proxy Port" + } + }, + "description": "Net Proxy Server", + "title": "Net Proxy Server" + }, + "NetWifiConfig": { + "type": "object", + "properties": { + "wifiSSID": { + "type": "string" + }, + "keyScheme": { + "$ref": "#/definitions/NetworkWiFiKeyScheme" + }, + "identity": { + "type": "string" + }, + "secret": { + "$ref": "#/definitions/NetWifiConfigSecrets" + }, + "crypto": { + "$ref": "#/definitions/NetWifiConfigNetcryptoblock" + }, + "priority": { + "type": "integer", + "format": "int32" + }, + "encryptedSecrets": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "cryptoKey": { + "type": "string" + } + } + }, + "NetWifiConfigNetcryptoblock": { + "type": "object", + "properties": { + "identity": { + "type": "string" + }, + "password": { + "type": "string" + } + } + }, + "NetWifiConfigSecrets": { + "type": "object", + "properties": { + "WiFiPasswd": { + "type": "string", + "description": "Wifi Password" + } + } + }, + "NetWirelessConfig": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/NetworkWirelessType" + }, + "cellularCfg": { + "$ref": "#/definitions/NetCellularConfig" + }, + "wifiCfg": { + "$ref": "#/definitions/NetWifiConfig" + } + } + }, + "NetworkDHCPType": { + "type": "string", + "enum": [ + "NETWORK_DHCP_TYPE_UNSPECIFIED", + "NETWORK_DHCP_TYPE_STATIC", + "NETWORK_DHCP_TYPE_PASSTHROUGH", + "NETWORK_DHCP_TYPE_DEPRECATED", + "NETWORK_DHCP_TYPE_CLIENT", + "NETWORK_DHCP_TYPE_STATIC_ADAPTER_SPECIFIC" + ], + "default": "NETWORK_DHCP_TYPE_UNSPECIFIED", + "title": "- NETWORK_DHCP_TYPE_STATIC: used for adapter configured DHCP static\n - NETWORK_DHCP_TYPE_PASSTHROUGH: used for adapter configured DHCP none, application will do DHCP\n - NETWORK_DHCP_TYPE_DEPRECATED: used for application simulation\n - NETWORK_DHCP_TYPE_CLIENT: used for adapter configured DHCP client\n - NETWORK_DHCP_TYPE_STATIC_ADAPTER_SPECIFIC: used to configure device adapter specific static networks" + }, + "NetworkDeviceList": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkRelatedDevice" + } + } + } + }, + "NetworkInstanceDhcpType": { + "type": "string", + "enum": [ + "NETWORK_INSTANCE_DHCP_TYPE_UNSPECIFIED", + "NETWORK_INSTANCE_DHCP_TYPE_V4", + "NETWORK_INSTANCE_DHCP_TYPE_V6", + "NETWORK_INSTANCE_DHCP_TYPE_CRYPTOEID", + "NETWORK_INSTANCE_DHCP_TYPE_CRYPTOV4", + "NETWORK_INSTANCE_DHCP_TYPE_CRYPTOV6" + ], + "default": "NETWORK_INSTANCE_DHCP_TYPE_UNSPECIFIED", + "title": "NetworkInstanceDhcpType: Used in the network instance provide\n dhcp server configuration" + }, + "NetworkInstanceKind": { + "type": "string", + "enum": [ + "NETWORK_INSTANCE_KIND_UNSPECIFIED", + "NETWORK_INSTANCE_KIND_TRANSPARENT", + "NETWORK_INSTANCE_KIND_SWITCH", + "NETWORK_INSTANCE_KIND_LOCAL", + "NETWORK_INSTANCE_KIND_CLOUD", + "NETWORK_INSTANCE_KIND_MESH", + "NETWORK_INSTANCE_KIND_HONEYPOT" + ], + "default": "NETWORK_INSTANCE_KIND_UNSPECIFIED" + }, + "NetworkKind": { + "type": "string", + "enum": [ + "NETWORK_KIND_UNSPECIFIED", + "NETWORK_KIND_V4", + "NETWORK_KIND_V6", + "NETWORK_KIND_V4_ONLY", + "NETWORK_KIND_V6_ONLY", + "NETWORK_KIND_DUAL_V4_V6" + ], + "default": "NETWORK_KIND_UNSPECIFIED", + "title": "NetworkKind: Used for the network configuration, this is\n only client mode" + }, + "NetworkProxyProto": { + "type": "string", + "enum": [ + "NETWORK_PROXY_PROTO_HTTP", + "NETWORK_PROXY_PROTO_HTTPS", + "NETWORK_PROXY_PROTO_SOCKS", + "NETWORK_PROXY_PROTO_FTP", + "NETWORK_PROXY_PROTO_OTHER" + ], + "default": "NETWORK_PROXY_PROTO_HTTP" + }, + "NetworkRelatedDevice": { + "type": "object", + "properties": { + "devId": { + "type": "string" + }, + "devName": { + "type": "string" + }, + "adapterName": { + "type": "string" + } + } + }, + "NetworkWiFiKeyScheme": { + "type": "string", + "enum": [ + "NETWORK_WIFIKEY_SCHEME_UNSPECIFIED", + "NETWORK_WIFIKEY_SCHEME_WPAPSK", + "NETWORK_WIFIKEY_SCHEME_WPAEAP" + ], + "default": "NETWORK_WIFIKEY_SCHEME_UNSPECIFIED" + }, + "NetworkWirelessType": { + "type": "string", + "enum": [ + "NETWORK_WIRELESS_TYPE_UNSPECIFIED", + "NETWORK_WIRELESS_TYPE_WIFI", + "NETWORK_WIRELESS_TYPE_CELLULAR" + ], + "default": "NETWORK_WIRELESS_TYPE_UNSPECIFIED" + }, + "NtpServer": { + "type": "object", + "properties": { + "server": { + "type": "string", + "description": "NTP Server IP or FQDN" + } + }, + "description": "NTP Server", + "title": "NTP Server" + }, + "ObjectRevision": { + "type": "object", + "properties": { + "prev": { + "type": "string", + "description": "Previous" + }, + "curr": { + "type": "string", + "description": "Current Database version of the record" + }, + "createdAt": { + "type": "object", + "format": "date-time", + "description": "The time, in milliseconds since the epoch, when the record was created." + }, + "createdBy": { + "type": "string", + "description": "User data: Created By" + }, + "updatedAt": { + "type": "object", + "format": "date-time", + "description": "The time, in milliseconds since the epoch, when the record was last updated." + }, + "updatedBy": { + "type": "string", + "description": "User data: Updated By" + } + }, + "description": "ObjectRevision store the user details, who has doent the necessary operation like Create Operation or update operation", + "title": "ObjectRevision is used to store the user information.", + "required": [ + "curr", + "createdAt", + "createdBy", + "updatedAt", + "updatedBy" + ] + }, + "ObjectTag": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "object tag key identifier." + }, + "value": { + "type": "string", + "description": "value associated for the object tag key" + }, + "description": { + "type": "string", + "description": "Description of the tag key" + } + }, + "description": "Object tag deaails.", + "title": "Object Tag details" + }, + "ObjectTagsList": { + "type": "object", + "properties": { + "objectTags": { + "type": "array", + "items": { + "$ref": "#/definitions/ObjectTag" + }, + "description": "Details of Object tags list records." + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "Returned record page." + } + }, + "description": "Returned list of Object tags matched by filter criteria", + "title": "Object tag list records" + }, + "ObjectType": { + "type": "string", + "enum": [ + "OBJECT_TYPE_UNSPECIFIED", + "OBJECT_TYPE_USER", + "OBJECT_TYPE_EDGE_NODE", + "OBJECT_TYPE_EDGE_APP", + "OBJECT_TYPE_IMAGE", + "OBJECT_TYPE_EDGE_APP_INSTANCE", + "OBJECT_TYPE_PROJECT", + "OBJECT_TYPE_NETWORK", + "OBJECT_TYPE_DATASTORE", + "OBJECT_TYPE_SERVICE", + "OBJECT_TYPE_SERVICE_INSTANCE", + "OBJECT_TYPE_ENTERPRISE", + "OBJECT_TYPE_ROLE", + "OBJECT_TYPE_CREDENTIAL", + "OBJECT_TYPE_NETWORK_INSTANCE", + "OBJECT_TYPE_VOLUME_INSTANCE", + "OBJECT_TYPE_REALM", + "OBJECT_TYPE_AUTHPROFILE", + "OBJECT_TYPE_POLICY", + "OBJECT_TYPE_APP_POLICY", + "OBJECT_TYPE_CLUSTER_INSTANCE", + "OBJECT_TYPE_PLUGIN", + "OBJECT_TYPE_DOC_POLICY", + "OBJECT_TYPE_ORCHESTRATOR_CLUSTER", + "OBJECT_TYPE_TAGS", + "OBJECT_TYPE_EDGE_NODE_INTERFACE", + "OBJECT_TYPE_DEPLOYMENT", + "OBJECT_TYPE_ENTITLEMENTS", + "OBJECT_TYPE_DATA_STREAM", + "OBJECT_TYPE_API_USAGE", + "OBJECT_TYPE_APP_INSTANCE_SNAPSHOT", + "OBJECT_TYPE_PATCH_ENVELOPE", + "OBJECT_TYPE_RESOURCE_USAGE_TRACK", + "OBJECT_TYPE_PATCH_ENVELOPE_REFERENCE", + "OBJECT_TYPE_DEV_PASSTHROUGH", + "OBJECT_TYPE_EDGE_NODE_CLUSTER", + "OBJECT_TYPE_ASSET_GROUP", + "OBJECT_TYPE_APP_PROFILE", + "OBJECT_TYPE_PROFILE_DEPLOYMENT", + "OBJECT_TYPE_ZKS_INSTANCE", + "OBJECT_TYPE_CLUSTER_GROUP" + ], + "default": "OBJECT_TYPE_UNSPECIFIED" + }, + "OpaqueConfigType": { + "type": "string", + "enum": [ + "OPAQUE_CONFIG_TYPE_UNSPECIFIED", + "OPAQUE_CONFIG_TYPE_VPN", + "OPAQUE_CONFIG_TYPE_LISP" + ], + "default": "OPAQUE_CONFIG_TYPE_UNSPECIFIED" + }, + "ProbeConfig": { + "type": "object", + "properties": { + "enableGatewayPing": { + "type": "boolean", + "description": "Enable gateway ping" + }, + "pingMaxCost": { + "type": "number", + "format": "int64", + "description": "Ping max cost" + }, + "preferLowerCost": { + "type": "boolean", + "description": "Prefer lower cost" + }, + "preferStrongerWwanSignal": { + "type": "boolean", + "description": "Prefer stronger WWAN signal" + }, + "customProbeConfig": { + "type": "object", + "$ref": "#/definitions/commonConnectivityProbe", + "description": "Custom probe configuration" + } + }, + "description": "Probing configuration", + "title": "Probing configuration" + }, + "RunState": { + "type": "string", + "enum": [ + "RUN_STATE_UNSPECIFIED", + "RUN_STATE_ONLINE", + "RUN_STATE_HALTED", + "RUN_STATE_INIT", + "RUN_STATE_REBOOTING", + "RUN_STATE_OFFLINE", + "RUN_STATE_UNKNOWN", + "RUN_STATE_UNPROVISIONED", + "RUN_STATE_PROVISIONED", + "RUN_STATE_SUSPECT", + "RUN_STATE_DOWNLOADING", + "RUN_STATE_RESTARTING", + "RUN_STATE_PURGING", + "RUN_STATE_HALTING", + "RUN_STATE_ERROR", + "RUN_STATE_VERIFYING", + "RUN_STATE_LOADING", + "RUN_STATE_CREATING_VOLUME", + "RUN_STATE_BOOTING", + "RUN_STATE_MAINTENANCE_MODE", + "RUN_STATE_START_DELAYED", + "RUN_STATE_BASEOS_UPDATING", + "RUN_STATE_PREPARING_POWEROFF", + "RUN_STATE_POWERING_OFF", + "RUN_STATE_PREPARED_POWEROFF" + ], + "default": "RUN_STATE_UNSPECIFIED", + "description": "- RUN_STATE_ONLINE: Entity Online\n - RUN_STATE_HALTED: Entity Halted\n - RUN_STATE_INIT: Entity Initializing\n - RUN_STATE_REBOOTING: Entity Rebooting\n - RUN_STATE_OFFLINE: Entity Offline\n - RUN_STATE_UNKNOWN: Entity state Unknown\n - RUN_STATE_UNPROVISIONED: Entity Unprovisioned\n - RUN_STATE_PROVISIONED: Entity Provisioned\n - RUN_STATE_SUSPECT: Entity Suspect\n - RUN_STATE_DOWNLOADING: Edge-node downloading entity artifacts\n - RUN_STATE_RESTARTING: Entity Restarting\n - RUN_STATE_PURGING: Entity Purging\n - RUN_STATE_HALTING: Entity Halting\n - RUN_STATE_ERROR: Entity encountered an error\n - RUN_STATE_VERIFYING: Verification of downloaded Artifacts in Progress.\n - RUN_STATE_LOADING: Loading of Artifacts into local datastore in Progress.\n - RUN_STATE_CREATING_VOLUME: Volume creation from artifacts in Progress\n - RUN_STATE_BOOTING: Entity booting up\n - RUN_STATE_MAINTENANCE_MODE: Entity maintenance mode\n - RUN_STATE_START_DELAYED: Application start delayed as per configuration\n - RUN_STATE_BASEOS_UPDATING: Device BaseOs Update in Progress\n - RUN_STATE_PREPARING_POWEROFF: device preparing power off - shutting down all app instances\n - RUN_STATE_POWERING_OFF: device powering off from local profile server\n - RUN_STATE_PREPARED_POWEROFF: device prepared power off - all app instances are shut down", + "title": "RunState - On update, please update RunState_HttpRequest as well" + }, + "RunStateConfig_HttpRequestRunState_HttpRequest": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "ONLINE", + "HALTED", + "INIT", + "REBOOTING", + "OFFLINE", + "UNKNOWN", + "UNPROVISIONED", + "PROVISIONED", + "SUSPECT", + "DOWNLOADING", + "RESTARTING", + "PURGING", + "HALTING", + "ERROR", + "VERIFYING", + "LOADING", + "CREATING_VOLUME", + "BOOTING", + "MAINTENANCE_MODE", + "START_DELAYED", + "BASEOS_UPDATING", + "PREPARING_POWEROFF", + "POWERING_OFF", + "PREPARED_POWEROFF" + ], + "default": "UNSPECIFIED", + "title": "RunState_HttpRequest - Only for swagger documentation" + }, + "ServicePoint": { + "type": "object", + "properties": { + "type": { + "type": "object", + "$ref": "#/definitions/spType", + "description": "Service Point Type" + }, + "NameOrIp": { + "type": "string", + "description": "Service name/ service name" + }, + "Credential": { + "type": "string", + "description": "Service credentials" + } + }, + "description": "Service Point", + "title": "Service Point" + }, + "Severity": { + "type": "string", + "enum": [ + "SEVERITY_UNSPECIFIED", + "SEVERITY_NOTICE", + "SEVERITY_WARNING", + "SEVERITY_ERROR" + ], + "default": "SEVERITY_UNSPECIFIED", + "title": "Severity tells the severity type" + }, + "SimcardState": { + "type": "string", + "enum": [ + "SIMCARD_STATE_INVALID", + "SIMCARD_STATE_ASSIGNED", + "SIMCARD_STATE_PROVISIONED", + "SIMCARD_STATE_ACTIVE", + "SIMCARD_STATE_SUSPENDED", + "SIMCARD_STATE_CANCELLED" + ], + "default": "SIMCARD_STATE_INVALID" + }, + "StaticDNSList": { + "type": "object", + "properties": { + "hostname": { + "type": "string", + "description": "Host name" + }, + "addrs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Addresses" + } + }, + "description": "Static DNS list", + "title": "Static DNS list" + }, + "StaticIPRoute": { + "type": "object", + "properties": { + "prefix": { + "type": "string", + "description": "IP Prefix" + }, + "gateway": { + "type": "string", + "description": "Gateway IP" + }, + "outputPort": { + "type": "string", + "description": "Output Port" + }, + "probeConfig": { + "type": "object", + "$ref": "#/definitions/ProbeConfig", + "description": "Probe Configuration" + } + }, + "description": "Static IP Routes", + "title": "Static IP Routes" + }, + "Summary": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Summary description" + }, + "total": { + "type": "number", + "format": "int64", + "description": "Total" + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "integer", + "format": "int64" + }, + "description": "Values: Map for storing " + } + }, + "description": "Summary is used to store the Summary details", + "title": "Summary is used to store the Summary details" + }, + "VifInfo": { + "type": "object", + "properties": { + "vifName": { + "type": "string" + }, + "macAddress": { + "type": "string" + }, + "appName": { + "type": "string" + } + } + }, + "ZcOpsStatus": { + "type": "string", + "enum": [ + "OPS_STATUS_UNSPECIFIED", + "OPS_STATUS_PENDING", + "OPS_STATUS_ONGOING", + "OPS_STATUS_COMPLETE" + ], + "default": "OPS_STATUS_UNSPECIFIED", + "description": "- OPS_STATUS_PENDING: In rare cases, system may not start operation when it was requested. Client will be notified that operation is PENDING\n - OPS_STATUS_ONGOING: system will start the operation, but at the time response was generated, operation is still ONGOING.\n - OPS_STATUS_COMPLETE: Even if the result of the operations may result in failure, but the OpsStatus will marked COMPLETE for almost all cases.", + "title": "ZedCloud internal operation status" + }, + "ZcOpsType": { + "type": "string", + "enum": [ + "OPS_TYPE_UNSPECIFIED", + "OPS_TYPE_READ", + "OPS_TYPE_DELETE", + "OPS_TYPE_CREATE", + "OPS_TYPE_UPDATE", + "OPS_TYPE_LIST" + ], + "default": "OPS_TYPE_UNSPECIFIED", + "title": "ZedCloud internal operation type" + }, + "ZsrvError": { + "type": "object", + "properties": { + "ec": { + "$ref": "#/definitions/ZsrvErrorCode", + "title": "Enumrated error code, describes more granular numerical\nvalue than just httpStatus" + }, + "location": { + "type": "string", + "title": "Ignore: Internal field only" + }, + "details": { + "type": "string", + "title": "Field captures string description of details" + } + } + }, + "ZsrvErrorCode": { + "type": "string", + "enum": [ + "zMsgErrorNone", + "zMsgSucess", + "NotFound", + "AlreadyExists", + "VersionMismatch", + "RangeError", + "LargeResult", + "IncompleteData", + "InvalidData", + "FunctionUnsupported", + "NoMemory", + "SendFailure", + "Timeout", + "BadReqBody", + "BadReqParam", + "InvalidFieldFormat", + "UrlNotFound", + "ApiVersionNotSupported", + "Unauthorized", + "Forbidden", + "Conflict", + "NotModified", + "DependencyConflict", + "JsonFmtError", + "ProtoFmtError", + "CertError", + "DataBaseConnection", + "DBError", + "zMsgAccepted", + "zMsgCreated", + "PreConditionFailed", + "InternalServerError" + ], + "default": "zMsgErrorNone", + "description": "- zMsgErrorNone: common validation errors\n - IncompleteData: message had fields that weren't filled in\n - InvalidData: message contained the field that wasn't expected\n - FunctionUnsupported: this feature unavailable on this version of device\n - InvalidFieldFormat: message contained the field that wasn't correctly formatted\n - JsonFmtError: Marshal / Unmarshal errors\n - DataBaseConnection: generic DB error", + "title": "ZedCould internal error code" + }, + "ZsrvResponse": { + "type": "object", + "properties": { + "operationType": { + "$ref": "#/definitions/ZcOpsType", + "title": "Describes one of the operations type : possible values\n Read/Delete/Create/Update/List" + }, + "operationStatus": { + "$ref": "#/definitions/ZcOpsStatus", + "title": "if this is log running job" + }, + "objectKind": { + "type": "string", + "title": "zedcloud object kind on which the operation was performed" + }, + "objectId": { + "type": "string", + "title": "Unique value identifies the object that was operated on" + }, + "objectName": { + "type": "string", + "title": "name of the object" + }, + "objectRevision": { + "type": "string", + "title": "object revision post the operation, note Read operation\ndoesn't change the revision" + }, + "objectType": { + "$ref": "#/definitions/ObjectType" + }, + "operationTime": { + "type": "string", + "title": "time of operation" + }, + "startTime": { + "type": "string", + "title": "total time taken by operations" + }, + "endTime": { + "type": "string" + }, + "user": { + "type": "string", + "title": "the operation is performed on behalf of this user" + }, + "httpStatusCode": { + "type": "integer", + "format": "int32", + "title": "http response" + }, + "httpStatusMsg": { + "type": "string", + "title": "summary of the error in text format" + }, + "jobId": { + "type": "string", + "title": "for tracking asynchronous tasks" + }, + "error": { + "type": "array", + "items": { + "$ref": "#/definitions/ZsrvError" + }, + "title": "one or more errors will be set if the operation failed\ni.e. httpStatusCode != 2xx" + } + } + }, + "commonCellularIPType": { + "type": "string", + "enum": [ + "CELLULAR_IP_TYPE_UNSPECIFIED", + "CELLULAR_IP_TYPE_IPV4", + "CELLULAR_IP_TYPE_IPV4_AND_IPV6", + "CELLULAR_IP_TYPE_IPV6" + ], + "default": "CELLULAR_IP_TYPE_UNSPECIFIED", + "description": "The IP addressing type to use for a given attach or default bearer.\n\n - CELLULAR_IP_TYPE_UNSPECIFIED: IP type is not specified.\nWhen unspecified, EVE will not enforce an IP type in the bearer configuration.\nThe modem will instead use its built-in profiles (see CellularProfile) to determine\nthe appropriate IP type for the network.\n - CELLULAR_IP_TYPE_IPV4: IPv4 only.\n - CELLULAR_IP_TYPE_IPV4_AND_IPV6: IPv4 and IPv6.\n - CELLULAR_IP_TYPE_IPV6: IPv6 only." + }, + "commonCipherBlock": { + "type": "object", + "properties": { + "cipherContextId": { + "type": "string", + "title": "cipher context id" + }, + "initialValue": { + "type": "string", + "format": "byte", + "title": "Initial Value for Symmetric Key derivation" + }, + "cipherData": { + "type": "string", + "format": "byte", + "title": "encrypted sensitive data" + }, + "clearTextSha256": { + "type": "string", + "format": "byte", + "title": "sha256 of the plaintext sensitive data" + } + }, + "title": "Encrypted sensitive data information" + }, + "commonConnectivityProbe": { + "type": "object", + "properties": { + "probeMethod": { + "$ref": "#/definitions/commonConnectivityProbeMethod", + "description": "Method to use to determine the connectivity status." + }, + "probeEndpoint": { + "$ref": "#/definitions/commonProbeEndpoint", + "description": "Endpoint to probe using the selected probing mechanism to determine\nthe connectivity status." + } + }, + "description": "Configuration for user-defined connectivity-testing probe." + }, + "commonConnectivityProbeMethod": { + "type": "string", + "enum": [ + "CONNECTIVITY_PROBE_METHOD_UNSPECIFIED", + "CONNECTIVITY_PROBE_METHOD_ICMP", + "CONNECTIVITY_PROBE_METHOD_TCP" + ], + "default": "CONNECTIVITY_PROBE_METHOD_UNSPECIFIED", + "description": "User-defined method to use to determine the connectivity status.\n\n - CONNECTIVITY_PROBE_METHOD_UNSPECIFIED: Connectivity probing method is not specified and therefore will not be used.\n - CONNECTIVITY_PROBE_METHOD_ICMP: Use ICMP ping against the probed endpoint to determine the connectivity status.\n - CONNECTIVITY_PROBE_METHOD_TCP: Try to establish TCP connection with the probed endpoint to determine the connectivity\nstatus." + }, + "commonProbeEndpoint": { + "type": "object", + "properties": { + "host": { + "type": "string", + "description": "IP address or FQDN." + }, + "port": { + "type": "integer", + "format": "int64", + "description": "TCP port required for CONNECTIVITY_PROBE_METHOD_TCP.\nLeave empty for CONNECTIVITY_PROBE_METHOD_ICMP." + } + }, + "description": "Address of a remote endpoint to probe in order to determine connectivity status." + }, + "configCellularConnectivityProbe": { + "type": "object", + "properties": { + "disable": { + "type": "boolean", + "description": "If true, then probing is disabled." + }, + "probeAddress": { + "type": "string", + "description": "IP/FQDN to periodically probe using 3 pings per iteration to determine connectivity status.\nThis field is now deprecated and replaced with custom_probe (see below).\nTo maintain backward-compatibility, EVE will check both probe_address and custom_probe\nand will use whichever has non-zero value (if any), but preferring custom_probe." + }, + "customProbe": { + "$ref": "#/definitions/commonConnectivityProbe", + "description": "User-defined probe for cellular connectivity testing.\nOnly IP address is allowed as ConnectivityProbe.probe_address (and port if needed),\nnot hostname.\nThe probing algorithm is more complex that just testing reachability of a remote\nendpoint and the goal is to minimize generated traffic, probing time and false negatives\n(that would trigger undesired re-connect).\nEVE will periodically check the modem status, accessibility of DNS server(s) and potentially\nalso proxies in the local network, and only as the last resort (if connectivity state\nis still unclear) it will probe the remote endpoint. If custom_probe is not defined,\nEVE will try to ping \"8.8.8.8\" (Google public DNS).\nIt is recommended to use custom probe for private LTE networks where public DNS servers\nmight not be allowed by the firewall (and hence ping would fail even with a working\nconnectivity)." + } + }, + "description": "CellularConnectivityProbe is used to periodically check the connectivity status of a cellular network\nby probing a remote endpoint.\nWhenever the probe fails, the cellular connection is automatically restarted. If the probe keeps failing\neven after the restart, the failure is reported in ZCellularStatus.probeError.\nThe connectivity probing interval is 5 minutes and currently it is not configurable." + }, + "dhcpIpRange": { + "type": "object", + "properties": { + "start": { + "type": "string", + "description": "starting IP" + }, + "end": { + "type": "string", + "description": "ending IP" + } + }, + "description": "DHCP IP range", + "title": "DHCP IP range" + }, + "evecommonCellularAuthProtocol": { + "type": "string", + "enum": [ + "CELLULAR_AUTH_PROTOCOL_NONE", + "CELLULAR_AUTH_PROTOCOL_PAP", + "CELLULAR_AUTH_PROTOCOL_CHAP", + "CELLULAR_AUTH_PROTOCOL_PAP_AND_CHAP" + ], + "default": "CELLULAR_AUTH_PROTOCOL_NONE", + "description": "CellularAuthProtocol defines the authentication protocol used for cellular connection.\n\n - CELLULAR_AUTH_PROTOCOL_NONE: No authentication.\n - CELLULAR_AUTH_PROTOCOL_PAP: Password Authentication Protocol.\n - CELLULAR_AUTH_PROTOCOL_CHAP: Challenge-Handshake Authentication Protocol.\n - CELLULAR_AUTH_PROTOCOL_PAP_AND_CHAP: Both PAP and CHAP." + }, + "evecommonRadioAccessTechnology": { + "type": "string", + "enum": [ + "RADIO_ACCESS_TECHNOLOGY_UNSPECIFIED", + "RADIO_ACCESS_TECHNOLOGY_GSM", + "RADIO_ACCESS_TECHNOLOGY_UMTS", + "RADIO_ACCESS_TECHNOLOGY_LTE", + "RADIO_ACCESS_TECHNOLOGY_5GNR" + ], + "default": "RADIO_ACCESS_TECHNOLOGY_UNSPECIFIED", + "description": " - RADIO_ACCESS_TECHNOLOGY_GSM: Global System for Mobile Communications (2G).\n - RADIO_ACCESS_TECHNOLOGY_UMTS: Universal Mobile Telecommunications System (3G).\n - RADIO_ACCESS_TECHNOLOGY_LTE: Long Term Evolution (4G).\n - RADIO_ACCESS_TECHNOLOGY_5GNR: 5G New Radio." + }, + "eveinfoIPRoute": { + "type": "object", + "properties": { + "destinationNetwork": { + "type": "string", + "title": "Destination network address in the CIDR format: /" + }, + "gateway": { + "type": "string", + "description": "Gateway IP address.\nEmpty for connected route." + }, + "port": { + "type": "string", + "description": "Logical label of the output device port for the routed traffic.\nEmpty if the gateway is IP address of one of the applications. In that case,\n'gateway_app' is defined instead." + }, + "gatewayApp": { + "type": "string", + "description": "UUID of the application used as the gateway for the route.\nEmpty if the gateway is external (not one of the apps but outside of the device)\nor this is a connected route for a port (thus gateway is empty).\nIn that case, 'port' is defined instead." + } + }, + "description": "Information about an IP route configured for a network instance.\nThe next-hop for the IP route is specified by the \"gateway\" IP address\n(empty for a connected route) and the output \"port\". However, if the gateway\nis one of the applications running on the device, the port is actually a virtual\ninterface with an EVE-generated interface name and no user-assigned logical label.\nTherefore, in such cases, it is more useful to leave \"port\" empty and instead use\nthe \"gateway_app\" field to publish the UUID of the application used as the gateway." + }, + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "typeUrl": { + "type": "string" + }, + "value": { + "type": "string", + "format": "byte" + } + } + }, + "spType": { + "type": "string", + "enum": [ + "SPTYPE_INVALIDSRV", + "SPTYPE_MAPSERVER", + "SPTYPE_SUPPORTSERVER" + ], + "default": "SPTYPE_INVALIDSRV", + "description": "clone of types defined in API repo.\n\n - SPTYPE_MAPSERVER: mapping service for zededa overlay service\n - SPTYPE_SUPPORTSERVER: if device has support feature enabled, this ia cloud service\nwhich device can be reached." + } + }, + "securityDefinitions": { + "BearerToken": { + "type": "apiKey", + "description": "Bearer token for user session", + "name": "Authorization", + "in": "header" + } + }, + "security": [ + { + "BearerToken": [] + } + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-network" + } +} \ No newline at end of file diff --git a/openapi/zedge_node_cluster_service.swagger.json b/openapi/zedge_node_cluster_service.swagger.json new file mode 100644 index 0000000..a4fba33 --- /dev/null +++ b/openapi/zedge_node_cluster_service.swagger.json @@ -0,0 +1,2747 @@ +{ + "swagger": "2.0", + "info": { + "title": "ZEDEDA Edge-Node Cluster Service", + "description": "The service defines the APIs to work with edge-node clusters. The APIs include such operations as creating, updating, and deleting edge-node clusters, as well as listing and getting details of edge-node clusters.", + "termsOfService": "https://www.zededa.com/terms", + "version": "1.0", + "contact": { + "name": "ZEDEDA API Support", + "url": "https://www.zededa.com/support", + "email": "support@zededa.com" + }, + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.html" + } + }, + "tags": [ + { + "name": "EdgeNodeClusterConfiguration" + }, + { + "name": "ClusterStatus" + } + ], + "basePath": "/api", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/v1/cluster": { + "get": { + "summary": "Query Edge-Node Clusters.", + "description": "Query the Edge-Node Cluster records.", + "operationId": "EdgeNodeClusterConfiguration_QueryClusters", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/EdgeNodeClusters" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this edge-node cluster record will conflict with an already existing edge-node cluster record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "412": { + "description": "Precondition failed. Some of preconditions haven't been met to start request processing.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "filter.projectName", + "description": "User defined name of the project, unique across the enterprise. Once project is created, name can\u2019t be changed", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filter.projectNamePattern", + "description": "cluster project name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filter.namePattern", + "description": "cluster name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filter.includeZks", + "description": "include zks clusters", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filter.titlePattern", + "description": "cluster title pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeClusterConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com" + } + }, + "post": { + "summary": "Create Edge-Node Cluster.", + "description": "Creates an Edge-Node Cluster record.", + "operationId": "EdgeNodeClusterConfiguration_CreateCluster", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this edge-node cluster record will conflict with an already existing edge-node cluster record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "412": { + "description": "Precondition failed. Some of preconditions haven't been met to start request processing.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/EdgeNodeCluster" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeClusterConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com" + } + } + }, + "/v1/cluster/available/projects": { + "get": { + "summary": "Get Edge-Node Cluster Available Projects.", + "description": "Get the list of available projects for a Edge-Node Cluster record.", + "operationId": "EdgeNodeClusterConfiguration_GetAvailableProjectsForCluster", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/EdgeNodeClusterProjects" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this edge-node cluster record will conflict with an already existing edge-node cluster record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "412": { + "description": "Precondition failed. Some of preconditions haven't been met to start request processing.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "filter.projectName", + "description": "User defined name of the project, unique across the enterprise. Once project is created, name can\u2019t be changed", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filter.projectNamePattern", + "description": "cluster project name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filter.namePattern", + "description": "cluster name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filter.includeZks", + "description": "include zks clusters", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filter.titlePattern", + "description": "cluster title pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeClusterConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com" + } + } + }, + "/v1/cluster/id/{id}": { + "get": { + "summary": "Get Edge-Node Cluster.", + "description": "Get the configuration of a Edge-Node Cluster record.", + "operationId": "EdgeNodeClusterConfiguration_GetCluster", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/EdgeNodeClusterConfigSummary" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this edge-node cluster record will conflict with an already existing edge-node cluster record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "412": { + "description": "Precondition failed. Some of preconditions haven't been met to start request processing.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the cluster", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeClusterConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com" + } + }, + "delete": { + "summary": "Delete Edge-Node Cluster.", + "description": "Delete an Edge-Node Cluster record.", + "operationId": "EdgeNodeClusterConfiguration_DeleteCluster", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this edge-node cluster record will conflict with an already existing edge-node cluster record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "412": { + "description": "Precondition failed. Some of preconditions haven't been met to start request processing.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the cluster", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeClusterConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com" + } + }, + "put": { + "summary": "Update Edge-Node Cluster.", + "description": "Update an Edge-Node Cluster record. The usual pattern to update an Edge-Node Cluster record is to retrieve the record and update with the modified values in a new body.", + "operationId": "EdgeNodeClusterConfiguration_UpdateCluster", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this edge-node cluster record will conflict with an already existing edge-node cluster record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "412": { + "description": "Precondition failed. Some of preconditions haven't been met to start request processing.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the cluster", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "User defined name of the cluster, unique across the enterprise. Once cluster is created, name can\u2019t be changed" + }, + "title": { + "type": "string", + "description": "User defined title of the cluster. Title can be changed at any time" + }, + "description": { + "type": "string", + "description": "Detailed description of the cluster" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "projectId": { + "type": "string", + "description": "Foreign key to the project", + "pattern": "[0-9A-Za-z-]+" + }, + "clusterPrefix": { + "type": "string", + "description": "A cluster prefix" + }, + "nodes": { + "type": "array", + "items": { + "$ref": "#/definitions/EdgeNodeClusterNode" + }, + "description": "A list of nodes in the cluster" + }, + "clusterType": { + "$ref": "#/definitions/EdgeNodeClusterType", + "description": "Type of the edge-node cluster" + }, + "manifestUrl": { + "type": "string", + "description": "URL to the configuration manifest" + }, + "manifest": { + "type": "string", + "format": "byte", + "description": "Configuration manifest in bytes" + } + }, + "description": "Cluster detail", + "title": "Cluster detail", + "required": [ + "projectId", + "name", + "nodes" + ] + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeClusterConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com" + } + } + }, + "/v1/cluster/id/{id}/ports": { + "get": { + "summary": "Get Edge-Node Cluster Interface Ports.", + "description": "Get the list of interface ports for a Edge-Node Cluster record.", + "operationId": "EdgeNodeClusterConfiguration_GetClusterPorts", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/EdgeNodeClusterInterfacePorts" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this edge-node cluster record will conflict with an already existing edge-node cluster record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "412": { + "description": "Precondition failed. Some of preconditions haven't been met to start request processing.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the cluster", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeClusterConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com" + } + } + }, + "/v1/cluster/id/{id}/raw/status": { + "get": { + "summary": "Get Edge-Node Cluster raw status.", + "description": "Get the raw (unprocessed) status of an Edge-Node Cluster as reported by the cluster reporter.", + "operationId": "ClusterStatus_GetClusterRawStatus", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/EdgeNodeClusterRawInfo" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this edge-node cluster record will conflict with an already existing edge-node cluster record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "412": { + "description": "Precondition failed. Some of preconditions haven't been met to start request processing.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the cluster", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ClusterStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com" + } + } + }, + "/v1/cluster/id/{id}/status": { + "get": { + "summary": "Get Edge-Node Cluster status.", + "description": "Get the status of an Edge-Node Cluster as reported by the cluster reporter.", + "operationId": "ClusterStatus_GetClusterStatus", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/EdgeNodeClusterStatus" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this edge-node cluster record will conflict with an already existing edge-node cluster record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "412": { + "description": "Precondition failed. Some of preconditions haven't been met to start request processing.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the cluster", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ClusterStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com" + } + } + }, + "/v1/cluster/id/{id}/upgrade": { + "put": { + "summary": "Upgrade Edge-Node Cluster.", + "description": "Upgrade an Edge-Node Cluster with a new version of the eve-os.", + "operationId": "EdgeNodeClusterConfiguration_UpgradeCluster", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing edge-node cluster record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "412": { + "description": "Precondition failed. Some of preconditions haven't been met to start request processing.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BaseOSImage" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeClusterConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com" + } + } + }, + "/v1/cluster/id/{id}/upgrade/status": { + "get": { + "summary": "Get Edge-Node Cluster upgrade status.", + "description": "Get the eve-os upgrade status of an Edge-Node Cluster as reported by the cluster reporter.", + "operationId": "ClusterStatus_GetClusterUpgradeStatus", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/EdgeNodeClusterUpgradeStatusResp" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this edge-node cluster record will conflict with an already existing edge-node cluster record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "412": { + "description": "Precondition failed. Some of preconditions haven't been met to start request processing.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the cluster", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ClusterStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com" + } + } + }, + "/v1/cluster/name/{name}": { + "get": { + "summary": "Get Edge-Node Cluster.", + "description": "Get the configuration of a Edge-Node Cluster record.", + "operationId": "EdgeNodeClusterConfiguration_GetClusterByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/EdgeNodeClusterConfigSummary" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this edge-node cluster record will conflict with an already existing edge-node cluster record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "412": { + "description": "Precondition failed. Some of preconditions haven't been met to start request processing.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "User defined name of the cluster, unique across the enterprise. Once cluster is created, name can\u2019t be changed", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeClusterConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com" + } + } + }, + "/v1/cluster/node/id/{id}": { + "get": { + "summary": "Get Edge-Node Cluster.", + "description": "Get the configuration of a Edge-Node Cluster record by node id.", + "operationId": "EdgeNodeClusterConfiguration_GetClusterByNodeId", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/EdgeNodeClusterConfigSummary" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this edge-node cluster record will conflict with an already existing edge-node cluster record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "412": { + "description": "Precondition failed. Some of preconditions haven't been met to start request processing.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the cluster", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeClusterConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com" + } + } + } + }, + "definitions": { + "AdminState": { + "type": "string", + "enum": [ + "ADMIN_STATE_UNSPECIFIED", + "ADMIN_STATE_CREATED", + "ADMIN_STATE_DELETED", + "ADMIN_STATE_ACTIVE", + "ADMIN_STATE_INACTIVE", + "ADMIN_STATE_REGISTERED", + "ADMIN_STATE_ARCHIVED", + "ADMIN_STATE_DELETION_PENDING" + ], + "default": "ADMIN_STATE_UNSPECIFIED", + "description": "- ADMIN_STATE_CREATED: Entity Created in the controller\n - ADMIN_STATE_DELETED: Entity Deleted in the controller\n - ADMIN_STATE_ACTIVE: Entity Activated in the controller\n - ADMIN_STATE_INACTIVE: Entity Deactivated in the controller\n - ADMIN_STATE_REGISTERED: Specific to Edge-node - Edge-node Registered with the controller\n - ADMIN_STATE_ARCHIVED: Entity Archived in the controller\n - ADMIN_STATE_DELETION_PENDING: Entity was marked as Deleted but not yet deleted in the controller", + "title": "AdminState - On update, please update AdminState_HttpRequest as well" + }, + "BaseOSImage": { + "type": "object", + "properties": { + "uuid": { + "type": "string", + "description": "system generated unique id for an image" + }, + "version": { + "type": "string", + "description": "image version" + }, + "imageName": { + "type": "string", + "description": "image name" + }, + "activate": { + "type": "boolean", + "description": "activation flag" + }, + "imvolId": { + "type": "string", + "description": "immutable Volume for this base image" + } + }, + "description": "Base OS image request details", + "title": "Base OS image payload detail", + "required": [ + "uuid", + "version", + "imageName", + "activate" + ] + }, + "ClusterVlanAdapter": { + "type": "object", + "properties": { + "logicalLabel": { + "type": "string" + }, + "lowerLayerName": { + "type": "string" + }, + "vlanId": { + "type": "integer", + "format": "int64" + } + } + }, + "Cursor": { + "type": "object", + "properties": { + "pageToken": { + "type": "string", + "description": "Page Token" + }, + "orderBy": { + "type": "array", + "items": { + "type": "string" + }, + "description": "OrderBy helps in sorting the list response" + }, + "pageNum": { + "type": "number", + "format": "int64", + "description": "Page Number" + }, + "pageSize": { + "type": "number", + "format": "int64", + "description": "Defines the page size" + }, + "totalPages": { + "type": "number", + "format": "int64", + "description": "Total number of pages to be fetched." + } + }, + "description": "Cursor helps in filtering the various list response like edge-app bundle list, model list, bundle list etc. ", + "title": "Cursor is used as filter in list operation." + }, + "EdgeNodeCluster": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the cluster", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the cluster, unique across the enterprise. Once cluster is created, name can\u2019t be changed" + }, + "title": { + "type": "string", + "description": "User defined title of the cluster. Title can be changed at any time" + }, + "description": { + "type": "string", + "description": "Detailed description of the cluster" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "projectId": { + "type": "string", + "description": "Foreign key to the project", + "pattern": "[0-9A-Za-z-]+" + }, + "clusterPrefix": { + "type": "string", + "description": "A cluster prefix" + }, + "nodes": { + "type": "array", + "items": { + "$ref": "#/definitions/EdgeNodeClusterNode" + }, + "description": "A list of nodes in the cluster" + }, + "clusterType": { + "$ref": "#/definitions/EdgeNodeClusterType", + "description": "Type of the edge-node cluster" + }, + "manifestUrl": { + "type": "string", + "description": "URL to the configuration manifest" + }, + "manifest": { + "type": "string", + "format": "byte", + "description": "Configuration manifest in bytes" + } + }, + "description": "Cluster detail", + "title": "Cluster detail", + "required": [ + "projectId", + "name", + "nodes" + ] + }, + "EdgeNodeClusterConfigSummary": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the cluster", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the cluster, unique across the enterprise. Once cluster is created, name can\u2019t be changed" + }, + "title": { + "type": "string", + "description": "User defined title of the cluster. Title can be changed at any time" + }, + "description": { + "type": "string", + "description": "Detailed description of the cluster" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "projectId": { + "type": "string", + "description": "Foreign key to the project" + }, + "clusterPrefix": { + "type": "string", + "description": "A cluster prefix" + }, + "seedNodeId": { + "type": "string", + "description": "Seed node id" + }, + "seedNodeIp": { + "type": "string", + "description": "Seed node ip" + }, + "adminState": { + "$ref": "#/definitions/AdminState", + "description": "Admin state of the cluster" + }, + "nodes": { + "type": "array", + "items": { + "$ref": "#/definitions/EdgeNodeClusterNode" + }, + "description": "A list of nodes in the cluster" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "description": "Creation time of the cluster" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "description": "Last updated time of the cluster" + }, + "projectName": { + "type": "string", + "description": "Project Name" + } + }, + "description": "Cluster config summary", + "title": "Cluster config summary" + }, + "EdgeNodeClusterFilter": { + "type": "object", + "properties": { + "projectName": { + "type": "string", + "description": "User defined name of the project, unique across the enterprise. Once project is created, name can\u2019t be changed", + "uniqueItems": true + }, + "projectNamePattern": { + "type": "string", + "description": "cluster project name pattern" + }, + "namePattern": { + "type": "string", + "description": "cluster name pattern" + }, + "includeZks": { + "type": "string", + "description": "include zks clusters" + }, + "titlePattern": { + "type": "string", + "description": "cluster title pattern" + } + } + }, + "EdgeNodeClusterInterfacePorts": { + "type": "object", + "properties": { + "ports": { + "type": "array", + "items": { + "type": "string" + } + }, + "sharedLabels": { + "type": "array", + "items": { + "type": "string" + } + }, + "vlanAdapters": { + "type": "array", + "items": { + "$ref": "#/definitions/ClusterVlanAdapter" + } + }, + "bondAdapters": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "EdgeNodeClusterNode": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the node", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "clusterInterface": { + "type": "string", + "description": "User defined name of the cluster interface, unique across the enterprise. Once cluster interface is created, name can\u2019t be changed" + }, + "nodeType": { + "$ref": "#/definitions/EdgeNodeClusterNodeType", + "description": "Type of node" + }, + "clusterPrefix": { + "type": "string", + "description": "A cluster prefix" + }, + "resourceLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource labels are name/value pairs that enable you to categorize resources. Label names are case insensitive with max_length 512 and min_length 3. Label values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + } + }, + "description": "Cluster node detail", + "title": "Cluster node detail", + "required": [ + "id", + "clusterInterface" + ] + }, + "EdgeNodeClusterNodeReadyState": { + "type": "string", + "enum": [ + "EDGE_NODE_CLUSTER_NODE_READY_STATE_UNSPECIFIED", + "EDGE_NODE_CLUSTER_NODE_READY_STATE_READY", + "EDGE_NODE_CLUSTER_NODE_READY_STATE_NOT_READY", + "EDGE_NODE_CLUSTER_NODE_READY_STATE_UNKNOWN" + ], + "default": "EDGE_NODE_CLUSTER_NODE_READY_STATE_UNSPECIFIED", + "description": " - EDGE_NODE_CLUSTER_NODE_READY_STATE_UNSPECIFIED: Reserved per proto3 convention (zero value).\n - EDGE_NODE_CLUSTER_NODE_READY_STATE_READY: Node reports a Ready condition that is set.\n - EDGE_NODE_CLUSTER_NODE_READY_STATE_NOT_READY: Node reports a Ready condition that is not set.\n - EDGE_NODE_CLUSTER_NODE_READY_STATE_UNKNOWN: Node is part of the cluster config but has not reported a Ready condition yet." + }, + "EdgeNodeClusterNodeStatus": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "readyState": { + "$ref": "#/definitions/EdgeNodeClusterNodeReadyState" + } + } + }, + "EdgeNodeClusterNodeType": { + "type": "string", + "enum": [ + "EDGE_NODE_CLUSTER_NODE_TYPE_UNSPECIFIED", + "EDGE_NODE_CLUSTER_NODE_TYPE_SERVER", + "EDGE_NODE_CLUSTER_NODE_TYPE_AGENT" + ], + "default": "EDGE_NODE_CLUSTER_NODE_TYPE_UNSPECIFIED" + }, + "EdgeNodeClusterProject": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "EdgeNodeClusterProjects": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/EdgeNodeClusterProject" + } + }, + "next": { + "$ref": "#/definitions/Cursor" + }, + "totalCount": { + "type": "integer", + "format": "int64" + } + } + }, + "EdgeNodeClusterRawInfo": { + "type": "object", + "properties": { + "cluster": { + "$ref": "#/definitions/infoZInfoKubeCluster" + }, + "upgradeStatus": { + "$ref": "#/definitions/infoZInfoKubeClusterUpdateStatus" + } + } + }, + "EdgeNodeClusterStatus": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "runState": { + "$ref": "#/definitions/RunState" + }, + "nodes": { + "type": "array", + "items": { + "$ref": "#/definitions/EdgeNodeClusterNodeStatus" + } + } + } + }, + "EdgeNodeClusterType": { + "type": "string", + "enum": [ + "EDGE_NODE_CLUSTER_TYPE_STANDART", + "EDGE_NODE_CLUSTER_TYPE_ZKS" + ], + "default": "EDGE_NODE_CLUSTER_TYPE_STANDART", + "description": " - EDGE_NODE_CLUSTER_TYPE_STANDART: A standard cluster is a cluster that has exactly 3 nodes.\nThis is the default type, which does not support zks clusters.\n - EDGE_NODE_CLUSTER_TYPE_ZKS: A zks cluster is a cluster that can have 1, 3 or more nodes.\nIts role is to support zks clusters." + }, + "EdgeNodeClusterUpgradeStatus": { + "type": "string", + "enum": [ + "STATUS_UNSPECIFIED", + "STATUS_IN_PROGRESS", + "STATUS_COMPLETED", + "STATUS_FAILED" + ], + "default": "STATUS_UNSPECIFIED" + }, + "EdgeNodeClusterUpgradeStatusResp": { + "type": "object", + "properties": { + "nodes": { + "type": "array", + "items": { + "$ref": "#/definitions/EdgeNodeClusterUpgradeStatusRespNode" + } + } + } + }, + "EdgeNodeClusterUpgradeStatusRespNode": { + "type": "object", + "properties": { + "nodeId": { + "type": "string" + }, + "upgradeableEveOs": { + "type": "string" + }, + "status": { + "$ref": "#/definitions/EdgeNodeClusterUpgradeStatus" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + } + } + }, + "EdgeNodeClusters": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/EdgeNodeClusterConfigSummary" + }, + "description": "cluster config summary list response" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "cursor next" + }, + "totalCount": { + "type": "integer", + "format": "int64", + "description": "total count of clusters" + } + } + }, + "ObjectType": { + "type": "string", + "enum": [ + "OBJECT_TYPE_UNSPECIFIED", + "OBJECT_TYPE_USER", + "OBJECT_TYPE_EDGE_NODE", + "OBJECT_TYPE_EDGE_APP", + "OBJECT_TYPE_IMAGE", + "OBJECT_TYPE_EDGE_APP_INSTANCE", + "OBJECT_TYPE_PROJECT", + "OBJECT_TYPE_NETWORK", + "OBJECT_TYPE_DATASTORE", + "OBJECT_TYPE_SERVICE", + "OBJECT_TYPE_SERVICE_INSTANCE", + "OBJECT_TYPE_ENTERPRISE", + "OBJECT_TYPE_ROLE", + "OBJECT_TYPE_CREDENTIAL", + "OBJECT_TYPE_NETWORK_INSTANCE", + "OBJECT_TYPE_VOLUME_INSTANCE", + "OBJECT_TYPE_REALM", + "OBJECT_TYPE_AUTHPROFILE", + "OBJECT_TYPE_POLICY", + "OBJECT_TYPE_APP_POLICY", + "OBJECT_TYPE_CLUSTER_INSTANCE", + "OBJECT_TYPE_PLUGIN", + "OBJECT_TYPE_DOC_POLICY", + "OBJECT_TYPE_ORCHESTRATOR_CLUSTER", + "OBJECT_TYPE_TAGS", + "OBJECT_TYPE_EDGE_NODE_INTERFACE", + "OBJECT_TYPE_DEPLOYMENT", + "OBJECT_TYPE_ENTITLEMENTS", + "OBJECT_TYPE_DATA_STREAM", + "OBJECT_TYPE_API_USAGE", + "OBJECT_TYPE_APP_INSTANCE_SNAPSHOT", + "OBJECT_TYPE_PATCH_ENVELOPE", + "OBJECT_TYPE_RESOURCE_USAGE_TRACK", + "OBJECT_TYPE_PATCH_ENVELOPE_REFERENCE", + "OBJECT_TYPE_DEV_PASSTHROUGH", + "OBJECT_TYPE_EDGE_NODE_CLUSTER", + "OBJECT_TYPE_ASSET_GROUP", + "OBJECT_TYPE_APP_PROFILE", + "OBJECT_TYPE_PROFILE_DEPLOYMENT", + "OBJECT_TYPE_ZKS_INSTANCE", + "OBJECT_TYPE_CLUSTER_GROUP" + ], + "default": "OBJECT_TYPE_UNSPECIFIED" + }, + "RunState": { + "type": "string", + "enum": [ + "RUN_STATE_UNSPECIFIED", + "RUN_STATE_ONLINE", + "RUN_STATE_HALTED", + "RUN_STATE_INIT", + "RUN_STATE_REBOOTING", + "RUN_STATE_OFFLINE", + "RUN_STATE_UNKNOWN", + "RUN_STATE_UNPROVISIONED", + "RUN_STATE_PROVISIONED", + "RUN_STATE_SUSPECT", + "RUN_STATE_DOWNLOADING", + "RUN_STATE_RESTARTING", + "RUN_STATE_PURGING", + "RUN_STATE_HALTING", + "RUN_STATE_ERROR", + "RUN_STATE_VERIFYING", + "RUN_STATE_LOADING", + "RUN_STATE_CREATING_VOLUME", + "RUN_STATE_BOOTING", + "RUN_STATE_MAINTENANCE_MODE", + "RUN_STATE_START_DELAYED", + "RUN_STATE_BASEOS_UPDATING", + "RUN_STATE_PREPARING_POWEROFF", + "RUN_STATE_POWERING_OFF", + "RUN_STATE_PREPARED_POWEROFF" + ], + "default": "RUN_STATE_UNSPECIFIED", + "description": "- RUN_STATE_ONLINE: Entity Online\n - RUN_STATE_HALTED: Entity Halted\n - RUN_STATE_INIT: Entity Initializing\n - RUN_STATE_REBOOTING: Entity Rebooting\n - RUN_STATE_OFFLINE: Entity Offline\n - RUN_STATE_UNKNOWN: Entity state Unknown\n - RUN_STATE_UNPROVISIONED: Entity Unprovisioned\n - RUN_STATE_PROVISIONED: Entity Provisioned\n - RUN_STATE_SUSPECT: Entity Suspect\n - RUN_STATE_DOWNLOADING: Edge-node downloading entity artifacts\n - RUN_STATE_RESTARTING: Entity Restarting\n - RUN_STATE_PURGING: Entity Purging\n - RUN_STATE_HALTING: Entity Halting\n - RUN_STATE_ERROR: Entity encountered an error\n - RUN_STATE_VERIFYING: Verification of downloaded Artifacts in Progress.\n - RUN_STATE_LOADING: Loading of Artifacts into local datastore in Progress.\n - RUN_STATE_CREATING_VOLUME: Volume creation from artifacts in Progress\n - RUN_STATE_BOOTING: Entity booting up\n - RUN_STATE_MAINTENANCE_MODE: Entity maintenance mode\n - RUN_STATE_START_DELAYED: Application start delayed as per configuration\n - RUN_STATE_BASEOS_UPDATING: Device BaseOs Update in Progress\n - RUN_STATE_PREPARING_POWEROFF: device preparing power off - shutting down all app instances\n - RUN_STATE_POWERING_OFF: device powering off from local profile server\n - RUN_STATE_PREPARED_POWEROFF: device prepared power off - all app instances are shut down", + "title": "RunState - On update, please update RunState_HttpRequest as well" + }, + "ZcOpsStatus": { + "type": "string", + "enum": [ + "OPS_STATUS_UNSPECIFIED", + "OPS_STATUS_PENDING", + "OPS_STATUS_ONGOING", + "OPS_STATUS_COMPLETE" + ], + "default": "OPS_STATUS_UNSPECIFIED", + "description": "- OPS_STATUS_PENDING: In rare cases, system may not start operation when it was requested. Client will be notified that operation is PENDING\n - OPS_STATUS_ONGOING: system will start the operation, but at the time response was generated, operation is still ONGOING.\n - OPS_STATUS_COMPLETE: Even if the result of the operations may result in failure, but the OpsStatus will marked COMPLETE for almost all cases.", + "title": "ZedCloud internal operation status" + }, + "ZcOpsType": { + "type": "string", + "enum": [ + "OPS_TYPE_UNSPECIFIED", + "OPS_TYPE_READ", + "OPS_TYPE_DELETE", + "OPS_TYPE_CREATE", + "OPS_TYPE_UPDATE", + "OPS_TYPE_LIST" + ], + "default": "OPS_TYPE_UNSPECIFIED", + "title": "ZedCloud internal operation type" + }, + "ZsrvError": { + "type": "object", + "properties": { + "ec": { + "$ref": "#/definitions/ZsrvErrorCode", + "title": "Enumrated error code, describes more granular numerical\nvalue than just httpStatus" + }, + "location": { + "type": "string", + "title": "Ignore: Internal field only" + }, + "details": { + "type": "string", + "title": "Field captures string description of details" + } + } + }, + "ZsrvErrorCode": { + "type": "string", + "enum": [ + "zMsgErrorNone", + "zMsgSucess", + "NotFound", + "AlreadyExists", + "VersionMismatch", + "RangeError", + "LargeResult", + "IncompleteData", + "InvalidData", + "FunctionUnsupported", + "NoMemory", + "SendFailure", + "Timeout", + "BadReqBody", + "BadReqParam", + "InvalidFieldFormat", + "UrlNotFound", + "ApiVersionNotSupported", + "Unauthorized", + "Forbidden", + "Conflict", + "NotModified", + "DependencyConflict", + "JsonFmtError", + "ProtoFmtError", + "CertError", + "DataBaseConnection", + "DBError", + "zMsgAccepted", + "zMsgCreated", + "PreConditionFailed", + "InternalServerError" + ], + "default": "zMsgErrorNone", + "description": "- zMsgErrorNone: common validation errors\n - IncompleteData: message had fields that weren't filled in\n - InvalidData: message contained the field that wasn't expected\n - FunctionUnsupported: this feature unavailable on this version of device\n - InvalidFieldFormat: message contained the field that wasn't correctly formatted\n - JsonFmtError: Marshal / Unmarshal errors\n - DataBaseConnection: generic DB error", + "title": "ZedCould internal error code" + }, + "ZsrvResponse": { + "type": "object", + "properties": { + "operationType": { + "$ref": "#/definitions/ZcOpsType", + "title": "Describes one of the operations type : possible values\n Read/Delete/Create/Update/List" + }, + "operationStatus": { + "$ref": "#/definitions/ZcOpsStatus", + "title": "if this is log running job" + }, + "objectKind": { + "type": "string", + "title": "zedcloud object kind on which the operation was performed" + }, + "objectId": { + "type": "string", + "title": "Unique value identifies the object that was operated on" + }, + "objectName": { + "type": "string", + "title": "name of the object" + }, + "objectRevision": { + "type": "string", + "title": "object revision post the operation, note Read operation\ndoesn't change the revision" + }, + "objectType": { + "$ref": "#/definitions/ObjectType" + }, + "operationTime": { + "type": "string", + "title": "time of operation" + }, + "startTime": { + "type": "string", + "title": "total time taken by operations" + }, + "endTime": { + "type": "string" + }, + "user": { + "type": "string", + "title": "the operation is performed on behalf of this user" + }, + "httpStatusCode": { + "type": "integer", + "format": "int32", + "title": "http response" + }, + "httpStatusMsg": { + "type": "string", + "title": "summary of the error in text format" + }, + "jobId": { + "type": "string", + "title": "for tracking asynchronous tasks" + }, + "error": { + "type": "array", + "items": { + "$ref": "#/definitions/ZsrvError" + }, + "title": "one or more errors will be set if the operation failed\ni.e. httpStatusCode != 2xx" + } + } + }, + "eveinfoDeviceEntity": { + "type": "object", + "properties": { + "entity": { + "$ref": "#/definitions/eveinfoEntity" + }, + "entityId": { + "type": "string" + }, + "entityName": { + "type": "string" + } + }, + "title": "DeviceEntity contains the device entity details" + }, + "eveinfoEntity": { + "type": "string", + "enum": [ + "ENTITY_UNSPECIFIED", + "ENTITY_BASE_OS", + "ENTITY_SYSTEM_ADAPTER", + "ENTITY_VAULT", + "ENTITY_ATTESTATION", + "ENTITY_APP_INSTANCE", + "ENTITY_PORT", + "ENTITY_NETWORK", + "ENTITY_NETWORK_INSTANCE", + "ENTITY_CONTENT_TREE", + "ENTITY_CONTENT_BLOB", + "ENTITY_VOLUME" + ], + "default": "ENTITY_UNSPECIFIED", + "description": "- ENTITY_UNSPECIFIED: Invalid Device Entity\n - ENTITY_BASE_OS: Base OS entity\n - ENTITY_SYSTEM_ADAPTER: System Adapter Entity\n - ENTITY_VAULT: Vault Entity\n - ENTITY_ATTESTATION: Attestation Entity\n - ENTITY_APP_INSTANCE: App Instance Entity\n - ENTITY_PORT: Port Entity\n - ENTITY_NETWORK: Network Entity\n - ENTITY_NETWORK_INSTANCE: Network Instance Entity\n - ENTITY_CONTENT_TREE: ContentTree Entity\n - ENTITY_CONTENT_BLOB: Blob Entity\n - ENTITY_VOLUME: VOLUME Entity", + "title": "Entity contains the entity type" + }, + "eveinfoSeverity": { + "type": "string", + "enum": [ + "SEVERITY_UNSPECIFIED", + "SEVERITY_NOTICE", + "SEVERITY_WARNING", + "SEVERITY_ERROR" + ], + "default": "SEVERITY_UNSPECIFIED", + "title": "Severity tells the severity type" + }, + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "infoErrorInfo": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "severity": { + "$ref": "#/definitions/eveinfoSeverity" + }, + "entities": { + "type": "array", + "items": { + "$ref": "#/definitions/eveinfoDeviceEntity" + } + }, + "retryCondition": { + "type": "string" + } + }, + "description": "Describes an error that occurred while applying a configuration to the device." + }, + "infoKubeComp": { + "type": "string", + "enum": [ + "KUBE_COMP_UNSPECIFIED", + "KUBE_COMP_CONTAINERD", + "KUBE_COMP_K3S", + "KUBE_COMP_MULTUS", + "KUBE_COMP_KUBEVIRT", + "KUBE_COMP_CDI", + "KUBE_COMP_LONGHORN" + ], + "default": "KUBE_COMP_UNSPECIFIED", + "description": "KubeComp is a component installed in eve after usb install.\n These are provided to show more detail on cluster update progress." + }, + "infoKubeCompUpdateStatus": { + "type": "string", + "enum": [ + "KUBE_COMP_UPDATE_STATUS_UNSPECIFIED", + "KUBE_COMP_UPDATE_STATUS_DOWNLOAD", + "KUBE_COMP_UPDATE_STATUS_DOWNLOAD_FAILED", + "KUBE_COMP_UPDATE_STATUS_IN_PROGRESS", + "KUBE_COMP_UPDATE_STATUS_FAILED", + "KUBE_COMP_UPDATE_STATUS_COMPLETED" + ], + "default": "KUBE_COMP_UPDATE_STATUS_UNSPECIFIED", + "description": "KubeCompUpdateStatus will track status of each\n KubeComp which will update serially in a cluster." + }, + "infoKubeEVEAppPodInfo": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "Name of the EVE application" + }, + "status": { + "$ref": "#/definitions/infoKubePodStatus", + "title": "Application Status" + }, + "restartCount": { + "type": "integer", + "format": "int64", + "title": "Restart count of the application" + }, + "restartTimestamp": { + "type": "string", + "format": "date-time", + "title": "Restart time of the application" + }, + "creationTimestamp": { + "type": "string", + "format": "date-time", + "title": "Creation Time of the application" + }, + "ipAddress": { + "type": "string", + "title": "IP address of the application, on cni0 interface" + }, + "nodeName": { + "type": "string", + "title": "Node name on which the application is running" + } + } + }, + "infoKubeNodeCondition": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/infoKubeNodeConditionType", + "title": "Type of the condition" + }, + "set": { + "type": "boolean", + "title": "Condition state" + }, + "lastTransitionTime": { + "type": "string", + "format": "date-time", + "title": "last_transition_time is the last time the Condition changed" + } + } + }, + "infoKubeNodeConditionType": { + "type": "string", + "enum": [ + "KUBE_NODE_CONDITION_TYPE_UNSPECIFIED", + "KUBE_NODE_CONDITION_TYPE_READY", + "KUBE_NODE_CONDITION_TYPE_MEMORY_PRESSURE", + "KUBE_NODE_CONDITION_TYPE_DISK_PRESSURE", + "KUBE_NODE_CONDITION_TYPE_PID_PRESSURE", + "KUBE_NODE_CONDITION_TYPE_NETWORK_UNAVAIL" + ], + "default": "KUBE_NODE_CONDITION_TYPE_UNSPECIFIED", + "title": "KubeNodeStatus follows Kubernetes Node Conditions\n Refer here: https://pkg.go.dev/k8s.io/api/core/v1#NodeConditionType" + }, + "infoKubeNodeInfo": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "Name of the node, will match device name" + }, + "conditions": { + "type": "array", + "items": { + "$ref": "#/definitions/infoKubeNodeCondition" + }, + "title": "Status of the node" + }, + "roleServer": { + "type": "boolean", + "title": "Role of the node is server or not" + }, + "creationTimestamp": { + "type": "string", + "format": "date-time", + "title": "Creation Time of the node in the cluster" + }, + "apiServerSersion": { + "type": "string", + "title": "Version of the API Server running on the node" + }, + "internalIp": { + "type": "string", + "title": "Internal IP address of the node" + }, + "schedulable": { + "type": "boolean" + }, + "admissionStatus": { + "$ref": "#/definitions/infoNodeAdmission", + "title": "Admission State of the local node in a cluster" + }, + "nodeId": { + "type": "string", + "title": "Id of the eve node matching config.EdgeDevConfig.id" + } + } + }, + "infoKubePodNameSpaceInfo": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "Name of the namespace" + }, + "podCount": { + "type": "integer", + "format": "int64", + "title": "Number of pods in the namespace" + }, + "podRunningCount": { + "type": "integer", + "format": "int64", + "title": "Number of pods in the namespace that are running" + }, + "podPendingCount": { + "type": "integer", + "format": "int64", + "title": "Number of pods in the namespace that are pending" + }, + "podFailedCount": { + "type": "integer", + "format": "int64", + "title": "Number of pods in the namespace that are failed" + }, + "podSucceededCount": { + "type": "integer", + "format": "int64", + "title": "Number of pods in the namespace that are succeeded" + } + } + }, + "infoKubePodStatus": { + "type": "string", + "enum": [ + "KUBE_POD_STATUS_UNSPECIFIED", + "KUBE_POD_STATUS_PENDING", + "KUBE_POD_STATUS_RUNNING", + "KUBE_POD_STATUS_SUCCEEDED", + "KUBE_POD_STATUS_CONTAINER_CREATING", + "KUBE_POD_STATUS_CRASHLOOP_BACKOFF", + "KUBE_POD_STATUS_ERROR", + "KUBE_POD_STATUS_EVICTED", + "KUBE_POD_STATUS_FAILED" + ], + "default": "KUBE_POD_STATUS_UNSPECIFIED", + "title": "KubePodStatus is a combination of the kubernetes status:\n PodPhase: https://pkg.go.dev/k8s.io/api/core/v1#PodPhase\n PodConditionType: https://pkg.go.dev/k8s.io/api/core/v1#PodConditionType\n ContainerState: https://pkg.go.dev/k8s.io/api/core/v1#ContainerState" + }, + "infoKubeStorageInfo": { + "type": "object", + "properties": { + "health": { + "$ref": "#/definitions/infoServiceStatus", + "title": "Health of the distributes storage services" + }, + "transitionTime": { + "type": "string", + "format": "date-time", + "title": "Time of the most recent health status transition" + }, + "volumes": { + "type": "array", + "items": { + "$ref": "#/definitions/infoKubeVolumeInfo" + }, + "title": "Status of all the volumes in Longhorn" + } + } + }, + "infoKubeVMIInfo": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "Name of the VirtualMachineInstance" + }, + "status": { + "$ref": "#/definitions/infoKubeVMIStatus", + "title": "Status (VirtualMachineInstance.Status.Phase)" + }, + "creationTime": { + "type": "string", + "format": "date-time", + "title": "Creation Time of the VirtualMachineInstance" + }, + "lastTransitionTime": { + "type": "string", + "format": "date-time", + "title": "LastTransitionTime is the last time is_ready changed" + }, + "isReady": { + "type": "boolean", + "title": "IsReady is true if the VMI has a Ready Condition which is true" + }, + "nodeName": { + "type": "string", + "title": "NodeName is the current node (kubernetes.io/hostname) the VMI is running on" + } + }, + "title": "KubeVMIInfo is the VMI status of eve VM apps" + }, + "infoKubeVMIStatus": { + "type": "string", + "enum": [ + "KUBE_VMI_STATUS_UNSPECIFIED", + "KUBE_VMI_STATUS_PENDING", + "KUBE_VMI_STATUS_SCHEDULING", + "KUBE_VMI_STATUS_SCHEDULED", + "KUBE_VMI_STATUS_RUNNING", + "KUBE_VMI_STATUS_SUCCEEDED", + "KUBE_VMI_STATUS_FAILED", + "KUBE_VMI_STATUS_UNKNOWN" + ], + "default": "KUBE_VMI_STATUS_UNSPECIFIED", + "title": "KubeVMIStatus is the VirtualMachineInstancePhase\nRefer to: https://pkg.go.dev/kubevirt.io/api/core/v1#VirtualMachineInstancePhase" + }, + "infoKubeVolumeInfo": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "Name of the volume" + }, + "state": { + "$ref": "#/definitions/infoStorageVolumeState", + "title": "Status of the volume attachment" + }, + "robustness": { + "$ref": "#/definitions/infoStorageVolumeRobustness", + "title": "Robustness of the volume" + }, + "creationTimestamp": { + "type": "string", + "format": "date-time", + "title": "Creation Time of the volume in the cluster" + }, + "provisionedBytes": { + "type": "string", + "format": "uint64", + "title": "Provisioned size of the volume in bytes" + }, + "allocatedBytes": { + "type": "string", + "format": "uint64", + "title": "Allocated size of the volume in bytes" + }, + "pvcStatus": { + "$ref": "#/definitions/infoStorageVolumePVCStatus", + "title": "PV/PVC status of the volume" + }, + "replica": { + "type": "array", + "items": { + "$ref": "#/definitions/infoKubeVolumeReplicaInfo" + }, + "title": "Replicas of the volume" + }, + "robustnessSubstate": { + "$ref": "#/definitions/infoStorageHealthStatus", + "title": "Robustness substate of the replication status of the volume" + }, + "volumeId": { + "type": "string", + "title": "Id of the eve volume info.ZInfoVolume.uuid" + } + } + }, + "infoKubeVolumeReplicaInfo": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "Name of the volume replica" + }, + "ownerNode": { + "type": "string", + "title": "Node replica resides on, will match node name" + }, + "rebuildProgressPercentage": { + "type": "integer", + "format": "int64", + "title": "Rebuild progress of the volume replica" + }, + "status": { + "$ref": "#/definitions/infoStorageVolumeReplicaStatus", + "title": "Replica status" + } + } + }, + "infoNodeAdmission": { + "type": "string", + "enum": [ + "NODE_ADMISSION_UNSPECIFIED", + "NODE_ADMISSION_NOT_CLUSTERED", + "NODE_ADMISSION_LEAVING", + "NODE_ADMISSION_JOINING", + "NODE_ADMISSION_JOINED" + ], + "default": "NODE_ADMISSION_UNSPECIFIED", + "description": "- NODE_ADMISSION_NOT_CLUSTERED: Not Clustered is the default state at first boot\n - NODE_ADMISSION_LEAVING: Leaving can be a long lived state due to draining existing data\n - NODE_ADMISSION_JOINING: Joining can be a long lived state if inter-node networking is not operable\n - NODE_ADMISSION_JOINED: Joined is reached when the node becomes Ready the first time after a request\nto join the cluster", + "title": "Cluster Admission status of the eve node" + }, + "infoServiceStatus": { + "type": "string", + "enum": [ + "SERVICE_STATUS_UNSPECIFIED", + "SERVICE_STATUS_FAILED", + "SERVICE_STATUS_DEGRADED", + "SERVICE_STATUS_HEALTHY" + ], + "default": "SERVICE_STATUS_UNSPECIFIED", + "title": "ServiceStatus denotes a cluster wide\n infrastructure component's health.\n eg. a daemonset which requires pods on multiple nodes" + }, + "infoStorageHealthStatus": { + "type": "string", + "enum": [ + "STORAGE_HEALTH_STATUS_UNSPECIFIED", + "STORAGE_HEALTH_STATUS_HEALTHY", + "STORAGE_HEALTH_STATUS_DEGRADED_2_REPLICA_AVAILABLE_REPLICATING", + "STORAGE_HEALTH_STATUS_DEGRADED_2_REPLICA_AVAILABLE_NOT_REPLICATING", + "STORAGE_HEALTH_STATUS_DEGRADED_1_REPLICA_AVAILABLE_REPLICATING", + "STORAGE_HEALTH_STATUS_DEGRADED_1_REPLICA_AVAILABLE_NOT_REPLICATING", + "STORAGE_HEALTH_STATUS_FAILED" + ], + "default": "STORAGE_HEALTH_STATUS_UNSPECIFIED", + "description": "StorageHealthStatus is a higher level tracking status to show redundancy/failure-zone level\nand rebuild progress." + }, + "infoStorageVolumePVCStatus": { + "type": "string", + "enum": [ + "STORAGE_VOLUME_PVC_STATUS_UNSPECIFIED", + "STORAGE_VOLUME_PVC_STATUS_BOUND", + "STORAGE_VOLUME_PVC_STATUS_PENDING", + "STORAGE_VOLUME_PVC_STATUS_AVAILABLE", + "STORAGE_VOLUME_PVC_STATUS_RELEASED", + "STORAGE_VOLUME_PVC_STATUS_FAILED" + ], + "default": "STORAGE_VOLUME_PVC_STATUS_UNSPECIFIED", + "title": "StorageVolumePVCStatus is the kubernetes 'phase' of a PVC. Listed as status in cli.\n Refer to: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase" + }, + "infoStorageVolumeReplicaStatus": { + "type": "string", + "enum": [ + "STORAGE_VOLUME_REPLICA_STATUS_UNSPECIFIED", + "STORAGE_VOLUME_REPLICA_STATUS_REBUILDING", + "STORAGE_VOLUME_REPLICA_STATUS_ONLINE", + "STORAGE_VOLUME_REPLICA_STATUS_FAILED", + "STORAGE_VOLUME_REPLICA_STATUS_OFFLINE", + "STORAGE_VOLUME_REPLICA_STATUS_STARTING", + "STORAGE_VOLUME_REPLICA_STATUS_STOPPING" + ], + "default": "STORAGE_VOLUME_REPLICA_STATUS_UNSPECIFIED", + "description": "StorageVolumeReplicaStatus is a higher level status which combines replica and engine\n status to show a simplified view of a replica rebuild state." + }, + "infoStorageVolumeRobustness": { + "type": "string", + "enum": [ + "STORAGE_VOLUME_ROBUSTNESS_UNSPECIFIED", + "STORAGE_VOLUME_ROBUSTNESS_HEALTHY", + "STORAGE_VOLUME_ROBUSTNESS_DEGRADED", + "STORAGE_VOLUME_ROBUSTNESS_FAULTED" + ], + "default": "STORAGE_VOLUME_ROBUSTNESS_UNSPECIFIED", + "title": "StorageVolumeRobustness is the 'robustness' of a replicated csi-driver volume.\n Refer to: https://github.com/longhorn/longhorn-manager/blob/v1.6.2/k8s/pkg/apis/longhorn/v1beta1/volume.go#L25" + }, + "infoStorageVolumeState": { + "type": "string", + "enum": [ + "STORAGE_VOLUME_STATE_UNSPECIFIED", + "STORAGE_VOLUME_STATE_CREATING", + "STORAGE_VOLUME_STATE_ATTACHED", + "STORAGE_VOLUME_STATE_DETACHED", + "STORAGE_VOLUME_STATE_ATTACHING", + "STORAGE_VOLUME_STATE_DETACHING", + "STORAGE_VOLUME_STATE_DELETING" + ], + "default": "STORAGE_VOLUME_STATE_UNSPECIFIED", + "title": "StorageVolumeState is the kubernetes 'state' field of a replicated csi-driver volume.\n Refer to: https://github.com/longhorn/longhorn-manager/blob/v1.6.2/k8s/pkg/apis/longhorn/v1beta1/volume.go#L14" + }, + "infoZInfoKubeCluster": { + "type": "object", + "properties": { + "nodes": { + "type": "array", + "items": { + "$ref": "#/definitions/infoKubeNodeInfo" + }, + "title": "Info message on a list of cluster nodes" + }, + "podNameSpaces": { + "type": "array", + "items": { + "$ref": "#/definitions/infoKubePodNameSpaceInfo" + }, + "title": "Info message on a list of namespaces's pods summary" + }, + "eveApps": { + "type": "array", + "items": { + "$ref": "#/definitions/infoKubeEVEAppPodInfo" + }, + "title": "Info message on a list of EVE applications" + }, + "storage": { + "$ref": "#/definitions/infoKubeStorageInfo", + "title": "Info message on cluster storage" + }, + "clusterId": { + "type": "string", + "description": "Cluster UUID which will match config.EdgeNodeCluster.cluster_id passed\n in to the node by the controller." + }, + "eveVmApps": { + "type": "array", + "items": { + "$ref": "#/definitions/infoKubeVMIInfo" + }, + "title": "Virtual Machines running on the cluster" + } + } + }, + "infoZInfoKubeClusterUpdateStatus": { + "type": "object", + "properties": { + "currentNode": { + "type": "string", + "title": "current_node will have an empty value when no node is in an update" + }, + "component": { + "$ref": "#/definitions/infoKubeComp", + "title": "component currently under update or KUBE_COMP_UNSPECIFIED when no update in progress" + }, + "status": { + "$ref": "#/definitions/infoKubeCompUpdateStatus", + "title": "status of the current component under update, KUBE_COMP_UPDATE_STATUS_UNSPECIFIED when\n no updates in progress" + }, + "error": { + "$ref": "#/definitions/infoErrorInfo", + "title": "Error info in case of failure" + }, + "clusterId": { + "type": "string", + "description": "Cluster UUID which will match config.EdgeNodeCluster.cluster_id passed\n in to the node by the controller." + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "typeUrl": { + "type": "string" + }, + "value": { + "type": "string", + "format": "byte" + } + } + } + }, + "securityDefinitions": { + "BearerToken": { + "type": "apiKey", + "description": "Bearer token for user session", + "name": "Authorization", + "in": "header" + } + }, + "security": [ + { + "BearerToken": [] + } + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://help.zededa.com/" + } +} \ No newline at end of file diff --git a/openapi/zedge_node_service.swagger.json b/openapi/zedge_node_service.swagger.json new file mode 100644 index 0000000..eca6caf --- /dev/null +++ b/openapi/zedge_node_service.swagger.json @@ -0,0 +1,20833 @@ +{ + "swagger": "2.0", + "info": { + "title": "ZEDEDA Edge Node Service", + "description": "The ZEDEDA Edge Node Service is part of ZEDEDA Edge Orchestration Platform. This service enables customers to onboard their edge nodes on ZEDEDA platform and upgrade/restart/monitor them remotely. You can use the ZEDEDA Edge Node Service to provision and manage lifecycle of millions of edge nodes distributed in different geographical locations in a secure and scalable manner.", + "termsOfService": "https://www.zededa.com/terms", + "version": "1.0", + "contact": { + "name": "ZEDEDA API Support", + "url": "https://www.zededa.com/support", + "email": "support@zededa.com" + }, + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.html" + } + }, + "tags": [ + { + "name": "EdgeNodeConfiguration" + }, + { + "name": "EdgeNodeStatus" + }, + { + "name": "ResourceGroupStatus" + }, + { + "name": "ResourceGroup" + }, + { + "name": "HardwareModel" + }, + { + "name": "CertificateEnrollmentProfileConfiguration" + } + ], + "basePath": "/api", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/v1/brands": { + "get": { + "summary": "Query hardware brands", + "description": "Query the hardware brand records.", + "operationId": "HardwareModel_QueryHardwareBrands", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/SysBrands" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "description": "Only summary of the records required", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "namePattern", + "description": "Brand name pattern to be matched.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "originType", + "description": "origin of object\n\n - ORIGIN_UNSPECIFIED: default options, which says no Operation/Invalid Operation\n - ORIGIN_IMPORTED: Object imported from global enterprise.\n - ORIGIN_LOCAL: Objectl created locally.\n - ORIGIN_GLOBAL: Object created in global store,\nto use this type user should have root previlage.\n - ORIGIN_APP_PROFILE_LOCAL: Object created via App profile", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "ORIGIN_UNSPECIFIED", + "ORIGIN_IMPORTED", + "ORIGIN_LOCAL", + "ORIGIN_GLOBAL", + "ORIGIN_APP_PROFILE_LOCAL" + ], + "default": "ORIGIN_UNSPECIFIED" + }, + { + "name": "titlePattern", + "description": "Brand title pattern to be matched.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "HardwareModel" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + }, + "post": { + "summary": "Create hardware brand", + "description": "Create a hardware brand record.", + "operationId": "HardwareModel_CreateHardwareBrand", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this hardware brand record will conflict with an already existing hardware brand record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SysBrand" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "HardwareModel" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/brands/global": { + "get": { + "summary": "Query global hardware brands", + "description": "Query the global hardware brand records.", + "operationId": "HardwareModel_QueryGlobalHardwareBrands", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/SysBrands" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "description": "Only summary of the records required", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "namePattern", + "description": "Brand name pattern to be matched.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "originType", + "description": "origin of object\n\n - ORIGIN_UNSPECIFIED: default options, which says no Operation/Invalid Operation\n - ORIGIN_IMPORTED: Object imported from global enterprise.\n - ORIGIN_LOCAL: Objectl created locally.\n - ORIGIN_GLOBAL: Object created in global store,\nto use this type user should have root previlage.\n - ORIGIN_APP_PROFILE_LOCAL: Object created via App profile", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "ORIGIN_UNSPECIFIED", + "ORIGIN_IMPORTED", + "ORIGIN_LOCAL", + "ORIGIN_GLOBAL", + "ORIGIN_APP_PROFILE_LOCAL" + ], + "default": "ORIGIN_UNSPECIFIED" + }, + { + "name": "titlePattern", + "description": "Brand title pattern to be matched.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "HardwareModel" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/brands/global/id/{id}": { + "get": { + "summary": "Get global hardware brand", + "description": "Get the configuration (without security details) of a global hardware brand record.", + "operationId": "HardwareModel_GetGlobalHardwareBrand", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/SysBrand" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the model.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "enterpriseId", + "description": "deprecated field: EnterpriseId", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "HardwareModel" + ] + } + }, + "/v1/brands/global/name/{name}": { + "get": { + "summary": "Get global hardware brand", + "description": "Get the configuration (without security details) of a global hardware brand record.", + "operationId": "HardwareModel_GetGlobalHardwareBrandByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/SysBrand" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "user defined sys brand name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "enterpriseId", + "description": "deprecated field: EnterpriseId", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "HardwareModel" + ] + } + }, + "/v1/brands/id/{id}": { + "get": { + "summary": "Get hardware brand", + "description": "Get the configuration (without security details) of a hardware brand record.", + "operationId": "HardwareModel_GetHardwareBrand", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/SysBrand" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the model.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "enterpriseId", + "description": "deprecated field: EnterpriseId", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "HardwareModel" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + }, + "delete": { + "summary": "Delete hardware brand", + "description": "Delete a hardware brand record.", + "operationId": "HardwareModel_DeleteHardwareBrand", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the model.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "enterpriseId", + "description": "deprecated field: EnterpriseId", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "HardwareModel" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + }, + "put": { + "summary": "Update hardware brand", + "description": "Update a hardware brand. The usual pattern to update a hardware brand record is to retrieve the record and update with the modified values in a new body to update the hardware brand record.", + "operationId": "HardwareModel_UpdateHardwareBrand", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing hardware brand record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the brand.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "user defined sys brand name", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+" + }, + "title": { + "type": "string", + "description": "user defined title for sys brand", + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+" + }, + "description": { + "type": "string", + "description": "Detailed description of the image.", + "maxLength": 256 + }, + "svg": { + "type": "string", + "description": "Deprecated: base64 encoded string of svg file" + }, + "attr": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Map of " + }, + "state": { + "$ref": "#/definitions/SysModelState", + "description": "Sys Model Status" + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "Object Revision of the sys brand" + }, + "systemMfgName": { + "type": "string", + "description": "System Manufacturer name" + }, + "logo": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Map of which holds the key:url for the logo artifact of the the brand" + }, + "originType": { + "$ref": "#/definitions/Origin", + "description": "origin of object" + } + }, + "description": "SysModel consists of various brand attributes like id, name, title, svg, state, systemMfgName", + "title": "SysBrand payload details", + "required": [ + "name", + "title", + "originType" + ] + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "HardwareModel" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/brands/name/{name}": { + "get": { + "summary": "Get hardware brand", + "description": "Get the configuration (without security details) of a hardware brand record.", + "operationId": "HardwareModel_GetHardwareBrandByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/SysBrand" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "user defined sys brand name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "enterpriseId", + "description": "deprecated field: EnterpriseId", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "HardwareModel" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/ceps": { + "get": { + "summary": "List certificate enrollment profiles", + "description": "List all certificate enrollment profiles with optional filtering and pagination.", + "operationId": "CertificateEnrollmentProfileConfiguration_QueryCEPs", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CEPCommonSCEPProfiles" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "namePattern", + "description": "query param : \"name-pattern\" . Search * namePattern * in name field to filter records", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "summary", + "description": "Only summary of the records required", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "showProjectsList", + "description": "If true, include the list of projects referencing each CEP profile", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "CertificateEnrollmentProfileConfiguration" + ] + }, + "post": { + "summary": "Create a certificate enrollment profile", + "description": "Create a certificate enrollment profile (CEP) for SCEP-based certificate provisioning on edge devices.", + "operationId": "CertificateEnrollmentProfileConfiguration_CreateCEP", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this CEP record will conflict with an already existing CEP record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CEPCommonSCEPProfile" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "CertificateEnrollmentProfileConfiguration" + ] + } + }, + "/v1/ceps/id/{id}": { + "get": { + "summary": "Get certificate enrollment profile by ID", + "description": "Get the configuration of a certificate enrollment profile by its unique ID.", + "operationId": "CertificateEnrollmentProfileConfiguration_GetCEPById", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CEPCommonSCEPProfile" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the CEP profile", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "showProjectsList", + "description": "If true, include the list of projects referencing this CEP profile", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "CertificateEnrollmentProfileConfiguration" + ] + }, + "delete": { + "summary": "Delete a certificate enrollment profile", + "description": "Delete a certificate enrollment profile by its unique ID.", + "operationId": "CertificateEnrollmentProfileConfiguration_DeleteCEP", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the CEP profile", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "showProjectsList", + "description": "If true, include the list of projects referencing this CEP profile", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "CertificateEnrollmentProfileConfiguration" + ] + }, + "put": { + "summary": "Update a certificate enrollment profile", + "description": "Update a certificate enrollment profile. Fields id, name, enterprise_id, and status are immutable and cannot be changed.", + "operationId": "CertificateEnrollmentProfileConfiguration_UpdateCEP", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because of a version conflict with the current state of the resource.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System-generated unique identifier (UUID)", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "User-defined unique name for the profile", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+" + }, + "title": { + "type": "string", + "description": "Human-readable display title", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+" + }, + "description": { + "type": "string", + "description": "Detailed description of the profile purpose", + "maxLength": 256 + }, + "scepUrl": { + "type": "string", + "description": "Full SCEP server URL including scheme, host, and path (e.g., https://ca.example.com/scep)" + }, + "useControllerProxy": { + "type": "boolean", + "description": "If true, SCEP requests are routed through the controller proxy; if false, device connects directly to SCEP server" + }, + "secret": { + "$ref": "#/definitions/CEPCommonSCEPProfileSecrets", + "description": "Write-only secret fields (challenge password). Not returned in GET responses." + }, + "encryptedSecrets": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Encrypted secret data (set by server, do not modify)" + }, + "cryptoKey": { + "type": "string", + "description": "Encryption key reference (set by server, do not modify)" + }, + "caCertPem": { + "type": "array", + "items": { + "type": "string", + "format": "byte" + }, + "description": "PEM-encoded trusted CA certificates for SCEP server validation (per RFC8894 section 2.2)" + }, + "csrProfile": { + "$ref": "#/definitions/CEPCommonCSRProfile", + "description": "Certificate Signing Request configuration including subject DN, SANs, and key parameters" + }, + "enterpriseId": { + "type": "string", + "description": "Enterprise ID owning this profile", + "readOnly": true + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "Object revision information", + "readOnly": true + }, + "projectsList": { + "type": "array", + "items": { + "$ref": "#/definitions/CEPCommonProjectReference" + }, + "description": "Projects referencing this CEP profile (populated only when showProjectsList=true)", + "readOnly": true + }, + "profileInUse": { + "type": "boolean", + "description": "True if linked to at least one project, false otherwise", + "readOnly": true + } + }, + "description": "SCEP Certificate Enrollment Profile for obtaining certificates from a SCEP server", + "title": "SCEP Profile", + "required": [ + "name", + "scepUrl", + "caCertPem", + "csrProfile" + ] + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "CertificateEnrollmentProfileConfiguration" + ] + } + }, + "/v1/ceps/name/{name}": { + "get": { + "summary": "Get certificate enrollment profile by name", + "description": "Get the configuration of a certificate enrollment profile by its unique name.", + "operationId": "CertificateEnrollmentProfileConfiguration_GetCEPByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CEPCommonSCEPProfile" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "User defined name of the CEP profile", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "CertificateEnrollmentProfileConfiguration" + ] + } + }, + "/v1/devices": { + "get": { + "summary": "Query edge nodes", + "description": "Query the edge node records.", + "operationId": "EdgeNodeConfiguration_QueryEdgeNodes", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeviceConfigList" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "description": "Summary flag", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "namePattern", + "description": "name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "projectName", + "description": "project name", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "projectNamePattern", + "description": "project name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "adminState", + "description": "admin state of the device\n\n - CREATED: Entity Created in the controller\n - DELETED: Entity Deleted in the controller\n - ACTIVE: Entity Activated in the controller\n - INACTIVE: Entity Deactivated in the controller\n - REGISTERED: Specific to Edge-node - Edge-node Registered with the controller\n - ARCHIVED: Entity Archived in the controller", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "CREATED", + "DELETED", + "ACTIVE", + "INACTIVE", + "REGISTERED", + "ARCHIVED" + ], + "default": "UNSPECIFIED" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "fields", + "description": "Fields to select: id, name, title, description, tags, utype, projectId, serialno, adminState, modelId, clusterID, baseImage, interfaces, debugKnob", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "clusterName", + "description": "cluster name", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "clusterNamePattern", + "description": "cluster name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "createdByPattern", + "description": "username pattern who created the device", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "titlePattern", + "description": "title pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + }, + "post": { + "summary": "Create edge node", + "description": "Create an edge node record.", + "operationId": "EdgeNodeConfiguration_CreateEdgeNode", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this edge node record will conflict with an already existing edge node record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DeviceConfig" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/id/{id}": { + "get": { + "summary": "Get edge node", + "description": "Get the configuration (without security details) of an edge node record.", + "operationId": "EdgeNodeConfiguration_GetEdgeNode", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeviceConfig" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "system generated unique id for a device", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + }, + "delete": { + "summary": "Delete edge node", + "description": "Delete an edge node record.", + "operationId": "EdgeNodeConfiguration_DeleteEdgeNode", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "system generated unique id for a device", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + }, + "put": { + "summary": "Update edge node", + "description": "Update an edge node record. The usual pattern to update an edge node record is to retrieve the record and update with the modified values in a new body to update the edge node record.", + "operationId": "EdgeNodeConfiguration_UpdateEdgeNode", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing edge node record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "system generated unique id for a device", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "user specified device name" + }, + "title": { + "type": "string", + "description": "user specified title" + }, + "description": { + "type": "string", + "description": "user specified description" + }, + "revision": { + "type": "object", + "$ref": "#/definitions/ObjectRevision", + "description": "Object revision details" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "utype": { + "type": "string", + "$ref": "#/definitions/ModelArchType", + "description": "device model arch type" + }, + "projectId": { + "type": "string", + "description": "project name" + }, + "serialno": { + "type": "string", + "description": "Device serial number" + }, + "location": { + "type": "string", + "description": "Device location: deprecated" + }, + "cpu": { + "type": "number", + "format": "int64", + "description": "CPU (configured values)" + }, + "thread": { + "type": "number", + "format": "int64", + "description": "Threads" + }, + "memory": { + "type": "number", + "format": "int64", + "description": "Device memory in MBs" + }, + "storage": { + "type": "number", + "format": "int64", + "description": "Device storage in GBs" + }, + "onboarding": { + "type": "object", + "$ref": "#/definitions/DeviceCerts", + "description": "Device level certificates used while onboarding" + }, + "identity": { + "type": "string", + "format": "byte", + "description": "Device identity" + }, + "obkey": { + "type": "string", + "description": "Object key" + }, + "token": { + "type": "string", + "description": "Single use token" + }, + "clientIp": { + "type": "string", + "description": "Client IP" + }, + "dlisp": { + "type": "object", + "$ref": "#/definitions/DeviceLisp", + "description": "device Lisp" + }, + "clusterID": { + "type": "string", + "description": "System defined universally unique clusterInstance ID, unique across the enterprise.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "adminState": { + "type": "object", + "$ref": "#/definitions/AdminState", + "description": "administrative state of device" + }, + "resetCounter": { + "type": "number", + "format": "int64", + "description": "devicereset counter" + }, + "resetTime": { + "type": "string", + "description": "device reset time" + }, + "baseImage": { + "type": "array", + "items": { + "$ref": "#/definitions/BaseOSImage" + }, + "description": "base images" + }, + "modelId": { + "type": "string", + "description": "device model" + }, + "configItem": { + "type": "array", + "items": { + "$ref": "#/definitions/EDConfigItem" + }, + "description": "ED configurations" + }, + "deprecated": { + "type": "string", + "description": "deprecated field" + }, + "vlanAdapters": { + "type": "array", + "items": { + "$ref": "#/definitions/vlanAdapter" + }, + "description": "A list of VLAN sub-interfaces configured for EVE management traffic and for local network instances" + }, + "interfaces": { + "type": "array", + "items": { + "$ref": "#/definitions/SysInterface" + }, + "description": "System Interface list" + }, + "devLocation": { + "type": "object", + "$ref": "#/definitions/GeoLocation", + "description": "User specified geo location" + }, + "sitePictures": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Site captured pictures" + }, + "assetId": { + "type": "string", + "description": "Device asset ID" + }, + "baseOsRetryCounter": { + "type": "number", + "format": "int64", + "description": "device baseos retry counter" + }, + "baseOsRetryTime": { + "type": "string", + "description": "device baseos retry time" + }, + "debugKnob": { + "type": "object", + "$ref": "#/definitions/DebugKnobDetail", + "description": "debug knob details for the device" + }, + "defaultNetInst": { + "type": "object", + "$ref": "#/definitions/NetInstConfig", + "description": "default network instance details" + }, + "preparePowerOffCounter": { + "type": "number", + "format": "int64", + "description": "prepare poweroff counter" + }, + "preparePowerOffTime": { + "type": "string", + "description": "prepare poweroff time" + }, + "edgeviewconfig": { + "type": "object", + "$ref": "#/definitions/EdgeviewCfg", + "description": "edgeview configuration for device" + }, + "generateSoftSerial": { + "type": "boolean", + "description": "indicates whether a soft serial should be generated; it will work ONLY when device is created" + }, + "deploymentTag": { + "type": "string", + "description": "user defined tag for the device, which is used while deploying policies." + }, + "localOperatorConsoleURL": { + "type": "string", + "description": "local operator console url", + "title": "will be deprecated 73" + }, + "configLock": { + "$ref": "#/definitions/DeviceConfigLock", + "description": "device configuration lock setting" + }, + "edgeviewAllow": { + "type": "boolean", + "description": "Allow device to enable Edgeview", + "title": "To support edge view policy in deployments, adding a new column in device table" + }, + "clusterInterface": { + "type": "string", + "description": "Cluster Interface", + "title": "The following two fields are related to the edge node cluster configuration" + }, + "edgeNodeCluster": { + "type": "object", + "$ref": "#/definitions/EdgeNodeClusterConfig", + "description": "Edge Node Cluster Configuration" + }, + "baseOsForceUpgrade": { + "type": "boolean", + "description": "Force upgrade base OS" + }, + "project": { + "type": "object", + "$ref": "#/definitions/ProjectInfo", + "description": "Project specific info" + }, + "model": { + "type": "object", + "$ref": "#/definitions/ModelInfo", + "description": "Model specific info" + }, + "edgeSyncConfig": { + "type": "object", + "$ref": "#/definitions/EdgeSyncConfig", + "description": "edge sync config" + }, + "pcrPolicy": { + "$ref": "#/definitions/PolicyConfig", + "description": "PCR policy for TPM key sealing on this specific device (overrides project policy)" + }, + "bondAdapter": { + "type": "array", + "items": { + "$ref": "#/definitions/BondAdapter" + }, + "description": "A list of bond interfaces" + } + }, + "description": "Device Configuration request payload holds the device properties", + "title": "Device Configuration payload detail", + "required": [ + "name", + "title", + "projectId", + "modelId" + ] + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/id/{id}/activate": { + "put": { + "summary": "Activate edge node.", + "description": "Activate an edge node. If already in active state no action is taken.", + "operationId": "EdgeNodeConfiguration_ActivateEdgeNode", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing edge node record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "system generated unique id for a device", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/id/{id}/apply": { + "put": { + "summary": "update EVE image on edge node", + "description": "Update EVE image on edge node, if edge node is already running the latest EVE image no action is taken.", + "operationId": "EdgeNodeConfiguration_UpdateEdgeNodeBaseOS", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing edge node record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "system generated unique id for a device", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "user specified device name" + }, + "title": { + "type": "string", + "description": "user specified title" + }, + "description": { + "type": "string", + "description": "user specified description" + }, + "revision": { + "type": "object", + "$ref": "#/definitions/ObjectRevision", + "description": "Object revision details" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "utype": { + "type": "string", + "$ref": "#/definitions/ModelArchType", + "description": "device model arch type" + }, + "projectId": { + "type": "string", + "description": "project name" + }, + "serialno": { + "type": "string", + "description": "Device serial number" + }, + "location": { + "type": "string", + "description": "Device location: deprecated" + }, + "cpu": { + "type": "number", + "format": "int64", + "description": "CPU (configured values)" + }, + "thread": { + "type": "number", + "format": "int64", + "description": "Threads" + }, + "memory": { + "type": "number", + "format": "int64", + "description": "Device memory in MBs" + }, + "storage": { + "type": "number", + "format": "int64", + "description": "Device storage in GBs" + }, + "onboarding": { + "type": "object", + "$ref": "#/definitions/DeviceCerts", + "description": "Device level certificates used while onboarding" + }, + "identity": { + "type": "string", + "format": "byte", + "description": "Device identity" + }, + "obkey": { + "type": "string", + "description": "Object key" + }, + "token": { + "type": "string", + "description": "Single use token" + }, + "clientIp": { + "type": "string", + "description": "Client IP" + }, + "dlisp": { + "type": "object", + "$ref": "#/definitions/DeviceLisp", + "description": "device Lisp" + }, + "clusterID": { + "type": "string", + "description": "System defined universally unique clusterInstance ID, unique across the enterprise.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "adminState": { + "type": "object", + "$ref": "#/definitions/AdminState", + "description": "administrative state of device" + }, + "resetCounter": { + "type": "number", + "format": "int64", + "description": "devicereset counter" + }, + "resetTime": { + "type": "string", + "description": "device reset time" + }, + "baseImage": { + "type": "array", + "items": { + "$ref": "#/definitions/BaseOSImage" + }, + "description": "base images" + }, + "modelId": { + "type": "string", + "description": "device model" + }, + "configItem": { + "type": "array", + "items": { + "$ref": "#/definitions/EDConfigItem" + }, + "description": "ED configurations" + }, + "deprecated": { + "type": "string", + "description": "deprecated field" + }, + "vlanAdapters": { + "type": "array", + "items": { + "$ref": "#/definitions/vlanAdapter" + }, + "description": "A list of VLAN sub-interfaces configured for EVE management traffic and for local network instances" + }, + "interfaces": { + "type": "array", + "items": { + "$ref": "#/definitions/SysInterface" + }, + "description": "System Interface list" + }, + "devLocation": { + "type": "object", + "$ref": "#/definitions/GeoLocation", + "description": "User specified geo location" + }, + "sitePictures": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Site captured pictures" + }, + "assetId": { + "type": "string", + "description": "Device asset ID" + }, + "baseOsRetryCounter": { + "type": "number", + "format": "int64", + "description": "device baseos retry counter" + }, + "baseOsRetryTime": { + "type": "string", + "description": "device baseos retry time" + }, + "debugKnob": { + "type": "object", + "$ref": "#/definitions/DebugKnobDetail", + "description": "debug knob details for the device" + }, + "defaultNetInst": { + "type": "object", + "$ref": "#/definitions/NetInstConfig", + "description": "default network instance details" + }, + "preparePowerOffCounter": { + "type": "number", + "format": "int64", + "description": "prepare poweroff counter" + }, + "preparePowerOffTime": { + "type": "string", + "description": "prepare poweroff time" + }, + "edgeviewconfig": { + "type": "object", + "$ref": "#/definitions/EdgeviewCfg", + "description": "edgeview configuration for device" + }, + "generateSoftSerial": { + "type": "boolean", + "description": "indicates whether a soft serial should be generated; it will work ONLY when device is created" + }, + "deploymentTag": { + "type": "string", + "description": "user defined tag for the device, which is used while deploying policies." + }, + "localOperatorConsoleURL": { + "type": "string", + "description": "local operator console url", + "title": "will be deprecated 73" + }, + "configLock": { + "$ref": "#/definitions/DeviceConfigLock", + "description": "device configuration lock setting" + }, + "edgeviewAllow": { + "type": "boolean", + "description": "Allow device to enable Edgeview", + "title": "To support edge view policy in deployments, adding a new column in device table" + }, + "clusterInterface": { + "type": "string", + "description": "Cluster Interface", + "title": "The following two fields are related to the edge node cluster configuration" + }, + "edgeNodeCluster": { + "type": "object", + "$ref": "#/definitions/EdgeNodeClusterConfig", + "description": "Edge Node Cluster Configuration" + }, + "baseOsForceUpgrade": { + "type": "boolean", + "description": "Force upgrade base OS" + }, + "project": { + "type": "object", + "$ref": "#/definitions/ProjectInfo", + "description": "Project specific info" + }, + "model": { + "type": "object", + "$ref": "#/definitions/ModelInfo", + "description": "Model specific info" + }, + "edgeSyncConfig": { + "type": "object", + "$ref": "#/definitions/EdgeSyncConfig", + "description": "edge sync config" + }, + "pcrPolicy": { + "$ref": "#/definitions/PolicyConfig", + "description": "PCR policy for TPM key sealing on this specific device (overrides project policy)" + }, + "bondAdapter": { + "type": "array", + "items": { + "$ref": "#/definitions/BondAdapter" + }, + "description": "A list of bond interfaces" + } + }, + "description": "Device Configuration request payload holds the device properties", + "title": "Device Configuration payload detail", + "required": [ + "name", + "title", + "projectId", + "modelId" + ] + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/id/{id}/attestation": { + "get": { + "summary": "Get edge node PCR attestation", + "description": "Get the PCR attestation of an edge node record if present.", + "operationId": "EdgeNodeConfiguration_GetEdgeNodeAttestation", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeviceConfig" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "system generated unique id for a device", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/id/{id}/baseos/upgrade/retry": { + "put": { + "summary": "Retry baseos upgrade on the edge node.", + "description": "Retry baseos upgrade on the edge node.", + "operationId": "EdgeNodeConfiguration_BaseOsUpgradeRetryEdgeNode", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing edge node record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "system generated unique id for a device", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/id/{id}/deactivate": { + "put": { + "summary": "Deactivate edge node.", + "description": "Deactivate an edge node. If already in inactive state no action is taken.", + "operationId": "EdgeNodeConfiguration_DeActivateEdgeNode", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing edge node record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "system generated unique id for a device", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/id/{id}/debug/disable": { + "put": { + "summary": "Stop debug mode on the edge node.", + "description": "Stop debug mode on the edge node.", + "operationId": "EdgeNodeConfiguration_StopDebugEdgeNode", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing edge node record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "system generated unique id for a device", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/id/{id}/debug/enable": { + "put": { + "summary": "Start debug mode on the edge node.", + "description": "Start debug mode on the edge node.", + "operationId": "EdgeNodeConfiguration_StartDebugEdgeNode", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing edge node record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "system generated unique id for a device", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "debugKnob": { + "type": "boolean", + "description": "debug knob flag" + }, + "expiry": { + "type": "string", + "format": "uint64", + "description": "debug expiry time in minutes" + }, + "expired": { + "type": "boolean", + "description": "debug knob expiry status flag" + } + }, + "description": "Device debug knob configuration request payload holds the device debug mode properties", + "title": "Device debug knob configuration" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/id/{id}/edgeview/clientscript": { + "get": { + "summary": "Get edgeview client script of the edge node.", + "description": "Get edgeview client script of the edge node after edgeview is started.", + "operationId": "EdgeNodeConfiguration_GetEdgeviewClientScript", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "system generated unique id for a device", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/id/{id}/edgeview/disable": { + "put": { + "summary": "Stop edgeview on the edge node.", + "description": "Stop edgeview on the edge node.", + "operationId": "EdgeNodeConfiguration_StopEdgeviewEdgeNode", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing edge node record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "system generated unique id for a device", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/id/{id}/edgeview/enable": { + "put": { + "summary": "Start edgeview on the edge node.", + "description": "Start edgeview on the edge node.", + "operationId": "EdgeNodeConfiguration_StartEdgeviewEdgeNode", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing edge node record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "system generated unique id for a device", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "debugKnob": { + "type": "boolean", + "description": "debug knob flag" + }, + "expiry": { + "type": "string", + "format": "uint64", + "description": "debug expiry time in minutes" + }, + "expired": { + "type": "boolean", + "description": "debug knob expiry status flag" + } + }, + "description": "Device debug knob configuration request payload holds the device debug mode properties", + "title": "Device debug knob configuration" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/id/{id}/offboard": { + "put": { + "summary": "Offoard the edge-ndoe", + "description": "The API is used for offbaording the device from the enterprise", + "operationId": "EdgeNodeConfiguration_Offboard", + "responses": { + "200": { + "description": "Success. The API gateway offboarded the edge-node successfully..", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "system generated unique id for a device", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/id/{id}/onboarding": { + "get": { + "summary": "Get edge node onboarding certificate", + "description": "Get the onboarding certificate of an edge node record if present, only valid for edge nodes that have not been onboarded.", + "operationId": "EdgeNodeConfiguration_GetEdgeNodeOnboarding", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeviceConfig" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "system generated unique id for a device", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/id/{id}/preparepoweroff": { + "put": { + "summary": "Shutdown applications on edge node.", + "description": "Shutdown application instance on edge node in preparation for power off and equipment movement.", + "operationId": "EdgeNodeConfiguration_PreparePowerOff", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing edge node record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "system generated unique id for a device", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/id/{id}/publish": { + "put": { + "summary": "update EVE image on edge node", + "description": "Update EVE image on edge node, if edge node is already running the latest EVE image no action is taken.", + "operationId": "EdgeNodeConfiguration_UpdateEdgeNodeBaseOS2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing edge node record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "system generated unique id for a device", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "user specified device name" + }, + "title": { + "type": "string", + "description": "user specified title" + }, + "description": { + "type": "string", + "description": "user specified description" + }, + "revision": { + "type": "object", + "$ref": "#/definitions/ObjectRevision", + "description": "Object revision details" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "utype": { + "type": "string", + "$ref": "#/definitions/ModelArchType", + "description": "device model arch type" + }, + "projectId": { + "type": "string", + "description": "project name" + }, + "serialno": { + "type": "string", + "description": "Device serial number" + }, + "location": { + "type": "string", + "description": "Device location: deprecated" + }, + "cpu": { + "type": "number", + "format": "int64", + "description": "CPU (configured values)" + }, + "thread": { + "type": "number", + "format": "int64", + "description": "Threads" + }, + "memory": { + "type": "number", + "format": "int64", + "description": "Device memory in MBs" + }, + "storage": { + "type": "number", + "format": "int64", + "description": "Device storage in GBs" + }, + "onboarding": { + "type": "object", + "$ref": "#/definitions/DeviceCerts", + "description": "Device level certificates used while onboarding" + }, + "identity": { + "type": "string", + "format": "byte", + "description": "Device identity" + }, + "obkey": { + "type": "string", + "description": "Object key" + }, + "token": { + "type": "string", + "description": "Single use token" + }, + "clientIp": { + "type": "string", + "description": "Client IP" + }, + "dlisp": { + "type": "object", + "$ref": "#/definitions/DeviceLisp", + "description": "device Lisp" + }, + "clusterID": { + "type": "string", + "description": "System defined universally unique clusterInstance ID, unique across the enterprise.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "adminState": { + "type": "object", + "$ref": "#/definitions/AdminState", + "description": "administrative state of device" + }, + "resetCounter": { + "type": "number", + "format": "int64", + "description": "devicereset counter" + }, + "resetTime": { + "type": "string", + "description": "device reset time" + }, + "baseImage": { + "type": "array", + "items": { + "$ref": "#/definitions/BaseOSImage" + }, + "description": "base images" + }, + "modelId": { + "type": "string", + "description": "device model" + }, + "configItem": { + "type": "array", + "items": { + "$ref": "#/definitions/EDConfigItem" + }, + "description": "ED configurations" + }, + "deprecated": { + "type": "string", + "description": "deprecated field" + }, + "vlanAdapters": { + "type": "array", + "items": { + "$ref": "#/definitions/vlanAdapter" + }, + "description": "A list of VLAN sub-interfaces configured for EVE management traffic and for local network instances" + }, + "interfaces": { + "type": "array", + "items": { + "$ref": "#/definitions/SysInterface" + }, + "description": "System Interface list" + }, + "devLocation": { + "type": "object", + "$ref": "#/definitions/GeoLocation", + "description": "User specified geo location" + }, + "sitePictures": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Site captured pictures" + }, + "assetId": { + "type": "string", + "description": "Device asset ID" + }, + "baseOsRetryCounter": { + "type": "number", + "format": "int64", + "description": "device baseos retry counter" + }, + "baseOsRetryTime": { + "type": "string", + "description": "device baseos retry time" + }, + "debugKnob": { + "type": "object", + "$ref": "#/definitions/DebugKnobDetail", + "description": "debug knob details for the device" + }, + "defaultNetInst": { + "type": "object", + "$ref": "#/definitions/NetInstConfig", + "description": "default network instance details" + }, + "preparePowerOffCounter": { + "type": "number", + "format": "int64", + "description": "prepare poweroff counter" + }, + "preparePowerOffTime": { + "type": "string", + "description": "prepare poweroff time" + }, + "edgeviewconfig": { + "type": "object", + "$ref": "#/definitions/EdgeviewCfg", + "description": "edgeview configuration for device" + }, + "generateSoftSerial": { + "type": "boolean", + "description": "indicates whether a soft serial should be generated; it will work ONLY when device is created" + }, + "deploymentTag": { + "type": "string", + "description": "user defined tag for the device, which is used while deploying policies." + }, + "localOperatorConsoleURL": { + "type": "string", + "description": "local operator console url", + "title": "will be deprecated 73" + }, + "configLock": { + "$ref": "#/definitions/DeviceConfigLock", + "description": "device configuration lock setting" + }, + "edgeviewAllow": { + "type": "boolean", + "description": "Allow device to enable Edgeview", + "title": "To support edge view policy in deployments, adding a new column in device table" + }, + "clusterInterface": { + "type": "string", + "description": "Cluster Interface", + "title": "The following two fields are related to the edge node cluster configuration" + }, + "edgeNodeCluster": { + "type": "object", + "$ref": "#/definitions/EdgeNodeClusterConfig", + "description": "Edge Node Cluster Configuration" + }, + "baseOsForceUpgrade": { + "type": "boolean", + "description": "Force upgrade base OS" + }, + "project": { + "type": "object", + "$ref": "#/definitions/ProjectInfo", + "description": "Project specific info" + }, + "model": { + "type": "object", + "$ref": "#/definitions/ModelInfo", + "description": "Model specific info" + }, + "edgeSyncConfig": { + "type": "object", + "$ref": "#/definitions/EdgeSyncConfig", + "description": "edge sync config" + }, + "pcrPolicy": { + "$ref": "#/definitions/PolicyConfig", + "description": "PCR policy for TPM key sealing on this specific device (overrides project policy)" + }, + "bondAdapter": { + "type": "array", + "items": { + "$ref": "#/definitions/BondAdapter" + }, + "description": "A list of bond interfaces" + } + }, + "description": "Device Configuration request payload holds the device properties", + "title": "Device Configuration payload detail", + "required": [ + "name", + "title", + "projectId", + "modelId" + ] + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/id/{id}/reboot": { + "put": { + "summary": "Reboot edge node.", + "description": "Reboot an edge node remotely. This operation triggers reboot event. Please check bla-bla for device reboot status.", + "operationId": "EdgeNodeConfiguration_Reboot", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing edge node record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "system generated unique id for a device", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/id/{id}/status": { + "get": { + "summary": "Get edge node status", + "description": "Get the status of an edge node as reported by the edge node itself", + "operationId": "EdgeNodeStatus_GetEdgeNodeStatus", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeviceStatusMsg" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/id/{id}/status/edgeview": { + "get": { + "summary": "Get edge node edgeview status", + "description": "Get the edgeview status of an edge node as reported by the edge node itself", + "operationId": "EdgeNodeStatus_GetEdgeNodeEdgeviewStatus", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeviceRawMetrics" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/id/{id}/status/info": { + "get": { + "summary": "Get edge node info", + "description": "Get the info of an edge node as reported by the edge node itself", + "operationId": "EdgeNodeStatus_GetEdgeNodeInfo", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeviceInfoMsg" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/id/{id}/status/metrics/raw": { + "get": { + "summary": "Get edge node raw status", + "description": "Get the raw status of an edge node as reported by the edge node itself", + "operationId": "EdgeNodeStatus_GetEdgeNodeRawStatus", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeviceRawMetrics" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/id/{id}/suimage": { + "get": { + "summary": "Get edge node single-use EVE image details", + "description": "Get details of a single use EVE image for an edge node.", + "operationId": "EdgeNodeConfiguration_GetEdgeNodeSingleUseEVEImage", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeviceSingleUseImageResp" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + }, + "post": { + "summary": "Create edge node single-use EVE image", + "description": "Create a single use EVE image for an edge node.", + "operationId": "EdgeNodeConfiguration_CreateEdgeNodeSingleUseEVEImage", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this edge node record will conflict with an already existing edge node record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "unique id for a device", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "imageTag": { + "type": "string", + "description": "eve image tag to use", + "title": "EVE image tag (e.g. '12.2.1-kvm-amd64')" + }, + "imageType": { + "type": "object", + "$ref": "#/definitions/DeviceGenerateImageType", + "description": "image type", + "title": "Default: installer" + }, + "installDisk": { + "type": "string", + "description": "set particular disk to install EVE (default: use any free disk found)", + "title": "EVE installation disk (e.g. 'sda')" + }, + "persistDisk": { + "type": "string", + "description": "set particular disk to use for persistent data (volumes, logs, etc.).", + "title": "EVE persist disk (e.g. 'sdb')" + }, + "archVariant": { + "type": "object", + "$ref": "#/definitions/DeviceGenerateImageArchVariant", + "description": "default: Generic", + "title": "Architecture type fpr ARM images" + } + }, + "description": "Device Generate Single-use EVE Image config payload holds the device properties for generating a single-use EVE image", + "title": "Device Generate Single-use EVE Image config", + "required": [ + "imageTag", + "imageType" + ] + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/id/{id}/suimage/link": { + "get": { + "summary": "Get edge node single-use EVE image download link", + "description": "Get download link of a single use EVE image for an edge node.", + "operationId": "EdgeNodeConfiguration_GetEdgeNodeSingleUseEVEImageDownloadLink", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeviceSingleUseImageDownloadLinkResp" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/id/{id}/unpublish": { + "put": { + "summary": "update EVE image on edge node", + "description": "Update EVE image on edge node, if edge node is already running the latest EVE image no action is taken.", + "operationId": "EdgeNodeConfiguration_UpdateEdgeNodeBaseOS3", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing edge node record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "system generated unique id for a device", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "user specified device name" + }, + "title": { + "type": "string", + "description": "user specified title" + }, + "description": { + "type": "string", + "description": "user specified description" + }, + "revision": { + "type": "object", + "$ref": "#/definitions/ObjectRevision", + "description": "Object revision details" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "utype": { + "type": "string", + "$ref": "#/definitions/ModelArchType", + "description": "device model arch type" + }, + "projectId": { + "type": "string", + "description": "project name" + }, + "serialno": { + "type": "string", + "description": "Device serial number" + }, + "location": { + "type": "string", + "description": "Device location: deprecated" + }, + "cpu": { + "type": "number", + "format": "int64", + "description": "CPU (configured values)" + }, + "thread": { + "type": "number", + "format": "int64", + "description": "Threads" + }, + "memory": { + "type": "number", + "format": "int64", + "description": "Device memory in MBs" + }, + "storage": { + "type": "number", + "format": "int64", + "description": "Device storage in GBs" + }, + "onboarding": { + "type": "object", + "$ref": "#/definitions/DeviceCerts", + "description": "Device level certificates used while onboarding" + }, + "identity": { + "type": "string", + "format": "byte", + "description": "Device identity" + }, + "obkey": { + "type": "string", + "description": "Object key" + }, + "token": { + "type": "string", + "description": "Single use token" + }, + "clientIp": { + "type": "string", + "description": "Client IP" + }, + "dlisp": { + "type": "object", + "$ref": "#/definitions/DeviceLisp", + "description": "device Lisp" + }, + "clusterID": { + "type": "string", + "description": "System defined universally unique clusterInstance ID, unique across the enterprise.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "adminState": { + "type": "object", + "$ref": "#/definitions/AdminState", + "description": "administrative state of device" + }, + "resetCounter": { + "type": "number", + "format": "int64", + "description": "devicereset counter" + }, + "resetTime": { + "type": "string", + "description": "device reset time" + }, + "baseImage": { + "type": "array", + "items": { + "$ref": "#/definitions/BaseOSImage" + }, + "description": "base images" + }, + "modelId": { + "type": "string", + "description": "device model" + }, + "configItem": { + "type": "array", + "items": { + "$ref": "#/definitions/EDConfigItem" + }, + "description": "ED configurations" + }, + "deprecated": { + "type": "string", + "description": "deprecated field" + }, + "vlanAdapters": { + "type": "array", + "items": { + "$ref": "#/definitions/vlanAdapter" + }, + "description": "A list of VLAN sub-interfaces configured for EVE management traffic and for local network instances" + }, + "interfaces": { + "type": "array", + "items": { + "$ref": "#/definitions/SysInterface" + }, + "description": "System Interface list" + }, + "devLocation": { + "type": "object", + "$ref": "#/definitions/GeoLocation", + "description": "User specified geo location" + }, + "sitePictures": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Site captured pictures" + }, + "assetId": { + "type": "string", + "description": "Device asset ID" + }, + "baseOsRetryCounter": { + "type": "number", + "format": "int64", + "description": "device baseos retry counter" + }, + "baseOsRetryTime": { + "type": "string", + "description": "device baseos retry time" + }, + "debugKnob": { + "type": "object", + "$ref": "#/definitions/DebugKnobDetail", + "description": "debug knob details for the device" + }, + "defaultNetInst": { + "type": "object", + "$ref": "#/definitions/NetInstConfig", + "description": "default network instance details" + }, + "preparePowerOffCounter": { + "type": "number", + "format": "int64", + "description": "prepare poweroff counter" + }, + "preparePowerOffTime": { + "type": "string", + "description": "prepare poweroff time" + }, + "edgeviewconfig": { + "type": "object", + "$ref": "#/definitions/EdgeviewCfg", + "description": "edgeview configuration for device" + }, + "generateSoftSerial": { + "type": "boolean", + "description": "indicates whether a soft serial should be generated; it will work ONLY when device is created" + }, + "deploymentTag": { + "type": "string", + "description": "user defined tag for the device, which is used while deploying policies." + }, + "localOperatorConsoleURL": { + "type": "string", + "description": "local operator console url", + "title": "will be deprecated 73" + }, + "configLock": { + "$ref": "#/definitions/DeviceConfigLock", + "description": "device configuration lock setting" + }, + "edgeviewAllow": { + "type": "boolean", + "description": "Allow device to enable Edgeview", + "title": "To support edge view policy in deployments, adding a new column in device table" + }, + "clusterInterface": { + "type": "string", + "description": "Cluster Interface", + "title": "The following two fields are related to the edge node cluster configuration" + }, + "edgeNodeCluster": { + "type": "object", + "$ref": "#/definitions/EdgeNodeClusterConfig", + "description": "Edge Node Cluster Configuration" + }, + "baseOsForceUpgrade": { + "type": "boolean", + "description": "Force upgrade base OS" + }, + "project": { + "type": "object", + "$ref": "#/definitions/ProjectInfo", + "description": "Project specific info" + }, + "model": { + "type": "object", + "$ref": "#/definitions/ModelInfo", + "description": "Model specific info" + }, + "edgeSyncConfig": { + "type": "object", + "$ref": "#/definitions/EdgeSyncConfig", + "description": "edge sync config" + }, + "pcrPolicy": { + "$ref": "#/definitions/PolicyConfig", + "description": "PCR policy for TPM key sealing on this specific device (overrides project policy)" + }, + "bondAdapter": { + "type": "array", + "items": { + "$ref": "#/definitions/BondAdapter" + }, + "description": "A list of bond interfaces" + } + }, + "description": "Device Configuration request payload holds the device properties", + "title": "Device Configuration payload detail", + "required": [ + "name", + "title", + "projectId", + "modelId" + ] + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/id/{objid}/events": { + "get": { + "summary": "Get edge node events by id", + "description": "Get configuration and status events of an edge node by id.", + "operationId": "EdgeNodeStatus_GetEdgeNodeEvents", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/EventQueryResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "objid", + "description": "Object id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "startTime", + "description": "start time in timestamp", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "description": "end time", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "severity", + "description": "severity", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "resource", + "description": "resource", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/id/{objid}/timeSeries/{mType}": { + "get": { + "summary": "Get edge node resource usage timeline", + "description": "Get the resource usage timeline of an edge node", + "operationId": "EdgeNodeStatus_GetEdgeNodeResourceMetricsById", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/MetricQueryResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "objid", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "mType", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "UNSPECIFIED", + "CPU_TOTAL", + "CPU_USAGE", + "MEMORY_TOTAL", + "MEMORY_UTILIZATION", + "NETWORK_TOTAL", + "NETWORK_RATES", + "EVENTS_COUNT", + "STORAGE_UTILIZATION", + "STORAGE_IO_ZPOOL", + "STORAGE_IO_ZVOL" + ] + }, + { + "name": "startTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "interval", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/interfaces/tags": { + "get": { + "summary": "Query device interface tags", + "description": "Device Interface tags LIST API is to fetch the interfaces tags attached to a device.", + "operationId": "EdgeNodeConfiguration_GetDeviceInterfaceTags", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ObjectTagsList" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/name/{name}": { + "get": { + "summary": "Get edge node by name", + "description": "Get the configuration (without security details) of an edge node record.", + "operationId": "EdgeNodeConfiguration_GetEdgeNodeByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeviceConfig" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "user defined device name for a device", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/name/{name}/status": { + "get": { + "summary": "Get edge node status", + "description": "Get the status of an edge node as reported by the edge node itself", + "operationId": "EdgeNodeStatus_GetEdgeNodeStatusByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeviceStatusMsg" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/name/{name}/status/edgeview": { + "get": { + "summary": "Get edge node edgeview status by edge node name", + "description": "Get the edgeview status of an edge node as reported by the edge node itself", + "operationId": "EdgeNodeStatus_GetEdgeNodeEdgeviewStatusByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeviceRawMetrics" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/name/{name}/status/info": { + "get": { + "summary": "Get edge node info", + "description": "Get the info of an edge node as reported by the edge node itself", + "operationId": "EdgeNodeStatus_GetEdgeNodeInfoByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeviceInfoMsg" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/name/{name}/status/metrics/raw": { + "get": { + "summary": "Get edge node raw status", + "description": "Get the raw status of an edge node as reported by the edge node itself", + "operationId": "EdgeNodeStatus_GetEdgeNodeRawStatusByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeviceRawMetrics" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/name/{objname}/events": { + "get": { + "summary": "Get edge node events by id", + "description": "Get configuration and status events of an edge node by id.", + "operationId": "EdgeNodeStatus_GetEdgeNodeEventsByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/EventQueryResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "objname", + "description": "Object name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "startTime", + "description": "start time in timestamp", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "description": "end time", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "severity", + "description": "severity", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "resource", + "description": "resource", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/name/{objname}/timeSeries/{mType}": { + "get": { + "summary": "Get edge node resource usage timeline", + "description": "Get the resource usage timeline of an edge node", + "operationId": "EdgeNodeStatus_GetEdgeNodeResourceMetricsByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/MetricQueryResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "objname", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "mType", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "UNSPECIFIED", + "CPU_TOTAL", + "CPU_USAGE", + "MEMORY_TOTAL", + "MEMORY_UTILIZATION", + "NETWORK_TOTAL", + "NETWORK_RATES", + "EVENTS_COUNT", + "STORAGE_UTILIZATION", + "STORAGE_IO_ZPOOL", + "STORAGE_IO_ZVOL" + ] + }, + { + "name": "startTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "interval", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/serial/{serialno}": { + "get": { + "summary": "Get edge node by serial number", + "description": "Get the configuration (without security details) of an edge node record.", + "operationId": "EdgeNodeConfiguration_GetEdgeNodeBySerial", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeviceConfig" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "serialno", + "description": "unique identity number of the device", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/status": { + "get": { + "summary": "Query status of edge nodes", + "description": "Query the status of edge nodes as reported by the edge nodes themselves", + "operationId": "EdgeNodeStatus_QueryEdgeNodeStatus", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeviceStatusListMsg" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "runState", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "ONLINE", + "HALTED", + "INIT", + "REBOOTING", + "OFFLINE", + "UNKNOWN", + "UNPROVISIONED", + "PROVISIONED", + "SUSPECT", + "DOWNLOADING", + "RESTARTING", + "PURGING", + "HALTING", + "ERROR", + "VERIFYING", + "LOADING", + "CREATING_VOLUME", + "BOOTING", + "MAINTENANCE_MODE", + "START_DELAYED", + "BASEOS_UPDATING", + "PREPARING_POWEROFF", + "POWERING_OFF", + "PREPARED_POWEROFF" + ], + "default": "UNSPECIFIED" + }, + { + "name": "projectName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "load", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "FREE", + "MODERATE", + "HEAVY" + ], + "default": "UNSPECIFIED" + }, + { + "name": "namePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "tags", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "projectNamePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "deviceName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "fields", + "description": "Fields to select for composite api: id, name, title, serialNo, projectId, projectName, isEveLatest, appInstCount, runState, adminState.", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "adminState", + "description": " - CREATED: Entity Created in the controller\n - DELETED: Entity Deleted in the controller\n - ACTIVE: Entity Activated in the controller\n - INACTIVE: Entity Deactivated in the controller\n - REGISTERED: Specific to Edge-node - Edge-node Registered with the controller\n - ARCHIVED: Entity Archived in the controller", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "CREATED", + "DELETED", + "ACTIVE", + "INACTIVE", + "REGISTERED", + "ARCHIVED" + ], + "default": "UNSPECIFIED" + }, + { + "name": "eveLtsSupportType", + "description": "filter devices by eve version support type i.e LTS OR NON_LTS", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "SUPPORT_TYPE_UNSPECIFIED", + "SUPPORT_TYPE_LTS", + "SUPPORT_TYPE_NON_LTS" + ], + "default": "SUPPORT_TYPE_UNSPECIFIED" + }, + { + "name": "includeInterfaces", + "description": "flag to indicate whether to include network interface details in the response", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "titlePattern", + "description": "title pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EdgeNodeStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/status-config": { + "get": { + "summary": "Query device status and config", + "description": "Device status config API is a composite API for device config and device status", + "operationId": "HardwareModel_GetDeviceStatusConfig", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeviceStatusConfigList" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "runState", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "ONLINE", + "HALTED", + "INIT", + "REBOOTING", + "OFFLINE", + "UNKNOWN", + "UNPROVISIONED", + "PROVISIONED", + "SUSPECT", + "DOWNLOADING", + "RESTARTING", + "PURGING", + "HALTING", + "ERROR", + "VERIFYING", + "LOADING", + "CREATING_VOLUME", + "BOOTING", + "MAINTENANCE_MODE", + "START_DELAYED", + "BASEOS_UPDATING", + "PREPARING_POWEROFF", + "POWERING_OFF", + "PREPARED_POWEROFF" + ], + "default": "UNSPECIFIED" + }, + { + "name": "projectName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "load", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "FREE", + "MODERATE", + "HEAVY" + ], + "default": "UNSPECIFIED" + }, + { + "name": "namePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "tags", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "projectNamePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "deviceName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "fields", + "description": "Fields to select for composite api: id, name, title, serialNo, projectId, projectName, isEveLatest, appInstCount, runState, adminState.", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "adminState", + "description": " - CREATED: Entity Created in the controller\n - DELETED: Entity Deleted in the controller\n - ACTIVE: Entity Activated in the controller\n - INACTIVE: Entity Deactivated in the controller\n - REGISTERED: Specific to Edge-node - Edge-node Registered with the controller\n - ARCHIVED: Entity Archived in the controller", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "CREATED", + "DELETED", + "ACTIVE", + "INACTIVE", + "REGISTERED", + "ARCHIVED" + ], + "default": "UNSPECIFIED" + }, + { + "name": "eveLtsSupportType", + "description": "filter devices by eve version support type i.e LTS OR NON_LTS", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "SUPPORT_TYPE_UNSPECIFIED", + "SUPPORT_TYPE_LTS", + "SUPPORT_TYPE_NON_LTS" + ], + "default": "SUPPORT_TYPE_UNSPECIFIED" + }, + { + "name": "includeInterfaces", + "description": "flag to indicate whether to include network interface details in the response", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "titlePattern", + "description": "title pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "HardwareModel" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/status/locations": { + "get": { + "summary": "Query device status location", + "description": "Query device status locations", + "operationId": "HardwareModel_GetDeviceStatusLocation", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeviceLocations" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "runState", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "ONLINE", + "HALTED", + "INIT", + "REBOOTING", + "OFFLINE", + "UNKNOWN", + "UNPROVISIONED", + "PROVISIONED", + "SUSPECT", + "DOWNLOADING", + "RESTARTING", + "PURGING", + "HALTING", + "ERROR", + "VERIFYING", + "LOADING", + "CREATING_VOLUME", + "BOOTING", + "MAINTENANCE_MODE", + "START_DELAYED", + "BASEOS_UPDATING", + "PREPARING_POWEROFF", + "POWERING_OFF", + "PREPARED_POWEROFF" + ], + "default": "UNSPECIFIED" + }, + { + "name": "projectName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "load", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "FREE", + "MODERATE", + "HEAVY" + ], + "default": "UNSPECIFIED" + }, + { + "name": "namePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "tags", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "projectNamePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "deviceName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "fields", + "description": "Fields to select for composite api: id, name, title, serialNo, projectId, projectName, isEveLatest, appInstCount, runState, adminState.", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "adminState", + "description": " - CREATED: Entity Created in the controller\n - DELETED: Entity Deleted in the controller\n - ACTIVE: Entity Activated in the controller\n - INACTIVE: Entity Deactivated in the controller\n - REGISTERED: Specific to Edge-node - Edge-node Registered with the controller\n - ARCHIVED: Entity Archived in the controller", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "CREATED", + "DELETED", + "ACTIVE", + "INACTIVE", + "REGISTERED", + "ARCHIVED" + ], + "default": "UNSPECIFIED" + }, + { + "name": "eveLtsSupportType", + "description": "filter devices by eve version support type i.e LTS OR NON_LTS", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "SUPPORT_TYPE_UNSPECIFIED", + "SUPPORT_TYPE_LTS", + "SUPPORT_TYPE_NON_LTS" + ], + "default": "SUPPORT_TYPE_UNSPECIFIED" + }, + { + "name": "includeInterfaces", + "description": "flag to indicate whether to include network interface details in the response", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "titlePattern", + "description": "title pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "HardwareModel" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/devices/tags": { + "get": { + "summary": "Query device object tag key-values", + "description": "Query device object tag key-values", + "operationId": "HardwareModel_GetDeviceTags", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ObjectTagsList" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "HardwareModel" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/pcrtemplate/id/{id}": { + "put": { + "summary": "Update pcr template", + "description": "Update a pcr template record. The usual pattern to update a pcr template record is to retrieve the record and update with the modified values in a new body to update the pcr template record.", + "operationId": "HardwareModel_UpdatePCRTemplate", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the PCR template. If not set in POST / PUT API calls, this will be treated as a new entry and a unique System Generated ID assigned.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "eveVersion": { + "type": "string", + "description": "EVE version related to the PCR template" + }, + "firmwareVersion": { + "type": "string", + "description": "Firmware version related to the PCR template. If user doesn't set it, it will be set to '*'" + }, + "PCRValues": { + "type": "array", + "items": { + "$ref": "#/definitions/PCRValue" + }, + "description": "List of PCR values for the PCR template" + }, + "name": { + "type": "string", + "description": "Name of the PCR template. The name is Unique among PCR templates for that System Model. If it is not specified, a system-generated name will be assigned.", + "maxLength": 256 + } + }, + "description": "PCR template data for the specified eve version and firmware version", + "title": "PCR template", + "required": [ + "eveVersion", + "PCRValues" + ] + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "HardwareModel" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/pcrtemplates/id/{id}": { + "get": { + "summary": "Query pcr template", + "description": "Query pcr template by id. ", + "operationId": "HardwareModel_GetPCRTemplateById", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/PCRTemplatesInfo" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the pcr template", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "modelId", + "description": "Device model identifier", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "HardwareModel" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + }, + "delete": { + "summary": "Delete pcr template", + "description": "Delete an pcr template record.", + "operationId": "HardwareModel_DeleteEdgeNode", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the pcr template", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "modelId", + "description": "Device model identifier", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "HardwareModel" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/projects": { + "get": { + "summary": "Query resource groups", + "description": "Query the resource group records.", + "operationId": "ResourceGroup_QueryResourceGroups", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/Tags" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "description": "Only summary of the records required", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "namePattern", + "description": "Resource group name pattern to be matched.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "type", + "description": "Resource group type to ne matched.\n\n - TAG_TYPE_UNSPECIFIED: Unspecified\n - TAG_TYPE_GENERIC: Generic resource group\n - TAG_TYPE_PROJECT: Project resource group\n - TAG_TYPE_AZURE: Project resource group\n - TAG_TYPE_DEPLOYMENT: Project with deployment", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "TAG_TYPE_UNSPECIFIED", + "TAG_TYPE_GENERIC", + "TAG_TYPE_PROJECT", + "TAG_TYPE_AZURE", + "TAG_TYPE_DEPLOYMENT" + ], + "default": "TAG_TYPE_UNSPECIFIED" + }, + { + "name": "tags", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "titlePattern", + "description": "Resource group title pattern to be matched.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "fields", + "description": "Fields to select: id, name, title, description, revision, type, attr, appPolicy, cloudPolicy, modulePolicy, numdevices, attestationPolicy, networkPolicy, edgeviewPolicy", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ResourceGroup" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + }, + "post": { + "summary": "Create resource group", + "description": "Create a resource group record.", + "operationId": "ResourceGroup_CreateResourceGroup", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this resource group record will conflict with an already existing resource group record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Tag" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ResourceGroup" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/projects/id/{id}": { + "get": { + "summary": "Get resource group", + "description": "Get the configuration (without security details) of a resource group record.", + "operationId": "ResourceGroup_GetResourceGroup", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/Tag" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the resource group", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ResourceGroup" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + }, + "delete": { + "summary": "Delete resource group", + "description": "Delete a resource group record.", + "operationId": "ResourceGroup_DeleteResourceGroup", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the resource group", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ResourceGroup" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + }, + "put": { + "summary": "Update resource group", + "description": "Update a resource group record. The usual pattern to update a resource group record is to retrieve the record and update with the modified values in a new body to update the resource group record.", + "operationId": "ResourceGroup_UpdateResourceGroup", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing resource group record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TagUpdate_HttpRequest" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ResourceGroup" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/projects/id/{id}/status": { + "get": { + "summary": "Get resource group status", + "description": "Get the status (without security details) of a resource group record.", + "operationId": "ResourceGroupStatus_GetResourceGroupStatusById", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/TagStatusMsg" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the resource group", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ResourceGroupStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/projects/id/{objid}/events": { + "get": { + "summary": "Get resource group events by id", + "description": "Get configuration and status events of a resource group by id.", + "operationId": "ResourceGroup_GetResourceGroupEvents", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/EventQueryResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "objid", + "description": "Object id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "startTime", + "description": "start time in timestamp", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "description": "end time", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "severity", + "description": "severity", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "resource", + "description": "resource", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ResourceGroup" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/projects/id/{objid}/timeSeries/{mType}": { + "get": { + "summary": "Get resource group resource usage timeline", + "description": "Get the resource usage timeline of a resource group as reported by the edge nodes in the resource group", + "operationId": "ResourceGroup_GetResourceGroupResourceMetricsById", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/MetricQueryResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "objid", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "mType", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "UNSPECIFIED", + "CPU_TOTAL", + "CPU_USAGE", + "MEMORY_TOTAL", + "MEMORY_UTILIZATION", + "NETWORK_TOTAL", + "NETWORK_RATES", + "EVENTS_COUNT", + "STORAGE_UTILIZATION", + "STORAGE_IO_ZPOOL", + "STORAGE_IO_ZVOL" + ] + }, + { + "name": "startTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "interval", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ResourceGroup" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/projects/name/{name}": { + "get": { + "summary": "Get resource group", + "description": "Get the configuration (without security details) of a resource group record.", + "operationId": "ResourceGroup_GetResourceGroupByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/Tag" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "User defined name of the resource group, unique across the enterprise. Once resource group is created, name can\u2019t be changed.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ResourceGroup" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/projects/name/{name}/status": { + "get": { + "summary": "Get resource group status", + "description": "Get the status (without security details) of a resource group record.", + "operationId": "ResourceGroupStatus_GetResourceGroupStatusByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/TagStatusMsg" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "User defined name of the resource group, unique across the enterprise. Once resource group is created, name can\u2019t be changed.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ResourceGroupStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/projects/name/{objname}/events": { + "get": { + "summary": "Get resource group events by name", + "description": "Get configuration and status events of a resource group by name.", + "operationId": "ResourceGroup_GetResourceGroupEventsByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/EventQueryResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "objname", + "description": "Object name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "startTime", + "description": "start time in timestamp", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "description": "end time", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "severity", + "description": "severity", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "resource", + "description": "resource", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ResourceGroup" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/projects/name/{objname}/timeSeries/{mType}": { + "get": { + "summary": "Get resource group resource usage timeline", + "description": "Get the resource usage timeline of a resource group as reported by the edge nodes in the resource group", + "operationId": "ResourceGroup_GetResourceGroupResourceMetricsByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/MetricQueryResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "objname", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "mType", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "UNSPECIFIED", + "CPU_TOTAL", + "CPU_USAGE", + "MEMORY_TOTAL", + "MEMORY_UTILIZATION", + "NETWORK_TOTAL", + "NETWORK_RATES", + "EVENTS_COUNT", + "STORAGE_UTILIZATION", + "STORAGE_IO_ZPOOL", + "STORAGE_IO_ZVOL" + ] + }, + { + "name": "startTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "interval", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ResourceGroup" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/projects/status": { + "get": { + "summary": "Query resource groups status", + "description": "Query the resource group status records.", + "operationId": "ResourceGroupStatus_QueryResourceGroupStatus", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/TagStatusListMsg" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "description": "Only summary of the records required", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "namePattern", + "description": "Resource group name pattern to be matched.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "status", + "description": "Resource group status to be matched.", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "type", + "description": "Resource group type to ne matched.\n\n - TAG_TYPE_UNSPECIFIED: Unspecified\n - TAG_TYPE_GENERIC: Generic resource group\n - TAG_TYPE_PROJECT: Project resource group\n - TAG_TYPE_AZURE: Project resource group\n - TAG_TYPE_DEPLOYMENT: Project with deployment", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "TAG_TYPE_UNSPECIFIED", + "TAG_TYPE_GENERIC", + "TAG_TYPE_PROJECT", + "TAG_TYPE_AZURE", + "TAG_TYPE_DEPLOYMENT" + ], + "default": "TAG_TYPE_UNSPECIFIED" + }, + { + "name": "tags", + "description": "Resource group type to be matched with tags.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "titlePattern", + "description": "Resource group title pattern to be matched.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "fields", + "description": "Fields to select: id, name, status", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ResourceGroupStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/projects/status-config": { + "get": { + "summary": "Query resource groups status and config", + "description": "Query the resource group status and config records.", + "operationId": "ResourceGroupStatus_QueryResourceGroupStatusConfig", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/TagsConfigStatus" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "description": "Only summary of the records required", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "namePattern", + "description": "Resource group name pattern to be matched.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "status", + "description": "Resource group status to be matched.", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "type", + "description": "Resource group type to ne matched.\n\n - TAG_TYPE_UNSPECIFIED: Unspecified\n - TAG_TYPE_GENERIC: Generic resource group\n - TAG_TYPE_PROJECT: Project resource group\n - TAG_TYPE_AZURE: Project resource group\n - TAG_TYPE_DEPLOYMENT: Project with deployment", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "TAG_TYPE_UNSPECIFIED", + "TAG_TYPE_GENERIC", + "TAG_TYPE_PROJECT", + "TAG_TYPE_AZURE", + "TAG_TYPE_DEPLOYMENT" + ], + "default": "TAG_TYPE_UNSPECIFIED" + }, + { + "name": "tags", + "description": "Resource group type to be matched with tags.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "titlePattern", + "description": "Resource group title pattern to be matched.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "fields", + "description": "Fields to select: id, name, status", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ResourceGroupStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/projects/tags": { + "get": { + "summary": "Query resource group tag key-values", + "description": "Query resource group tag key-values", + "operationId": "ResourceGroup_GetResourceGroupTags", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ObjectTagsList" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "filter.objId", + "description": "Object Id which tags are associated.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filter.objName", + "description": "Object name which tags are associated.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ResourceGroup" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/sysmodels": { + "get": { + "summary": "Query hardware models", + "description": "Query the hardware model records.", + "operationId": "HardwareModel_QueryHardwareModels", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/SysModels" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "description": "Only summary of the records required", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "namePattern", + "description": "Model name pattern to be matched.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "brandId", + "description": "System defined universally unique Id of the brand.", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "originType", + "description": "origin of object\n\n - ORIGIN_UNSPECIFIED: default options, which says no Operation/Invalid Operation\n - ORIGIN_IMPORTED: Object imported from global enterprise.\n - ORIGIN_LOCAL: Objectl created locally.\n - ORIGIN_GLOBAL: Object created in global store,\nto use this type user should have root previlage.\n - ORIGIN_APP_PROFILE_LOCAL: Object created via App profile", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "ORIGIN_UNSPECIFIED", + "ORIGIN_IMPORTED", + "ORIGIN_LOCAL", + "ORIGIN_GLOBAL", + "ORIGIN_APP_PROFILE_LOCAL" + ], + "default": "ORIGIN_UNSPECIFIED" + }, + { + "name": "includeGlobal", + "description": "Include global models that are not imported.", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "titlePattern", + "description": "Model title pattern to be matched.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "HardwareModel" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + }, + "post": { + "summary": "Create hardware model", + "description": "Create a hardware model record.", + "operationId": "HardwareModel_CreateHardwareModel", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this hardware model record will conflict with an already existing hardware model record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SysModel" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "HardwareModel" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/sysmodels/global": { + "get": { + "summary": "Query global hardware models", + "description": "Query the global hardware model records.", + "operationId": "HardwareModel_QueryGlobalHardwareModels", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/SysModels" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "description": "Only summary of the records required", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "namePattern", + "description": "Model name pattern to be matched.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "brandId", + "description": "System defined universally unique Id of the brand.", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "originType", + "description": "origin of object\n\n - ORIGIN_UNSPECIFIED: default options, which says no Operation/Invalid Operation\n - ORIGIN_IMPORTED: Object imported from global enterprise.\n - ORIGIN_LOCAL: Objectl created locally.\n - ORIGIN_GLOBAL: Object created in global store,\nto use this type user should have root previlage.\n - ORIGIN_APP_PROFILE_LOCAL: Object created via App profile", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "ORIGIN_UNSPECIFIED", + "ORIGIN_IMPORTED", + "ORIGIN_LOCAL", + "ORIGIN_GLOBAL", + "ORIGIN_APP_PROFILE_LOCAL" + ], + "default": "ORIGIN_UNSPECIFIED" + }, + { + "name": "includeGlobal", + "description": "Include global models that are not imported.", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "titlePattern", + "description": "Model title pattern to be matched.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "HardwareModel" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/sysmodels/global/id/{id}": { + "get": { + "summary": "Get global hardware model", + "description": "Get the configuration (without security details) of a global hardware model record.", + "operationId": "HardwareModel_GetGlobalHardwareModel", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/SysModel" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the model", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "HardwareModel" + ] + } + }, + "/v1/sysmodels/global/name/{name}": { + "get": { + "summary": "Get global hardware model", + "description": "Get the configuration (without security details) of a global hardware model record.", + "operationId": "HardwareModel_GetGlobalHardwareModelByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/SysModel" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "User defined name of the model, unique across the enterprise. Once model is created, name can\u2019t be changed.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "HardwareModel" + ] + } + }, + "/v1/sysmodels/id/{id}": { + "get": { + "summary": "Get hardware model", + "description": "Get the configuration (without security details) of a hardware model record.", + "operationId": "HardwareModel_GetHardwareModel", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/SysModel" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the model", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "HardwareModel" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + }, + "delete": { + "summary": "Delete hardware model", + "description": "Delete a hardware model record.", + "operationId": "HardwareModel_DeleteHardwareModel", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the model", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "HardwareModel" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + }, + "put": { + "summary": "Update hardware model", + "description": "Update a hardware model. The usual pattern to update a hardware model record is to retrieve the record and update with the modified values in a new body to update the hardware model record.", + "operationId": "HardwareModel_UpdateHardwareModel", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing hardware model record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the model.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "user defined model name", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+" + }, + "title": { + "type": "string", + "description": "User defined title of the model. Title can be changed at any time.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+" + }, + "brandId": { + "type": "string", + "description": "System defined universally unique Id of the brand.", + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12", + "uniqueItems": true + }, + "description": { + "type": "string", + "description": "Detailed description of the model.", + "maxLength": 256 + }, + "state": { + "$ref": "#/definitions/SysModelState", + "description": "SysModel State which denotes the status of the model" + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "Object Revision of the model", + "readOnly": true + }, + "type": { + "$ref": "#/definitions/ModelArchType", + "description": "Defines the Architecture type of the model" + }, + "attr": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Map of which defines attr" + }, + "productStatus": { + "type": "string", + "description": "Product status" + }, + "productURL": { + "type": "string", + "description": "Product URL" + }, + "brandName": { + "type": "string", + "description": "Brand name." + }, + "ioMemberList": { + "type": "array", + "items": { + "$ref": "#/definitions/ioMember" + }, + "description": "List of IoMembers" + }, + "logo": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Map of which holds the key:url for the logo artifact of the model" + }, + "parentDetail": { + "$ref": "#/definitions/ObjectParentDetail", + "description": "origin and parent related details" + }, + "originType": { + "$ref": "#/definitions/Origin", + "description": "origin of object" + }, + "PCRTemplates": { + "type": "array", + "items": { + "$ref": "#/definitions/PCRTemplate" + }, + "description": "PCR templates keyed by EVE version" + }, + "isImported": { + "type": "boolean", + "description": "Flag to represent whether sysModel is imported" + } + }, + "description": "SysModel consists of various model attributes like id, name, title, brandId etc", + "title": "SysModel payload details", + "required": [ + "name", + "title", + "brandId", + "state", + "type", + "attr", + "originType" + ] + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "HardwareModel" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/sysmodels/id/{id}/import": { + "put": { + "summary": "Import hardware model to local enterprise if it is not already imported and return imported model information.", + "description": "Import hardware model to local enterprise if it is not already imported and return model information.", + "operationId": "HardwareModel_ImportHardwareModel", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/SysModel" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the model", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "HardwareModel" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/sysmodels/id/{id}/pcrtemplates": { + "get": { + "summary": "Query pcr templates", + "description": "Query pcr template records. ", + "operationId": "HardwareModel_GetPCRTemplates", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/PCRTemplatesInfo" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the model.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "name", + "description": "PCR template name.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "eveImageVersion", + "description": "PCR template eve version.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "namePattern", + "description": "PCR template name pattern to be matched.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "eveImageVersionPattern", + "description": "PCR template eve image version pattern to be matched", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "HardwareModel" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + }, + "post": { + "summary": "Create pcr templates", + "description": "Create a list of pcr templates.", + "operationId": "HardwareModel_CreatePCRTemplates", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PCRTemplatesReq" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "HardwareModel" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/sysmodels/id/{modelId}/pcrtemplates/name/{name}": { + "get": { + "summary": "Query pcr template", + "description": "Query pcr template by name. ", + "operationId": "HardwareModel_GetPCRTemplateByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/PCRTemplatesInfo" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "modelId", + "description": "Device model identifier", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "name", + "description": "User defined name of the pcr template, unique across a model ", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "HardwareModel" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v1/sysmodels/name/{name}": { + "get": { + "summary": "Get hardware model", + "description": "Get the configuration (without security details) of a hardware model record.", + "operationId": "HardwareModel_GetHardwareModelByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/SysModel" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "User defined name of the model, unique across the enterprise. Once model is created, name can\u2019t be changed.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "HardwareModel" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v2/projects": { + "post": { + "summary": "Create resource group", + "description": "v2 API to create a resource group record.", + "operationId": "ResourceGroup_CreateResourceGroupV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "202": { + "description": "Accepted. The API gateway accepted the request and will process it asynchronously.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Tag" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ResourceGroup" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v2/projects/id/{projectId}/deployments": { + "get": { + "summary": "Get deployment list in a project by ID", + "description": "v2 API to get deployment list by project ID", + "operationId": "ResourceGroup_GetDeploymentListbyIdv2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/Deployments" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "projectId", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "titlePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ResourceGroup" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + }, + "delete": { + "summary": "Delete all deployments in a project", + "description": "v2 API to delete all deployments in a project by project ID.", + "operationId": "ResourceGroup_DeleteResourceGroupAllV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "projectId", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "titlePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ResourceGroup" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + }, + "post": { + "summary": "Create deployment for a project", + "description": "v2 API to create a deployment for an existing project", + "operationId": "ResourceGroup_CreateDeployment", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "202": { + "description": "Accepted. The API gateway accepted the request and will process it asynchronously.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "projectId", + "description": "project id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "system generated unique id for an deployment" + }, + "name": { + "type": "string", + "description": "user defined name for the deployment" + }, + "title": { + "type": "string", + "description": "user defined title for the deployment" + }, + "appInstPolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/AppInstPolicy" + }, + "description": "list of app instance policies" + }, + "networkInstPolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkInstPolicy" + }, + "description": "list of network instance policies" + }, + "volumeInstPolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/VolumeInstPolicy" + }, + "description": "list of volume instamce policies" + }, + "devicePolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/DevicePolicy" + }, + "description": "list of device policies" + }, + "integrationPolicy": { + "$ref": "#/definitions/IntegrationPolicy", + "description": "integration policy details" + }, + "clusterPolicy": { + "$ref": "#/definitions/ClusterInstPolicy", + "description": "cluster policy details" + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "object revision" + }, + "deploymentTag": { + "type": "string", + "description": "user defined tag for the deployment, which is used while targeting set of devices" + }, + "edgeviewPolicy": { + "$ref": "#/definitions/EdgeViewPolicy", + "description": "edge view policy details" + } + } + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ResourceGroup" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + }, + "/v2/projects/id/{projectId}/deployments/id/{id}": { + "get": { + "summary": "Get specific deployment status in a project by project ID and deployment ID", + "description": "v2 API to get project status by project ID", + "operationId": "ResourceGroup_GetDeploymentByIdV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/Deployment" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "projectId", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ResourceGroup" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + }, + "delete": { + "summary": "Delete deployment in a project", + "description": "v2 API to delete a specific deployment in a project by project ID and deployment ID.", + "operationId": "ResourceGroup_DeleteResourceGroupV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "projectId", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ResourceGroup" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + }, + "put": { + "summary": "Update deployment in a project", + "description": "v2 API to update deployment in a project. The usual pattern to update deployment is to retrieve the record and update with the modified values in a new body to update the deployment record.", + "operationId": "ResourceGroup_UpdateResourceGroupV2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "projectId", + "description": "project id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id", + "description": "system generated unique id for an deployment", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "user defined name for the deployment" + }, + "title": { + "type": "string", + "description": "user defined title for the deployment" + }, + "appInstPolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/AppInstPolicy" + }, + "description": "list of app instance policies" + }, + "networkInstPolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkInstPolicy" + }, + "description": "list of network instance policies" + }, + "volumeInstPolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/VolumeInstPolicy" + }, + "description": "list of volume instamce policies" + }, + "devicePolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/DevicePolicy" + }, + "description": "list of device policies" + }, + "integrationPolicy": { + "$ref": "#/definitions/IntegrationPolicy", + "description": "integration policy details" + }, + "clusterPolicy": { + "$ref": "#/definitions/ClusterInstPolicy", + "description": "cluster policy details" + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "object revision" + }, + "deploymentTag": { + "type": "string", + "description": "user defined tag for the deployment, which is used while targeting set of devices" + }, + "edgeviewPolicy": { + "$ref": "#/definitions/EdgeViewPolicy", + "description": "edge view policy details" + } + } + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ResourceGroup" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } + } + } + }, + "definitions": { + "Acl": { + "type": "object", + "properties": { + "matches": { + "type": "array", + "items": { + "$ref": "#/definitions/Match" + }, + "description": "Network traffic matching criteria consistngs of one or more of source IP address, destination IP address, protocol, source port and destination port" + }, + "actions": { + "type": "array", + "items": { + "$ref": "#/definitions/AclAction" + }, + "description": "Chain of actions to be taken on matching network traffic" + }, + "name": { + "type": "string", + "description": "Name of the Access Control List" + } + } + }, + "AclAction": { + "type": "object", + "properties": { + "drop": { + "type": "boolean", + "description": "Drop the packet", + "title": "Not used by ZedUI" + }, + "limit": { + "type": "boolean", + "description": "UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + "title": "Limit action on ACL rule" + }, + "limitValue": { + "$ref": "#/definitions/LimitParams", + "description": "Value to be used for limit action (Required if limit is true)", + "title": "only valid if limit flag is set, see below.\nNot used by ZedUI" + }, + "limitrate": { + "type": "integer", + "format": "int64", + "description": "UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + "title": "Rate limit in ACL rule" + }, + "limitunit": { + "type": "string", + "description": "UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + "title": "Rate limit unit in ACL rule" + }, + "limitburst": { + "type": "integer", + "format": "int64", + "description": "UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + "title": "Rate limit burst in ACL rule" + }, + "portmap": { + "type": "boolean", + "description": "UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + "title": "Enable device to app port mapping for incoming ACL rule, implicitly added by ZedUI code" + }, + "portmapto": { + "$ref": "#/definitions/MapParams", + "description": "UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + "title": "Device to app port mapping for incoming ACL rule" + } + } + }, + "AdapterUsage": { + "type": "string", + "enum": [ + "ADAPTER_USAGE_UNSPECIFIED", + "ADAPTER_USAGE_MANAGEMENT", + "ADAPTER_USAGE_APP_DIRECT", + "ADAPTER_USAGE_APP_SHARED", + "ADAPTER_USAGE_DISABLED", + "ADAPTER_USAGE_VLANS_ONLY", + "ADAPTER_USAGE_BOND_MEMBER" + ], + "default": "ADAPTER_USAGE_UNSPECIFIED", + "description": "- ADAPTER_USAGE_UNSPECIFIED: Adapter unspecified\n - ADAPTER_USAGE_MANAGEMENT: Adapter can be used by EVE as well as other Edge applications\n - ADAPTER_USAGE_APP_DIRECT: Adapter is directly used by one edge application\n - ADAPTER_USAGE_APP_SHARED: Adapter can be shared by different network instances\n - ADAPTER_USAGE_DISABLED: Adapter disabled, for future use\n - ADAPTER_USAGE_VLANS_ONLY: Adapter is used exclusively for VLANs\n - ADAPTER_USAGE_BOND_MEMBER: Adapter is used exclusively for BOND interfaces", + "title": "Adapter Usage" + }, + "AdminState": { + "type": "string", + "enum": [ + "ADMIN_STATE_UNSPECIFIED", + "ADMIN_STATE_CREATED", + "ADMIN_STATE_DELETED", + "ADMIN_STATE_ACTIVE", + "ADMIN_STATE_INACTIVE", + "ADMIN_STATE_REGISTERED", + "ADMIN_STATE_ARCHIVED", + "ADMIN_STATE_DELETION_PENDING" + ], + "default": "ADMIN_STATE_UNSPECIFIED", + "description": "- ADMIN_STATE_CREATED: Entity Created in the controller\n - ADMIN_STATE_DELETED: Entity Deleted in the controller\n - ADMIN_STATE_ACTIVE: Entity Activated in the controller\n - ADMIN_STATE_INACTIVE: Entity Deactivated in the controller\n - ADMIN_STATE_REGISTERED: Specific to Edge-node - Edge-node Registered with the controller\n - ADMIN_STATE_ARCHIVED: Entity Archived in the controller\n - ADMIN_STATE_DELETION_PENDING: Entity was marked as Deleted but not yet deleted in the controller", + "title": "AdminState - On update, please update AdminState_HttpRequest as well" + }, + "AdminStateConfig_HttpRequestAdminState_HttpRequest": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "CREATED", + "DELETED", + "ACTIVE", + "INACTIVE", + "REGISTERED", + "ARCHIVED" + ], + "default": "UNSPECIFIED", + "description": "- CREATED: Entity Created in the controller\n - DELETED: Entity Deleted in the controller\n - ACTIVE: Entity Activated in the controller\n - INACTIVE: Entity Deactivated in the controller\n - REGISTERED: Specific to Edge-node - Edge-node Registered with the controller\n - ARCHIVED: Entity Archived in the controller", + "title": "AdminState_HttpRequest - Only for swagger documentation" + }, + "AllocationPolicy": { + "type": "string", + "enum": [ + "ALLOCATION_POLICY_UNSPECIFIED", + "ALLOCATION_POLICY_HASHED", + "ALLOCATION_POLICY_GEOLATENCY", + "ALLOCATION_POLICY_STATIC", + "ALLOCATION_POLICY_CUSTOM" + ], + "default": "ALLOCATION_POLICY_UNSPECIFIED", + "description": "Iot hub allocation policy." + }, + "AppAccessPolicy": { + "type": "object", + "properties": { + "allowApp": { + "type": "boolean", + "title": "app side of edge-view access is allowed or not" + } + } + }, + "AppCategory": { + "type": "string", + "enum": [ + "APP_CATEGORY_UNSPECIFIED", + "APP_CATEGORY_OPERATING_SYSTEM", + "APP_CATEGORY_INDUSTRIAL", + "APP_CATEGORY_EDGE_APPLICATION", + "APP_CATEGORY_NETWORKING", + "APP_CATEGORY_SECURITY", + "APP_CATEGORY_DATA_ANALYTICS", + "APP_CATEGORY_CLOUD_APPLICATION", + "APP_CATEGORY_DEVOPS", + "APP_CATEGORY_OTHERS" + ], + "default": "APP_CATEGORY_UNSPECIFIED", + "description": "- APP_CATEGORY_UNSPECIFIED: Invalid Edge Application Category\n - APP_CATEGORY_OPERATING_SYSTEM: Edge operating systems\n - APP_CATEGORY_INDUSTRIAL: Connectity solution for industrial protocols\n - APP_CATEGORY_EDGE_APPLICATION: Edge application framework featuring composite functions for data ingestion, buffering, analytics and export\n - APP_CATEGORY_NETWORKING: Edge networking services (e.g. SD-WAN, NFV)\n - APP_CATEGORY_SECURITY: Edge security services (e.g. protocol inspection, firewall)\n - APP_CATEGORY_DATA_ANALYTICS: Edge analytics (e.g. AI/ML) and data management (e.g. database, connectors) services\n - APP_CATEGORY_CLOUD_APPLICATION: Edge application runtimes, cloud connectivity and general application enablement\n - APP_CATEGORY_DEVOPS: Tools for Edge Application CI/CD and performance optimization\n - APP_CATEGORY_OTHERS: Miscellaneous functionality", + "title": "Edge Application Category" + }, + "AppConfig": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the edge application", + "readOnly": true, + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the edge application, unique across the enterprise. Once object is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the edge application. Title can be changed at any time", + "maxLength": 256, + "minLength": 3, + "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$" + }, + "description": { + "type": "string", + "description": "Detailed description of the edge application", + "maxLength": 256 + }, + "appId": { + "type": "string", + "description": "User defined name of the edge app, unique across the enterprise. Once app name is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "networks": { + "type": "integer", + "format": "int64", + "description": "user defined network options", + "required": [ + "networks" + ] + }, + "drives": { + "type": "integer", + "format": "int64", + "description": "user defined drives", + "readOnly": true, + "required": [ + "drives" + ] + }, + "cpus": { + "type": "integer", + "format": "int64", + "description": "user defined cpus for bundle", + "required": [ + "cpus" + ] + }, + "memory": { + "type": "integer", + "format": "int64", + "description": "user defined memory for bundle", + "required": [ + "memory" + ] + }, + "manifestJSON": { + "$ref": "#/definitions/VMManifest", + "description": "Manifest data" + }, + "parentDetail": { + "$ref": "#/definitions/ObjectParentDetail", + "description": "origin and parent related details" + }, + "originType": { + "type": "object", + "$ref": "#/definitions/Origin", + "description": "origin of object", + "required": [ + "true" + ] + }, + "appVersion": { + "type": "string", + "description": "Current version of the attached bundle" + }, + "nameProjectPart": { + "type": "string", + "description": "User provided name part for the auto deployed app" + }, + "nameAppPart": { + "type": "string", + "description": "User provided name part for the auto deployed app" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "namingScheme": { + "$ref": "#/definitions/AppNamingScheme", + "description": "app naming scheme" + }, + "interfaces": { + "type": "array", + "items": { + "$ref": "#/definitions/appInterface" + }, + "description": "application interfaces" + }, + "storage": { + "type": "integer", + "format": "int64", + "description": "user defined storage for bundle" + }, + "startDelayInSeconds": { + "type": "integer", + "format": "int64", + "description": "start delay is the time in seconds EVE should wait after boot before starting the application instance" + } + }, + "description": "Edge application configuration for an App policy defines configuration details of the Edge application to be installed to all Edge node(s) under the App policy.", + "title": "Edge application configuration for App policy", + "required": [ + "name", + "title", + "manifestJSON", + "networks", + "drives", + "cpus", + "memory", + "originType" + ] + }, + "AppInstConfig": { + "type": "object", + "example": { + "name": "sample-app", + "title": "Sample Edge Applications", + "originType": "ORIGIN_LOCAL" + }, + "properties": { + "networks": { + "type": "integer", + "format": "int64", + "description": "user defined network options" + }, + "drives": { + "type": "integer", + "format": "int64", + "description": "user defined drives", + "readOnly": true + }, + "cpus": { + "type": "integer", + "format": "int64", + "description": "user defined cpus for bundle" + }, + "memory": { + "type": "integer", + "format": "int64", + "description": "user defined memory for bundle" + }, + "manifestJSON": { + "$ref": "#/definitions/VMManifest", + "description": "user defined manifest in JSON format" + }, + "parentDetail": { + "$ref": "#/definitions/ObjectParentDetail", + "description": "origin and parent related details" + }, + "originType": { + "$ref": "#/definitions/Origin", + "description": "origin of object" + }, + "storage": { + "type": "integer", + "format": "int64", + "description": "user defined storage for bundle" + }, + "nameProjectPart": { + "type": "string", + "description": "User provided name part for the auto deployed app" + }, + "nameAppPart": { + "type": "string", + "description": "User provided name part for the auto deployed app" + }, + "namingScheme": { + "$ref": "#/definitions/AppNamingSchemeV2", + "description": "app naming scheme" + }, + "interfaces": { + "type": "array", + "items": { + "$ref": "#/definitions/appInterface" + }, + "description": "application interfaces" + }, + "startDelayInSeconds": { + "type": "integer", + "format": "int64", + "description": "start delay is the time in seconds EVE should wait after boot before starting the application instance" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "bundleId": { + "type": "string", + "description": "User defined name of the edge app, unique across the enterprise. Once app name is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "logs": { + "$ref": "#/definitions/AppInstanceLogs", + "description": "App Instance logs" + }, + "vminfo": { + "$ref": "#/definitions/vm", + "description": "virtual machine info" + }, + "remoteConsole": { + "type": "boolean", + "description": "Remote console flag" + }, + "newBundleVersionAvailable": { + "type": "boolean", + "description": "this flag denotes whether there is latest bundle available in the marketplace or not" + }, + "bundleVersion": { + "type": "integer", + "format": "int64", + "description": "current bundle version" + } + }, + "description": "Edge application gets installed/uninstalled to/from edge node(s) and perform specific edge computing tasks. Lifecycle of Edge application (upgrade/restart) on Edge node can be managed and monitored by ZEDEDA Cloud controller through this detailed configuration.", + "title": "Edge application detailed configuration" + }, + "AppInstPolicy": { + "type": "object", + "properties": { + "metaData": { + "$ref": "#/definitions/PolicyCommon", + "description": "all the required metadata for a policy like id, name, different types of tags" + }, + "appInstConfig": { + "$ref": "#/definitions/AppInstConfig", + "description": "app instance config for automated deployment" + } + } + }, + "AppInstanceLogs": { + "type": "object", + "properties": { + "access": { + "type": "boolean", + "description": "Flags to enable / disable sending of logs generated by app instance to zedcloud" + } + }, + "description": "App Instance Logs configuration", + "title": "App Instance Logs configuration", + "required": [ + "access" + ] + }, + "AppNamingScheme": { + "type": "string", + "enum": [ + "APP_NAMING_SCHEME_UNSPECIFIED", + "APP_NAMING_SCHEME_DEVICE", + "APP_NAMING_SCHEME_APP_DEVICE", + "APP_NAMING_SCHEME_PROJECT_DEVICE", + "APP_NAMING_SCHEME_PROJECT_APP_DEVICE" + ], + "default": "APP_NAMING_SCHEME_UNSPECIFIED", + "description": "type of name aliasing." + }, + "AppNamingSchemeV2": { + "type": "string", + "enum": [ + "APP_NAMING_SCHEMEV2_UNSPECIFIED", + "APP_NAMING_SCHEMEV2_DEVICE", + "APP_NAMING_SCHEMEV2_APP_DEVICE", + "APP_NAMING_SCHEMEV2_PROJECT_DEVICE", + "APP_NAMING_SCHEMEV2_PROJECT_APP_DEVICE" + ], + "default": "APP_NAMING_SCHEMEV2_UNSPECIFIED", + "description": "type of name aliasing." + }, + "AppPolicy": { + "type": "object", + "properties": { + "apps": { + "type": "array", + "items": { + "$ref": "#/definitions/AppConfig" + }, + "description": "list of app details that will be provisioned on all the devices of the project to which this policy is attached" + } + }, + "description": "list of apps that will be provisioned on all the devices of the project to which this policy is attached", + "title": "App policy body detail", + "required": [ + "apps" + ] + }, + "AppType": { + "type": "string", + "enum": [ + "APP_TYPE_UNSPECIFIED", + "APP_TYPE_VM", + "APP_TYPE_VM_RUNTIME", + "APP_TYPE_CONTAINER", + "APP_TYPE_MODULE", + "APP_TYPE_DOCKER_COMPOSE" + ], + "default": "APP_TYPE_UNSPECIFIED", + "description": "type of app bundle." + }, + "ArpMonitor": { + "type": "object", + "properties": { + "interval": { + "type": "integer", + "format": "int64", + "description": "Interval specifies the ARP link monitoring frequency in milliseconds." + }, + "ipTargets": { + "type": "array", + "items": { + "type": "string" + }, + "description": "IpTargets specifies the IPv4 addresses to use as ARP monitoring peers.\nThese are the targets of ARP requests sent to determine the health of links." + } + }, + "description": "ArpMonitor : ARP-based link monitoring parameters.\nDefined for BondAdapter." + }, + "AttestPolicyType": { + "type": "string", + "enum": [ + "ATTEST_POLICY_TYPE_UNSPECIFIED", + "ATTEST_POLICY_TYPE_ACCEPT", + "ATTEST_POLICY_TYPE_ENFORCE" + ], + "default": "ATTEST_POLICY_TYPE_UNSPECIFIED", + "description": " - ATTEST_POLICY_TYPE_ACCEPT: Do not enforce attestation. All devices are marked as successfully attested.\n - ATTEST_POLICY_TYPE_ENFORCE: Enforce attestation. Devices failing attestation are marked accordingly." + }, + "AttestState": { + "type": "string", + "enum": [ + "ATTEST_STATE_UNSPECIFIED", + "ATTEST_STATE_NONE", + "ATTEST_STATE_FAIL", + "ATTEST_STATE_PASS", + "ATTEST_STATE_PASS_NO_PCR", + "ATTEST_STATE_FAIL_NO_PCR" + ], + "default": "ATTEST_STATE_UNSPECIFIED" + }, + "AttestationPolicy": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "unique policy id", + "readOnly": true, + "pattern": "[0-9-a-z-]+" + }, + "type": { + "$ref": "#/definitions/AttestPolicyType", + "description": "Attestation policy type" + } + }, + "description": "Attestation policy to enforce on all devices of the project", + "title": "Attestation policy body detail", + "required": [ + "type" + ] + }, + "Author": { + "type": "object", + "properties": { + "user": { + "type": "string", + "description": "UI map: AppEditPage:DeveloperPane:Name_Field, AppDetailsPage:DeveloperPane:Name_Field", + "title": "Name of the developer" + }, + "group": { + "type": "string", + "title": "Not used by ZedUI" + }, + "company": { + "type": "string", + "description": "UI map: AppEditPage:IdentityPane:Category_Field, AppDetailsPage:IdentityPane:Category_Field", + "title": "Company of the developer" + }, + "website": { + "type": "string", + "description": "UI map: AppEditPage:DeveloperPane:Website_Field, AppDetailsPage:DeveloperPane:Website_Field", + "title": "Website of the developer company" + }, + "email": { + "type": "string", + "description": "UI map: AppEditPage:DeveloperPane:Email_Field, AppDetailsPage:DeveloperPane:Email_Field", + "title": "Contact email of the developer company" + } + } + }, + "AzurePolicy": { + "type": "object", + "properties": { + "appId": { + "type": "string", + "description": "app id for rbac" + }, + "appPassword": { + "type": "string", + "description": "app password for rbac" + }, + "tenantId": { + "type": "string", + "description": "tenant id for rbac" + }, + "encryptedSecrets": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "encrypted AppPassword" + }, + "cryptoKey": { + "type": "string", + "description": "key to decrypt AppPassword" + }, + "azureResourceAndServices": { + "$ref": "#/definitions/AzureResourceAndServices", + "description": "azure resource and service the policy will be interested in" + }, + "customDeploymentManaged": { + "type": "boolean" + }, + "certificate": { + "$ref": "#/definitions/Certificate", + "description": "Certificate object holds the details of certificate like encryption type, validity, subject etc" + } + }, + "description": "All azure policy related details that are required to provision an iot edge device and deploy a module on that.", + "title": "Azure policy body detail", + "required": [ + "appId", + "appPassword", + "tenantId" + ] + }, + "AzureResourceAndServiceDetail": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "createByDefault": { + "type": "boolean" + }, + "region": { + "type": "string" + }, + "SKU": { + "$ref": "#/definitions/SKUDetail" + }, + "subscriptionId": { + "type": "string" + }, + "resourceGroupName": { + "type": "string" + } + } + }, + "AzureResourceAndServices": { + "type": "object", + "properties": { + "resourceGroup": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourceGroupDetail" + }, + "description": "list of resource groups attached to cloud policy" + }, + "iotHubService": { + "type": "array", + "items": { + "$ref": "#/definitions/IotHubServiceDetail" + }, + "description": "list of iothubs attached to cloud policy" + }, + "dpsService": { + "type": "object", + "$ref": "#/definitions/DPSServiceDetail", + "description": "dps service attached to cloud policy" + } + }, + "description": "Azure resource request payload for cloud policy", + "title": "Azure resource payload detail for cloud policy", + "required": [ + "resourceGroup", + "iotHubService", + "dpsService" + ] + }, + "BaseOSImage": { + "type": "object", + "properties": { + "uuid": { + "type": "string", + "description": "system generated unique id for an image" + }, + "version": { + "type": "string", + "description": "image version" + }, + "imageName": { + "type": "string", + "description": "image name" + }, + "activate": { + "type": "boolean", + "description": "activation flag" + }, + "imvolId": { + "type": "string", + "description": "immutable Volume for this base image" + } + }, + "description": "Base OS image request details", + "title": "Base OS image payload detail", + "required": [ + "uuid", + "version", + "imageName", + "activate" + ] + }, + "BlobStatus": { + "type": "object", + "properties": { + "hash": { + "type": "string" + }, + "refCount": { + "type": "string", + "format": "uint64" + }, + "swState": { + "$ref": "#/definitions/SWState" + }, + "sizeMB": { + "type": "string", + "format": "uint64" + } + } + }, + "BondAdapter": { + "type": "object", + "properties": { + "logicalLabel": { + "type": "string", + "description": "Logical name of this bond adapter" + }, + "interfaceName": { + "type": "string", + "description": "A physical name of the bond interface" + }, + "lowerLayerNames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Logical names of aggregated PhysicalIOs" + }, + "bondMode": { + "$ref": "#/definitions/BondMode", + "description": "Bonding mode", + "title": "A bonding mode specifies the policy indicating how bonding slaves are used\nduring network transmission" + }, + "mii": { + "$ref": "#/definitions/MIIMonitor", + "description": "MII monitor" + }, + "arp": { + "$ref": "#/definitions/ArpMonitor", + "description": "ARP monitor" + }, + "lacpRate": { + "$ref": "#/definitions/LacpRate", + "description": "LACPDU transmission rate in 802.3ad mode" + }, + "interface": { + "$ref": "#/definitions/SysInterface", + "description": "System Sub-Interface" + } + }, + "description": "bondAdapter represents a single bond interface", + "title": "bondAdapter payload detail" + }, + "BondMode": { + "type": "string", + "enum": [ + "BOND_MODE_UNSPECIFIED", + "BOND_MODE_BALANCE_RR", + "BOND_MODE_ACTIVE_BACKUP", + "BOND_MODE_BALANCE_XOR", + "BOND_MODE_BROADCAST", + "BOND_MODE_802_3AD", + "BOND_MODE_BALANCE_TLB", + "BOND_MODE_BALANCE_ALB" + ], + "default": "BOND_MODE_UNSPECIFIED", + "description": "A bonding mode specifies the policy indicating how bonding slaves are used\nduring network transmission.\n\n - BOND_MODE_UNSPECIFIED: BOND_MODE_UNSPECIFIED : if bonding mode is not explicitly specified,\nthen by default Round-Robin policy is applied (BOND_MODE_BALANCE_RR).\n - BOND_MODE_BALANCE_RR: BOND_MODE_BALANCE_RR : transmit packets in sequential order from the first\navailable slave through the last. This mode provides load balancing\nand fault tolerance.\nThis is the default bonding mode.\n - BOND_MODE_ACTIVE_BACKUP: BOND_MODE_ACTIVE_BACKUP : only one slave in the bond is active.\nA different slave becomes active if, and only if, the active slave fails.\nThe bond's MAC address is externally visible on only one port to avoid\nconfusing the switch.\nThis mode provides fault tolerance.\n - BOND_MODE_BALANCE_XOR: BOND_MODE_BALANCE_XOR : packet source and destination MAC addresses are\nused to calculate hash and select the output slave interface accordingly.\nThis algorithm will place all traffic destined to a particular network\npeer on the same slave.\nThis mode provides load balancing and fault tolerance.\n - BOND_MODE_BROADCAST: BOND_MODE_BROADCAST: transmits everything on all slave interfaces.\nThis mode provides fault tolerance.\n - BOND_MODE_802_3AD: BOND_MODE_802_3AD : IEEE 802.3ad Dynamic link aggregation.\nCreates aggregation groups that share the same speed and duplex settings.\nUtilizes all slaves in the active aggregator according to the 802.3ad\nspecification.\nRequires that upstream networks equipment supports and has the IEEE 802.3ad\nDynamic link aggregation properly configured.\n - BOND_MODE_BALANCE_TLB: BOND_MODE_BALANCE_TLB : adaptive transmit load balancing. Channel bonding that\ndoes not require any special switch support. The outgoing traffic\nis distributed according to the current load (computed relative to the speed)\non each slave.\nIncoming traffic is received by the current slave. If the receiving slave\nfails, another slave takes over the MAC address of the failed receiving slave.\nThis mode provides (TX) load balancing and fault tolerance.\n - BOND_MODE_BALANCE_ALB: BOND_MODE_BALANCE_ALB : adaptive load balancing. Includes BOND_MODE_BALANCE_TLB\nplus receive load balancing (RLB) for IPV4 traffic, and does not require\nany special switch support. The receive load balancing is achieved by ARP\nnegotiation.\nThis mode provides load balancing and fault tolerance." + }, + "CEPCommonCSRProfile": { + "type": "object", + "properties": { + "commonName": { + "type": "string", + "description": "Common Name (CN) - typically the device identifier or hostname" + }, + "organization": { + "type": "string", + "description": "Organization (O) - company or entity name" + }, + "organizationalUnit": { + "type": "string", + "description": "Organizational Unit (OU) - department or division" + }, + "country": { + "type": "string", + "description": "Country (C) - two-letter ISO country code" + }, + "state": { + "type": "string", + "description": "State or Province (ST)" + }, + "locality": { + "type": "string", + "description": "Locality (L) - city name" + }, + "sanUri": { + "type": "array", + "items": { + "type": "string" + }, + "description": "URIs for Subject Alternative Name extension" + }, + "sanEmail": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Email addresses for Subject Alternative Name extension" + }, + "renewPeriodPercent": { + "type": "integer", + "format": "int64", + "description": "Percentage of certificate validity period after which renewal should be attempted (e.g., 80 means renew when 80% of validity has passed)" + }, + "keyType": { + "$ref": "#/definitions/CEPCommonKeyType", + "description": "Key type and size for certificate key pair generation" + }, + "hashAlgorithm": { + "$ref": "#/definitions/CEPCommonHashAlgorithm", + "description": "Hash algorithm used for signing the CSR and SCEP messages" + } + }, + "description": "Certificate Signing Request configuration including subject DN, SANs, and key parameters", + "title": "CSR Profile", + "required": [ + "commonName" + ] + }, + "CEPCommonHashAlgorithm": { + "type": "string", + "enum": [ + "HASH_ALGORITHM_UNSPECIFIED", + "HASH_ALGORITHM_SHA256", + "HASH_ALGORITHM_SHA384", + "HASH_ALGORITHM_SHA512" + ], + "default": "HASH_ALGORITHM_UNSPECIFIED", + "title": "Supported hash algorithms for signing" + }, + "CEPCommonKeyType": { + "type": "string", + "enum": [ + "KEY_TYPE_UNSPECIFIED", + "KEY_TYPE_RSA_2048", + "KEY_TYPE_RSA_3072", + "KEY_TYPE_RSA_4096" + ], + "default": "KEY_TYPE_UNSPECIFIED", + "title": "Supported key types (algorithm + parameters)" + }, + "CEPCommonProjectReference": { + "type": "object", + "properties": { + "projectId": { + "type": "string", + "description": "Project unique identifier" + }, + "projectName": { + "type": "string", + "description": "Project name" + } + }, + "title": "ProjectReference represents a project that references a CEP profile" + }, + "CEPCommonSCEPProfile": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System-generated unique identifier (UUID)", + "readOnly": true + }, + "name": { + "type": "string", + "description": "User-defined unique name for the profile", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+" + }, + "title": { + "type": "string", + "description": "Human-readable display title", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+" + }, + "description": { + "type": "string", + "description": "Detailed description of the profile purpose", + "maxLength": 256 + }, + "scepUrl": { + "type": "string", + "description": "Full SCEP server URL including scheme, host, and path (e.g., https://ca.example.com/scep)" + }, + "useControllerProxy": { + "type": "boolean", + "description": "If true, SCEP requests are routed through the controller proxy; if false, device connects directly to SCEP server" + }, + "secret": { + "$ref": "#/definitions/CEPCommonSCEPProfileSecrets", + "description": "Write-only secret fields (challenge password). Not returned in GET responses." + }, + "encryptedSecrets": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Encrypted secret data (set by server, do not modify)" + }, + "cryptoKey": { + "type": "string", + "description": "Encryption key reference (set by server, do not modify)" + }, + "caCertPem": { + "type": "array", + "items": { + "type": "string", + "format": "byte" + }, + "description": "PEM-encoded trusted CA certificates for SCEP server validation (per RFC8894 section 2.2)" + }, + "csrProfile": { + "$ref": "#/definitions/CEPCommonCSRProfile", + "description": "Certificate Signing Request configuration including subject DN, SANs, and key parameters" + }, + "enterpriseId": { + "type": "string", + "description": "Enterprise ID owning this profile", + "readOnly": true + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "Object revision information", + "readOnly": true + }, + "projectsList": { + "type": "array", + "items": { + "$ref": "#/definitions/CEPCommonProjectReference" + }, + "description": "Projects referencing this CEP profile (populated only when showProjectsList=true)", + "readOnly": true + }, + "profileInUse": { + "type": "boolean", + "description": "True if linked to at least one project, false otherwise", + "readOnly": true + } + }, + "description": "SCEP Certificate Enrollment Profile for obtaining certificates from a SCEP server", + "title": "SCEP Profile", + "required": [ + "name", + "scepUrl", + "caCertPem", + "csrProfile" + ] + }, + "CEPCommonSCEPProfileSecrets": { + "type": "object", + "properties": { + "challengePassword": { + "type": "string", + "description": "SCEP challenge password for certificate enrollment authentication" + } + } + }, + "CEPCommonSCEPProfiles": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/CEPCommonSCEPProfile" + }, + "description": "List of SCEP profiles" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "Pagination cursor for next page" + } + }, + "description": "Paginated list of SCEP profiles", + "title": "SCEP Profiles List" + }, + "Capabilities": { + "type": "object", + "properties": { + "HWAssistedVirtualization": { + "type": "boolean", + "title": "VMX/SVM for amd64 or Arm virtualization extensions for arm64" + }, + "IOVirtualization": { + "type": "boolean", + "title": "I/O Virtualization support" + } + } + }, + "CellularAuthProtocol": { + "type": "string", + "enum": [ + "CELLULAR_AUTH_PROTOCOL_NONE", + "CELLULAR_AUTH_PROTOCOL_PAP", + "CELLULAR_AUTH_PROTOCOL_CHAP", + "CELLULAR_AUTH_PROTOCOL_PAP_AND_CHAP" + ], + "default": "CELLULAR_AUTH_PROTOCOL_NONE", + "description": " - CELLULAR_AUTH_PROTOCOL_NONE: No authentication.\n - CELLULAR_AUTH_PROTOCOL_PAP: Password Authentication Protocol.\n - CELLULAR_AUTH_PROTOCOL_CHAP: Challenge-Handshake Authentication Protocol.\n - CELLULAR_AUTH_PROTOCOL_PAP_AND_CHAP: Both PAP and CHAP." + }, + "CellularMetrics": { + "type": "object", + "properties": { + "ifName": { + "type": "string", + "description": "Network Interface name" + }, + "signalRSSI": { + "type": "number", + "format": "int32", + "description": "Signal RSSI" + }, + "signalRSRQ": { + "type": "number", + "format": "int32", + "description": "Signal RSRQ" + }, + "signalRSRP": { + "type": "number", + "format": "int32", + "description": "Signal RSRP" + }, + "signalSNR": { + "type": "number", + "format": "int32", + "description": "Signal SNR" + }, + "rxTotalPackets": { + "type": "number", + "format": "uint64", + "description": "Rx Total Packets" + }, + "rxDrops": { + "type": "number", + "format": "uint64", + "description": "Rx Drops" + }, + "rxTotalBytes": { + "type": "number", + "format": "uint64", + "description": "Rx Total Bytes" + }, + "txTotalPackets": { + "type": "number", + "format": "uint64", + "description": "Tx Total Packets" + }, + "txDrops": { + "type": "number", + "format": "uint64", + "description": "Tx Drops" + }, + "txTotalBytes": { + "type": "number", + "format": "uint64", + "description": "Tx Total Bytes" + } + }, + "description": "CellularMetrics stores the Cellular Network Stats and Counters", + "title": "CellularMetrics stores the Cellular Network Stats and Counters" + }, + "CellularStatus": { + "type": "object", + "properties": { + "providers": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkProvider" + }, + "description": "List of network providers" + }, + "modem": { + "type": "object", + "$ref": "#/definitions/ModemDetail", + "description": "Modem detail" + }, + "simCards": { + "type": "array", + "items": { + "$ref": "#/definitions/SIMCard" + }, + "description": "List of SIM Cards" + } + }, + "description": "CellularStatus contains status information for a single cellular network", + "title": "CellularStatus contains status information for a single cellular network" + }, + "CertDistinguishedName": { + "type": "object", + "properties": { + "commonName": { + "type": "string", + "description": "Common Name (CN)" + }, + "serialNumber": { + "type": "string", + "description": "Serial Number (SERIALNUMBER)" + }, + "organization": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Organization (O)" + }, + "organizationalUnit": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Organizational Unit (OU)" + }, + "country": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Country (C)" + }, + "stateOrProvince": { + "type": "array", + "items": { + "type": "string" + }, + "description": "State or Province (ST)" + }, + "locality": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Locality (L)" + } + }, + "description": "CertDistinguishedName represents an X.509 distinguished name." + }, + "Certificate": { + "type": "object", + "properties": { + "cert": { + "type": "string", + "description": "base64 string of the parent certificate", + "title": "certificate details" + }, + "pvtKey": { + "type": "string", + "description": "base64 string of the parent pvt key" + }, + "publicKey": { + "type": "string", + "description": "base63 string of the public key" + }, + "passPhrase": { + "type": "string", + "description": "pass phase for the pvt key, this has to be filled if pvt key is encrypted with a pass phrase" + }, + "exportable": { + "type": "boolean", + "description": "Indicates if the private key can be exported." + }, + "reuseKey": { + "type": "boolean", + "description": "Indicates if the same key pair will be used on certificate renewal." + }, + "encryptedSecrets": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "user encrypted secrets map", + "title": "secrets encryption" + }, + "cryptoKey": { + "type": "string", + "description": "Crypto Key for decrypting user secret information" + }, + "publicKeyAlgorithm": { + "type": "string", + "description": "Public key algorithm.", + "title": "encryption algorithm" + }, + "rsaEcryption": { + "$ref": "#/definitions/RSA", + "description": "RSA encryption algorithm of the certificate" + }, + "ecdsaEncryption": { + "$ref": "#/definitions/ECDSA", + "description": "ECDSA encryption algorithm of the certificate" + }, + "validFrom": { + "type": "string", + "format": "date-time", + "description": "Certificate validatity start time", + "title": "certificate validity" + }, + "validTill": { + "type": "string", + "format": "date-time", + "description": "Certificate validatity start time" + }, + "sanValues": { + "$ref": "#/definitions/SANValues", + "description": "This holds the alternative name values like URIs, domain names IPs etc.", + "title": "Subject alternative name values" + }, + "subject": { + "$ref": "#/definitions/Subject", + "description": "Parameters for the subject of the X509 component of a certificate." + }, + "issuer": { + "$ref": "#/definitions/Subject", + "description": "Parameters for the issuer of the X509 component of a certificate." + }, + "serialNumber": { + "type": "string", + "description": "Unique identifier for each Certificate generated by an Certificate Issuer. " + }, + "basicContraintsValid": { + "type": "boolean", + "description": "This fields tells the basic constraints like isCA are correct." + }, + "keyUsage": { + "type": "integer", + "format": "int32", + "description": "Key usage extensions define the purpose of the public key contained in a certificate." + }, + "extendedKeyUsage": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Sequence of extended key usages." + }, + "signatureAlgorithm": { + "type": "string" + } + } + }, + "CertificateEnrollmentDetail": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/EnrollmentType" + }, + "individualCertificateEnrollment": { + "$ref": "#/definitions/IndividualCertificateEnrollment" + }, + "groupCertificateEnrollment": { + "$ref": "#/definitions/GroupCertificateEnrollment" + } + } + }, + "ClusterConfig": { + "type": "object", + "properties": { + "minNodesRequired": { + "type": "integer", + "format": "int64" + } + } + }, + "ClusterInstPolicy": { + "type": "object", + "properties": { + "Id": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "title": { + "type": "string" + }, + "revision": { + "$ref": "#/definitions/ObjectRevision" + } + } + }, + "ClusterNodeStatus": { + "type": "object", + "properties": { + "age": { + "type": "integer", + "format": "int64" + }, + "internalIP": { + "type": "string" + }, + "conditions": { + "type": "string" + }, + "nodeType": { + "$ref": "#/definitions/ClusterNodeType" + } + } + }, + "ClusterNodeType": { + "type": "string", + "enum": [ + "CLUSTER_NODE_TYPE_UNSPECIFIED", + "CLUSTER_NODE_TYPE_MASTER", + "CLUSTER_NODE_TYPE_WORKER", + "CLUSTER_NODE_TYPE_TIE_BREAKER" + ], + "default": "CLUSTER_NODE_TYPE_UNSPECIFIED" + }, + "ClusterPolicy": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/ClusterType", + "description": "Type of cluster" + }, + "appPolicyID": { + "type": "string", + "description": "UUID of the app policy linked to this cluster policy", + "pattern": "[0-9-a-z-]+" + }, + "networkPolicyID": { + "type": "string", + "description": "UUID of the network policy linked to this cluster policy", + "pattern": "[0-9-a-z-]+" + }, + "clusterConfig": { + "$ref": "#/definitions/ClusterConfig", + "description": "Cluster Policy Parameters" + } + }, + "description": "cluster policy to bring up cluster on devices in this project", + "title": "Cluster policy body detail", + "required": [ + "type", + "appPolicyID", + "networkPolicyID" + ] + }, + "ClusterType": { + "type": "string", + "enum": [ + "CLUSTER_TYPE_UNSPECIFIED", + "CLUSTER_TYPE_K3S", + "CLUSTER_TYPE_TKG_ATTACH" + ], + "default": "CLUSTER_TYPE_UNSPECIFIED", + "title": "- CLUSTER_TYPE_K3S: cluster type is k3s\n - CLUSTER_TYPE_TKG_ATTACH: cluster type is TKG, with subtype ATTACH" + }, + "CmdArg": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Command line argument: key" + }, + "value": { + "type": "string", + "description": "Command line argument: value" + } + }, + "description": "CmdArg store the passed command line key and values", + "title": "CmdArg is used to store the command line arguments" + }, + "ConfigurationLock": { + "type": "string", + "enum": [ + "CONFIGURATION_LOCK_UNSPECIFIED", + "CONFIGURATION_LOCK_ENABLED", + "CONFIGURATION_LOCK_DISABLED" + ], + "default": "CONFIGURATION_LOCK_UNSPECIFIED" + }, + "ConfigurationLockPolicy": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "unique policy id", + "readOnly": true, + "pattern": "[0-9-a-z-]+" + }, + "configLock": { + "$ref": "#/definitions/ConfigurationLock", + "description": "configuration lock setting" + } + }, + "description": "Configuration lock policy to enforce on all devices of the project", + "title": "configuration lock policy body detail", + "required": [ + "configLock" + ] + }, + "ContainerDetail": { + "type": "object", + "properties": { + "containerCreateOption": { + "type": "string", + "description": "Create options direct the creation of the Docker container", + "title": "Base64 encoded container specific details" + } + }, + "description": "common container detail." + }, + "CpuSummary": { + "type": "object", + "properties": { + "Utilization": { + "type": "number", + "format": "double", + "description": "CPU Utilization" + } + }, + "description": "CPU Summary", + "title": "CPU Summary" + }, + "Cursor": { + "type": "object", + "properties": { + "pageToken": { + "type": "string", + "description": "Page Token" + }, + "orderBy": { + "type": "array", + "items": { + "type": "string" + }, + "description": "OrderBy helps in sorting the list response" + }, + "pageNum": { + "type": "number", + "format": "int64", + "description": "Page Number" + }, + "pageSize": { + "type": "number", + "format": "int64", + "description": "Defines the page size" + }, + "totalPages": { + "type": "number", + "format": "int64", + "description": "Total number of pages to be fetched." + } + }, + "description": "Cursor helps in filtering the various list response like edge-app bundle list, model list, bundle list etc. ", + "title": "Cursor is used as filter in list operation." + }, + "CustomConfig": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of CustomConfig (Required)" + }, + "add": { + "type": "boolean", + "description": "Add the Custom Config to App Instance (Optional. Default: False)" + }, + "override": { + "type": "boolean", + "description": "Override existing custom config from App Bundle Manifest (Optional. Default: False)" + }, + "allowStorageResize": { + "type": "boolean", + "description": "Allow Appinstance storage to be resized after app instance is created. (Optional. Default: False)" + }, + "fieldDelimiter": { + "type": "string", + "description": "Field delimiter used in specifying variables in template. (Required)" + }, + "template": { + "type": "string", + "description": "base64 encrypted template string. (Optional)" + }, + "variableGroups": { + "type": "array", + "items": { + "$ref": "#/definitions/CustomConfigVariableGroup" + }, + "description": "List of Variable groups. (Required)" + } + } + }, + "CustomConfigVariableGroup": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the Variable Group(Required)" + }, + "variables": { + "type": "array", + "items": { + "$ref": "#/definitions/VariableGroupVariable" + }, + "description": "List of variables(Required)" + }, + "required": { + "type": "boolean", + "description": "Indicates if the variable group is required to be specified for the App Instance. (Optional. Default:False)" + }, + "condition": { + "$ref": "#/definitions/VariableGroupCondition", + "description": "Condition to apply the variable group. (Optional. Default: None)" + } + } + }, + "DNSInfo": { + "type": "object", + "properties": { + "servers": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Array of dns server" + }, + "domain": { + "type": "string", + "description": "domain name" + }, + "search": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Array of search strings" + } + }, + "description": "DNSInfo is used to store Domain Name Server configuration. ", + "title": "DNSInfo consists of DNS Configurations.", + "required": [ + "servers", + "domain", + "search" + ] + }, + "DPSServiceDetail": { + "type": "object", + "properties": { + "serviceDetail": { + "$ref": "#/definitions/AzureResourceAndServiceDetail" + }, + "enrollment": { + "$ref": "#/definitions/EnrollmentDetail" + } + } + }, + "DebugKnobDetail": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "system generated unique id for a device", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+" + }, + "debugKnob": { + "type": "boolean", + "description": "debug knob flag" + }, + "expiry": { + "type": "string", + "format": "uint64", + "description": "debug expiry time in minutes" + }, + "expired": { + "type": "boolean", + "description": "debug knob expiry status flag" + } + }, + "description": "Device debug knob configuration request payload holds the device debug mode properties", + "title": "Device debug knob configuration" + }, + "Deployment": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "system generated unique id for an deployment" + }, + "name": { + "type": "string", + "description": "user defined name for the deployment" + }, + "title": { + "type": "string", + "description": "user defined title for the deployment" + }, + "appInstPolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/AppInstPolicy" + }, + "description": "list of app instance policies" + }, + "networkInstPolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkInstPolicy" + }, + "description": "list of network instance policies" + }, + "volumeInstPolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/VolumeInstPolicy" + }, + "description": "list of volume instamce policies" + }, + "devicePolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/DevicePolicy" + }, + "description": "list of device policies" + }, + "integrationPolicy": { + "$ref": "#/definitions/IntegrationPolicy", + "description": "integration policy details" + }, + "clusterPolicy": { + "$ref": "#/definitions/ClusterInstPolicy", + "description": "cluster policy details" + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "object revision" + }, + "deploymentTag": { + "type": "string", + "description": "user defined tag for the deployment, which is used while targeting set of devices" + }, + "projectId": { + "type": "string", + "description": "project id", + "title": "Adding projectId to support for URL params" + }, + "edgeviewPolicy": { + "$ref": "#/definitions/EdgeViewPolicy", + "description": "edge view policy details" + } + } + }, + "DeploymentConfigSummary": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "system generated unique id for an deployment" + }, + "name": { + "type": "string", + "description": "user defined deployment name" + }, + "title": { + "type": "string", + "description": "user defined deployment title" + }, + "appInstPolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/PolicyCommon" + }, + "description": "list of app instance policies" + }, + "networkInstPolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/PolicyCommon" + }, + "description": "list of network instance policies" + }, + "volumeInstPolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/PolicyCommon" + }, + "description": "list of volume instance policies" + }, + "devicePolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/PolicyCommon" + }, + "description": "list of device policies" + }, + "integrationPolicy": { + "$ref": "#/definitions/PolicyCommon", + "description": "integration policy details" + }, + "clusterPolicy": { + "$ref": "#/definitions/PolicyCommon", + "description": "cluster policy details" + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "object revision details" + }, + "deploymentTag": { + "type": "string", + "description": "user defined tag for an deployment" + }, + "edgeViewPolicy": { + "$ref": "#/definitions/PolicyCommon", + "description": "edge view policy details" + } + } + }, + "DeploymentType": { + "type": "string", + "enum": [ + "DEPLOYMENT_TYPE_UNSPECIFIED", + "DEPLOYMENT_TYPE_STAND_ALONE", + "DEPLOYMENT_TYPE_AZURE", + "DEPLOYMENT_TYPE_K3S", + "DEPLOYMENT_TYPE_AWS", + "DEPLOYMENT_TYPE_K3S_AZURE", + "DEPLOYMENT_TYPE_K3S_AWS", + "DEPLOYMENT_TYPE_VMWARE_VCE", + "DEPLOYMENT_TYPE_VMWARE_TKG_ATTACH", + "DEPLOYMENT_TYPE_DOCKER_RUNTIME" + ], + "default": "DEPLOYMENT_TYPE_UNSPECIFIED" + }, + "Deployments": { + "type": "object", + "properties": { + "summaryByState": { + "$ref": "#/definitions/Summary", + "description": "deployment instance by summary" + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/DeploymentConfigSummary" + }, + "description": "deployment instance summary list response" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "cursor next" + } + } + }, + "Details": { + "type": "object", + "example": { + "appCategory": "APP_CATEGORY_CLOUD_APPLICATION", + "os": "Linux" + }, + "properties": { + "category": { + "type": "string", + "default": "All", + "description": "UI map: AppMarketplacePage:AppCard:DescriptionField, AppEditPage:IdentityPane:CategoryField, AppDetailsPage:IdentityPane:CategoryField", + "title": "Type of the Edge application" + }, + "os": { + "type": "string", + "title": "Edge application's Operating System" + }, + "appCategory": { + "$ref": "#/definitions/AppCategory", + "default": "APP_CATEGORY_OTHERS", + "title": "Edge application category" + }, + "logo": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "UI map: AppEditPage:IdentityPane:Logo, AppDetailsPage:IdentityPane:Logo", + "title": "App Logo" + }, + "screenshotList": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "UI map: AppEditPage:IdentityPane:Screenshot_Fields, AppDetailsPage:IdentityPane:Screenshot_Fields", + "title": "App Screenshots" + }, + "licenseList": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "UI map: AppMarketplacePage:AppCard:License, AppEditPage:IdentityPane:License, AppDetailsPage:IdentityPane:License", + "title": "App Licenses" + }, + "support": { + "type": "string", + "description": "UI map: AppEditPage:DeveloperPane:Support_Description_Field, AppDetailsPage:DeveloperPane:Support_Description_Field", + "title": "Support Description" + }, + "agreementList": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "UI map: AppEditPage:DeveloperPane:Developer_Agreement_Field, AppDetailsPage:DeveloperPane:Developer_Agreement_Field", + "title": "Developer Agreements" + } + }, + "description": "Edge Application Artifact Details", + "title": "Edge Application detail", + "required": [ + "appCategory" + ] + }, + "DevAccessPolicy": { + "type": "object", + "properties": { + "allowDev": { + "type": "boolean", + "title": "device side of edge-view access is allowed or not" + } + } + }, + "DevDataSecAtRest": { + "type": "object", + "properties": { + "status": { + "$ref": "#/definitions/DeviceDataSecurityAtRestStatus" + }, + "name": { + "type": "string" + }, + "errInfo": { + "$ref": "#/definitions/DeviceError" + } + } + }, + "DevZedServer": { + "type": "object", + "properties": { + "hostName": { + "type": "string", + "description": "Hostname for dev zed server" + }, + "EID": { + "type": "array", + "items": { + "type": "string" + }, + "description": "EID" + } + }, + "description": "DevZedServer request payload", + "title": "DevZedServer payload detail", + "required": [ + "hostName", + "EID" + ] + }, + "DeviceAttestPolicyType": { + "type": "string", + "enum": [ + "DEVICE_ATTEST_POLICY_TYPE_UNSPECIFIED", + "DEVICE_ATTEST_POLICY_TYPE_ACCEPT", + "DEVICE_ATTEST_POLICY_TYPE_ENFORCE" + ], + "default": "DEVICE_ATTEST_POLICY_TYPE_UNSPECIFIED", + "description": " - DEVICE_ATTEST_POLICY_TYPE_ACCEPT: Do not enforce attestation. All devices are marked as successfully attested.\n - DEVICE_ATTEST_POLICY_TYPE_ENFORCE: Enforce attestation. Devices failing attestation are marked accordingly." + }, + "DeviceAttestationPolicy": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/DeviceAttestPolicyType", + "description": "Attestation policy type" + } + }, + "description": "Attestation policy to enforce on devices of a project", + "title": "Attestation policy body detail", + "required": [ + "type" + ] + }, + "DeviceBootReason": { + "type": "string", + "enum": [ + "DEVICE_BOOT_REASON_UNSPECIFIED", + "DEVICE_BOOT_REASON_FIRST", + "DEVICE_BOOT_REASON_REBOOT_CMD", + "DEVICE_BOOT_REASON_UPDATE", + "DEVICE_BOOT_REASON_FALLBACK", + "DEVICE_BOOT_REASON_DISCONNECT", + "DEVICE_BOOT_REASON_FATAL", + "DEVICE_BOOT_REASON_OOM", + "DEVICE_BOOT_REASON_WATCHDOG_HUNG", + "DEVICE_BOOT_REASON_WATCHDOG_PID", + "DEVICE_BOOT_REASON_KERNEL", + "DEVICE_BOOT_REASON_POWER_FAIL", + "DEVICE_BOOT_REASON_UNKNOWN", + "DEVICE_BOOT_REASON_VAULT_FAILED", + "DEVICE_BOOT_REASON_POWEROFF_CMD", + "DEVICE_BOOT_REASON_PARSE_FAIL" + ], + "default": "DEVICE_BOOT_REASON_UNSPECIFIED" + }, + "DeviceCerts": { + "type": "object", + "properties": { + "pemCert": { + "type": "string", + "format": "byte", + "description": "pem certificate" + }, + "pemKey": { + "type": "string", + "format": "byte", + "description": "pem key" + } + }, + "description": "Device certificates payload", + "title": "DeviceCerts payload detail" + }, + "DeviceCmdsSubType": { + "type": "string", + "enum": [ + "DeviceNoOp", + "DeviceStart", + "DeviceStop", + "DeviceReboot", + "DeviceShutdown", + "DeviceUpdateOS", + "DeviceApplyOS", + "DeviceReset", + "DeviceAddOS", + "DeviceDropOS", + "DeviceOffboard", + "DeviceActivate", + "DeviceDeActivate", + "DeviceBaseosRetry", + "DeviceStartDebugMode", + "DeviceStopDebugMode", + "PreparePowerOff", + "DeviceStartEdgeviewMode", + "DeviceStopEdgeviewMode", + "DeviceEdgeviewClientScript" + ], + "default": "DeviceNoOp", + "description": " - DeviceNoOp: Device Operation: No Operation\n - DeviceStart: Device Operation: Start\n - DeviceStop: Device Operation: Stop\n - DeviceReboot: Device Operation: Reboot: Power cycle the device\n - DeviceShutdown: Device Operation: Shutdown- Power off the device\n - DeviceUpdateOS: Device Operation: Update OS- deprecated\n - DeviceApplyOS: Device Operation: Apply OS- Change Boot order of installed images\n - DeviceReset: Device Operation: Reset- Config reset to factory default\n - DeviceAddOS: Device Operation: Add OS- Install new image but don't change boot order\n - DeviceDropOS: Device Operation: Drop OS- Remove uninstalled image but don't change boot order\n - DeviceOffboard: Device Operation Type: offboard the device\n - DeviceActivate: Device Activate\n - DeviceDeActivate: Device Deactivate\n - DeviceBaseosRetry: Device Operation: Retry OS\n - DeviceStartDebugMode: Device Operation: Run device in debug mode.\n - DeviceStopDebugMode: Device Operation: Stop device in debug mode.\n - PreparePowerOff: Device Operation: Gracefully shutdown all apps and prepare for power down.\n - DeviceStartEdgeviewMode: Device Operation: Run device in edgeview mode.\n - DeviceStopEdgeviewMode: Device Operation: Stop device in edgeview mode.\n - DeviceEdgeviewClientScript: Device Operation: get Edgeview client script if activated." + }, + "DeviceConfig": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "system generated unique id for a device", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+" + }, + "name": { + "type": "string", + "description": "user specified device name" + }, + "title": { + "type": "string", + "description": "user specified title" + }, + "description": { + "type": "string", + "description": "user specified description" + }, + "revision": { + "type": "object", + "$ref": "#/definitions/ObjectRevision", + "description": "Object revision details" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "utype": { + "type": "string", + "$ref": "#/definitions/ModelArchType", + "description": "device model arch type" + }, + "projectId": { + "type": "string", + "description": "project name" + }, + "serialno": { + "type": "string", + "description": "Device serial number" + }, + "location": { + "type": "string", + "description": "Device location: deprecated" + }, + "cpu": { + "type": "number", + "format": "int64", + "description": "CPU (configured values)" + }, + "thread": { + "type": "number", + "format": "int64", + "description": "Threads" + }, + "memory": { + "type": "number", + "format": "int64", + "description": "Device memory in MBs" + }, + "storage": { + "type": "number", + "format": "int64", + "description": "Device storage in GBs" + }, + "onboarding": { + "type": "object", + "$ref": "#/definitions/DeviceCerts", + "description": "Device level certificates used while onboarding" + }, + "identity": { + "type": "string", + "format": "byte", + "description": "Device identity" + }, + "obkey": { + "type": "string", + "description": "Object key" + }, + "token": { + "type": "string", + "description": "Single use token" + }, + "clientIp": { + "type": "string", + "description": "Client IP" + }, + "dlisp": { + "type": "object", + "$ref": "#/definitions/DeviceLisp", + "description": "device Lisp" + }, + "clusterID": { + "type": "string", + "description": "System defined universally unique clusterInstance ID, unique across the enterprise.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "adminState": { + "type": "object", + "$ref": "#/definitions/AdminState", + "description": "administrative state of device" + }, + "resetCounter": { + "type": "number", + "format": "int64", + "description": "devicereset counter" + }, + "resetTime": { + "type": "string", + "description": "device reset time" + }, + "baseImage": { + "type": "array", + "items": { + "$ref": "#/definitions/BaseOSImage" + }, + "description": "base images" + }, + "modelId": { + "type": "string", + "description": "device model" + }, + "configItem": { + "type": "array", + "items": { + "$ref": "#/definitions/EDConfigItem" + }, + "description": "ED configurations" + }, + "deprecated": { + "type": "string", + "description": "deprecated field" + }, + "vlanAdapters": { + "type": "array", + "items": { + "$ref": "#/definitions/vlanAdapter" + }, + "description": "A list of VLAN sub-interfaces configured for EVE management traffic and for local network instances" + }, + "interfaces": { + "type": "array", + "items": { + "$ref": "#/definitions/SysInterface" + }, + "description": "System Interface list" + }, + "devLocation": { + "type": "object", + "$ref": "#/definitions/GeoLocation", + "description": "User specified geo location" + }, + "sitePictures": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Site captured pictures" + }, + "assetId": { + "type": "string", + "description": "Device asset ID" + }, + "baseOsRetryCounter": { + "type": "number", + "format": "int64", + "description": "device baseos retry counter" + }, + "baseOsRetryTime": { + "type": "string", + "description": "device baseos retry time" + }, + "debugKnob": { + "type": "object", + "$ref": "#/definitions/DebugKnobDetail", + "description": "debug knob details for the device" + }, + "defaultNetInst": { + "type": "object", + "$ref": "#/definitions/NetInstConfig", + "description": "default network instance details" + }, + "preparePowerOffCounter": { + "type": "number", + "format": "int64", + "description": "prepare poweroff counter" + }, + "preparePowerOffTime": { + "type": "string", + "description": "prepare poweroff time" + }, + "edgeviewconfig": { + "type": "object", + "$ref": "#/definitions/EdgeviewCfg", + "description": "edgeview configuration for device" + }, + "generateSoftSerial": { + "type": "boolean", + "description": "indicates whether a soft serial should be generated; it will work ONLY when device is created" + }, + "deploymentTag": { + "type": "string", + "description": "user defined tag for the device, which is used while deploying policies." + }, + "localOperatorConsoleURL": { + "type": "string", + "description": "local operator console url", + "title": "will be deprecated 73" + }, + "configLock": { + "$ref": "#/definitions/DeviceConfigLock", + "description": "device configuration lock setting" + }, + "edgeviewAllow": { + "type": "boolean", + "description": "Allow device to enable Edgeview", + "title": "To support edge view policy in deployments, adding a new column in device table" + }, + "clusterInterface": { + "type": "string", + "description": "Cluster Interface", + "title": "The following two fields are related to the edge node cluster configuration" + }, + "edgeNodeCluster": { + "type": "object", + "$ref": "#/definitions/EdgeNodeClusterConfig", + "description": "Edge Node Cluster Configuration" + }, + "baseOsForceUpgrade": { + "type": "boolean", + "description": "Force upgrade base OS" + }, + "project": { + "type": "object", + "$ref": "#/definitions/ProjectInfo", + "description": "Project specific info" + }, + "model": { + "type": "object", + "$ref": "#/definitions/ModelInfo", + "description": "Model specific info" + }, + "edgeSyncConfig": { + "type": "object", + "$ref": "#/definitions/EdgeSyncConfig", + "description": "edge sync config" + }, + "pcrPolicy": { + "$ref": "#/definitions/PolicyConfig", + "description": "PCR policy for TPM key sealing on this specific device (overrides project policy)" + }, + "bondAdapter": { + "type": "array", + "items": { + "$ref": "#/definitions/BondAdapter" + }, + "description": "A list of bond interfaces" + } + }, + "description": "Device Configuration request payload holds the device properties", + "title": "Device Configuration payload detail", + "required": [ + "name", + "title", + "projectId", + "modelId" + ] + }, + "DeviceConfigList": { + "type": "object", + "properties": { + "summaryByState": { + "type": "object", + "$ref": "#/definitions/Summary", + "description": "Summary by state" + }, + "summaryByTagDistribution": { + "type": "object", + "$ref": "#/definitions/Summary", + "description": "Summary by project distribution" + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/DeviceConfigSummary" + }, + "description": "device config list" + }, + "next": { + "type": "object", + "$ref": "#/definitions/Cursor", + "description": "filter next" + } + }, + "description": "Device configuration request payload", + "title": "Device configuration payload detail", + "required": [ + "summaryByState", + "list", + "next" + ] + }, + "DeviceConfigLock": { + "type": "string", + "enum": [ + "DEVICE_CONFIG_LOCK_UNSPECIFIED", + "DEVICE_CONFIG_LOCK_ENABLED", + "DEVICE_CONFIG_LOCK_DISABLED" + ], + "default": "DEVICE_CONFIG_LOCK_UNSPECIFIED" + }, + "DeviceConfigSummary": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "system generated unique id for a device", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+" + }, + "name": { + "type": "string", + "description": "user specified device name" + }, + "title": { + "type": "string", + "description": "user specified title" + }, + "description": { + "type": "string", + "description": "user specified description" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "utype": { + "type": "string", + "$ref": "#/definitions/ModelArchType", + "description": "device model arch type" + }, + "projectId": { + "type": "string", + "description": "project name" + }, + "serialno": { + "type": "string", + "description": "Device serial number" + }, + "adminState": { + "type": "object", + "$ref": "#/definitions/AdminState", + "description": "administrative state of device" + }, + "modelId": { + "type": "string", + "description": "device model" + }, + "clusterID": { + "type": "string", + "description": "System defined universally unique clusterInstance ID, unique across the enterprise.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "baseImage": { + "type": "array", + "items": { + "$ref": "#/definitions/BaseOSImage" + }, + "description": "base images" + }, + "interfaces": { + "type": "array", + "items": { + "$ref": "#/definitions/SysInterface" + }, + "description": "System Interface list" + }, + "debugKnob": { + "type": "object", + "$ref": "#/definitions/DebugKnobDetail", + "description": "debug knob details for the device" + }, + "deploymentTag": { + "type": "string", + "description": "user defined tag for the device, which is used while deploying policies." + }, + "vlanAdapters": { + "type": "array", + "items": { + "$ref": "#/definitions/vlanAdapter" + }, + "description": "A list of VLAN adapters" + }, + "revision": { + "type": "object", + "$ref": "#/definitions/ObjectRevision", + "description": "Object revision details" + }, + "bondAdapter": { + "type": "array", + "items": { + "$ref": "#/definitions/BondAdapter" + }, + "description": "A list of Bond adapters" + } + }, + "description": "Device Configuration request payload holds the device properties", + "title": "Device Configuration payload summary", + "required": [ + "name", + "title", + "projectId", + "modelId" + ] + }, + "DeviceDataSecurityAtRestStatus": { + "type": "string", + "enum": [ + "DEVICE_DATA_SECURITY_AT_REST_UNKNOWN", + "DEVICE_DATA_SECURITY_AT_REST_DISABLED", + "DEVICE_DATA_SECURITY_AT_REST_ENABLED", + "DEVICE_DATA_SECURITY_AT_REST_ERROR" + ], + "default": "DEVICE_DATA_SECURITY_AT_REST_UNKNOWN" + }, + "DeviceEntity": { + "type": "object", + "properties": { + "entity": { + "$ref": "#/definitions/Entity" + }, + "entityId": { + "type": "string" + }, + "entityName": { + "type": "string" + } + } + }, + "DeviceError": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Description of the error" + }, + "severity": { + "type": "string", + "$ref": "#/definitions/Severity", + "description": "Severity of the error" + }, + "timestamp": { + "type": "object", + "format": "date-time", + "description": "Timestamp at which error had occurred" + }, + "entities": { + "type": "array", + "items": { + "$ref": "#/definitions/DeviceEntity" + }, + "description": "objects referenced by the description or retry_condition" + }, + "retryCondition": { + "type": "string", + "description": "condition for retry" + } + }, + "description": "DeviceError store the error occurred at the device side", + "title": "DeviceError is used to store the error details of the hardware.", + "required": [ + "description", + "severity", + "timestamp", + "entities" + ] + }, + "DeviceGenerateImageArchVariant": { + "type": "string", + "enum": [ + "Generic", + "Fr201", + "Jetson" + ], + "default": "Generic" + }, + "DeviceGenerateImageType": { + "type": "string", + "enum": [ + "Installer", + "Live" + ], + "default": "Installer" + }, + "DeviceHWSecurityModuleStatus": { + "type": "string", + "enum": [ + "DEVICE_HW_SECURITY_MODULE_STATUS_UNSPECIFIED", + "DEVICE_HW_SECURITY_MODULE_STATUS_NOT_FOUND", + "DEVICE_HW_SECURITY_MODULE_STATUS_DISABLED", + "DEVICE_HW_SECURITY_MODULE_STATUS_ENABLED" + ], + "default": "DEVICE_HW_SECURITY_MODULE_STATUS_UNSPECIFIED" + }, + "DeviceImageGenerateStatus": { + "type": "string", + "enum": [ + "Unavailable", + "Starting", + "InProgress", + "DownloadingContainerImage", + "RunningContainer", + "UploadingImage", + "Successful", + "Failed" + ], + "default": "Unavailable" + }, + "DeviceInfo": { + "type": "object", + "properties": { + "machineArch": { + "type": "string" + }, + "cpuArch": { + "type": "string" + }, + "platform": { + "type": "string" + }, + "nCpu": { + "type": "integer", + "format": "int64" + }, + "memMB": { + "type": "string", + "format": "uint64" + }, + "storageMB": { + "type": "string", + "format": "uint64" + } + } + }, + "DeviceInfoMsg": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "id": { + "type": "string" + }, + "adminState": { + "$ref": "#/definitions/AdminState" + }, + "runState": { + "$ref": "#/definitions/RunState" + }, + "upTime": { + "type": "string", + "format": "date-time" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "title": "deprecated = 6;", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "lastUpdate": { + "type": "string", + "format": "date-time" + }, + "bootTime": { + "type": "string", + "format": "date-time" + }, + "netStatusList": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkStatus" + } + }, + "dns": { + "$ref": "#/definitions/DNSInfo" + }, + "ioStatusList": { + "type": "array", + "items": { + "$ref": "#/definitions/IoBundleStatus" + } + }, + "storageList": { + "type": "array", + "items": { + "$ref": "#/definitions/StorageStatus" + } + }, + "blobList": { + "type": "array", + "items": { + "$ref": "#/definitions/BlobStatus" + } + }, + "netCounterList": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkCounters" + } + }, + "hostName": { + "type": "string" + }, + "swInfo": { + "type": "array", + "items": { + "$ref": "#/definitions/DeviceSWInfo" + } + }, + "zcCounters": { + "type": "array", + "items": { + "$ref": "#/definitions/ZedcloudCounters" + } + }, + "rawStatus": { + "type": "string" + }, + "Memory": { + "$ref": "#/definitions/MemorySummary", + "description": "memory - OBSOLETE. Use memorySummary instead." + }, + "Storage": { + "$ref": "#/definitions/StorageSummary" + }, + "minfo": { + "$ref": "#/definitions/ZManufacturerInfo" + }, + "dinfo": { + "$ref": "#/definitions/DeviceInfo" + }, + "Cpu": { + "$ref": "#/definitions/CpuSummary" + }, + "lastRebootReason": { + "type": "string" + }, + "lastRebootTime": { + "type": "string", + "format": "date-time" + }, + "dataSecInfo": { + "type": "array", + "items": { + "$ref": "#/definitions/DevDataSecAtRest" + } + }, + "devError": { + "type": "array", + "items": { + "$ref": "#/definitions/DeviceError" + } + }, + "projectId": { + "type": "string" + }, + "title": { + "type": "string" + }, + "attestState": { + "$ref": "#/definitions/AttestState" + }, + "deviceRebootReason": { + "$ref": "#/definitions/DeviceBootReason" + }, + "clusterID": { + "type": "string", + "description": "System defined universally unique clusterInstance ID, unique across the enterprise.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "memorySummary": { + "$ref": "#/definitions/DeviceMemorySummary", + "description": "Device memory Info" + }, + "capabilities": { + "$ref": "#/definitions/Capabilities", + "description": "Edge node virtualization capabilities.", + "title": "Information about hardware capabilities" + }, + "debugKnob": { + "type": "boolean", + "title": "debug knob expiry time" + }, + "debugKnobExpiryTime": { + "type": "string", + "format": "date-time" + }, + "physicalStorage": { + "type": "array", + "items": { + "$ref": "#/definitions/PhysicalStorage" + } + }, + "zpoolMetrics": { + "$ref": "#/definitions/StorageDeviceMetrics", + "description": "Last received counters for zpool metrics." + }, + "cellularMetrics": { + "type": "array", + "items": { + "$ref": "#/definitions/CellularMetrics" + }, + "description": "Last received cellular metrics." + }, + "ntpSources": { + "$ref": "#/definitions/NtpSources", + "description": "List of peers describing to which NTP daemon (e.g. chronyd) is synchronized on EVE side" + }, + "optionalCapabilities": { + "$ref": "#/definitions/OptionalCapabilities", + "description": "Optional capabilities of the device" + }, + "clusterNodeStatus": { + "$ref": "#/definitions/ClusterNodeStatus", + "description": "Cluster node status" + }, + "apiCapability": { + "$ref": "#/definitions/infoAPICapability", + "title": "API Capabilities" + }, + "memoryReport": { + "$ref": "#/definitions/ECCMemoryReport" + }, + "hardwareInfo": { + "$ref": "#/definitions/HardwareInfo" + }, + "memoryReportStatus": { + "$ref": "#/definitions/ECCMemoryReportStatus" + }, + "enrolledCerts": { + "type": "array", + "items": { + "$ref": "#/definitions/EnrolledCertInfo" + }, + "description": "Certificates enrolled via SCEP on the device", + "title": "Certificates enrolled via SCEP" + }, + "pnacMetrics": { + "type": "array", + "items": { + "$ref": "#/definitions/PNACMetricInfo" + }, + "description": "PNAC 802.1X authentication metrics per network port", + "title": "PNAC (802.1X) authentication metrics per port" + }, + "remoteAccessDisabled": { + "type": "boolean", + "title": "Remote access disabled flag reported by the device (/config/remote_access_disabled sentinel file)" + } + } + }, + "DeviceLBConfig": { + "type": "object", + "properties": { + "interface": { + "type": "string" + }, + "startIP": { + "type": "string" + } + } + }, + "DeviceLBConfigList": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/DeviceLBConfig" + } + } + } + }, + "DeviceLisp": { + "type": "object", + "properties": { + "lispMapServers": { + "type": "array", + "items": { + "$ref": "#/definitions/LispServer" + }, + "description": "List of Lisp servers" + }, + "lispInstance": { + "type": "number", + "format": "int64", + "description": "LISP instance" + }, + "EID": { + "type": "string", + "description": "EID" + }, + "EIDHashLen": { + "type": "number", + "format": "int64", + "description": "EID hash length" + }, + "zedServers": { + "type": "array", + "items": { + "$ref": "#/definitions/DevZedServer" + }, + "description": "Zed development servers" + }, + "eidAllocationPrefix": { + "type": "string", + "format": "byte", + "description": "EID allocation prefix" + }, + "eidAllocationPrefixLen": { + "type": "number", + "format": "int64", + "description": "EID allocation prefix length" + }, + "clientAddr": { + "type": "string", + "description": "Client Address" + }, + "mode": { + "type": "string", + "description": "TEMP : flag to indicate which version of LISP data plane should be running on the device" + } + }, + "description": "DeviceLisp request payload", + "title": "DeviceLisp payload detail", + "required": [ + "lispMapServers", + "lispInstance", + "EID", + "EIDHashLen", + "zedServers", + "eidAllocationPrefix", + "eidAllocationPrefixLen", + "clientAddr", + "mode" + ] + }, + "DeviceLoadConfig_HttpRequestDeviceLoad_HttpRequest": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "FREE", + "MODERATE", + "HEAVY" + ], + "default": "UNSPECIFIED", + "title": "DeviceLoad_HttpRequest - Only for swagger documentation" + }, + "DeviceLocation": { + "type": "object", + "properties": { + "location": { + "type": "string" + }, + "count": { + "type": "integer", + "format": "int64" + } + } + }, + "DeviceLocations": { + "type": "object", + "properties": { + "deviceLocations": { + "type": "array", + "items": { + "$ref": "#/definitions/DeviceLocation" + } + }, + "next": { + "$ref": "#/definitions/Cursor" + } + } + }, + "DeviceMemorySummary": { + "type": "object", + "properties": { + "deviceMemoryMB": { + "type": "number", + "format": "double", + "description": "Total memory on the device.", + "title": "deviceMemoryMB >= allocatedForAppsMB + allocatedForEveMB" + }, + "allocatedAppsMB": { + "type": "number", + "format": "double", + "description": "Total memory allocated to app instances." + }, + "allocatedEveMB": { + "type": "number", + "format": "double", + "description": "Total memory allocated to EVE on the device." + }, + "usedEveMB": { + "type": "number", + "format": "double", + "description": "Memory currently used by EVE on the device.", + "title": "usedByEveMB <= allocatedForEveMB" + }, + "availableForNewApps": { + "type": "number", + "format": "double", + "description": "Memory Available for new app-instances on the device.", + "title": "availableForNewApps = deviceMemoryMB - ( allocatedForAppsMB + allocatedForEveMB )" + } + }, + "description": "DeviceMemorySummary encapsulates the memory status of the device.", + "title": "Device Memory Information message" + }, + "DevicePCRPolicy": { + "type": "object", + "properties": { + "pcrIndices": { + "type": "array", + "items": { + "type": "integer", + "format": "int64" + }, + "description": "list of PCR indices to include in the policy" + }, + "policyVersion": { + "type": "integer", + "format": "int64", + "description": "policy version for audit purposes" + } + }, + "description": "PCR policy to define which TPM PCR registers to use for volume key sealing", + "title": "PCR policy body detail", + "required": [ + "pcrIndices" + ] + }, + "DevicePolicy": { + "type": "object", + "properties": { + "metaData": { + "$ref": "#/definitions/PolicyCommon", + "description": "all the required metadata for a policy like id, name, different types of tags" + }, + "policySubType": { + "$ref": "#/definitions/DevicePolicyType", + "description": "device policy type" + }, + "attestationPolicy": { + "$ref": "#/definitions/DeviceAttestationPolicy", + "description": "device attestation policy" + }, + "pcrPolicy": { + "$ref": "#/definitions/DevicePCRPolicy", + "description": "PCR policy for TPM volume key sealing" + }, + "portBasedNetworkAccessControlPolicy": { + "$ref": "#/definitions/DevicePortBasedNetworkAccessControlPolicy", + "description": "port based network access control (802.1X) policy for devices" + } + } + }, + "DevicePolicyType": { + "type": "string", + "enum": [ + "DEVICE_POLICY_TYPE_UNSPECIFIED", + "DEVICE_POLICY_TYPE_ATTESTATION", + "DEVICE_POLICY_TYPE_PCR", + "DEVICE_POLICY_TYPE_PORT_BASED_NETWORK_ACCESS_CONTROL" + ], + "default": "DEVICE_POLICY_TYPE_UNSPECIFIED" + }, + "DevicePortBasedNetworkAccessControlPolicy": { + "type": "object", + "properties": { + "enablePortBasedNetworkAccessControl": { + "type": "boolean", + "description": "Enable or disable port based network access control (802.1X). When disabled, other fields are ignored." + }, + "eapMethod": { + "$ref": "#/definitions/EAPMethod", + "description": "EAP method to use for port based network access control. Only EAP-TLS is supported currently." + }, + "eapIdentity": { + "type": "string", + "description": "EAP identity string used for authentication", + "title": "EAP identity string used for authentication" + }, + "certificateEnrollmentId": { + "type": "string", + "description": "ID of the certificate enrollment object used for 802.1X authentication", + "title": "Reference to the certificate enrollment object used for 802.1X authentication" + } + }, + "description": "Port based network access control policy (802.1X) to enforce on devices of a project", + "title": "Port based network access control policy" + }, + "DeviceRawMetrics": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "id": { + "type": "string" + }, + "rawMetrics": { + "type": "string" + } + } + }, + "DeviceSWInfo": { + "type": "object", + "properties": { + "activated": { + "type": "boolean" + }, + "partitionLabel": { + "type": "string" + }, + "partitionDevice": { + "type": "string" + }, + "partitionState": { + "type": "string" + }, + "status": { + "$ref": "#/definitions/SWState" + }, + "shortVersion": { + "type": "string" + }, + "longVersion": { + "type": "string" + }, + "swError": { + "$ref": "#/definitions/DeviceError" + }, + "downloadProgress": { + "type": "integer", + "format": "int64" + }, + "swStatus": { + "$ref": "#/definitions/DeviceSWStatus" + }, + "swSubStatus": { + "$ref": "#/definitions/DeviceSWSubStatus" + }, + "swSubStatusStr": { + "type": "string" + }, + "subStatusProgress": { + "type": "integer", + "format": "int64" + }, + "isLTS": { + "type": "boolean", + "description": "flag to indicate device running LTS eve version or not" + } + } + }, + "DeviceSWStatus": { + "type": "string", + "enum": [ + "DEVICE_SW_STATUS_UNSPECIFIED", + "DEVICE_SW_STATUS_DOWNLOADING", + "DEVICE_SW_STATUS_DOWNLOADDONE", + "DEVICE_SW_STATUS_UPDATING", + "DEVICE_SW_STATUS_UPDATED", + "DEVICE_SW_STATUS_FALLBACK", + "DEVICE_SW_STATUS_FAILED" + ], + "default": "DEVICE_SW_STATUS_UNSPECIFIED" + }, + "DeviceSWSubStatus": { + "type": "string", + "enum": [ + "DEVICE_SW_SUB_STATUS_UNSPECIFIED", + "DEVICE_SW_SUB_STATUS_DOWNLOAD_IN_PROGRESS", + "DEVICE_SW_SUB_STATUS_VERIFY_IN_PROGRESS", + "DEVICE_SW_SUB_STATUS_UPDATE_INITIALIZING", + "DEVICE_SW_SUB_STATUS_UPDATE_REBOOTING", + "DEVICE_SW_SUB_STATUS_UPDATE_TESTING", + "DEVICE_SW_SUB_STATUS_UPDATE_NEED_TEST_CONFIRM", + "DEVICE_SW_SUB_STATUS_UPDATE_DEFERRED" + ], + "default": "DEVICE_SW_SUB_STATUS_UNSPECIFIED" + }, + "DeviceSingleUseImageDownloadLinkResp": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "system generated unique id for a device", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+" + }, + "link": { + "type": "string", + "description": "link to download the image" + } + } + }, + "DeviceSingleUseImageResp": { + "type": "object", + "properties": { + "deviceId": { + "type": "string", + "description": "Device ID", + "uniqueItems": true + }, + "enterpriseId": { + "type": "string", + "description": "Enterprise ID", + "uniqueItems": true + }, + "generationstatus": { + "type": "object", + "$ref": "#/definitions/DeviceImageGenerateStatus", + "description": "Single Use EVE image generation status" + } + }, + "description": "Device Single-Use Image info", + "title": "Device Single-Use Image info" + }, + "DeviceStatusConfigList": { + "type": "object", + "properties": { + "summaryByState": { + "$ref": "#/definitions/Summary", + "description": "Device status config summary by state" + }, + "summaryByAppInstanceCount": { + "$ref": "#/definitions/Summary", + "description": "Device status config summary by app instance count" + }, + "summaryByEVEDistribution": { + "$ref": "#/definitions/Summary", + "description": "Device status config summary by eve distribution" + }, + "totalCount": { + "type": "integer", + "format": "int64", + "description": "total count of devices" + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/deviceStatusConfig" + }, + "description": "List of device status config" + }, + "totalEvActiveCount": { + "type": "integer", + "format": "int64", + "description": "total count of edgeview active of devices" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "Page details of the filtered records" + } + }, + "description": "Device statu sna config composite api response details", + "title": "Device status config composite api response detail", + "required": [ + "summaryByState", + "summaryByAppInstanceCount", + "summaryByEVEDistribution", + "totalCount", + "list" + ] + }, + "DeviceStatusListMsg": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/DeviceStatusSummaryMsg" + } + }, + "summaryByState": { + "$ref": "#/definitions/Summary" + }, + "summaryByAppInstanceCount": { + "$ref": "#/definitions/Summary" + }, + "summaryByEVEDistribution": { + "$ref": "#/definitions/Summary" + }, + "totalCount": { + "type": "integer", + "format": "int64" + }, + "totalEdgeviewActive": { + "type": "integer", + "format": "int64" + }, + "next": { + "$ref": "#/definitions/Cursor" + } + } + }, + "DeviceStatusMsg": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "id": { + "type": "string" + }, + "adminState": { + "$ref": "#/definitions/AdminState" + }, + "runState": { + "$ref": "#/definitions/RunState" + }, + "upTime": { + "type": "string", + "format": "date-time" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "title": "deprecated = 6;", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "lastUpdate": { + "type": "string", + "format": "date-time" + }, + "bootTime": { + "type": "string", + "format": "date-time" + }, + "netStatusList": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkStatus" + } + }, + "dns": { + "$ref": "#/definitions/DNSInfo" + }, + "ioStatusList": { + "type": "array", + "items": { + "$ref": "#/definitions/IoBundleStatus" + } + }, + "storageList": { + "type": "array", + "items": { + "$ref": "#/definitions/StorageStatus" + } + }, + "blobList": { + "type": "array", + "items": { + "$ref": "#/definitions/BlobStatus" + } + }, + "netCounterList": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkCounters" + } + }, + "hostName": { + "type": "string" + }, + "swInfo": { + "type": "array", + "items": { + "$ref": "#/definitions/DeviceSWInfo" + } + }, + "zcCounters": { + "type": "array", + "items": { + "$ref": "#/definitions/ZedcloudCounters" + } + }, + "rawStatus": { + "type": "string" + }, + "rawMetrics": { + "type": "string" + }, + "Memory": { + "$ref": "#/definitions/MemorySummary", + "description": "memory - OBSOLETE. Use memorySummary instead." + }, + "Storage": { + "$ref": "#/definitions/StorageSummary" + }, + "minfo": { + "$ref": "#/definitions/ZManufacturerInfo" + }, + "dinfo": { + "$ref": "#/definitions/DeviceInfo" + }, + "Cpu": { + "$ref": "#/definitions/CpuSummary" + }, + "lastRebootReason": { + "type": "string" + }, + "lastRebootTime": { + "type": "string", + "format": "date-time" + }, + "dataSecInfo": { + "type": "array", + "items": { + "$ref": "#/definitions/DevDataSecAtRest" + } + }, + "devError": { + "type": "array", + "items": { + "$ref": "#/definitions/DeviceError" + } + }, + "projectId": { + "type": "string" + }, + "title": { + "type": "string" + }, + "attestState": { + "$ref": "#/definitions/AttestState" + }, + "deviceRebootReason": { + "$ref": "#/definitions/DeviceBootReason" + }, + "clusterID": { + "type": "string", + "description": "System defined universally unique clusterInstance ID, unique across the enterprise.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "memorySummary": { + "$ref": "#/definitions/DeviceMemorySummary", + "description": "Device memory Info" + }, + "capabilities": { + "$ref": "#/definitions/Capabilities", + "description": "Edge node virtualization capabilities.", + "title": "Information about hardware capabilities" + }, + "zpoolMetrics": { + "$ref": "#/definitions/StorageDeviceMetrics", + "description": "Last received counters for zpool metrics." + }, + "clusterNodeStatus": { + "$ref": "#/definitions/ClusterNodeStatus", + "description": "Cluster node status" + } + }, + "title": "to be deprecated" + }, + "DeviceStatusSummaryMsg": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "id": { + "type": "string" + }, + "adminState": { + "$ref": "#/definitions/AdminState" + }, + "runState": { + "$ref": "#/definitions/RunState" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "title": "deprecated = 5;", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "netStatusList": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkStatus" + } + }, + "swInfo": { + "type": "array", + "items": { + "$ref": "#/definitions/DeviceSWInfo" + } + }, + "minfo": { + "$ref": "#/definitions/ZManufacturerInfo" + }, + "dinfo": { + "$ref": "#/definitions/DeviceInfo" + }, + "Memory": { + "$ref": "#/definitions/MemorySummary", + "description": "Memory - OBSOLETE. Use memorySummary instead." + }, + "Storage": { + "$ref": "#/definitions/StorageSummary" + }, + "Cpu": { + "$ref": "#/definitions/CpuSummary" + }, + "devError": { + "type": "array", + "items": { + "$ref": "#/definitions/DeviceError" + } + }, + "projectId": { + "type": "string" + }, + "title": { + "type": "string" + }, + "clusterID": { + "type": "string", + "description": "System defined universally unique clusterInstance ID, unique across the enterprise.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "memorySummary": { + "$ref": "#/definitions/DeviceMemorySummary", + "description": "Device memory Info" + }, + "debugKnob": { + "type": "boolean", + "title": "debug knob expiry time" + }, + "debugKnobExpiryTime": { + "type": "string", + "format": "date-time" + }, + "projectName": { + "type": "string", + "description": "Project name to which device is associated with" + }, + "appInstCount": { + "type": "integer", + "format": "int64", + "description": "App instance count that is actively running on the device" + }, + "location": { + "type": "string", + "description": "Device location" + }, + "edgeviewActive": { + "type": "boolean", + "description": "Device edgeview session active" + }, + "projectType": { + "$ref": "#/definitions/TagType", + "description": "Tag group type" + }, + "clusterNodeStatus": { + "$ref": "#/definitions/ClusterNodeStatus", + "description": "Cluster node status" + }, + "enrolledCertsStatus": { + "$ref": "#/definitions/EnrolledCertStatus", + "description": "Enrolled certificate status from the device" + } + } + }, + "DhcpServerConfig": { + "type": "object", + "properties": { + "subnet": { + "type": "string", + "description": "Subnet address" + }, + "mask": { + "type": "string", + "description": "Subnet Mask" + }, + "gateway": { + "type": "string", + "description": "IP Address of Network Gateway" + }, + "domain": { + "type": "string", + "description": "Network domain" + }, + "ntp": { + "type": "string", + "description": "IP Address of NTP Server", + "title": "ntp will be deprecated" + }, + "dns": { + "type": "array", + "items": { + "type": "string" + }, + "description": "IP Addresses of DNS servers", + "title": "possible DNS ip address" + }, + "dhcpRange": { + "$ref": "#/definitions/dhcpIpRange", + "description": "Range of IP addresses to be used for DHCP" + }, + "ntpServers": { + "type": "array", + "items": { + "$ref": "#/definitions/NtpServer" + }, + "description": "NTP Servers" + } + } + }, + "DimmRankInfo": { + "type": "object", + "properties": { + "rankName": { + "type": "string" + }, + "ceCount": { + "type": "string", + "format": "int64" + }, + "ueCount": { + "type": "string", + "format": "int64" + } + }, + "title": "Info per memory rank in the dimm" + }, + "DiskDescription": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "logicalName": { + "type": "string" + }, + "serial": { + "type": "string" + } + } + }, + "DockerRuntimeProtocolVersion": { + "type": "string", + "enum": [ + "RuntimeProtocolVersion_Unknown", + "RuntimeProtocolVersion_V1" + ], + "default": "RuntimeProtocolVersion_Unknown" + }, + "DockerRuntimeVersion": { + "type": "string", + "enum": [ + "RuntimeVersion_Unknown", + "RuntimeVersion_V1" + ], + "default": "RuntimeVersion_Unknown" + }, + "EAPMethod": { + "type": "string", + "enum": [ + "EAP_METHOD_UNSPECIFIED", + "EAP_METHOD_TLS" + ], + "default": "EAP_METHOD_UNSPECIFIED", + "title": "Supported EAP methods for port based network access control (802.1X)" + }, + "ECCMemoryControllerInfo": { + "type": "object", + "properties": { + "controllerName": { + "type": "string" + }, + "ceCount": { + "type": "string", + "format": "int64" + }, + "ueCount": { + "type": "string", + "format": "int64" + }, + "ranks": { + "type": "array", + "items": { + "$ref": "#/definitions/DimmRankInfo" + } + } + }, + "title": "Info per memory controller in the system" + }, + "ECCMemoryReport": { + "type": "object", + "properties": { + "memoryControllers": { + "type": "array", + "items": { + "$ref": "#/definitions/ECCMemoryControllerInfo" + } + } + }, + "title": "A report for all memory controllers" + }, + "ECCMemoryReportStatus": { + "type": "string", + "enum": [ + "ECC_MEMORY_REPORT_STATUS_NOT_APPLICABLE", + "ECC_MEMORY_REPORT_STATUS_PASS", + "ECC_MEMORY_REPORT_STATUS_DEGRADED", + "ECC_MEMORY_REPORT_STATUS_FAILED" + ], + "default": "ECC_MEMORY_REPORT_STATUS_NOT_APPLICABLE" + }, + "ECDSA": { + "type": "object", + "properties": { + "curve": { + "type": "string", + "description": "ECDSA curve to be used while signing the certificate." + } + } + }, + "EDConfigItem": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "key" + }, + "valueType": { + "type": "string", + "description": "value type" + }, + "boolValue": { + "type": "boolean", + "description": "boolean value" + }, + "uint32Value": { + "type": "number", + "format": "uint32", + "description": "uint32 value" + }, + "uint64Value": { + "type": "string", + "format": "uint64", + "description": "uint64 value in string format" + }, + "floatValue": { + "type": "number", + "format": "float", + "description": "float value" + }, + "stringValue": { + "type": "string", + "description": "string value" + } + }, + "description": "ED Configuration Item request payload", + "title": "EDConfigItem payload detail" + }, + "EIDRegister": { + "type": "object", + "properties": { + "AppCert": { + "type": "string", + "format": "byte", + "description": "app certificate" + }, + "AppPublicKey": { + "type": "string", + "format": "byte", + "description": "App public key" + }, + "AppPrivateKey": { + "type": "string", + "format": "byte", + "description": "App private key" + }, + "UUID": { + "type": "string", + "description": "UUID" + }, + "DisplayName": { + "type": "string", + "description": "Display name" + }, + "LispInstance": { + "type": "number", + "format": "int64", + "description": "Lisp Instance" + }, + "EID": { + "type": "string", + "description": "EID" + }, + "EIDHashLen": { + "type": "number", + "format": "int64", + "description": "EID hash length" + }, + "LispSignature": { + "type": "string", + "description": "Lisp Signature" + }, + "LispMapServers": { + "type": "array", + "items": { + "$ref": "#/definitions/LispServer" + }, + "description": "Lisp Map Server", + "title": "time CreateTime time.Time" + } + }, + "description": "EID Register", + "title": "EID Register detail", + "required": [ + "AppCert", + "AppPublicKey", + "AppPrivateKey", + "UUID", + "DisplayName", + "LispInstance", + "EID", + "EIDHashLen", + "LispSignature", + "LispMapServers" + ] + }, + "EdgeNodeClusterConfig": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the cluster", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the cluster, unique across the enterprise. Once cluster is created, name can\u2019t be changed", + "uniqueItems": true + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "projectId": { + "type": "string", + "description": "Foreign key to the project" + }, + "clusterPrefix": { + "type": "string", + "description": "A cluster prefix" + }, + "seedNodeId": { + "type": "string", + "description": "Seed node id" + }, + "seedNodeIp": { + "type": "string", + "description": "Seed node ip" + }, + "token": { + "type": "string", + "description": "Cluster token" + }, + "isMaster": { + "type": "boolean", + "description": "Is it a master node?" + }, + "manifest": { + "type": "string", + "format": "byte", + "description": "ZKS instance manifest" + }, + "tieBreakerNodeId": { + "type": "string", + "description": "Tiebreaker node id" + }, + "clusterType": { + "type": "number", + "format": "int32", + "description": "Cluster type" + }, + "lbConfigList": { + "type": "object", + "$ref": "#/definitions/DeviceLBConfigList", + "description": "Edge node cluster load balancer configuration list" + }, + "masterNodeUuids": { + "type": "array", + "items": { + "type": "string" + }, + "description": "UUIDs of all designated master/control-plane nodes in the cluster. Surviving EVE nodes use this list to prune k8s Node objects (and thereby k3s embedded etcd members) for masters the controller has removed." + } + } + }, + "EdgeSyncConfig": { + "type": "object", + "properties": { + "edgeSyncUrl": { + "type": "string", + "description": "edge sync url" + }, + "datastoreId": { + "type": "array", + "items": { + "type": "string" + }, + "description": "upload datastore list" + } + } + }, + "EdgeViewPolicy": { + "type": "object", + "properties": { + "metaData": { + "$ref": "#/definitions/PolicyCommon", + "description": "all the required metadata for a policy like id, name, different types of tags" + }, + "edgeviewcfg": { + "$ref": "#/definitions/EdgeviewCfg", + "description": "Edgeview configuration and policies" + }, + "edgeviewAllow": { + "type": "boolean", + "description": "Allow device to enable Edgeview in this project" + }, + "accessAllowChange": { + "type": "boolean", + "description": "Allow inherit instance to change access policy" + }, + "maxExpireSec": { + "type": "integer", + "format": "int64", + "description": "Maximum seconds allowed for Edgeview session" + }, + "maxInst": { + "type": "integer", + "format": "int64", + "description": "Maximum instances allowed for Edgeview" + }, + "requireControllerAuthen": { + "type": "boolean", + "description": "Whether controller authentication is required for Edgeview access" + } + }, + "description": "Policy for device edgeview operation", + "title": "Edgeview policy body detail", + "required": [ + "edgeviewAllow" + ] + }, + "EdgeviewCfg": { + "type": "object", + "properties": { + "jwtInfo": { + "$ref": "#/definitions/JWTInfo" + }, + "token": { + "type": "string" + }, + "devPolicy": { + "$ref": "#/definitions/DevAccessPolicy" + }, + "appPolicy": { + "$ref": "#/definitions/AppAccessPolicy" + }, + "extPolicy": { + "$ref": "#/definitions/ExtAccessPolicy" + }, + "generationId": { + "type": "integer", + "format": "int64" + }, + "requireControllerAuthen": { + "type": "boolean" + } + } + }, + "EdgeviewPolicy": { + "type": "object", + "properties": { + "edgeviewcfg": { + "$ref": "#/definitions/EdgeviewCfg", + "description": "Edgeview configuration and policies" + }, + "edgeviewAllow": { + "type": "boolean", + "description": "Allow device to enable Edgeview in this project" + }, + "accessAllowChange": { + "type": "boolean", + "description": "Allow inherit instance to change access policy" + }, + "maxExpireSec": { + "type": "integer", + "format": "int64", + "description": "Maximum seconds allowed for Edgeview session" + }, + "maxInst": { + "type": "integer", + "format": "int64", + "description": "Maximum instances allowed for Edgeview" + }, + "requireControllerAuthen": { + "type": "boolean", + "description": "Whether controller authentication is required for Edgeview access" + } + }, + "description": "Policy for device edgeview operation", + "title": "Edgeview policy body detail", + "required": [ + "edgeviewAllow" + ] + }, + "EnrolledCertInfo": { + "type": "object", + "properties": { + "certEnrollmentProfileName": { + "type": "string", + "description": "Certificate enrollment profile name used to obtain this certificate" + }, + "subject": { + "$ref": "#/definitions/CertDistinguishedName", + "description": "Subject distinguished name (DN) of the certificate." + }, + "issuer": { + "$ref": "#/definitions/CertDistinguishedName", + "description": "Issuer distinguished name (DN) of the certificate." + }, + "sanDns": { + "type": "array", + "items": { + "type": "string" + }, + "description": "DNS names from SAN" + }, + "sanIp": { + "type": "array", + "items": { + "type": "string" + }, + "description": "IP addresses from SAN" + }, + "sanUri": { + "type": "array", + "items": { + "type": "string" + }, + "description": "URIs from SAN" + }, + "sanEmail": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Email addresses from SAN" + }, + "issueTimestamp": { + "type": "string", + "format": "date-time", + "description": "Certificate validity period." + }, + "expirationTimestamp": { + "type": "string", + "format": "date-time" + }, + "renewPeriodPercent": { + "type": "integer", + "format": "int64", + "description": "Percentage of validity period after which renewal begins" + }, + "sha256Fingerprint": { + "type": "string", + "description": "SHA-256 fingerprint of the certificate" + }, + "status": { + "$ref": "#/definitions/EnrolledCertStatus", + "description": "Current status of the certificate as observed by the device." + }, + "err": { + "type": "object", + "$ref": "#/definitions/DeviceError", + "description": "Error details for enrollment or renewal failures" + } + }, + "description": "EnrolledCertInfo describes a certificate enrolled on the device via a\nnetwork enrollment protocol such as SCEP." + }, + "EnrolledCertStatus": { + "type": "string", + "enum": [ + "ENROLLED_CERT_STATUS_UNSPECIFIED", + "ENROLLED_CERT_STATUS_AVAILABLE", + "ENROLLED_CERT_STATUS_PENDING", + "ENROLLED_CERT_STATUS_RENEWAL_PENDING", + "ENROLLED_CERT_STATUS_EXPIRED", + "ENROLLED_CERT_STATUS_REVOKED", + "ENROLLED_CERT_STATUS_ENROLLMENT_FAILED", + "ENROLLED_CERT_STATUS_RENEWAL_FAILED", + "ENROLLED_CERT_STATUS_INVALID_CONFIG" + ], + "default": "ENROLLED_CERT_STATUS_UNSPECIFIED", + "description": "Certificate lifecycle and availability status as reported by the device.\n\n - ENROLLED_CERT_STATUS_AVAILABLE: Certificate is present, valid, and usable for authentication.\n - ENROLLED_CERT_STATUS_PENDING: Certificate enrollment is in progress and not yet complete.\n - ENROLLED_CERT_STATUS_RENEWAL_PENDING: Certificate is present and still valid, but a renewal request\nis in progress and not yet completed.\n - ENROLLED_CERT_STATUS_EXPIRED: Certificate has expired (the current time is past notAfter).\nRenewal may have failed; see err for related errors.\n - ENROLLED_CERT_STATUS_REVOKED: Certificate has been revoked or is otherwise considered invalid.\n - ENROLLED_CERT_STATUS_ENROLLMENT_FAILED: Certificate enrollment failed and no valid certificate is available.\n - ENROLLED_CERT_STATUS_RENEWAL_FAILED: A certificate is currently present but the most recent renewal attempt failed.\n - ENROLLED_CERT_STATUS_INVALID_CONFIG: Certificate configuration is invalid or malformed, preventing enrollment or renewal." + }, + "EnrollmentDetail": { + "type": "object", + "properties": { + "attachedIotHubsName": { + "type": "array", + "items": { + "type": "string" + } + }, + "enableIotEdgeDevice": { + "type": "boolean" + }, + "mechanism": { + "$ref": "#/definitions/EnrollmentMechanism" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "allocationPolicy": { + "$ref": "#/definitions/AllocationPolicy" + }, + "symmetricKeyEnrollment": { + "$ref": "#/definitions/SymmetricKeyEnrollmentDetail" + }, + "certificateEnrollment": { + "$ref": "#/definitions/CertificateEnrollmentDetail" + }, + "tpmEnrollment": { + "$ref": "#/definitions/TPMEnrollmentDetail" + } + } + }, + "EnrollmentMechanism": { + "type": "string", + "enum": [ + "ENROLLMENT_MECHANISM_UNSPECIFIED", + "ENROLLMENT_MECHANISM_SYMMETRICKEY", + "ENROLLMENT_MECHANISM_CERTIFICATE", + "ENROLLMENT_MECHANISM_TPM" + ], + "default": "ENROLLMENT_MECHANISM_UNSPECIFIED", + "description": "attestation/mechanism supported by azure." + }, + "EnrollmentType": { + "type": "string", + "enum": [ + "ENROLLMENT_TYPE_UNSPECIFIED", + "ENROLLMENT_TYPE_INDIVIDUAL", + "ENROLLMENT_TYPE_GROUP" + ], + "default": "ENROLLMENT_TYPE_UNSPECIFIED", + "description": "enrollment types." + }, + "Entity": { + "type": "string", + "enum": [ + "ENTITY_UNSPECIFIED", + "ENTITY_BASE_OS", + "ENTITY_SYSTEM_ADAPTER", + "ENTITY_VAULT", + "ENTITY_ATTESTATION", + "ENTITY_APP_INSTANCE", + "ENTITY_PORT", + "ENTITY_NETWORK", + "ENTITY_NETWORK_INSTANCE", + "ENTITY_CONTENT_TREE", + "ENTITY_CONTENT_BLOB", + "ENTITY_VOLUME" + ], + "default": "ENTITY_UNSPECIFIED", + "description": "- ENTITY_UNSPECIFIED: Invalid Device Entity\n - ENTITY_BASE_OS: Base OS entity\n - ENTITY_SYSTEM_ADAPTER: System Adapter Entity\n - ENTITY_VAULT: Vault Entity\n - ENTITY_ATTESTATION: Attestation Entity\n - ENTITY_APP_INSTANCE: App Instance Entity\n - ENTITY_PORT: Port Entity\n - ENTITY_NETWORK: Network Entity\n - ENTITY_NETWORK_INSTANCE: Network Instance Entity\n - ENTITY_CONTENT_TREE: ContentTree Entity\n - ENTITY_CONTENT_BLOB: Blob Entity\n - ENTITY_VOLUME: VOLUME Entity", + "title": "Edge node components" + }, + "EvAuthType": { + "type": "string", + "enum": [ + "EvAuth_TYPE_UNSPECIFIED", + "EvAuth_TYPE_CONTROLER_CERT", + "EvAuth_TYPE_SSH_RSA_KEYS" + ], + "default": "EvAuth_TYPE_UNSPECIFIED" + }, + "EveLtsSupportType": { + "type": "string", + "enum": [ + "SUPPORT_TYPE_UNSPECIFIED", + "SUPPORT_TYPE_LTS", + "SUPPORT_TYPE_NON_LTS" + ], + "default": "SUPPORT_TYPE_UNSPECIFIED" + }, + "EventQueryResponse": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/EventQueryResponseItem" + }, + "description": "Event Query response list" + }, + "next": { + "type": "object", + "$ref": "#/definitions/Cursor", + "description": "Cursor filter" + }, + "summary": { + "$ref": "#/definitions/Summary", + "description": "Summary of filtered events." + } + }, + "description": "Event query response request payload", + "title": "Event query Response payload detail", + "required": [ + "list", + "next" + ] + }, + "EventQueryResponseItem": { + "type": "object", + "properties": { + "user": { + "type": "string", + "description": "User name" + }, + "project": { + "type": "string", + "description": "project name" + }, + "device": { + "type": "string", + "description": "device name" + }, + "instance": { + "type": "string", + "description": "instance name" + }, + "severity": { + "type": "string", + "description": "severity: FIXME: should be ENUM" + }, + "description": { + "type": "string", + "description": "Event description" + }, + "timestamp": { + "type": "object", + "format": "date-time", + "description": "event timestamp" + }, + "source": { + "type": "object", + "$ref": "#/definitions/EventSource", + "description": "source" + }, + "resource": { + "type": "string", + "description": "Event resources" + }, + "eventType": { + "type": "string", + "description": "Event type" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Event tags" + }, + "resourceName": { + "type": "string", + "description": "Event resources" + }, + "jsonData": { + "type": "object", + "description": "Event resources" + }, + "clusterInstance": { + "type": "string", + "description": "clusterInstance name" + } + }, + "description": "Event query response item payload", + "title": "Event query response item payload detail" + }, + "EventSource": { + "type": "string", + "enum": [ + "EVENT_SOURCE_UNSPECIFIED", + "EVENT_SOURCE_SYSTEM", + "EVENT_SOURCE_USER" + ], + "default": "EVENT_SOURCE_UNSPECIFIED", + "description": "- EVENT_SOURCE_UNSPECIFIED: Default\n - EVENT_SOURCE_SYSTEM: Event is generated as a result of status change reported by edge node / application\n - EVENT_SOURCE_USER: Event is generated as a result of an user's configuration action", + "title": "Source of events" + }, + "ExtAccessPolicy": { + "type": "object", + "properties": { + "allowExt": { + "type": "boolean", + "title": "external of device edge-view access is allowed or not" + } + } + }, + "GPSLocation": { + "type": "object", + "properties": { + "latitude": { + "type": "number", + "format": "double", + "description": "Latitude" + }, + "longitude": { + "type": "number", + "format": "double", + "description": "Longitude" + }, + "altitude": { + "type": "number", + "format": "double", + "description": "Altitude from mean sea level" + }, + "timestamp": { + "type": "object", + "format": "date-time", + "description": "UTC timestamp" + }, + "horizontalReliability": { + "type": "number", + "format": "int64", + "description": "Horizontal reliability" + }, + "verticalReliability": { + "type": "number", + "format": "int64", + "description": "Vertical reliability" + }, + "horizontalUncertainty": { + "type": "number", + "format": "double", + "description": "Horizontal uncertainty" + }, + "verticalUncertainty": { + "type": "number", + "format": "double", + "description": "Vertical uncertainty" + }, + "logicalLabel": { + "type": "string", + "description": "Logical label of the adapter used to get GPS coordinates" + } + } + }, + "GeoLocation": { + "type": "object", + "properties": { + "underlayIP": { + "type": "string", + "description": "Single IP address, either in IPv4 or in IPv6 format" + }, + "hostname": { + "type": "string", + "description": "Host name" + }, + "city": { + "type": "string", + "description": "City" + }, + "region": { + "type": "string", + "description": "Region" + }, + "country": { + "type": "string", + "description": "Country code consisting of 2 capital letters as per ISO 3166-1 alpha2 standard" + }, + "loc": { + "type": "string", + "description": "Ordered pair of (latitude, longitude) separated by comma (,). Latitude is the horizontal component used for geographic positioning; it is the angle between 0\u00b0 (the equator) and \u00b190\u00b0 (north or south) at the poles measured in decimal degrees. It is the first value in an ordered pair. A negative number denotes a location south of the equator; a positive number is north. Longitude is the vertical component used for geographic positioning; it is the angle between 0\u00b0 (the Prime Meridian) and \u00b1180\u00b0 (westward or eastward) measured in decimal degrees. It is the second number in an ordered pair. A negative number indicates a location west of Greenwich, England; a positive number east." + }, + "org": { + "type": "string", + "description": "The name of the recipient, firm, or company at this geographical location." + }, + "postal": { + "type": "string", + "description": "Postal code (ZIP code for USA) of the geographical location" + }, + "latlong": { + "type": "string", + "description": "Deprecated field: comma, separated lat, long" + }, + "freeloc": { + "type": "string", + "description": "Free formatted location string" + } + }, + "description": "Geographic location of an edge node determined by a variety of data collection mechanisms (e.g. network routing addresses or internal GPS devices).", + "title": "Geographic location of an edge node" + }, + "GroupCertificateEnrollment": { + "type": "object", + "properties": { + "groupName": { + "type": "string" + } + } + }, + "GroupSymmetricKeyEnrollment": { + "type": "object", + "properties": { + "groupName": { + "type": "string" + } + } + }, + "HardwareInfo": { + "type": "object", + "properties": { + "disks": { + "type": "array", + "items": { + "$ref": "#/definitions/StorageDiskInfo" + } + } + }, + "title": "Information about the system that is sent once when the system boots" + }, + "ImageDatastore": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Datastore ID" + }, + "name": { + "type": "string", + "description": "Datastore Name" + } + } + }, + "IndividualCertificateEnrollment": { + "type": "object", + "title": "XXX TODO" + }, + "IndividualSymmetricKeyEnrollment": { + "type": "object", + "properties": { + "registrationId": { + "type": "string" + } + } + }, + "IntegrationPolicy": { + "type": "object", + "properties": { + "Id": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "title": { + "type": "string" + }, + "revision": { + "$ref": "#/definitions/ObjectRevision" + } + } + }, + "Interface": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Interface name used by the edge application" + }, + "type": { + "type": "string", + "description": "Physical Adapter type for this interface. Applicable only when \"direct attach\" flag is true." + }, + "optional": { + "type": "boolean", + "description": "Indicates if the interface is optional for edge application." + }, + "directattach": { + "type": "boolean", + "description": "If true, a physical adapter is assigned to the edge application directly. If false, a network instance is assigned to the edge application." + }, + "privateip": { + "type": "boolean", + "description": "If true, DHCP network can't be assigned and user needs to provide a static IP address." + }, + "acls": { + "type": "array", + "items": { + "$ref": "#/definitions/Acl" + }, + "description": "Traffic access control rules for this interface. Applicable only when \"direct attach\" flag is false." + } + } + }, + "InterfaceOrdering": { + "type": "string", + "enum": [ + "INTERFACE_ORDERING_DISABLED", + "INTERFACE_ORDERING_ENABLED" + ], + "default": "INTERFACE_ORDERING_DISABLED", + "description": "- INTERFACE_ORDERING_DISABLED: Default value. interface order will not be sent to eve\n - INTERFACE_ORDERING_ENABLED: interface ordering is enabled. interface order will be sent to eve according to app template", + "title": "this enum is used for enable and disable the interface ordering for app instances\nif the value of it set to INTERFACE_ORDERING_ENABLED then the interface ordering is\nsent to eve and therfaces will be mapped in same order during the deployment of app instances" + }, + "IoAddresses": { + "type": "object", + "properties": { + "macAddress": { + "type": "string" + } + } + }, + "IoBundleStatus": { + "type": "object", + "properties": { + "type": { + "type": "object", + "$ref": "#/definitions/IoType", + "description": "IoType specifies the type of the Input output of the device" + }, + "name": { + "type": "string", + "description": "Io Bundle status name" + }, + "members": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Member Array", + "title": "members - Deprecated by memberList" + }, + "appName": { + "type": "string", + "description": "Application name" + }, + "lteInfo": { + "type": "object", + "$ref": "#/definitions/LTEAdapter", + "description": "LTE information" + }, + "err": { + "$ref": "#/definitions/DeviceError", + "description": "Device error details", + "title": "6 - DEPRECATED" + }, + "memberList": { + "type": "array", + "items": { + "$ref": "#/definitions/IoMemberStatus" + }, + "description": "List of IO members" + } + }, + "description": "IoBundleStatus is used to store the status of the Input Output bundle", + "title": "IoBundleStatus is used to store the status of the Input Output bundle", + "required": [ + "type", + "name", + "members", + "appName" + ] + }, + "IoMemberStatus": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "IoBundle Member name" + }, + "ioAddress": { + "$ref": "#/definitions/IoAddresses", + "description": "IO addresses of the member. Each address corresponds to the member in the members array" + } + } + }, + "IoType": { + "type": "string", + "enum": [ + "IO_TYPE_UNSPECIFIED", + "IO_TYPE_ETH", + "IO_TYPE_USB", + "IO_TYPE_COM", + "IO_TYPE_AUDIO", + "IO_TYPE_WLAN", + "IO_TYPE_WWAN", + "IO_TYPE_HDMI", + "IO_TYPE_LTE", + "IO_TYPE_STORAGE_NVME_DEVICE", + "IO_TYPE_STORAGE_SATA_DEVICE", + "IO_TYPE_ETH_PF", + "IO_TYPE_ETH_VF", + "IO_TYPE_USB_CONTROLLER", + "IO_TYPE_USB_DEVICE", + "IO_TYPE_CAN", + "IO_TYPE_VCAN", + "IO_TYPE_LCAN", + "IO_TYPE_VLAN", + "IO_TYPE_OTHER" + ], + "default": "IO_TYPE_UNSPECIFIED", + "description": "- IO_TYPE_UNSPECIFIED: No operation/ Invalid peration\n - IO_TYPE_ETH: Ethernet\n - IO_TYPE_USB: USB Type - General\n - IO_TYPE_COM: Communication Port\n - IO_TYPE_AUDIO: Audio Port\n - IO_TYPE_WLAN: wireless LAN\n - IO_TYPE_WWAN: Wireless wide area network\n - IO_TYPE_HDMI: High-Definition Multimedia Interface\n - IO_TYPE_LTE: LTE Interfaces\n - IO_TYPE_STORAGE_NVME_DEVICE: Storage NVME device\n - IO_TYPE_STORAGE_SATA_DEVICE: Storage SATA device\n - IO_TYPE_ETH_PF: Physical Interface (PF) of the Virtual Functions\n - IO_TYPE_ETH_VF: Virtual Function (VF)\n - IO_TYPE_USB_CONTROLLER: USB Type - Controller\n - IO_TYPE_USB_DEVICE: USB Type - Device\n - IO_TYPE_CAN: CAN - Device\n - IO_TYPE_VCAN: VCAN - Virtual CAN device\n - IO_TYPE_LCAN: LCAN - Logical CAN device\n - IO_TYPE_VLAN: VLAN - Virtual LAN device\n - IO_TYPE_OTHER: Other Io Types", + "title": "Input/Output Type" + }, + "IotHubServiceDetail": { + "type": "object", + "properties": { + "serviceDetail": { + "$ref": "#/definitions/AzureResourceAndServiceDetail" + } + } + }, + "IpSpec": { + "type": "object", + "properties": { + "deprecatedDhcp": { + "type": "boolean", + "title": "deprecated" + }, + "dhcp": { + "$ref": "#/definitions/NetworkDHCPType" + }, + "subnet": { + "type": "string" + }, + "mask": { + "type": "string" + }, + "gateway": { + "type": "string" + }, + "domain": { + "type": "string" + }, + "ntp": { + "type": "string", + "title": "ntp will be deprecated" + }, + "dns": { + "type": "array", + "items": { + "type": "string" + } + }, + "dhcpRange": { + "$ref": "#/definitions/dhcpIpRange", + "description": "for IPAM management when dhcp is turned on.\nIf none provided, system will default pool." + }, + "ntpServers": { + "type": "array", + "items": { + "$ref": "#/definitions/NtpServer" + } + }, + "ntpServerExclusively": { + "type": "boolean" + } + } + }, + "JWTInfo": { + "type": "object", + "properties": { + "dispUrl": { + "type": "string" + }, + "allowSec": { + "type": "integer", + "format": "int64" + }, + "expireSec": { + "type": "string", + "format": "uint64" + }, + "numInst": { + "type": "integer", + "format": "int64" + }, + "encrypt": { + "type": "boolean" + }, + "authen": { + "$ref": "#/definitions/EvAuthType" + } + } + }, + "LTEAdapter": { + "type": "object", + "properties": { + "simName": { + "type": "string", + "description": "Name of SIM card." + }, + "cellModuleName": { + "type": "string", + "description": "Name of Cell Module" + }, + "imsi": { + "type": "string", + "description": "imsi of the SIM" + }, + "iccid": { + "type": "string", + "description": "iccid of the SIM" + }, + "simcardState": { + "type": "string", + "$ref": "#/definitions/SimcardState", + "description": "State of SimCard" + }, + "imei": { + "type": "string", + "description": "IMEI of Cell Radio." + }, + "firmwareVersion": { + "type": "string", + "description": "Firmware Version of Cell Radio." + } + }, + "description": "Details of LTE Adapter", + "title": "LTE Adapter" + }, + "LacpRate": { + "type": "string", + "enum": [ + "LACP_RATE_UNSPECIFIED", + "LACP_RATE_SLOW", + "LACP_RATE_FAST" + ], + "default": "LACP_RATE_UNSPECIFIED", + "description": "Option specifying the rate in which EVE will ask LACP link partners\nto transmit LACPDU packets in 802.3ad mode.\n\n - LACP_RATE_UNSPECIFIED: Default LACP rate is Slow.\n - LACP_RATE_SLOW: Request LACP partner to transmit LACPDUs every 30 seconds.\n - LACP_RATE_FAST: Request LACP partner to transmit LACPDUs every 1 second." + }, + "LimitParams": { + "type": "object", + "properties": { + "limitrate": { + "type": "integer", + "format": "int64", + "description": "UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + "title": "Rate limit in ACL rule" + }, + "limitunit": { + "type": "string", + "description": "UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + "title": "Rate limit unit in ACL rule" + }, + "limitburst": { + "type": "integer", + "format": "int64", + "description": "UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + "title": "Rate limit burst in ACL rule" + } + } + }, + "LispConfig": { + "type": "object", + "properties": { + "lispiid": { + "type": "number", + "format": "int64", + "description": "lisp id" + }, + "allocate": { + "type": "boolean", + "description": "Allocate flag" + }, + "exportprivate": { + "type": "boolean", + "description": "Export Private flag" + }, + "allocationprefix": { + "type": "string", + "format": "byte", + "description": "Allocation Prefix" + }, + "allocationprefixlen": { + "type": "number", + "format": "int64", + "description": "Allocation Prefix Length" + }, + "sp": { + "type": "array", + "items": { + "$ref": "#/definitions/ServicePoint" + }, + "description": "Service Point List" + } + }, + "description": "List Configurations.", + "title": "Lisp Configurations" + }, + "LispServer": { + "type": "object", + "properties": { + "nameOrIp": { + "type": "string", + "description": "name/IP" + }, + "credential": { + "type": "string", + "description": "lisp credential" + } + }, + "description": "LispServer request payload", + "title": "LispServer payload detail", + "required": [ + "nameOrIp", + "credential" + ] + }, + "LocalOperatorConsolePolicy": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "unique policy id", + "readOnly": true, + "pattern": "[0-9-a-z-]+" + }, + "locURL": { + "type": "string", + "description": "Local operator console URL" + }, + "datastoreId": { + "type": "array", + "items": { + "type": "string" + }, + "description": "upload datastore list" + } + }, + "description": "Local operator console policy to enforce on all devices of the project", + "title": "Local operator console policy body detail", + "required": [ + "locURL" + ] + }, + "MIIMonitor": { + "type": "object", + "properties": { + "interval": { + "type": "integer", + "format": "int64", + "description": "Specifies the MII link monitoring frequency in milliseconds.\nThis determines how often the link state of each bond slave is inspected\nfor link failures." + }, + "updelay": { + "type": "integer", + "format": "int64", + "description": "Updelay specifies the time, in milliseconds, to wait before enabling\na bond slave after a link recovery has been detected.\nThe updelay value should be a multiple of the monitoring interval; if not,\nit will be rounded down to the nearest multiple.\nThe default value is 0." + }, + "downdelay": { + "type": "integer", + "format": "int64", + "description": "Specifies the time, in milliseconds, to wait before disabling a bond\nslave after a link failure has been detected.\nThe downdelay value should be a multiple of the monitoring interval; if not,\nit will be rounded down to the nearest multiple.\nThe default value is 0." + } + }, + "description": "MIIMonitor : MII link monitoring parameters.\nDefined for BondAdapter." + }, + "MapParams": { + "type": "object", + "properties": { + "appPort": { + "type": "integer", + "format": "int64", + "description": "Application Port value" + } + } + }, + "Match": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Type of Match (Required)", + "title": "enum: host, protocol, adapter\nAt the device level it will pick right interface to apply this match" + }, + "value": { + "type": "string", + "description": "Value of match (Required)" + } + } + }, + "MemorySummary": { + "type": "object", + "properties": { + "TotalMB": { + "type": "number", + "format": "double", + "description": "Total memory for the device in MBs" + }, + "UsedMB": { + "type": "number", + "format": "double", + "description": "Total memory used by the device in MBs within allocated memory" + }, + "AllocatedMB": { + "type": "number", + "format": "double", + "description": "Total allocated memory in MBs" + } + }, + "description": "Memory Summary", + "title": "Memory Summary" + }, + "MetricQueryRequestWithId_HttpRequestMetricType_HttpRequest": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "CPU_TOTAL", + "CPU_USAGE", + "MEMORY_TOTAL", + "MEMORY_UTILIZATION", + "NETWORK_TOTAL", + "NETWORK_RATES", + "EVENTS_COUNT", + "STORAGE_UTILIZATION", + "STORAGE_IO_ZPOOL", + "STORAGE_IO_ZVOL" + ], + "default": "UNSPECIFIED", + "title": "MetricType_HttpRequest - only for swagger documentation" + }, + "MetricQueryRequestWithName_HttpRequestMetricType_HttpRequest": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "CPU_TOTAL", + "CPU_USAGE", + "MEMORY_TOTAL", + "MEMORY_UTILIZATION", + "NETWORK_TOTAL", + "NETWORK_RATES", + "EVENTS_COUNT", + "STORAGE_UTILIZATION", + "STORAGE_IO_ZPOOL", + "STORAGE_IO_ZVOL" + ], + "default": "UNSPECIFIED", + "title": "MetricType_HttpRequest - only for swagger documentation" + }, + "MetricQueryResponse": { + "type": "object", + "properties": { + "threshold": { + "$ref": "#/definitions/MetricThreshold" + }, + "metricType": { + "type": "string" + }, + "xLabel": { + "type": "string" + }, + "yLabels": { + "type": "array", + "items": { + "type": "string" + } + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/MetricQueryResponseItem" + } + } + } + }, + "MetricQueryResponseItem": { + "type": "object", + "properties": { + "timestamp": { + "type": "string", + "format": "date-time" + }, + "values": { + "type": "array", + "items": { + "type": "number", + "format": "double" + } + } + } + }, + "MetricThreshold": { + "type": "object", + "properties": { + "yellow": { + "type": "number", + "format": "double" + }, + "red": { + "type": "number", + "format": "double" + } + } + }, + "MetricsDetail": { + "type": "object", + "properties": { + "queries": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Mapping of queries variable keys and value" + }, + "results": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Mapping of results variable keys and value" + } + } + }, + "ModelArchType": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "UNDEFINED", + "AMD64", + "ARM64" + ], + "default": "UNSPECIFIED" + }, + "ModelInfo": { + "type": "object", + "properties": { + "modelId": { + "type": "string", + "description": "system generated unique id for a model", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+" + }, + "modelName": { + "type": "string", + "description": "model name" + }, + "brandId": { + "type": "string", + "description": "system generated unique id for a brand", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+" + }, + "brandName": { + "type": "string", + "description": "brand name" + } + }, + "description": "Detailed model information including id, name", + "title": "Model details" + }, + "ModemDetail": { + "type": "object", + "properties": { + "manufacturer": { + "type": "string", + "description": "Modem manufacturer" + }, + "model": { + "type": "string", + "description": "Modem model" + }, + "firmwareVersion": { + "type": "string", + "description": "Modem firmware version" + }, + "imei": { + "type": "string", + "description": "Modem IMEI" + }, + "operatingState": { + "type": "string", + "$ref": "#/definitions/ZCellularOperatingState", + "description": "Modem operating state" + }, + "controlProtocol": { + "type": "string", + "$ref": "#/definitions/ZCellularControlProtocol", + "description": "Modem control protocol" + } + }, + "description": "ModemDetail describes a cellular Modem", + "title": "ModemDetail describes a cellular Modem" + }, + "ModuleDetail": { + "type": "object", + "example": { + "twinDetail": "IHsKICAgICAgIm5hbWUiOiAiU2VuZEludGVydmFsIiwKICAgICAgInZhbHVlIjogIjUiCiAgICB9" + }, + "properties": { + "twinDetail": { + "type": "string", + "description": "Base64 encoded module twin details, desired properties of the module will be updated to reflect these values" + }, + "routes": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Send messages between modules or send messages from modules to iot hub" + }, + "environment": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Extra information to module to make configuration easier" + }, + "moduleType": { + "$ref": "#/definitions/ModuleType", + "description": "Type of modules" + } + }, + "description": "Azure module specific details", + "title": "Module detail" + }, + "ModulePolicy": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "unique id for deployment", + "readOnly": true, + "pattern": "[0-9-a-z-]+" + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Mapping of label variable keys and value" + }, + "priority": { + "type": "integer", + "format": "int64", + "description": "deployment priority of module manifest", + "required": [ + "priority" + ] + }, + "targetCondition": { + "type": "string", + "description": "target condition for deployment that matches single device or group of devices" + }, + "metrics": { + "$ref": "#/definitions/MetricsDetail", + "description": "custom metrics for deployment" + }, + "Etag": { + "type": "string", + "description": "etag for deployment" + }, + "routes": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Mapping of routes variable keys and value" + }, + "apps": { + "type": "array", + "items": { + "$ref": "#/definitions/AppConfig" + }, + "description": "list of app details that will be provisioned on all the devices of the project to which this policy is attached" + }, + "targetConditionNew": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "target condition for deployment that matches single device or group of devices" + }, + "azureEdgeAgent": { + "$ref": "#/definitions/AppConfig", + "description": "app that describes the azure edge agent to be deployed on the Azure runtime" + }, + "azureEdgeHub": { + "$ref": "#/definitions/AppConfig", + "description": "app that describes the azure edge hub to be deployed on the Azure runtime" + } + }, + "description": "list of modules that will be provisioned on all the devices of the project to which this policy is attached", + "title": "Module policy body detail", + "required": [ + "apps", + "priority" + ] + }, + "ModuleType": { + "type": "string", + "enum": [ + "MODULE_TYPE_UNSPECIFIED", + "MODULE_TYPE_SYSTEM_DEFINED", + "MODULE_TYPE_CUSTOM", + "MODULE_TYPE_AZURE_EDGE_AGENT", + "MODULE_TYPE_AZURE_EDGE_HUB" + ], + "default": "MODULE_TYPE_UNSPECIFIED", + "description": "module type." + }, + "NetCellularAccessPoint": { + "type": "object", + "properties": { + "simSlot": { + "type": "integer", + "format": "int64", + "description": "SIM card slot to which this configuration applies.\n0 - unspecified (apply to currently activated or the only available)\n1 - config for SIM card in the first slot\n2 - config for SIM card in the second slot\netc." + }, + "apn": { + "type": "string", + "description": "Access Point Network to connect into.\nBy default it is \"internet\"." + }, + "authProtocol": { + "$ref": "#/definitions/evecommonCellularAuthProtocol", + "description": "Authentication protocol used by the network." + }, + "cipherData": { + "$ref": "#/definitions/commonCipherBlock", + "description": "Cipher data may contain encrypted user credentials\n(inside cellNetUsername and cellNetPassword fields)." + }, + "preferredPlmns": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The set of cellular network operators that modem should preferably try to register\nand connect into.\nNetwork operator should be referenced by PLMN (Public Land Mobile Network) code,\nconsisting of 3-digits MCC (Mobile Country Code) and 2 or 3-digits MNC (Mobile Network Code),\nseparated by a dash, e.g. \"310-260\".\nIf empty, then modem will select the network automatically based on the SIM card config." + }, + "forbidRoaming": { + "type": "boolean", + "description": "If true, then modem will avoid connecting to networks with roaming." + }, + "preferredRats": { + "type": "array", + "items": { + "$ref": "#/definitions/evecommonRadioAccessTechnology" + }, + "description": "The list of preferred Radio Access Technologies (RATs) to use for connecting\nto the network.\nOrder matters, first is the most preferred, second is tried next, etc.\nNot listed technologies will not be tried.\nIf empty, then modem will select RAT automatically." + }, + "ipType": { + "$ref": "#/definitions/commonCellularIPType", + "description": "The IP addressing type to use for the default bearer." + }, + "attachApn": { + "type": "string", + "description": "Access Point Name (APN) for the attach (initial) bearer.\nThis field is optional. If not specified, EVE will not send any attach bearer\nconfiguration to the modem. Instead, the modem will use one of its pre-installed\nprofiles (see CellularProfile) to determine the configuration." + }, + "attachIpType": { + "$ref": "#/definitions/commonCellularIPType", + "description": "The IP addressing type to use for the attach bearer.\nLeave undefined if attach_apn is not specified." + }, + "attachAuthProtocol": { + "$ref": "#/definitions/CellularAuthProtocol", + "description": "Authentication protocol used for the attach bearer.\nLeave undefined if attach_apn is not specified." + }, + "secrets": { + "$ref": "#/definitions/NetCellularAccessPointSecrets" + }, + "encryptedSecrets": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "cryptoKey": { + "type": "string" + }, + "attachSecrets": { + "$ref": "#/definitions/NetCellularAccessPointSecrets" + }, + "attachEncryptedSecrets": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "NetCellularAccessPointSecrets": { + "type": "object", + "properties": { + "username": { + "type": "string", + "description": "Cellular Username" + }, + "password": { + "type": "string", + "description": "Cellular Password" + } + } + }, + "NetCellularConfig": { + "type": "object", + "properties": { + "APN": { + "type": "string", + "description": "APN string - by default it is \"internet\".\nTO BE DEPRECATED: Fill connection arguments inside access_points instead.\nIf access_points is non-empty, then APN field is ignored." + }, + "probe": { + "$ref": "#/definitions/configCellularConnectivityProbe", + "description": "Optional cellular connectivity probing.\nBy default it is enabled." + }, + "locationTracking": { + "type": "boolean", + "description": "Some LTE modems have GNSS receiver integrated and can be used for device\nlocation tracking.\nEnable this option to have location info periodically obtained from this\nmodem and published to controller and to applications." + }, + "accessPoints": { + "type": "array", + "items": { + "$ref": "#/definitions/NetCellularAccessPoint" + }, + "description": "Parameters to apply for connecting to cellular networks.\nConfigured separately for every SIM card inserted into the modem." + }, + "activatedSimSlot": { + "type": "integer", + "format": "int64", + "description": "Select SIM card slot to activate.\nCurrently, EVE support only single-standby SIM card mode.\n0 - unspecified (leave the currently activated)\n1 - activate the first SIM slot\n2 - activate the second SIM slot\netc." + } + } + }, + "NetConfig": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the network", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the network, unique across the enterprise. Once object is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the network. Title can be changed at any time", + "maxLength": 256, + "minLength": 3, + "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$" + }, + "description": { + "type": "string", + "description": "Detailed description of the network", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined info" + }, + "projectId": { + "type": "string" + }, + "kind": { + "$ref": "#/definitions/NetworkKind" + }, + "ip": { + "$ref": "#/definitions/IpSpec" + }, + "dnsList": { + "type": "array", + "items": { + "$ref": "#/definitions/StaticDNSList" + } + }, + "proxy": { + "$ref": "#/definitions/NetProxyConfig", + "title": "enterprise proxy" + }, + "enterpriseDefault": { + "type": "boolean", + "title": "make this network default for device" + }, + "mtu": { + "type": "integer", + "format": "int64", + "title": "Maximum transmission unit (MTU) to set on the associated network adapter(s)" + }, + "wireless": { + "$ref": "#/definitions/NetWirelessConfig", + "title": "Wifi configuration" + }, + "project": { + "$ref": "#/definitions/NetProjectInfo", + "title": "project configuration" + } + }, + "description": "Network provides Edge nodes a variety of connectivity choices for all types of networks. This enables physical connectivity with Ethernet, WiFi, LTE to communicate with ZEDEDA Cloud controller and Data Centres.", + "title": "Network detailed configuration", + "required": [ + "name", + "title", + "projectId", + "kind", + "ip" + ] + }, + "NetInstConfig": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the network instance", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the network instance, unique across the enterprise. Once object is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the network instance. Title can be changed at any time", + "maxLength": 256, + "minLength": 3, + "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$" + }, + "description": { + "type": "string", + "description": "Detailed description of the network instance", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined info for the object" + }, + "projectId": { + "type": "string", + "description": "id of the project in which network instance is created" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "clusterID": { + "type": "string", + "description": "id of the Cluster in which the network instance is configured", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "deviceId": { + "type": "string", + "description": "id of the device on which network instance is created", + "title": "device on which this network is running" + }, + "port": { + "type": "string", + "description": "name of port mapping in the model", + "title": "name of port mapping in the model" + }, + "portTags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "kind": { + "$ref": "#/definitions/NetworkInstanceKind", + "description": "Kind of Network Instance ( Local, Switch etc )" + }, + "dhcp": { + "type": "boolean", + "description": "Deprecated", + "title": "dhcp - DEPRECATED" + }, + "type": { + "$ref": "#/definitions/NetworkInstanceDhcpType", + "description": "Type of DHCP for this Network Instance" + }, + "ip": { + "$ref": "#/definitions/DhcpServerConfig", + "description": "Dhcp Server Configuration" + }, + "dnsList": { + "type": "array", + "items": { + "$ref": "#/definitions/StaticDNSList" + }, + "description": "List of Static DNS entries" + }, + "oconfig": { + "type": "string", + "title": "Deprecated" + }, + "lisp": { + "$ref": "#/definitions/LispConfig", + "description": "Lisp Config : read only for now. Deprecated." + }, + "opaque": { + "$ref": "#/definitions/NetInstOpaqueConfig", + "description": "Service specific Config" + }, + "deviceDefault": { + "type": "boolean", + "description": "flag to indicate if this is the default network instance for the device", + "title": "flag to indicate if this is default network" + }, + "networkPolicyId": { + "type": "string", + "description": "id of the network policy to be attached to this network instance" + }, + "propagateConnectedRoutes": { + "type": "boolean", + "description": "Automatically propagate connected routes" + }, + "staticRoutes": { + "type": "array", + "items": { + "$ref": "#/definitions/StaticIPRoute" + }, + "description": "List of Static IP routes" + }, + "mtu": { + "type": "integer", + "format": "int64", + "description": "Maximum transmission unit (MTU) to set for the network instance and all application interfaces connected to it" + }, + "edgeNodeCluster": { + "$ref": "#/definitions/NetInstEdgeNodeCluster", + "description": "Edge Node Cluster" + }, + "forwardLldp": { + "type": "boolean", + "description": "Enables forwarding of LLDP (Link Layer Discovery Protocol) frames across this\nnetwork instance.\nLLDP is used by devices to advertise identity and capabilities to directly\nconnected neighbors, and is often required for topology discovery and network\nmanagement tools.\nWhen enabled, LLDP frames (EtherType 0x88cc) are not dropped or suppressed\nby the forwarding plane." + } + }, + "description": "Network instance provides Edge applications a variety of connectivity choices for all types of networks. This enables logical secure connectivity between Edge applications within a single Edge node and within a logical group of Edge nodes. This provides detailed configuration of a Network instance.", + "title": "Network instance detailed configuration", + "required": [ + "name", + "title", + "deviceId", + "port", + "kind" + ] + }, + "NetInstEdgeNodeCluster": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Id of the Edge Node Cluster", + "pattern": "[0-9A-Za-z-]+" + }, + "designatedNodeID": { + "type": "string", + "description": "Id of the designated Edge Node", + "pattern": "[0-9A-Za-z-]+" + } + } + }, + "NetInstOpaqueConfig": { + "type": "object", + "properties": { + "type": { + "type": "string", + "$ref": "#/definitions/OpaqueConfigType", + "description": "type of Opaque config" + }, + "oconfig": { + "type": "string", + "description": "base64 encoded string of opaque config" + }, + "lisp": { + "type": "string", + "$ref": "#/definitions/LispConfig", + "description": "Deprecated - Lisp config", + "title": "lisp - Deprecated" + } + }, + "description": "Network Instance Opaque config. This is service specific configuration." + }, + "NetProjectInfo": { + "type": "object", + "properties": { + "projectId": { + "type": "string", + "description": "system generated unique id for a project", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+" + }, + "projectName": { + "type": "string", + "description": "project name" + } + } + }, + "NetProxyConfig": { + "type": "object", + "properties": { + "networkProxy": { + "type": "boolean", + "description": "Network proxy" + }, + "proxies": { + "type": "array", + "items": { + "$ref": "#/definitions/NetProxyServer" + }, + "description": "Net Proxy: protocol level proxies", + "title": "protocol level proxies" + }, + "exceptions": { + "type": "string", + "description": "Proxy exceptions" + }, + "pacfile": { + "type": "string", + "description": "proxy configuration in a pacfile", + "title": "proxy configuration in a pacfile" + }, + "networkProxyURL": { + "type": "string", + "description": "Network Proxy URL", + "title": "Direct URL for wpad.dat download" + }, + "networkProxyCerts": { + "type": "array", + "items": { + "type": "string", + "format": "byte" + }, + "description": "Network Proxy Certificates", + "title": "Proxy Certificates" + } + }, + "description": "Net Proxy Configurations", + "title": "Net Proxy Configurations" + }, + "NetProxyServer": { + "type": "object", + "properties": { + "proto": { + "type": "object", + "$ref": "#/definitions/NetworkProxyProto", + "description": "Net Proxy proto" + }, + "server": { + "type": "string", + "description": "Net Proxy Server" + }, + "port": { + "type": "number", + "format": "int64", + "description": "Net Proxy Port" + } + }, + "description": "Net Proxy Server", + "title": "Net Proxy Server" + }, + "NetProxyStatus": { + "type": "object", + "properties": { + "networkProxy": { + "type": "boolean", + "description": "Use pacfile (Auto discover or manual upload)", + "title": "Enable, the proxy configuration coming from network" + }, + "proxies": { + "type": "array", + "items": { + "$ref": "#/definitions/NetProxyServer" + }, + "description": "protocol level proxies", + "title": "protocol level proxies" + }, + "exceptions": { + "type": "string", + "description": "exceptions" + }, + "pacfile": { + "type": "string", + "description": "proxy configuration in a pacfile", + "title": "proxy configuration in a pacfile" + }, + "networkProxyURL": { + "type": "string", + "description": "Network Proxy URL", + "title": "Direct URL for wpad.dat download" + }, + "wpadProxyURL": { + "type": "string", + "description": "WPAD Proxy URL" + } + }, + "description": "NetProxyStatus is used to store the proxy configurations", + "title": "NetProxyStatus is used to store the proxy configurations" + }, + "NetWifiConfig": { + "type": "object", + "properties": { + "wifiSSID": { + "type": "string" + }, + "keyScheme": { + "$ref": "#/definitions/NetworkWiFiKeyScheme" + }, + "identity": { + "type": "string" + }, + "secret": { + "$ref": "#/definitions/NetWifiConfigSecrets" + }, + "crypto": { + "$ref": "#/definitions/NetWifiConfigNetcryptoblock" + }, + "priority": { + "type": "integer", + "format": "int32" + }, + "encryptedSecrets": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "cryptoKey": { + "type": "string" + } + } + }, + "NetWifiConfigNetcryptoblock": { + "type": "object", + "properties": { + "identity": { + "type": "string" + }, + "password": { + "type": "string" + } + } + }, + "NetWifiConfigSecrets": { + "type": "object", + "properties": { + "WiFiPasswd": { + "type": "string", + "description": "Wifi Password" + } + } + }, + "NetWirelessConfig": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/NetworkWirelessType" + }, + "cellularCfg": { + "$ref": "#/definitions/NetCellularConfig" + }, + "wifiCfg": { + "$ref": "#/definitions/NetWifiConfig" + } + } + }, + "NetworkCounters": { + "type": "object", + "properties": { + "ifName": { + "type": "string", + "description": "ifName" + }, + "txBytes": { + "type": "number", + "format": "uint64", + "description": "Tx Bytes" + }, + "rxBytes": { + "type": "number", + "format": "uint64", + "description": "Rx Bytes" + }, + "txPkts": { + "type": "number", + "format": "uint64", + "description": "Tx Packets" + }, + "rxPkts": { + "type": "number", + "format": "uint64", + "description": "Rx packets" + }, + "txErrors": { + "type": "number", + "format": "uint64", + "description": "Tx Errors" + }, + "rxErrors": { + "type": "number", + "format": "uint64", + "description": "Rx Errors" + }, + "txDrops": { + "type": "number", + "format": "uint64", + "description": "Tx Drops" + }, + "rxDrops": { + "type": "number", + "format": "uint64", + "description": "Rx Drops" + }, + "txAclDrops": { + "type": "number", + "format": "uint64", + "description": "Tx ACL Rate Drops" + }, + "rxAclDrops": { + "type": "number", + "format": "uint64", + "description": "Rx ACL Rate Drops" + }, + "txAclRateLimitDrops": { + "type": "number", + "format": "uint64", + "description": "Tx ACL Rate Limit Drops" + }, + "rxAclRateLimitDrops": { + "type": "number", + "format": "uint64", + "description": "Rx ACL Rate Limit Drops" + } + }, + "description": "NetworkCounter is used to store the Network Stats and Counters", + "title": "NetworkCounter is used to store the Network Stats and Counters" + }, + "NetworkDHCPType": { + "type": "string", + "enum": [ + "NETWORK_DHCP_TYPE_UNSPECIFIED", + "NETWORK_DHCP_TYPE_STATIC", + "NETWORK_DHCP_TYPE_PASSTHROUGH", + "NETWORK_DHCP_TYPE_DEPRECATED", + "NETWORK_DHCP_TYPE_CLIENT", + "NETWORK_DHCP_TYPE_STATIC_ADAPTER_SPECIFIC" + ], + "default": "NETWORK_DHCP_TYPE_UNSPECIFIED", + "title": "- NETWORK_DHCP_TYPE_STATIC: used for adapter configured DHCP static\n - NETWORK_DHCP_TYPE_PASSTHROUGH: used for adapter configured DHCP none, application will do DHCP\n - NETWORK_DHCP_TYPE_DEPRECATED: used for application simulation\n - NETWORK_DHCP_TYPE_CLIENT: used for adapter configured DHCP client\n - NETWORK_DHCP_TYPE_STATIC_ADAPTER_SPECIFIC: used to configure device adapter specific static networks" + }, + "NetworkInstConfig": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "port": { + "type": "string", + "description": "name of port mapping in the model", + "title": "name of port mapping in the model" + }, + "portTags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "kind": { + "$ref": "#/definitions/NetworkInstanceKind", + "description": "Kind of Network Instance ( Local, Switch etc )" + }, + "type": { + "$ref": "#/definitions/NetworkInstanceDhcpType", + "description": "Type of DHCP for this Network Instance" + }, + "ip": { + "$ref": "#/definitions/DhcpServerConfig", + "description": "Dhcp Server Configuration" + }, + "dnsList": { + "type": "array", + "items": { + "$ref": "#/definitions/StaticDNSList" + }, + "description": "List of Static DNS entries" + }, + "opaque": { + "$ref": "#/definitions/NetInstOpaqueConfig", + "description": "Service specific Config" + }, + "deviceDefault": { + "type": "boolean", + "description": "flag to indicate if this is the default network instance for the device", + "title": "flag to indicate if this is default network" + }, + "propagateConnectedRoutes": { + "type": "boolean", + "description": "Automatically propagate connected routes", + "title": "flag to indicate automatically propagate connected routes" + }, + "staticRoutes": { + "type": "array", + "items": { + "$ref": "#/definitions/StaticIPRoute" + }, + "description": "List of Static IP routes", + "title": "list of static IP routes" + }, + "forwardLldp": { + "type": "boolean", + "description": "enable/disable lldp frame forward" + } + } + }, + "NetworkInstPolicy": { + "type": "object", + "properties": { + "metaData": { + "$ref": "#/definitions/PolicyCommon", + "description": "all the required metadata for a policy like id, name, different types of tags" + }, + "netInstConfig": { + "$ref": "#/definitions/NetworkInstConfig", + "description": "network instance config details" + } + } + }, + "NetworkInstanceDhcpType": { + "type": "string", + "enum": [ + "NETWORK_INSTANCE_DHCP_TYPE_UNSPECIFIED", + "NETWORK_INSTANCE_DHCP_TYPE_V4", + "NETWORK_INSTANCE_DHCP_TYPE_V6", + "NETWORK_INSTANCE_DHCP_TYPE_CRYPTOEID", + "NETWORK_INSTANCE_DHCP_TYPE_CRYPTOV4", + "NETWORK_INSTANCE_DHCP_TYPE_CRYPTOV6" + ], + "default": "NETWORK_INSTANCE_DHCP_TYPE_UNSPECIFIED", + "title": "NetworkInstanceDhcpType: Used in the network instance provide\n dhcp server configuration" + }, + "NetworkInstanceFlowLogTransmission": { + "type": "string", + "enum": [ + "NETWORK_INSTANCE_FLOW_LOG_TRANSMISSION_UNSPECIFIED", + "NETWORK_INSTANCE_FLOW_LOG_TRANSMISSION_ENABLED", + "NETWORK_INSTANCE_FLOW_LOG_TRANSMISSION_DISABLED" + ], + "default": "NETWORK_INSTANCE_FLOW_LOG_TRANSMISSION_UNSPECIFIED", + "description": "NetworkInstanceFlowLogTransmission represents the status of flow log transmission\nwithin a network instance. This enum is used to enable or disable the transmission\nof flow logs for monitoring and troubleshooting purposes.\n\n - NETWORK_INSTANCE_FLOW_LOG_TRANSMISSION_UNSPECIFIED: Default value. This value is not specified and should not be used.\n - NETWORK_INSTANCE_FLOW_LOG_TRANSMISSION_ENABLED: Flow log transmission is enabled. Logs will be sent to the designated\nlogging service for the network instance.\n - NETWORK_INSTANCE_FLOW_LOG_TRANSMISSION_DISABLED: Flow log transmission is disabled. No logs will be sent from the\nnetwork instance." + }, + "NetworkInstanceKind": { + "type": "string", + "enum": [ + "NETWORK_INSTANCE_KIND_UNSPECIFIED", + "NETWORK_INSTANCE_KIND_TRANSPARENT", + "NETWORK_INSTANCE_KIND_SWITCH", + "NETWORK_INSTANCE_KIND_LOCAL", + "NETWORK_INSTANCE_KIND_CLOUD", + "NETWORK_INSTANCE_KIND_MESH", + "NETWORK_INSTANCE_KIND_HONEYPOT" + ], + "default": "NETWORK_INSTANCE_KIND_UNSPECIFIED" + }, + "NetworkKind": { + "type": "string", + "enum": [ + "NETWORK_KIND_UNSPECIFIED", + "NETWORK_KIND_V4", + "NETWORK_KIND_V6", + "NETWORK_KIND_V4_ONLY", + "NETWORK_KIND_V6_ONLY", + "NETWORK_KIND_DUAL_V4_V6" + ], + "default": "NETWORK_KIND_UNSPECIFIED", + "title": "NetworkKind: Used for the network configuration, this is\n only client mode" + }, + "NetworkPolicy": { + "type": "object", + "properties": { + "netInstanceConfig": { + "type": "array", + "items": { + "$ref": "#/definitions/NetInstConfig" + }, + "description": "list of network details that will be created on all the devices of the project to which this policy is attached" + } + }, + "description": "list of networks that will be created on all the devices of the project to which this policy is attached", + "title": "Network policy body detail", + "required": [ + "netInstanceConfig" + ] + }, + "NetworkProvider": { + "type": "object", + "properties": { + "plmn": { + "type": "string", + "description": "PLMN code" + }, + "name": { + "type": "string", + "description": "Human-friendly name" + }, + "rat": { + "type": "string", + "$ref": "#/definitions/RadioAccessTechnology", + "description": "Radio Access Technology" + }, + "roaming": { + "type": "boolean", + "description": "Is Roaming ON" + }, + "connectedAt": { + "type": "string", + "format": "date-time", + "description": "Time when was the connection established" + } + }, + "description": "NetworkProvider describes a cellular Network Provider", + "title": "NetworkProvider describes a cellular Network Provider" + }, + "NetworkProxyProto": { + "type": "string", + "enum": [ + "NETWORK_PROXY_PROTO_HTTP", + "NETWORK_PROXY_PROTO_HTTPS", + "NETWORK_PROXY_PROTO_SOCKS", + "NETWORK_PROXY_PROTO_FTP", + "NETWORK_PROXY_PROTO_OTHER" + ], + "default": "NETWORK_PROXY_PROTO_HTTP" + }, + "NetworkStatus": { + "type": "object", + "properties": { + "up": { + "type": "boolean", + "description": "Network Status flag" + }, + "macAddr": { + "type": "string", + "description": "mac Address" + }, + "ifName": { + "type": "string", + "description": "ifName" + }, + "ipAddrs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Array of IP addresses" + }, + "defaultRouters": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Default Routers" + }, + "dns": { + "type": "object", + "$ref": "#/definitions/DNSInfo", + "description": "DNS Configuration" + }, + "location": { + "type": "object", + "$ref": "#/definitions/GeoLocation", + "description": "Geo Location Details" + }, + "uplink": { + "type": "boolean", + "description": "Uplink flag" + }, + "proxy": { + "type": "object", + "$ref": "#/definitions/NetProxyStatus", + "description": "Network Proxy status" + }, + "errInfo": { + "type": "object", + "$ref": "#/definitions/DeviceError", + "description": "Network error details" + }, + "gpsLocation": { + "type": "object", + "$ref": "#/definitions/GPSLocation", + "description": "Location from GNSS receivers on WWAN type adapters" + }, + "cellular": { + "type": "object", + "$ref": "#/definitions/CellularStatus", + "description": "Cellular network status" + }, + "mtu": { + "type": "integer", + "format": "int64", + "description": "Network MTU" + }, + "pnacStatus": { + "$ref": "#/definitions/PNACPortStatus", + "description": "PNAC 802.1X authentication status for this port", + "title": "PNAC (802.1X) authentication status for this port" + }, + "configSource": { + "$ref": "#/definitions/commonPortConfigSource", + "description": "Identifies the source of this network port configuration" + } + }, + "description": "NetworkStatus is used to store the Network status", + "title": "NetworkStatus is used to store the Network Status" + }, + "NetworkWiFiKeyScheme": { + "type": "string", + "enum": [ + "NETWORK_WIFIKEY_SCHEME_UNSPECIFIED", + "NETWORK_WIFIKEY_SCHEME_WPAPSK", + "NETWORK_WIFIKEY_SCHEME_WPAEAP" + ], + "default": "NETWORK_WIFIKEY_SCHEME_UNSPECIFIED" + }, + "NetworkWirelessType": { + "type": "string", + "enum": [ + "NETWORK_WIRELESS_TYPE_UNSPECIFIED", + "NETWORK_WIRELESS_TYPE_WIFI", + "NETWORK_WIRELESS_TYPE_CELLULAR" + ], + "default": "NETWORK_WIRELESS_TYPE_UNSPECIFIED" + }, + "NtpServer": { + "type": "object", + "properties": { + "server": { + "type": "string", + "description": "NTP Server IP or FQDN" + } + }, + "description": "NTP Server", + "title": "NTP Server" + }, + "NtpSource": { + "type": "object", + "properties": { + "authenticated": { + "type": "boolean" + }, + "reachable": { + "type": "boolean" + }, + "reachability": { + "type": "integer", + "format": "int64" + }, + "state": { + "$ref": "#/definitions/NtpSourceState" + }, + "mode": { + "$ref": "#/definitions/NtpSourceMode" + }, + "hostname": { + "type": "string" + }, + "srcAddr": { + "type": "string" + }, + "srcPort": { + "type": "integer", + "format": "int64" + }, + "dstAddr": { + "type": "string" + }, + "dstPort": { + "type": "integer", + "format": "int64" + }, + "leap": { + "type": "integer", + "format": "int64" + }, + "stratum": { + "type": "integer", + "format": "int64" + }, + "precision": { + "type": "integer", + "format": "int64" + }, + "refId": { + "type": "string" + }, + "refTime": { + "type": "string", + "format": "date-time" + }, + "poll": { + "type": "integer", + "format": "int32" + }, + "flags": { + "type": "integer", + "format": "int64" + }, + "offset": { + "type": "number", + "format": "double" + }, + "delay": { + "type": "number", + "format": "double" + }, + "dispersion": { + "type": "number", + "format": "double" + }, + "jitter": { + "type": "number", + "format": "double" + }, + "rootDelay": { + "type": "number", + "format": "double" + }, + "rootDisp": { + "type": "number", + "format": "double" + } + } + }, + "NtpSourceMode": { + "type": "string", + "enum": [ + "NTP_SOURCE_MODE_UNSPECIFIED", + "NTP_SOURCE_MODE_CLIENT", + "NTP_SOURCE_MODE_PEER", + "NTP_SOURCE_MODE_REF" + ], + "default": "NTP_SOURCE_MODE_UNSPECIFIED", + "description": "Enum for describing the NTP source mode, see chrony client\nhttps://gitlab.com/chrony/chrony/-/blob/master/client.c\nand its output of the command 'sources'." + }, + "NtpSourceState": { + "type": "string", + "enum": [ + "NTP_SOURCE_STATE_UNSPECIFIED", + "NTP_SOURCE_STATE_SYNC", + "NTP_SOURCE_STATE_UNREACH", + "NTP_SOURCE_STATE_FALSETICKER", + "NTP_SOURCE_STATE_JITTERY", + "NTP_SOURCE_STATE_CANDIDATE", + "NTP_SOURCE_STATE_OUTLIER" + ], + "default": "NTP_SOURCE_STATE_UNSPECIFIED", + "description": "Enum for describing the NTP source state, see chrony client\nsources https://gitlab.com/chrony/chrony/-/blob/master/client.c\nand its output of the command 'sources'." + }, + "NtpSources": { + "type": "object", + "properties": { + "source": { + "type": "array", + "items": { + "$ref": "#/definitions/NtpSource" + } + } + } + }, + "ObjectParentDetail": { + "type": "object", + "properties": { + "idOfParentObject": { + "type": "string", + "description": "system defined unique id of parent object", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "required": [ + "true" + ] + }, + "versionOfParentObject": { + "type": "integer", + "format": "int64", + "description": "version of object present in parent", + "readOnly": true, + "pattern": "[0-9]+" + }, + "updateAvailable": { + "type": "boolean", + "description": "Update required flag" + }, + "referenceExists": { + "type": "boolean", + "description": "Relation with child and parent object exists or not" + } + }, + "description": "ObjectImportDetail consists of various object attributes like idOfParentObject, versionOfParentObject, updateAvailable, referenceExists", + "title": "Object Import Detail", + "required": [ + "idOfParentObject" + ] + }, + "ObjectRevision": { + "type": "object", + "properties": { + "prev": { + "type": "string", + "description": "Previous" + }, + "curr": { + "type": "string", + "description": "Current Database version of the record" + }, + "createdAt": { + "type": "object", + "format": "date-time", + "description": "The time, in milliseconds since the epoch, when the record was created." + }, + "createdBy": { + "type": "string", + "description": "User data: Created By" + }, + "updatedAt": { + "type": "object", + "format": "date-time", + "description": "The time, in milliseconds since the epoch, when the record was last updated." + }, + "updatedBy": { + "type": "string", + "description": "User data: Updated By" + } + }, + "description": "ObjectRevision store the user details, who has doent the necessary operation like Create Operation or update operation", + "title": "ObjectRevision is used to store the user information.", + "required": [ + "curr", + "createdAt", + "createdBy", + "updatedAt", + "updatedBy" + ] + }, + "ObjectTag": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "object tag key identifier." + }, + "value": { + "type": "string", + "description": "value associated for the object tag key" + }, + "description": { + "type": "string", + "description": "Description of the tag key" + } + }, + "description": "Object tag deaails.", + "title": "Object Tag details" + }, + "ObjectTagFilter": { + "type": "object", + "properties": { + "objId": { + "type": "string", + "description": "Object Id which tags are associated." + }, + "objName": { + "type": "string", + "description": "Object name which tags are associated." + }, + "objType": { + "type": "object", + "$ref": "#/definitions/ObjectType", + "description": "Object type" + } + }, + "description": "Filter criteria for the object tag list.", + "title": "Object tag list filter criteria" + }, + "ObjectTagsList": { + "type": "object", + "properties": { + "objectTags": { + "type": "array", + "items": { + "$ref": "#/definitions/ObjectTag" + }, + "description": "Details of Object tags list records." + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "Returned record page." + } + }, + "description": "Returned list of Object tags matched by filter criteria", + "title": "Object tag list records" + }, + "ObjectType": { + "type": "string", + "enum": [ + "OBJECT_TYPE_UNSPECIFIED", + "OBJECT_TYPE_USER", + "OBJECT_TYPE_EDGE_NODE", + "OBJECT_TYPE_EDGE_APP", + "OBJECT_TYPE_IMAGE", + "OBJECT_TYPE_EDGE_APP_INSTANCE", + "OBJECT_TYPE_PROJECT", + "OBJECT_TYPE_NETWORK", + "OBJECT_TYPE_DATASTORE", + "OBJECT_TYPE_SERVICE", + "OBJECT_TYPE_SERVICE_INSTANCE", + "OBJECT_TYPE_ENTERPRISE", + "OBJECT_TYPE_ROLE", + "OBJECT_TYPE_CREDENTIAL", + "OBJECT_TYPE_NETWORK_INSTANCE", + "OBJECT_TYPE_VOLUME_INSTANCE", + "OBJECT_TYPE_REALM", + "OBJECT_TYPE_AUTHPROFILE", + "OBJECT_TYPE_POLICY", + "OBJECT_TYPE_APP_POLICY", + "OBJECT_TYPE_CLUSTER_INSTANCE", + "OBJECT_TYPE_PLUGIN", + "OBJECT_TYPE_DOC_POLICY", + "OBJECT_TYPE_ORCHESTRATOR_CLUSTER", + "OBJECT_TYPE_TAGS", + "OBJECT_TYPE_EDGE_NODE_INTERFACE", + "OBJECT_TYPE_DEPLOYMENT", + "OBJECT_TYPE_ENTITLEMENTS", + "OBJECT_TYPE_DATA_STREAM", + "OBJECT_TYPE_API_USAGE", + "OBJECT_TYPE_APP_INSTANCE_SNAPSHOT", + "OBJECT_TYPE_PATCH_ENVELOPE", + "OBJECT_TYPE_RESOURCE_USAGE_TRACK", + "OBJECT_TYPE_PATCH_ENVELOPE_REFERENCE", + "OBJECT_TYPE_DEV_PASSTHROUGH", + "OBJECT_TYPE_EDGE_NODE_CLUSTER", + "OBJECT_TYPE_ASSET_GROUP", + "OBJECT_TYPE_APP_PROFILE", + "OBJECT_TYPE_PROFILE_DEPLOYMENT", + "OBJECT_TYPE_ZKS_INSTANCE", + "OBJECT_TYPE_CLUSTER_GROUP" + ], + "default": "OBJECT_TYPE_UNSPECIFIED" + }, + "OpaqueConfigType": { + "type": "string", + "enum": [ + "OPAQUE_CONFIG_TYPE_UNSPECIFIED", + "OPAQUE_CONFIG_TYPE_VPN", + "OPAQUE_CONFIG_TYPE_LISP" + ], + "default": "OPAQUE_CONFIG_TYPE_UNSPECIFIED" + }, + "OptionalCapabilities": { + "type": "object", + "properties": { + "hvTypeKubevirt": { + "type": "boolean", + "title": "Virtualization type Kubevirt" + }, + "etcdSnapshot": { + "type": "boolean", + "title": "Device supports etcd snapshots (e.g. eve-k flavor)" + } + } + }, + "Origin": { + "type": "string", + "enum": [ + "ORIGIN_UNSPECIFIED", + "ORIGIN_IMPORTED", + "ORIGIN_LOCAL", + "ORIGIN_GLOBAL", + "ORIGIN_APP_PROFILE_LOCAL" + ], + "default": "ORIGIN_UNSPECIFIED", + "description": "- ORIGIN_UNSPECIFIED: default options, which says no Operation/Invalid Operation\n - ORIGIN_IMPORTED: Object imported from global enterprise.\n - ORIGIN_LOCAL: Objectl created locally.\n - ORIGIN_GLOBAL: Object created in global store,\nto use this type user should have root previlage.\n - ORIGIN_APP_PROFILE_LOCAL: Object created via App profile", + "title": "OriginType : enum specifies the Object orgigin type" + }, + "PCRPolicy": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "unique policy id", + "readOnly": true, + "pattern": "[0-9-a-z-]+" + }, + "pcrIndices": { + "type": "array", + "items": { + "type": "integer", + "format": "int64" + }, + "description": "List of PCR indices for TPM key sealing" + }, + "policyVersion": { + "type": "integer", + "format": "int64", + "description": "Policy version for audit tracking" + } + }, + "description": "PCR policy for TPM key sealing on devices", + "title": "PCR policy body detail", + "required": [ + "pcrIndices" + ] + }, + "PCRTemplate": { + "type": "object", + "properties": { + "eveVersion": { + "type": "string", + "description": "EVE version related to the PCR template" + }, + "firmwareVersion": { + "type": "string", + "description": "Firmware version related to the PCR template. If user doesn't set it, it will be set to '*'" + }, + "PCRValues": { + "type": "array", + "items": { + "$ref": "#/definitions/PCRValue" + }, + "description": "List of PCR values for the PCR template" + }, + "id": { + "type": "string", + "description": "System defined universally unique Id of the PCR template. If not set in POST / PUT API calls, this will be treated as a new entry and a unique System Generated ID assigned.", + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "Name of the PCR template. The name is Unique among PCR templates for that System Model. If it is not specified, a system-generated name will be assigned.", + "maxLength": 256 + } + }, + "description": "PCR template data for the specified eve version and firmware version", + "title": "PCR template", + "required": [ + "eveVersion", + "PCRValues" + ] + }, + "PCRTemplatesInfo": { + "type": "object", + "properties": { + "templates": { + "type": "array", + "items": { + "$ref": "#/definitions/PCRTemplate" + }, + "description": "List of templates" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "Responded page details of filtered records" + } + }, + "description": "List of PCR templates associated with some System Model. ", + "title": "PCR template list info" + }, + "PCRTemplatesReq": { + "type": "object", + "properties": { + "modelId": { + "type": "string", + "description": "device model identifier" + }, + "templates": { + "type": "array", + "items": { + "$ref": "#/definitions/PCRTemplate" + }, + "description": "List of templates" + } + }, + "description": "Request that contains a model id and pcr templates, which can be associated with the model. ", + "title": "PCR templates request " + }, + "PCRType": { + "type": "string", + "enum": [ + "PCR_TYPE_UNSPECIFIED", + "PCR_TYPE_HASH", + "PCR_TYPE_EVENT_LOG" + ], + "default": "PCR_TYPE_UNSPECIFIED", + "title": "- PCR_TYPE_UNSPECIFIED: Unset PCR type\n - PCR_TYPE_HASH: PCR value of type HASH\n - PCR_TYPE_EVENT_LOG: PCR value of type event log" + }, + "PCRValue": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/PCRType", + "description": "Type of value for the PCR item. Could be one of the following values: 0 (PCR_TYPE_UNSPECIFIED), 1 (PCR_TYPE_HASH) or 2 (PCR_TYPE_EVENT_LOG)" + }, + "index": { + "type": "number", + "format": "int64", + "description": "Current index for the PCR item in the list. First element has the index 0" + }, + "value": { + "type": "string", + "description": "Actual value for the PCR item." + } + }, + "description": "PCR value contains the actual value of the specified PCR type", + "title": "PCR value", + "required": [ + "type", + "index", + "value" + ] + }, + "PNACMetricInfo": { + "type": "object", + "properties": { + "logicalLabel": { + "type": "string", + "description": "Logical label of the network port" + }, + "eapolFramesRx": { + "type": "string", + "format": "uint64", + "description": "Total EAPOL frames received" + }, + "eapolFramesTx": { + "type": "string", + "format": "uint64", + "description": "Total EAPOL frames transmitted" + }, + "eapolStartFramesTx": { + "type": "string", + "format": "uint64", + "description": "EAPOL-Start frames transmitted" + }, + "eapolLogoffFramesTx": { + "type": "string", + "format": "uint64", + "description": "EAPOL-Logoff frames transmitted" + }, + "eapolRespFramesTx": { + "type": "string", + "format": "uint64", + "description": "EAP-Response frames transmitted" + }, + "eapolReqIdFramesRx": { + "type": "string", + "format": "uint64", + "description": "EAP-Request Identity frames received" + }, + "eapolReqFramesRx": { + "type": "string", + "format": "uint64", + "description": "EAP-Request frames received" + }, + "invalidEapolFramesRx": { + "type": "string", + "format": "uint64", + "description": "Invalid EAPOL frames received" + }, + "eapLengthErrorFramesRx": { + "type": "string", + "format": "uint64", + "description": "EAPOL frames with length errors received" + } + }, + "description": "PNACMetricInfo reports 802.1X EAPOL frame counters for a network port." + }, + "PNACPortStatus": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "description": "Whether 802.1X authentication is enabled on this port" + }, + "supplicantState": { + "$ref": "#/definitions/PNACSupplicantState", + "description": "802.1X supplicant state" + }, + "lastAuthTimestamp": { + "type": "string", + "format": "date-time", + "description": "Timestamp of the most recent successful 802.1X authentication." + }, + "err": { + "type": "object", + "$ref": "#/definitions/DeviceError", + "description": "Supplicant authentication error details" + } + }, + "description": "PNACPortStatus reports the 802.1X authentication status of a network port." + }, + "PNACSupplicantState": { + "type": "string", + "enum": [ + "PNAC_SUPPLICANT_STATE_UNSPECIFIED", + "PNAC_SUPPLICANT_STATE_DISCONNECTED", + "PNAC_SUPPLICANT_STATE_CONNECTING", + "PNAC_SUPPLICANT_STATE_AUTHENTICATING", + "PNAC_SUPPLICANT_STATE_AUTHENTICATED", + "PNAC_SUPPLICANT_STATE_FAILED", + "PNAC_SUPPLICANT_STATE_HELD" + ], + "default": "PNAC_SUPPLICANT_STATE_UNSPECIFIED", + "description": "PNACSupplicantState describes the 802.1X supplicant state for PNAC.\n\n - PNAC_SUPPLICANT_STATE_DISCONNECTED: Supplicant is idle or link is down; no authentication in progress.\n - PNAC_SUPPLICANT_STATE_CONNECTING: Link is up and the supplicant is initiating authentication.\n - PNAC_SUPPLICANT_STATE_AUTHENTICATING: Active EAP authentication exchange is in progress.\n - PNAC_SUPPLICANT_STATE_AUTHENTICATED: Authentication completed successfully; port is authorized.\n - PNAC_SUPPLICANT_STATE_FAILED: Authentication failed and access was not granted.\n - PNAC_SUPPLICANT_STATE_HELD: Supplicant is in a held or backoff state following repeated failures." + }, + "Param": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the Parameter (Required)" + }, + "value": { + "type": "string", + "description": "Value of the parameter (Required)" + } + } + }, + "Permission": { + "type": "object" + }, + "PhysicalStorage": { + "type": "object", + "properties": { + "poolName": { + "type": "string" + }, + "storageType": { + "$ref": "#/definitions/PhysicalStorageTypeInfo" + }, + "storageState": { + "$ref": "#/definitions/PhysicalStorageStatus" + }, + "zfsVersion": { + "type": "string" + }, + "countZvols": { + "type": "integer", + "format": "int64" + }, + "currentRaid": { + "$ref": "#/definitions/PhysicalStorageRaidType" + }, + "compressionRatio": { + "type": "number", + "format": "double" + }, + "zpoolSize": { + "type": "string", + "format": "uint64" + }, + "disks": { + "type": "array", + "items": { + "$ref": "#/definitions/PhysicalStorageDiskState" + } + }, + "poolStatusMsg": { + "type": "string", + "description": "Zpool Status message sent by EVE" + } + } + }, + "PhysicalStorageDiskState": { + "type": "object", + "properties": { + "disk": { + "$ref": "#/definitions/DiskDescription" + }, + "status": { + "$ref": "#/definitions/PhysicalStorageStatus" + }, + "smartStatus": { + "type": "string" + } + } + }, + "PhysicalStorageRaidType": { + "type": "string", + "enum": [ + "PHYSICAL_STORAGE_RAID_TYPE_UNSPECIFIED", + "PHYSICAL_STORAGE_RAID_TYPE_RAID0", + "PHYSICAL_STORAGE_RAID_TYPE_RAID_MIRROR", + "PHYSICAL_STORAGE_RAID_TYPE_RAIDZ1", + "PHYSICAL_STORAGE_RAID_TYPE_RAIDZ2", + "PHYSICAL_STORAGE_RAID_TYPE_RAIDZ3", + "PHYSICAL_STORAGE_RAID_TYPE_NORAID" + ], + "default": "PHYSICAL_STORAGE_RAID_TYPE_UNSPECIFIED" + }, + "PhysicalStorageStatus": { + "type": "string", + "enum": [ + "PHYSICAL_STORAGE_STATUS_UNSPECIFIED", + "PHYSICAL_STORAGE_STATUS_ONLINE", + "PHYSICAL_STORAGE_STATUS_DEGRADED", + "PHYSICAL_STORAGE_STATUS_FAULTED", + "PHYSICAL_STORAGE_STATUS_OFFLINE", + "PHYSICAL_STORAGE_STATUS_UNAVAIL", + "PHYSICAL_STORAGE_STATUS_REMOVED", + "PHYSICAL_STORAGE_STATUS_SUSPENDED" + ], + "default": "PHYSICAL_STORAGE_STATUS_UNSPECIFIED" + }, + "PhysicalStorageTypeInfo": { + "type": "string", + "enum": [ + "PHYSICAL_STORAGE_TYPE_INFO_UNSPECIFIED", + "PHYSICAL_STORAGE_TYPE_INFO_EXT4", + "PHYSICAL_STORAGE_TYPE_INFO_ZFS" + ], + "default": "PHYSICAL_STORAGE_TYPE_INFO_UNSPECIFIED" + }, + "PolicyCommon": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "system generated unique id for an policy" + }, + "name": { + "type": "string", + "description": "user defined policy name" + }, + "title": { + "type": "string", + "description": "user defined policy title" + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "object revision details" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "user defined key-value pairs of a policy" + }, + "policyTargetCondition": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "user defined key-value pairs of a policy that will be used for targeting by devices" + } + } + }, + "PolicyConfig": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "User defined name of the policy request, unique across the enterprise. Once object is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "id": { + "type": "string", + "description": "System defined universally unique Id of the policy request", + "readOnly": true, + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the policy. Title can be changed at any time", + "maxLength": 256, + "minLength": 3, + "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$" + }, + "description": { + "type": "string", + "description": "Detailed description of the policy", + "maxLength": 256 + }, + "type": { + "$ref": "#/definitions/PolicyType", + "description": "type of policy" + }, + "status": { + "$ref": "#/definitions/PolicyStatus", + "description": "status of the policy", + "readOnly": true + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined info", + "readOnly": true + }, + "attr": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Mapping of policy variable keys and policy variable values" + }, + "appPolicy": { + "$ref": "#/definitions/AppPolicy", + "description": "app policy, which is used in auto app instance deployment" + }, + "azurePolicy": { + "$ref": "#/definitions/AzurePolicy", + "description": "azure policy, which is used in configuring azure iot-edge." + }, + "modulePolicy": { + "$ref": "#/definitions/ModulePolicy", + "description": "module policy, which is used in auto module deployment" + }, + "attestationPolicy": { + "$ref": "#/definitions/AttestationPolicy", + "description": "attestation policy to enforce on all devices in this project" + }, + "networkPolicy": { + "$ref": "#/definitions/NetworkPolicy", + "description": "network policy to enforce on all devices in this project" + }, + "clusterPolicy": { + "$ref": "#/definitions/ClusterPolicy", + "description": "cluster policy to bring up cluster on devices in this project" + }, + "edgeviewPolicy": { + "$ref": "#/definitions/EdgeviewPolicy", + "description": "edgeview policy on devices of this project" + }, + "localOperatorConsolePolicy": { + "$ref": "#/definitions/LocalOperatorConsolePolicy", + "description": "local operator console policy to enforce on all devices in this project" + }, + "configurationLockPolicy": { + "$ref": "#/definitions/ConfigurationLockPolicy", + "description": "configuration lock policy to enforce on all devices in this project" + }, + "pcrPolicy": { + "$ref": "#/definitions/PCRPolicy", + "description": "PCR policy for TPM key sealing on devices in this project" + }, + "portBasedNetworkAccessControlPolicy": { + "$ref": "#/definitions/PortBasedNetworkAccessControlPolicy", + "description": "port based network access control (802.1X) policy to enforce on all devices in this project" + }, + "statusMessage": { + "type": "string", + "description": "Detailed status message of the policy", + "maxLength": 256 + } + }, + "description": "Policy configuration defines set of policies to be applied on a resource grup (project). Policy can be one of the types specified in PolicyType. Multiple policies can be applied to a single resource group (project).", + "title": "Policy detailed configuration for a resource group (project)", + "required": [ + "name", + "title", + "type" + ] + }, + "PolicyStatus": { + "type": "string", + "enum": [ + "POLICY_STATUS_UNSPECIFIED", + "POLICY_STATUS_INITIALIZED", + "POLICY_STATUS_INPROGRESS", + "POLICY_STATUS_READY", + "POLICY_STATUS_FAILED" + ], + "default": "POLICY_STATUS_UNSPECIFIED", + "description": "policy status." + }, + "PolicyType": { + "type": "string", + "enum": [ + "POLICY_TYPE_UNSPECIFIED", + "POLICY_TYPE_APP", + "POLICY_TYPE_AZURE", + "POLICY_TYPE_AWS", + "POLICY_TYPE_GCP", + "POLICY_TYPE_MODULE", + "POLICY_TYPE_ATTESTATION", + "POLICY_TYPE_NETWORK", + "POLICY_TYPE_CLUSTER", + "POLICY_TYPE_EDGEVIEW", + "POLICY_TYPE_LOC", + "POLICY_TYPE_CONFIGURATION_LOCK", + "POLICY_TYPE_PCR", + "POLICY_TYPE_PORT_BASED_NETWORK_ACCESS_CONTROL" + ], + "default": "POLICY_TYPE_UNSPECIFIED", + "description": "type of policy." + }, + "PortBasedNetworkAccessControlPolicy": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "unique policy id", + "readOnly": true, + "pattern": "[0-9-a-z-]+" + }, + "enablePortBasedNetworkAccessControl": { + "type": "boolean", + "description": "Enable or disable port based network access control (802.1X). When disabled, other fields are ignored." + }, + "eapMethod": { + "$ref": "#/definitions/EAPMethod", + "description": "EAP method to use for port based network access control. Only EAP-TLS is supported currently." + }, + "eapIdentity": { + "type": "string", + "description": "EAP identity string used for authentication", + "title": "EAP identity string used for authentication" + }, + "certificateEnrollmentId": { + "type": "string", + "description": "ID of the certificate enrollment object used for 802.1X authentication", + "title": "Reference to the certificate enrollment object used for 802.1X authentication" + } + }, + "description": "Port based network access control policy (802.1X) to enforce on all devices of the project", + "title": "Port based network access control policy body detail" + }, + "ProbeConfig": { + "type": "object", + "properties": { + "enableGatewayPing": { + "type": "boolean", + "description": "Enable gateway ping" + }, + "pingMaxCost": { + "type": "number", + "format": "int64", + "description": "Ping max cost" + }, + "preferLowerCost": { + "type": "boolean", + "description": "Prefer lower cost" + }, + "preferStrongerWwanSignal": { + "type": "boolean", + "description": "Prefer stronger WWAN signal" + }, + "customProbeConfig": { + "type": "object", + "$ref": "#/definitions/commonConnectivityProbe", + "description": "Custom probe configuration" + } + }, + "description": "Probing configuration", + "title": "Probing configuration" + }, + "ProjectInfo": { + "type": "object", + "properties": { + "projectId": { + "type": "string", + "description": "system generated unique id for a project", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+" + }, + "projectName": { + "type": "string", + "description": "project name" + }, + "type": { + "$ref": "#/definitions/TagType", + "description": "Resource group type" + } + }, + "description": "Detailed project information including id, name", + "title": "Project details" + }, + "RSA": { + "type": "object", + "properties": { + "rsaBits": { + "type": "string", + "format": "int64", + "description": "RSA Encryption Key bit size." + } + } + }, + "RadioAccessTechnology": { + "type": "string", + "enum": [ + "RADIO_ACCESS_TECHNOLOGY_UNSPECIFIED", + "RADIO_ACCESS_TECHNOLOGY_GSM", + "RADIO_ACCESS_TECHNOLOGY_UMTS", + "RADIO_ACCESS_TECHNOLOGY_LTE", + "RADIO_ACCESS_TECHNOLOGY_5GNR" + ], + "default": "RADIO_ACCESS_TECHNOLOGY_UNSPECIFIED", + "description": " - RADIO_ACCESS_TECHNOLOGY_GSM: Global System for Mobile Communications (2G).\n - RADIO_ACCESS_TECHNOLOGY_UMTS: Universal Mobile Telecommunications System (3G).\n - RADIO_ACCESS_TECHNOLOGY_LTE: Long Term Evolution (4G).\n - RADIO_ACCESS_TECHNOLOGY_5GNR: 5G New Radio." + }, + "Resource": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the Resource (Required)" + }, + "value": { + "type": "string", + "description": "Value of Resource (Required)" + } + } + }, + "ResourceGroupDetail": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "resource group name" + }, + "region": { + "type": "string", + "description": "resource group region" + }, + "subscriptionId": { + "type": "string", + "description": "azure subscription id to which resource group is attached" + } + }, + "description": "Resource group request payload for cloud policy", + "title": "Resource group payload detail for cloud policy", + "required": [ + "name", + "subscriptionId" + ] + }, + "RunState": { + "type": "string", + "enum": [ + "RUN_STATE_UNSPECIFIED", + "RUN_STATE_ONLINE", + "RUN_STATE_HALTED", + "RUN_STATE_INIT", + "RUN_STATE_REBOOTING", + "RUN_STATE_OFFLINE", + "RUN_STATE_UNKNOWN", + "RUN_STATE_UNPROVISIONED", + "RUN_STATE_PROVISIONED", + "RUN_STATE_SUSPECT", + "RUN_STATE_DOWNLOADING", + "RUN_STATE_RESTARTING", + "RUN_STATE_PURGING", + "RUN_STATE_HALTING", + "RUN_STATE_ERROR", + "RUN_STATE_VERIFYING", + "RUN_STATE_LOADING", + "RUN_STATE_CREATING_VOLUME", + "RUN_STATE_BOOTING", + "RUN_STATE_MAINTENANCE_MODE", + "RUN_STATE_START_DELAYED", + "RUN_STATE_BASEOS_UPDATING", + "RUN_STATE_PREPARING_POWEROFF", + "RUN_STATE_POWERING_OFF", + "RUN_STATE_PREPARED_POWEROFF" + ], + "default": "RUN_STATE_UNSPECIFIED", + "description": "- RUN_STATE_ONLINE: Entity Online\n - RUN_STATE_HALTED: Entity Halted\n - RUN_STATE_INIT: Entity Initializing\n - RUN_STATE_REBOOTING: Entity Rebooting\n - RUN_STATE_OFFLINE: Entity Offline\n - RUN_STATE_UNKNOWN: Entity state Unknown\n - RUN_STATE_UNPROVISIONED: Entity Unprovisioned\n - RUN_STATE_PROVISIONED: Entity Provisioned\n - RUN_STATE_SUSPECT: Entity Suspect\n - RUN_STATE_DOWNLOADING: Edge-node downloading entity artifacts\n - RUN_STATE_RESTARTING: Entity Restarting\n - RUN_STATE_PURGING: Entity Purging\n - RUN_STATE_HALTING: Entity Halting\n - RUN_STATE_ERROR: Entity encountered an error\n - RUN_STATE_VERIFYING: Verification of downloaded Artifacts in Progress.\n - RUN_STATE_LOADING: Loading of Artifacts into local datastore in Progress.\n - RUN_STATE_CREATING_VOLUME: Volume creation from artifacts in Progress\n - RUN_STATE_BOOTING: Entity booting up\n - RUN_STATE_MAINTENANCE_MODE: Entity maintenance mode\n - RUN_STATE_START_DELAYED: Application start delayed as per configuration\n - RUN_STATE_BASEOS_UPDATING: Device BaseOs Update in Progress\n - RUN_STATE_PREPARING_POWEROFF: device preparing power off - shutting down all app instances\n - RUN_STATE_POWERING_OFF: device powering off from local profile server\n - RUN_STATE_PREPARED_POWEROFF: device prepared power off - all app instances are shut down", + "title": "RunState - On update, please update RunState_HttpRequest as well" + }, + "RunStateConfig_HttpRequestRunState_HttpRequest": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "ONLINE", + "HALTED", + "INIT", + "REBOOTING", + "OFFLINE", + "UNKNOWN", + "UNPROVISIONED", + "PROVISIONED", + "SUSPECT", + "DOWNLOADING", + "RESTARTING", + "PURGING", + "HALTING", + "ERROR", + "VERIFYING", + "LOADING", + "CREATING_VOLUME", + "BOOTING", + "MAINTENANCE_MODE", + "START_DELAYED", + "BASEOS_UPDATING", + "PREPARING_POWEROFF", + "POWERING_OFF", + "PREPARED_POWEROFF" + ], + "default": "UNSPECIFIED", + "title": "RunState_HttpRequest - Only for swagger documentation" + }, + "SANValues": { + "type": "object", + "properties": { + "hosts": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of permitted hosts." + }, + "emaildIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of permitted email addresses." + }, + "uris": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of permitted URIs." + }, + "ips": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of permitted IP addresses." + }, + "dns": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of permitted DNS names." + }, + "upns": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of permitted User principal names." + } + } + }, + "SIMCard": { + "type": "object", + "properties": { + "slotNumber": { + "type": "number", + "format": "int64", + "description": "Slot number" + }, + "slotActivated": { + "type": "boolean", + "description": "Is Slot activated" + }, + "iccid": { + "type": "string", + "description": "Integrated Circuit Card Identifier" + }, + "imsi": { + "type": "string", + "description": "International Mobile Subscriber Identity" + }, + "state": { + "type": "string", + "description": "Current state of the SIM card" + } + }, + "description": "SIMCard describes a SIM slot", + "title": "SIMCard describes a SIM slot" + }, + "SKUDetail": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "tier": { + "type": "string" + }, + "capacity": { + "type": "string" + } + } + }, + "SWState": { + "type": "string", + "enum": [ + "SW_STATE_UNSPECIFIED", + "SW_STATE_INITIAL", + "SW_STATE_DOWNLOAD_IN_PROGRESS", + "SW_STATE_DOWNLOADED", + "SW_STATE_VERIFIED", + "SW_STATE_INSTALLED", + "SW_STATE_BOOTING", + "SW_STATE_RUNNING", + "SW_STATE_HALTING", + "SW_STATE_HALTED", + "SW_STATE_REFRESHING", + "SW_STATE_PURGING", + "SW_STATE_RESOLVING_TAG", + "SW_STATE_RESOLVED_TAG", + "SW_STATE_CREATING_VOLUME", + "SW_STATE_CREATED_VOLUME", + "SW_STATE_VERIFYING", + "SW_STATE_LOADING", + "SW_STATE_LOADED", + "SW_STATE_AWAITNETWORKINSTANCE" + ], + "default": "SW_STATE_UNSPECIFIED", + "description": "- SW_STATE_RESOLVING_TAG: Prior to DOWNLOAD_STARTED we go through these:\nResolving an image tag\n - SW_STATE_RESOLVED_TAG: Tag has been resolved/failed\n - SW_STATE_CREATING_VOLUME: Prior to INSTALLED we go through these:\nVolume create in progress\n - SW_STATE_CREATED_VOLUME: Volume create done/failed\n - SW_STATE_VERIFYING: Verification in-progress\n - SW_STATE_LOADING: Loading blob in CAS\n - SW_STATE_LOADED: Loaded blob in CAS\n - SW_STATE_AWAITNETWORKINSTANCE: Wait for network instance", + "title": "State of EVE/Edge Application software" + }, + "SendDeviceMetrics": { + "type": "string", + "enum": [ + "SEND_DEVICE_METRICS_UNSPECIFIED", + "SEND_DEVICE_METRICS_ENABLED", + "SEND_DEVICE_METRICS_DISABLED" + ], + "default": "SEND_DEVICE_METRICS_UNSPECIFIED", + "description": "SendDeviceMetrics controls whether device metrics are sent to the cloud for devices in a project.\n\n - SEND_DEVICE_METRICS_UNSPECIFIED: Default value. Setting is not configured; treated as enabled.\n - SEND_DEVICE_METRICS_ENABLED: Device metrics sending is enabled.\n - SEND_DEVICE_METRICS_DISABLED: Device metrics sending is disabled." + }, + "ServicePoint": { + "type": "object", + "properties": { + "type": { + "type": "object", + "$ref": "#/definitions/spType", + "description": "Service Point Type" + }, + "NameOrIp": { + "type": "string", + "description": "Service name/ service name" + }, + "Credential": { + "type": "string", + "description": "Service credentials" + } + }, + "description": "Service Point", + "title": "Service Point" + }, + "Severity": { + "type": "string", + "enum": [ + "SEVERITY_UNSPECIFIED", + "SEVERITY_NOTICE", + "SEVERITY_WARNING", + "SEVERITY_ERROR" + ], + "default": "SEVERITY_UNSPECIFIED", + "title": "Severity tells the severity type" + }, + "SharedStorageSummary": { + "type": "object", + "properties": { + "Id": { + "type": "string", + "description": "Id" + }, + "Name": { + "type": "string", + "description": "Name" + }, + "AllocatedMB": { + "type": "number", + "format": "double", + "description": "Allocated Storage in MBs" + }, + "UsedMB": { + "type": "number", + "format": "double", + "description": "How much is used within the allocated total storage" + } + }, + "description": "Shared Storage Summary", + "title": "Shared Storage Summary" + }, + "SimcardState": { + "type": "string", + "enum": [ + "SIMCARD_STATE_INVALID", + "SIMCARD_STATE_ASSIGNED", + "SIMCARD_STATE_PROVISIONED", + "SIMCARD_STATE_ACTIVE", + "SIMCARD_STATE_SUSPENDED", + "SIMCARD_STATE_CANCELLED" + ], + "default": "SIMCARD_STATE_INVALID" + }, + "SmartAttr": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64" + }, + "value": { + "type": "string", + "format": "uint64" + }, + "worst": { + "type": "string", + "format": "uint64" + }, + "thresh": { + "type": "string", + "format": "uint64" + }, + "whenFailed": { + "type": "string" + }, + "rawValue": { + "type": "string", + "format": "uint64" + }, + "type": { + "type": "string" + }, + "attributeName": { + "type": "string" + } + } + }, + "StaticDNSList": { + "type": "object", + "properties": { + "hostname": { + "type": "string", + "description": "Host name" + }, + "addrs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Addresses" + } + }, + "description": "Static DNS list", + "title": "Static DNS list" + }, + "StaticIPRoute": { + "type": "object", + "properties": { + "prefix": { + "type": "string", + "description": "IP Prefix" + }, + "gateway": { + "type": "string", + "description": "Gateway IP" + }, + "outputPort": { + "type": "string", + "description": "Output Port" + }, + "probeConfig": { + "type": "object", + "$ref": "#/definitions/ProbeConfig", + "description": "Probe Configuration" + } + }, + "description": "Static IP Routes", + "title": "Static IP Routes" + }, + "StorageDeviceMetrics": { + "type": "object", + "properties": { + "readErrors": { + "type": "number", + "format": "int64", + "description": "read errors counter" + }, + "writeErrors": { + "type": "number", + "format": "int64", + "description": "write errors counter" + }, + "checksumErrors": { + "type": "number", + "format": "int64", + "description": "checksum errors counter" + }, + "bytesRead": { + "type": "number", + "format": "int64", + "description": "read bytes counter" + }, + "bytesWrite": { + "type": "number", + "format": "int64", + "description": "write bytes counter" + } + } + }, + "StorageDiskInfo": { + "type": "object", + "properties": { + "diskName": { + "type": "string" + }, + "wwn": { + "type": "string" + }, + "serialNumber": { + "type": "string" + }, + "model": { + "type": "string" + }, + "collectorErrors": { + "type": "string" + }, + "smartAttr": { + "type": "array", + "items": { + "$ref": "#/definitions/SmartAttr" + } + } + } + }, + "StorageStatus": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "mountPath": { + "type": "string" + }, + "sizeMB": { + "type": "string", + "format": "uint64" + }, + "partitionLabel": { + "type": "string", + "description": "GPT PARTLABEL, e.g. \"EFI System\", \"CONFIG\", \"IMGA\", \"IMGB\", \"P3\".\nEmpty for directory entries and partitions on non-GPT disks." + }, + "partitionTypeGuid": { + "type": "string", + "description": "GPT partition type GUID (lsblk PARTTYPE), lowercase hyphenated.\nIdentifies the partition's role per the GPT spec." + }, + "partitionUuid": { + "type": "string", + "description": "GPT PARTUUID, lowercase hyphenated. Unique per partition and stable\nacross filesystem reformats; EVE's boot path resolves IMGA/IMGB/CONFIG\nby this value." + } + } + }, + "StorageSummary": { + "type": "object", + "properties": { + "TotalMB": { + "type": "number", + "format": "double", + "description": "Total Storage for the device in MBs" + }, + "UsedMB": { + "type": "number", + "format": "double", + "description": "How much is used within the allocated total storage" + }, + "AllocatedMB": { + "type": "number", + "format": "double", + "description": "Total reserved for running applications + temp. images etc" + }, + "sharedStorageSummary": { + "type": "array", + "items": { + "$ref": "#/definitions/SharedStorageSummary" + }, + "description": "Shared storage summary" + }, + "Id": { + "type": "string", + "description": "Id" + }, + "Name": { + "type": "string", + "description": "Name" + } + }, + "description": "Storage Summary", + "title": "Storage Summary" + }, + "Subject": { + "type": "object", + "properties": { + "commonName": { + "type": "string", + "description": "Certificate common name." + }, + "country": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of countries." + }, + "organization": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of organization." + }, + "organizationalUnit": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of Organizational Unit." + }, + "locality": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of locallity." + }, + "postalCode": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of Postal codes." + }, + "province": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of List of Prvince." + }, + "serialNumber": { + "type": "string", + "description": "Subject cerial number" + } + } + }, + "Summary": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Summary description" + }, + "total": { + "type": "number", + "format": "int64", + "description": "Total" + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "integer", + "format": "int64" + }, + "description": "Values: Map for storing " + } + }, + "description": "Summary is used to store the Summary details", + "title": "Summary is used to store the Summary details" + }, + "SymmetricKeyEnrollmentDetail": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/EnrollmentType" + }, + "individualSymmetricKeyEnrollment": { + "$ref": "#/definitions/IndividualSymmetricKeyEnrollment" + }, + "groupSymmetricKeyEnrollment": { + "$ref": "#/definitions/GroupSymmetricKeyEnrollment" + } + } + }, + "SysBrand": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the brand.", + "readOnly": true, + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "user defined sys brand name", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+" + }, + "title": { + "type": "string", + "description": "user defined title for sys brand", + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+" + }, + "description": { + "type": "string", + "description": "Detailed description of the image.", + "maxLength": 256 + }, + "svg": { + "type": "string", + "description": "Deprecated: base64 encoded string of svg file" + }, + "attr": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Map of " + }, + "state": { + "$ref": "#/definitions/SysModelState", + "description": "Sys Model Status" + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "Object Revision of the sys brand" + }, + "systemMfgName": { + "type": "string", + "description": "System Manufacturer name" + }, + "logo": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Map of which holds the key:url for the logo artifact of the the brand" + }, + "originType": { + "$ref": "#/definitions/Origin", + "description": "origin of object" + } + }, + "description": "SysModel consists of various brand attributes like id, name, title, svg, state, systemMfgName", + "title": "SysBrand payload details", + "required": [ + "name", + "title", + "originType" + ] + }, + "SysBrands": { + "type": "object", + "properties": { + "terse": { + "$ref": "#/definitions/Summary", + "description": "Summary of filtered model records" + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/SysBrand" + }, + "description": "List of filtered Sys Models" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "Responded page details of filtered records" + } + }, + "description": "SysBrands used when listing the available brands, if consists of various brand attributes like terse, model list and next filter.", + "title": "SysBrands payload details" + }, + "SysInterface": { + "type": "object", + "properties": { + "netname": { + "type": "string", + "description": "network name: if attaching a network use netname" + }, + "adapterSpecificNet": { + "type": "string", + "$ref": "#/definitions/NetConfig", + "description": "device adapter specific network configuration", + "title": "adapterSpecificNet is relevant only when the network selected for the adapter is of type NETWORK_DHCP_TYPE_STATIC_ADAPTER_SPECIFIC" + }, + "ipaddr": { + "type": "string", + "description": "IP address: we will be needing this in cae of static network" + }, + "intfname": { + "type": "string", + "description": "name of interface in the manifest to which this network or adapter maps to" + }, + "intfUsage": { + "type": "object", + "$ref": "#/definitions/AdapterUsage", + "description": "Adapter Udage" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "macaddr": { + "type": "string", + "description": "mac address needs to be over-written in some cases" + }, + "cost": { + "type": "integer", + "format": "int64", + "description": "cost of using this interface. Default is 0.", + "maximum": 255 + }, + "netid": { + "type": "string", + "description": "network identifier has to have value if the netname is not empty" + }, + "sharedLabels": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A set of user-defined shared labels attached to the adapter" + }, + "netDhcp": { + "$ref": "#/definitions/NetworkDHCPType", + "description": "Network DHCP type" + }, + "ztype": { + "type": "string", + "description": "Z Type" + }, + "allowLocalModifications": { + "type": "boolean", + "description": "Allow the local operator to make (limited) configuration changes to this network adapter." + }, + "enablePortBasedNetworkAccessControl": { + "type": "boolean", + "description": "Enable port-based network access control (802.1X) on this interface. Only applicable for Ethernet interfaces that are not app-direct." + }, + "phylabel": { + "type": "string", + "description": "Physical label of the adapter (model-less devices)" + }, + "logicallabel": { + "type": "string", + "description": "Logical label of the adapter (model-less devices)" + }, + "phyaddrs": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Physical addresses map, e.g. pcilong, ifname, serial, usbaddr (model-less devices)" + }, + "assigngrp": { + "type": "string", + "description": "IOMMU assignment group (model-less devices)" + }, + "parentassigngrp": { + "type": "string", + "description": "Parent IOMMU assignment group (model-less devices)" + }, + "cbattr": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Controller-to-bus attributes, e.g. bitrate for CAN (model-less devices)" + } + }, + "description": "system interfaces that needs to be used by dom0", + "title": "sysInterface payload detail" + }, + "SysModel": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the model.", + "readOnly": true, + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "user defined model name", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+" + }, + "title": { + "type": "string", + "description": "User defined title of the model. Title can be changed at any time.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+" + }, + "brandId": { + "type": "string", + "description": "System defined universally unique Id of the brand.", + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12", + "uniqueItems": true + }, + "description": { + "type": "string", + "description": "Detailed description of the model.", + "maxLength": 256 + }, + "state": { + "$ref": "#/definitions/SysModelState", + "description": "SysModel State which denotes the status of the model" + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "Object Revision of the model", + "readOnly": true + }, + "type": { + "$ref": "#/definitions/ModelArchType", + "description": "Defines the Architecture type of the model" + }, + "attr": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Map of which defines attr" + }, + "productStatus": { + "type": "string", + "description": "Product status" + }, + "productURL": { + "type": "string", + "description": "Product URL" + }, + "brandName": { + "type": "string", + "description": "Brand name." + }, + "ioMemberList": { + "type": "array", + "items": { + "$ref": "#/definitions/ioMember" + }, + "description": "List of IoMembers" + }, + "logo": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Map of which holds the key:url for the logo artifact of the model" + }, + "parentDetail": { + "$ref": "#/definitions/ObjectParentDetail", + "description": "origin and parent related details" + }, + "originType": { + "$ref": "#/definitions/Origin", + "description": "origin of object" + }, + "PCRTemplates": { + "type": "array", + "items": { + "$ref": "#/definitions/PCRTemplate" + }, + "description": "PCR templates keyed by EVE version" + }, + "isImported": { + "type": "boolean", + "description": "Flag to represent whether sysModel is imported" + } + }, + "description": "SysModel consists of various model attributes like id, name, title, brandId etc", + "title": "SysModel payload details", + "required": [ + "name", + "title", + "brandId", + "state", + "type", + "attr", + "originType" + ] + }, + "SysModelState": { + "type": "string", + "enum": [ + "SYS_MODEL_STATE_UNSPECIFIED", + "SYS_MODEL_STATE_ARCHIVE", + "SYS_MODEL_STATE_ACTIVE" + ], + "default": "SYS_MODEL_STATE_UNSPECIFIED", + "description": "- SYS_MODEL_STATE_UNSPECIFIED: default options, which says no Operation/Invalid Operation\n - SYS_MODEL_STATE_ARCHIVE: Archived sysModel State\n - SYS_MODEL_STATE_ACTIVE: Active sysModel state", + "title": "SysModelState : enum specifies the SysModel status" + }, + "SysModels": { + "type": "object", + "properties": { + "terse": { + "$ref": "#/definitions/Summary", + "description": "Summary of filtered model records" + }, + "summaryByDeviceDistribution": { + "$ref": "#/definitions/Summary", + "description": "Summary by device distribution" + }, + "summaryByBrandDistribution": { + "$ref": "#/definitions/Summary", + "description": "Summary by brand distribution" + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/SysModel" + }, + "description": "List of filtered Sys Models" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "Responded page details of filtered records" + } + }, + "description": "SysModels used when listing the available models, if consists of various model attributes like terse, model list and next filter.", + "title": "SysModels payload details" + }, + "TPMEnrollmentDetail": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/EnrollmentType" + } + } + }, + "Tag": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the resource group.", + "readOnly": true, + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the resource group, unique across the enterprise. Once resource group is created, name can\u2019t be changed.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the resource group. Title can be changed at any time.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+" + }, + "description": { + "type": "string", + "description": "Detailed description of the resource group.", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined info", + "readOnly": true + }, + "tagLevelSettings": { + "$ref": "#/definitions/TagLevelSettings", + "description": "tag level setting within a enterprise" + }, + "type": { + "$ref": "#/definitions/TagType", + "description": "Resource group type" + }, + "attr": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource group wide configuration for edge nodes", + "readOnly": true + }, + "appPolicy": { + "$ref": "#/definitions/PolicyConfig", + "description": "Resource group wide policy for edge applications to be deployed on all edge nodes on this resource group", + "readOnly": true + }, + "cloudPolicy": { + "$ref": "#/definitions/PolicyConfig", + "description": "Resource group wide policy for Azure IoTEdge configuration to be applied to all edge applications", + "readOnly": true + }, + "modulePolicy": { + "type": "array", + "items": { + "$ref": "#/definitions/PolicyConfig" + }, + "description": "Resource group wide policy for Azure module configuration to be applied to all edge applications", + "readOnly": true + }, + "numdevices": { + "type": "integer", + "format": "int64", + "description": "Number of edge nodes in this resource group", + "readOnly": true + }, + "attestationPolicy": { + "$ref": "#/definitions/PolicyConfig", + "description": "Attestation policy to enforce on all devices of this project" + }, + "networkPolicy": { + "$ref": "#/definitions/PolicyConfig", + "description": "Network policy to enforce on all devices of this project" + }, + "deployment": { + "$ref": "#/definitions/Deployment", + "description": "Deployment template containing different types of policies" + }, + "edgeviewPolicy": { + "$ref": "#/definitions/PolicyConfig", + "description": "Edgeview policy on devices of this project" + }, + "localOperatorConsolePolicy": { + "$ref": "#/definitions/PolicyConfig", + "description": "Local operator console policy on devices of this project" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "configurationLockPolicy": { + "$ref": "#/definitions/PolicyConfig", + "description": "Configuration lock prevents users to send unintentional misconfigurations" + }, + "pcrPolicy": { + "$ref": "#/definitions/PolicyConfig", + "description": "PCR policy for TPM key sealing on devices of this project" + }, + "portBasedNetworkAccessControlPolicy": { + "$ref": "#/definitions/PolicyConfig", + "description": "Port based network access control (802.1X) policy to enforce on all devices of this project" + } + }, + "description": "Resource group for edge gateway Base OS or for eedge applications.", + "title": "Resource group detail", + "required": [ + "name", + "title", + "type" + ] + }, + "TagLevelSettings": { + "type": "object", + "properties": { + "flowLogTransmission": { + "$ref": "#/definitions/NetworkInstanceFlowLogTransmission", + "description": "Flow log transmission setting for the network instances" + }, + "interfaceOrdering": { + "$ref": "#/definitions/InterfaceOrdering", + "description": "interface ordering for app instances" + }, + "sendDeviceMetrics": { + "$ref": "#/definitions/SendDeviceMetrics", + "description": "send device metrics for devices in the project" + } + }, + "description": "TagLevelSettings defines settings at a specific tag level within a enterprise.\nIt includes configurations that control certain behaviors or features,\nsuch as the transmission of flow logs for monitoring and analysis purposes." + }, + "TagStatus": { + "type": "string", + "enum": [ + "TAG_STATUS_UNSPECIFIED", + "TAG_STATUS_ARCHIVE", + "TAG_STATUS_ACTIVE", + "TAG_STATUS_INACTIVE", + "TAG_STATUS_INITIALIZED", + "TAG_STATUS_FAILED" + ], + "default": "TAG_STATUS_UNSPECIFIED", + "description": "- TAG_STATUS_UNSPECIFIED: Tag Status : UNSPECIFIED\n - TAG_STATUS_ARCHIVE: Tag Status : ARCHIVE\n - TAG_STATUS_ACTIVE: Tag Status : ACTIVE\n - TAG_STATUS_INACTIVE: Tag Status : INACTIVE", + "title": "Resource group status" + }, + "TagStatusListMsg": { + "type": "object", + "properties": { + "summaryByState": { + "$ref": "#/definitions/Summary", + "description": "Summary of filtered resource group records" + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/TagStatusMsg" + }, + "description": "List of filtered resource group records" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "Responded page details of filtered records" + }, + "summaryByType": { + "$ref": "#/definitions/Summary", + "description": "Summary of filtered resource group records" + } + } + }, + "TagStatusMsg": { + "type": "object", + "example": { + "id": "d1125b0f-633d-459c-99c6-f47e7467cebc", + "name": "my-test-project", + "status": "TAG_STATUS_ACTIVE" + }, + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the resource group.", + "readOnly": true, + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the resource group, unique across the enterprise. Once resource group is created, name can\u2019t be changed.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "status": { + "$ref": "#/definitions/TagStatus", + "description": "Resource group status", + "readOnly": true + }, + "type": { + "$ref": "#/definitions/TagType", + "description": "Resource group type" + }, + "edgeviewSessionCount": { + "type": "integer", + "format": "int64", + "description": "total count of devices enabled with edgeview session" + } + }, + "description": "Resource group for edge gateway Base OS or for eedge applications.", + "title": "Resource group detail" + }, + "TagType": { + "type": "string", + "enum": [ + "TAG_TYPE_UNSPECIFIED", + "TAG_TYPE_GENERIC", + "TAG_TYPE_PROJECT", + "TAG_TYPE_AZURE", + "TAG_TYPE_DEPLOYMENT" + ], + "default": "TAG_TYPE_UNSPECIFIED", + "description": "- TAG_TYPE_UNSPECIFIED: Unspecified\n - TAG_TYPE_GENERIC: Generic resource group\n - TAG_TYPE_PROJECT: Project resource group\n - TAG_TYPE_AZURE: Project resource group\n - TAG_TYPE_DEPLOYMENT: Project with deployment", + "title": "Resource group types" + }, + "TagUpdate_HttpRequest": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the resource group.", + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the resource group, unique across the enterprise. Once resource group is created, name can\u2019t be changed.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the resource group. Title can be changed at any time.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+" + }, + "description": { + "type": "string", + "description": "Detailed description of the resource group.", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined info", + "readOnly": true + }, + "tagLevelSettings": { + "$ref": "#/definitions/TagLevelSettings", + "description": "tag level setting within a enterprise" + }, + "type": { + "$ref": "#/definitions/TagType", + "description": "Resource group type" + }, + "attr": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource group wide configuration for edge nodes", + "readOnly": true + }, + "appPolicy": { + "$ref": "#/definitions/PolicyConfig", + "description": "Resource group wide policy for edge applications to be deployed on all edge nodes on this resource group", + "readOnly": true + }, + "cloudPolicy": { + "$ref": "#/definitions/PolicyConfig", + "description": "Resource group wide policy for Azure IoTEdge configuration to be applied to all edge applications", + "readOnly": true + }, + "modulePolicy": { + "type": "array", + "items": { + "$ref": "#/definitions/PolicyConfig" + }, + "description": "Resource group wide policy for Azure module configuration to be applied to all edge applications", + "readOnly": true + }, + "numdevices": { + "type": "integer", + "format": "int64", + "description": "Number of edge nodes in this resource group", + "readOnly": true + }, + "attestationPolicy": { + "$ref": "#/definitions/PolicyConfig", + "description": "Attestation policy to enforce on all devices of this project" + }, + "networkPolicy": { + "$ref": "#/definitions/PolicyConfig", + "description": "Network policy to enforce on all devices of this project" + }, + "deployment": { + "$ref": "#/definitions/Deployment", + "description": "Deployment template containing different types of policies" + }, + "edgeviewPolicy": { + "$ref": "#/definitions/PolicyConfig", + "description": "Edgeview policy on devices of this project" + }, + "localOperatorConsolePolicy": { + "$ref": "#/definitions/PolicyConfig", + "description": "Local operator console policy on devices of this project" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "configurationLockPolicy": { + "$ref": "#/definitions/PolicyConfig", + "description": "Configuration lock prevents users to send unintentional misconfigurations" + }, + "portBasedNetworkAccessControlPolicy": { + "$ref": "#/definitions/PolicyConfig", + "description": "Port based network access control (802.1X) policy to enforce on all devices of this project" + } + }, + "description": "Resource group for edge gateway Base OS or for eedge applications.", + "title": "Resource group detail", + "required": [ + "id", + "name", + "title", + "type" + ] + }, + "Tags": { + "type": "object", + "properties": { + "summaryByState": { + "$ref": "#/definitions/Summary", + "description": "Summary of filtered resource group records" + }, + "summaryByType": { + "$ref": "#/definitions/Summary", + "description": "Summary of filtered resource group records" + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/Tag" + }, + "description": "List of filtered resource group records" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "Responded page details of filtered records" + } + } + }, + "TagsConfigStatus": { + "type": "object", + "properties": { + "summaryByState": { + "$ref": "#/definitions/Summary", + "description": "Summary of filtered resource group records" + }, + "summaryByType": { + "$ref": "#/definitions/Summary", + "description": "Summary of filtered resource group records" + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/tagConfigStatus" + }, + "description": "List of filtered resource group records" + }, + "totalCount": { + "type": "integer", + "format": "int32", + "description": "total count of projects" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "Responded page details of filtered records" + } + } + }, + "UserDataTemplate": { + "type": "object", + "properties": { + "customConfig": { + "$ref": "#/definitions/CustomConfig" + } + } + }, + "VMManifest": { + "type": "object", + "properties": { + "acKind": { + "type": "string", + "default": "VMManifest", + "description": "UI map: N/A - not exposed to users", + "title": "Edge Application type" + }, + "acVersion": { + "type": "string", + "default": "1.2.0", + "description": "UI map: N/A - not exposed to users", + "title": "Manifest version" + }, + "name": { + "type": "string", + "description": "UI map: AppEditPage:IdentityPane:Name_Field, AppDetailsPage:IdentityPane:Name_Field", + "title": "Unique id of app manifest, should match object name" + }, + "displayName": { + "type": "string", + "description": "UI map: AppEditPage:IdentityPane:Title_Field, AppDetailsPage:IdentityPane:Title_Field", + "title": "Display name or title of app manifest" + }, + "description": { + "type": "string", + "description": "UI map: AppDetailsPage:IdentityPane:DescriptionField, AppMarketplacePage:AppCard:DescriptionField", + "title": "Description of the Edge application", + "pattern": "[0-9A-Za-z-]+" + }, + "owner": { + "$ref": "#/definitions/Author", + "description": "Owner of the application" + }, + "desc": { + "$ref": "#/definitions/Details", + "description": "Description of the application" + }, + "images": { + "type": "array", + "items": { + "$ref": "#/definitions/VMManifestImage" + }, + "description": "UI map: AppEditPage:DrivesPane, AppDetailsPage:DrivesPane", + "title": "Images used by the app" + }, + "interfaces": { + "type": "array", + "items": { + "$ref": "#/definitions/Interface" + }, + "description": "UI map: AppEditPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + "title": "I/O adapter settings" + }, + "permissions": { + "type": "array", + "items": { + "$ref": "#/definitions/Permission" + } + }, + "vmmode": { + "type": "string", + "default": "HV_HVM", + "description": "UI map: AppEditPage:IdentityPane:VM_Mode_Field, AppDetailsPage:IdentityPane:VM_Mode_Field", + "title": "VM mode for VM-based app" + }, + "enablevnc": { + "type": "boolean", + "description": "UI map: AppEditPage:IdentityPane:VNC_Field, AppDetailsPage:IdentityPane:VNC_Field", + "title": "Enable VNC for the app" + }, + "resources": { + "type": "array", + "items": { + "$ref": "#/definitions/Resource" + }, + "description": "UI map: AppEditPage:ResourcesPane, AppDetailsPage:ResourcesPane", + "title": "Hardware resource requirement (CPU, Memory, Storage) for the app" + }, + "configuration": { + "$ref": "#/definitions/UserDataTemplate", + "description": "Template for Custom Configuration. Used for Cloud-Init", + "title": "Annotations types.Annotations `json:\"Annotations,omitempty\"`\nLabels types.Labels `json:\"Labels,omitempty\"`" + }, + "containerDetail": { + "$ref": "#/definitions/ContainerDetail", + "description": "Create options direct the creation of the Docker container", + "title": "Container specific details" + }, + "module": { + "$ref": "#/definitions/ModuleDetail", + "description": "Azure module specific details like module twin, environment variable, routes", + "title": "Module specific details" + }, + "appType": { + "$ref": "#/definitions/AppType", + "description": "bundle type, eg: vm, container, module" + }, + "deploymentType": { + "$ref": "#/definitions/DeploymentType", + "description": "type of deployment for the app, eg: azure, k3s, standalone" + }, + "cpuPinningEnabled": { + "type": "boolean", + "description": "Enable CpuPinning" + }, + "runtimeVersion": { + "$ref": "#/definitions/DockerRuntimeVersion", + "description": "Indicates the version of container orchestration software", + "title": "docker-compose runtime specific versions" + }, + "runtimeProtocolVersion": { + "$ref": "#/definitions/DockerRuntimeProtocolVersion", + "description": "Indicates the internal communication protocol to pass configuration between Zedcloud and docker-compose runtime" + }, + "PersistentRuntimeSizeBytes": { + "type": "string", + "format": "uint64", + "description": "Size of persistent blank storage for runtime in bytes" + }, + "dockerComposeYamlText": { + "type": "string", + "description": "Docker compose base64 encoded plain text" + }, + "dockerComposeTarImageName": { + "type": "string", + "description": "Docker compose tar image name" + }, + "enableOemWinLicenseKey": { + "type": "boolean", + "description": "UI map: AppEditPage:IdentityPane:ENABLEVMCONFIG_Field, AppDetailsPage:IdentityPane:ENABLEVMCONFIG_Field", + "title": "Enable device to read the license info from APCI tables" + }, + "disableVTPM": { + "type": "boolean", + "description": "UI map: AppEditPage:IdentityPane:DISABLEVTPM_Field, AppDetailsPage:IdentityPane:DISABLEVTPM_Field", + "title": "Disable vTPM for a virtual machine (VM)" + } + } + }, + "VMManifestImage": { + "type": "object", + "properties": { + "imagename": { + "type": "string", + "description": "UI map: AppEditPage:DrivesPane:Image_Name_Field, AppDetailsPage:DrivesPane:Image_Name_Field" + }, + "imageid": { + "type": "string", + "description": "UI map: AppEditPage:DrivesPane:Image_ID_Field, AppDetailsPage:DrivesPane:Image_ID_Field" + }, + "imageformat": { + "$ref": "#/definitions/configFormat", + "description": "UI map: AppEditPage:DrivesPane:Image_Format_Field, AppDetailsPage:DrivesPane:Image_Format_Field" + }, + "maxsize": { + "type": "string", + "format": "uint64", + "description": "UI map: AppEditPage:DrivesPane:Max_Size_Field, AppDetailsPage:DrivesPane:Max_Size_Field" + }, + "preserve": { + "type": "boolean", + "description": "UI map: AppEditPage:DrivesPane:Preserve_Field, AppDetailsPage:DrivesPane:Preserve_Field" + }, + "target": { + "type": "string", + "description": "UI map: AppEditPage:DrivesPane:Target_Field, AppDetailsPage:DrivesPane:Target_Field", + "title": "enum: Disk, Kernel, Initrd, RamDisk" + }, + "drvtype": { + "type": "string", + "description": "UI map: AppEditPage:DrivesPane:Drive_Type_Field, AppDetailsPage:DrivesPane:Drive_Type_Field", + "title": "enum: CDROM, HDD, NET" + }, + "params": { + "type": "array", + "items": { + "$ref": "#/definitions/Param" + }, + "title": "Not used by ZedUI" + }, + "readonly": { + "type": "boolean", + "title": "Not used by ZedUI" + }, + "volumelabel": { + "type": "string", + "description": "UI map: AppEditPage:DrivesPane:Volume_Label, AppDetailsPage:DrivesPane:Volume_Label" + }, + "ignorepurge": { + "type": "boolean", + "description": "UI map: AppEditPage:DrivesPane:Ignorepurge, AppDetailsPage:DrivesPane:Ignorepurgee_Field" + }, + "cleartext": { + "type": "boolean", + "description": "UI map: AppEditPage:DrivesPane:Cleartext, AppDetailsPage:DrivesPane:ClearText_Field" + }, + "mountpath": { + "type": "string", + "description": "UI map: AppEditPage:DrivesPane:Mountpath, AppDetailsPage:DrivesPane:Mountpath_Field" + }, + "imagestatus": { + "type": "string", + "description": "UI map: AppEditPage:DrivesPane:Image_Status_Field, AppDetailsPage:DrivesPane:Image_Status_Field", + "title": "enum: UNSPECIFIED, CREATED, PENDING, UPLOADING, READY, INUSE, ARCHIVED, MAX, FAILED, UPLINKING" + }, + "datastore": { + "type": "array", + "items": { + "$ref": "#/definitions/ImageDatastore" + }, + "description": "UI map: AppEditPage:DrivesPane:DataStore_Field, AppDetailsPage:DrivesPane:DataStore_Field" + } + } + }, + "VariableFileEncoding": { + "type": "string", + "enum": [ + "FILE_ENCODING_UNSPECIFIED", + "FILE_ENCODING_BASE64" + ], + "default": "FILE_ENCODING_UNSPECIFIED", + "description": "- FILE_ENCODING_UNSPECIFIED: File content not encoded\n - FILE_ENCODING_BASE64: File content encoded in Base64", + "title": "File content encoding type" + }, + "VariableGroupCondition": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + }, + "operator": { + "$ref": "#/definitions/VariableGroupConditionOperator" + } + } + }, + "VariableGroupConditionOperator": { + "type": "string", + "enum": [ + "CONDITION_OPERATOR_UNSPECIFIED", + "CONDITION_OPERATOR_EQUALTO", + "CONDITION_OPERATOR_NOTEQUALTO" + ], + "default": "CONDITION_OPERATOR_UNSPECIFIED" + }, + "VariableGroupVariable": { + "type": "object", + "example": { + "format": "VARIABLE_FORMAT_TEXT", + "name": "username", + "label": "Enter User Name", + "required": "True" + }, + "properties": { + "type": { + "type": "string" + }, + "name": { + "type": "string", + "description": "Name of the Variable (Required)" + }, + "label": { + "type": "string", + "description": "Label for the variable (Required)" + }, + "maxLength": { + "type": "string", + "description": "Max length of the value of the variable(Optional. Default: 1024)" + }, + "required": { + "type": "boolean", + "description": "This variable MUST be specified when creating an App Instance. (Optional. Default: False)" + }, + "default": { + "type": "string", + "description": "Default value of the variable. (Optional. Default: )" + }, + "processInput": { + "type": "string" + }, + "value": { + "type": "string", + "description": "User-specified value of the variable.(Required if required is true. Optional otherwise)" + }, + "format": { + "$ref": "#/definitions/VariableVariableFormat", + "description": "Format of the user variable. (Required)" + }, + "encode": { + "$ref": "#/definitions/VariableFileEncoding", + "description": "Encoding of file content. Applicable if format is VARIABLE_FORMAT_FILE" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/VariableOptionVal" + }, + "description": "Key-Value pair of options. Applicable if format is VARIABLE_FORMAT_DROPDOWN" + } + }, + "description": "Edge Application Artifact Details", + "title": "Edge Application detail", + "required": [ + "format", + "name", + "label", + "required" + ] + }, + "VariableOptionVal": { + "type": "object", + "properties": { + "label": { + "type": "string", + "description": "Display label of the key in User-Agent" + }, + "value": { + "type": "string", + "description": "Value of the key to be used" + } + } + }, + "VariableVariableFormat": { + "type": "string", + "enum": [ + "VARIABLE_FORMAT_UNSPECIFIED", + "VARIABLE_FORMAT_TEXT", + "VARIABLE_FORMAT_NUMBER", + "VARIABLE_FORMAT_FILE", + "VARIABLE_FORMAT_DROPDOWN", + "VARIABLE_FORMAT_BOOLEAN", + "VARIABLE_FORMAT_PASSWORD" + ], + "default": "VARIABLE_FORMAT_UNSPECIFIED", + "description": "- VARIABLE_FORMAT_UNSPECIFIED: Invalid format\n - VARIABLE_FORMAT_TEXT: Value in string format\n - VARIABLE_FORMAT_NUMBER: Value in integer format\n - VARIABLE_FORMAT_FILE: Value to be read from a file\n - VARIABLE_FORMAT_DROPDOWN: Value to be selected from dropdown of options\n - VARIABLE_FORMAT_BOOLEAN: Value in boolean format\n - VARIABLE_FORMAT_PASSWORD: Value in string to be masked in User-Agent", + "title": "Custom variable format" + }, + "Vfs": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int64", + "description": "The number of Virtual Functions for given Physical Function. Only applies for IO_TYPE_ETH_PF.", + "maximum": 255 + } + } + }, + "VmBootloaderMode": { + "type": "string", + "enum": [ + "VM_BOOTLOADER_MODE_UNSPECIFIED", + "VM_BOOTLOADER_MODE_LEGACY", + "VM_BOOTLOADER_MODE_UEFI" + ], + "default": "VM_BOOTLOADER_MODE_UNSPECIFIED", + "title": "VmBootloaderMode is used to specify the bootloader mode that will be used for the VM.\nIt represents the boot mechanism to be used to boot the VM" + }, + "VolumeInstConfig": { + "type": "object", + "properties": { + "type": { + "type": "string", + "$ref": "#/definitions/VolumeInstanceType", + "description": "type of Volume Instance" + }, + "multiattach": { + "type": "boolean", + "description": "flag to enable the volume to be attached to multiple app instances" + }, + "cleartext": { + "type": "boolean", + "description": "flag to keep the contents of the volume unencrypted (in clear text)" + }, + "accessmode": { + "type": "string", + "$ref": "#/definitions/VolumeInstanceAccessMode", + "description": "Access mode" + }, + "sizeBytes": { + "type": "integer", + "format": "uint64", + "description": "size of volume" + }, + "image": { + "type": "string", + "description": "name of the image" + }, + "contentTreeId": { + "type": "string", + "description": "content tree ID" + }, + "label": { + "type": "string", + "description": "label" + }, + "purge": { + "$ref": "#/definitions/ZedCloudOpsCmd", + "description": "Purge Counter information" + }, + "contentTreeTargetCondition": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "user defined key-value pairs of a content tree that will be used for targeting by block storage" + }, + "blockStorageTags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "user defined key-value pairs of a block storage, will be used for targeting content tree" + } + } + }, + "VolumeInstPolicy": { + "type": "object", + "properties": { + "metaData": { + "$ref": "#/definitions/PolicyCommon", + "description": "all the required metadata for a policy like id, name, different types of tags" + }, + "volInstConfig": { + "$ref": "#/definitions/VolumeInstConfig", + "description": "volume instance config details" + } + } + }, + "VolumeInstanceAccessMode": { + "type": "string", + "enum": [ + "VOLUME_INSTANCE_ACCESS_MODE_INVALID", + "VOLUME_INSTANCE_ACCESS_MODE_READWRITE", + "VOLUME_INSTANCE_ACCESS_MODE_READONLY", + "VOLUME_INSTANCE_ACCESS_MODE_MULTIREAD_SINGLEWRITE" + ], + "default": "VOLUME_INSTANCE_ACCESS_MODE_INVALID" + }, + "VolumeInstanceType": { + "type": "string", + "enum": [ + "VOLUME_INSTANCE_TYPE_UNSPECIFIED", + "VOLUME_INSTANCE_TYPE_EMPTYDIR", + "VOLUME_INSTANCE_TYPE_BLOCKSTORAGE", + "VOLUME_INSTANCE_TYPE_HOSTFS", + "VOLUME_INSTANCE_TYPE_TMPFS", + "VOLUME_INSTANCE_TYPE_SECRET", + "VOLUME_INSTANCE_TYPE_NFS", + "VOLUME_INSTANCE_TYPE_AWS_BLOCK_STORAGE", + "VOLUME_INSTANCE_TYPE_CONTENT_TREE" + ], + "default": "VOLUME_INSTANCE_TYPE_UNSPECIFIED", + "title": "VolumeInstanceType - On update, please update VolumeInstanceType_HttpRequest as well" + }, + "ZCellularControlProtocol": { + "type": "string", + "enum": [ + "Z_CELLULAR_CONTROL_PROTOCOL_UNSPECIFIED", + "Z_CELLULAR_CONTROL_PROTOCOL_QMI", + "Z_CELLULAR_CONTROL_PROTOCOL_MBIM" + ], + "default": "Z_CELLULAR_CONTROL_PROTOCOL_UNSPECIFIED" + }, + "ZCellularOperatingState": { + "type": "string", + "enum": [ + "Z_CELLULAR_OPERATING_STATE_UNSPECIFIED", + "Z_CELLULAR_OPERATING_STATE_OFFLINE", + "Z_CELLULAR_OPERATING_STATE_RADIO_OFF", + "Z_CELLULAR_OPERATING_STATE_ONLINE", + "Z_CELLULAR_OPERATING_STATE_ONLINE_AND_CONNECTED", + "Z_CELLULAR_OPERATING_STATE_UNRECOGNIZED" + ], + "default": "Z_CELLULAR_OPERATING_STATE_UNSPECIFIED" + }, + "ZManufacturerInfo": { + "type": "object", + "properties": { + "manufacturer": { + "type": "string" + }, + "productName": { + "type": "string" + }, + "version": { + "type": "string" + }, + "serialNumber": { + "type": "string" + }, + "uuid": { + "type": "string" + }, + "compatible": { + "type": "string" + }, + "biosVendor": { + "type": "string" + }, + "biosVersion": { + "type": "string" + }, + "biosReleaseDate": { + "type": "string" + }, + "hSMStatus": { + "$ref": "#/definitions/DeviceHWSecurityModuleStatus" + }, + "hSMInfo": { + "type": "string" + }, + "endorsementKey": { + "type": "string" + } + } + }, + "ZcOpsStatus": { + "type": "string", + "enum": [ + "OPS_STATUS_UNSPECIFIED", + "OPS_STATUS_PENDING", + "OPS_STATUS_ONGOING", + "OPS_STATUS_COMPLETE" + ], + "default": "OPS_STATUS_UNSPECIFIED", + "description": "- OPS_STATUS_PENDING: In rare cases, system may not start operation when it was requested. Client will be notified that operation is PENDING\n - OPS_STATUS_ONGOING: system will start the operation, but at the time response was generated, operation is still ONGOING.\n - OPS_STATUS_COMPLETE: Even if the result of the operations may result in failure, but the OpsStatus will marked COMPLETE for almost all cases.", + "title": "ZedCloud internal operation status" + }, + "ZcOpsType": { + "type": "string", + "enum": [ + "OPS_TYPE_UNSPECIFIED", + "OPS_TYPE_READ", + "OPS_TYPE_DELETE", + "OPS_TYPE_CREATE", + "OPS_TYPE_UPDATE", + "OPS_TYPE_LIST" + ], + "default": "OPS_TYPE_UNSPECIFIED", + "title": "ZedCloud internal operation type" + }, + "ZedCloudOpsCmd": { + "type": "object", + "properties": { + "counter": { + "type": "number", + "format": "int64", + "description": "counter" + }, + "opsTime": { + "type": "object", + "format": "date-time", + "description": "Timestamp: Operational time" + } + }, + "description": "Zed cloud Operation command", + "title": "Zed cloud Operation command" + }, + "ZedcloudCounters": { + "type": "object", + "properties": { + "ifName": { + "type": "string", + "description": "ifName" + }, + "failures": { + "type": "number", + "format": "uint64", + "description": "Failures" + }, + "success": { + "type": "number", + "format": "uint64", + "description": "Success" + }, + "lastFailure": { + "type": "object", + "format": "date-time", + "description": "Timestamp of last failure" + }, + "lastSuccess": { + "type": "object", + "format": "date-time", + "description": "Timestamp of last success" + } + }, + "description": "ZedcloudCounters is used to store the Zedcloud Stats and Counters", + "title": "ZedcloudCounters is used to store the Zedcloud Stats and Counters" + }, + "ZsrvError": { + "type": "object", + "properties": { + "ec": { + "$ref": "#/definitions/ZsrvErrorCode", + "title": "Enumrated error code, describes more granular numerical\nvalue than just httpStatus" + }, + "location": { + "type": "string", + "title": "Ignore: Internal field only" + }, + "details": { + "type": "string", + "title": "Field captures string description of details" + } + } + }, + "ZsrvErrorCode": { + "type": "string", + "enum": [ + "zMsgErrorNone", + "zMsgSucess", + "NotFound", + "AlreadyExists", + "VersionMismatch", + "RangeError", + "LargeResult", + "IncompleteData", + "InvalidData", + "FunctionUnsupported", + "NoMemory", + "SendFailure", + "Timeout", + "BadReqBody", + "BadReqParam", + "InvalidFieldFormat", + "UrlNotFound", + "ApiVersionNotSupported", + "Unauthorized", + "Forbidden", + "Conflict", + "NotModified", + "DependencyConflict", + "JsonFmtError", + "ProtoFmtError", + "CertError", + "DataBaseConnection", + "DBError", + "zMsgAccepted", + "zMsgCreated", + "PreConditionFailed", + "InternalServerError" + ], + "default": "zMsgErrorNone", + "description": "- zMsgErrorNone: common validation errors\n - IncompleteData: message had fields that weren't filled in\n - InvalidData: message contained the field that wasn't expected\n - FunctionUnsupported: this feature unavailable on this version of device\n - InvalidFieldFormat: message contained the field that wasn't correctly formatted\n - JsonFmtError: Marshal / Unmarshal errors\n - DataBaseConnection: generic DB error", + "title": "ZedCould internal error code" + }, + "ZsrvResponse": { + "type": "object", + "properties": { + "operationType": { + "$ref": "#/definitions/ZcOpsType", + "title": "Describes one of the operations type : possible values\n Read/Delete/Create/Update/List" + }, + "operationStatus": { + "$ref": "#/definitions/ZcOpsStatus", + "title": "if this is log running job" + }, + "objectKind": { + "type": "string", + "title": "zedcloud object kind on which the operation was performed" + }, + "objectId": { + "type": "string", + "title": "Unique value identifies the object that was operated on" + }, + "objectName": { + "type": "string", + "title": "name of the object" + }, + "objectRevision": { + "type": "string", + "title": "object revision post the operation, note Read operation\ndoesn't change the revision" + }, + "objectType": { + "$ref": "#/definitions/ObjectType" + }, + "operationTime": { + "type": "string", + "title": "time of operation" + }, + "startTime": { + "type": "string", + "title": "total time taken by operations" + }, + "endTime": { + "type": "string" + }, + "user": { + "type": "string", + "title": "the operation is performed on behalf of this user" + }, + "httpStatusCode": { + "type": "integer", + "format": "int32", + "title": "http response" + }, + "httpStatusMsg": { + "type": "string", + "title": "summary of the error in text format" + }, + "jobId": { + "type": "string", + "title": "for tracking asynchronous tasks" + }, + "error": { + "type": "array", + "items": { + "$ref": "#/definitions/ZsrvError" + }, + "title": "one or more errors will be set if the operation failed\ni.e. httpStatusCode != 2xx" + } + } + }, + "appACE": { + "type": "object", + "properties": { + "matches": { + "type": "array", + "items": { + "$ref": "#/definitions/appACEMatch" + }, + "description": "app ACE match" + }, + "actions": { + "type": "array", + "items": { + "$ref": "#/definitions/appACEAction" + }, + "description": "app ACE actions" + }, + "id": { + "type": "number", + "format": "int32", + "description": "app ACE id" + }, + "name": { + "type": "string", + "description": "User defined name of the app ACE, unique across the enterprise. Once object is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + } + }, + "description": "App ACE Configuration", + "title": "App ACE detaisn", + "required": [ + "matches", + "actions", + "id", + "name" + ] + }, + "appACEAction": { + "type": "object", + "properties": { + "drop": { + "type": "boolean", + "description": "ACE drop flag" + }, + "limit": { + "type": "boolean", + "description": "ACE limit flag" + }, + "limitrate": { + "type": "number", + "format": "int64", + "description": "ACE limit rate" + }, + "limitunit": { + "type": "string", + "description": "ACE limit unit" + }, + "limitburst": { + "type": "number", + "format": "int64", + "description": "ACE limit burst" + }, + "portmap": { + "type": "boolean", + "description": "application port map flag" + }, + "mapparams": { + "$ref": "#/definitions/appMapParams", + "description": "Application map params" + } + }, + "description": "App ACE actions", + "title": "App ACE Action", + "required": [ + "drop", + "limit", + "limitrate", + "limitunit", + "limitburst", + "portmap", + "mapparams" + ] + }, + "appACEMatch": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Type" + }, + "value": { + "type": "string", + "description": "Value" + } + }, + "description": "App ACE Match", + "title": "appACEMatch detail", + "required": [ + "type", + "value" + ] + }, + "appInterface": { + "type": "object", + "properties": { + "netname": { + "type": "string", + "description": "network name: will be deprecated in future, use netinstname" + }, + "io": { + "$ref": "#/definitions/phyAdapter", + "description": "Physical Adapter to be matched for interface assignment. Applicable only when \"direct attach\" flag is true" + }, + "intforder": { + "type": "number", + "format": "int64", + "description": "intforder" + }, + "intfname": { + "type": "string", + "description": "intf Name" + }, + "directattach": { + "type": "boolean", + "description": "direct attach flag", + "title": "comes from manifest during app create" + }, + "privateip": { + "type": "boolean", + "description": "Private IP flag" + }, + "acls": { + "type": "array", + "items": { + "$ref": "#/definitions/appACE" + }, + "description": "app Acls" + }, + "ipaddr": { + "type": "string", + "description": "IP address", + "title": "if netname points static DHCP then we need to take\nstatic /32 address here" + }, + "macaddr": { + "type": "string", + "description": "MAC address", + "title": "in case of p2v we might want to provide a mac-address.\napplicable only in case of DHCP=passthrough" + }, + "accessVlanId": { + "type": "number", + "format": "int64", + "description": "access port VLAN ID, vlan id of zero will be treated as trunk port and vlan id 1 is implicitly used by linux bridges", + "maximum": 4093, + "minimum": 2 + }, + "eidregister": { + "$ref": "#/definitions/EIDRegister", + "description": "EID register details", + "title": "FIXME: Check why is this required" + }, + "netinstname": { + "type": "string", + "description": "Network Instance name to be matched for interface assignment. Applicable only when \"direct attach\" flag is false" + }, + "netinsttag": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Network Instance tag to be matched for interface assignment. Applicable only when \"direct attach\" flag is false" + }, + "netinstid": { + "type": "string", + "description": "Network Instance id to be matched for interface assignment." + }, + "defaultNetInstance": { + "type": "boolean", + "description": "default instance flag" + }, + "allowToDiscover": { + "type": "boolean", + "description": "flag tells if appInstance have permission to access the network mappings from the connected netInstance" + } + }, + "description": "App Interface detail", + "title": "App Interface detail", + "required": [ + "intfname" + ] + }, + "appMapParams": { + "type": "object", + "properties": { + "port": { + "type": "number", + "format": "int64", + "description": "Application port" + } + }, + "description": "Application map parameters", + "title": "App map Params detail", + "required": [ + "port" + ] + }, + "commonCellularIPType": { + "type": "string", + "enum": [ + "CELLULAR_IP_TYPE_UNSPECIFIED", + "CELLULAR_IP_TYPE_IPV4", + "CELLULAR_IP_TYPE_IPV4_AND_IPV6", + "CELLULAR_IP_TYPE_IPV6" + ], + "default": "CELLULAR_IP_TYPE_UNSPECIFIED", + "description": "The IP addressing type to use for a given attach or default bearer.\n\n - CELLULAR_IP_TYPE_UNSPECIFIED: IP type is not specified.\nWhen unspecified, EVE will not enforce an IP type in the bearer configuration.\nThe modem will instead use its built-in profiles (see CellularProfile) to determine\nthe appropriate IP type for the network.\n - CELLULAR_IP_TYPE_IPV4: IPv4 only.\n - CELLULAR_IP_TYPE_IPV4_AND_IPV6: IPv4 and IPv6.\n - CELLULAR_IP_TYPE_IPV6: IPv6 only." + }, + "commonCipherBlock": { + "type": "object", + "properties": { + "cipherContextId": { + "type": "string", + "title": "cipher context id" + }, + "initialValue": { + "type": "string", + "format": "byte", + "title": "Initial Value for Symmetric Key derivation" + }, + "cipherData": { + "type": "string", + "format": "byte", + "title": "encrypted sensitive data" + }, + "clearTextSha256": { + "type": "string", + "format": "byte", + "title": "sha256 of the plaintext sensitive data" + } + }, + "title": "Encrypted sensitive data information" + }, + "commonConnectivityProbe": { + "type": "object", + "properties": { + "probeMethod": { + "$ref": "#/definitions/commonConnectivityProbeMethod", + "description": "Method to use to determine the connectivity status." + }, + "probeEndpoint": { + "$ref": "#/definitions/commonProbeEndpoint", + "description": "Endpoint to probe using the selected probing mechanism to determine\nthe connectivity status." + } + }, + "description": "Configuration for user-defined connectivity-testing probe." + }, + "commonConnectivityProbeMethod": { + "type": "string", + "enum": [ + "CONNECTIVITY_PROBE_METHOD_UNSPECIFIED", + "CONNECTIVITY_PROBE_METHOD_ICMP", + "CONNECTIVITY_PROBE_METHOD_TCP" + ], + "default": "CONNECTIVITY_PROBE_METHOD_UNSPECIFIED", + "description": "User-defined method to use to determine the connectivity status.\n\n - CONNECTIVITY_PROBE_METHOD_UNSPECIFIED: Connectivity probing method is not specified and therefore will not be used.\n - CONNECTIVITY_PROBE_METHOD_ICMP: Use ICMP ping against the probed endpoint to determine the connectivity status.\n - CONNECTIVITY_PROBE_METHOD_TCP: Try to establish TCP connection with the probed endpoint to determine the connectivity\nstatus." + }, + "commonNetworkConfigOrigin": { + "type": "string", + "enum": [ + "NETWORK_CONFIG_ORIGIN_UNSPECIFIED", + "NETWORK_CONFIG_ORIGIN_CONTROLLER", + "NETWORK_CONFIG_ORIGIN_BOOTSTRAP", + "NETWORK_CONFIG_ORIGIN_OVERRIDE", + "NETWORK_CONFIG_ORIGIN_LASTRESORT", + "NETWORK_CONFIG_ORIGIN_TUI", + "NETWORK_CONFIG_ORIGIN_LOC", + "NETWORK_CONFIG_ORIGIN_LPS" + ], + "default": "NETWORK_CONFIG_ORIGIN_UNSPECIFIED", + "description": "NetworkConfigOrigin enumerates all possible origins of a network port configuration.\n\n - NETWORK_CONFIG_ORIGIN_UNSPECIFIED: Unknown or unset origin.\n - NETWORK_CONFIG_ORIGIN_CONTROLLER: Config received from the controller.\n - NETWORK_CONFIG_ORIGIN_BOOTSTRAP: Initial device config embedded in the EVE installer, signed by the controller.\n - NETWORK_CONFIG_ORIGIN_OVERRIDE: Manually created JSON config injected into the installer.\n - NETWORK_CONFIG_ORIGIN_LASTRESORT: Fallback configuration automatically generated to enable DHCP on all Ethernet ports.\nUsed when no network config is available or when \"network.fallback.any.eth\" is enabled\nand none of the existing configs provide controller connectivity.\n - NETWORK_CONFIG_ORIGIN_TUI: Config entered via the terminal UI (TUI).\n - NETWORK_CONFIG_ORIGIN_LOC: Configuration signed by the controller and delivered through the\nLocal Operator Console (LOC) in an air-gapped environment.\n - NETWORK_CONFIG_ORIGIN_LPS: Config changes made locally through the Local Profile Server (LPS)." + }, + "commonPortConfigSource": { + "type": "object", + "properties": { + "origin": { + "$ref": "#/definitions/commonNetworkConfigOrigin", + "description": "Indicates where EVE obtained the network config." + }, + "submittedAt": { + "type": "string", + "format": "date-time", + "description": "Timestamp when this port\u2019s configuration was originally submitted\nor created at its source.\n\nMeaning depends on the origin:\n- Controller, LOC, bootstrap: timestamp provided by the controller.\n- Local override.json: when the file was first loaded by EVE.\n- Last-resort: when EVE generated the fallback config.\n- LPS modifications: when the modified config was received.\n- TUI: when the user submitted the configuration.\n\nThis is different from DevicePortStatus.timePriority, which is used\nto compare and prioritize different sources of network configuration\n(and may be synthetic for some sources, e.g. year 2000 for override.json,\nepoch 0 for last-resort). By contrast, submitted_at represents when this\nport\u2019s configuration first came into existence, regardless of when or whether\nthe device applied it.\n\nNote: this is a per-port timestamp. The underlying network config may\ncover multiple ports, but only the portion relevant to this port is\nreflected here." + } + }, + "description": "PortConfigSource describes the origin of the configuration used for a network port.\nIt helps distinguish between controller-provided, locally-modified, or initial configs." + }, + "commonProbeEndpoint": { + "type": "object", + "properties": { + "host": { + "type": "string", + "description": "IP address or FQDN." + }, + "port": { + "type": "integer", + "format": "int64", + "description": "TCP port required for CONNECTIVITY_PROBE_METHOD_TCP.\nLeave empty for CONNECTIVITY_PROBE_METHOD_ICMP." + } + }, + "description": "Address of a remote endpoint to probe in order to determine connectivity status." + }, + "configCellularConnectivityProbe": { + "type": "object", + "properties": { + "disable": { + "type": "boolean", + "description": "If true, then probing is disabled." + }, + "probeAddress": { + "type": "string", + "description": "IP/FQDN to periodically probe using 3 pings per iteration to determine connectivity status.\nThis field is now deprecated and replaced with custom_probe (see below).\nTo maintain backward-compatibility, EVE will check both probe_address and custom_probe\nand will use whichever has non-zero value (if any), but preferring custom_probe." + }, + "customProbe": { + "$ref": "#/definitions/commonConnectivityProbe", + "description": "User-defined probe for cellular connectivity testing.\nOnly IP address is allowed as ConnectivityProbe.probe_address (and port if needed),\nnot hostname.\nThe probing algorithm is more complex that just testing reachability of a remote\nendpoint and the goal is to minimize generated traffic, probing time and false negatives\n(that would trigger undesired re-connect).\nEVE will periodically check the modem status, accessibility of DNS server(s) and potentially\nalso proxies in the local network, and only as the last resort (if connectivity state\nis still unclear) it will probe the remote endpoint. If custom_probe is not defined,\nEVE will try to ping \"8.8.8.8\" (Google public DNS).\nIt is recommended to use custom probe for private LTE networks where public DNS servers\nmight not be allowed by the firewall (and hence ping would fail even with a working\nconnectivity)." + } + }, + "description": "CellularConnectivityProbe is used to periodically check the connectivity status of a cellular network\nby probing a remote endpoint.\nWhenever the probe fails, the cellular connection is automatically restarted. If the probe keeps failing\neven after the restart, the failure is reported in ZCellularStatus.probeError.\nThe connectivity probing interval is 5 minutes and currently it is not configurable." + }, + "configFormat": { + "type": "string", + "enum": [ + "FmtUnknown", + "RAW", + "QCOW", + "QCOW2", + "VHD", + "VMDK", + "OVA", + "VHDX", + "CONTAINER", + "ISO", + "PVC" + ], + "default": "FmtUnknown" + }, + "deviceStatusConfig": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "system generated unique id for a device", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+" + }, + "name": { + "type": "string", + "description": "user specified device name" + }, + "title": { + "type": "string", + "description": "user specified title" + }, + "serialNo": { + "type": "string", + "description": "Device serial number" + }, + "projectId": { + "type": "string", + "description": "project Id of the device" + }, + "projectName": { + "type": "string", + "description": "project name of the device" + }, + "location": { + "type": "string", + "description": "Device location" + }, + "eveImageName": { + "type": "string", + "description": "Eve image name that was running on the device" + }, + "isEveLatest": { + "type": "string", + "description": "Boolean that tells whether the active eve image is latest or not" + }, + "appInstCount": { + "type": "string", + "format": "int64", + "description": "Number of app instance that is running on the device" + }, + "runState": { + "$ref": "#/definitions/RunState", + "description": "Run state of the device" + }, + "adminState": { + "$ref": "#/definitions/AdminState", + "description": "Admin state of the device" + }, + "dinfo": { + "$ref": "#/definitions/DeviceInfo", + "description": "Device info like storage, arch, memory etc" + }, + "swInfo": { + "type": "array", + "items": { + "$ref": "#/definitions/DeviceSWInfo" + }, + "description": "software info reported by the device" + }, + "projectType": { + "type": "string", + "$ref": "#/definitions/TagType", + "description": "project type of the device" + }, + "clusterNodeStatus": { + "$ref": "#/definitions/ClusterNodeStatus", + "description": "Cluster node status" + }, + "interfaces": { + "type": "array", + "items": { + "$ref": "#/definitions/SysInterface" + }, + "description": "System Interface list" + }, + "modelId": { + "type": "string", + "description": "device model" + }, + "enrolledCertsStatus": { + "$ref": "#/definitions/EnrolledCertStatus", + "description": "Enrolled certificate status from the device" + } + }, + "description": "Device status and config response details", + "title": "Device status config response detail", + "required": [ + "id", + "name", + "serialNo" + ] + }, + "dhcpIpRange": { + "type": "object", + "properties": { + "start": { + "type": "string", + "description": "starting IP" + }, + "end": { + "type": "string", + "description": "ending IP" + } + }, + "description": "DHCP IP range", + "title": "DHCP IP range" + }, + "evecommonCellularAuthProtocol": { + "type": "string", + "enum": [ + "CELLULAR_AUTH_PROTOCOL_NONE", + "CELLULAR_AUTH_PROTOCOL_PAP", + "CELLULAR_AUTH_PROTOCOL_CHAP", + "CELLULAR_AUTH_PROTOCOL_PAP_AND_CHAP" + ], + "default": "CELLULAR_AUTH_PROTOCOL_NONE", + "description": "CellularAuthProtocol defines the authentication protocol used for cellular connection.\n\n - CELLULAR_AUTH_PROTOCOL_NONE: No authentication.\n - CELLULAR_AUTH_PROTOCOL_PAP: Password Authentication Protocol.\n - CELLULAR_AUTH_PROTOCOL_CHAP: Challenge-Handshake Authentication Protocol.\n - CELLULAR_AUTH_PROTOCOL_PAP_AND_CHAP: Both PAP and CHAP." + }, + "evecommonRadioAccessTechnology": { + "type": "string", + "enum": [ + "RADIO_ACCESS_TECHNOLOGY_UNSPECIFIED", + "RADIO_ACCESS_TECHNOLOGY_GSM", + "RADIO_ACCESS_TECHNOLOGY_UMTS", + "RADIO_ACCESS_TECHNOLOGY_LTE", + "RADIO_ACCESS_TECHNOLOGY_5GNR" + ], + "default": "RADIO_ACCESS_TECHNOLOGY_UNSPECIFIED", + "description": " - RADIO_ACCESS_TECHNOLOGY_GSM: Global System for Mobile Communications (2G).\n - RADIO_ACCESS_TECHNOLOGY_UMTS: Universal Mobile Telecommunications System (3G).\n - RADIO_ACCESS_TECHNOLOGY_LTE: Long Term Evolution (4G).\n - RADIO_ACCESS_TECHNOLOGY_5GNR: 5G New Radio." + }, + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "hvMode": { + "type": "string", + "enum": [ + "HV_PV", + "HV_HVM", + "HV_FML", + "HV_NOHYPER", + "HV_LEGACY" + ], + "default": "HV_PV", + "description": "For now we need to tell the device which virtualization mode\nto use. Later we might use a single one for all VMs (on any particular\nISA). If we end up keeping this we should make the names be less\ntied to a particular hypervisor." + }, + "infoAPICapability": { + "type": "string", + "enum": [ + "API_CAPABILITY_UNSPECIFIED", + "API_CAPABILITY_RETRY_UPDATE", + "API_CAPABILITY_SHUTDOWN", + "API_CAPABILITY_START_DELAY_IN_SECONDS", + "API_CAPABILITY_EDGEVIEW", + "API_CAPABILITY_VOLUME_SNAPSHOTS", + "API_CAPABILITY_NETWORK_INSTANCE_ROUTING", + "API_CAPABILITY_BOOT_MODE", + "API_CAPABILITY_MTU", + "API_CAPABILITY_ADAPTER_USER_LABELS", + "API_CAPABILITY_ENFORCED_NET_INTERFACE_ORDER", + "API_CAPABILITY_NTPS_FQDN", + "API_CAPABILITY_WIN_LIC_PASSTHROUGH", + "API_CAPABILITY_VOLUME_SNAPSHOTS_IMMEDIATE", + "API_CAPABILITY_ENCRYPTED_PATCH_ENVELOPE", + "API_CAPABILITY_SINGLE_STACK_IP_NETWORK", + "API_CAPABILITY_CELLULAR_ATTACH_CONFIG", + "API_CAPABILITY_EDGEVIEW_AUTHENTICATION", + "API_CAPABILITY_DISABLE_VTPM", + "API_CAPABILITY_LOC_REBOOT_COLLECT_INFO", + "API_CAPABILITY_SMART_REPORT", + "API_CAPABILITY_REPORT_TPM_EVENTLOG" + ], + "default": "API_CAPABILITY_UNSPECIFIED", + "description": "Capabilities indicates features in the EdgeDevConfig where there is\nno easy way to otherwise determine whether or not they are parsed and\nsupported by EVE-OS\nA larger number indicates all lower numbers are also supported thus\nthis works similar to a version field for the EdgeDevConfig support." + }, + "ioMember": { + "type": "object", + "example": { + "ztype": 1, + "phylabel": "eth0", + "logicallabel": "eth0" + }, + "properties": { + "ztype": { + "$ref": "#/definitions/IoType", + "description": "Z Type" + }, + "phylabel": { + "type": "string", + "description": "Physical Label" + }, + "phyaddrs": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Map of Physical Addresses" + }, + "logicallabel": { + "type": "string", + "description": "Logical Label" + }, + "assigngrp": { + "type": "string", + "description": "Assign Group" + }, + "usage": { + "$ref": "#/definitions/AdapterUsage", + "description": "Adopter Usage" + }, + "cbattr": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "attributes", + "title": "physical and logical attributes" + }, + "usagePolicy": { + "type": "object", + "additionalProperties": { + "type": "boolean" + }, + "title": "usagePolicy" + }, + "cost": { + "type": "integer", + "format": "int64", + "description": "cost of using this ioMember. Default is 0.", + "maximum": 255 + }, + "vfs": { + "$ref": "#/definitions/Vfs", + "title": "Single Root Input Output Virtualization (SR-IOV) support in device configuration" + }, + "parentassigngrp": { + "type": "string", + "description": "Parent group for a IoMember. Can be empty if there is no parent group." + } + }, + "description": " ioMember consists of list of various networking attributes like physical label, physical address etc associated with SysModel", + "title": "ioMember payload details", + "required": [ + "ztype", + "phylabel", + "assigngrp", + "phyaddrs", + "logicallabel", + "cost" + ] + }, + "phyAdapter": { + "type": "object", + "properties": { + "type": { + "type": "object", + "$ref": "#/definitions/IoType", + "description": "IoType specifies the type of the Input output of the device" + }, + "name": { + "type": "string", + "description": "Physical Adapter name" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + } + }, + "description": "Physical Adapter", + "title": "Physical Adapter" + }, + "protobufAny": { + "type": "object", + "properties": { + "typeUrl": { + "type": "string" + }, + "value": { + "type": "string", + "format": "byte" + } + } + }, + "protobufNullValue": { + "type": "string", + "enum": [ + "NULL_VALUE" + ], + "default": "NULL_VALUE", + "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\n The JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." + }, + "spType": { + "type": "string", + "enum": [ + "SPTYPE_INVALIDSRV", + "SPTYPE_MAPSERVER", + "SPTYPE_SUPPORTSERVER" + ], + "default": "SPTYPE_INVALIDSRV", + "description": "clone of types defined in API repo.\n\n - SPTYPE_MAPSERVER: mapping service for zededa overlay service\n - SPTYPE_SUPPORTSERVER: if device has support feature enabled, this ia cloud service\nwhich device can be reached." + }, + "tagConfigStatus": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the resource group.", + "readOnly": true, + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the resource group, unique across the enterprise. Once resource group is created, name can\u2019t be changed.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "status": { + "$ref": "#/definitions/TagStatus", + "description": "Resource group status", + "readOnly": true + }, + "cloudPolicyType": { + "$ref": "#/definitions/PolicyType", + "description": "type of cloud policy" + }, + "attestPolicyType": { + "$ref": "#/definitions/AttestPolicyType", + "description": "type of attestation policy" + }, + "appPolicyId": { + "type": "string", + "description": "app policy Id" + }, + "appPolicyName": { + "type": "string", + "description": "app policy name" + }, + "networkPolicyId": { + "type": "string", + "description": "network policy Id" + }, + "networkDeviceDefault": { + "type": "boolean", + "description": "flag to indicate if this is the default network instance for the device" + }, + "edgeviewAllow": { + "type": "boolean", + "description": "edgeview is allowed or not for devices in project" + }, + "edgeviewSessionCount": { + "type": "integer", + "format": "int64", + "description": "total count of devices enabled with edgeview session" + }, + "type": { + "$ref": "#/definitions/TagType", + "description": "Resource group type" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + } + } + }, + "vlanAdapter": { + "type": "object", + "properties": { + "logicalLabel": { + "type": "string", + "description": "Logical name of this VLAN adapter" + }, + "interfaceName": { + "type": "string", + "description": "A physical name of the VLAN sub-interface" + }, + "lowerLayerName": { + "type": "string", + "description": "Logical name of the lower layer adapter (bond or physicalIO)" + }, + "vlanId": { + "type": "integer", + "format": "int64", + "description": "Valid values are from 1 to 4094" + }, + "interface": { + "$ref": "#/definitions/SysInterface", + "description": "System Sub-Interface" + } + }, + "description": "vlanAdapter represents a single VLAN sub-interface", + "title": "vlanAdapter payload detail" + }, + "vm": { + "type": "object", + "properties": { + "cpus": { + "type": "number", + "format": "int64", + "description": "CPUs" + }, + "memory": { + "type": "number", + "format": "int64", + "description": "Memory" + }, + "mode": { + "$ref": "#/definitions/hvMode", + "description": "Hardware Virtualization" + }, + "vnc": { + "type": "boolean", + "description": "VNC" + }, + "vncDisplay": { + "type": "number", + "format": "int64", + "description": "VNC display", + "readOnly": true + }, + "cpuPinningEnabled": { + "type": "boolean", + "description": "Enable CpuPinning" + }, + "vmmMaxmem": { + "type": "integer", + "format": "int64", + "description": "Maximum amount of memory in kbytes allowed for VM monitor to occupy" + }, + "bootloaderMode": { + "$ref": "#/definitions/VmBootloaderMode", + "description": "The bootloader mode that will be used for the VM. Default is VM_BOOTLOADER_MODE_LEGACY" + }, + "enableOemWinLicenseKey": { + "type": "boolean", + "description": "Enable device which has VM to receive the Windows license embedded in the ACPI tables" + }, + "disableVTPM": { + "type": "boolean", + "description": "Disable vTPM for virtual machines (VM)" + } + }, + "description": "Virtual machine memory configuration", + "title": "vm detail", + "required": [ + "cpus", + "memory", + "mode", + "vnc" + ] + } + }, + "securityDefinitions": { + "BearerToken": { + "type": "apiKey", + "description": "Bearer token for user session", + "name": "Authorization", + "in": "header" + } + }, + "security": [ + { + "BearerToken": [] + } + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/edge-nodes" + } +} \ No newline at end of file diff --git a/openapi/zedge_orchestration_service.swagger.json b/openapi/zedge_orchestration_service.swagger.json new file mode 100644 index 0000000..64e297e --- /dev/null +++ b/openapi/zedge_orchestration_service.swagger.json @@ -0,0 +1,8649 @@ +{ + "swagger": "2.0", + "info": { + "title": "ZEDEDA Orchestrator Service", + "description": "The ZEDEDA Orchestrator Service is part of ZEDEDA Edge Orchestration Platform. Orchestrator service defines the user facing APIs to interact with a third-party client (e.x. Azure, Rancher).", + "termsOfService": "https://www.zededa.com/terms", + "version": "1.0", + "contact": { + "name": "ZEDEDA API Support", + "url": "https://www.zededa.com/support", + "email": "support@zededa.com" + }, + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.html" + } + }, + "tags": [ + { + "name": "ClusterInstanceConfiguration" + }, + { + "name": "ClusterInstanceStatus" + }, + { + "name": "ThirdPartyPluginManagement" + }, + { + "name": "DataStreamConfigs" + }, + { + "name": "AzureDeployments" + }, + { + "name": "APIUsageTracking" + } + ], + "basePath": "/api", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/v1/apiusage": { + "get": { + "summary": "Get API usage statistics", + "description": "Get API usage statistics for given Enterprise or for all Enterprises.", + "operationId": "APIUsageTracking_QueryAPIUsage", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/APIUsageResp" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "enterpriseIDs", + "description": "If not specified, usage stats for the entire cluster are returned. If Enterprise IDs are specified, only stats specific to the enterprise list are returned.", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "userAgents", + "description": "If not specified, usage stats for all the user agents are returned. If user agents are specified, only stats specific to the user agents are returned.", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "APIUsageTracking" + ] + } + }, + "/v1/azure/deployment/policyid/{policyId}": { + "delete": { + "summary": "Delete a deployment policy.", + "description": "Delete a deployment policy.", + "operationId": "AzureDeployments_DeleteDeploymentPolicy", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "policyId", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "deploymentId", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "AzureDeployments" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/azure-integration" + } + } + }, + "/v1/azure/edgedevice/modulepolicyid/{modulePolicyId}": { + "get": { + "summary": "Get a azure module policy by id.", + "description": "Get the details of a azure module policy by id.", + "operationId": "AzureDeployments_GetModulePolicy", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/EdgedeviceList" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "modulePolicyId", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "AzureDeployments" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/azure-integration" + } + } + }, + "/v1/cluster/instances": { + "get": { + "summary": "Query Cluster Instance.", + "description": "Query the Cluster Instance records.", + "operationId": "ClusterInstanceConfiguration_QueryClusterInstances", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ClusterInstances" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "description": "summary flag", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "project", + "description": "User defined name of the project, unique across the enterprise. Once project is created, name can\u2019t be changed", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "namePattern", + "description": "cluster name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "projectNamePattern", + "description": "cluster project name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "clusterType", + "description": "type of cluster\n\n - CLUSTER_TYPE_K3S: cluster type is k3s\n - CLUSTER_TYPE_TKG_ATTACH: cluster type is TKG, with subtype ATTACH", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "CLUSTER_TYPE_UNSPECIFIED", + "CLUSTER_TYPE_K3S", + "CLUSTER_TYPE_TKG_ATTACH" + ], + "default": "CLUSTER_TYPE_UNSPECIFIED" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "fields", + "description": "Fields to select: id, name, title, description, tags, clusterType, projectId, revision, activate, clusterPolicyId, edgeNodePoolTags, serverAppID, agentAppID, minEdgeDevices, maxEdgeDevices, minServerNodes, maxServerNodes, minAgentNodes, maxAgentNodes, callHomeURL, clusterOnboardType, orchestrationProvider, orchestratorAuthenticationType, orchestratorServerAddress, orchestratorPort, dbEndpoint", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ClusterInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/cluster-instance-management" + } + }, + "post": { + "summary": "Create Cluster Instance.", + "description": "Creates an Cluster Instance record.", + "operationId": "ClusterInstanceConfiguration_CreateClusterInstance", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this cluster instance record will conflict with an already existing cluster instance record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ClusterInstance" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ClusterInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/cluster-instance-management" + } + } + }, + "/v1/cluster/instances/id/{id}": { + "get": { + "summary": "Get Cluster Instance.", + "description": "Get the configuration (without security details) of an Cluster Instance record.", + "operationId": "ClusterInstanceConfiguration_GetClusterInstance", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ClusterInstance" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the cluster instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ClusterInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/cluster-instance-management" + } + }, + "delete": { + "summary": "Delete Cluster Instance.", + "description": "Delete an Cluster Instance record.", + "operationId": "ClusterInstanceConfiguration_DeleteClusterInstance", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because there are cluster nodes running of this cluster instance", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the cluster instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ClusterInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/cluster-instance-management" + } + }, + "put": { + "summary": "Update Cluster Instance.", + "description": "Update an Cluster Instance record. The usual pattern to update an Cluster Instance record is to retrieve the record and update with the modified values in a new body.", + "operationId": "ClusterInstanceConfiguration_UpdateClusterInstance", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing cluster instance record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the cluster instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "User defined name of the cluster instance, unique across the enterprise. Once cluster instance is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the cluster instance. Title can be changed at any time", + "maxLength": 256, + "minLength": 3, + "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$" + }, + "description": { + "type": "string", + "description": "Detailed description of the cluster instance", + "maxLength": 256 + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "clusterType": { + "$ref": "#/definitions/ClusterType", + "description": "Type of cluster" + }, + "projectId": { + "type": "string", + "description": "project id which the given cluster instance belong to" + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "cluster instance object revision details", + "title": "deprecated 8;" + }, + "activate": { + "type": "string", + "description": "cluster instance activation flag" + }, + "clusterPolicyId": { + "type": "string", + "description": "System defined universally unique Id of the cluster policy", + "pattern": "[0-9A-Za-z-]+" + }, + "edgeNodePoolTags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "edgeNodePoolTags are name/value pairs that enables us to identify edgeNodes which are part of a ClusterInstance. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "serverAppInst": { + "$ref": "#/definitions/AppInstance", + "description": "app instance object for server node", + "title": "Cluster config details" + }, + "agentAppInst": { + "$ref": "#/definitions/AppInstance", + "description": "app instance object for agent node" + }, + "minEdgeDevices": { + "type": "number", + "format": "int64", + "description": "Minimum number of edge device required for the cluster instance" + }, + "maxEdgeDevices": { + "type": "number", + "format": "int64", + "description": "Maximum number of edge device allowed in the cluster instance" + }, + "minServerNodes": { + "type": "number", + "format": "int64", + "description": "Minimum number of server nodes required for the cluster instance" + }, + "maxServerNodes": { + "type": "number", + "format": "int64", + "description": "Maximum number of server nodes allowed in the cluster instance" + }, + "minAgentNodes": { + "type": "number", + "format": "int64", + "description": "Minimum number of agent nodes required for the cluster instance" + }, + "maxAgentNodes": { + "type": "number", + "format": "int64", + "description": "Maximum number of agent nodes allowed in the cluster instance" + }, + "callHomeURL": { + "type": "string", + "description": "CallHome URL for the cluster to fetch configuration details" + }, + "clusterOnboardType": { + "$ref": "#/definitions/ClusterOnboardType", + "description": "Cluster Instance orchestrator onboard type" + }, + "orchestrationProvider": { + "$ref": "#/definitions/OrchestrationProvider", + "description": "Orchestrator type" + }, + "orchestratorPluginID": { + "type": "string", + "description": "System defined universally unique Id of the orchestrator plugin", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "orchestratorConfig": { + "$ref": "#/definitions/OrchestratorConfig", + "description": "Orchestrator config" + }, + "netInstConfig": { + "type": "array", + "items": { + "$ref": "#/definitions/NetInstConfig" + }, + "description": "Network instance config to enforce on all devices of this cluster" + }, + "orchestratorClusterURL": { + "type": "string", + "description": "Href for the third-party cluster object.", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "dbEndpoint": { + "type": "string", + "description": "External DataBase endpoint for the server to communicate and sync" + }, + "devIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of Edge Node Ids to deploy the cluster instance" + } + }, + "description": "Cluster Instance detail", + "title": "Cluster Instance detail", + "required": [ + "name", + "title", + "clusterType", + "projectId", + "edgeNodePoolTags", + "serverAppInst", + "agentAppInst", + "minEdgeDevices", + "maxEdgeDevices", + "minServerNodes", + "maxServerNodes", + "minAgentNodes", + "maxAgentNodes", + "callHomeURL", + "clusterOnboardType" + ] + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ClusterInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/cluster-instance-management" + } + } + }, + "/v1/cluster/instances/id/{id}/activate": { + "put": { + "summary": "Activate Cluster Instance.", + "description": "Activate an Cluster Instance. If already in active state no action is taken.", + "operationId": "ClusterInstanceConfiguration_ActivateClusterInstance", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing cluster instance record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the cluster instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ClusterInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/cluster-instance-management" + } + } + }, + "/v1/cluster/instances/id/{id}/deactivate": { + "put": { + "summary": "Deactivate Cluster Instance.", + "description": "Deactivate an Cluster Instance. If already in inactive state no action is taken.", + "operationId": "ClusterInstanceConfiguration_DeactivateClusterInstance", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing cluster instance record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the cluster instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ClusterInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/cluster-instance-management" + } + } + }, + "/v1/cluster/instances/id/{id}/refresh": { + "put": { + "summary": "Refresh cluster instance", + "description": "Refresh cluster instance. This operation will result in a refresh of the cluster instance.", + "operationId": "ClusterInstanceConfiguration_RefreshClusterInstance", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the cluster instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ClusterInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/cluster-instance-management" + } + } + }, + "/v1/cluster/instances/id/{id}/refresh/purge": { + "put": { + "summary": "Refresh and purge cluster instance", + "description": "Refresh and purge cluster instance. This operation will result in loss of data and a restart of the cluster instance. ", + "operationId": "ClusterInstanceConfiguration_RefreshPurgeClusterInstance", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the cluster instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ClusterInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/cluster-instance-management" + } + } + }, + "/v1/cluster/instances/id/{id}/restart": { + "put": { + "summary": "Restart cluster instance", + "description": "Restart cluster instance, initiate a restart of the cluster instance.", + "operationId": "ClusterInstanceConfiguration_RestartClusterInstance", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the cluster instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ClusterInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/cluster-instance-management" + } + } + }, + "/v1/cluster/instances/id/{id}/status": { + "get": { + "summary": "Get Cluster Instance status.", + "description": "Get the status of an Cluster Instances as reported by the edge node where the cluster nodes are deployed.", + "operationId": "ClusterInstanceStatus_GetClusterInstanceStatus", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ClusterInstStatusMsg" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the cluster instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ClusterInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/cluster-instance-management" + } + } + }, + "/v1/cluster/instances/id/{id}/status/kubeconfig": { + "get": { + "summary": "Get Cluster Instances kubeconfig by id.", + "description": "Get status kubeconfig of an Cluster Instances by id.", + "operationId": "ClusterInstanceStatus_GetClusterInstanceKubeconfigById", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ClusterInstStatusMsg" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the cluster instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ClusterInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/cluster-instance-management" + } + } + }, + "/v1/cluster/instances/id/{id}/status/kubeconfig/download": { + "get": { + "summary": "Download Cluster Instances kubeconfig by id.", + "description": "Download status kubeconfig of an Cluster Instances by id.", + "operationId": "ClusterInstanceStatus_DownloadClusterInstanceKubeconfigById", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ClusterInstStatusMsg" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the cluster instance", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ClusterInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/cluster-instance-management" + } + } + }, + "/v1/cluster/instances/id/{objid}/events": { + "get": { + "summary": "Get Cluster Instances events by id.", + "description": "Get status events of an Cluster Instances by id.", + "operationId": "ClusterInstanceStatus_GetClusterInstanceEvents", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/EventQueryResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "objid", + "description": "Object id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "startTime", + "description": "start time in timestamp", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "description": "end time", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "severity", + "description": "severity", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "resource", + "description": "resource", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ClusterInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/cluster-instance-management" + } + } + }, + "/v1/cluster/instances/name/{name}": { + "get": { + "summary": "Get Cluster Instance.", + "description": "Get the configuration (without security details) of an Cluster Instance record.", + "operationId": "ClusterInstanceConfiguration_GetClusterInstanceByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ClusterInstance" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "User defined name of the cluster instance, unique across the enterprise. Once cluster instance is created, name can\u2019t be changed", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ClusterInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/cluster-instance-management" + } + } + }, + "/v1/cluster/instances/name/{name}/status": { + "get": { + "summary": "Get Cluster Instance status.", + "description": "Get the status of an Cluster Instances as reported by the edge node where the cluster nodes are deployed.", + "operationId": "ClusterInstanceStatus_GetClusterInstanceStatusByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ClusterInstStatusMsg" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "User defined name of the cluster instance, unique across the enterprise. Once cluster instance is created, name can\u2019t be changed", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ClusterInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/cluster-instance-management" + } + } + }, + "/v1/cluster/instances/name/{name}/status/kubeconfig": { + "get": { + "summary": "Get Cluster Instances kubeconfig by name.", + "description": "Get status kubeconfig of an Cluster Instances by name.", + "operationId": "ClusterInstanceStatus_GetClusterInstanceKubeconfigByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ClusterInstStatusMsg" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "User defined name of the cluster instance, unique across the enterprise. Once cluster instance is created, name can\u2019t be changed", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ClusterInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/cluster-instance-management" + } + } + }, + "/v1/cluster/instances/name/{name}/status/kubeconfig/download": { + "get": { + "summary": "Download Cluster Instances kubeconfig by name.", + "description": "Download status kubeconfig of an Cluster Instances by name.", + "operationId": "ClusterInstanceStatus_DownloadClusterInstanceKubeconfigByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ClusterInstStatusMsg" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "User defined name of the cluster instance, unique across the enterprise. Once cluster instance is created, name can\u2019t be changed", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ClusterInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/cluster-instance-management" + } + } + }, + "/v1/cluster/instances/name/{objname}/events": { + "get": { + "summary": "Get Cluster Instances events by name.", + "description": "Get status events of an Cluster Instances by name.", + "operationId": "ClusterInstanceStatus_GetClusterInstanceEventsByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/EventQueryResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "objname", + "description": "Object name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "startTime", + "description": "start time in timestamp", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "description": "end time", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "severity", + "description": "severity", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "resource", + "description": "resource", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ClusterInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/cluster-instance-management" + } + } + }, + "/v1/cluster/instances/status": { + "get": { + "summary": "Query status of Cluster Instances.", + "description": "Query the status of Cluster Instances as reported by the edge nodes where the cluster nodes are deployed.", + "operationId": "ClusterInstanceStatus_QueryClusterInstanceStatus", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ClusterInstStatusListMsg" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "description": "cluster instance summary flag", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "namePattern", + "description": "name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "project", + "description": "User defined name of the project, unique across the enterprise. Once project is created, name can\u2019t be changed", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "projectNamePattern", + "description": "project name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "fields", + "description": "Fields to select: id, name, title, projectId, tags, clusterPolicyId, adminState, runState, edgeNodePoolIDs, serverNodeIDs, agentNodeIDs, nodesJobName, orchestratorClusterID, orchestratorClusterRunState, orchestratorClusterErrMsg, orchestratorClusterWarnMsg, projectName, clusterType", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ClusterInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/cluster-instance-management" + } + } + }, + "/v1/cluster/instances/status-config": { + "get": { + "summary": "Query status and config of Cluster Instances.", + "description": "Query the status and config of Cluster Instances as reported by the edge nodes where the cluster nodes are deployed.", + "operationId": "ClusterInstanceStatus_QueryClusterInstanceStatusConfig", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ClusterInstStatusListMsg" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "description": "cluster instance summary flag", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "namePattern", + "description": "name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "project", + "description": "User defined name of the project, unique across the enterprise. Once project is created, name can\u2019t be changed", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "projectNamePattern", + "description": "project name pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "fields", + "description": "Fields to select: id, name, title, projectId, tags, clusterPolicyId, adminState, runState, edgeNodePoolIDs, serverNodeIDs, agentNodeIDs, nodesJobName, orchestratorClusterID, orchestratorClusterRunState, orchestratorClusterErrMsg, orchestratorClusterWarnMsg, projectName, clusterType", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ClusterInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/cluster-instance-management" + } + } + }, + "/v1/cluster/instances/tags": { + "get": { + "summary": "Query cluster instance tags", + "description": "cluster instance tags LIST API is to fetch the interfaces tags attached to app instances.", + "operationId": "AzureDeployments_GetclusterInstanceTags", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ObjectTagsList" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "AzureDeployments" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/azure-integration" + } + } + }, + "/v1/datastreams": { + "get": { + "summary": "Get data stream config list.", + "description": "Get data stream config list.", + "operationId": "DataStreamConfigs_QueryDataStreams", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DataStreamConfigList" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "namePattern", + "description": "Name pattern of matching data stream config name.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "type", + "description": "Type of data source", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNUSED", + "APP_LOGS", + "EVENTS", + "METRICS" + ], + "default": "UNUSED" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "DataStreamConfigs" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/IAM" + } + }, + "post": { + "summary": "Create data stream config.", + "description": "Configure a data stream config to the given enterprise.", + "operationId": "DataStreamConfigs_CreateDataStream", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this data stream config record will conflict with an already existing data stream config record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DataStreamConfig" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "DataStreamConfigs" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + } + }, + "/v1/datastreams/id/{id}": { + "get": { + "summary": "Get a data stream config by Id.", + "description": "Get a data stream config by Id.", + "operationId": "DataStreamConfigs_GetDataStreamById", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DataStreamConfig" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the data stream config request", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "DataStreamConfigs" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/IAM" + } + }, + "delete": { + "summary": "Delete a data stream config.", + "description": "Delete a data stream config.", + "operationId": "DataStreamConfigs_DeleteDataStream", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the data stream config request", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "DataStreamConfigs" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/IAM/" + } + }, + "put": { + "summary": "Update a data stream config.", + "description": "Update a data stream config. The usual pattern to update a data stream config is to retrieve the record and update with the modified values in a new body to update the data stream config.", + "operationId": "DataStreamConfigs_UpdateDataStream", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing data stream config.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the data stream config", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "User defined name of the data stream config, unique across the enterprise. Once object is created, name can\u2019t be changed", + "title": "Common fields", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the data stream config. Title can be changed at any time", + "maxLength": 256, + "minLength": 3, + "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$" + }, + "description": { + "type": "string", + "description": "Detailed description of the data stream config.", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "System defined info" + }, + "pluginId": { + "type": "string", + "description": "Unique Id of the third party plugin", + "title": "Fields Specific to Data Stream", + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + }, + "enabled": { + "type": "boolean", + "description": "Is the data stream config enabled?" + }, + "dataSourceType": { + "$ref": "#/definitions/DataSourceType", + "description": "Type of the source" + } + }, + "description": "Data stream configuration for different types of data (events, logs, metrics etc).", + "title": "Data stream configuration details", + "required": [ + "name", + "title", + "pluginId", + "enabled", + "dataSourceType" + ] + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "DataStreamConfigs" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/IAM/" + } + } + }, + "/v1/datastreams/name/{name}": { + "get": { + "summary": "Get a data stream config by name.", + "description": "Get the details of a data stream config by name.", + "operationId": "DataStreamConfigs_GetDataStreamByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DataStreamConfig" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "Name of the data stream config, unique across the enterprise.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "DataStreamConfigs" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/IAM" + } + } + }, + "/v1/plugins": { + "get": { + "summary": "Get third party plugins list.", + "description": "Get third party plugin list.", + "operationId": "ThirdPartyPluginManagement_QueryPlugins", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/PluginConfigList" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "description": "Only summary count is required.", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "namePattern", + "description": "name pattern of matching plugin name.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "integrationType", + "description": "Type of desired integration type", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ThirdPartyPluginManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/IAM" + } + }, + "post": { + "summary": "Create third party plugin.", + "description": "Configure an third party plugin to the given enterprise.", + "operationId": "ThirdPartyPluginManagement_CreatePlugin", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this thitd party plugin record will conflict with an already existing third party plugin record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PluginConfig" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ThirdPartyPluginManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + } + }, + "/v1/plugins/id/{id}": { + "get": { + "summary": "Get a third party plugin by Id.", + "description": "Get a third party plugin by Id.", + "operationId": "ThirdPartyPluginManagement_GetPluginById", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/PluginConfig" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the plugin request", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ThirdPartyPluginManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/IAM" + } + }, + "delete": { + "summary": "Delete a third party plugin.", + "description": "Delete a third party plugin.", + "operationId": "ThirdPartyPluginManagement_DeletePlugin", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the plugin request", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ThirdPartyPluginManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/IAM/" + } + }, + "put": { + "summary": "Update a third party plugin.", + "description": "Update a plugin. The usual pattern to update a plugin is to retrieve the record and update with the modified values in a new body to update the plugin.", + "operationId": "ThirdPartyPluginManagement_UpdatePlugin", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing plugin.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the third party plugin request", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "User defined name of the third party plugin request, unique across the enterprise. Once object is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the third party entity. Title can be changed at any time", + "maxLength": 256, + "minLength": 3, + "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$" + }, + "description": { + "type": "string", + "description": "Detailed description of the third party entity.", + "maxLength": 256 + }, + "integrationType": { + "$ref": "#/definitions/PluginIntegrationType", + "description": "Type of desired integration type" + }, + "pluginType": { + "$ref": "#/definitions/PluginType", + "description": "type of actual integration" + }, + "objectType": { + "$ref": "#/definitions/ObjectType", + "description": "object type to which this third party integration is associated, can project, cluster etc." + }, + "objectId": { + "type": "string", + "description": "objectId to which this third party integration is associated" + }, + "status": { + "$ref": "#/definitions/PluginStatus", + "description": "status of the third party entity.", + "readOnly": true + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined info", + "readOnly": true + }, + "statusMessage": { + "type": "string", + "description": "Detailed status message of the third party.", + "maxLength": 256 + }, + "splunkConfig": { + "$ref": "#/definitions/SplunkConfig", + "title": "config required for configuring splunk" + }, + "httpConfig": { + "$ref": "#/definitions/HttpConfig" + }, + "rancherConfig": { + "$ref": "#/definitions/OrchestratorConfig" + }, + "vmwareVCOConfig": { + "$ref": "#/definitions/VmwareVCOConfig" + }, + "vmwareTMCConfig": { + "$ref": "#/definitions/VmwareTMCConfig" + }, + "openTelemetryConfig": { + "$ref": "#/definitions/OpenTelemetryConfig" + } + }, + "description": "The payload to configure the third party associated with a particular integration.", + "title": "Third Party Plugin integration detail", + "required": [ + "name", + "title", + "integrationType", + "pluginType" + ] + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ThirdPartyPluginManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/IAM/" + } + } + }, + "/v1/plugins/name/{name}": { + "get": { + "summary": "Get a third party plugin by name.", + "description": "Get the details of a third party plugin by name.", + "operationId": "ThirdPartyPluginManagement_GetPluginByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/PluginConfig" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have application level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "User defined name of the plugin request, unique across the enterprise. Once object is created, name can\u2019t be changed", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ThirdPartyPluginManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/IAM" + } + } + } + }, + "definitions": { + "APIUsageMetric": { + "type": "object", + "properties": { + "endpoint": { + "type": "string", + "description": "HTTP request endpoint." + }, + "count": { + "type": "number", + "format": "uint64", + "description": "Number of requests received for the end point in the specified time period." + }, + "userAgentList": { + "type": "array", + "items": { + "$ref": "#/definitions/UserAgentInfo" + }, + "description": "List of info per user agent that accessed the end point in the specified time period." + }, + "responseStatusCount": { + "type": "array", + "items": { + "$ref": "#/definitions/ResponseStatusInfo" + }, + "description": "List of info per status code returned to the user for the endpoint in the specified time period." + }, + "enterpriseList": { + "type": "array", + "items": { + "$ref": "#/definitions/EnterpriseInfo" + }, + "description": "List of info per enterprise id returned to the user for the endpoint in the specified time period." + } + }, + "description": "Contains API usage metric structure in ElasticSearch.", + "title": "API Usage Mertic", + "required": [ + "endpoint", + "count" + ] + }, + "APIUsageResp": { + "type": "object", + "properties": { + "enterpriseIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The Enterprise ID list. If not specified, Info returned corresponds to the entire cluster. If specified, the information corresponds to the specific enterprise list." + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/APIUsageMetric" + }, + "description": "List of the API usage metrics." + }, + "result": { + "$ref": "#/definitions/ZsrvResponse", + "description": "HTTP code and message." + }, + "userAgentsInResp": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of user agents available in response." + } + }, + "description": "Contains list of the API usage metrics.", + "title": "API Usage Response" + }, + "ActionScope": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/ObjectType", + "description": "Scope of the action (e.g. project in case certificate expired at project level)" + }, + "id": { + "type": "string", + "description": "Unique id of the type (e.g. projectId in case of project type)" + } + } + }, + "AdminState": { + "type": "string", + "enum": [ + "ADMIN_STATE_UNSPECIFIED", + "ADMIN_STATE_CREATED", + "ADMIN_STATE_DELETED", + "ADMIN_STATE_ACTIVE", + "ADMIN_STATE_INACTIVE", + "ADMIN_STATE_REGISTERED", + "ADMIN_STATE_ARCHIVED", + "ADMIN_STATE_DELETION_PENDING" + ], + "default": "ADMIN_STATE_UNSPECIFIED", + "description": "- ADMIN_STATE_CREATED: Entity Created in the controller\n - ADMIN_STATE_DELETED: Entity Deleted in the controller\n - ADMIN_STATE_ACTIVE: Entity Activated in the controller\n - ADMIN_STATE_INACTIVE: Entity Deactivated in the controller\n - ADMIN_STATE_REGISTERED: Specific to Edge-node - Edge-node Registered with the controller\n - ADMIN_STATE_ARCHIVED: Entity Archived in the controller\n - ADMIN_STATE_DELETION_PENDING: Entity was marked as Deleted but not yet deleted in the controller", + "title": "AdminState - On update, please update AdminState_HttpRequest as well" + }, + "AppInstEdgeNodeCluster": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Id of the edge node cluster", + "pattern": "[0-9A-Za-z-]+" + }, + "designatedNodeID": { + "type": "string", + "description": "Id of the designated node", + "pattern": "[0-9A-Za-z-]+" + }, + "name": { + "type": "string", + "description": "edge node cluster name" + }, + "enableAppPinning": { + "type": "boolean", + "description": "enable application pinning to edge node cluster's designated node" + } + } + }, + "AppInstMemorySummary": { + "type": "object", + "properties": { + "AllocatedMB": { + "type": "number", + "format": "double", + "description": "Total memory allocated for the App instance.", + "title": "AllocatedMB - Total memory allocated to the App Instance.\nNormally, AllocatedMB >= UsedMB + AvailableMB" + }, + "UsedMB": { + "type": "number", + "format": "double", + "description": "Total memory used by the App within allocated memory" + }, + "AvailableMB": { + "type": "number", + "format": "double", + "description": "Available / Free memory in the App" + } + }, + "description": "Memory Information for the App Instance.", + "title": "App Instance Memory Summary" + }, + "AppInstStatusSummaryMsg": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the app instance", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the app instance, unique across the enterprise. Once app instance is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "deviceId": { + "type": "string", + "description": "User defined name of the device, unique across the enterprise. Once device is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "appId": { + "type": "string", + "description": "User defined name of the edge app, unique across the enterprise. Once edge app is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "adminState": { + "$ref": "#/definitions/AdminState", + "description": "SPU details" + }, + "clusterID": { + "type": "string", + "description": "System defined universally unique clusterInstance ID, unique across the enterprise.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "runState": { + "$ref": "#/definitions/RunState", + "description": "operation status" + }, + "Memory": { + "$ref": "#/definitions/MemorySummary", + "description": "memory summary" + }, + "Storage": { + "$ref": "#/definitions/StorageSummary", + "description": "storage summary" + }, + "swState": { + "$ref": "#/definitions/SWState", + "description": "sotware state" + }, + "Cpu": { + "$ref": "#/definitions/CpuSummary", + "description": "cpu summary" + }, + "projectId": { + "type": "string", + "description": "User defined name of the project, unique across the enterprise. Once project is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the app instance. Title can be changed at any time", + "maxLength": 256, + "minLength": 3, + "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$" + }, + "appType": { + "$ref": "#/definitions/AppType", + "description": "type of app" + }, + "deploymentType": { + "$ref": "#/definitions/DeploymentType", + "description": "type of deployment for the app, eg: azure, k3s, standalone" + }, + "memorySummary": { + "$ref": "#/definitions/AppInstMemorySummary", + "description": "memory summary" + }, + "swInfo": { + "type": "array", + "items": { + "$ref": "#/definitions/SWInfo" + }, + "description": "Software details" + }, + "appName": { + "type": "string", + "description": "User defined name of the edge app, unique across the enterprise. Once edge app is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "projectName": { + "type": "string", + "description": "User defined name of the project, unique across the enterprise. Once project is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "deviceName": { + "type": "string", + "description": "User defined name of the device, unique across the enterprise. Once device is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "netStatusList": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkStatus" + }, + "description": "network status list" + } + }, + "description": "AppInstStatusSummaryMsg stores the summary of the app instance status", + "title": "App instance status summary" + }, + "AppInstance": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the app instance", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the app instance, unique across the enterprise. Once app instance is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the app instance. Title can be changed at any time", + "maxLength": 256, + "minLength": 3, + "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$" + }, + "description": { + "type": "string", + "description": "Detailed description of the app instance", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "app instance object revision details" + }, + "projectId": { + "type": "string", + "description": "project name which the given app instance belong to" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "clusterID": { + "type": "string", + "description": "System defined universally unique clusterInstance ID, unique across the enterprise.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "appId": { + "type": "string", + "description": "User defined name of the edge app, unique across the enterprise. Once app name is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "deviceId": { + "type": "string", + "description": "User defined name of the device name, unique across the enterprise. Once device name is defined, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "activate": { + "type": "boolean", + "description": "app instance activation flag" + }, + "vminfo": { + "$ref": "#/definitions/vm", + "description": "virtual machine info" + }, + "drives": { + "type": "array", + "items": { + "$ref": "#/definitions/drive" + }, + "description": "drive details" + }, + "interfaces": { + "type": "array", + "items": { + "$ref": "#/definitions/appInterface" + }, + "description": "application interfaces" + }, + "userData": { + "type": "string", + "description": "Deprecated: Application initiazation script in cloud-config format to be used by cloud-init" + }, + "customConfig": { + "$ref": "#/definitions/CustomConfig", + "description": "Application initialization script template in cloud-config format and user specified values" + }, + "collectStatsIPAddr": { + "type": "string", + "description": "holds the static Ip of the app instance" + }, + "bundleversion": { + "type": "string", + "description": "version of bundle app is referring to" + }, + "logs": { + "$ref": "#/definitions/AppInstanceLogs", + "description": "App Instance logs" + }, + "restart": { + "$ref": "#/definitions/ZedCloudOpsCmd", + "description": "Restart counter: ZedCloudOpsCmd" + }, + "refresh": { + "$ref": "#/definitions/ZedCloudOpsCmd", + "description": "Refresh counter: ZedCloudOpsCmd" + }, + "purge": { + "$ref": "#/definitions/ZedCloudOpsCmd", + "description": "Purge counter: ZedCloudOpsCmd" + }, + "remoteConsole": { + "type": "boolean", + "description": "Remote console flag" + }, + "encryptedSecrets": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "user encrypted secrets map" + }, + "cryptoKey": { + "type": "string", + "description": "Crypto Key for decrypting user secret information" + }, + "manifestInfo": { + "$ref": "#/definitions/ManifestInfo", + "description": "app manifest Info" + }, + "appType": { + "$ref": "#/definitions/AppType", + "description": "type of bundle" + }, + "isSecretUpdated": { + "type": "boolean", + "description": "This field tells whether user secrets has updated or not, especially the cusotom config" + }, + "appPolicyId": { + "type": "string", + "description": "app policy id" + }, + "deploymentType": { + "$ref": "#/definitions/DeploymentType", + "description": "type of deployment for the app, eg: azure, k3s, standalone" + }, + "userDefinedVersion": { + "type": "string", + "description": "Instance version tells which edge app does this instance is running" + }, + "startDelayInSeconds": { + "type": "integer", + "format": "int64", + "description": "start delay is the time in seconds EVE should wait after boot before starting the application instance" + }, + "cloudInitVersion": { + "type": "integer", + "format": "int64", + "description": "Cloud-init version that indicates whether it necessary or not for cloud-init tool to restart in a guest" + }, + "allowSnapshots": { + "type": "boolean", + "description": "Flag to determine if a snapshot creation is allowed" + }, + "maxSnapshots": { + "type": "integer", + "format": "int64", + "description": "Maximum number of snapshots allowed to be created" + }, + "availableSnapshots": { + "type": "array", + "items": { + "$ref": "#/definitions/AppInstanceSnapshot" + }, + "description": "The list of available snapshots of the application instance" + }, + "patchEnvelopeId": { + "type": "string", + "description": "patch envelope id" + }, + "patchEnvelopeName": { + "type": "string", + "description": "patch envelope name" + }, + "edgeNodeCluster": { + "$ref": "#/definitions/AppInstEdgeNodeCluster", + "description": "edge node cluster" + }, + "dockerComposeYamlText": { + "type": "string", + "description": "Docker compose base64 encoded plain text", + "title": "internal field", + "readOnly": true + }, + "dockerComposeTarImageName": { + "type": "string", + "description": "Docker compose tar image name", + "title": "internal field", + "readOnly": true + }, + "datastoreIdList": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of datastore ids containing private registry credentials", + "title": "internal field", + "readOnly": true + }, + "PersistentRuntimeSizeBytes": { + "type": "string", + "format": "uint64", + "description": "Persistent runtime size in bytes" + } + }, + "description": "App Instance detail", + "title": "App Instance detail", + "required": [ + "name", + "title", + "projectId", + "appId", + "deviceId", + "activate" + ] + }, + "AppInstanceLogs": { + "type": "object", + "properties": { + "access": { + "type": "boolean", + "description": "Flags to enable / disable sending of logs generated by app instance to zedcloud" + } + }, + "description": "App Instance Logs configuration", + "title": "App Instance Logs configuration", + "required": [ + "access" + ] + }, + "AppInstanceSnapshot": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the app instance snapshot", + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "Snapshot name. Unique across the application instance" + }, + "state": { + "$ref": "#/definitions/SnapshotState", + "description": "Status of the snapshot" + }, + "config": { + "type": "object", + "$ref": "#/definitions/AppInstance", + "description": "The complete configuration of the application instance" + }, + "activate": { + "type": "boolean", + "description": "Indicates whether the snapshot should be activated" + }, + "immediate": { + "type": "boolean", + "description": "Indicates that the snapshot should be taken immediately" + } + }, + "description": "App instance snapshot", + "title": "App instance snapshot", + "required": [ + "name" + ] + }, + "AppType": { + "type": "string", + "enum": [ + "APP_TYPE_UNSPECIFIED", + "APP_TYPE_VM", + "APP_TYPE_VM_RUNTIME", + "APP_TYPE_CONTAINER", + "APP_TYPE_MODULE", + "APP_TYPE_DOCKER_COMPOSE" + ], + "default": "APP_TYPE_UNSPECIFIED", + "description": "type of app bundle." + }, + "CellularStatus": { + "type": "object", + "properties": { + "providers": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkProvider" + }, + "description": "List of network providers" + }, + "modem": { + "type": "object", + "$ref": "#/definitions/ModemDetail", + "description": "Modem detail" + }, + "simCards": { + "type": "array", + "items": { + "$ref": "#/definitions/SIMCard" + }, + "description": "List of SIM Cards" + } + }, + "description": "CellularStatus contains status information for a single cellular network", + "title": "CellularStatus contains status information for a single cellular network" + }, + "ClusterInstStatusListMsg": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/ClusterInstStatusSummaryMsg" + }, + "description": "cluster instance status summary" + }, + "summaryByState": { + "$ref": "#/definitions/Summary", + "description": "cluster instance status by state" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "cursor next" + } + }, + "description": "ClusterInstStatusListMsg is used for listing the cluster instance statuses", + "title": "Cluster instance status list" + }, + "ClusterInstStatusMsg": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the cluster instance", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the cluster instance, unique across the enterprise. Once cluster instance is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the cluster instance. Title can be changed at any time", + "maxLength": 256, + "minLength": 3, + "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "clusterType": { + "$ref": "#/definitions/ClusterType", + "description": "Type of cluster" + }, + "projectId": { + "type": "string", + "description": "project id which the given cluster instance belong to" + }, + "adminState": { + "$ref": "#/definitions/AdminState", + "description": "SPU details" + }, + "runState": { + "$ref": "#/definitions/ClusterRunState", + "description": "operation status" + }, + "clusterPolicyId": { + "type": "string", + "description": "System defined universally unique Id of the cluster policy", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "minEdgeDevices": { + "type": "number", + "format": "int64", + "description": "Minimum number of edge device required for the cluster instance" + }, + "maxEdgeDevices": { + "type": "number", + "format": "int64", + "description": "Maximum number of edge device allowed in the cluster instance" + }, + "minServerNodes": { + "type": "number", + "format": "int64", + "description": "Minimum number of server nodes required for the cluster instance" + }, + "maxServerNodes": { + "type": "number", + "format": "int64", + "description": "Maximum number of server nodes allowed in the cluster instance" + }, + "minAgentNodes": { + "type": "number", + "format": "int64", + "description": "Minimum number of agent nodes required for the cluster instance" + }, + "maxAgentNodes": { + "type": "number", + "format": "int64", + "description": "Maximum number of agent nodes allowed in the cluster instance" + }, + "edgeNodeSummaries": { + "type": "array", + "items": { + "$ref": "#/definitions/DeviceStatusSummaryMsg" + }, + "description": "Device summaries" + }, + "memory": { + "$ref": "#/definitions/MemorySummary", + "description": "memory summary" + }, + "storage": { + "$ref": "#/definitions/StorageSummary", + "description": "storage summary" + }, + "cpu": { + "$ref": "#/definitions/CpuSummary", + "description": "CPU details" + }, + "serverNodeSummaries": { + "type": "array", + "items": { + "$ref": "#/definitions/AppInstStatusSummaryMsg" + }, + "description": "Cluster Server Nodes (appInstances) summaries" + }, + "agentNodeSummaries": { + "type": "array", + "items": { + "$ref": "#/definitions/AppInstStatusSummaryMsg" + }, + "description": "Cluster Agent Nodes (appInstances) summaries" + }, + "nodesJobName": { + "type": "string", + "description": "Name of the job object tracking ClusterNodes deployment", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "orchestratorClusterID": { + "type": "string", + "description": "Orchestrator cluster object ID", + "maxLength": 256 + }, + "orchestratorClusterRunState": { + "$ref": "#/definitions/RunState", + "description": "Orchestrator cluster object's state" + }, + "orchestratorClusterErrMsg": { + "$ref": "#/definitions/OrchestratorObjectError", + "description": "Error message from Orchestrator cluster object" + }, + "orchestratorClusterWarnMsg": { + "$ref": "#/definitions/OrchestratorObjectError", + "description": "Warning message from Orchestrator cluster object" + }, + "rawOrchestratorClusterStatus": { + "type": "string", + "description": "Raw status of Orchestrator cluster object", + "maxLength": 256 + }, + "edgeNodeJobNames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Array of job names which are tracking dynamic device addition/deletion" + }, + "nodeRefreshJobNames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Array of job names which are tracking cluster nodes refresh action" + }, + "nodesJobID": { + "type": "string", + "description": "ID of the job object tracking ClusterNodes deployment", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "tmcStatus": { + "$ref": "#/definitions/TMCClusterStatus" + } + }, + "description": "ClusterInstanceStatusMsg encapsulates the status of an cluster instance", + "title": "Cluster instance status message" + }, + "ClusterInstStatusSummaryMsg": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the cluster instance", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the cluster instance, unique across the enterprise. Once cluster instance is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the cluster instance. Title can be changed at any time", + "maxLength": 256, + "minLength": 3, + "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$" + }, + "projectId": { + "type": "string", + "description": "project name which the given app instance belong to" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "clusterPolicyId": { + "type": "string", + "description": "System defined universally unique Id of the cluster policy", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "adminState": { + "$ref": "#/definitions/AdminState", + "description": "SPU details" + }, + "runState": { + "$ref": "#/definitions/ClusterRunState", + "description": "operation status" + }, + "edgeNodePoolIDs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Array of Device IDs" + }, + "serverNodeIDs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Array of Server App Inst IDs" + }, + "agentNodeIDs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Array of Agent App Inst IDs" + }, + "nodesJobName": { + "type": "string", + "description": "Name of the job object tracking ClusterNodes deployment", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "orchestratorClusterID": { + "type": "string", + "description": "Orchestrator cluster object ID", + "maxLength": 256 + }, + "orchestratorClusterRunState": { + "$ref": "#/definitions/RunState", + "description": "Orchestrator cluster object's state" + }, + "orchestratorClusterErrMsg": { + "$ref": "#/definitions/OrchestratorObjectError", + "description": "Error message from Orchestrator cluster object" + }, + "orchestratorClusterWarnMsg": { + "$ref": "#/definitions/OrchestratorObjectError", + "description": "Warning message from Orchestrator cluster object" + }, + "projectName": { + "type": "string", + "description": "project name which the given cluster instance belong to", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "clusterType": { + "$ref": "#/definitions/ClusterType", + "description": "Type of cluster" + } + }, + "description": "ClusterInstStatusSummaryMsg stores the summary of the cluster instance status", + "title": "Cluster instance status summary" + }, + "ClusterInstance": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the cluster instance", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the cluster instance, unique across the enterprise. Once cluster instance is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the cluster instance. Title can be changed at any time", + "maxLength": 256, + "minLength": 3, + "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$" + }, + "description": { + "type": "string", + "description": "Detailed description of the cluster instance", + "maxLength": 256 + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "clusterType": { + "$ref": "#/definitions/ClusterType", + "description": "Type of cluster" + }, + "projectId": { + "type": "string", + "description": "project id which the given cluster instance belong to" + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "cluster instance object revision details", + "title": "deprecated 8;" + }, + "activate": { + "type": "string", + "description": "cluster instance activation flag" + }, + "clusterPolicyId": { + "type": "string", + "description": "System defined universally unique Id of the cluster policy", + "pattern": "[0-9A-Za-z-]+" + }, + "edgeNodePoolTags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "edgeNodePoolTags are name/value pairs that enables us to identify edgeNodes which are part of a ClusterInstance. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "serverAppInst": { + "$ref": "#/definitions/AppInstance", + "description": "app instance object for server node", + "title": "Cluster config details" + }, + "agentAppInst": { + "$ref": "#/definitions/AppInstance", + "description": "app instance object for agent node" + }, + "minEdgeDevices": { + "type": "number", + "format": "int64", + "description": "Minimum number of edge device required for the cluster instance" + }, + "maxEdgeDevices": { + "type": "number", + "format": "int64", + "description": "Maximum number of edge device allowed in the cluster instance" + }, + "minServerNodes": { + "type": "number", + "format": "int64", + "description": "Minimum number of server nodes required for the cluster instance" + }, + "maxServerNodes": { + "type": "number", + "format": "int64", + "description": "Maximum number of server nodes allowed in the cluster instance" + }, + "minAgentNodes": { + "type": "number", + "format": "int64", + "description": "Minimum number of agent nodes required for the cluster instance" + }, + "maxAgentNodes": { + "type": "number", + "format": "int64", + "description": "Maximum number of agent nodes allowed in the cluster instance" + }, + "callHomeURL": { + "type": "string", + "description": "CallHome URL for the cluster to fetch configuration details" + }, + "clusterOnboardType": { + "$ref": "#/definitions/ClusterOnboardType", + "description": "Cluster Instance orchestrator onboard type" + }, + "orchestrationProvider": { + "$ref": "#/definitions/OrchestrationProvider", + "description": "Orchestrator type" + }, + "orchestratorPluginID": { + "type": "string", + "description": "System defined universally unique Id of the orchestrator plugin", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "orchestratorConfig": { + "$ref": "#/definitions/OrchestratorConfig", + "description": "Orchestrator config" + }, + "netInstConfig": { + "type": "array", + "items": { + "$ref": "#/definitions/NetInstConfig" + }, + "description": "Network instance config to enforce on all devices of this cluster" + }, + "orchestratorClusterURL": { + "type": "string", + "description": "Href for the third-party cluster object.", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "dbEndpoint": { + "type": "string", + "description": "External DataBase endpoint for the server to communicate and sync" + }, + "devIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of Edge Node Ids to deploy the cluster instance" + } + }, + "description": "Cluster Instance detail", + "title": "Cluster Instance detail", + "required": [ + "name", + "title", + "clusterType", + "projectId", + "edgeNodePoolTags", + "serverAppInst", + "agentAppInst", + "minEdgeDevices", + "maxEdgeDevices", + "minServerNodes", + "maxServerNodes", + "minAgentNodes", + "maxAgentNodes", + "callHomeURL", + "clusterOnboardType" + ] + }, + "ClusterInstanceConfigSummary": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the cluster instance", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the cluster instance, unique across the enterprise. Once cluster instance is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the cluster instance. Title can be changed at any time", + "maxLength": 256, + "minLength": 3, + "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$" + }, + "description": { + "type": "string", + "description": "Detailed description of the cluster instance", + "maxLength": 256 + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "clusterType": { + "$ref": "#/definitions/ClusterType", + "description": "Type of cluster" + }, + "projectId": { + "type": "string", + "description": "project id which the given cluster instance belong to" + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "cluster instance object revision details", + "title": "deprecated 8;" + }, + "activate": { + "type": "string", + "description": "cluster instance activation flag" + }, + "clusterPolicyId": { + "type": "string", + "description": "System defined universally unique Id of the cluster policy", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "edgeNodePoolTags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "edgeNodePoolTags are name/value pairs that enables us to identify edgeNodes which are part of a ClusterInstance. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "serverAppID": { + "type": "string", + "description": "app ID of server node", + "title": "Cluster config details" + }, + "agentAppID": { + "type": "string", + "description": "app ID of for agent node" + }, + "minEdgeDevices": { + "type": "number", + "format": "int64", + "description": "Minimum number of edge device required for the cluster instance" + }, + "maxEdgeDevices": { + "type": "number", + "format": "int64", + "description": "Maximum number of edge device allowed in the cluster instance" + }, + "minServerNodes": { + "type": "number", + "format": "int64", + "description": "Minimum number of server nodes required for the cluster instance" + }, + "maxServerNodes": { + "type": "number", + "format": "int64", + "description": "Maximum number of server nodes allowed in the cluster instance" + }, + "minAgentNodes": { + "type": "number", + "format": "int64", + "description": "Minimum number of agent nodes required for the cluster instance" + }, + "maxAgentNodes": { + "type": "number", + "format": "int64", + "description": "Maximum number of agent nodes allowed in the cluster instance" + }, + "callHomeURL": { + "type": "string", + "description": "CallHome URL for the cluster to fetch configuration details" + }, + "clusterOnboardType": { + "$ref": "#/definitions/ClusterOnboardType", + "description": "Cluster Instance orchestrator onboard type" + }, + "orchestrationProvider": { + "$ref": "#/definitions/OrchestrationProvider", + "description": "Orchestrator type" + }, + "orchestratorAuthenticationType": { + "$ref": "#/definitions/OrchestratorAuthenticationType", + "description": "Orchestrator authentication type" + }, + "orchestratorServerAddress": { + "type": "string", + "description": "Orchestrator server's IP address" + }, + "orchestratorPort": { + "type": "string", + "description": "Port on which the orchestrator server is listening" + }, + "dbEndpoint": { + "type": "string", + "description": "External DataBase endpoint for the server to communicate and sync" + } + }, + "description": "Cluster Instance config summary", + "title": "Cluster Instance config summary" + }, + "ClusterInstances": { + "type": "object", + "properties": { + "summaryByState": { + "$ref": "#/definitions/Summary", + "description": "cluster instance by summary" + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/ClusterInstanceConfigSummary" + }, + "description": "cluster instance summary list response" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "cursor next" + } + } + }, + "ClusterNodeStatus": { + "type": "object", + "properties": { + "age": { + "type": "integer", + "format": "int64" + }, + "internalIP": { + "type": "string" + }, + "conditions": { + "type": "string" + }, + "nodeType": { + "$ref": "#/definitions/ClusterNodeType" + } + } + }, + "ClusterNodeType": { + "type": "string", + "enum": [ + "CLUSTER_NODE_TYPE_UNSPECIFIED", + "CLUSTER_NODE_TYPE_MASTER", + "CLUSTER_NODE_TYPE_WORKER", + "CLUSTER_NODE_TYPE_TIE_BREAKER" + ], + "default": "CLUSTER_NODE_TYPE_UNSPECIFIED" + }, + "ClusterOnboardType": { + "type": "string", + "enum": [ + "CLUSTER_ONBOARD_TYPE_UNSPECIFIED", + "CLUSTER_ONBOARD_TYPE_MANUAL", + "CLUSTER_ONBOARD_TYPE_AUTOMATIC" + ], + "default": "CLUSTER_ONBOARD_TYPE_UNSPECIFIED", + "title": "- CLUSTER_ONBOARD_TYPE_UNSPECIFIED: Unspecified cluster onboard type\n - CLUSTER_ONBOARD_TYPE_MANUAL: Manually onboard cluster instance in the orchestrator\n - CLUSTER_ONBOARD_TYPE_AUTOMATIC: Automatically onboard cluster instance in the orchestrator" + }, + "ClusterRunState": { + "type": "string", + "enum": [ + "CLUSTER_RUN_STATE_UNSPECIFIED", + "CLUSTER_RUN_STATE_INIT", + "CLUSTER_RUN_STATE_PROVISIONING_SEED_SERVER", + "CLUSTER_RUN_STATE_PROVISIONED_SEED_SERVER", + "CLUSTER_RUN_STATE_UNHEALTHY", + "CLUSTER_RUN_STATE_PROVISIONING_NODES", + "CLUSTER_RUN_STATE_HEALTHY", + "CLUSTER_RUN_STATE_PARTIALLY_HEALTHY", + "CLUSTER_RUN_STATE_OFFLINE" + ], + "default": "CLUSTER_RUN_STATE_UNSPECIFIED", + "description": "- CLUSTER_RUN_STATE_INIT: Cluster Initializing\n - CLUSTER_RUN_STATE_PROVISIONING_SEED_SERVER: Cluster Provisioning seed server\n - CLUSTER_RUN_STATE_PROVISIONED_SEED_SERVER: Cluster Provisioned seed server\n - CLUSTER_RUN_STATE_UNHEALTHY: Cluster unhealthy\n - CLUSTER_RUN_STATE_PROVISIONING_NODES: Cluster Provisioning node\n - CLUSTER_RUN_STATE_HEALTHY: Cluster healthy\n - CLUSTER_RUN_STATE_PARTIALLY_HEALTHY: Cluster partially healthy\n - CLUSTER_RUN_STATE_OFFLINE: Cluster offline", + "title": "Run-time state of an object, reported by EVE" + }, + "ClusterType": { + "type": "string", + "enum": [ + "CLUSTER_TYPE_UNSPECIFIED", + "CLUSTER_TYPE_K3S", + "CLUSTER_TYPE_TKG_ATTACH" + ], + "default": "CLUSTER_TYPE_UNSPECIFIED", + "title": "- CLUSTER_TYPE_K3S: cluster type is k3s\n - CLUSTER_TYPE_TKG_ATTACH: cluster type is TKG, with subtype ATTACH" + }, + "CpuSummary": { + "type": "object", + "properties": { + "Utilization": { + "type": "number", + "format": "double", + "description": "CPU Utilization" + } + }, + "description": "CPU Summary", + "title": "CPU Summary" + }, + "Cursor": { + "type": "object", + "properties": { + "pageToken": { + "type": "string", + "description": "Page Token" + }, + "orderBy": { + "type": "array", + "items": { + "type": "string" + }, + "description": "OrderBy helps in sorting the list response" + }, + "pageNum": { + "type": "number", + "format": "int64", + "description": "Page Number" + }, + "pageSize": { + "type": "number", + "format": "int64", + "description": "Defines the page size" + }, + "totalPages": { + "type": "number", + "format": "int64", + "description": "Total number of pages to be fetched." + } + }, + "description": "Cursor helps in filtering the various list response like edge-app bundle list, model list, bundle list etc. ", + "title": "Cursor is used as filter in list operation." + }, + "CustomConfig": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of CustomConfig (Required)" + }, + "add": { + "type": "boolean", + "description": "Add the Custom Config to App Instance (Optional. Default: False)" + }, + "override": { + "type": "boolean", + "description": "Override existing custom config from App Bundle Manifest (Optional. Default: False)" + }, + "allowStorageResize": { + "type": "boolean", + "description": "Allow Appinstance storage to be resized after app instance is created. (Optional. Default: False)" + }, + "fieldDelimiter": { + "type": "string", + "description": "Field delimiter used in specifying variables in template. (Required)" + }, + "template": { + "type": "string", + "description": "base64 encrypted template string. (Optional)" + }, + "variableGroups": { + "type": "array", + "items": { + "$ref": "#/definitions/CustomConfigVariableGroup" + }, + "description": "List of Variable groups. (Required)" + } + } + }, + "CustomConfigVariableGroup": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the Variable Group(Required)" + }, + "variables": { + "type": "array", + "items": { + "$ref": "#/definitions/VariableGroupVariable" + }, + "description": "List of variables(Required)" + }, + "required": { + "type": "boolean", + "description": "Indicates if the variable group is required to be specified for the App Instance. (Optional. Default:False)" + }, + "condition": { + "$ref": "#/definitions/VariableGroupCondition", + "description": "Condition to apply the variable group. (Optional. Default: None)" + } + } + }, + "DNSInfo": { + "type": "object", + "properties": { + "servers": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Array of dns server" + }, + "domain": { + "type": "string", + "description": "domain name" + }, + "search": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Array of search strings" + } + }, + "description": "DNSInfo is used to store Domain Name Server configuration. ", + "title": "DNSInfo consists of DNS Configurations.", + "required": [ + "servers", + "domain", + "search" + ] + }, + "DataSourceType": { + "type": "string", + "enum": [ + "DATA_SOURCE_TYPE_UNUSED", + "DATA_SOURCE_TYPE_APP_LOGS", + "DATA_SOURCE_TYPE_EVENTS", + "DATA_SOURCE_TYPE_METRICS" + ], + "default": "DATA_SOURCE_TYPE_UNUSED", + "title": "DataSourceType - On update, please update DataSourceType_HttpRequest as well" + }, + "DataStreamConfig": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "User defined name of the data stream config, unique across the enterprise. Once object is created, name can\u2019t be changed", + "title": "Common fields", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "id": { + "type": "string", + "description": "System defined universally unique Id of the data stream config", + "readOnly": true, + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the data stream config. Title can be changed at any time", + "maxLength": 256, + "minLength": 3, + "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$" + }, + "description": { + "type": "string", + "description": "Detailed description of the data stream config.", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "System defined info" + }, + "pluginId": { + "type": "string", + "description": "Unique Id of the third party plugin", + "title": "Fields Specific to Data Stream", + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + }, + "enabled": { + "type": "boolean", + "description": "Is the data stream config enabled?" + }, + "dataSourceType": { + "$ref": "#/definitions/DataSourceType", + "description": "Type of the source" + } + }, + "description": "Data stream configuration for different types of data (events, logs, metrics etc).", + "title": "Data stream configuration details", + "required": [ + "name", + "title", + "pluginId", + "enabled", + "dataSourceType" + ] + }, + "DataStreamConfigList": { + "type": "object", + "properties": { + "dataStreamListSummary": { + "$ref": "#/definitions/Summary", + "description": "Summary information about list records." + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/DataStreamConfig" + }, + "description": "Details of list records." + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "Returned record page." + } + }, + "description": "Returned list of data stream configs matched by filter criteria", + "title": "Data stream config list records" + }, + "DataStreamConfigReqList_HttpRequestDataSourceType_HttpRequest": { + "type": "string", + "enum": [ + "UNUSED", + "APP_LOGS", + "EVENTS", + "METRICS" + ], + "default": "UNUSED" + }, + "DeploymentType": { + "type": "string", + "enum": [ + "DEPLOYMENT_TYPE_UNSPECIFIED", + "DEPLOYMENT_TYPE_STAND_ALONE", + "DEPLOYMENT_TYPE_AZURE", + "DEPLOYMENT_TYPE_K3S", + "DEPLOYMENT_TYPE_AWS", + "DEPLOYMENT_TYPE_K3S_AZURE", + "DEPLOYMENT_TYPE_K3S_AWS", + "DEPLOYMENT_TYPE_VMWARE_VCE", + "DEPLOYMENT_TYPE_VMWARE_TKG_ATTACH", + "DEPLOYMENT_TYPE_DOCKER_RUNTIME" + ], + "default": "DEPLOYMENT_TYPE_UNSPECIFIED" + }, + "DeviceEntity": { + "type": "object", + "properties": { + "entity": { + "$ref": "#/definitions/Entity" + }, + "entityId": { + "type": "string" + }, + "entityName": { + "type": "string" + } + } + }, + "DeviceError": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Description of the error" + }, + "severity": { + "type": "string", + "$ref": "#/definitions/Severity", + "description": "Severity of the error" + }, + "timestamp": { + "type": "object", + "format": "date-time", + "description": "Timestamp at which error had occurred" + }, + "entities": { + "type": "array", + "items": { + "$ref": "#/definitions/DeviceEntity" + }, + "description": "objects referenced by the description or retry_condition" + }, + "retryCondition": { + "type": "string", + "description": "condition for retry" + } + }, + "description": "DeviceError store the error occurred at the device side", + "title": "DeviceError is used to store the error details of the hardware.", + "required": [ + "description", + "severity", + "timestamp", + "entities" + ] + }, + "DeviceHWSecurityModuleStatus": { + "type": "string", + "enum": [ + "DEVICE_HW_SECURITY_MODULE_STATUS_UNSPECIFIED", + "DEVICE_HW_SECURITY_MODULE_STATUS_NOT_FOUND", + "DEVICE_HW_SECURITY_MODULE_STATUS_DISABLED", + "DEVICE_HW_SECURITY_MODULE_STATUS_ENABLED" + ], + "default": "DEVICE_HW_SECURITY_MODULE_STATUS_UNSPECIFIED" + }, + "DeviceInfo": { + "type": "object", + "properties": { + "machineArch": { + "type": "string" + }, + "cpuArch": { + "type": "string" + }, + "platform": { + "type": "string" + }, + "nCpu": { + "type": "integer", + "format": "int64" + }, + "memMB": { + "type": "string", + "format": "uint64" + }, + "storageMB": { + "type": "string", + "format": "uint64" + } + } + }, + "DeviceMemorySummary": { + "type": "object", + "properties": { + "deviceMemoryMB": { + "type": "number", + "format": "double", + "description": "Total memory on the device.", + "title": "deviceMemoryMB >= allocatedForAppsMB + allocatedForEveMB" + }, + "allocatedAppsMB": { + "type": "number", + "format": "double", + "description": "Total memory allocated to app instances." + }, + "allocatedEveMB": { + "type": "number", + "format": "double", + "description": "Total memory allocated to EVE on the device." + }, + "usedEveMB": { + "type": "number", + "format": "double", + "description": "Memory currently used by EVE on the device.", + "title": "usedByEveMB <= allocatedForEveMB" + }, + "availableForNewApps": { + "type": "number", + "format": "double", + "description": "Memory Available for new app-instances on the device.", + "title": "availableForNewApps = deviceMemoryMB - ( allocatedForAppsMB + allocatedForEveMB )" + } + }, + "description": "DeviceMemorySummary encapsulates the memory status of the device.", + "title": "Device Memory Information message" + }, + "DeviceSWInfo": { + "type": "object", + "properties": { + "activated": { + "type": "boolean" + }, + "partitionLabel": { + "type": "string" + }, + "partitionDevice": { + "type": "string" + }, + "partitionState": { + "type": "string" + }, + "status": { + "$ref": "#/definitions/SWState" + }, + "shortVersion": { + "type": "string" + }, + "longVersion": { + "type": "string" + }, + "swError": { + "$ref": "#/definitions/DeviceError" + }, + "downloadProgress": { + "type": "integer", + "format": "int64" + }, + "swStatus": { + "$ref": "#/definitions/DeviceSWStatus" + }, + "swSubStatus": { + "$ref": "#/definitions/DeviceSWSubStatus" + }, + "swSubStatusStr": { + "type": "string" + }, + "subStatusProgress": { + "type": "integer", + "format": "int64" + }, + "isLTS": { + "type": "boolean", + "description": "flag to indicate device running LTS eve version or not" + } + } + }, + "DeviceSWStatus": { + "type": "string", + "enum": [ + "DEVICE_SW_STATUS_UNSPECIFIED", + "DEVICE_SW_STATUS_DOWNLOADING", + "DEVICE_SW_STATUS_DOWNLOADDONE", + "DEVICE_SW_STATUS_UPDATING", + "DEVICE_SW_STATUS_UPDATED", + "DEVICE_SW_STATUS_FALLBACK", + "DEVICE_SW_STATUS_FAILED" + ], + "default": "DEVICE_SW_STATUS_UNSPECIFIED" + }, + "DeviceSWSubStatus": { + "type": "string", + "enum": [ + "DEVICE_SW_SUB_STATUS_UNSPECIFIED", + "DEVICE_SW_SUB_STATUS_DOWNLOAD_IN_PROGRESS", + "DEVICE_SW_SUB_STATUS_VERIFY_IN_PROGRESS", + "DEVICE_SW_SUB_STATUS_UPDATE_INITIALIZING", + "DEVICE_SW_SUB_STATUS_UPDATE_REBOOTING", + "DEVICE_SW_SUB_STATUS_UPDATE_TESTING", + "DEVICE_SW_SUB_STATUS_UPDATE_NEED_TEST_CONFIRM", + "DEVICE_SW_SUB_STATUS_UPDATE_DEFERRED" + ], + "default": "DEVICE_SW_SUB_STATUS_UNSPECIFIED" + }, + "DeviceStatusSummaryMsg": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "id": { + "type": "string" + }, + "adminState": { + "$ref": "#/definitions/AdminState" + }, + "runState": { + "$ref": "#/definitions/RunState" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "title": "deprecated = 5;", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "netStatusList": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkStatus" + } + }, + "swInfo": { + "type": "array", + "items": { + "$ref": "#/definitions/DeviceSWInfo" + } + }, + "minfo": { + "$ref": "#/definitions/ZManufacturerInfo" + }, + "dinfo": { + "$ref": "#/definitions/DeviceInfo" + }, + "Memory": { + "$ref": "#/definitions/MemorySummary", + "description": "Memory - OBSOLETE. Use memorySummary instead." + }, + "Storage": { + "$ref": "#/definitions/StorageSummary" + }, + "Cpu": { + "$ref": "#/definitions/CpuSummary" + }, + "devError": { + "type": "array", + "items": { + "$ref": "#/definitions/DeviceError" + } + }, + "projectId": { + "type": "string" + }, + "title": { + "type": "string" + }, + "clusterID": { + "type": "string", + "description": "System defined universally unique clusterInstance ID, unique across the enterprise.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "memorySummary": { + "$ref": "#/definitions/DeviceMemorySummary", + "description": "Device memory Info" + }, + "debugKnob": { + "type": "boolean", + "title": "debug knob expiry time" + }, + "debugKnobExpiryTime": { + "type": "string", + "format": "date-time" + }, + "projectName": { + "type": "string", + "description": "Project name to which device is associated with" + }, + "appInstCount": { + "type": "integer", + "format": "int64", + "description": "App instance count that is actively running on the device" + }, + "location": { + "type": "string", + "description": "Device location" + }, + "edgeviewActive": { + "type": "boolean", + "description": "Device edgeview session active" + }, + "projectType": { + "$ref": "#/definitions/TagType", + "description": "Tag group type" + }, + "clusterNodeStatus": { + "$ref": "#/definitions/ClusterNodeStatus", + "description": "Cluster node status" + }, + "enrolledCertsStatus": { + "$ref": "#/definitions/EnrolledCertStatus", + "description": "Enrolled certificate status from the device" + } + } + }, + "DhcpServerConfig": { + "type": "object", + "properties": { + "subnet": { + "type": "string", + "description": "Subnet address" + }, + "mask": { + "type": "string", + "description": "Subnet Mask" + }, + "gateway": { + "type": "string", + "description": "IP Address of Network Gateway" + }, + "domain": { + "type": "string", + "description": "Network domain" + }, + "ntp": { + "type": "string", + "description": "IP Address of NTP Server", + "title": "ntp will be deprecated" + }, + "dns": { + "type": "array", + "items": { + "type": "string" + }, + "description": "IP Addresses of DNS servers", + "title": "possible DNS ip address" + }, + "dhcpRange": { + "$ref": "#/definitions/dhcpIpRange", + "description": "Range of IP addresses to be used for DHCP" + }, + "ntpServers": { + "type": "array", + "items": { + "$ref": "#/definitions/NtpServer" + }, + "description": "NTP Servers" + } + } + }, + "EIDRegister": { + "type": "object", + "properties": { + "AppCert": { + "type": "string", + "format": "byte", + "description": "app certificate" + }, + "AppPublicKey": { + "type": "string", + "format": "byte", + "description": "App public key" + }, + "AppPrivateKey": { + "type": "string", + "format": "byte", + "description": "App private key" + }, + "UUID": { + "type": "string", + "description": "UUID" + }, + "DisplayName": { + "type": "string", + "description": "Display name" + }, + "LispInstance": { + "type": "number", + "format": "int64", + "description": "Lisp Instance" + }, + "EID": { + "type": "string", + "description": "EID" + }, + "EIDHashLen": { + "type": "number", + "format": "int64", + "description": "EID hash length" + }, + "LispSignature": { + "type": "string", + "description": "Lisp Signature" + }, + "LispMapServers": { + "type": "array", + "items": { + "$ref": "#/definitions/LispServer" + }, + "description": "Lisp Map Server", + "title": "time CreateTime time.Time" + } + }, + "description": "EID Register", + "title": "EID Register detail", + "required": [ + "AppCert", + "AppPublicKey", + "AppPrivateKey", + "UUID", + "DisplayName", + "LispInstance", + "EID", + "EIDHashLen", + "LispSignature", + "LispMapServers" + ] + }, + "EdgedeviceList": { + "type": "object", + "properties": { + "modulePolicyId": { + "type": "string" + }, + "edgeDevices": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "description": "edge device list by using module policy id." + }, + "EnrolledCertStatus": { + "type": "string", + "enum": [ + "ENROLLED_CERT_STATUS_UNSPECIFIED", + "ENROLLED_CERT_STATUS_AVAILABLE", + "ENROLLED_CERT_STATUS_PENDING", + "ENROLLED_CERT_STATUS_RENEWAL_PENDING", + "ENROLLED_CERT_STATUS_EXPIRED", + "ENROLLED_CERT_STATUS_REVOKED", + "ENROLLED_CERT_STATUS_ENROLLMENT_FAILED", + "ENROLLED_CERT_STATUS_RENEWAL_FAILED", + "ENROLLED_CERT_STATUS_INVALID_CONFIG" + ], + "default": "ENROLLED_CERT_STATUS_UNSPECIFIED", + "description": "Certificate lifecycle and availability status as reported by the device.\n\n - ENROLLED_CERT_STATUS_AVAILABLE: Certificate is present, valid, and usable for authentication.\n - ENROLLED_CERT_STATUS_PENDING: Certificate enrollment is in progress and not yet complete.\n - ENROLLED_CERT_STATUS_RENEWAL_PENDING: Certificate is present and still valid, but a renewal request\nis in progress and not yet completed.\n - ENROLLED_CERT_STATUS_EXPIRED: Certificate has expired (the current time is past notAfter).\nRenewal may have failed; see err for related errors.\n - ENROLLED_CERT_STATUS_REVOKED: Certificate has been revoked or is otherwise considered invalid.\n - ENROLLED_CERT_STATUS_ENROLLMENT_FAILED: Certificate enrollment failed and no valid certificate is available.\n - ENROLLED_CERT_STATUS_RENEWAL_FAILED: A certificate is currently present but the most recent renewal attempt failed.\n - ENROLLED_CERT_STATUS_INVALID_CONFIG: Certificate configuration is invalid or malformed, preventing enrollment or renewal." + }, + "EnterpriseInfo": { + "type": "object", + "properties": { + "enterpriseId": { + "type": "string", + "description": "Enterprise ID." + }, + "count": { + "type": "number", + "format": "uint64", + "description": "Count of the HTTP status codes." + } + } + }, + "Entity": { + "type": "string", + "enum": [ + "ENTITY_UNSPECIFIED", + "ENTITY_BASE_OS", + "ENTITY_SYSTEM_ADAPTER", + "ENTITY_VAULT", + "ENTITY_ATTESTATION", + "ENTITY_APP_INSTANCE", + "ENTITY_PORT", + "ENTITY_NETWORK", + "ENTITY_NETWORK_INSTANCE", + "ENTITY_CONTENT_TREE", + "ENTITY_CONTENT_BLOB", + "ENTITY_VOLUME" + ], + "default": "ENTITY_UNSPECIFIED", + "description": "- ENTITY_UNSPECIFIED: Invalid Device Entity\n - ENTITY_BASE_OS: Base OS entity\n - ENTITY_SYSTEM_ADAPTER: System Adapter Entity\n - ENTITY_VAULT: Vault Entity\n - ENTITY_ATTESTATION: Attestation Entity\n - ENTITY_APP_INSTANCE: App Instance Entity\n - ENTITY_PORT: Port Entity\n - ENTITY_NETWORK: Network Entity\n - ENTITY_NETWORK_INSTANCE: Network Instance Entity\n - ENTITY_CONTENT_TREE: ContentTree Entity\n - ENTITY_CONTENT_BLOB: Blob Entity\n - ENTITY_VOLUME: VOLUME Entity", + "title": "Edge node components" + }, + "EventQueryResponse": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/EventQueryResponseItem" + }, + "description": "Event Query response list" + }, + "next": { + "type": "object", + "$ref": "#/definitions/Cursor", + "description": "Cursor filter" + }, + "summary": { + "$ref": "#/definitions/Summary", + "description": "Summary of filtered events." + } + }, + "description": "Event query response request payload", + "title": "Event query Response payload detail", + "required": [ + "list", + "next" + ] + }, + "EventQueryResponseItem": { + "type": "object", + "properties": { + "user": { + "type": "string", + "description": "User name" + }, + "project": { + "type": "string", + "description": "project name" + }, + "device": { + "type": "string", + "description": "device name" + }, + "instance": { + "type": "string", + "description": "instance name" + }, + "severity": { + "type": "string", + "description": "severity: FIXME: should be ENUM" + }, + "description": { + "type": "string", + "description": "Event description" + }, + "timestamp": { + "type": "object", + "format": "date-time", + "description": "event timestamp" + }, + "source": { + "type": "object", + "$ref": "#/definitions/EventSource", + "description": "source" + }, + "resource": { + "type": "string", + "description": "Event resources" + }, + "eventType": { + "type": "string", + "description": "Event type" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Event tags" + }, + "resourceName": { + "type": "string", + "description": "Event resources" + }, + "jsonData": { + "type": "object", + "description": "Event resources" + }, + "clusterInstance": { + "type": "string", + "description": "clusterInstance name" + } + }, + "description": "Event query response item payload", + "title": "Event query response item payload detail" + }, + "EventSource": { + "type": "string", + "enum": [ + "EVENT_SOURCE_UNSPECIFIED", + "EVENT_SOURCE_SYSTEM", + "EVENT_SOURCE_USER" + ], + "default": "EVENT_SOURCE_UNSPECIFIED", + "description": "- EVENT_SOURCE_UNSPECIFIED: Default\n - EVENT_SOURCE_SYSTEM: Event is generated as a result of status change reported by edge node / application\n - EVENT_SOURCE_USER: Event is generated as a result of an user's configuration action", + "title": "Source of events" + }, + "GPSLocation": { + "type": "object", + "properties": { + "latitude": { + "type": "number", + "format": "double", + "description": "Latitude" + }, + "longitude": { + "type": "number", + "format": "double", + "description": "Longitude" + }, + "altitude": { + "type": "number", + "format": "double", + "description": "Altitude from mean sea level" + }, + "timestamp": { + "type": "object", + "format": "date-time", + "description": "UTC timestamp" + }, + "horizontalReliability": { + "type": "number", + "format": "int64", + "description": "Horizontal reliability" + }, + "verticalReliability": { + "type": "number", + "format": "int64", + "description": "Vertical reliability" + }, + "horizontalUncertainty": { + "type": "number", + "format": "double", + "description": "Horizontal uncertainty" + }, + "verticalUncertainty": { + "type": "number", + "format": "double", + "description": "Vertical uncertainty" + }, + "logicalLabel": { + "type": "string", + "description": "Logical label of the adapter used to get GPS coordinates" + } + } + }, + "GeoLocation": { + "type": "object", + "properties": { + "underlayIP": { + "type": "string", + "description": "Single IP address, either in IPv4 or in IPv6 format" + }, + "hostname": { + "type": "string", + "description": "Host name" + }, + "city": { + "type": "string", + "description": "City" + }, + "region": { + "type": "string", + "description": "Region" + }, + "country": { + "type": "string", + "description": "Country code consisting of 2 capital letters as per ISO 3166-1 alpha2 standard" + }, + "loc": { + "type": "string", + "description": "Ordered pair of (latitude, longitude) separated by comma (,). Latitude is the horizontal component used for geographic positioning; it is the angle between 0\u00b0 (the equator) and \u00b190\u00b0 (north or south) at the poles measured in decimal degrees. It is the first value in an ordered pair. A negative number denotes a location south of the equator; a positive number is north. Longitude is the vertical component used for geographic positioning; it is the angle between 0\u00b0 (the Prime Meridian) and \u00b1180\u00b0 (westward or eastward) measured in decimal degrees. It is the second number in an ordered pair. A negative number indicates a location west of Greenwich, England; a positive number east." + }, + "org": { + "type": "string", + "description": "The name of the recipient, firm, or company at this geographical location." + }, + "postal": { + "type": "string", + "description": "Postal code (ZIP code for USA) of the geographical location" + }, + "latlong": { + "type": "string", + "description": "Deprecated field: comma, separated lat, long" + }, + "freeloc": { + "type": "string", + "description": "Free formatted location string" + } + }, + "description": "Geographic location of an edge node determined by a variety of data collection mechanisms (e.g. network routing addresses or internal GPS devices).", + "title": "Geographic location of an edge node" + }, + "HttpConfig": { + "type": "object", + "properties": { + "host": { + "type": "string", + "description": "The Host where Http server is running." + }, + "port": { + "type": "string", + "description": "Port to which Http server is listening to." + }, + "extension": { + "type": "string", + "description": "Url extension" + }, + "encryptedSecrets": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "encrypted secrets" + }, + "cryptoKey": { + "type": "string", + "description": "key to decrypt serets" + }, + "enableTLS": { + "type": "boolean", + "description": "TLS enable flag" + }, + "skipVerify": { + "type": "boolean", + "description": "specify skip verify flag" + }, + "httpSessionToken": { + "type": "string", + "description": "The http session token" + }, + "certFile": { + "type": "string", + "description": "The http client cert file path" + }, + "keyFile": { + "type": "string", + "description": "The http client private key file path" + }, + "rootCasFile": { + "type": "string", + "description": "The http client server cert file path" + } + }, + "description": "The payload to configure the http third party plugin.", + "title": "Http configuration required for the http plugin integration", + "required": [ + "port", + "host", + "extension" + ] + }, + "InstanceTransitionAction": { + "type": "string", + "enum": [ + "INSTANCE_TA_UNSPECIFIED", + "INSTANCE_TA_NONE", + "INSTANCE_TA_UPDATEREQUIRED", + "INSTANCE_TA_UPDATEWITHRESTART", + "INSTANCE_TA_UPDATEWITHPURGE" + ], + "default": "INSTANCE_TA_UNSPECIFIED", + "description": "- INSTANCE_TA_UNSPECIFIED: Default. Invalid option\n - INSTANCE_TA_NONE: Either Edge app bundle has not changed or Edge app bundle has\nchanged but the changes do not impact Edge app instances\n - INSTANCE_TA_UPDATEREQUIRED: Edge app bundle has changed. Changes impact Edge app Instances\nEdge App instances need to be restarted with temporary loss of access\n - INSTANCE_TA_UPDATEWITHRESTART: Transition Action: Update with Restart\n - INSTANCE_TA_UPDATEWITHPURGE: Edge app bundle has changed. Changes impact Edge app Instances\nEdge App instances need to be deleted and created again with\ntemporary loss of access and permanent loss of data", + "title": "Instance Transition action" + }, + "IoType": { + "type": "string", + "enum": [ + "IO_TYPE_UNSPECIFIED", + "IO_TYPE_ETH", + "IO_TYPE_USB", + "IO_TYPE_COM", + "IO_TYPE_AUDIO", + "IO_TYPE_WLAN", + "IO_TYPE_WWAN", + "IO_TYPE_HDMI", + "IO_TYPE_LTE", + "IO_TYPE_STORAGE_NVME_DEVICE", + "IO_TYPE_STORAGE_SATA_DEVICE", + "IO_TYPE_ETH_PF", + "IO_TYPE_ETH_VF", + "IO_TYPE_USB_CONTROLLER", + "IO_TYPE_USB_DEVICE", + "IO_TYPE_CAN", + "IO_TYPE_VCAN", + "IO_TYPE_LCAN", + "IO_TYPE_VLAN", + "IO_TYPE_OTHER" + ], + "default": "IO_TYPE_UNSPECIFIED", + "description": "- IO_TYPE_UNSPECIFIED: No operation/ Invalid peration\n - IO_TYPE_ETH: Ethernet\n - IO_TYPE_USB: USB Type - General\n - IO_TYPE_COM: Communication Port\n - IO_TYPE_AUDIO: Audio Port\n - IO_TYPE_WLAN: wireless LAN\n - IO_TYPE_WWAN: Wireless wide area network\n - IO_TYPE_HDMI: High-Definition Multimedia Interface\n - IO_TYPE_LTE: LTE Interfaces\n - IO_TYPE_STORAGE_NVME_DEVICE: Storage NVME device\n - IO_TYPE_STORAGE_SATA_DEVICE: Storage SATA device\n - IO_TYPE_ETH_PF: Physical Interface (PF) of the Virtual Functions\n - IO_TYPE_ETH_VF: Virtual Function (VF)\n - IO_TYPE_USB_CONTROLLER: USB Type - Controller\n - IO_TYPE_USB_DEVICE: USB Type - Device\n - IO_TYPE_CAN: CAN - Device\n - IO_TYPE_VCAN: VCAN - Virtual CAN device\n - IO_TYPE_LCAN: LCAN - Logical CAN device\n - IO_TYPE_VLAN: VLAN - Virtual LAN device\n - IO_TYPE_OTHER: Other Io Types", + "title": "Input/Output Type" + }, + "LispConfig": { + "type": "object", + "properties": { + "lispiid": { + "type": "number", + "format": "int64", + "description": "lisp id" + }, + "allocate": { + "type": "boolean", + "description": "Allocate flag" + }, + "exportprivate": { + "type": "boolean", + "description": "Export Private flag" + }, + "allocationprefix": { + "type": "string", + "format": "byte", + "description": "Allocation Prefix" + }, + "allocationprefixlen": { + "type": "number", + "format": "int64", + "description": "Allocation Prefix Length" + }, + "sp": { + "type": "array", + "items": { + "$ref": "#/definitions/ServicePoint" + }, + "description": "Service Point List" + } + }, + "description": "List Configurations.", + "title": "Lisp Configurations" + }, + "LispServer": { + "type": "object", + "properties": { + "nameOrIp": { + "type": "string", + "description": "name/IP" + }, + "credential": { + "type": "string", + "description": "lisp credential" + } + }, + "description": "LispServer request payload", + "title": "LispServer payload detail", + "required": [ + "nameOrIp", + "credential" + ] + }, + "ManifestInfo": { + "type": "object", + "properties": { + "bundleVersion": { + "type": "string", + "description": "Current version of edge application being used" + }, + "nextBundleVersion": { + "type": "string", + "description": "Next version of edge application available" + }, + "transitionAction": { + "type": "string", + "$ref": "#/definitions/InstanceTransitionAction", + "description": "Recommended transition action" + }, + "params": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Common and Custom parameters for deciding on transition actions" + }, + "details": { + "$ref": "#/definitions/TransDetails", + "description": "Details for recommended transition action" + }, + "enablevnc": { + "type": "boolean", + "description": "Enable vnc for the app" + } + }, + "description": "Details about transition parameters and indication for cause of the transition and recommendation for the transition action", + "title": "Transition action information" + }, + "MemorySummary": { + "type": "object", + "properties": { + "TotalMB": { + "type": "number", + "format": "double", + "description": "Total memory for the device in MBs" + }, + "UsedMB": { + "type": "number", + "format": "double", + "description": "Total memory used by the device in MBs within allocated memory" + }, + "AllocatedMB": { + "type": "number", + "format": "double", + "description": "Total allocated memory in MBs" + } + }, + "description": "Memory Summary", + "title": "Memory Summary" + }, + "ModemDetail": { + "type": "object", + "properties": { + "manufacturer": { + "type": "string", + "description": "Modem manufacturer" + }, + "model": { + "type": "string", + "description": "Modem model" + }, + "firmwareVersion": { + "type": "string", + "description": "Modem firmware version" + }, + "imei": { + "type": "string", + "description": "Modem IMEI" + }, + "operatingState": { + "type": "string", + "$ref": "#/definitions/ZCellularOperatingState", + "description": "Modem operating state" + }, + "controlProtocol": { + "type": "string", + "$ref": "#/definitions/ZCellularControlProtocol", + "description": "Modem control protocol" + } + }, + "description": "ModemDetail describes a cellular Modem", + "title": "ModemDetail describes a cellular Modem" + }, + "NetInstConfig": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the network instance", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the network instance, unique across the enterprise. Once object is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the network instance. Title can be changed at any time", + "maxLength": 256, + "minLength": 3, + "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$" + }, + "description": { + "type": "string", + "description": "Detailed description of the network instance", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined info for the object" + }, + "projectId": { + "type": "string", + "description": "id of the project in which network instance is created" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "clusterID": { + "type": "string", + "description": "id of the Cluster in which the network instance is configured", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "deviceId": { + "type": "string", + "description": "id of the device on which network instance is created", + "title": "device on which this network is running" + }, + "port": { + "type": "string", + "description": "name of port mapping in the model", + "title": "name of port mapping in the model" + }, + "portTags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "kind": { + "$ref": "#/definitions/NetworkInstanceKind", + "description": "Kind of Network Instance ( Local, Switch etc )" + }, + "dhcp": { + "type": "boolean", + "description": "Deprecated", + "title": "dhcp - DEPRECATED" + }, + "type": { + "$ref": "#/definitions/NetworkInstanceDhcpType", + "description": "Type of DHCP for this Network Instance" + }, + "ip": { + "$ref": "#/definitions/DhcpServerConfig", + "description": "Dhcp Server Configuration" + }, + "dnsList": { + "type": "array", + "items": { + "$ref": "#/definitions/StaticDNSList" + }, + "description": "List of Static DNS entries" + }, + "oconfig": { + "type": "string", + "title": "Deprecated" + }, + "lisp": { + "$ref": "#/definitions/LispConfig", + "description": "Lisp Config : read only for now. Deprecated." + }, + "opaque": { + "$ref": "#/definitions/NetInstOpaqueConfig", + "description": "Service specific Config" + }, + "deviceDefault": { + "type": "boolean", + "description": "flag to indicate if this is the default network instance for the device", + "title": "flag to indicate if this is default network" + }, + "networkPolicyId": { + "type": "string", + "description": "id of the network policy to be attached to this network instance" + }, + "propagateConnectedRoutes": { + "type": "boolean", + "description": "Automatically propagate connected routes" + }, + "staticRoutes": { + "type": "array", + "items": { + "$ref": "#/definitions/StaticIPRoute" + }, + "description": "List of Static IP routes" + }, + "mtu": { + "type": "integer", + "format": "int64", + "description": "Maximum transmission unit (MTU) to set for the network instance and all application interfaces connected to it" + }, + "edgeNodeCluster": { + "$ref": "#/definitions/NetInstEdgeNodeCluster", + "description": "Edge Node Cluster" + }, + "forwardLldp": { + "type": "boolean", + "description": "Enables forwarding of LLDP (Link Layer Discovery Protocol) frames across this\nnetwork instance.\nLLDP is used by devices to advertise identity and capabilities to directly\nconnected neighbors, and is often required for topology discovery and network\nmanagement tools.\nWhen enabled, LLDP frames (EtherType 0x88cc) are not dropped or suppressed\nby the forwarding plane." + } + }, + "description": "Network instance provides Edge applications a variety of connectivity choices for all types of networks. This enables logical secure connectivity between Edge applications within a single Edge node and within a logical group of Edge nodes. This provides detailed configuration of a Network instance.", + "title": "Network instance detailed configuration", + "required": [ + "name", + "title", + "deviceId", + "port", + "kind" + ] + }, + "NetInstEdgeNodeCluster": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Id of the Edge Node Cluster", + "pattern": "[0-9A-Za-z-]+" + }, + "designatedNodeID": { + "type": "string", + "description": "Id of the designated Edge Node", + "pattern": "[0-9A-Za-z-]+" + } + } + }, + "NetInstOpaqueConfig": { + "type": "object", + "properties": { + "type": { + "type": "string", + "$ref": "#/definitions/OpaqueConfigType", + "description": "type of Opaque config" + }, + "oconfig": { + "type": "string", + "description": "base64 encoded string of opaque config" + }, + "lisp": { + "type": "string", + "$ref": "#/definitions/LispConfig", + "description": "Deprecated - Lisp config", + "title": "lisp - Deprecated" + } + }, + "description": "Network Instance Opaque config. This is service specific configuration." + }, + "NetProxyServer": { + "type": "object", + "properties": { + "proto": { + "type": "object", + "$ref": "#/definitions/NetworkProxyProto", + "description": "Net Proxy proto" + }, + "server": { + "type": "string", + "description": "Net Proxy Server" + }, + "port": { + "type": "number", + "format": "int64", + "description": "Net Proxy Port" + } + }, + "description": "Net Proxy Server", + "title": "Net Proxy Server" + }, + "NetProxyStatus": { + "type": "object", + "properties": { + "networkProxy": { + "type": "boolean", + "description": "Use pacfile (Auto discover or manual upload)", + "title": "Enable, the proxy configuration coming from network" + }, + "proxies": { + "type": "array", + "items": { + "$ref": "#/definitions/NetProxyServer" + }, + "description": "protocol level proxies", + "title": "protocol level proxies" + }, + "exceptions": { + "type": "string", + "description": "exceptions" + }, + "pacfile": { + "type": "string", + "description": "proxy configuration in a pacfile", + "title": "proxy configuration in a pacfile" + }, + "networkProxyURL": { + "type": "string", + "description": "Network Proxy URL", + "title": "Direct URL for wpad.dat download" + }, + "wpadProxyURL": { + "type": "string", + "description": "WPAD Proxy URL" + } + }, + "description": "NetProxyStatus is used to store the proxy configurations", + "title": "NetProxyStatus is used to store the proxy configurations" + }, + "NetworkInstanceDhcpType": { + "type": "string", + "enum": [ + "NETWORK_INSTANCE_DHCP_TYPE_UNSPECIFIED", + "NETWORK_INSTANCE_DHCP_TYPE_V4", + "NETWORK_INSTANCE_DHCP_TYPE_V6", + "NETWORK_INSTANCE_DHCP_TYPE_CRYPTOEID", + "NETWORK_INSTANCE_DHCP_TYPE_CRYPTOV4", + "NETWORK_INSTANCE_DHCP_TYPE_CRYPTOV6" + ], + "default": "NETWORK_INSTANCE_DHCP_TYPE_UNSPECIFIED", + "title": "NetworkInstanceDhcpType: Used in the network instance provide\n dhcp server configuration" + }, + "NetworkInstanceKind": { + "type": "string", + "enum": [ + "NETWORK_INSTANCE_KIND_UNSPECIFIED", + "NETWORK_INSTANCE_KIND_TRANSPARENT", + "NETWORK_INSTANCE_KIND_SWITCH", + "NETWORK_INSTANCE_KIND_LOCAL", + "NETWORK_INSTANCE_KIND_CLOUD", + "NETWORK_INSTANCE_KIND_MESH", + "NETWORK_INSTANCE_KIND_HONEYPOT" + ], + "default": "NETWORK_INSTANCE_KIND_UNSPECIFIED" + }, + "NetworkProvider": { + "type": "object", + "properties": { + "plmn": { + "type": "string", + "description": "PLMN code" + }, + "name": { + "type": "string", + "description": "Human-friendly name" + }, + "rat": { + "type": "string", + "$ref": "#/definitions/RadioAccessTechnology", + "description": "Radio Access Technology" + }, + "roaming": { + "type": "boolean", + "description": "Is Roaming ON" + }, + "connectedAt": { + "type": "string", + "format": "date-time", + "description": "Time when was the connection established" + } + }, + "description": "NetworkProvider describes a cellular Network Provider", + "title": "NetworkProvider describes a cellular Network Provider" + }, + "NetworkProxyProto": { + "type": "string", + "enum": [ + "NETWORK_PROXY_PROTO_HTTP", + "NETWORK_PROXY_PROTO_HTTPS", + "NETWORK_PROXY_PROTO_SOCKS", + "NETWORK_PROXY_PROTO_FTP", + "NETWORK_PROXY_PROTO_OTHER" + ], + "default": "NETWORK_PROXY_PROTO_HTTP" + }, + "NetworkStatus": { + "type": "object", + "properties": { + "up": { + "type": "boolean", + "description": "Network Status flag" + }, + "macAddr": { + "type": "string", + "description": "mac Address" + }, + "ifName": { + "type": "string", + "description": "ifName" + }, + "ipAddrs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Array of IP addresses" + }, + "defaultRouters": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Default Routers" + }, + "dns": { + "type": "object", + "$ref": "#/definitions/DNSInfo", + "description": "DNS Configuration" + }, + "location": { + "type": "object", + "$ref": "#/definitions/GeoLocation", + "description": "Geo Location Details" + }, + "uplink": { + "type": "boolean", + "description": "Uplink flag" + }, + "proxy": { + "type": "object", + "$ref": "#/definitions/NetProxyStatus", + "description": "Network Proxy status" + }, + "errInfo": { + "type": "object", + "$ref": "#/definitions/DeviceError", + "description": "Network error details" + }, + "gpsLocation": { + "type": "object", + "$ref": "#/definitions/GPSLocation", + "description": "Location from GNSS receivers on WWAN type adapters" + }, + "cellular": { + "type": "object", + "$ref": "#/definitions/CellularStatus", + "description": "Cellular network status" + }, + "mtu": { + "type": "integer", + "format": "int64", + "description": "Network MTU" + }, + "pnacStatus": { + "$ref": "#/definitions/PNACPortStatus", + "description": "PNAC 802.1X authentication status for this port", + "title": "PNAC (802.1X) authentication status for this port" + }, + "configSource": { + "$ref": "#/definitions/commonPortConfigSource", + "description": "Identifies the source of this network port configuration" + } + }, + "description": "NetworkStatus is used to store the Network status", + "title": "NetworkStatus is used to store the Network Status" + }, + "NtpServer": { + "type": "object", + "properties": { + "server": { + "type": "string", + "description": "NTP Server IP or FQDN" + } + }, + "description": "NTP Server", + "title": "NTP Server" + }, + "ObjectRevision": { + "type": "object", + "properties": { + "prev": { + "type": "string", + "description": "Previous" + }, + "curr": { + "type": "string", + "description": "Current Database version of the record" + }, + "createdAt": { + "type": "object", + "format": "date-time", + "description": "The time, in milliseconds since the epoch, when the record was created." + }, + "createdBy": { + "type": "string", + "description": "User data: Created By" + }, + "updatedAt": { + "type": "object", + "format": "date-time", + "description": "The time, in milliseconds since the epoch, when the record was last updated." + }, + "updatedBy": { + "type": "string", + "description": "User data: Updated By" + } + }, + "description": "ObjectRevision store the user details, who has doent the necessary operation like Create Operation or update operation", + "title": "ObjectRevision is used to store the user information.", + "required": [ + "curr", + "createdAt", + "createdBy", + "updatedAt", + "updatedBy" + ] + }, + "ObjectTag": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "object tag key identifier." + }, + "value": { + "type": "string", + "description": "value associated for the object tag key" + }, + "description": { + "type": "string", + "description": "Description of the tag key" + } + }, + "description": "Object tag deaails.", + "title": "Object Tag details" + }, + "ObjectTagsList": { + "type": "object", + "properties": { + "objectTags": { + "type": "array", + "items": { + "$ref": "#/definitions/ObjectTag" + }, + "description": "Details of Object tags list records." + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "Returned record page." + } + }, + "description": "Returned list of Object tags matched by filter criteria", + "title": "Object tag list records" + }, + "ObjectType": { + "type": "string", + "enum": [ + "OBJECT_TYPE_UNSPECIFIED", + "OBJECT_TYPE_USER", + "OBJECT_TYPE_EDGE_NODE", + "OBJECT_TYPE_EDGE_APP", + "OBJECT_TYPE_IMAGE", + "OBJECT_TYPE_EDGE_APP_INSTANCE", + "OBJECT_TYPE_PROJECT", + "OBJECT_TYPE_NETWORK", + "OBJECT_TYPE_DATASTORE", + "OBJECT_TYPE_SERVICE", + "OBJECT_TYPE_SERVICE_INSTANCE", + "OBJECT_TYPE_ENTERPRISE", + "OBJECT_TYPE_ROLE", + "OBJECT_TYPE_CREDENTIAL", + "OBJECT_TYPE_NETWORK_INSTANCE", + "OBJECT_TYPE_VOLUME_INSTANCE", + "OBJECT_TYPE_REALM", + "OBJECT_TYPE_AUTHPROFILE", + "OBJECT_TYPE_POLICY", + "OBJECT_TYPE_APP_POLICY", + "OBJECT_TYPE_CLUSTER_INSTANCE", + "OBJECT_TYPE_PLUGIN", + "OBJECT_TYPE_DOC_POLICY", + "OBJECT_TYPE_ORCHESTRATOR_CLUSTER", + "OBJECT_TYPE_TAGS", + "OBJECT_TYPE_EDGE_NODE_INTERFACE", + "OBJECT_TYPE_DEPLOYMENT", + "OBJECT_TYPE_ENTITLEMENTS", + "OBJECT_TYPE_DATA_STREAM", + "OBJECT_TYPE_API_USAGE", + "OBJECT_TYPE_APP_INSTANCE_SNAPSHOT", + "OBJECT_TYPE_PATCH_ENVELOPE", + "OBJECT_TYPE_RESOURCE_USAGE_TRACK", + "OBJECT_TYPE_PATCH_ENVELOPE_REFERENCE", + "OBJECT_TYPE_DEV_PASSTHROUGH", + "OBJECT_TYPE_EDGE_NODE_CLUSTER", + "OBJECT_TYPE_ASSET_GROUP", + "OBJECT_TYPE_APP_PROFILE", + "OBJECT_TYPE_PROFILE_DEPLOYMENT", + "OBJECT_TYPE_ZKS_INSTANCE", + "OBJECT_TYPE_CLUSTER_GROUP" + ], + "default": "OBJECT_TYPE_UNSPECIFIED" + }, + "OpaqueConfigType": { + "type": "string", + "enum": [ + "OPAQUE_CONFIG_TYPE_UNSPECIFIED", + "OPAQUE_CONFIG_TYPE_VPN", + "OPAQUE_CONFIG_TYPE_LISP" + ], + "default": "OPAQUE_CONFIG_TYPE_UNSPECIFIED" + }, + "OpenTelemetryConfig": { + "type": "object", + "properties": { + "host": { + "type": "string", + "description": "The hostname or IP address of the OpenTelemetry collector endpoint." + }, + "port": { + "type": "integer", + "format": "int64", + "description": "The port on which the OpenTelemetry collector is listening." + }, + "urlExtension": { + "type": "string", + "description": "URL path extension for the OpenTelemetry collector endpoint." + }, + "bearerToken": { + "type": "string", + "description": "Bearer token for authenticating with the OpenTelemetry collector." + }, + "enableTLS": { + "type": "boolean", + "description": "Enable TLS for the connection to the OpenTelemetry collector." + }, + "skipVerify": { + "type": "boolean", + "description": "Skip TLS certificate verification." + } + }, + "description": "The payload to configure the OpenTelemetry collector endpoint.", + "title": "OpenTelemetry Configuration", + "required": [ + "host", + "port", + "bearerToken" + ] + }, + "OrchestrationProvider": { + "type": "string", + "enum": [ + "ORCHESTRATOR_PROVIDER_UNSPECIFIED", + "ORCHESTRATOR_PROVIDER_RANCHER" + ], + "default": "ORCHESTRATOR_PROVIDER_UNSPECIFIED", + "title": "- ORCHESTRATOR_PROVIDER_UNSPECIFIED: Unspecified orchestrator provider\n - ORCHESTRATOR_PROVIDER_RANCHER: Rancher as the cluster orchestrator provider" + }, + "OrchestratorAuthenticationType": { + "type": "string", + "enum": [ + "ORCHESTRATOR_AUTHENTICATION_TYPE_UNSPECIFIED", + "ORCHESTRATOR_AUTHENTICATION_TYPE_CREDENTIALS", + "ORCHESTRATOR_AUTHENTICATION_TYPE_API_TOKEN" + ], + "default": "ORCHESTRATOR_AUTHENTICATION_TYPE_UNSPECIFIED", + "description": " - ORCHESTRATOR_AUTHENTICATION_TYPE_UNSPECIFIED: Unspecified authentication type\n - ORCHESTRATOR_AUTHENTICATION_TYPE_CREDENTIALS: Authenticate using credentials\n - ORCHESTRATOR_AUTHENTICATION_TYPE_API_TOKEN: Authenticate using api token." + }, + "OrchestratorConfig": { + "type": "object", + "properties": { + "orchestratorAuthenticationType": { + "$ref": "#/definitions/OrchestratorAuthenticationType", + "description": "Orchestrator authentication type" + }, + "orchestratorServerAddress": { + "type": "string", + "description": "Orchestrator server's IP address" + }, + "orchestratorPort": { + "type": "string", + "description": "Port on which the orchestrator server is listening" + }, + "orchestratorUsername": { + "type": "string", + "description": "Username to login to the orchestrator server" + }, + "orchestratorPassword": { + "type": "string", + "description": "Password to login to the orchestrator server" + }, + "orchestratorAPIToken": { + "type": "string", + "description": "API token to authenticate requests to the orchestrator server" + }, + "encryptedSecrets": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "encrypted secrets" + }, + "cryptoKey": { + "type": "string", + "description": "key to decrypt serets" + }, + "orchestratorMaxClusterCount": { + "type": "number", + "format": "int64", + "description": "maximum cluster rancher can hold" + }, + "orchestratorOrder": { + "type": "number", + "format": "int64", + "description": "rancher configuration priority order" + } + }, + "description": "The payload to configure the third party cluster orchestrator.", + "title": "Configuration required for the cluster orchestrator integration", + "required": [ + "orchestratorAuthenticationType", + "orchestratorServerAddress", + "orchestratorPort" + ] + }, + "OrchestratorObjectError": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Description of the error" + }, + "severity": { + "type": "string", + "description": "Severity of the error" + }, + "objectName": { + "type": "string", + "description": "Name of the orchestrator object" + } + }, + "description": "OrchestratorObjectError store the error occurred at the Orchestrator object", + "title": "OrchestratorObjectError is used to store the error details of the Orchestrator object.", + "required": [ + "description", + "severity", + "objectName" + ] + }, + "PNACPortStatus": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "description": "Whether 802.1X authentication is enabled on this port" + }, + "supplicantState": { + "$ref": "#/definitions/PNACSupplicantState", + "description": "802.1X supplicant state" + }, + "lastAuthTimestamp": { + "type": "string", + "format": "date-time", + "description": "Timestamp of the most recent successful 802.1X authentication." + }, + "err": { + "type": "object", + "$ref": "#/definitions/DeviceError", + "description": "Supplicant authentication error details" + } + }, + "description": "PNACPortStatus reports the 802.1X authentication status of a network port." + }, + "PNACSupplicantState": { + "type": "string", + "enum": [ + "PNAC_SUPPLICANT_STATE_UNSPECIFIED", + "PNAC_SUPPLICANT_STATE_DISCONNECTED", + "PNAC_SUPPLICANT_STATE_CONNECTING", + "PNAC_SUPPLICANT_STATE_AUTHENTICATING", + "PNAC_SUPPLICANT_STATE_AUTHENTICATED", + "PNAC_SUPPLICANT_STATE_FAILED", + "PNAC_SUPPLICANT_STATE_HELD" + ], + "default": "PNAC_SUPPLICANT_STATE_UNSPECIFIED", + "description": "PNACSupplicantState describes the 802.1X supplicant state for PNAC.\n\n - PNAC_SUPPLICANT_STATE_DISCONNECTED: Supplicant is idle or link is down; no authentication in progress.\n - PNAC_SUPPLICANT_STATE_CONNECTING: Link is up and the supplicant is initiating authentication.\n - PNAC_SUPPLICANT_STATE_AUTHENTICATING: Active EAP authentication exchange is in progress.\n - PNAC_SUPPLICANT_STATE_AUTHENTICATED: Authentication completed successfully; port is authorized.\n - PNAC_SUPPLICANT_STATE_FAILED: Authentication failed and access was not granted.\n - PNAC_SUPPLICANT_STATE_HELD: Supplicant is in a held or backoff state following repeated failures." + }, + "PluginConfig": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "User defined name of the third party plugin request, unique across the enterprise. Once object is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "id": { + "type": "string", + "description": "System defined universally unique Id of the third party plugin request", + "readOnly": true, + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the third party entity. Title can be changed at any time", + "maxLength": 256, + "minLength": 3, + "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$" + }, + "description": { + "type": "string", + "description": "Detailed description of the third party entity.", + "maxLength": 256 + }, + "integrationType": { + "$ref": "#/definitions/PluginIntegrationType", + "description": "Type of desired integration type" + }, + "pluginType": { + "$ref": "#/definitions/PluginType", + "description": "type of actual integration" + }, + "objectType": { + "$ref": "#/definitions/ObjectType", + "description": "object type to which this third party integration is associated, can project, cluster etc." + }, + "objectId": { + "type": "string", + "description": "objectId to which this third party integration is associated" + }, + "status": { + "$ref": "#/definitions/PluginStatus", + "description": "status of the third party entity.", + "readOnly": true + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined info", + "readOnly": true + }, + "statusMessage": { + "type": "string", + "description": "Detailed status message of the third party.", + "maxLength": 256 + }, + "splunkConfig": { + "$ref": "#/definitions/SplunkConfig", + "title": "config required for configuring splunk" + }, + "httpConfig": { + "$ref": "#/definitions/HttpConfig" + }, + "rancherConfig": { + "$ref": "#/definitions/OrchestratorConfig" + }, + "vmwareVCOConfig": { + "$ref": "#/definitions/VmwareVCOConfig" + }, + "vmwareTMCConfig": { + "$ref": "#/definitions/VmwareTMCConfig" + }, + "openTelemetryConfig": { + "$ref": "#/definitions/OpenTelemetryConfig" + } + }, + "description": "The payload to configure the third party associated with a particular integration.", + "title": "Third Party Plugin integration detail", + "required": [ + "name", + "title", + "integrationType", + "pluginType" + ] + }, + "PluginConfigList": { + "type": "object", + "properties": { + "pluginListSummary": { + "$ref": "#/definitions/Summary", + "description": "Summary information about Third Party plugin list records." + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/PluginShortConfig" + }, + "description": "Details of Third Party list records." + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "Returned record page." + }, + "cfgList": { + "type": "array", + "items": { + "$ref": "#/definitions/PluginConfig" + } + } + }, + "description": "Returned list of third parties plugins matched by filter criteria", + "title": "Third Party Plugin list records" + }, + "PluginIntegrationType": { + "type": "string", + "enum": [ + "PLUGIN_INTEGRATION_TYPE_UNSPECIFIED", + "PLUGIN_INTEGRATION_TYPE_DATA", + "PLUGIN_INTEGRATION_TYPE_CLOUD", + "PLUGIN_INTEGRATION_TYPE_STORAGE", + "PLUGIN_INTEGRATION_TYPE_MONITORING", + "PLUGIN_INTEGRATION_TYPE_ORCHESTRATOR" + ], + "default": "PLUGIN_INTEGRATION_TYPE_UNSPECIFIED" + }, + "PluginShortConfig": { + "type": "object", + "example": { + "name": "splunk-integration", + "title": "" + }, + "properties": { + "name": { + "type": "string", + "description": "User defined name of the third party plugin request, unique across the enterprise. Once object is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "id": { + "type": "string", + "description": "System defined universally unique Id of the third party plugin request", + "readOnly": true, + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the third party entity. Title can be changed at any time", + "maxLength": 256, + "minLength": 3, + "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$" + }, + "description": { + "type": "string", + "description": "Detailed description of the third party entity.", + "maxLength": 256 + }, + "integrationType": { + "$ref": "#/definitions/PluginIntegrationType", + "description": "Type of desired integration type", + "readOnly": true + }, + "pluginType": { + "$ref": "#/definitions/PluginType", + "description": "type of actual integration", + "readOnly": true + }, + "objectType": { + "$ref": "#/definitions/ObjectType", + "description": "object type to which this third party integration is associated, can project, cluster etc." + }, + "objectId": { + "type": "string", + "description": "objectId to which this third party integration is associated" + }, + "status": { + "$ref": "#/definitions/PluginStatus", + "description": "status of the third party entity.", + "readOnly": true + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined info", + "readOnly": true + }, + "statusMessage": { + "type": "string", + "description": "Detailed status message of the third party.", + "maxLength": 256 + } + }, + "description": "The shorthand details of plugin config.", + "title": "Third Party Plugin mini detail" + }, + "PluginStatus": { + "type": "string", + "enum": [ + "PLUGIN_STATUS_UNSPECIFIED", + "PLUGIN_STATUS_INITIALIZED", + "PLUGIN_STATUS_INPROGRESS", + "PLUGIN_STATUS_RUNNING", + "PLUGIN_STATUS_FAILED" + ], + "default": "PLUGIN_STATUS_UNSPECIFIED" + }, + "PluginType": { + "type": "string", + "enum": [ + "PLUGIN_TYPE_UNSPECIFIED", + "PLUGIN_TYPE_SPLUNK", + "PLUGIN_TYPE_HTTP", + "PLUGIN_TYPE_RANCHER", + "PLUGIN_TYPE_VMWARE_VCO", + "PLUGIN_TYPE_VMWARE_TMC", + "PLUGIN_TYPE_OTEL" + ], + "default": "PLUGIN_TYPE_UNSPECIFIED" + }, + "ProbeConfig": { + "type": "object", + "properties": { + "enableGatewayPing": { + "type": "boolean", + "description": "Enable gateway ping" + }, + "pingMaxCost": { + "type": "number", + "format": "int64", + "description": "Ping max cost" + }, + "preferLowerCost": { + "type": "boolean", + "description": "Prefer lower cost" + }, + "preferStrongerWwanSignal": { + "type": "boolean", + "description": "Prefer stronger WWAN signal" + }, + "customProbeConfig": { + "type": "object", + "$ref": "#/definitions/commonConnectivityProbe", + "description": "Custom probe configuration" + } + }, + "description": "Probing configuration", + "title": "Probing configuration" + }, + "RadioAccessTechnology": { + "type": "string", + "enum": [ + "RADIO_ACCESS_TECHNOLOGY_UNSPECIFIED", + "RADIO_ACCESS_TECHNOLOGY_GSM", + "RADIO_ACCESS_TECHNOLOGY_UMTS", + "RADIO_ACCESS_TECHNOLOGY_LTE", + "RADIO_ACCESS_TECHNOLOGY_5GNR" + ], + "default": "RADIO_ACCESS_TECHNOLOGY_UNSPECIFIED", + "description": " - RADIO_ACCESS_TECHNOLOGY_GSM: Global System for Mobile Communications (2G).\n - RADIO_ACCESS_TECHNOLOGY_UMTS: Universal Mobile Telecommunications System (3G).\n - RADIO_ACCESS_TECHNOLOGY_LTE: Long Term Evolution (4G).\n - RADIO_ACCESS_TECHNOLOGY_5GNR: 5G New Radio." + }, + "ResponseStatusInfo": { + "type": "object", + "properties": { + "responseStatus": { + "type": "number", + "format": "int64", + "description": "HTTP request status code." + }, + "count": { + "type": "number", + "format": "uint64", + "description": "Count of the HTTP status codes." + } + } + }, + "RunState": { + "type": "string", + "enum": [ + "RUN_STATE_UNSPECIFIED", + "RUN_STATE_ONLINE", + "RUN_STATE_HALTED", + "RUN_STATE_INIT", + "RUN_STATE_REBOOTING", + "RUN_STATE_OFFLINE", + "RUN_STATE_UNKNOWN", + "RUN_STATE_UNPROVISIONED", + "RUN_STATE_PROVISIONED", + "RUN_STATE_SUSPECT", + "RUN_STATE_DOWNLOADING", + "RUN_STATE_RESTARTING", + "RUN_STATE_PURGING", + "RUN_STATE_HALTING", + "RUN_STATE_ERROR", + "RUN_STATE_VERIFYING", + "RUN_STATE_LOADING", + "RUN_STATE_CREATING_VOLUME", + "RUN_STATE_BOOTING", + "RUN_STATE_MAINTENANCE_MODE", + "RUN_STATE_START_DELAYED", + "RUN_STATE_BASEOS_UPDATING", + "RUN_STATE_PREPARING_POWEROFF", + "RUN_STATE_POWERING_OFF", + "RUN_STATE_PREPARED_POWEROFF" + ], + "default": "RUN_STATE_UNSPECIFIED", + "description": "- RUN_STATE_ONLINE: Entity Online\n - RUN_STATE_HALTED: Entity Halted\n - RUN_STATE_INIT: Entity Initializing\n - RUN_STATE_REBOOTING: Entity Rebooting\n - RUN_STATE_OFFLINE: Entity Offline\n - RUN_STATE_UNKNOWN: Entity state Unknown\n - RUN_STATE_UNPROVISIONED: Entity Unprovisioned\n - RUN_STATE_PROVISIONED: Entity Provisioned\n - RUN_STATE_SUSPECT: Entity Suspect\n - RUN_STATE_DOWNLOADING: Edge-node downloading entity artifacts\n - RUN_STATE_RESTARTING: Entity Restarting\n - RUN_STATE_PURGING: Entity Purging\n - RUN_STATE_HALTING: Entity Halting\n - RUN_STATE_ERROR: Entity encountered an error\n - RUN_STATE_VERIFYING: Verification of downloaded Artifacts in Progress.\n - RUN_STATE_LOADING: Loading of Artifacts into local datastore in Progress.\n - RUN_STATE_CREATING_VOLUME: Volume creation from artifacts in Progress\n - RUN_STATE_BOOTING: Entity booting up\n - RUN_STATE_MAINTENANCE_MODE: Entity maintenance mode\n - RUN_STATE_START_DELAYED: Application start delayed as per configuration\n - RUN_STATE_BASEOS_UPDATING: Device BaseOs Update in Progress\n - RUN_STATE_PREPARING_POWEROFF: device preparing power off - shutting down all app instances\n - RUN_STATE_POWERING_OFF: device powering off from local profile server\n - RUN_STATE_PREPARED_POWEROFF: device prepared power off - all app instances are shut down", + "title": "RunState - On update, please update RunState_HttpRequest as well" + }, + "SIMCard": { + "type": "object", + "properties": { + "slotNumber": { + "type": "number", + "format": "int64", + "description": "Slot number" + }, + "slotActivated": { + "type": "boolean", + "description": "Is Slot activated" + }, + "iccid": { + "type": "string", + "description": "Integrated Circuit Card Identifier" + }, + "imsi": { + "type": "string", + "description": "International Mobile Subscriber Identity" + }, + "state": { + "type": "string", + "description": "Current state of the SIM card" + } + }, + "description": "SIMCard describes a SIM slot", + "title": "SIMCard describes a SIM slot" + }, + "SWInfo": { + "type": "object", + "properties": { + "version": { + "type": "string", + "description": "software version" + }, + "hash": { + "type": "string", + "description": "software hash" + }, + "state": { + "$ref": "#/definitions/SWState", + "description": "Software state" + }, + "disk": { + "type": "string", + "description": "software disk" + }, + "downloadProgress": { + "type": "number", + "format": "int64", + "description": "download progress" + }, + "imageName": { + "type": "string", + "description": "image name" + } + }, + "description": "Software Information", + "title": "Software Information" + }, + "SWState": { + "type": "string", + "enum": [ + "SW_STATE_UNSPECIFIED", + "SW_STATE_INITIAL", + "SW_STATE_DOWNLOAD_IN_PROGRESS", + "SW_STATE_DOWNLOADED", + "SW_STATE_VERIFIED", + "SW_STATE_INSTALLED", + "SW_STATE_BOOTING", + "SW_STATE_RUNNING", + "SW_STATE_HALTING", + "SW_STATE_HALTED", + "SW_STATE_REFRESHING", + "SW_STATE_PURGING", + "SW_STATE_RESOLVING_TAG", + "SW_STATE_RESOLVED_TAG", + "SW_STATE_CREATING_VOLUME", + "SW_STATE_CREATED_VOLUME", + "SW_STATE_VERIFYING", + "SW_STATE_LOADING", + "SW_STATE_LOADED", + "SW_STATE_AWAITNETWORKINSTANCE" + ], + "default": "SW_STATE_UNSPECIFIED", + "description": "- SW_STATE_RESOLVING_TAG: Prior to DOWNLOAD_STARTED we go through these:\nResolving an image tag\n - SW_STATE_RESOLVED_TAG: Tag has been resolved/failed\n - SW_STATE_CREATING_VOLUME: Prior to INSTALLED we go through these:\nVolume create in progress\n - SW_STATE_CREATED_VOLUME: Volume create done/failed\n - SW_STATE_VERIFYING: Verification in-progress\n - SW_STATE_LOADING: Loading blob in CAS\n - SW_STATE_LOADED: Loaded blob in CAS\n - SW_STATE_AWAITNETWORKINSTANCE: Wait for network instance", + "title": "State of EVE/Edge Application software" + }, + "ServicePoint": { + "type": "object", + "properties": { + "type": { + "type": "object", + "$ref": "#/definitions/spType", + "description": "Service Point Type" + }, + "NameOrIp": { + "type": "string", + "description": "Service name/ service name" + }, + "Credential": { + "type": "string", + "description": "Service credentials" + } + }, + "description": "Service Point", + "title": "Service Point" + }, + "Severity": { + "type": "string", + "enum": [ + "SEVERITY_UNSPECIFIED", + "SEVERITY_NOTICE", + "SEVERITY_WARNING", + "SEVERITY_ERROR" + ], + "default": "SEVERITY_UNSPECIFIED", + "title": "Severity tells the severity type" + }, + "SharedStorageSummary": { + "type": "object", + "properties": { + "Id": { + "type": "string", + "description": "Id" + }, + "Name": { + "type": "string", + "description": "Name" + }, + "AllocatedMB": { + "type": "number", + "format": "double", + "description": "Allocated Storage in MBs" + }, + "UsedMB": { + "type": "number", + "format": "double", + "description": "How much is used within the allocated total storage" + } + }, + "description": "Shared Storage Summary", + "title": "Shared Storage Summary" + }, + "SnapshotState": { + "type": "string", + "enum": [ + "INVALID", + "IDLE", + "CREATING", + "CREATED", + "CREATE_FAILED", + "ROLLING_BACK", + "ACTIVE", + "ROLLBACK_FAILED", + "DELETING", + "DELETE_FAILED", + "DELETED" + ], + "default": "INVALID" + }, + "SplunkConfig": { + "type": "object", + "properties": { + "index": { + "type": "string", + "description": "The splunk index." + }, + "hecToken": { + "type": "string", + "description": "The http event collector token." + }, + "host": { + "type": "string", + "description": "The Host where splunk server is running." + }, + "port": { + "type": "string", + "description": "Port to which Splunk server is listening to." + }, + "encryptedSecrets": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "encrypted secrets" + }, + "cryptoKey": { + "type": "string", + "description": "key to decrypt serets" + }, + "enableTLS": { + "type": "boolean", + "description": "TLS enable flag" + }, + "skipVerify": { + "type": "boolean", + "description": "specify skip verify flag" + }, + "urlExtension": { + "type": "string", + "description": "splunk url extension" + } + }, + "description": "The payload to configure the splunk third party plugin.", + "title": "Splunk Configuration required for the splunk plugin integration", + "required": [ + "port", + "host", + "hecToken" + ] + }, + "StaticDNSList": { + "type": "object", + "properties": { + "hostname": { + "type": "string", + "description": "Host name" + }, + "addrs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Addresses" + } + }, + "description": "Static DNS list", + "title": "Static DNS list" + }, + "StaticIPRoute": { + "type": "object", + "properties": { + "prefix": { + "type": "string", + "description": "IP Prefix" + }, + "gateway": { + "type": "string", + "description": "Gateway IP" + }, + "outputPort": { + "type": "string", + "description": "Output Port" + }, + "probeConfig": { + "type": "object", + "$ref": "#/definitions/ProbeConfig", + "description": "Probe Configuration" + } + }, + "description": "Static IP Routes", + "title": "Static IP Routes" + }, + "StorageSummary": { + "type": "object", + "properties": { + "TotalMB": { + "type": "number", + "format": "double", + "description": "Total Storage for the device in MBs" + }, + "UsedMB": { + "type": "number", + "format": "double", + "description": "How much is used within the allocated total storage" + }, + "AllocatedMB": { + "type": "number", + "format": "double", + "description": "Total reserved for running applications + temp. images etc" + }, + "sharedStorageSummary": { + "type": "array", + "items": { + "$ref": "#/definitions/SharedStorageSummary" + }, + "description": "Shared storage summary" + }, + "Id": { + "type": "string", + "description": "Id" + }, + "Name": { + "type": "string", + "description": "Name" + } + }, + "description": "Storage Summary", + "title": "Storage Summary" + }, + "Summary": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Summary description" + }, + "total": { + "type": "number", + "format": "int64", + "description": "Total" + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "integer", + "format": "int64" + }, + "description": "Values: Map for storing " + } + }, + "description": "Summary is used to store the Summary details", + "title": "Summary is used to store the Summary details" + }, + "TMCClusterStatus": { + "type": "object", + "properties": { + "health": { + "$ref": "#/definitions/TMCClusterStatusHealth", + "description": "Cluster health" + }, + "status": { + "$ref": "#/definitions/TMCClusterStatusStatus", + "description": "Cluster status" + }, + "version": { + "type": "string", + "description": "Cluster TinyTKG version" + }, + "clusterGroupName": { + "type": "string", + "description": "Cluster group name" + } + }, + "title": "Status of TMC cluster" + }, + "TMCClusterStatusHealth": { + "type": "string", + "enum": [ + "TMC_CLUSTER_HEALTH_UNKNOWN", + "TMC_CLUSTER_HEALTH_HEALTHY", + "TMC_CLUSTER_HEALTH_WARNING", + "TMC_CLUSTER_HEALTH_UNHEALTHY", + "TMC_CLUSTER_HEALTH_DISCONNECTED", + "TMC_CLUSTER_HEALTH_OVER_LIMIT" + ], + "default": "TMC_CLUSTER_HEALTH_UNKNOWN" + }, + "TMCClusterStatusStatus": { + "type": "string", + "enum": [ + "TMC_CLUSTER_STATUS_UNKNOWN", + "TMC_CLUSTER_STATUS_PENDING", + "TMC_CLUSTER_STATUS_PROCESSING", + "TMC_CLUSTER_STATUS_CREATING", + "TMC_CLUSTER_STATUS_READY", + "TMC_CLUSTER_STATUS_DELETING", + "TMC_CLUSTER_STATUS_ERROR", + "TMC_CLUSTER_STATUS_DETACHING", + "TMC_CLUSTER_STATUS_UPGRADING", + "TMC_CLUSTER_STATUS_UPGRADE_FAILED", + "TMC_CLUSTER_STATUS_UPDATING", + "TMC_CLUSTER_STATUS_OVER_LIMIT", + "TMC_CLUSTER_STATUS_READY_TO_ATTACH", + "TMC_CLUSTER_STATUS_ATTACH_COMPLETE" + ], + "default": "TMC_CLUSTER_STATUS_UNKNOWN" + }, + "TagType": { + "type": "string", + "enum": [ + "TAG_TYPE_UNSPECIFIED", + "TAG_TYPE_GENERIC", + "TAG_TYPE_PROJECT", + "TAG_TYPE_AZURE", + "TAG_TYPE_DEPLOYMENT" + ], + "default": "TAG_TYPE_UNSPECIFIED", + "description": "- TAG_TYPE_UNSPECIFIED: Unspecified\n - TAG_TYPE_GENERIC: Generic resource group\n - TAG_TYPE_PROJECT: Project resource group\n - TAG_TYPE_AZURE: Project resource group\n - TAG_TYPE_DEPLOYMENT: Project with deployment", + "title": "Resource group types" + }, + "TransCause": { + "type": "string", + "enum": [ + "TRANS_CAUSE_UNSPECIFIED", + "TRANS_CAUSE_APP_DRIVE_CHANGED", + "TRANS_CAUSE_APP_NETWORK_CHANGED", + "TRANS_CAUSE_APP_CUSTOM_CONFIG_CHANGED", + "TRANS_CAUSE_APP_MODULE_BUNDLE_UPDATE", + "TRANS_CAUSE_APP_DESC_CHANGED", + "TRANS_CAUSE_APP_FIXED_RESOURCES_CHANGED", + "TRANS_CAUSE_APP_VNC_MODE_CHANGED", + "TRANS_CAUSE_APP_VM_MODE_CHANGED", + "TRANS_CAUSE_INTER_CA_EXPIRING", + "TRANS_CAUSE_INTER_CA_EXPIRED", + "TRANS_CAUSE_DEVICE_CA_EXPIRING", + "TRANS_CAUSE_DEVICE_CA_EXPIRED", + "TRANS_CAUSE_IDENTITY_CA_EXPIRING", + "TRANS_CAUSE_IDENTITY_CA_EXPIRED", + "TRANS_CAUSE_APP_COMPOSE_TAR_IMAGE_CHANGED", + "TRANS_CAUSE_APP_COMPOSE_YAML_CHANGED", + "TRANS_CAUSE_APP_COMPOSE_DATASTORE_CHANGED", + "TRANS_CAUSE_APP_ENABLE_VM_CONFIG_CHANGED" + ], + "default": "TRANS_CAUSE_UNSPECIFIED" + }, + "TransDetails": { + "type": "object", + "properties": { + "cause": { + "$ref": "#/definitions/TransCause", + "description": "Cause of the transition action" + }, + "severity": { + "type": "string", + "description": "Urgency of the recommended action (ERROR - must take action immediately, WARN - must take action but not immediately, NOTICE - may take action" + }, + "scope": { + "$ref": "#/definitions/ActionScope", + "description": "Scope of the action (e.g. project, cluster, instance)" + } + } + }, + "UserAgentInfo": { + "type": "object", + "properties": { + "userAgent": { + "type": "string", + "description": "Information about the environment from where the HTTP request sent, not the browser user agent. E.g. Zcli, UI, etc." + }, + "count": { + "type": "number", + "format": "uint64", + "description": "Count of the user agents." + } + } + }, + "VariableFileEncoding": { + "type": "string", + "enum": [ + "FILE_ENCODING_UNSPECIFIED", + "FILE_ENCODING_BASE64" + ], + "default": "FILE_ENCODING_UNSPECIFIED", + "description": "- FILE_ENCODING_UNSPECIFIED: File content not encoded\n - FILE_ENCODING_BASE64: File content encoded in Base64", + "title": "File content encoding type" + }, + "VariableGroupCondition": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + }, + "operator": { + "$ref": "#/definitions/VariableGroupConditionOperator" + } + } + }, + "VariableGroupConditionOperator": { + "type": "string", + "enum": [ + "CONDITION_OPERATOR_UNSPECIFIED", + "CONDITION_OPERATOR_EQUALTO", + "CONDITION_OPERATOR_NOTEQUALTO" + ], + "default": "CONDITION_OPERATOR_UNSPECIFIED" + }, + "VariableGroupVariable": { + "type": "object", + "example": { + "format": "VARIABLE_FORMAT_TEXT", + "name": "username", + "label": "Enter User Name", + "required": "True" + }, + "properties": { + "type": { + "type": "string" + }, + "name": { + "type": "string", + "description": "Name of the Variable (Required)" + }, + "label": { + "type": "string", + "description": "Label for the variable (Required)" + }, + "maxLength": { + "type": "string", + "description": "Max length of the value of the variable(Optional. Default: 1024)" + }, + "required": { + "type": "boolean", + "description": "This variable MUST be specified when creating an App Instance. (Optional. Default: False)" + }, + "default": { + "type": "string", + "description": "Default value of the variable. (Optional. Default: )" + }, + "processInput": { + "type": "string" + }, + "value": { + "type": "string", + "description": "User-specified value of the variable.(Required if required is true. Optional otherwise)" + }, + "format": { + "$ref": "#/definitions/VariableVariableFormat", + "description": "Format of the user variable. (Required)" + }, + "encode": { + "$ref": "#/definitions/VariableFileEncoding", + "description": "Encoding of file content. Applicable if format is VARIABLE_FORMAT_FILE" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/VariableOptionVal" + }, + "description": "Key-Value pair of options. Applicable if format is VARIABLE_FORMAT_DROPDOWN" + } + }, + "description": "Edge Application Artifact Details", + "title": "Edge Application detail", + "required": [ + "format", + "name", + "label", + "required" + ] + }, + "VariableOptionVal": { + "type": "object", + "properties": { + "label": { + "type": "string", + "description": "Display label of the key in User-Agent" + }, + "value": { + "type": "string", + "description": "Value of the key to be used" + } + } + }, + "VariableVariableFormat": { + "type": "string", + "enum": [ + "VARIABLE_FORMAT_UNSPECIFIED", + "VARIABLE_FORMAT_TEXT", + "VARIABLE_FORMAT_NUMBER", + "VARIABLE_FORMAT_FILE", + "VARIABLE_FORMAT_DROPDOWN", + "VARIABLE_FORMAT_BOOLEAN", + "VARIABLE_FORMAT_PASSWORD" + ], + "default": "VARIABLE_FORMAT_UNSPECIFIED", + "description": "- VARIABLE_FORMAT_UNSPECIFIED: Invalid format\n - VARIABLE_FORMAT_TEXT: Value in string format\n - VARIABLE_FORMAT_NUMBER: Value in integer format\n - VARIABLE_FORMAT_FILE: Value to be read from a file\n - VARIABLE_FORMAT_DROPDOWN: Value to be selected from dropdown of options\n - VARIABLE_FORMAT_BOOLEAN: Value in boolean format\n - VARIABLE_FORMAT_PASSWORD: Value in string to be masked in User-Agent", + "title": "Custom variable format" + }, + "VmBootloaderMode": { + "type": "string", + "enum": [ + "VM_BOOTLOADER_MODE_UNSPECIFIED", + "VM_BOOTLOADER_MODE_LEGACY", + "VM_BOOTLOADER_MODE_UEFI" + ], + "default": "VM_BOOTLOADER_MODE_UNSPECIFIED", + "title": "VmBootloaderMode is used to specify the bootloader mode that will be used for the VM.\nIt represents the boot mechanism to be used to boot the VM" + }, + "VmwareTMCConfig": { + "type": "object", + "properties": { + "accessCredentials": { + "$ref": "#/definitions/OrchestratorConfig", + "description": "Access Credentials to interact with VMware Tanzu Mission Control" + }, + "useDefaultClusterGroup": { + "type": "boolean", + "description": "Indicates that default Cluster Group name is used to interact with VMWare Tanzu Mission Control." + }, + "useDefaultWorkspace": { + "type": "boolean", + "description": "Indicates that default Workspace name is used to interact with VMWare Tanzu Mission Control" + }, + "clusterGroupName": { + "type": "string", + "description": "Cluster Group name to interact with VMWare Tanzu Mission Control when UseDefaultClusterGroup flag is disabled" + }, + "workspaceName": { + "type": "string", + "description": "Workspace name to interact with VMWare Tanzu Mission Control when UseDefaultWorkspaceName flag is disabled" + }, + "mgmtClusterName": { + "type": "string", + "description": "Management Cluster name to interact with VMWare Tanzu Mission Control" + } + } + }, + "VmwareVCOConfig": { + "type": "object", + "properties": { + "accessCredentials": { + "$ref": "#/definitions/OrchestratorConfig", + "description": "Access Credentials to interact with VMware Velocloud" + }, + "VmwareVCOProfileID": { + "type": "number", + "format": "int64", + "description": "VCE profile ID to use while interacting with VMware Velocloud" + }, + "VmwareVCOLicenseID": { + "type": "number", + "format": "int64", + "description": "VCO License ID use to use while interacting with VMware Velocloud" + } + } + }, + "ZCellularControlProtocol": { + "type": "string", + "enum": [ + "Z_CELLULAR_CONTROL_PROTOCOL_UNSPECIFIED", + "Z_CELLULAR_CONTROL_PROTOCOL_QMI", + "Z_CELLULAR_CONTROL_PROTOCOL_MBIM" + ], + "default": "Z_CELLULAR_CONTROL_PROTOCOL_UNSPECIFIED" + }, + "ZCellularOperatingState": { + "type": "string", + "enum": [ + "Z_CELLULAR_OPERATING_STATE_UNSPECIFIED", + "Z_CELLULAR_OPERATING_STATE_OFFLINE", + "Z_CELLULAR_OPERATING_STATE_RADIO_OFF", + "Z_CELLULAR_OPERATING_STATE_ONLINE", + "Z_CELLULAR_OPERATING_STATE_ONLINE_AND_CONNECTED", + "Z_CELLULAR_OPERATING_STATE_UNRECOGNIZED" + ], + "default": "Z_CELLULAR_OPERATING_STATE_UNSPECIFIED" + }, + "ZManufacturerInfo": { + "type": "object", + "properties": { + "manufacturer": { + "type": "string" + }, + "productName": { + "type": "string" + }, + "version": { + "type": "string" + }, + "serialNumber": { + "type": "string" + }, + "uuid": { + "type": "string" + }, + "compatible": { + "type": "string" + }, + "biosVendor": { + "type": "string" + }, + "biosVersion": { + "type": "string" + }, + "biosReleaseDate": { + "type": "string" + }, + "hSMStatus": { + "$ref": "#/definitions/DeviceHWSecurityModuleStatus" + }, + "hSMInfo": { + "type": "string" + }, + "endorsementKey": { + "type": "string" + } + } + }, + "ZcOpsStatus": { + "type": "string", + "enum": [ + "OPS_STATUS_UNSPECIFIED", + "OPS_STATUS_PENDING", + "OPS_STATUS_ONGOING", + "OPS_STATUS_COMPLETE" + ], + "default": "OPS_STATUS_UNSPECIFIED", + "description": "- OPS_STATUS_PENDING: In rare cases, system may not start operation when it was requested. Client will be notified that operation is PENDING\n - OPS_STATUS_ONGOING: system will start the operation, but at the time response was generated, operation is still ONGOING.\n - OPS_STATUS_COMPLETE: Even if the result of the operations may result in failure, but the OpsStatus will marked COMPLETE for almost all cases.", + "title": "ZedCloud internal operation status" + }, + "ZcOpsType": { + "type": "string", + "enum": [ + "OPS_TYPE_UNSPECIFIED", + "OPS_TYPE_READ", + "OPS_TYPE_DELETE", + "OPS_TYPE_CREATE", + "OPS_TYPE_UPDATE", + "OPS_TYPE_LIST" + ], + "default": "OPS_TYPE_UNSPECIFIED", + "title": "ZedCloud internal operation type" + }, + "ZedCloudOpsCmd": { + "type": "object", + "properties": { + "counter": { + "type": "number", + "format": "int64", + "description": "counter" + }, + "opsTime": { + "type": "object", + "format": "date-time", + "description": "Timestamp: Operational time" + } + }, + "description": "Zed cloud Operation command", + "title": "Zed cloud Operation command" + }, + "ZsrvError": { + "type": "object", + "properties": { + "ec": { + "$ref": "#/definitions/ZsrvErrorCode", + "title": "Enumrated error code, describes more granular numerical\nvalue than just httpStatus" + }, + "location": { + "type": "string", + "title": "Ignore: Internal field only" + }, + "details": { + "type": "string", + "title": "Field captures string description of details" + } + } + }, + "ZsrvErrorCode": { + "type": "string", + "enum": [ + "zMsgErrorNone", + "zMsgSucess", + "NotFound", + "AlreadyExists", + "VersionMismatch", + "RangeError", + "LargeResult", + "IncompleteData", + "InvalidData", + "FunctionUnsupported", + "NoMemory", + "SendFailure", + "Timeout", + "BadReqBody", + "BadReqParam", + "InvalidFieldFormat", + "UrlNotFound", + "ApiVersionNotSupported", + "Unauthorized", + "Forbidden", + "Conflict", + "NotModified", + "DependencyConflict", + "JsonFmtError", + "ProtoFmtError", + "CertError", + "DataBaseConnection", + "DBError", + "zMsgAccepted", + "zMsgCreated", + "PreConditionFailed", + "InternalServerError" + ], + "default": "zMsgErrorNone", + "description": "- zMsgErrorNone: common validation errors\n - IncompleteData: message had fields that weren't filled in\n - InvalidData: message contained the field that wasn't expected\n - FunctionUnsupported: this feature unavailable on this version of device\n - InvalidFieldFormat: message contained the field that wasn't correctly formatted\n - JsonFmtError: Marshal / Unmarshal errors\n - DataBaseConnection: generic DB error", + "title": "ZedCould internal error code" + }, + "ZsrvResponse": { + "type": "object", + "properties": { + "operationType": { + "$ref": "#/definitions/ZcOpsType", + "title": "Describes one of the operations type : possible values\n Read/Delete/Create/Update/List" + }, + "operationStatus": { + "$ref": "#/definitions/ZcOpsStatus", + "title": "if this is log running job" + }, + "objectKind": { + "type": "string", + "title": "zedcloud object kind on which the operation was performed" + }, + "objectId": { + "type": "string", + "title": "Unique value identifies the object that was operated on" + }, + "objectName": { + "type": "string", + "title": "name of the object" + }, + "objectRevision": { + "type": "string", + "title": "object revision post the operation, note Read operation\ndoesn't change the revision" + }, + "objectType": { + "$ref": "#/definitions/ObjectType" + }, + "operationTime": { + "type": "string", + "title": "time of operation" + }, + "startTime": { + "type": "string", + "title": "total time taken by operations" + }, + "endTime": { + "type": "string" + }, + "user": { + "type": "string", + "title": "the operation is performed on behalf of this user" + }, + "httpStatusCode": { + "type": "integer", + "format": "int32", + "title": "http response" + }, + "httpStatusMsg": { + "type": "string", + "title": "summary of the error in text format" + }, + "jobId": { + "type": "string", + "title": "for tracking asynchronous tasks" + }, + "error": { + "type": "array", + "items": { + "$ref": "#/definitions/ZsrvError" + }, + "title": "one or more errors will be set if the operation failed\ni.e. httpStatusCode != 2xx" + } + } + }, + "appACE": { + "type": "object", + "properties": { + "matches": { + "type": "array", + "items": { + "$ref": "#/definitions/appACEMatch" + }, + "description": "app ACE match" + }, + "actions": { + "type": "array", + "items": { + "$ref": "#/definitions/appACEAction" + }, + "description": "app ACE actions" + }, + "id": { + "type": "number", + "format": "int32", + "description": "app ACE id" + }, + "name": { + "type": "string", + "description": "User defined name of the app ACE, unique across the enterprise. Once object is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + } + }, + "description": "App ACE Configuration", + "title": "App ACE detaisn", + "required": [ + "matches", + "actions", + "id", + "name" + ] + }, + "appACEAction": { + "type": "object", + "properties": { + "drop": { + "type": "boolean", + "description": "ACE drop flag" + }, + "limit": { + "type": "boolean", + "description": "ACE limit flag" + }, + "limitrate": { + "type": "number", + "format": "int64", + "description": "ACE limit rate" + }, + "limitunit": { + "type": "string", + "description": "ACE limit unit" + }, + "limitburst": { + "type": "number", + "format": "int64", + "description": "ACE limit burst" + }, + "portmap": { + "type": "boolean", + "description": "application port map flag" + }, + "mapparams": { + "$ref": "#/definitions/appMapParams", + "description": "Application map params" + } + }, + "description": "App ACE actions", + "title": "App ACE Action", + "required": [ + "drop", + "limit", + "limitrate", + "limitunit", + "limitburst", + "portmap", + "mapparams" + ] + }, + "appACEMatch": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Type" + }, + "value": { + "type": "string", + "description": "Value" + } + }, + "description": "App ACE Match", + "title": "appACEMatch detail", + "required": [ + "type", + "value" + ] + }, + "appInterface": { + "type": "object", + "properties": { + "netname": { + "type": "string", + "description": "network name: will be deprecated in future, use netinstname" + }, + "io": { + "$ref": "#/definitions/phyAdapter", + "description": "Physical Adapter to be matched for interface assignment. Applicable only when \"direct attach\" flag is true" + }, + "intforder": { + "type": "number", + "format": "int64", + "description": "intforder" + }, + "intfname": { + "type": "string", + "description": "intf Name" + }, + "directattach": { + "type": "boolean", + "description": "direct attach flag", + "title": "comes from manifest during app create" + }, + "privateip": { + "type": "boolean", + "description": "Private IP flag" + }, + "acls": { + "type": "array", + "items": { + "$ref": "#/definitions/appACE" + }, + "description": "app Acls" + }, + "ipaddr": { + "type": "string", + "description": "IP address", + "title": "if netname points static DHCP then we need to take\nstatic /32 address here" + }, + "macaddr": { + "type": "string", + "description": "MAC address", + "title": "in case of p2v we might want to provide a mac-address.\napplicable only in case of DHCP=passthrough" + }, + "accessVlanId": { + "type": "number", + "format": "int64", + "description": "access port VLAN ID, vlan id of zero will be treated as trunk port and vlan id 1 is implicitly used by linux bridges", + "maximum": 4093, + "minimum": 2 + }, + "eidregister": { + "$ref": "#/definitions/EIDRegister", + "description": "EID register details", + "title": "FIXME: Check why is this required" + }, + "netinstname": { + "type": "string", + "description": "Network Instance name to be matched for interface assignment. Applicable only when \"direct attach\" flag is false" + }, + "netinsttag": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Network Instance tag to be matched for interface assignment. Applicable only when \"direct attach\" flag is false" + }, + "netinstid": { + "type": "string", + "description": "Network Instance id to be matched for interface assignment." + }, + "defaultNetInstance": { + "type": "boolean", + "description": "default instance flag" + }, + "allowToDiscover": { + "type": "boolean", + "description": "flag tells if appInstance have permission to access the network mappings from the connected netInstance" + } + }, + "description": "App Interface detail", + "title": "App Interface detail", + "required": [ + "intfname" + ] + }, + "appMapParams": { + "type": "object", + "properties": { + "port": { + "type": "number", + "format": "int64", + "description": "Application port" + } + }, + "description": "Application map parameters", + "title": "App map Params detail", + "required": [ + "port" + ] + }, + "commonConnectivityProbe": { + "type": "object", + "properties": { + "probeMethod": { + "$ref": "#/definitions/commonConnectivityProbeMethod", + "description": "Method to use to determine the connectivity status." + }, + "probeEndpoint": { + "$ref": "#/definitions/commonProbeEndpoint", + "description": "Endpoint to probe using the selected probing mechanism to determine\nthe connectivity status." + } + }, + "description": "Configuration for user-defined connectivity-testing probe." + }, + "commonConnectivityProbeMethod": { + "type": "string", + "enum": [ + "CONNECTIVITY_PROBE_METHOD_UNSPECIFIED", + "CONNECTIVITY_PROBE_METHOD_ICMP", + "CONNECTIVITY_PROBE_METHOD_TCP" + ], + "default": "CONNECTIVITY_PROBE_METHOD_UNSPECIFIED", + "description": "User-defined method to use to determine the connectivity status.\n\n - CONNECTIVITY_PROBE_METHOD_UNSPECIFIED: Connectivity probing method is not specified and therefore will not be used.\n - CONNECTIVITY_PROBE_METHOD_ICMP: Use ICMP ping against the probed endpoint to determine the connectivity status.\n - CONNECTIVITY_PROBE_METHOD_TCP: Try to establish TCP connection with the probed endpoint to determine the connectivity\nstatus." + }, + "commonNetworkConfigOrigin": { + "type": "string", + "enum": [ + "NETWORK_CONFIG_ORIGIN_UNSPECIFIED", + "NETWORK_CONFIG_ORIGIN_CONTROLLER", + "NETWORK_CONFIG_ORIGIN_BOOTSTRAP", + "NETWORK_CONFIG_ORIGIN_OVERRIDE", + "NETWORK_CONFIG_ORIGIN_LASTRESORT", + "NETWORK_CONFIG_ORIGIN_TUI", + "NETWORK_CONFIG_ORIGIN_LOC", + "NETWORK_CONFIG_ORIGIN_LPS" + ], + "default": "NETWORK_CONFIG_ORIGIN_UNSPECIFIED", + "description": "NetworkConfigOrigin enumerates all possible origins of a network port configuration.\n\n - NETWORK_CONFIG_ORIGIN_UNSPECIFIED: Unknown or unset origin.\n - NETWORK_CONFIG_ORIGIN_CONTROLLER: Config received from the controller.\n - NETWORK_CONFIG_ORIGIN_BOOTSTRAP: Initial device config embedded in the EVE installer, signed by the controller.\n - NETWORK_CONFIG_ORIGIN_OVERRIDE: Manually created JSON config injected into the installer.\n - NETWORK_CONFIG_ORIGIN_LASTRESORT: Fallback configuration automatically generated to enable DHCP on all Ethernet ports.\nUsed when no network config is available or when \"network.fallback.any.eth\" is enabled\nand none of the existing configs provide controller connectivity.\n - NETWORK_CONFIG_ORIGIN_TUI: Config entered via the terminal UI (TUI).\n - NETWORK_CONFIG_ORIGIN_LOC: Configuration signed by the controller and delivered through the\nLocal Operator Console (LOC) in an air-gapped environment.\n - NETWORK_CONFIG_ORIGIN_LPS: Config changes made locally through the Local Profile Server (LPS)." + }, + "commonPortConfigSource": { + "type": "object", + "properties": { + "origin": { + "$ref": "#/definitions/commonNetworkConfigOrigin", + "description": "Indicates where EVE obtained the network config." + }, + "submittedAt": { + "type": "string", + "format": "date-time", + "description": "Timestamp when this port\u2019s configuration was originally submitted\nor created at its source.\n\nMeaning depends on the origin:\n- Controller, LOC, bootstrap: timestamp provided by the controller.\n- Local override.json: when the file was first loaded by EVE.\n- Last-resort: when EVE generated the fallback config.\n- LPS modifications: when the modified config was received.\n- TUI: when the user submitted the configuration.\n\nThis is different from DevicePortStatus.timePriority, which is used\nto compare and prioritize different sources of network configuration\n(and may be synthetic for some sources, e.g. year 2000 for override.json,\nepoch 0 for last-resort). By contrast, submitted_at represents when this\nport\u2019s configuration first came into existence, regardless of when or whether\nthe device applied it.\n\nNote: this is a per-port timestamp. The underlying network config may\ncover multiple ports, but only the portion relevant to this port is\nreflected here." + } + }, + "description": "PortConfigSource describes the origin of the configuration used for a network port.\nIt helps distinguish between controller-provided, locally-modified, or initial configs." + }, + "commonProbeEndpoint": { + "type": "object", + "properties": { + "host": { + "type": "string", + "description": "IP address or FQDN." + }, + "port": { + "type": "integer", + "format": "int64", + "description": "TCP port required for CONNECTIVITY_PROBE_METHOD_TCP.\nLeave empty for CONNECTIVITY_PROBE_METHOD_ICMP." + } + }, + "description": "Address of a remote endpoint to probe in order to determine connectivity status." + }, + "dhcpIpRange": { + "type": "object", + "properties": { + "start": { + "type": "string", + "description": "starting IP" + }, + "end": { + "type": "string", + "description": "ending IP" + } + }, + "description": "DHCP IP range", + "title": "DHCP IP range" + }, + "drive": { + "type": "object", + "properties": { + "imagename": { + "type": "string", + "description": "Name of Image Object used for the drive." + }, + "maxsize": { + "type": "number", + "format": "uint64", + "description": "Drive maximum size" + }, + "readonly": { + "type": "boolean", + "description": "Read only flag. If set, drive is mounted as readonly by app instance." + }, + "preserve": { + "type": "boolean", + "description": "Preserve the drive even when all app instances using it are deleted" + }, + "drvtype": { + "type": "string", + "description": "Type of Drive. Valid Values: UNSPECIFIED, CDROM, HDD, NET, HDD_EMPTY. HDD_EMPTY - is to allocate the empty disk of maxsizebytes specified" + }, + "target": { + "type": "string", + "description": "type of target. Valid values: Disk, Kernel, Initrd, RamDisk" + }, + "volumelabel": { + "type": "string", + "description": "User defined volume to use for this drive " + }, + "mvolname": { + "type": "string", + "description": "mutable Volume for this drive. Only one of imvolname and mvolname must be specified." + }, + "imvolname": { + "type": "string", + "description": "immutable Volume for this drive. Only one of imvolname and mvolname must be specified." + }, + "ignorepurge": { + "type": "boolean", + "description": "don't purge this drive as part of purge command for mutable volumes" + }, + "cleartext": { + "type": "boolean", + "description": "If set, don't encrypt the drive. Store in cleartext" + }, + "mountpath": { + "type": "string", + "description": "Mount Path for the drive in the App Instance" + }, + "runtimeInternal": { + "type": "boolean", + "description": "If set, the drive is internal to the runtime and not externally exposed with API", + "readOnly": true + } + }, + "description": "Drive configuration", + "title": "Drive details", + "required": [ + "imagename", + "maxsize", + "readonly", + "preserve", + "drvtype", + "target" + ] + }, + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "hvMode": { + "type": "string", + "enum": [ + "HV_PV", + "HV_HVM", + "HV_FML", + "HV_NOHYPER", + "HV_LEGACY" + ], + "default": "HV_PV", + "description": "For now we need to tell the device which virtualization mode\nto use. Later we might use a single one for all VMs (on any particular\nISA). If we end up keeping this we should make the names be less\ntied to a particular hypervisor." + }, + "phyAdapter": { + "type": "object", + "properties": { + "type": { + "type": "object", + "$ref": "#/definitions/IoType", + "description": "IoType specifies the type of the Input output of the device" + }, + "name": { + "type": "string", + "description": "Physical Adapter name" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + } + }, + "description": "Physical Adapter", + "title": "Physical Adapter" + }, + "protobufAny": { + "type": "object", + "properties": { + "typeUrl": { + "type": "string" + }, + "value": { + "type": "string", + "format": "byte" + } + } + }, + "protobufNullValue": { + "type": "string", + "enum": [ + "NULL_VALUE" + ], + "default": "NULL_VALUE", + "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\n The JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." + }, + "spType": { + "type": "string", + "enum": [ + "SPTYPE_INVALIDSRV", + "SPTYPE_MAPSERVER", + "SPTYPE_SUPPORTSERVER" + ], + "default": "SPTYPE_INVALIDSRV", + "description": "clone of types defined in API repo.\n\n - SPTYPE_MAPSERVER: mapping service for zededa overlay service\n - SPTYPE_SUPPORTSERVER: if device has support feature enabled, this ia cloud service\nwhich device can be reached." + }, + "vm": { + "type": "object", + "properties": { + "cpus": { + "type": "number", + "format": "int64", + "description": "CPUs" + }, + "memory": { + "type": "number", + "format": "int64", + "description": "Memory" + }, + "mode": { + "$ref": "#/definitions/hvMode", + "description": "Hardware Virtualization" + }, + "vnc": { + "type": "boolean", + "description": "VNC" + }, + "vncDisplay": { + "type": "number", + "format": "int64", + "description": "VNC display", + "readOnly": true + }, + "cpuPinningEnabled": { + "type": "boolean", + "description": "Enable CpuPinning" + }, + "vmmMaxmem": { + "type": "integer", + "format": "int64", + "description": "Maximum amount of memory in kbytes allowed for VM monitor to occupy" + }, + "bootloaderMode": { + "$ref": "#/definitions/VmBootloaderMode", + "description": "The bootloader mode that will be used for the VM. Default is VM_BOOTLOADER_MODE_LEGACY" + }, + "enableOemWinLicenseKey": { + "type": "boolean", + "description": "Enable device which has VM to receive the Windows license embedded in the ACPI tables" + }, + "disableVTPM": { + "type": "boolean", + "description": "Disable vTPM for virtual machines (VM)" + } + }, + "description": "Virtual machine memory configuration", + "title": "vm detail", + "required": [ + "cpus", + "memory", + "mode", + "vnc" + ] + } + }, + "securityDefinitions": { + "BearerToken": { + "type": "apiKey", + "description": "Bearer token for user session", + "name": "Authorization", + "in": "header" + } + }, + "security": [ + { + "BearerToken": [] + } + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/cluster-instance-management" + } +} \ No newline at end of file diff --git a/openapi/zedge_storage_service.swagger.json b/openapi/zedge_storage_service.swagger.json new file mode 100644 index 0000000..e0f921d --- /dev/null +++ b/openapi/zedge_storage_service.swagger.json @@ -0,0 +1,6726 @@ +{ + "swagger": "2.0", + "info": { + "title": "ZEDEDA Storage Service", + "description": "The ZEDEDA Storage Service is helper service to ZEDEDA Edge Application Service. This service allows customers to store edge application images and other artifacts (e.g. logo, screenshot, license, developer agreement etc.) in Datastores. This service allows customers to select datastores \n -- ZEDEDA owned and operated Datastores in public cloud (AWS S3 or Azure Blobstorage) \n -- Public Datastores (e.g. Docker Hub, Azure Container registry etc.) \n -- Customer owned and operated Datastores in public cloud (AWS S3 or Azure Blobstorage) \n -- Customer owned and operated Datastores in their own enterprise Data Centre \n This service allows binary files of the images and artifacts to be uploaded in one of the above Datastores, artifacts to be downloaded from datastores. Edge nodes will download edge application image binary files from these datastores", + "termsOfService": "https://www.zededa.com/terms", + "version": "1.0", + "contact": { + "name": "ZEDEDA API Support", + "url": "https://www.zededa.com/support", + "email": "support@zededa.com" + }, + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.html" + } + }, + "tags": [ + { + "name": "ImageConfiguration" + }, + { + "name": "DatastoreConfiguration" + }, + { + "name": "ArtifactManager" + }, + { + "name": "VolumeInstanceConfiguration" + }, + { + "name": "VolumeInstanceStatus" + } + ], + "basePath": "/api", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/v1/apps/images": { + "get": { + "summary": "Query edge application images", + "description": "Query the edge application image records.", + "operationId": "ImageConfiguration_QueryImages", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/Images" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "description": "Only summary of the records required", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "imageType", + "description": "Image type to ne matched.\n\n - IMAGE_TYPE_EVE: Base OS images for edge gateway\n - IMAGE_TYPE_APPLICATION: Edge application images\n - IMAGE_TYPE_EVEPRIVATE: Private Base OS images for edge gateway\n - IMAGE_TYPE_ARTIFACT: Image type to be used for configuration/patch service\n - IMAGE_TYPE_DOCKER_COMPOSE_TAR: Image type to be used for multi-file docker-compose projects\n - IMAGE_TYPE_DOCKER_RUNTIME: Image type to be used for Docker Compose runtime bundles\n - IMAGE_TYPE_ZKS_RUNTIME: Image type to be used for ZKS runtime bundles", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "IMAGE_TYPE_UNSPECIFIED", + "IMAGE_TYPE_EVE", + "IMAGE_TYPE_APPLICATION", + "IMAGE_TYPE_EVEPRIVATE", + "IMAGE_TYPE_ARTIFACT", + "IMAGE_TYPE_DOCKER_COMPOSE_TAR", + "IMAGE_TYPE_DOCKER_RUNTIME", + "IMAGE_TYPE_ZKS_RUNTIME" + ], + "default": "IMAGE_TYPE_UNSPECIFIED" + }, + { + "name": "imageStatus", + "description": "Image status to be matched.\n\n - IMAGE_STATUS_CREATED: Image metadata is created\n - IMAGE_STATUS_UPLOADING: Image binary is being uploaded to Datstore\n - IMAGE_STATUS_READY: Image is ready for download\n - IMAGE_STATUS_INUSE: Image is being used by edge applications\n - IMAGE_STATUS_FAILED: Image binary upload has failed\n - IMAGE_STATUS_UPLINKING: Image metadata is being uplinked with Datstore binary", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "IMAGE_STATUS_UNSPECIFIED", + "IMAGE_STATUS_CREATED", + "IMAGE_STATUS_PENDING", + "IMAGE_STATUS_UPLOADING", + "IMAGE_STATUS_READY", + "IMAGE_STATUS_INUSE", + "IMAGE_STATUS_ARCHIVED", + "IMAGE_STATUS_MAX", + "IMAGE_STATUS_FAILED", + "IMAGE_STATUS_UPLINKING" + ], + "default": "IMAGE_STATUS_UNSPECIFIED" + }, + { + "name": "datastoreId", + "description": "Datastore id to be matched.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "imageArch", + "description": "Image architecture to be matched.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "UNDEFINED", + "AMD64", + "ARM64" + ], + "default": "UNSPECIFIED" + }, + { + "name": "namePattern", + "description": "Image name pattern to be matched.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "originType", + "description": "origin of image", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "titlePattern", + "description": "Image title pattern to be matched.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ImageConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + }, + "post": { + "summary": "Create edge application image", + "description": "Create an edge application image record.", + "operationId": "ImageConfiguration_CreateImage", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this edge application image record will conflict with an already existing edge application image record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ImageConfig" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ImageConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + } + }, + "/v1/apps/images/baseos/latest": { + "get": { + "summary": "Query latest version of EVE image for each hardware architecture", + "description": "Query the latest version of EVE image for each hardware architecture.", + "operationId": "ImageConfiguration_QueryLatestImageVersions", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/Images" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "namePattern", + "description": "Image Architecture pattern to be matched.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "fields", + "description": "fields list for variable response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ImageConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + }, + "delete": { + "summary": "Delete edge application image", + "description": "Delete an edge application image record.", + "operationId": "ImageConfiguration_DeleteLatestImage", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because there are edge application bundles using this edge application image", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the image", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ImageConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + }, + "put": { + "summary": "Mark Eve image as latest", + "description": "Mark Eve image as latest for a given hardware architecture.", + "operationId": "ImageConfiguration_MarkEveImageLatest", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ImageConfig" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ImageConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + } + }, + "/v1/apps/images/baseos/latest/hwclass/{imageArch}": { + "get": { + "summary": "Get latest version of EVE image", + "description": "Query the latest version of EVE image for given hardware architecture.", + "operationId": "ImageConfiguration_GetLatestImageVersion", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ImageConfig" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "imageArch", + "description": "Image architecture to be matched : 'AMD64' or 'ARM64'.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ImageConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + }, + "put": { + "summary": "Mark Eve image as latest", + "description": "Mark Eve image as latest for a given hardware architecture.", + "operationId": "ImageConfiguration_MarkEveImageLatest2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "imageArch", + "description": "Image Architecture.", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "UNSPECIFIED", + "UNDEFINED", + "AMD64", + "ARM64" + ] + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the image.", + "readOnly": true, + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the image, unique across the enterprise. Once image is created, name can\u2019t be changed.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the image. Title can be changed at any time.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+" + }, + "description": { + "type": "string", + "description": "Detailed description of the image.", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined info", + "readOnly": true + }, + "imageFormat": { + "$ref": "#/definitions/configFormat", + "description": "Image binary format." + }, + "imageRelUrl": { + "type": "string", + "description": "Image relative path w.r.t. Datastore" + }, + "imageSha256": { + "type": "string", + "description": "Image checksum in SHA256 format" + }, + "imageVersion": { + "type": "string", + "description": "system defined info" + }, + "imageStatus": { + "$ref": "#/definitions/ImageStatus", + "description": "Image status", + "readOnly": true + }, + "imageType": { + "$ref": "#/definitions/ImageType", + "description": "Image type" + }, + "datastoreId": { + "type": "string", + "description": "Datastore Id where image binary is located.", + "title": "datastoreId will be deprecated", + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + }, + "imageSizeBytes": { + "type": "string", + "format": "int64", + "description": "Image size in KBytes." + }, + "imageError": { + "type": "string", + "description": "Image upload/uplink detailed error/status message", + "readOnly": true + }, + "imageLocal": { + "type": "string", + "description": "Internal image location.", + "readOnly": true + }, + "originType": { + "$ref": "#/definitions/Origin", + "description": "Origin type of image.", + "readOnly": true + }, + "projectAccessList": { + "type": "array", + "items": { + "type": "string" + }, + "description": "project access list of the image" + }, + "datastoreIdList": { + "type": "array", + "items": { + "type": "string" + }, + "description": "datastore Id list where image binary is located." + }, + "isLTS": { + "type": "boolean", + "description": "flag to indicate eve image is LTS or not" + } + }, + "description": "Image metadata for edge gateway Base OS or for eedge applications.", + "title": "Image metadata detail", + "required": [ + "name", + "title", + "imageFormat", + "imageType", + "datastoreId" + ] + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ImageConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + } + }, + "/v1/apps/images/id/{id}": { + "get": { + "summary": "Get edge application image", + "description": "Get the configuration (without security details) of an edge application image record.", + "operationId": "ImageConfiguration_GetImage", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ImageConfig" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the image", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ImageConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + }, + "delete": { + "summary": "Delete edge application image", + "description": "Delete an edge application image record.", + "operationId": "ImageConfiguration_DeleteImage", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because there are edge application bundles using this edge application image", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the image", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ImageConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + }, + "put": { + "summary": "Update edge application image", + "description": "Update an edge application image. The usual pattern to update an edge application image record is to retrieve the record and update with the modified values in a new body to update the edge application image record.", + "operationId": "ImageConfiguration_UpdateImage", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing edge application image record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the image.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "User defined name of the image, unique across the enterprise. Once image is created, name can\u2019t be changed.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the image. Title can be changed at any time.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+" + }, + "description": { + "type": "string", + "description": "Detailed description of the image.", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined info", + "readOnly": true + }, + "imageFormat": { + "$ref": "#/definitions/configFormat", + "description": "Image binary format." + }, + "imageRelUrl": { + "type": "string", + "description": "Image relative path w.r.t. Datastore" + }, + "imageSha256": { + "type": "string", + "description": "Image checksum in SHA256 format" + }, + "imageVersion": { + "type": "string", + "description": "system defined info" + }, + "imageArch": { + "$ref": "#/definitions/ModelArchType", + "description": "Image Architecture." + }, + "imageStatus": { + "$ref": "#/definitions/ImageStatus", + "description": "Image status", + "readOnly": true + }, + "imageType": { + "$ref": "#/definitions/ImageType", + "description": "Image type" + }, + "datastoreId": { + "type": "string", + "description": "Datastore Id where image binary is located.", + "title": "datastoreId will be deprecated", + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + }, + "imageSizeBytes": { + "type": "string", + "format": "int64", + "description": "Image size in KBytes." + }, + "imageError": { + "type": "string", + "description": "Image upload/uplink detailed error/status message", + "readOnly": true + }, + "imageLocal": { + "type": "string", + "description": "Internal image location.", + "readOnly": true + }, + "originType": { + "$ref": "#/definitions/Origin", + "description": "Origin type of image.", + "readOnly": true + }, + "projectAccessList": { + "type": "array", + "items": { + "type": "string" + }, + "description": "project access list of the image" + }, + "datastoreIdList": { + "type": "array", + "items": { + "type": "string" + }, + "description": "datastore Id list where image binary is located." + }, + "isLTS": { + "type": "boolean", + "description": "flag to indicate eve image is LTS or not" + } + }, + "description": "Image metadata for edge gateway Base OS or for eedge applications.", + "title": "Image metadata detail", + "required": [ + "name", + "title", + "imageFormat", + "imageArch", + "imageType", + "datastoreId" + ] + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ImageConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + } + }, + "/v1/apps/images/id/{id}/uplink": { + "put": { + "summary": "Uplinks edge application image", + "description": "Uplinks the edge application image record to an existing binry file in the datastore.", + "operationId": "ImageConfiguration_UplinkImage", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "202": { + "description": "Accepted. The API gateway accepted the request for uplinking but the uplinking process has not been completed. Please check ImageStatus and ImageError fields to track the status of uplinking process and any error messages.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because another request for uplink / upload is already in progress", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the image.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "User defined name of the image, unique across the enterprise. Once image is created, name can\u2019t be changed.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the image. Title can be changed at any time.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+" + }, + "description": { + "type": "string", + "description": "Detailed description of the image.", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined info", + "readOnly": true + }, + "imageFormat": { + "$ref": "#/definitions/configFormat", + "description": "Image binary format." + }, + "imageRelUrl": { + "type": "string", + "description": "Image relative path w.r.t. Datastore" + }, + "imageSha256": { + "type": "string", + "description": "Image checksum in SHA256 format" + }, + "imageVersion": { + "type": "string", + "description": "system defined info" + }, + "imageArch": { + "$ref": "#/definitions/ModelArchType", + "description": "Image Architecture." + }, + "imageStatus": { + "$ref": "#/definitions/ImageStatus", + "description": "Image status", + "readOnly": true + }, + "imageType": { + "$ref": "#/definitions/ImageType", + "description": "Image type" + }, + "datastoreId": { + "type": "string", + "description": "Datastore Id where image binary is located.", + "title": "datastoreId will be deprecated", + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + }, + "imageSizeBytes": { + "type": "string", + "format": "int64", + "description": "Image size in KBytes." + }, + "imageError": { + "type": "string", + "description": "Image upload/uplink detailed error/status message", + "readOnly": true + }, + "imageLocal": { + "type": "string", + "description": "Internal image location.", + "readOnly": true + }, + "originType": { + "$ref": "#/definitions/Origin", + "description": "Origin type of image.", + "readOnly": true + }, + "projectAccessList": { + "type": "array", + "items": { + "type": "string" + }, + "description": "project access list of the image" + }, + "datastoreIdList": { + "type": "array", + "items": { + "type": "string" + }, + "description": "datastore Id list where image binary is located." + }, + "isLTS": { + "type": "boolean", + "description": "flag to indicate eve image is LTS or not" + } + }, + "description": "Image metadata for edge gateway Base OS or for eedge applications.", + "title": "Image metadata detail", + "required": [ + "name", + "title", + "imageFormat", + "imageArch", + "imageType", + "datastoreId" + ] + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ImageConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + } + }, + "/v1/apps/images/name/{name}": { + "get": { + "summary": "Get edge application image", + "description": "Get the configuration (without security details) of an edge application image record.", + "operationId": "ImageConfiguration_GetImageByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ImageConfig" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "User defined name of the image, unique across the enterprise. Once image is created, name can\u2019t be changed.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ImageConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + } + }, + "/v1/apps/images/name/{name}/upload/chunked": { + "put": { + "summary": "Uploads edge application image binary file", + "description": "Uploads the edge application image binary file in the datastore. This method uses multiple HTTP requests to upload image binary file in smaller chunks. Recommended for larger file size.", + "operationId": "ImageConfiguration_UploadImageChunked", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "202": { + "description": "Accepted. The API gateway accepted the request for uploading but the upload process has not been completed. Please check ImageStatus and ImageError fields to track the status of upload process and any error messages.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because \n -- another request for uplink / upload is already in progress \n -- image has been already uploaded, can't be modified again", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "User defined name of the image, unique across the enterprise. Once image is created, name can\u2019t be changed.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "description": "part of the image binary", + "in": "body", + "required": true, + "schema": { + "type": "string", + "format": "byte", + "description": "part of the image binary", + "maxLength": 256, + "minLength": 3 + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + }, + { + "name": "Content-Range", + "in": "header", + "required": true, + "pattern": "bytes (\\d+-\\d+)/\\d+", + "description": "Content range in this request. Example : bytes 1024-2047/8192", + "type": "string" + } + ], + "tags": [ + "ImageConfiguration" + ], + "produces": [ + "application/json" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + } + }, + "/v1/apps/images/name/{name}/upload/file": { + "put": { + "summary": "Uploads edge application image binary file", + "description": "Uploads the edge application image binary file in the datastore. This method uses single HTTP request to upload the entire image binary file. Recommended for smaller file size.", + "operationId": "ImageConfiguration_UploadImageFile", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "202": { + "description": "Accepted. The API gateway accepted the request for uploading but the upload process has not been completed. Please check ImageStatus and ImageError fields to track the status of upload process and any error messages.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because \n -- another request for uplink / upload is already in progress \n -- image has been already uploaded, can't be modified again", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "User defined name of the image, unique across the enterprise. Once image is created, name can\u2019t be changed.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + }, + { + "name": "imageFile", + "in": "formData", + "required": true, + "type": "file", + "description": "Image binary file", + "x-mimetype": "application/octet-stream" + } + ], + "tags": [ + "ImageConfiguration" + ], + "produces": [ + "application/json" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + }, + "consumes": [ + "multipart/form-data" + ] + } + }, + "/v1/apps/images/projects": { + "get": { + "summary": "Query common project access list among a list of images", + "description": "Query common project access list among a list of images", + "operationId": "ImageConfiguration_QueryImageProjectList", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ImageProjectList" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "ids", + "description": "List of images IDs", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ImageConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + } + }, + "/v1/artifacts": { + "get": { + "summary": "Query artifact files", + "description": "Query the artifact file records.", + "operationId": "ArtifactManager_QueryArtifacts", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ArtifactList" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "description": "Only summary of the records required", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ArtifactManager" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + }, + "post": { + "summary": "Create artifact file in the file storage", + "description": "Create the artifact file in the file storage in AWS S3 or Azure BlobStorage", + "operationId": "ArtifactManager_CreateArtifact", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/Artifact" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Artifact" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ArtifactManager" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + } + }, + "/v1/artifacts/id/{id}": { + "get": { + "summary": "Download artifact file chunk by chunk", + "description": "Downloads the artifact file in a stream from the file storage", + "operationId": "ArtifactManager_GetArtifactStream", + "responses": { + "200": { + "description": "artifact chunk data(streaming responses)", + "schema": { + "type": "object", + "format": "byte", + "properties": { + "result": {}, + "error": { + "$ref": "#/definitions/googlerpcStatus" + } + }, + "description": "artifact chunk data", + "title": "Stream result of ArtifactStream" + } + }, + "206": { + "description": "Partial Content. The API gateway has fulfilled the partial GET request for the resource.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "307": { + "description": "Temporary Redirect. Returned when the requested artifactId is not available at the requested time", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "system generated unique id for an artifact", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ArtifactManager" + ], + "produces": [ + "application/octet-stream" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + }, + "delete": { + "summary": "Delete artifact file form the datastore", + "description": "Drops the artifact file from the file storage in AWS S3 or Azure BlobStorage", + "operationId": "ArtifactManager_DeleteArtifact", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "system generated unique id for an artifact", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ArtifactManager" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + } + }, + "/v1/artifacts/id/{id}/upload/chunked": { + "put": { + "summary": "Uploads the given chunk into the specified multiplePart file", + "description": "Uploads the given chunk into the specified file", + "operationId": "ArtifactManager_UploadArtifact", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "202": { + "description": "Accepted. The API gateway accepted the request for uploading but the uploading process has not been completed.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "description": "artifact chunk data", + "in": "body", + "required": true, + "schema": { + "type": "string", + "format": "byte", + "description": "artifact chunk data" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + }, + { + "name": "Content-Range", + "in": "header", + "required": true, + "pattern": "bytes (\\d+-\\d+)/\\d+", + "description": "Content range in this request. Example : bytes 1024-2047/8192", + "type": "string" + } + ], + "tags": [ + "ArtifactManager" + ], + "produces": [ + "application/json" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + } + }, + "/v1/artifacts/id/{id}/url": { + "get": { + "summary": "Generates the signedUrl for accessing the resource", + "description": "Generate the URL which can be used to access the resource from datastore like s3, Azure etc for specified amount of time.", + "operationId": "ArtifactManager_GetArtifactSignedUrl", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/Artifact" + } + }, + "307": { + "description": "Temporary Redirect. Returned when the requested artifactId is not available at the requested time", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "system generated unique id for an artifact", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "ArtifactManager" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + } + }, + "/v1/datastores": { + "get": { + "summary": "Query datastores", + "description": "Query the datastore records.", + "operationId": "DatastoreConfiguration_QueryDatastores", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/Datastores" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "description": "Only summary of the records required", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "namePattern", + "description": "Datastore name pattern to be matched.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "dsType", + "description": "Datastore type to be matched", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "originType", + "description": "origin of datastore", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "titlePattern", + "description": "Datastore title pattern to be matched.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "DatastoreConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + }, + "post": { + "summary": "Create Datastore", + "description": "Create a Datastore record.", + "operationId": "DatastoreConfiguration_CreateDatastore", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this datastore record will conflict with an already existing datastore record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DatastoreInfo" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "DatastoreConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + } + }, + "/v1/datastores/id/{id}": { + "get": { + "summary": "Get datastore", + "description": "Get the configuration (without security details) of a datastore record.", + "operationId": "DatastoreConfiguration_GetDatastore", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DatastoreInfo" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the datastore", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "DatastoreConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + }, + "delete": { + "summary": "Delete datastore", + "description": "Delete a datastore record.", + "operationId": "DatastoreConfiguration_DeleteDatastore", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because there are edge application images using this datastore", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the datastore", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "DatastoreConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + }, + "put": { + "summary": "Update datastore", + "description": "Update a datastore record. The usual pattern to update a datastore record is to retrieve the record and update with the modified values in a new body to update the datastore record.", + "operationId": "DatastoreConfiguration_UpdateDatastore", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing datastore record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "System defined universally unique Id of the datastore.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "User defined name of the datastore, unique across the enterprise. Once datastore is created, name can\u2019t be changed.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the datastore. Title can be changed at any time.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+" + }, + "description": { + "type": "string", + "description": "Detailed description of the datastore.", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined info", + "readOnly": true + }, + "enterpriseId": { + "type": "string" + }, + "dsType": { + "$ref": "#/definitions/DatastoreType", + "description": "Datastore type" + }, + "dsFQDN": { + "type": "string", + "description": "Datastore Fully Qualified Domain Name" + }, + "dsPath": { + "type": "string", + "description": "Datastore relative path w.r.t. Datastore root" + }, + "apiKey": { + "type": "string" + }, + "region": { + "type": "string", + "description": "Datastore region - valid for AWS S3 and Azure BlobStorage" + }, + "dsStatus": { + "$ref": "#/definitions/DatastoreStatus", + "description": "Datastore status" + }, + "dsErr": { + "type": "string", + "description": "Datastore validation detailed error/status message", + "readOnly": true + }, + "secret": { + "$ref": "#/definitions/DatastoreInfoSecrets", + "description": "Plain-text sensitive data" + }, + "encryptedSecrets": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Internal - Encrypted sensitive data", + "readOnly": true + }, + "cryptoKey": { + "type": "string", + "description": "Internal - Encryption Key context", + "readOnly": true + }, + "originType": { + "$ref": "#/definitions/Origin", + "description": "Origin type of datastore.", + "readOnly": true + }, + "certificateChain": { + "$ref": "#/definitions/CertificateChain", + "description": "Certificate chain of the certificate" + }, + "needClearText": { + "type": "boolean", + "description": "knob for sending creds in clear text" + }, + "projectAccessList": { + "type": "array", + "items": { + "type": "string" + }, + "description": "project access list of the datastore" + }, + "isManaged": { + "type": "boolean", + "description": "Managed datastore or not. Managed datastores are created and managed by ZEDEDA." + } + }, + "description": "Datastore idetail", + "title": "Datastore", + "required": [ + "name", + "title", + "dsType", + "dsFQDN", + "dsPath" + ] + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "DatastoreConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + } + }, + "/v1/datastores/name/{name}": { + "get": { + "summary": "Get datastore", + "description": "Get the configuration (without security details) of a datastore record.", + "operationId": "DatastoreConfiguration_GetDatastoreByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DatastoreInfo" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "User defined name of the datastore, unique across the enterprise. Once datastore is created, name can\u2019t be changed.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "DatastoreConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + } + }, + "/v1/datastores/projects": { + "get": { + "summary": "Query the project access list among a list of datastore", + "description": "Query the project access list among a list of datastore", + "operationId": "DatastoreConfiguration_QueryDatastoreProjectList", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DatastoreProjectList" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "ids", + "description": "List of datastore IDs", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "DatastoreConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + } + }, + "/v1/volumes/instances": { + "get": { + "summary": "Query edge volume instances", + "description": "Query the edge volume instance records.", + "operationId": "VolumeInstanceConfiguration_QueryVolumeInstances", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/VolInstList" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "deviceName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "projectName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "namePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "labelName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "appInstName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "deviceNamePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "projectNamePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "titlePattern", + "description": "title pattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "fields", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "VolumeInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + }, + "post": { + "summary": "Create edge volume instance", + "description": "Create an edge volume instance record.", + "operationId": "VolumeInstanceConfiguration_CreateVolumeInstance", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this edge volume instance record will conflict with an already existing edge volume instance record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VolInstConfig" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "VolumeInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + } + }, + "/v1/volumes/instances/id/{id}": { + "get": { + "summary": "Get edge volume instance", + "description": "Get the configuration (without security details) of an edge volume instance record.", + "operationId": "VolumeInstanceConfiguration_GetVolumeInstance", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/VolInstConfig" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "VolumeInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + }, + "delete": { + "summary": "Delete volume instance", + "description": "Delete a volume instance record.", + "operationId": "VolumeInstanceConfiguration_DeleteVolumeInstance", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "VolumeInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + }, + "put": { + "summary": "Update edge volume instance", + "description": "Update an edge volume instance. The usual pattern to update an edge volume instance record is to retrieve the record and update with the modified values in a new body to update the edge volume instance record.", + "operationId": "VolumeInstanceConfiguration_UpdateVolumeInstance", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing edge volume instance record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VolInstConfigUpdate_HttpRequest" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "VolumeInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + } + }, + "/v1/volumes/instances/id/{id}/status": { + "get": { + "summary": "Get edge volume instance status", + "description": "Get the status of an edge volume instance record.", + "operationId": "VolumeInstanceStatus_GetVolumeInstanceStatus", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/VolInstStatusMsg" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "VolumeInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + } + }, + "/v1/volumes/instances/id/{objid}/events": { + "get": { + "summary": "Get edge volume instance events by id", + "description": "Get configuration and status events of an edge volume by id.", + "operationId": "VolumeInstanceStatus_GetVolumeInstanceEvents", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/EventQueryResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "objid", + "description": "Object id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "startTime", + "description": "start time in timestamp", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "description": "end time", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "severity", + "description": "severity", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "resource", + "description": "resource", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "VolumeInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + } + }, + "/v1/volumes/instances/name/{name}": { + "get": { + "summary": "Get edge volume instance", + "description": "Get the configuration (without security details) of an edge volume instance record.", + "operationId": "VolumeInstanceConfiguration_GetVolumeInstanceByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/VolInstConfig" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "VolumeInstanceConfiguration" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + } + }, + "/v1/volumes/instances/name/{name}/status": { + "get": { + "summary": "Get edge volume instance status", + "description": "Get the status of an edge volume instance record.", + "operationId": "VolumeInstanceStatus_GetVolumeInstanceStatusByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/VolInstStatusMsg" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "VolumeInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + } + }, + "/v1/volumes/instances/name/{objname}/events": { + "get": { + "summary": "Get edge volume instance events by name", + "description": "Get configuration and status events of an edge volume by name.", + "operationId": "VolumeInstanceStatus_GetVolumeInstanceEventsByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/EventQueryResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "objname", + "description": "Object name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "startTime", + "description": "start time in timestamp", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "description": "end time", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "severity", + "description": "severity", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "resource", + "description": "resource", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "VolumeInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + } + }, + "/v1/volumes/instances/status": { + "get": { + "summary": "Query status of edge volume instances", + "description": "Query the status of edge volume instance records.", + "operationId": "VolumeInstanceStatus_QueryVolumeInstanceStatus", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/VolInstStatusListMsg" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "deviceName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "projectName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "namePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "runState", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "ONLINE", + "HALTED", + "INIT", + "REBOOTING", + "OFFLINE", + "UNKNOWN", + "UNPROVISIONED", + "PROVISIONED", + "SUSPECT", + "DOWNLOADING", + "RESTARTING", + "PURGING", + "HALTING", + "ERROR", + "VERIFYING", + "LOADING", + "CREATING_VOLUME", + "BOOTING", + "MAINTENANCE_MODE", + "START_DELAYED", + "BASEOS_UPDATING", + "PREPARING_POWEROFF", + "POWERING_OFF", + "PREPARED_POWEROFF" + ], + "default": "UNSPECIFIED" + }, + { + "name": "type", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "EMPTYDIR", + "BLOCKSTORAGE", + "HOSTFS", + "TMPFS", + "SECRET", + "NFS", + "AWS_BLOCK_STORAGE", + "CONTENT_TREE" + ], + "default": "UNSPECIFIED" + }, + { + "name": "imageName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "appInstName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "deviceNamePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "projectNamePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "summary", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "fields", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "VolumeInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + } + }, + "/v1/volumes/instances/status-config": { + "get": { + "summary": "Query status and config of edge volume instances", + "description": "Query the status and config of edge volume instance records.", + "operationId": "VolumeInstanceStatus_QueryVolumeInstanceStatusConfig", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/VolInstStatusListMsg" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "deviceName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "projectName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "namePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "runState", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "ONLINE", + "HALTED", + "INIT", + "REBOOTING", + "OFFLINE", + "UNKNOWN", + "UNPROVISIONED", + "PROVISIONED", + "SUSPECT", + "DOWNLOADING", + "RESTARTING", + "PURGING", + "HALTING", + "ERROR", + "VERIFYING", + "LOADING", + "CREATING_VOLUME", + "BOOTING", + "MAINTENANCE_MODE", + "START_DELAYED", + "BASEOS_UPDATING", + "PREPARING_POWEROFF", + "POWERING_OFF", + "PREPARED_POWEROFF" + ], + "default": "UNSPECIFIED" + }, + { + "name": "type", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "EMPTYDIR", + "BLOCKSTORAGE", + "HOSTFS", + "TMPFS", + "SECRET", + "NFS", + "AWS_BLOCK_STORAGE", + "CONTENT_TREE" + ], + "default": "UNSPECIFIED" + }, + { + "name": "imageName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "appInstName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "deviceNamePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "projectNamePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "summary", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "fields", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "VolumeInstanceStatus" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } + } + } + }, + "definitions": { + "Artifact": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "system generated unique id for an artifact", + "readOnly": true, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+a", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the artifact, unique across the enterprise. Once object is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "status": { + "$ref": "#/definitions/Status", + "description": "describes the status of the operation", + "readOnly": true + }, + "signedUrl": { + "type": "string", + "description": "generated signed url for an artifact", + "readOnly": true + }, + "ttl": { + "type": "number", + "format": "int64", + "description": "TTL for the URL", + "readOnly": true + } + }, + "description": "ArtifactKey idenfies the artifact by artifactId", + "title": "ArtifactKey detail" + }, + "ArtifactFilter": { + "type": "object" + }, + "ArtifactList": { + "type": "object", + "properties": { + "summary": { + "type": "object", + "$ref": "#/definitions/Summary", + "description": "Summary by state" + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/Artifact" + }, + "description": "Artifact Key list" + }, + "next": { + "$ref": "#/definitions/Cursor" + } + }, + "description": "Response returned for List artifact Keys", + "title": "ArtifactKeyListResponse detail" + }, + "ArtifactStream": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "chunk": { + "type": "string", + "format": "byte", + "description": "artifact chunk data" + } + }, + "description": "ArtifactKey idenfies the artifact by artifactId", + "title": "ArtifactKey detail" + }, + "BlobInfo": { + "type": "object", + "properties": { + "sha256": { + "type": "string" + }, + "resource": { + "$ref": "#/definitions/VolInstResource" + }, + "usage": { + "$ref": "#/definitions/DeviceObjectUsageInfo" + }, + "State": { + "$ref": "#/definitions/SWState" + }, + "progressPercentage": { + "type": "integer", + "format": "int64" + }, + "errInfo": { + "$ref": "#/definitions/DeviceError" + } + } + }, + "Certificate": { + "type": "object", + "properties": { + "cert": { + "type": "string", + "description": "base64 string of the parent certificate", + "title": "certificate details" + }, + "pvtKey": { + "type": "string", + "description": "base64 string of the parent pvt key" + }, + "publicKey": { + "type": "string", + "description": "base63 string of the public key" + }, + "passPhrase": { + "type": "string", + "description": "pass phase for the pvt key, this has to be filled if pvt key is encrypted with a pass phrase" + }, + "exportable": { + "type": "boolean", + "description": "Indicates if the private key can be exported." + }, + "reuseKey": { + "type": "boolean", + "description": "Indicates if the same key pair will be used on certificate renewal." + }, + "encryptedSecrets": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "user encrypted secrets map", + "title": "secrets encryption" + }, + "cryptoKey": { + "type": "string", + "description": "Crypto Key for decrypting user secret information" + }, + "publicKeyAlgorithm": { + "type": "string", + "description": "Public key algorithm.", + "title": "encryption algorithm" + }, + "rsaEcryption": { + "$ref": "#/definitions/RSA", + "description": "RSA encryption algorithm of the certificate" + }, + "ecdsaEncryption": { + "$ref": "#/definitions/ECDSA", + "description": "ECDSA encryption algorithm of the certificate" + }, + "validFrom": { + "type": "string", + "format": "date-time", + "description": "Certificate validatity start time", + "title": "certificate validity" + }, + "validTill": { + "type": "string", + "format": "date-time", + "description": "Certificate validatity start time" + }, + "sanValues": { + "$ref": "#/definitions/SANValues", + "description": "This holds the alternative name values like URIs, domain names IPs etc.", + "title": "Subject alternative name values" + }, + "subject": { + "$ref": "#/definitions/Subject", + "description": "Parameters for the subject of the X509 component of a certificate." + }, + "issuer": { + "$ref": "#/definitions/Subject", + "description": "Parameters for the issuer of the X509 component of a certificate." + }, + "serialNumber": { + "type": "string", + "description": "Unique identifier for each Certificate generated by an Certificate Issuer. " + }, + "basicContraintsValid": { + "type": "boolean", + "description": "This fields tells the basic constraints like isCA are correct." + }, + "keyUsage": { + "type": "integer", + "format": "int32", + "description": "Key usage extensions define the purpose of the public key contained in a certificate." + }, + "extendedKeyUsage": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Sequence of extended key usages." + }, + "signatureAlgorithm": { + "type": "string" + } + } + }, + "CertificateChain": { + "type": "object", + "properties": { + "certificates": { + "type": "array", + "items": { + "$ref": "#/definitions/Certificate" + }, + "description": "List of Certificate object holds the details of certificate like cert block, encryption type, validity, subject etc" + } + } + }, + "ClusterVolInstanceStatus": { + "type": "object", + "properties": { + "state": { + "$ref": "#/definitions/infoStorageVolumeState" + }, + "replicas": { + "type": "array", + "items": { + "$ref": "#/definitions/VolumeInstanceReplicaStatus" + } + }, + "attachmentState": { + "$ref": "#/definitions/infoStorageVolumePVCStatus" + }, + "creationTime": { + "type": "string", + "format": "date-time" + }, + "size": { + "type": "string", + "format": "uint64" + }, + "actualSize": { + "type": "string", + "format": "uint64" + }, + "robustness": { + "$ref": "#/definitions/infoStorageVolumeRobustness" + }, + "robustnessSubstate": { + "$ref": "#/definitions/infoStorageHealthStatus" + } + } + }, + "Cursor": { + "type": "object", + "properties": { + "pageToken": { + "type": "string", + "description": "Page Token" + }, + "orderBy": { + "type": "array", + "items": { + "type": "string" + }, + "description": "OrderBy helps in sorting the list response" + }, + "pageNum": { + "type": "number", + "format": "int64", + "description": "Page Number" + }, + "pageSize": { + "type": "number", + "format": "int64", + "description": "Defines the page size" + }, + "totalPages": { + "type": "number", + "format": "int64", + "description": "Total number of pages to be fetched." + } + }, + "description": "Cursor helps in filtering the various list response like edge-app bundle list, model list, bundle list etc. ", + "title": "Cursor is used as filter in list operation." + }, + "DatastoreInfo": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the datastore.", + "readOnly": true, + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the datastore, unique across the enterprise. Once datastore is created, name can\u2019t be changed.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the datastore. Title can be changed at any time.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+" + }, + "description": { + "type": "string", + "description": "Detailed description of the datastore.", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined info", + "readOnly": true + }, + "enterpriseId": { + "type": "string" + }, + "dsType": { + "$ref": "#/definitions/DatastoreType", + "description": "Datastore type" + }, + "dsFQDN": { + "type": "string", + "description": "Datastore Fully Qualified Domain Name" + }, + "dsPath": { + "type": "string", + "description": "Datastore relative path w.r.t. Datastore root" + }, + "apiKey": { + "type": "string" + }, + "region": { + "type": "string", + "description": "Datastore region - valid for AWS S3 and Azure BlobStorage" + }, + "dsStatus": { + "$ref": "#/definitions/DatastoreStatus", + "description": "Datastore status" + }, + "dsErr": { + "type": "string", + "description": "Datastore validation detailed error/status message", + "readOnly": true + }, + "secret": { + "$ref": "#/definitions/DatastoreInfoSecrets", + "description": "Plain-text sensitive data" + }, + "encryptedSecrets": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Internal - Encrypted sensitive data", + "readOnly": true + }, + "cryptoKey": { + "type": "string", + "description": "Internal - Encryption Key context", + "readOnly": true + }, + "originType": { + "$ref": "#/definitions/Origin", + "description": "Origin type of datastore.", + "readOnly": true + }, + "certificateChain": { + "$ref": "#/definitions/CertificateChain", + "description": "Certificate chain of the certificate" + }, + "needClearText": { + "type": "boolean", + "description": "knob for sending creds in clear text" + }, + "projectAccessList": { + "type": "array", + "items": { + "type": "string" + }, + "description": "project access list of the datastore" + }, + "isManaged": { + "type": "boolean", + "description": "Managed datastore or not. Managed datastores are created and managed by ZEDEDA." + } + }, + "description": "Datastore idetail", + "title": "Datastore", + "required": [ + "name", + "title", + "dsType", + "dsFQDN", + "dsPath" + ] + }, + "DatastoreInfoSecrets": { + "type": "object", + "properties": { + "apiKey": { + "type": "string", + "description": "Datastore access API key in plain-text" + }, + "apiPasswd": { + "type": "string", + "description": "Datastore access API password in plain-text" + } + } + }, + "DatastoreProjectList": { + "type": "object", + "properties": { + "projectDetails": { + "type": "array", + "items": { + "$ref": "#/definitions/ObjectDetail" + }, + "description": "List of projects which are associated with the given datastore" + }, + "totalCount": { + "type": "integer", + "format": "int64", + "description": "total number of records" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "Responded page details of filtered records" + } + } + }, + "DatastoreStatus": { + "type": "string", + "enum": [ + "DATASTORE_STATUS_UNSPECIFIED", + "DATASTORE_STATUS_CREATED", + "DATASTORE_STATUS_VERIFYING", + "DATASTORE_STATUS_ACTIVE", + "DATASTORE_STATUS_INACTIVE", + "DATASTORE_STATUS_FAILED" + ], + "default": "DATASTORE_STATUS_UNSPECIFIED", + "title": "Datastore status" + }, + "DatastoreType": { + "type": "string", + "enum": [ + "DATASTORE_TYPE_UNSPECIFIED", + "DATASTORE_TYPE_HTTP", + "DATASTORE_TYPE_HTTPS", + "DATASTORE_TYPE_AWSS3", + "DATASTORE_TYPE_SFTP", + "DATASTORE_TYPE_CONTAINERREGISTRY", + "DATASTORE_TYPE_AZUREBLOB", + "DATASTORE_TYPE_ZEDEDAS3", + "DATASTORE_TYPE_ZEDEDABLOB", + "DATASTORE_TYPE_FILE_STORAGE" + ], + "default": "DATASTORE_TYPE_UNSPECIFIED", + "description": "- DATASTORE_TYPE_HTTP: Datastore hosted on HTTP server\n - DATASTORE_TYPE_HTTPS: Datastore hosted on HTTPS server\n - DATASTORE_TYPE_AWSS3: Datastore hosted on AWS S3\n - DATASTORE_TYPE_SFTP: Datastore hosted on SFTP server\n - DATASTORE_TYPE_CONTAINERREGISTRY: Datastore hosted on Container Registry (e.g. Dockerhub, Azure Container Registry etc.)\n - DATASTORE_TYPE_AZUREBLOB: Datastore hosted on Azure BlobStorage\n - DATASTORE_TYPE_ZEDEDAS3: ZEDEDA Owned and Operated datastore hosted on AWS S3\n - DATASTORE_TYPE_ZEDEDABLOB: ZEDEDA Owned and Operated datastore hosted on Azure BlobStorage\n - DATASTORE_TYPE_FILE_STORAGE: Datastore hosted on File Storage (e.g. HTTP, HTTPS, AWS S3, SFTP, Azure Blob, etc.)", + "title": "Datastore type" + }, + "Datastores": { + "type": "object", + "properties": { + "summaryByType": { + "$ref": "#/definitions/Summary", + "description": "Type distribution summary of filtered Datastore records" + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/DatastoreInfo" + }, + "description": "List of filtered Datastore records" + }, + "summaryByCategory": { + "$ref": "#/definitions/Summary", + "description": "Category distribution summary of filtered Datastore records" + }, + "summaryByOrigin": { + "$ref": "#/definitions/Summary", + "description": "datstore by origin summary" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "Responded page details of filtered records" + } + } + }, + "DecsriptionCode": { + "type": "string", + "enum": [ + "DESCRIPTION_CODE_UNSPECIFIED", + "DESCRIPTION_CODE_RECEIVED", + "DESCRIPTION_CODE_PACKET_CORRUPT", + "DESCRIPTION_CODE_FAILED_TO_RECEIVE", + "DESCRIPTION_CODE_NETWORK_ERROR", + "DESCRIPTION_CODE_NOT_FOUND", + "DESCRIPTION_CODE_NOT_SUPPORTED", + "DESCRIPTION_CODE_INTERNAL_ERROR", + "DESCRIPTION_CODE_NOT_SPECIFIED", + "DESCRIPTION_CODE_UPLOAD_DONE", + "DESCRIPTION_CODE_ALREADY_EXISTS", + "DESCRIPTION_CODE_INVALID_PARAMS" + ], + "default": "DESCRIPTION_CODE_UNSPECIFIED", + "title": "description codes for internal use (Gilas and Niles)" + }, + "Description": { + "type": "object", + "properties": { + "descMessage": { + "type": "string", + "description": "description of an operation", + "readOnly": true + }, + "descCode": { + "type": "string", + "$ref": "#/definitions/DecsriptionCode", + "default": "UPLOAD_DONE", + "description": "description code for an operation", + "readOnly": true + } + }, + "description": "Description encapsulates the top level Description of the operation", + "title": "Description encapsulates the top level Description of the operation" + }, + "DeviceEntity": { + "type": "object", + "properties": { + "entity": { + "$ref": "#/definitions/Entity" + }, + "entityId": { + "type": "string" + }, + "entityName": { + "type": "string" + } + } + }, + "DeviceError": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Description of the error" + }, + "severity": { + "type": "string", + "$ref": "#/definitions/Severity", + "description": "Severity of the error" + }, + "timestamp": { + "type": "object", + "format": "date-time", + "description": "Timestamp at which error had occurred" + }, + "entities": { + "type": "array", + "items": { + "$ref": "#/definitions/DeviceEntity" + }, + "description": "objects referenced by the description or retry_condition" + }, + "retryCondition": { + "type": "string", + "description": "condition for retry" + } + }, + "description": "DeviceError store the error occurred at the device side", + "title": "DeviceError is used to store the error details of the hardware.", + "required": [ + "description", + "severity", + "timestamp", + "entities" + ] + }, + "DeviceObjectUsageInfo": { + "type": "object", + "properties": { + "createTime": { + "type": "object", + "format": "date-time", + "description": "Timestamp at which object was created" + }, + "refCount": { + "type": "number", + "format": "int64", + "description": "Object refcount" + }, + "lastRefCountChangeTime": { + "type": "object", + "format": "date-time", + "description": "Timestamp at which object refcount was last changed" + } + }, + "description": "DeviceObjectUsageInfo provides the metadata of object usage on the device", + "title": "DeviceObjectUsageInfo carries metadata of object usage on the device.", + "required": [ + "createTime", + "refCount", + "lastRefCountChangeTime" + ] + }, + "ECDSA": { + "type": "object", + "properties": { + "curve": { + "type": "string", + "description": "ECDSA curve to be used while signing the certificate." + } + } + }, + "Entity": { + "type": "string", + "enum": [ + "ENTITY_UNSPECIFIED", + "ENTITY_BASE_OS", + "ENTITY_SYSTEM_ADAPTER", + "ENTITY_VAULT", + "ENTITY_ATTESTATION", + "ENTITY_APP_INSTANCE", + "ENTITY_PORT", + "ENTITY_NETWORK", + "ENTITY_NETWORK_INSTANCE", + "ENTITY_CONTENT_TREE", + "ENTITY_CONTENT_BLOB", + "ENTITY_VOLUME" + ], + "default": "ENTITY_UNSPECIFIED", + "description": "- ENTITY_UNSPECIFIED: Invalid Device Entity\n - ENTITY_BASE_OS: Base OS entity\n - ENTITY_SYSTEM_ADAPTER: System Adapter Entity\n - ENTITY_VAULT: Vault Entity\n - ENTITY_ATTESTATION: Attestation Entity\n - ENTITY_APP_INSTANCE: App Instance Entity\n - ENTITY_PORT: Port Entity\n - ENTITY_NETWORK: Network Entity\n - ENTITY_NETWORK_INSTANCE: Network Instance Entity\n - ENTITY_CONTENT_TREE: ContentTree Entity\n - ENTITY_CONTENT_BLOB: Blob Entity\n - ENTITY_VOLUME: VOLUME Entity", + "title": "Edge node components" + }, + "EventQueryResponse": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/EventQueryResponseItem" + }, + "description": "Event Query response list" + }, + "next": { + "type": "object", + "$ref": "#/definitions/Cursor", + "description": "Cursor filter" + }, + "summary": { + "$ref": "#/definitions/Summary", + "description": "Summary of filtered events." + } + }, + "description": "Event query response request payload", + "title": "Event query Response payload detail", + "required": [ + "list", + "next" + ] + }, + "EventQueryResponseItem": { + "type": "object", + "properties": { + "user": { + "type": "string", + "description": "User name" + }, + "project": { + "type": "string", + "description": "project name" + }, + "device": { + "type": "string", + "description": "device name" + }, + "instance": { + "type": "string", + "description": "instance name" + }, + "severity": { + "type": "string", + "description": "severity: FIXME: should be ENUM" + }, + "description": { + "type": "string", + "description": "Event description" + }, + "timestamp": { + "type": "object", + "format": "date-time", + "description": "event timestamp" + }, + "source": { + "type": "object", + "$ref": "#/definitions/EventSource", + "description": "source" + }, + "resource": { + "type": "string", + "description": "Event resources" + }, + "eventType": { + "type": "string", + "description": "Event type" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Event tags" + }, + "resourceName": { + "type": "string", + "description": "Event resources" + }, + "jsonData": { + "type": "object", + "description": "Event resources" + }, + "clusterInstance": { + "type": "string", + "description": "clusterInstance name" + } + }, + "description": "Event query response item payload", + "title": "Event query response item payload detail" + }, + "EventSource": { + "type": "string", + "enum": [ + "EVENT_SOURCE_UNSPECIFIED", + "EVENT_SOURCE_SYSTEM", + "EVENT_SOURCE_USER" + ], + "default": "EVENT_SOURCE_UNSPECIFIED", + "description": "- EVENT_SOURCE_UNSPECIFIED: Default\n - EVENT_SOURCE_SYSTEM: Event is generated as a result of status change reported by edge node / application\n - EVENT_SOURCE_USER: Event is generated as a result of an user's configuration action", + "title": "Source of events" + }, + "ImageConfig": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the image.", + "readOnly": true, + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the image, unique across the enterprise. Once image is created, name can\u2019t be changed.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the image. Title can be changed at any time.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+" + }, + "description": { + "type": "string", + "description": "Detailed description of the image.", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined info", + "readOnly": true + }, + "imageFormat": { + "$ref": "#/definitions/configFormat", + "description": "Image binary format." + }, + "imageRelUrl": { + "type": "string", + "description": "Image relative path w.r.t. Datastore" + }, + "imageSha256": { + "type": "string", + "description": "Image checksum in SHA256 format" + }, + "imageVersion": { + "type": "string", + "description": "system defined info" + }, + "imageArch": { + "$ref": "#/definitions/ModelArchType", + "description": "Image Architecture." + }, + "imageStatus": { + "$ref": "#/definitions/ImageStatus", + "description": "Image status", + "readOnly": true + }, + "imageType": { + "$ref": "#/definitions/ImageType", + "description": "Image type" + }, + "datastoreId": { + "type": "string", + "description": "Datastore Id where image binary is located.", + "title": "datastoreId will be deprecated", + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + }, + "imageSizeBytes": { + "type": "string", + "format": "int64", + "description": "Image size in KBytes." + }, + "imageError": { + "type": "string", + "description": "Image upload/uplink detailed error/status message", + "readOnly": true + }, + "imageLocal": { + "type": "string", + "description": "Internal image location.", + "readOnly": true + }, + "originType": { + "$ref": "#/definitions/Origin", + "description": "Origin type of image.", + "readOnly": true + }, + "projectAccessList": { + "type": "array", + "items": { + "type": "string" + }, + "description": "project access list of the image" + }, + "datastoreIdList": { + "type": "array", + "items": { + "type": "string" + }, + "description": "datastore Id list where image binary is located." + }, + "isLTS": { + "type": "boolean", + "description": "flag to indicate eve image is LTS or not" + } + }, + "description": "Image metadata for edge gateway Base OS or for eedge applications.", + "title": "Image metadata detail", + "required": [ + "name", + "title", + "imageFormat", + "imageArch", + "imageType", + "datastoreId" + ] + }, + "ImageProjectList": { + "type": "object", + "properties": { + "projectDetails": { + "type": "array", + "items": { + "$ref": "#/definitions/ObjectDetail" + }, + "description": "List of projects which are are common among given list of images" + }, + "totalCount": { + "type": "integer", + "format": "int64", + "description": "total number of records" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "Responded page details of filtered records" + } + } + }, + "ImageStatus": { + "type": "string", + "enum": [ + "IMAGE_STATUS_UNSPECIFIED", + "IMAGE_STATUS_CREATED", + "IMAGE_STATUS_PENDING", + "IMAGE_STATUS_UPLOADING", + "IMAGE_STATUS_READY", + "IMAGE_STATUS_INUSE", + "IMAGE_STATUS_ARCHIVED", + "IMAGE_STATUS_MAX", + "IMAGE_STATUS_FAILED", + "IMAGE_STATUS_UPLINKING" + ], + "default": "IMAGE_STATUS_UNSPECIFIED", + "description": "- IMAGE_STATUS_CREATED: Image metadata is created\n - IMAGE_STATUS_UPLOADING: Image binary is being uploaded to Datstore\n - IMAGE_STATUS_READY: Image is ready for download\n - IMAGE_STATUS_INUSE: Image is being used by edge applications\n - IMAGE_STATUS_FAILED: Image binary upload has failed\n - IMAGE_STATUS_UPLINKING: Image metadata is being uplinked with Datstore binary", + "title": "Image status" + }, + "ImageType": { + "type": "string", + "enum": [ + "IMAGE_TYPE_UNSPECIFIED", + "IMAGE_TYPE_EVE", + "IMAGE_TYPE_APPLICATION", + "IMAGE_TYPE_EVEPRIVATE", + "IMAGE_TYPE_ARTIFACT", + "IMAGE_TYPE_DOCKER_COMPOSE_TAR", + "IMAGE_TYPE_DOCKER_RUNTIME", + "IMAGE_TYPE_ZKS_RUNTIME" + ], + "default": "IMAGE_TYPE_UNSPECIFIED", + "description": "- IMAGE_TYPE_EVE: Base OS images for edge gateway\n - IMAGE_TYPE_APPLICATION: Edge application images\n - IMAGE_TYPE_EVEPRIVATE: Private Base OS images for edge gateway\n - IMAGE_TYPE_ARTIFACT: Image type to be used for configuration/patch service\n - IMAGE_TYPE_DOCKER_COMPOSE_TAR: Image type to be used for multi-file docker-compose projects\n - IMAGE_TYPE_DOCKER_RUNTIME: Image type to be used for Docker Compose runtime bundles\n - IMAGE_TYPE_ZKS_RUNTIME: Image type to be used for ZKS runtime bundles", + "title": "Image types" + }, + "Images": { + "type": "object", + "properties": { + "terse": { + "$ref": "#/definitions/Summary", + "description": "Summary of filtered Image records" + }, + "summaryByImageStatus": { + "$ref": "#/definitions/Summary", + "description": "Imagestatus distribution summary" + }, + "summaryByImageArch": { + "$ref": "#/definitions/Summary", + "description": "Image architecture distribution summary" + }, + "summaryByImageType": { + "$ref": "#/definitions/Summary", + "description": "Image type distribution summary" + }, + "summaryByImageFormat": { + "$ref": "#/definitions/Summary", + "description": "Image format distribution summary" + }, + "summaryByOrigin": { + "$ref": "#/definitions/Summary", + "description": "images by origin summary " + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/ImageConfig" + }, + "description": "List of filtered Image records" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "Responded page details of filtered records" + } + } + }, + "ModelArchType": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "UNDEFINED", + "AMD64", + "ARM64" + ], + "default": "UNSPECIFIED" + }, + "ObjectDetail": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "ObjectRevision": { + "type": "object", + "properties": { + "prev": { + "type": "string", + "description": "Previous" + }, + "curr": { + "type": "string", + "description": "Current Database version of the record" + }, + "createdAt": { + "type": "object", + "format": "date-time", + "description": "The time, in milliseconds since the epoch, when the record was created." + }, + "createdBy": { + "type": "string", + "description": "User data: Created By" + }, + "updatedAt": { + "type": "object", + "format": "date-time", + "description": "The time, in milliseconds since the epoch, when the record was last updated." + }, + "updatedBy": { + "type": "string", + "description": "User data: Updated By" + } + }, + "description": "ObjectRevision store the user details, who has doent the necessary operation like Create Operation or update operation", + "title": "ObjectRevision is used to store the user information.", + "required": [ + "curr", + "createdAt", + "createdBy", + "updatedAt", + "updatedBy" + ] + }, + "ObjectType": { + "type": "string", + "enum": [ + "OBJECT_TYPE_UNSPECIFIED", + "OBJECT_TYPE_USER", + "OBJECT_TYPE_EDGE_NODE", + "OBJECT_TYPE_EDGE_APP", + "OBJECT_TYPE_IMAGE", + "OBJECT_TYPE_EDGE_APP_INSTANCE", + "OBJECT_TYPE_PROJECT", + "OBJECT_TYPE_NETWORK", + "OBJECT_TYPE_DATASTORE", + "OBJECT_TYPE_SERVICE", + "OBJECT_TYPE_SERVICE_INSTANCE", + "OBJECT_TYPE_ENTERPRISE", + "OBJECT_TYPE_ROLE", + "OBJECT_TYPE_CREDENTIAL", + "OBJECT_TYPE_NETWORK_INSTANCE", + "OBJECT_TYPE_VOLUME_INSTANCE", + "OBJECT_TYPE_REALM", + "OBJECT_TYPE_AUTHPROFILE", + "OBJECT_TYPE_POLICY", + "OBJECT_TYPE_APP_POLICY", + "OBJECT_TYPE_CLUSTER_INSTANCE", + "OBJECT_TYPE_PLUGIN", + "OBJECT_TYPE_DOC_POLICY", + "OBJECT_TYPE_ORCHESTRATOR_CLUSTER", + "OBJECT_TYPE_TAGS", + "OBJECT_TYPE_EDGE_NODE_INTERFACE", + "OBJECT_TYPE_DEPLOYMENT", + "OBJECT_TYPE_ENTITLEMENTS", + "OBJECT_TYPE_DATA_STREAM", + "OBJECT_TYPE_API_USAGE", + "OBJECT_TYPE_APP_INSTANCE_SNAPSHOT", + "OBJECT_TYPE_PATCH_ENVELOPE", + "OBJECT_TYPE_RESOURCE_USAGE_TRACK", + "OBJECT_TYPE_PATCH_ENVELOPE_REFERENCE", + "OBJECT_TYPE_DEV_PASSTHROUGH", + "OBJECT_TYPE_EDGE_NODE_CLUSTER", + "OBJECT_TYPE_ASSET_GROUP", + "OBJECT_TYPE_APP_PROFILE", + "OBJECT_TYPE_PROFILE_DEPLOYMENT", + "OBJECT_TYPE_ZKS_INSTANCE", + "OBJECT_TYPE_CLUSTER_GROUP" + ], + "default": "OBJECT_TYPE_UNSPECIFIED" + }, + "Origin": { + "type": "string", + "enum": [ + "ORIGIN_UNSPECIFIED", + "ORIGIN_IMPORTED", + "ORIGIN_LOCAL", + "ORIGIN_GLOBAL", + "ORIGIN_APP_PROFILE_LOCAL" + ], + "default": "ORIGIN_UNSPECIFIED", + "description": "- ORIGIN_UNSPECIFIED: default options, which says no Operation/Invalid Operation\n - ORIGIN_IMPORTED: Object imported from global enterprise.\n - ORIGIN_LOCAL: Objectl created locally.\n - ORIGIN_GLOBAL: Object created in global store,\nto use this type user should have root previlage.\n - ORIGIN_APP_PROFILE_LOCAL: Object created via App profile", + "title": "OriginType : enum specifies the Object orgigin type" + }, + "RSA": { + "type": "object", + "properties": { + "rsaBits": { + "type": "string", + "format": "int64", + "description": "RSA Encryption Key bit size." + } + } + }, + "RunState": { + "type": "string", + "enum": [ + "RUN_STATE_UNSPECIFIED", + "RUN_STATE_ONLINE", + "RUN_STATE_HALTED", + "RUN_STATE_INIT", + "RUN_STATE_REBOOTING", + "RUN_STATE_OFFLINE", + "RUN_STATE_UNKNOWN", + "RUN_STATE_UNPROVISIONED", + "RUN_STATE_PROVISIONED", + "RUN_STATE_SUSPECT", + "RUN_STATE_DOWNLOADING", + "RUN_STATE_RESTARTING", + "RUN_STATE_PURGING", + "RUN_STATE_HALTING", + "RUN_STATE_ERROR", + "RUN_STATE_VERIFYING", + "RUN_STATE_LOADING", + "RUN_STATE_CREATING_VOLUME", + "RUN_STATE_BOOTING", + "RUN_STATE_MAINTENANCE_MODE", + "RUN_STATE_START_DELAYED", + "RUN_STATE_BASEOS_UPDATING", + "RUN_STATE_PREPARING_POWEROFF", + "RUN_STATE_POWERING_OFF", + "RUN_STATE_PREPARED_POWEROFF" + ], + "default": "RUN_STATE_UNSPECIFIED", + "description": "- RUN_STATE_ONLINE: Entity Online\n - RUN_STATE_HALTED: Entity Halted\n - RUN_STATE_INIT: Entity Initializing\n - RUN_STATE_REBOOTING: Entity Rebooting\n - RUN_STATE_OFFLINE: Entity Offline\n - RUN_STATE_UNKNOWN: Entity state Unknown\n - RUN_STATE_UNPROVISIONED: Entity Unprovisioned\n - RUN_STATE_PROVISIONED: Entity Provisioned\n - RUN_STATE_SUSPECT: Entity Suspect\n - RUN_STATE_DOWNLOADING: Edge-node downloading entity artifacts\n - RUN_STATE_RESTARTING: Entity Restarting\n - RUN_STATE_PURGING: Entity Purging\n - RUN_STATE_HALTING: Entity Halting\n - RUN_STATE_ERROR: Entity encountered an error\n - RUN_STATE_VERIFYING: Verification of downloaded Artifacts in Progress.\n - RUN_STATE_LOADING: Loading of Artifacts into local datastore in Progress.\n - RUN_STATE_CREATING_VOLUME: Volume creation from artifacts in Progress\n - RUN_STATE_BOOTING: Entity booting up\n - RUN_STATE_MAINTENANCE_MODE: Entity maintenance mode\n - RUN_STATE_START_DELAYED: Application start delayed as per configuration\n - RUN_STATE_BASEOS_UPDATING: Device BaseOs Update in Progress\n - RUN_STATE_PREPARING_POWEROFF: device preparing power off - shutting down all app instances\n - RUN_STATE_POWERING_OFF: device powering off from local profile server\n - RUN_STATE_PREPARED_POWEROFF: device prepared power off - all app instances are shut down", + "title": "RunState - On update, please update RunState_HttpRequest as well" + }, + "RunStateConfig_HttpRequestRunState_HttpRequest": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "ONLINE", + "HALTED", + "INIT", + "REBOOTING", + "OFFLINE", + "UNKNOWN", + "UNPROVISIONED", + "PROVISIONED", + "SUSPECT", + "DOWNLOADING", + "RESTARTING", + "PURGING", + "HALTING", + "ERROR", + "VERIFYING", + "LOADING", + "CREATING_VOLUME", + "BOOTING", + "MAINTENANCE_MODE", + "START_DELAYED", + "BASEOS_UPDATING", + "PREPARING_POWEROFF", + "POWERING_OFF", + "PREPARED_POWEROFF" + ], + "default": "UNSPECIFIED", + "title": "RunState_HttpRequest - Only for swagger documentation" + }, + "SANValues": { + "type": "object", + "properties": { + "hosts": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of permitted hosts." + }, + "emaildIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of permitted email addresses." + }, + "uris": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of permitted URIs." + }, + "ips": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of permitted IP addresses." + }, + "dns": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of permitted DNS names." + }, + "upns": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of permitted User principal names." + } + } + }, + "SWState": { + "type": "string", + "enum": [ + "SW_STATE_UNSPECIFIED", + "SW_STATE_INITIAL", + "SW_STATE_DOWNLOAD_IN_PROGRESS", + "SW_STATE_DOWNLOADED", + "SW_STATE_VERIFIED", + "SW_STATE_INSTALLED", + "SW_STATE_BOOTING", + "SW_STATE_RUNNING", + "SW_STATE_HALTING", + "SW_STATE_HALTED", + "SW_STATE_REFRESHING", + "SW_STATE_PURGING", + "SW_STATE_RESOLVING_TAG", + "SW_STATE_RESOLVED_TAG", + "SW_STATE_CREATING_VOLUME", + "SW_STATE_CREATED_VOLUME", + "SW_STATE_VERIFYING", + "SW_STATE_LOADING", + "SW_STATE_LOADED", + "SW_STATE_AWAITNETWORKINSTANCE" + ], + "default": "SW_STATE_UNSPECIFIED", + "description": "- SW_STATE_RESOLVING_TAG: Prior to DOWNLOAD_STARTED we go through these:\nResolving an image tag\n - SW_STATE_RESOLVED_TAG: Tag has been resolved/failed\n - SW_STATE_CREATING_VOLUME: Prior to INSTALLED we go through these:\nVolume create in progress\n - SW_STATE_CREATED_VOLUME: Volume create done/failed\n - SW_STATE_VERIFYING: Verification in-progress\n - SW_STATE_LOADING: Loading blob in CAS\n - SW_STATE_LOADED: Loaded blob in CAS\n - SW_STATE_AWAITNETWORKINSTANCE: Wait for network instance", + "title": "State of EVE/Edge Application software" + }, + "Severity": { + "type": "string", + "enum": [ + "SEVERITY_UNSPECIFIED", + "SEVERITY_NOTICE", + "SEVERITY_WARNING", + "SEVERITY_ERROR" + ], + "default": "SEVERITY_UNSPECIFIED", + "title": "Severity tells the severity type" + }, + "Status": { + "type": "object", + "properties": { + "code": { + "type": "string", + "$ref": "#/definitions/StatusCode", + "default": "SUCCESS", + "description": "describes the overall status of the operation", + "readOnly": true + }, + "description": { + "$ref": "#/definitions/Description", + "description": "top level description of the operation", + "readOnly": true + } + }, + "description": "Status encapsulates the top level status of the operation", + "title": "Status encapsulates the top level status of the operation" + }, + "StatusCode": { + "type": "string", + "enum": [ + "STATUS_CODE_UNSPECIFIED", + "STATUS_CODE_SUCCESS", + "STATUS_CODE_FAILURE", + "STATUS_CODE_PARTIAL_SUCCESS" + ], + "default": "STATUS_CODE_UNSPECIFIED", + "title": "status codes for internal use (Gilas and Niles)" + }, + "Subject": { + "type": "object", + "properties": { + "commonName": { + "type": "string", + "description": "Certificate common name." + }, + "country": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of countries." + }, + "organization": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of organization." + }, + "organizationalUnit": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of Organizational Unit." + }, + "locality": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of locallity." + }, + "postalCode": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of Postal codes." + }, + "province": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of List of Prvince." + }, + "serialNumber": { + "type": "string", + "description": "Subject cerial number" + } + } + }, + "Summary": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Summary description" + }, + "total": { + "type": "number", + "format": "int64", + "description": "Total" + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "integer", + "format": "int64" + }, + "description": "Values: Map for storing " + } + }, + "description": "Summary is used to store the Summary details", + "title": "Summary is used to store the Summary details" + }, + "VolInstConfig": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the volume instance.", + "readOnly": true, + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the volume instance, unique across the enterprise. Once object is created, name can\u2019t be changed.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the volume instance. Title can be changed at any time.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+" + }, + "description": { + "type": "string", + "description": "Detailed description of the volume instance.", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined Revision info of the object", + "readOnly": true + }, + "projectId": { + "type": "string", + "description": "id of the project in which the volume instance is created" + }, + "type": { + "type": "string", + "$ref": "#/definitions/VolumeInstanceType", + "description": "type of Volume Instance" + }, + "deviceId": { + "type": "string", + "description": "id of the device on which volume instance is created" + }, + "multiattach": { + "type": "boolean", + "description": "flag to enable the volume to be attached to multiple app instances" + }, + "cleartext": { + "type": "boolean", + "description": "flag to keep the contents of the volume unencrypted (in clear text)" + }, + "accessmode": { + "type": "string", + "$ref": "#/definitions/VolumeInstanceAccessMode", + "description": "Access mode" + }, + "sizeBytes": { + "type": "integer", + "format": "uint64", + "description": "size of volume" + }, + "image": { + "type": "string", + "description": "name of the image" + }, + "implicit": { + "type": "boolean", + "description": "flag to create implicit volumes" + }, + "contentTreeId": { + "type": "string", + "description": "content tree ID" + }, + "label": { + "type": "string", + "description": "label" + }, + "purge": { + "$ref": "#/definitions/ZedCloudOpsCmd", + "description": "Purge Counter information" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "patchartifactvolume": { + "type": "string", + "description": "flag to indicate whether volume instance is created for patch envelope external artifact" + }, + "edgeNodeCluster": { + "type": "string", + "$ref": "#/definitions/VolInstEdgeNodeCluster", + "description": "edge node cluster associated with the volume instance" + } + }, + "title": "VolInstConfig - On update, please update VolInstConfigUpdate_HttpRequest as well" + }, + "VolInstConfigUpdate_HttpRequest": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "System defined universally unique Id of the volume instance.", + "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the volume instance, unique across the enterprise. Once object is created, name can\u2019t be changed.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the volume instance. Title can be changed at any time.", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+" + }, + "description": { + "type": "string", + "description": "Detailed description of the volume instance.", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined Revision info of the object", + "readOnly": true + }, + "projectId": { + "type": "string", + "description": "id of the project in which the volume instance is created" + }, + "type": { + "type": "string", + "$ref": "#/definitions/VolumeInstanceType", + "description": "type of Volume Instance" + }, + "deviceId": { + "type": "string", + "description": "id of the device on which volume instance is created" + }, + "multiattach": { + "type": "boolean", + "description": "flag to enable the volume to be attached to multiple app instances" + }, + "cleartext": { + "type": "boolean", + "description": "flag to keep the contents of the volume unencrypted (in clear text)" + }, + "accessmode": { + "type": "string", + "$ref": "#/definitions/VolumeInstanceAccessMode", + "description": "Access mode" + }, + "sizeBytes": { + "type": "integer", + "format": "uint64", + "description": "size of volume" + }, + "image": { + "type": "string", + "description": "name of the image" + }, + "implicit": { + "type": "boolean", + "description": "flag to create implicit volumes" + }, + "contentTreeId": { + "type": "string", + "description": "content tree ID" + }, + "label": { + "type": "string", + "description": "label" + }, + "purge": { + "$ref": "#/definitions/ZedCloudOpsCmd", + "description": "Purge Counter information" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + "maxLength": 32, + "pattern": "^[^<%&?/\\>]+$" + }, + "patchartifactvolume": { + "type": "string", + "description": "flag to indicate whether volume instance is created for patch envelope external artifact" + }, + "edgeNodeCluster": { + "type": "string", + "$ref": "#/definitions/VolInstEdgeNodeCluster", + "description": "edge node cluster associated with the volume instance" + } + }, + "title": "VolInstConfigUpdate_HttpRequest - Only for swagger documentation" + }, + "VolInstEdgeNodeCluster": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "edge node cluster ID" + }, + "designatedNodeID": { + "type": "string", + "description": "designated node ID" + } + } + }, + "VolInstList": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/VolInstShortConfig" + } + }, + "cfgList": { + "type": "array", + "items": { + "$ref": "#/definitions/VolInstConfig" + } + }, + "summaryByType": { + "$ref": "#/definitions/Summary" + }, + "next": { + "$ref": "#/definitions/Cursor" + } + } + }, + "VolInstResource": { + "type": "object", + "properties": { + "curSizeBytes": { + "type": "string", + "format": "uint64" + }, + "maxSizeBytes": { + "type": "string", + "format": "uint64" + } + } + }, + "VolInstShortConfig": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/VolumeInstanceType" + }, + "deviceId": { + "type": "string" + }, + "projectId": { + "type": "string" + } + } + }, + "VolInstStatusListMsg": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/VolInstStatusSummaryMsg" + } + }, + "summaryByState": { + "$ref": "#/definitions/Summary" + }, + "summaryByType": { + "$ref": "#/definitions/Summary" + }, + "totalCount": { + "type": "integer", + "format": "int64" + }, + "next": { + "$ref": "#/definitions/Cursor" + } + } + }, + "VolInstStatusMsg": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "deviceId": { + "type": "string", + "title": "device on which this volume is located" + }, + "runState": { + "$ref": "#/definitions/RunState" + }, + "projectId": { + "type": "string" + }, + "progressPercentage": { + "type": "integer", + "format": "int64" + }, + "usage": { + "$ref": "#/definitions/DeviceObjectUsageInfo" + }, + "resource": { + "$ref": "#/definitions/VolInstResource" + }, + "sha256": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/VolumeInstanceType" + }, + "deviceState": { + "$ref": "#/definitions/SWState" + }, + "blobs": { + "type": "array", + "items": { + "$ref": "#/definitions/BlobInfo" + } + }, + "errInfo": { + "type": "array", + "items": { + "$ref": "#/definitions/DeviceError" + } + }, + "rawStatus": { + "type": "string" + }, + "clusterVolInstanceStatus": { + "$ref": "#/definitions/ClusterVolInstanceStatus" + } + } + }, + "VolInstStatusSummaryMsg": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "deviceId": { + "type": "string" + }, + "runState": { + "$ref": "#/definitions/RunState" + }, + "createTime": { + "type": "string", + "format": "date-time" + }, + "projectId": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/VolumeInstanceType" + }, + "deviceState": { + "$ref": "#/definitions/SWState" + }, + "progressPercentage": { + "type": "integer", + "format": "int64" + }, + "deviceName": { + "type": "string" + }, + "projectName": { + "type": "string" + }, + "edgeNodeClusterID": { + "type": "string" + }, + "clusterVolInstanceStatus": { + "$ref": "#/definitions/ClusterVolInstanceStatus" + } + } + }, + "VolumeInstanceAccessMode": { + "type": "string", + "enum": [ + "VOLUME_INSTANCE_ACCESS_MODE_INVALID", + "VOLUME_INSTANCE_ACCESS_MODE_READWRITE", + "VOLUME_INSTANCE_ACCESS_MODE_READONLY", + "VOLUME_INSTANCE_ACCESS_MODE_MULTIREAD_SINGLEWRITE" + ], + "default": "VOLUME_INSTANCE_ACCESS_MODE_INVALID" + }, + "VolumeInstanceConfig_HttpRequestVolumeInstanceType_HttpRequest": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "EMPTYDIR", + "BLOCKSTORAGE", + "HOSTFS", + "TMPFS", + "SECRET", + "NFS", + "AWS_BLOCK_STORAGE", + "CONTENT_TREE" + ], + "default": "UNSPECIFIED" + }, + "VolumeInstanceReplicaStatus": { + "type": "object", + "properties": { + "nodeName": { + "type": "string" + }, + "rebuildProgressPercentage": { + "type": "integer", + "format": "int64" + }, + "status": { + "$ref": "#/definitions/infoStorageVolumeReplicaStatus" + } + } + }, + "VolumeInstanceType": { + "type": "string", + "enum": [ + "VOLUME_INSTANCE_TYPE_UNSPECIFIED", + "VOLUME_INSTANCE_TYPE_EMPTYDIR", + "VOLUME_INSTANCE_TYPE_BLOCKSTORAGE", + "VOLUME_INSTANCE_TYPE_HOSTFS", + "VOLUME_INSTANCE_TYPE_TMPFS", + "VOLUME_INSTANCE_TYPE_SECRET", + "VOLUME_INSTANCE_TYPE_NFS", + "VOLUME_INSTANCE_TYPE_AWS_BLOCK_STORAGE", + "VOLUME_INSTANCE_TYPE_CONTENT_TREE" + ], + "default": "VOLUME_INSTANCE_TYPE_UNSPECIFIED", + "title": "VolumeInstanceType - On update, please update VolumeInstanceType_HttpRequest as well" + }, + "ZcOpsStatus": { + "type": "string", + "enum": [ + "OPS_STATUS_UNSPECIFIED", + "OPS_STATUS_PENDING", + "OPS_STATUS_ONGOING", + "OPS_STATUS_COMPLETE" + ], + "default": "OPS_STATUS_UNSPECIFIED", + "description": "- OPS_STATUS_PENDING: In rare cases, system may not start operation when it was requested. Client will be notified that operation is PENDING\n - OPS_STATUS_ONGOING: system will start the operation, but at the time response was generated, operation is still ONGOING.\n - OPS_STATUS_COMPLETE: Even if the result of the operations may result in failure, but the OpsStatus will marked COMPLETE for almost all cases.", + "title": "ZedCloud internal operation status" + }, + "ZcOpsType": { + "type": "string", + "enum": [ + "OPS_TYPE_UNSPECIFIED", + "OPS_TYPE_READ", + "OPS_TYPE_DELETE", + "OPS_TYPE_CREATE", + "OPS_TYPE_UPDATE", + "OPS_TYPE_LIST" + ], + "default": "OPS_TYPE_UNSPECIFIED", + "title": "ZedCloud internal operation type" + }, + "ZedCloudOpsCmd": { + "type": "object", + "properties": { + "counter": { + "type": "number", + "format": "int64", + "description": "counter" + }, + "opsTime": { + "type": "object", + "format": "date-time", + "description": "Timestamp: Operational time" + } + }, + "description": "Zed cloud Operation command", + "title": "Zed cloud Operation command" + }, + "ZsrvError": { + "type": "object", + "properties": { + "ec": { + "$ref": "#/definitions/ZsrvErrorCode", + "title": "Enumrated error code, describes more granular numerical\nvalue than just httpStatus" + }, + "location": { + "type": "string", + "title": "Ignore: Internal field only" + }, + "details": { + "type": "string", + "title": "Field captures string description of details" + } + } + }, + "ZsrvErrorCode": { + "type": "string", + "enum": [ + "zMsgErrorNone", + "zMsgSucess", + "NotFound", + "AlreadyExists", + "VersionMismatch", + "RangeError", + "LargeResult", + "IncompleteData", + "InvalidData", + "FunctionUnsupported", + "NoMemory", + "SendFailure", + "Timeout", + "BadReqBody", + "BadReqParam", + "InvalidFieldFormat", + "UrlNotFound", + "ApiVersionNotSupported", + "Unauthorized", + "Forbidden", + "Conflict", + "NotModified", + "DependencyConflict", + "JsonFmtError", + "ProtoFmtError", + "CertError", + "DataBaseConnection", + "DBError", + "zMsgAccepted", + "zMsgCreated", + "PreConditionFailed", + "InternalServerError" + ], + "default": "zMsgErrorNone", + "description": "- zMsgErrorNone: common validation errors\n - IncompleteData: message had fields that weren't filled in\n - InvalidData: message contained the field that wasn't expected\n - FunctionUnsupported: this feature unavailable on this version of device\n - InvalidFieldFormat: message contained the field that wasn't correctly formatted\n - JsonFmtError: Marshal / Unmarshal errors\n - DataBaseConnection: generic DB error", + "title": "ZedCould internal error code" + }, + "ZsrvResponse": { + "type": "object", + "properties": { + "operationType": { + "$ref": "#/definitions/ZcOpsType", + "title": "Describes one of the operations type : possible values\n Read/Delete/Create/Update/List" + }, + "operationStatus": { + "$ref": "#/definitions/ZcOpsStatus", + "title": "if this is log running job" + }, + "objectKind": { + "type": "string", + "title": "zedcloud object kind on which the operation was performed" + }, + "objectId": { + "type": "string", + "title": "Unique value identifies the object that was operated on" + }, + "objectName": { + "type": "string", + "title": "name of the object" + }, + "objectRevision": { + "type": "string", + "title": "object revision post the operation, note Read operation\ndoesn't change the revision" + }, + "objectType": { + "$ref": "#/definitions/ObjectType" + }, + "operationTime": { + "type": "string", + "title": "time of operation" + }, + "startTime": { + "type": "string", + "title": "total time taken by operations" + }, + "endTime": { + "type": "string" + }, + "user": { + "type": "string", + "title": "the operation is performed on behalf of this user" + }, + "httpStatusCode": { + "type": "integer", + "format": "int32", + "title": "http response" + }, + "httpStatusMsg": { + "type": "string", + "title": "summary of the error in text format" + }, + "jobId": { + "type": "string", + "title": "for tracking asynchronous tasks" + }, + "error": { + "type": "array", + "items": { + "$ref": "#/definitions/ZsrvError" + }, + "title": "one or more errors will be set if the operation failed\ni.e. httpStatusCode != 2xx" + } + } + }, + "configFormat": { + "type": "string", + "enum": [ + "FmtUnknown", + "RAW", + "QCOW", + "QCOW2", + "VHD", + "VMDK", + "OVA", + "VHDX", + "CONTAINER", + "ISO", + "PVC" + ], + "default": "FmtUnknown" + }, + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "infoStorageHealthStatus": { + "type": "string", + "enum": [ + "STORAGE_HEALTH_STATUS_UNSPECIFIED", + "STORAGE_HEALTH_STATUS_HEALTHY", + "STORAGE_HEALTH_STATUS_DEGRADED_2_REPLICA_AVAILABLE_REPLICATING", + "STORAGE_HEALTH_STATUS_DEGRADED_2_REPLICA_AVAILABLE_NOT_REPLICATING", + "STORAGE_HEALTH_STATUS_DEGRADED_1_REPLICA_AVAILABLE_REPLICATING", + "STORAGE_HEALTH_STATUS_DEGRADED_1_REPLICA_AVAILABLE_NOT_REPLICATING", + "STORAGE_HEALTH_STATUS_FAILED" + ], + "default": "STORAGE_HEALTH_STATUS_UNSPECIFIED", + "description": "StorageHealthStatus is a higher level tracking status to show redundancy/failure-zone level\nand rebuild progress." + }, + "infoStorageVolumePVCStatus": { + "type": "string", + "enum": [ + "STORAGE_VOLUME_PVC_STATUS_UNSPECIFIED", + "STORAGE_VOLUME_PVC_STATUS_BOUND", + "STORAGE_VOLUME_PVC_STATUS_PENDING", + "STORAGE_VOLUME_PVC_STATUS_AVAILABLE", + "STORAGE_VOLUME_PVC_STATUS_RELEASED", + "STORAGE_VOLUME_PVC_STATUS_FAILED" + ], + "default": "STORAGE_VOLUME_PVC_STATUS_UNSPECIFIED", + "title": "StorageVolumePVCStatus is the kubernetes 'phase' of a PVC. Listed as status in cli.\n Refer to: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase" + }, + "infoStorageVolumeReplicaStatus": { + "type": "string", + "enum": [ + "STORAGE_VOLUME_REPLICA_STATUS_UNSPECIFIED", + "STORAGE_VOLUME_REPLICA_STATUS_REBUILDING", + "STORAGE_VOLUME_REPLICA_STATUS_ONLINE", + "STORAGE_VOLUME_REPLICA_STATUS_FAILED", + "STORAGE_VOLUME_REPLICA_STATUS_OFFLINE", + "STORAGE_VOLUME_REPLICA_STATUS_STARTING", + "STORAGE_VOLUME_REPLICA_STATUS_STOPPING" + ], + "default": "STORAGE_VOLUME_REPLICA_STATUS_UNSPECIFIED", + "description": "StorageVolumeReplicaStatus is a higher level status which combines replica and engine\n status to show a simplified view of a replica rebuild state." + }, + "infoStorageVolumeRobustness": { + "type": "string", + "enum": [ + "STORAGE_VOLUME_ROBUSTNESS_UNSPECIFIED", + "STORAGE_VOLUME_ROBUSTNESS_HEALTHY", + "STORAGE_VOLUME_ROBUSTNESS_DEGRADED", + "STORAGE_VOLUME_ROBUSTNESS_FAULTED" + ], + "default": "STORAGE_VOLUME_ROBUSTNESS_UNSPECIFIED", + "title": "StorageVolumeRobustness is the 'robustness' of a replicated csi-driver volume.\n Refer to: https://github.com/longhorn/longhorn-manager/blob/v1.6.2/k8s/pkg/apis/longhorn/v1beta1/volume.go#L25" + }, + "infoStorageVolumeState": { + "type": "string", + "enum": [ + "STORAGE_VOLUME_STATE_UNSPECIFIED", + "STORAGE_VOLUME_STATE_CREATING", + "STORAGE_VOLUME_STATE_ATTACHED", + "STORAGE_VOLUME_STATE_DETACHED", + "STORAGE_VOLUME_STATE_ATTACHING", + "STORAGE_VOLUME_STATE_DETACHING", + "STORAGE_VOLUME_STATE_DELETING" + ], + "default": "STORAGE_VOLUME_STATE_UNSPECIFIED", + "title": "StorageVolumeState is the kubernetes 'state' field of a replicated csi-driver volume.\n Refer to: https://github.com/longhorn/longhorn-manager/blob/v1.6.2/k8s/pkg/apis/longhorn/v1beta1/volume.go#L14" + }, + "protobufAny": { + "type": "object", + "properties": { + "typeUrl": { + "type": "string" + }, + "value": { + "type": "string", + "format": "byte" + } + } + }, + "protobufNullValue": { + "type": "string", + "enum": [ + "NULL_VALUE" + ], + "default": "NULL_VALUE", + "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\n The JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." + } + }, + "securityDefinitions": { + "BearerToken": { + "type": "apiKey", + "description": "Bearer token for user session", + "name": "Authorization", + "in": "header" + } + }, + "security": [ + { + "BearerToken": [] + } + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/storage" + } +} \ No newline at end of file diff --git a/openapi/zedge_user_service.swagger.json b/openapi/zedge_user_service.swagger.json new file mode 100644 index 0000000..52cbd44 --- /dev/null +++ b/openapi/zedge_user_service.swagger.json @@ -0,0 +1,9549 @@ +{ + "swagger": "2.0", + "info": { + "title": "ZEDEDA IAM Service", + "description": "ZEDEDA Identity and Access Management (IAM) Service helps you securely control access to zedcontrol resources. You use IAM to control who is authenticated (signed in) and authorized (has permissions) to use resources. ZEDEDA IAM Service helps you set up users and roles, and shows you how to protect your resources with role-based access control (RBAC). It also shows how to connect to other identity services to grant external users access to your enterprise resources.", + "termsOfService": "https://www.zededa.com/terms", + "version": "1.0", + "contact": { + "name": "ZEDEDA API Support", + "url": "https://www.zededa.com/support", + "email": "support@zededa.com" + }, + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.html" + } + }, + "tags": [ + { + "name": "IdentityAccessManagement" + }, + { + "name": "EnterpriseEntitlementsReport" + } + ], + "basePath": "/api", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/v1/authorization/profiles": { + "get": { + "summary": "Query AAA profiles", + "description": "Query the AAA profile records.", + "operationId": "IdentityAccessManagement_QueryAuthProfiles", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "SfdcId", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "HubspotId", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "project", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "namePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "all", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "roleName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "size", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "emailPattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "titlePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + }, + "post": { + "summary": "Create AAA profile", + "description": "Create an AAA profile record.", + "operationId": "IdentityAccessManagement_CreateAuthProfile", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this AAA profile record will conflict with an already existing AAA profile record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AuthorizationProfile" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + } + }, + "/v1/authorization/profiles/id/{id}": { + "get": { + "summary": "Get AAA profile", + "description": "Get the configuration (without security details) of an AAA profile record.", + "operationId": "IdentityAccessManagement_GetAuthProfile", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponseRead" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + }, + "delete": { + "summary": "Delete AAA profile", + "description": "Delete an AAA profile record.", + "operationId": "IdentityAccessManagement_DeleteAuthProfile", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + }, + "put": { + "summary": "Update AAA profile", + "description": "Update an AAA profile record. The usual pattern to update an AAA profile record is to retrieve the record and update with the modified values in a new body to update the AAA profile record.", + "operationId": "IdentityAccessManagement_UpdateAuthProfile", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing AAA profile record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "Unique system defined profile ID", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "enterpriseId": { + "type": "string", + "description": "Parent enterprise ID of the authorization profile", + "pattern": "[0-9A-Za-z_=-]{28}", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the profile. Profile name is unique within an enterprise. Name can't be changed once created", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "type": { + "$ref": "#/definitions/AuthType", + "description": "Type of the profile" + }, + "oauthProfile": { + "$ref": "#/definitions/OAUTHProfile", + "description": "Oauth profile configuration details" + }, + "passwordProfile": { + "$ref": "#/definitions/PasswordProfile" + }, + "testOnly": { + "type": "boolean" + }, + "active": { + "type": "boolean", + "description": "Mark this profile as active. Only one profile can be active in a given enterprise" + }, + "defaultRoleId": { + "type": "string", + "description": "Default Role ID to associate with the profile", + "pattern": "[0-9A-Za-z_=-]{28}" + }, + "title": { + "type": "string", + "description": "User defined title for the profile. Title can be changed anytime", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+" + }, + "description": { + "type": "string", + "description": "Detailed description of the profile", + "maxLength": 256 + }, + "profileType": { + "$ref": "#/definitions/AuthProfileType", + "description": "Authorization profile type" + }, + "disableAutoUserCreate": { + "type": "boolean", + "description": "Do not automatically create new users if this is set" + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined info", + "readOnly": true + } + }, + "description": "Authorization profile meta data", + "title": "Authorization profile detail", + "required": [ + "name", + "title", + "defaultRoleId" + ] + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + } + }, + "/v1/authorization/profiles/name/{name}": { + "get": { + "summary": "Get AAA profile", + "description": "Get the configuration (without security details) of an AAA profile record.", + "operationId": "IdentityAccessManagement_GetAuthProfileByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponseRead" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + } + }, + "/v1/cloud/policies": { + "get": { + "summary": "Query document policy", + "description": "Query document policy", + "operationId": "IdentityAccessManagement_QueryDocPolicy", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "SfdcId", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "HubspotId", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "project", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "namePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "all", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "roleName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "size", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "emailPattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "titlePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + }, + "post": { + "summary": "Create document policy", + "description": "Create document policy.", + "operationId": "IdentityAccessManagement_CreateDocPolicy", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing operation.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DocPolicy" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/IAM/" + } + } + }, + "/v1/cloud/policies/id/{id}": { + "get": { + "summary": "Get document policy by id", + "description": "Get document policy by id", + "operationId": "IdentityAccessManagement_GetDocPolicy", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponseRead" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + }, + "delete": { + "summary": "Deletes document policy by id", + "description": "Deletes document policy by id", + "operationId": "IdentityAccessManagement_DeleteDocPolicy", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + } + }, + "/v1/cloud/policies/latest": { + "put": { + "summary": "Mark document policy as latest", + "description": "Mark document policy as latest.", + "operationId": "IdentityAccessManagement_UpdateDocPolicyLatest", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing AAA profile record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DocPolicy" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + } + }, + "/v1/credentials": { + "post": { + "summary": "Create IAM credential", + "description": "Create an IAM credential record.", + "operationId": "IdentityAccessManagement_CreateCredential", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this IAM credential record will conflict with an already existing IAM credential record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Credential" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + }, + "put": { + "summary": "Update IAM credential", + "description": "Update an IAM credential record.", + "operationId": "IdentityAccessManagement_UpdateCredential", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing IAM credential record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Credential" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + } + }, + "/v1/credentials/id/{id}": { + "delete": { + "summary": "Delete IAM credential", + "description": "Delete an IAM credential record.", + "operationId": "IdentityAccessManagement_DeleteCredential", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + } + }, + "/v1/credentials/self": { + "put": { + "summary": "Update IAM credential", + "description": "Update user's own IAM credential record.", + "operationId": "IdentityAccessManagement_UpdateCredentialSelf", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing IAM credential record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Credential" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + } + }, + "/v1/enterprises": { + "get": { + "summary": "Query IAM Enterprises", + "description": "Query the IAM Enterprises records.", + "operationId": "IdentityAccessManagement_QueryEnterprises", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "SfdcId", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "HubspotId", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "project", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "namePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "all", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "roleName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "size", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "emailPattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "titlePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + }, + "post": { + "summary": "Create IAM Enterprise", + "description": "Create an IAM enterprise record.", + "operationId": "IdentityAccessManagement_CreateEnterprise", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this IAM role record will conflict with an already existing IAM role record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Enterprise" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + } + }, + "/v1/enterprises/id/{id}": { + "get": { + "summary": "Get enterprise", + "description": "Get the configuration (without security details) and status of an enterprise record.", + "operationId": "IdentityAccessManagement_GetEnterprise", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponseRead" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + }, + "delete": { + "summary": "Delete IAM role", + "description": "Delete an IAM enterprise record.", + "operationId": "IdentityAccessManagement_DeleteEnterprise", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because there are IAM users of this IAM role", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + }, + "put": { + "summary": "Update enterprise", + "description": "Update an enterprise record. The usual pattern to update an enterprise record is to retrieve the record and update with the modified values in a new body to update the enterprise record.", + "operationId": "IdentityAccessManagement_UpdateEnterprise2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing enterprise record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "Unique system defined enterprise ID", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "User defined name of the enterprise. Once enterprise is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "SfdcId": { + "type": "string" + }, + "HubspotId": { + "type": "string" + }, + "state": { + "$ref": "#/definitions/EnterpriseState", + "description": "Enterprise state" + }, + "type": { + "$ref": "#/definitions/EnterpriseType", + "description": "Enterprise type" + }, + "policyList": { + "$ref": "#/definitions/PolicyVersionList", + "description": "Policy version list" + }, + "parentEntpId": { + "type": "string", + "description": "Parent enterprise ID", + "title": "string id = 100;\nstring name = 101;", + "pattern": "[0-9A-Za-z_=-]{28}" + }, + "azureSubId": { + "type": "string", + "description": "Azure subscription ID tied to this enterprise" + }, + "title": { + "type": "string", + "description": "User defined title for the enterprise. Title can be changed any time", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+" + }, + "description": { + "type": "string", + "description": "Detailed description of the enterprise", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined info", + "readOnly": true + }, + "realms": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of realms associated with the enterprise" + }, + "attributes": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "enterprise level key-value pairs" + }, + "inheritAuthFromParent": { + "type": "boolean", + "description": "Perform authorization using parent enterprise" + }, + "childEnterprises": { + "type": "array", + "items": { + "$ref": "#/definitions/EnterpriseSummary" + }, + "description": "List of all child enterprises" + }, + "controllerHostURL": { + "type": "string", + "description": "zedcontrol host" + }, + "streamEvents": { + "$ref": "#/definitions/DataStream", + "description": "Enable / Disable streaming of events to 3rd party end point" + }, + "totpSettings": { + "$ref": "#/definitions/TOTPSettings", + "description": "Enterprise settings to enforce TOTP" + }, + "apiTokenExpiryInSeconds": { + "type": "integer", + "format": "int64", + "description": "Enterprise settings for API Token expiry to be set in seconds" + } + }, + "description": "Enterprise meta data", + "title": "Enterprise detail", + "required": [ + "name", + "title" + ] + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + } + }, + "/v1/enterprises/name/{name}": { + "get": { + "summary": "Get enterprise", + "description": "Get the configuration (without security details) and status of an enterprise record.", + "operationId": "IdentityAccessManagement_GetEnterpriseByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponseRead" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + } + }, + "/v1/enterprises/self": { + "get": { + "summary": "Get own enterprise", + "description": "Get the configuration (without security details) and status of user's own enterprise record.", + "operationId": "IdentityAccessManagement_GetEnterpriseSelf", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponseRead" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + }, + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ] + }, + "put": { + "summary": "Update enterprise", + "description": "Update an enterprise record. The usual pattern to update an enterprise record is to retrieve the record and update with the modified values in a new body to update the enterprise record.", + "operationId": "IdentityAccessManagement_UpdateEnterprise", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing enterprise record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Enterprise" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + } + }, + "/v1/entitlements": { + "get": { + "summary": "Get entitlement data for a enterprise", + "description": "Get entitlement data for a enterprise", + "operationId": "EnterpriseEntitlementsReport_GetEnterpriseEntitlementData", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/Entitlement" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "tenantId", + "description": "Enterprise id for which we want to get summary report for all objects", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EnterpriseEntitlementsReport" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/IAM" + } + }, + "put": { + "summary": "Set entitlement data for a enterprise", + "description": "Set entitlement data for a enterprise.", + "operationId": "EnterpriseEntitlementsReport_CreateEnterpriseEntitlementData", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this entitlement record will conflict with an already entitlement record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Entitlement" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EnterpriseEntitlementsReport" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + } + }, + "/v1/entitlements/allowedenterprises": { + "get": { + "summary": "Get the list of enterprises of which the logged user can view/edit entitlements", + "description": "Get the list of enterprises of which the logged user can view/edit entitlements", + "operationId": "EnterpriseEntitlementsReport_GetAllowedEnterprisesForEntitlements", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "SfdcId", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "HubspotId", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "project", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "namePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "all", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "roleName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "size", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "emailPattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "titlePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EnterpriseEntitlementsReport" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/IAM" + } + } + }, + "/v1/login": { + "post": { + "summary": "Login locally", + "description": "Login with zedcontrol as identity provider.", + "operationId": "IdentityAccessManagement_Login", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AAA_Frontend_LoginResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AAA_Frontend_LoginWithPasswordRequest" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + } + }, + "/v1/login/external": { + "post": { + "summary": "Login externally", + "description": "Login with external identity provider (e.g. Okta, gmail, Azure AD etc.). If the enterprise has an AAA Profile configured, zedcontrol will redirect the user to the login page of the external identity provider.", + "operationId": "IdentityAccessManagement_LoginExternal", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AAA_Frontend_LoginResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AAA_Frontend_LoginWithOauthRequest" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + } + }, + "/v1/login/forgot": { + "post": { + "summary": "Reset forgotten password", + "description": "Reset password in case it is forgotten", + "operationId": "IdentityAccessManagement_LoginForgotPassword", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AAARequestLoginForgotPassword" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + } + }, + "/v1/login/mode": { + "post": { + "summary": "Get AAA mode of the user", + "description": "Get the AAA mode of the user. AAA mode can be authentication and authorization with zedcontrol as identity provider or authentication (and optionally authorization) with external identity provider. Oauth2 is supported for external authentication protocols.", + "operationId": "IdentityAccessManagement_LoginMode", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AAA_Frontend_LoginModeResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AAA_Frontend_LoginModeRequest" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + } + }, + "/v1/login/oauth/callback": { + "post": { + "summary": "Login callback", + "description": "Login callback for external OAauth2 identity provider", + "operationId": "IdentityAccessManagement_LoginExternalOAuth2Callback", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AAA_Frontend_LoginResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AAA_Frontend_OAUTHCallbackRequest" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + } + }, + "/v1/login/signup/enterprise": { + "post": { + "summary": "Sign up for a new enterprise account", + "description": "Sign up for a new enterprise account in zedcontrol. Enterprise will not be active unless admin user is validated with email.", + "operationId": "IdentityAccessManagement_SignupEnterprise", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AAAResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AAARequestEnterpriseSignup" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + } + }, + "/v1/login/signup/user": { + "post": { + "summary": "Get enterprise", + "description": "Get the configuration (without security details) and status of an enterprise record.", + "operationId": "IdentityAccessManagement_SignupUser", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AAAResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AAARequestAdminUserSignup" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + } + }, + "/v1/logout": { + "post": { + "summary": "Logout", + "description": "Logout from zedcontrol. Current user session will be terminated. In case of login with external identity provider, user session in the identity provider will not be impacted.", + "operationId": "IdentityAccessManagement_Logout", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AAA_Frontend_LogoutResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AAA_Frontend_LogoutRequest" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + } + }, + "/v1/realms": { + "get": { + "summary": "Query all realms", + "description": "Query all realms.", + "operationId": "IdentityAccessManagement_QueryRealms", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "SfdcId", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "HubspotId", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "project", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "namePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "all", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "roleName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "size", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "emailPattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "titlePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/IAM/" + } + }, + "post": { + "summary": "Create a realm for an enterprise", + "description": "Create a realm. For example, zededa.com can be registered as a realm for an enterprise. Only those Oauth users who belong to this domain will be allowed to login to the enterprise.", + "operationId": "IdentityAccessManagement_CreateRealm", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this realm will conflict with an already existing realm.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Realm" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/IAM/" + } + } + }, + "/v1/realms/id/{id}": { + "get": { + "summary": "Get a realm", + "description": "Get the details of a realm", + "operationId": "IdentityAccessManagement_GetRealm", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponseRead" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/IAM" + } + }, + "delete": { + "summary": "Delete a realm", + "description": "Delete a realm.", + "operationId": "IdentityAccessManagement_DeleteRealm", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/IAM/" + } + }, + "put": { + "summary": "Update a realm", + "description": "Update a realm. The usual pattern to update a realm is to retrieve the record and update with the modified values in a new body to update the realm.", + "operationId": "IdentityAccessManagement_UpdateRealm", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing realm.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "Unique system defined realm ID", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "example": { + "id": "EAJ1ABAi-KOom7dJlrBoE8eq1pj9", + "name": "zededa.com", + "enterpriseId": "AAFlABDe6Nm63ixF5LJBbk9Keqp6", + "title": "zededa", + "description": "Test realm", + "revision": { + "prev": "", + "curr": "1", + "createdAt": "2020-07-17T06:03:14Z", + "createdBy": "us.root@zededa.com", + "updatedAt": "2020-07-17T06:03:14Z", + "updatedBy": "us.root@zededa.com" + } + }, + "properties": { + "name": { + "type": "string", + "description": "User defined name of the realm. Name cannot be changed once created", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "enterpriseId": { + "type": "string", + "description": "Enterprise ID of the enterprise where the realm is to be created", + "pattern": "[0-9A-Za-z_=-]{28}", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the realm. Title can be changed anytime", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+" + }, + "description": { + "type": "string", + "description": "Detailed description of the realm", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "System defined info", + "readOnly": true + } + }, + "description": "Realm meta data", + "title": "Realm detail", + "required": [ + "name", + "title", + "enterpriseId" + ] + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/IAM/" + } + } + }, + "/v1/realms/name/{name}": { + "get": { + "summary": "Get IAM realm", + "description": "Get a realm by name.", + "operationId": "IdentityAccessManagement_GetRealmByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponseRead" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/IAM" + } + } + }, + "/v1/reports/allowedenterprises": { + "get": { + "summary": "Get the list of enterprises of which the logged user can query reports", + "description": "Get the list of enterprises of which the logged user can query reports", + "operationId": "EnterpriseEntitlementsReport_GetAllowedEnterprises", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "SfdcId", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "HubspotId", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "project", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "namePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "all", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "roleName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "size", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "emailPattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "titlePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EnterpriseEntitlementsReport" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/IAM" + } + } + }, + "/v1/reports/apps/instance": { + "get": { + "summary": "Get appInst report", + "description": "Get appInst report", + "operationId": "EnterpriseEntitlementsReport_GetAppInstReport", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AppInstReport" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "tenantId", + "description": "Enterprise id for which we want to get summary report for all objects", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EnterpriseEntitlementsReport" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/IAM" + } + } + }, + "/v1/reports/device": { + "get": { + "summary": "Get device report", + "description": "Get device report", + "operationId": "EnterpriseEntitlementsReport_GetDeviceReport", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/DeviceReport" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "tenantId", + "description": "Enterprise id for which we want to get summary report for all objects", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EnterpriseEntitlementsReport" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/IAM" + } + } + }, + "/v1/reports/plugin": { + "get": { + "summary": "Get plugin report", + "description": "Get plugin report", + "operationId": "EnterpriseEntitlementsReport_GetPluginReport", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/PluginReport" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "tenantId", + "description": "Enterprise id for which we want to get summary report for all objects", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EnterpriseEntitlementsReport" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/IAM" + } + } + }, + "/v1/reports/project": { + "get": { + "summary": "Get project report", + "description": "Get project report", + "operationId": "EnterpriseEntitlementsReport_GetProjectReport", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/ProjectReport" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "tenantId", + "description": "Enterprise id for which we want to get summary report for all objects", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EnterpriseEntitlementsReport" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/IAM" + } + } + }, + "/v1/reports/user": { + "get": { + "summary": "Get user report", + "description": "Get user report", + "operationId": "EnterpriseEntitlementsReport_GetUserReport", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/UserReport" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "tenantId", + "description": "Enterprise id for which we want to get summary report for all objects", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "EnterpriseEntitlementsReport" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/IAM" + } + } + }, + "/v1/roles": { + "get": { + "summary": "Query IAM Roles", + "description": "Query the IAM Role records.", + "operationId": "IdentityAccessManagement_QueryRoles", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "SfdcId", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "HubspotId", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "project", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "namePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "all", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "roleName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "size", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "emailPattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "titlePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + }, + "post": { + "summary": "Create IAM role", + "description": "Create an IAM role record.", + "operationId": "IdentityAccessManagement_CreateRole", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this IAM role record will conflict with an already existing IAM role record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Role" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + } + }, + "/v1/roles/id/{id}": { + "get": { + "summary": "Get IAM role", + "description": "Get the configuration (without security details) of an IAM role record.", + "operationId": "IdentityAccessManagement_GetRole", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponseRead" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + }, + "delete": { + "summary": "Delete IAM role", + "description": "Delete an IAM role record.", + "operationId": "IdentityAccessManagement_DeleteRole", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because there are IAM users of this IAM role", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + }, + "put": { + "summary": "Update IAM role", + "description": "Update an IAM role record. The usual pattern to update an IAM role record is to retrieve the record and update with the modified values in a new body to update the IAM role record.", + "operationId": "IdentityAccessManagement_UpdateRole", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing IAM role record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "Unique system defined role ID", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "example": { + "id": "AAGFABAEqnH4je5PHZTXSmHOs-XC", + "name": "SysRoot", + "title": "SysRoot", + "description": "", + "revision": { + "prev": "", + "curr": "1", + "createdAt": "2020-07-16T18:19:56Z", + "createdBy": "SYSTEM_ROOT", + "updatedAt": "1970-01-01T00:00:01Z", + "updatedBy": "SYSTEM_ROOT" + }, + "type": "USER_ROLE_CLUSTER", + "state": "ROLE_STATE_ACTIVE", + "scopes": [ + { + "accessDevice": "PermissionAccessCreateReadUpdateDelete", + "accessApp": "PermissionAccessCreateReadUpdateDelete", + "accessUser": "PermissionAccessCreateReadUpdateDelete", + "accessStorage": "PermissionAccessCreateReadUpdateDelete", + "accessEnterprise": "PermissionAccessCreateReadUpdateDelete", + "enterpriseFilter": [ + "srAll" + ], + "projectFilter": [ + "srAll" + ] + } + ] + }, + "properties": { + "name": { + "type": "string", + "description": "User defined name of the role. Name cannot be changed once created", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the role. Title can be changed anytime", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+" + }, + "description": { + "type": "string", + "description": "Detailed description of the role", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "System defined info", + "readOnly": true + }, + "type": { + "$ref": "#/definitions/UserRole", + "description": "Type of the role" + }, + "state": { + "$ref": "#/definitions/RoleState", + "description": "State of the role" + }, + "scopes": { + "type": "array", + "items": { + "$ref": "#/definitions/Scope" + }, + "description": "Scopes/Permissions associated with the role" + }, + "projectTags": { + "type": "string", + "additionalProperties": { + "type": "string" + }, + "description": "Map of project tags filter" + } + }, + "description": "Role meta data", + "title": "Role detail", + "required": [ + "name", + "title", + "type", + "scopes" + ] + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + } + }, + "/v1/roles/name/{name}": { + "get": { + "summary": "Get IAM role", + "description": "Get the configuration (without security details) of an IAM role record.", + "operationId": "IdentityAccessManagement_GetRoleByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponseRead" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + } + }, + "/v1/roles/self": { + "get": { + "summary": "Get own IAM role", + "description": "Get the configuration (without security details) of user's own IAM role record.", + "operationId": "IdentityAccessManagement_GetRoleSelf", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponseRead" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + }, + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ] + } + }, + "/v1/sessions": { + "get": { + "summary": "Query user sessions", + "description": "Query all the active user sessions for all users.", + "operationId": "IdentityAccessManagement_QueryUserSessions", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AAASuccessResponseQueryAllSessionDetails" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + }, + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ] + } + }, + "/v1/sessions/refresh": { + "put": { + "summary": "Refresh current user session", + "description": "Refresh the current user session. The current session will be extended for another 4 hours.", + "operationId": "IdentityAccessManagement_RefreshUserSession", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AAA_Frontend_RefreshResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + }, + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ] + } + }, + "/v1/sessions/self": { + "get": { + "summary": "Get current user session", + "description": "Get the details of the current user session.", + "operationId": "IdentityAccessManagement_GetUserSessionSelf", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AAA_Frontend_SessionDetailsResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + }, + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ] + } + }, + "/v1/sessions/token": { + "get": { + "summary": "Get user session", + "description": "Get the details of a user session with given session token.", + "operationId": "IdentityAccessManagement_GetUserSession2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AAA_Frontend_SessionDetailsResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "sessionToken.base64", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + } + }, + "/v1/sessions/token/self": { + "post": { + "summary": "Generate a new session token", + "description": "Generate a new token with an extended expiry time. The desired expiry time should be passed as number of seconds.", + "operationId": "IdentityAccessManagement_CreateUserSessionSelf", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AAA_Frontend_GenerateTokenResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + }, + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ] + } + }, + "/v1/sessions/token/{sessionToken.base64}": { + "get": { + "summary": "Get user session", + "description": "Get the details of a user session with given session token.", + "operationId": "IdentityAccessManagement_GetUserSession", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/AAA_Frontend_SessionDetailsResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "sessionToken.base64", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + } + }, + "/v1/users": { + "get": { + "summary": "Query IAM users", + "description": "Query the IAM user records.", + "operationId": "IdentityAccessManagement_QueryUsers", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of invalid value of filter parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "summary", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "SfdcId", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "HubspotId", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "project", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "namePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "all", + "in": "query", + "required": false, + "type": "boolean" + }, + { + "name": "roleName", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "size", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "emailPattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "titlePattern", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.pageToken", + "description": "Page Token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "next.orderBy", + "description": "OrderBy helps in sorting the list response", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "next.pageNum", + "description": "Page Number", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.pageSize", + "description": "Defines the page size", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "next.totalPages", + "description": "Total number of pages to be fetched.", + "in": "query", + "required": false, + "type": "number", + "format": "int64" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + }, + "post": { + "summary": "Create IAM user", + "description": "Create an IAM user record.", + "operationId": "IdentityAccessManagement_CreateUser", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponse" + } + }, + "400": { + "description": "Bad Request. The API gateway did not process the request because of missing parameter or invalid value of parameters.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this IAM user record will conflict with an already existing IAM user record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DetailedUser" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + } + }, + "/v1/users/id/{id}": { + "get": { + "summary": "Get IAM user", + "description": "Get the configuration (without security details) of an IAM user record.", + "operationId": "IdentityAccessManagement_GetUser", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponseRead" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + }, + "delete": { + "summary": "Delete IAM user", + "description": "Delete an IAM user record.", + "operationId": "IdentityAccessManagement_DeleteUser", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + }, + "put": { + "summary": "Update IAM user", + "description": "Update an IAM user record. The usual pattern to update an IAM user record is to retrieve the record and update with the modified values in a new body to update the IAM user record.", + "operationId": "IdentityAccessManagement_UpdateUser2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing IAM user record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "Unique system defined user ID", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "username": { + "type": "string", + "description": "User defined name", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "SfdcId": { + "type": "string" + }, + "HubspotId": { + "type": "string" + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined info", + "readOnly": true + }, + "state": { + "$ref": "#/definitions/UserState", + "description": "User state", + "readOnly": true + }, + "firstName": { + "type": "string", + "description": "First name of the user" + }, + "locale": { + "type": "string", + "description": "Locale of the user" + }, + "fullName": { + "type": "string", + "description": "Full name of the user" + }, + "timeZone": { + "type": "string", + "description": "Preferred time zone of the user" + }, + "roleId": { + "type": "string", + "description": "Role associated with the user", + "pattern": "[0-9A-Za-z_=-]{28}" + }, + "type": { + "$ref": "#/definitions/AuthType", + "description": "Type of the user" + }, + "email": { + "type": "string", + "description": "Email of the user" + }, + "phone": { + "type": "string", + "description": "Phone number of the user" + }, + "notifyPref": { + "type": "string", + "description": "Notification preference of the user" + }, + "LastLoginTime": { + "type": "string", + "format": "date-time", + "description": "Last login time of the user", + "title": "Operational Status to be returned to CLI/UI" + }, + "LastLogoutTime": { + "type": "string", + "format": "date-time", + "description": "Last logout time of the user" + }, + "emailState": { + "$ref": "#/definitions/IdState", + "description": "Email state", + "readOnly": true + }, + "phoneState": { + "$ref": "#/definitions/IdState", + "description": "Phone state", + "readOnly": true + }, + "customUserInput": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom user parameters" + }, + "allowedEnterprises": { + "type": "array", + "items": { + "$ref": "#/definitions/AllowedEnterprise" + }, + "description": "Permitted list of enterprises with their associated roles" + }, + "enterpriseId": { + "type": "string", + "description": "Origin enterprise of the user", + "readOnly": true + }, + "totpEnabled": { + "type": "boolean", + "description": "Is TOTP enrolment enabled", + "readOnly": true + }, + "allowedEntpProjectList": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ProjectList" + }, + "description": "Allowed enterprise project", + "title": "internal" + }, + "zksSyncStatus": { + "$ref": "#/definitions/ZksSyncStatus", + "description": "ZKS Servers Sync Status" + }, + "tokenZksSyncStatus": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ZksSyncStatus" + }, + "description": "User session token sync status" + }, + "passwordExpiryNotificationPeriodInSeconds": { + "type": "integer", + "format": "int64", + "description": "Password expiry notification period in seconds" + } + }, + "description": "User meta data", + "title": "User detail", + "required": [ + "username", + "email", + "roleId" + ] + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + } + }, + "/v1/users/name/{name}": { + "get": { + "summary": "Get IAM user", + "description": "Get the configuration (without security details) of an IAM user record.", + "operationId": "IdentityAccessManagement_GetUserByName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponseRead" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + } + }, + "/v1/users/self": { + "get": { + "summary": "Get own IAM user", + "description": "Get the configuration (without security details) of user's own IAM user record.", + "operationId": "IdentityAccessManagement_GetUserSelf", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponseRead" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + }, + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ] + }, + "put": { + "summary": "Update IAM user", + "description": "Update an IAM user record. The usual pattern to update an IAM user record is to retrieve the record and update with the modified values in a new body to update the IAM user record.", + "operationId": "IdentityAccessManagement_UpdateUser", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/CrudResponse" + } + }, + "401": { + "description": "Unauthorized. The API gateway did not process the request because it lacks valid authentication credentials for the target resource. The request header has either no authorization details or an authorization that has been refused.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "403": { + "description": "Forbidden. The API gateway did not process the request because the requestor does not have edge-node level access permission for the operation or does not have access scope to the project.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "404": { + "description": "Not Found. The API gateway did not process the request because the requested resource could not be found.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "409": { + "description": "Conflict. The API gateway did not process the request because this operation will conflict with an already existing IAM user record.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "500": { + "description": "Internal Server Error. The API gateway experienced an unexpected condition. Specific error condition is indicated in error codes.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "504": { + "description": "Gateway Timeout. The API gateway did not receive a timely response from an upstream microservice it needed to communicate with in order to complete the request.", + "schema": { + "$ref": "#/definitions/ZsrvResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DetailedUser" + } + }, + { + "name": "X-Request-Id", + "in": "header", + "required": false, + "description": "User-Agent specified id to track a request", + "type": "string" + } + ], + "tags": [ + "IdentityAccessManagement" + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } + } + } + }, + "definitions": { + "AAAFailureResponse": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/AAAFailureResponseType" + }, + "login": { + "$ref": "#/definitions/AAAFailureResponseLogin" + }, + "refresh": { + "$ref": "#/definitions/AAAFailureTokenRefresh" + }, + "logout": { + "$ref": "#/definitions/AAAFailureResponseLogout" + }, + "details": { + "$ref": "#/definitions/AAAFailureResponseSessionDetails" + }, + "credential": { + "$ref": "#/definitions/AAAFailureResponseCredentialChange" + }, + "querySessionDetails": { + "$ref": "#/definitions/AAAFailureResponseQueryAllSessionDetails" + }, + "generateToken": { + "$ref": "#/definitions/AAAFailureResponseGenerateToken" + } + } + }, + "AAAFailureResponseCredentialChange": { + "type": "object", + "properties": { + "cause": { + "$ref": "#/definitions/AAAFailureResponseCredentialChangeCause" + } + } + }, + "AAAFailureResponseCredentialChangeCause": { + "type": "string", + "enum": [ + "__INVALID__", + "AAAFailureResponseCredentialChangeCauseUnknown", + "AAAFailureResponseCredentialChangeCauseAuthenticationFailure", + "AAAFailureResponseCredentialChangeCausePermissionDenied", + "AAAFailureResponseCredentialChangeCauseInternalServerError", + "AAAFailureResponseCredentialChangeCauseAlreadyExists", + "AAAFailureResponseCredentialChangeCausePasswordTooSimple", + "AAAFailureResponseCredentialChangeCauseNotFound" + ], + "default": "__INVALID__" + }, + "AAAFailureResponseGenerateToken": { + "type": "object", + "properties": { + "cause": { + "$ref": "#/definitions/AAAFailureResponseGenerateTokenCause" + }, + "error": { + "type": "string" + } + } + }, + "AAAFailureResponseGenerateTokenCause": { + "type": "string", + "enum": [ + "__INVALID__", + "AAAFailureResponseGenerateTokenCauseUserUnknown", + "AAAFailureResponseGenerateTokenCauseException", + "AAAFailureResponseGenerateTokenCauseEnterpriseUnknown", + "AAAFailureResponseGenerateTokenCauseForbidden", + "AAAFailureResponseGenerateTokenCauseInternalError" + ], + "default": "__INVALID__" + }, + "AAAFailureResponseLogin": { + "type": "object", + "properties": { + "cause": { + "$ref": "#/definitions/AAAFailureResponseLoginCause" + }, + "error": { + "type": "string" + }, + "noOfLoginAttemptsLeft": { + "type": "integer", + "format": "int64" + }, + "tempToken": { + "$ref": "#/definitions/Token64" + }, + "tempSuccessResponse": { + "$ref": "#/definitions/AAASuccessResponseLogin", + "description": "Sessions depend heavily on AAASuccessResponseLogin. In case of password expired,\nwe need temporary token. We can not generate a temporary token for password reset with\nAAAFailureResponseLogin itself. Therefore, adding this tempSuccessResponse, to be used to create new session." + } + } + }, + "AAAFailureResponseLoginCause": { + "type": "string", + "enum": [ + "__INVALID__", + "AAAFailureResponseLoginCauseGarbage", + "AAAFailureResponseLoginCauseRealmUnknown", + "AAAFailureResponseLoginCauseUserUnknown", + "AAAFailureResponseLoginCauseUserSuspended", + "AAAFailureResponseLoginCausePasswordMismatch", + "AAAFailureResponseLoginCauseChallengeMismatch", + "AAAFailureResponseLoginCauseNoSuchCredentials", + "AAAFailureResponseLoginCauseException", + "AAAFailureResponseLoginCauseEnterpriseUnknown", + "AAAFailureResponseLoginCauseSchemeUnknown", + "AAAFailureResponseLoginCauseUserSignedupState", + "AAAFailureResponseLoginCauseRoleUnknown", + "AAAFailureResponseLoginCauseUpdateLastLoginTimeFailed", + "AAAFailureResponseLoginCauseEnterpriseInactive", + "AAAFailureResponseLoginCauseUserInactive", + "AAAFailureResponseLoginCauseEnterpriseSignedupState", + "AAAFailureResponseLoginCauseEnterpriseUnknownState", + "AAAFailureResponseLoginCauseUserUnknownState", + "AAAFailureResponseLoginCauseEnterpriseCreatedState", + "AAAFailureResponseLoginCauseUserCreatedState", + "AAAFailureResponseLoginCausePasswordMismatchAndMaxFailedPwdAttempt", + "AAAFailureResponseLoginCausePasswordDecryptionFailed", + "AAAFailureResponseLoginCausePasswordExpired", + "TOTPError", + "TOTPInvalidCode", + "AAAFailureResponseLoginCauseEmptySubject", + "TOTPInvalidCodeAndMaxFailedTOTPAttempt" + ], + "default": "__INVALID__", + "title": "Reason why authentication failed, this is more detailed than should be passed on to external clients" + }, + "AAAFailureResponseLogout": { + "type": "object", + "properties": { + "cause": { + "$ref": "#/definitions/AAAFailureResponseLogoutCause" + }, + "original": { + "$ref": "#/definitions/OpaqueToken64" + }, + "error": { + "type": "string" + } + } + }, + "AAAFailureResponseLogoutCause": { + "type": "string", + "enum": [ + "__INVALID__", + "AAAFailureResponseLogoutCauseUnknown", + "AAAFailureResponseLogoutCauseGarbage", + "AAAFailureResponseLogoutCauseExpired", + "AAAFailureResponseLogoutCauseNoSuchSession" + ], + "default": "__INVALID__" + }, + "AAAFailureResponseQueryAllSessionDetails": { + "type": "object", + "properties": { + "error": { + "type": "string" + }, + "cause": { + "$ref": "#/definitions/AAAFailureResponseQueryAllSessionDetailsCause" + } + } + }, + "AAAFailureResponseQueryAllSessionDetailsCause": { + "type": "string", + "enum": [ + "__INVALID__", + "AAAFailureResponseQueryAllSessionDetailsCauseUnknown", + "AAAFailureResponseQueryAllSessionDetailsCauseUnauthorizedAccess", + "AAAFailureResponseQueryAllSessionDetailsCauseUserUnknown" + ], + "default": "__INVALID__" + }, + "AAAFailureResponseSessionDetails": { + "type": "object", + "properties": { + "cause": { + "$ref": "#/definitions/AAAFailureResponseSessionDetailsCause" + }, + "original": { + "$ref": "#/definitions/OpaqueToken64" + } + } + }, + "AAAFailureResponseSessionDetailsCause": { + "type": "string", + "enum": [ + "__INVALID__", + "AAAFailureResponseSessionDetailsCauseUnknown", + "AAAFailureResponseSessionDetailsCauseNoSuchSession" + ], + "default": "__INVALID__" + }, + "AAAFailureResponseType": { + "type": "string", + "enum": [ + "__INVALID__", + "AAAFailureResponseTypeNone", + "AAAFailureResponseTypeLogin", + "AAAFailureResponseTypeRefresh", + "AAAFailureResponseTypeLogout", + "AAAFailureResponseTypeSessionDetails", + "AAAFailureResponseTypeCredentialChange", + "AAAFailureResponseTypeQueryAllSessionDetails", + "AAAFailureResponseTypeGenerateToken" + ], + "default": "__INVALID__" + }, + "AAAFailureTokenRefresh": { + "type": "object", + "properties": { + "cause": { + "$ref": "#/definitions/AAAFailureTokenRefreshCause" + }, + "original": { + "$ref": "#/definitions/OpaqueToken64" + }, + "error": { + "type": "string" + } + }, + "title": "The token did not get refreshed for a specific reason. Supplies original token in the response" + }, + "AAAFailureTokenRefreshCause": { + "type": "string", + "enum": [ + "__INVALID__", + "AAAFailureTokenRefreshCauseExpired", + "AAAFailureTokenRefreshCauseUnknown" + ], + "default": "__INVALID__", + "title": "Reason why token refresh failed" + }, + "AAALoginModeResponse": { + "type": "object", + "properties": { + "username": { + "type": "string" + }, + "mode": { + "$ref": "#/definitions/AAALoginModeResponseMode" + } + } + }, + "AAALoginModeResponseMode": { + "type": "string", + "enum": [ + "AAALoginModeLocal", + "AAALoginModeExternal" + ], + "default": "AAALoginModeLocal" + }, + "AAANotifyResponse": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/AAANotifyResponseType" + }, + "login": { + "$ref": "#/definitions/AAASuccessResponseLogin" + }, + "logout": { + "$ref": "#/definitions/AAASuccessResponseLogout" + } + } + }, + "AAANotifyResponseType": { + "type": "string", + "enum": [ + "__INVALID__", + "AAANotifyTypeLogin", + "AAANotifyTypeLogout" + ], + "default": "__INVALID__" + }, + "AAARedirectResponse": { + "type": "object", + "properties": { + "redirectUrl": { + "type": "string" + }, + "code": { + "type": "integer", + "format": "int64" + } + } + }, + "AAARequestAdminUserSignup": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "firstName": { + "type": "string" + }, + "fullName": { + "type": "string" + }, + "enterpriseName": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/CredentialType" + }, + "password": { + "type": "string" + }, + "email": { + "type": "string" + } + } + }, + "AAARequestEnterpriseSignup": { + "type": "object", + "properties": { + "enterprise": { + "$ref": "#/definitions/Enterprise" + }, + "adminUser": { + "$ref": "#/definitions/AdminUserSignup" + }, + "realmList": { + "type": "array", + "items": { + "type": "string" + } + }, + "profileType": { + "$ref": "#/definitions/AuthProfileType" + }, + "token": { + "type": "string" + }, + "title": { + "type": "string" + }, + "employerName": { + "type": "string" + } + } + }, + "AAARequestLoginForgotPassword": { + "type": "object", + "properties": { + "username": { + "type": "string" + } + } + }, + "AAAResponse": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/AAAResponseType" + }, + "success": { + "$ref": "#/definitions/AAASuccessResponse" + }, + "failure": { + "$ref": "#/definitions/AAAFailureResponse" + }, + "notify": { + "$ref": "#/definitions/AAANotifyResponse" + }, + "redirect": { + "$ref": "#/definitions/AAARedirectResponse" + }, + "mode": { + "$ref": "#/definitions/AAALoginModeResponse" + }, + "result": { + "$ref": "#/definitions/ZsrvResponse" + }, + "totpURL": { + "$ref": "#/definitions/TOTPEnrolmentURL" + } + }, + "title": "BEGIN: Responses" + }, + "AAAResponseType": { + "type": "string", + "enum": [ + "__INVALID__", + "AAAResponseTypeSuccess", + "AAAResponseTypeFailure", + "AAAResponseTypeNotify", + "AAAResponseTypeEnterpriseSignup", + "AAAResponseTypeAdminUserSignup", + "AAAResponseTypeRedirect", + "AAAResponseTypeLoginMode", + "TOTPEnrolment", + "EnrolTOTP" + ], + "default": "__INVALID__" + }, + "AAASuccessResponse": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/AAASuccessResponseType" + }, + "login": { + "$ref": "#/definitions/AAASuccessResponseLogin" + }, + "refresh": { + "$ref": "#/definitions/AAASuccessTokenRefresh" + }, + "details": { + "$ref": "#/definitions/AAASuccessSessionDetailsResponse" + }, + "logout": { + "$ref": "#/definitions/AAASuccessResponseLogout" + }, + "credential": { + "$ref": "#/definitions/AAASuccessResponseCredentialChange" + }, + "querySessionDetails": { + "$ref": "#/definitions/AAASuccessResponseQueryAllSessionDetails" + }, + "generateToken": { + "$ref": "#/definitions/AAASuccessResponseGenerateToken" + } + } + }, + "AAASuccessResponseCredentialChange": { + "type": "object", + "properties": { + "credentialId": { + "type": "string" + } + } + }, + "AAASuccessResponseGenerateToken": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/AAASuccessResponseLogin" + }, + "sessionDetails": { + "$ref": "#/definitions/SessionDetails" + } + } + }, + "AAASuccessResponseLogin": { + "type": "object", + "properties": { + "userId": { + "$ref": "#/definitions/Identifier64" + }, + "token": { + "$ref": "#/definitions/Token64" + }, + "enterpriseId": { + "$ref": "#/definitions/Identifier64" + }, + "realmId": { + "$ref": "#/definitions/Identifier64" + }, + "policies": { + "type": "array", + "items": { + "$ref": "#/definitions/Policy" + }, + "title": "BEGIN: Only valid when a certain verbosity level is requested" + }, + "simpleUser": { + "$ref": "#/definitions/SimpleUser" + }, + "detailedUser": { + "$ref": "#/definitions/DetailedUser" + }, + "realm": { + "$ref": "#/definitions/Realm" + }, + "enterprise": { + "$ref": "#/definitions/Enterprise" + }, + "role": { + "$ref": "#/definitions/Role" + }, + "loginToken": { + "$ref": "#/definitions/Token64" + }, + "apiToken": { + "$ref": "#/definitions/Token64" + }, + "passwordExpiryTime": { + "type": "string", + "format": "date-time" + }, + "passwordExpiryNotificationPeriodInSeconds": { + "type": "integer", + "format": "int64" + }, + "isJWTValid": { + "type": "boolean" + } + }, + "title": "AAA was successful" + }, + "AAASuccessResponseLogout": { + "type": "object", + "properties": { + "original": { + "$ref": "#/definitions/OpaqueToken64" + } + } + }, + "AAASuccessResponseQueryAllSessionDetails": { + "type": "object", + "properties": { + "cause": { + "$ref": "#/definitions/AAASuccessResponseQueryAllSessionDetailsCause" + }, + "sessionDetails": { + "type": "array", + "items": { + "$ref": "#/definitions/SessionDetails" + } + } + } + }, + "AAASuccessResponseQueryAllSessionDetailsCause": { + "type": "string", + "enum": [ + "__INVALID__", + "OK", + "FAILED" + ], + "default": "__INVALID__" + }, + "AAASuccessResponseType": { + "type": "string", + "enum": [ + "__INVALID__", + "AAASuccessResponseTypeLogin", + "AAASuccessResponseTypeRefresh", + "AAASuccessResponseTypePermisson", + "AAASuccessResponseTypeLogout", + "AAASuccessResponseTypeSessionDetails", + "AAASuccessResponseTypeCredentialChange", + "AAASuccessResponseTypeQueryAllSessionDetails", + "AAASuccessResponseTypeGenerateToken" + ], + "default": "__INVALID__" + }, + "AAASuccessSessionDetailsResponse": { + "type": "object", + "properties": { + "original": { + "$ref": "#/definitions/OpaqueToken64" + }, + "policies": { + "type": "array", + "items": { + "$ref": "#/definitions/Policy" + } + }, + "user": { + "$ref": "#/definitions/DetailedUser" + } + } + }, + "AAASuccessTokenRefresh": { + "type": "object", + "properties": { + "token": { + "$ref": "#/definitions/Token64" + } + }, + "title": "Token64 refresh was successful" + }, + "AAA_Frontend_GenerateTokenResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "expiresAt": { + "type": "string", + "format": "date-time" + }, + "userName": { + "type": "string" + }, + "clientIp": { + "type": "string" + }, + "userAgent": { + "type": "string" + }, + "cause": { + "$ref": "#/definitions/AAA_Frontend_GenerateTokenResponseCause" + }, + "error": { + "type": "string" + } + } + }, + "AAA_Frontend_GenerateTokenResponseCause": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "OK", + "USER_UNKNOWN", + "EXCEPTION" + ], + "default": "UNSPECIFIED" + }, + "AAA_Frontend_LoginModeRequest": { + "type": "object", + "properties": { + "username": { + "type": "string" + } + } + }, + "AAA_Frontend_LoginModeResponse": { + "type": "object", + "properties": { + "username": { + "type": "string" + }, + "mode": { + "$ref": "#/definitions/AAA_Frontend_LoginModeResponseMode" + } + } + }, + "AAA_Frontend_LoginModeResponseMode": { + "type": "string", + "enum": [ + "LOCAL", + "EXTERNAL" + ], + "default": "LOCAL" + }, + "AAA_Frontend_LoginResponse": { + "type": "object", + "properties": { + "cause": { + "$ref": "#/definitions/AAA_Frontend_LoginResponseCause" + }, + "userId": { + "type": "string", + "title": "BEGIN: Only valid when Cause == OK" + }, + "token": { + "$ref": "#/definitions/Token64" + }, + "policies": { + "type": "array", + "items": { + "$ref": "#/definitions/Policy" + }, + "title": "BEGIN: Only valid when Verbose is requesed" + }, + "simpleUser": { + "$ref": "#/definitions/SimpleUser" + }, + "detailedUser": { + "$ref": "#/definitions/DetailedUser" + }, + "realm": { + "$ref": "#/definitions/Realm" + }, + "enterprise": { + "$ref": "#/definitions/Enterprise" + }, + "role": { + "$ref": "#/definitions/Role" + }, + "noOfLoginAttemptsLeft": { + "type": "integer", + "format": "int64" + }, + "redirectUrl": { + "type": "string" + }, + "loginToken": { + "$ref": "#/definitions/Token64" + }, + "apiToken": { + "$ref": "#/definitions/Token64" + }, + "passwordExpiryTime": { + "type": "string", + "format": "date-time" + }, + "passwordExpiryNotificationPeriodInSeconds": { + "type": "integer", + "format": "int64" + }, + "tempToken": { + "$ref": "#/definitions/Token64" + } + } + }, + "AAA_Frontend_LoginResponseCause": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "OK", + "UNKNOWN", + "CREDENTIALS", + "SUSPENDED", + "EXCEPTION", + "INACTIVE", + "SIGNEDUPSTATE", + "UNKNOWNSTATE", + "CREATEDSTATE", + "USER_UNKNOWN", + "ENTERPRISE_UNKNOWN", + "ROLE_UNKNOWN", + "USER_UNKNOWNSTATE", + "USER_INACTIVE", + "USER_SIGNEDUPSTATE", + "USER_CREATEDSTATE", + "ENTERPRISE_UNKNOWNSTATE", + "ENTERPRISE_INACTIVE", + "ENTERPRISE_SIGNEDUPSTATE", + "ENTERPRISE_CREATEDSTATE", + "CREDENTIAL_NOTFOUND", + "CREDENTIAL_MISMATCH", + "SCHEME_UNKNOWN", + "UPDATE_LOGINTIME_FAILED", + "CREDENTIAL_MISMATCH_MAX_FAILED_PWD_ATTEMPT", + "REDIRECT", + "DECRYPTION_FAILED", + "PASSWORD_EXPIRED", + "TOTP_OK", + "TOTP_INVALID_CODE", + "TOTP_ERR" + ], + "default": "UNSPECIFIED", + "title": "- EXCEPTION: Some exception has occurred on the server" + }, + "AAA_Frontend_LoginWithOauthRequest": { + "type": "object", + "properties": { + "usernameAtRealm": { + "type": "string" + }, + "enterpriseName": { + "type": "string" + }, + "redirectUri": { + "type": "string" + } + } + }, + "AAA_Frontend_LoginWithPasswordRequest": { + "type": "object", + "properties": { + "usernameAtRealm": { + "type": "string" + }, + "username": { + "type": "string" + }, + "realm": { + "type": "string" + }, + "password": { + "type": "string" + }, + "verbosePolicy": { + "type": "boolean", + "title": "How verbal should the response be" + }, + "verboseSimpleUser": { + "type": "boolean" + }, + "verboseDetailedUser": { + "type": "boolean" + }, + "verboseRealm": { + "type": "boolean" + }, + "verboseEnterprise": { + "type": "boolean" + }, + "enterpriseName": { + "type": "string" + } + }, + "description": "User either a combination of (username, realm) or (usernameAtRealm) to specify login details", + "title": "Login request" + }, + "AAA_Frontend_LogoutRequest": { + "type": "object" + }, + "AAA_Frontend_LogoutResponse": { + "type": "object", + "properties": { + "cause": { + "$ref": "#/definitions/AAA_Frontend_LogoutResponseCause" + }, + "token": { + "$ref": "#/definitions/OpaqueToken64" + } + } + }, + "AAA_Frontend_LogoutResponseCause": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "OK", + "FAILED" + ], + "default": "UNSPECIFIED" + }, + "AAA_Frontend_OAUTHCallbackRequest": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "state": { + "type": "string" + } + } + }, + "AAA_Frontend_RefreshResponse": { + "type": "object", + "properties": { + "cause": { + "$ref": "#/definitions/AAA_Frontend_RefreshResponseCause" + }, + "userId": { + "type": "string", + "title": "BEGIN: Only valid when Cause == OK" + }, + "token": { + "$ref": "#/definitions/Token64" + } + } + }, + "AAA_Frontend_RefreshResponseCause": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "OK", + "UNKNOWN", + "CREDENTIALS", + "EXPIRED" + ], + "default": "UNSPECIFIED" + }, + "AAA_Frontend_SessionDetailsResponse": { + "type": "object", + "properties": { + "cause": { + "$ref": "#/definitions/AAA_Frontend_SessionDetailsResponseCause" + }, + "user": { + "$ref": "#/definitions/DetailedUser" + }, + "policies": { + "type": "array", + "items": { + "$ref": "#/definitions/Policy" + } + } + } + }, + "AAA_Frontend_SessionDetailsResponseCause": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "OK", + "FAILED" + ], + "default": "UNSPECIFIED" + }, + "AdminUserSignup": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "firstName": { + "type": "string" + }, + "fullName": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/CredentialType" + }, + "password": { + "type": "string" + }, + "email": { + "type": "string" + } + } + }, + "AllowedEnterprise": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "roleId": { + "type": "string" + } + } + }, + "AllowedEnterpriseList": { + "type": "object", + "properties": { + "enterprises": { + "type": "array", + "items": { + "$ref": "#/definitions/AllowedEnterprise" + }, + "description": "List of child enterprises" + }, + "error": { + "type": "string", + "description": "Error while fetching list of child enterprises, if any" + }, + "next": { + "type": "string", + "$ref": "#/definitions/Cursor", + "description": "Next page information" + }, + "total": { + "type": "string", + "format": "int64", + "description": "Total number of allowed enterprises" + }, + "enterpriseEntitlements": { + "type": "array", + "items": { + "$ref": "#/definitions/Entitlement" + }, + "description": "Enterprises entitlement data" + } + }, + "description": "Get list of child enterprises", + "title": "Get child enterprises" + }, + "AppInstReport": { + "type": "object", + "properties": { + "entpId": { + "type": "string", + "description": "Enterprise id for which we want to get summary report for all objects", + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "appInstSummaryReport": { + "$ref": "#/definitions/AppInstSummaryReport", + "description": "Enterprise appInst report" + }, + "error": { + "type": "string", + "description": "Error while fetching report for enterprise, if any" + } + }, + "description": "Get summary reports of appInst objects for self/child enterprise", + "title": "Get appInst reports" + }, + "AppInstSummaryReport": { + "type": "object", + "properties": { + "totalAppInsts": { + "type": "integer", + "format": "int64" + } + } + }, + "AuthProfileType": { + "type": "string", + "enum": [ + "AUTH_PROFILE_TYPE_UNSPECIFIED", + "AUTH_PROFILE_TYPE_OAUTH_AZURE_AD", + "AUTH_PROFILE_TYPE_OAUTH_GOOGLE", + "AUTH_PROFILE_TYPE_OAUTH_CUSTOM", + "AUTH_PROFILE_TYPE_LOCAL" + ], + "default": "AUTH_PROFILE_TYPE_UNSPECIFIED" + }, + "AuthType": { + "type": "string", + "enum": [ + "AUTH_TYPE_UNSPECIFIED", + "AUTH_TYPE_LOCAL", + "AUTH_TYPE_OAUTH", + "AUTH_TYPE_SAML" + ], + "default": "AUTH_TYPE_UNSPECIFIED" + }, + "AuthorizationProfile": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Unique system defined profile ID", + "readOnly": true, + "pattern": "[0-9A-Za-z_=-]{28}", + "uniqueItems": true + }, + "enterpriseId": { + "type": "string", + "description": "Parent enterprise ID of the authorization profile", + "pattern": "[0-9A-Za-z_=-]{28}", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the profile. Profile name is unique within an enterprise. Name can't be changed once created", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "type": { + "$ref": "#/definitions/AuthType", + "description": "Type of the profile" + }, + "oauthProfile": { + "$ref": "#/definitions/OAUTHProfile", + "description": "Oauth profile configuration details" + }, + "passwordProfile": { + "$ref": "#/definitions/PasswordProfile" + }, + "testOnly": { + "type": "boolean" + }, + "active": { + "type": "boolean", + "description": "Mark this profile as active. Only one profile can be active in a given enterprise" + }, + "defaultRoleId": { + "type": "string", + "description": "Default Role ID to associate with the profile", + "pattern": "[0-9A-Za-z_=-]{28}" + }, + "title": { + "type": "string", + "description": "User defined title for the profile. Title can be changed anytime", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+" + }, + "description": { + "type": "string", + "description": "Detailed description of the profile", + "maxLength": 256 + }, + "profileType": { + "$ref": "#/definitions/AuthProfileType", + "description": "Authorization profile type" + }, + "disableAutoUserCreate": { + "type": "boolean", + "description": "Do not automatically create new users if this is set" + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined info", + "readOnly": true + } + }, + "description": "Authorization profile meta data", + "title": "Authorization profile detail", + "required": [ + "name", + "title", + "defaultRoleId" + ] + }, + "AuthorizationProfiles": { + "type": "object", + "properties": { + "summaryByState": { + "$ref": "#/definitions/Summary", + "description": "Summary of filtered profiles" + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/AuthorizationProfile" + }, + "description": "List of profiles" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "Page details of the filtered records" + } + } + }, + "Credential": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "owner": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/CredentialType" + }, + "currentCred": { + "type": "string" + }, + "newCred": { + "type": "string" + }, + "forgot": { + "type": "boolean" + }, + "salt": { + "type": "integer", + "format": "int64" + } + } + }, + "CredentialType": { + "type": "string", + "enum": [ + "CREDENTIAL_TYPE_UNSPECIFIED", + "CREDENTIAL_TYPE_PASSWORD", + "CREDENTIAL_TYPE_CHAP", + "CREDENTIAL_TYPE_PUBLIC_KEY", + "CREDENTIAL_TYPE_NONE" + ], + "default": "CREDENTIAL_TYPE_UNSPECIFIED" + }, + "Credentials": { + "type": "object", + "properties": { + "summaryByState": { + "$ref": "#/definitions/Summary" + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/Credential" + } + }, + "next": { + "$ref": "#/definitions/Cursor" + } + } + }, + "CrudAction": { + "type": "string", + "enum": [ + "CrudAction__INVALID__", + "CrudActionNotApplicable", + "CrudActionCreate", + "CrudActionRead", + "CrudActionUpdate", + "CrudActionDelete", + "CrudActionQuery", + "CrudActionQueryNext", + "CrudActionReadSelf", + "CrudActionUpdateSelf" + ], + "default": "CrudAction__INVALID__" + }, + "CrudContent": { + "type": "object", + "properties": { + "oid": { + "$ref": "#/definitions/Identifier64" + }, + "encoding": { + "$ref": "#/definitions/CrudContentEncoding" + }, + "clazz": { + "$ref": "#/definitions/ModelClazz" + }, + "protobuf": { + "$ref": "#/definitions/CrudContentProtobuf" + }, + "json": { + "$ref": "#/definitions/CrudContentJSON" + } + }, + "title": "Content, with a type encoded either as protobuf or json" + }, + "CrudContentEncoding": { + "type": "string", + "enum": [ + "CrudPayloadEncoding__INVALID__", + "CrudPayloadEncodingProtobuf", + "CrudPayloadEncodingJSON" + ], + "default": "CrudPayloadEncoding__INVALID__" + }, + "CrudContentJSON": { + "type": "object", + "properties": { + "json": { + "type": "string" + } + } + }, + "CrudContentProtobuf": { + "type": "object", + "properties": { + "detailedUser": { + "$ref": "#/definitions/DetailedUser" + }, + "simpleUser": { + "$ref": "#/definitions/SimpleUser" + }, + "enterprise": { + "$ref": "#/definitions/Enterprise" + }, + "realm": { + "$ref": "#/definitions/Realm" + }, + "user": { + "$ref": "#/definitions/DetailedUser" + }, + "credential": { + "$ref": "#/definitions/Credential" + }, + "role": { + "$ref": "#/definitions/Role" + }, + "policy": { + "$ref": "#/definitions/Policy" + }, + "profile": { + "$ref": "#/definitions/AuthorizationProfile" + }, + "docPolicy": { + "$ref": "#/definitions/DocPolicy" + }, + "encryptedSecrets": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "cryptoKey": { + "type": "string" + } + } + }, + "CrudResponse": { + "type": "object", + "properties": { + "token": { + "$ref": "#/definitions/OpaqueToken64" + }, + "action": { + "$ref": "#/definitions/CrudAction" + }, + "result": { + "$ref": "#/definitions/ZsrvResponse" + }, + "read": { + "$ref": "#/definitions/CrudResponseRead" + }, + "query": { + "$ref": "#/definitions/CrudResponseQuery" + } + } + }, + "CrudResponseQuery": { + "type": "object", + "properties": { + "queryToken": { + "$ref": "#/definitions/OpaqueToken64", + "title": "The unique id of the query" + }, + "code": { + "$ref": "#/definitions/CrudResultCode", + "title": "Was there anything that matches" + }, + "position": { + "type": "integer", + "format": "int64", + "title": "The index of the first result" + }, + "size": { + "type": "integer", + "format": "int64", + "title": "The number of results returned, could be less than the requested size" + }, + "total": { + "type": "integer", + "format": "int64", + "title": "The total number of result items for this query" + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/CrudResultWithContent" + }, + "title": "List of the results" + }, + "globalStatistics": { + "type": "array", + "items": { + "$ref": "#/definitions/CrudStatisticsContainer" + }, + "title": "Global statistics" + }, + "queryStatistics": { + "type": "array", + "items": { + "$ref": "#/definitions/CrudStatisticsContainer" + }, + "title": "Global statistics" + }, + "clazz": { + "$ref": "#/definitions/ModelClazz" + }, + "profiles": { + "$ref": "#/definitions/AuthorizationProfiles" + }, + "enterprises": { + "$ref": "#/definitions/Enterprises" + }, + "roles": { + "$ref": "#/definitions/Roles" + }, + "realms": { + "$ref": "#/definitions/Realms" + }, + "credentials": { + "$ref": "#/definitions/Credentials" + }, + "users": { + "$ref": "#/definitions/DetailedUsers" + }, + "policies": { + "$ref": "#/definitions/Policies" + }, + "docPolicies": { + "$ref": "#/definitions/DocPolicies" + }, + "allowedEnterpriseList": { + "$ref": "#/definitions/AllowedEnterpriseList" + }, + "userSummaryReport": { + "$ref": "#/definitions/UserSummaryReport" + }, + "userUsagePerEnterpriseList": { + "$ref": "#/definitions/UserUsagePerEnterpriseList" + } + } + }, + "CrudResponseRead": { + "type": "object", + "properties": { + "result": { + "$ref": "#/definitions/CrudResultWithContent" + } + } + }, + "CrudResultCode": { + "type": "string", + "enum": [ + "CrudResultCode__INVALID__", + "CrudResultCodeSuccess", + "CrudResultCodeAuthentication", + "CrudResultCodeAlreadyExists", + "CrudResultCodeException", + "CrudResultCodeHasDependencies", + "CrudResultCodeIllegalArgument", + "CrudResultCodeIllegalRequest", + "CrudResultCodeIncomplete", + "CrudResultCodeInternalError", + "CrudResultCodeNotFound", + "CrudResultCodeNotIdentified", + "CrudResultCodePermissionDenied", + "CrudResultCodeQueryExpired", + "CrudResultCodeUnknown" + ], + "default": "CrudResultCode__INVALID__", + "title": "Responses to the action requests" + }, + "CrudResultWithContent": { + "type": "object", + "properties": { + "code": { + "$ref": "#/definitions/CrudResultCode" + }, + "content": { + "$ref": "#/definitions/CrudContent" + }, + "identifier": { + "$ref": "#/definitions/Identifier64" + } + } + }, + "CrudStatisticsContainer": { + "type": "object", + "properties": { + "clazz": { + "$ref": "#/definitions/ModelClazz" + }, + "user": { + "$ref": "#/definitions/CrudStatisticsUser" + } + }, + "title": "Container for per-clazz statistics" + }, + "CrudStatisticsUser": { + "type": "object", + "properties": { + "total": { + "type": "integer", + "format": "int64" + }, + "suspended": { + "type": "integer", + "format": "int64" + }, + "deleted": { + "type": "integer", + "format": "int64" + } + }, + "title": "User related statistics" + }, + "Cursor": { + "type": "object", + "properties": { + "pageToken": { + "type": "string", + "description": "Page Token" + }, + "orderBy": { + "type": "array", + "items": { + "type": "string" + }, + "description": "OrderBy helps in sorting the list response" + }, + "pageNum": { + "type": "number", + "format": "int64", + "description": "Page Number" + }, + "pageSize": { + "type": "number", + "format": "int64", + "description": "Defines the page size" + }, + "totalPages": { + "type": "number", + "format": "int64", + "description": "Total number of pages to be fetched." + } + }, + "description": "Cursor helps in filtering the various list response like edge-app bundle list, model list, bundle list etc. ", + "title": "Cursor is used as filter in list operation." + }, + "DataStream": { + "type": "object", + "properties": { + "pluginId": { + "type": "string" + }, + "enabled": { + "type": "boolean" + } + } + }, + "DetailedUser": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Unique system defined user ID", + "readOnly": true, + "pattern": "[0-9A-Za-z_=-]{28}", + "uniqueItems": true + }, + "username": { + "type": "string", + "description": "User defined name", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "SfdcId": { + "type": "string" + }, + "HubspotId": { + "type": "string" + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined info", + "readOnly": true + }, + "state": { + "$ref": "#/definitions/UserState", + "description": "User state", + "readOnly": true + }, + "firstName": { + "type": "string", + "description": "First name of the user" + }, + "locale": { + "type": "string", + "description": "Locale of the user" + }, + "fullName": { + "type": "string", + "description": "Full name of the user" + }, + "timeZone": { + "type": "string", + "description": "Preferred time zone of the user" + }, + "roleId": { + "type": "string", + "description": "Role associated with the user", + "pattern": "[0-9A-Za-z_=-]{28}" + }, + "type": { + "$ref": "#/definitions/AuthType", + "description": "Type of the user" + }, + "email": { + "type": "string", + "description": "Email of the user" + }, + "phone": { + "type": "string", + "description": "Phone number of the user" + }, + "notifyPref": { + "type": "string", + "description": "Notification preference of the user" + }, + "LastLoginTime": { + "type": "string", + "format": "date-time", + "description": "Last login time of the user", + "title": "Operational Status to be returned to CLI/UI" + }, + "LastLogoutTime": { + "type": "string", + "format": "date-time", + "description": "Last logout time of the user" + }, + "emailState": { + "$ref": "#/definitions/IdState", + "description": "Email state", + "readOnly": true + }, + "phoneState": { + "$ref": "#/definitions/IdState", + "description": "Phone state", + "readOnly": true + }, + "customUserInput": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom user parameters" + }, + "allowedEnterprises": { + "type": "array", + "items": { + "$ref": "#/definitions/AllowedEnterprise" + }, + "description": "Permitted list of enterprises with their associated roles" + }, + "enterpriseId": { + "type": "string", + "description": "Origin enterprise of the user", + "readOnly": true + }, + "totpEnabled": { + "type": "boolean", + "description": "Is TOTP enrolment enabled", + "readOnly": true + }, + "allowedEntpProjectList": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ProjectList" + }, + "description": "Allowed enterprise project", + "title": "internal" + }, + "zksSyncStatus": { + "$ref": "#/definitions/ZksSyncStatus", + "description": "ZKS Servers Sync Status" + }, + "tokenZksSyncStatus": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ZksSyncStatus" + }, + "description": "User session token sync status" + }, + "passwordExpiryNotificationPeriodInSeconds": { + "type": "integer", + "format": "int64", + "description": "Password expiry notification period in seconds" + } + }, + "description": "User meta data", + "title": "User detail", + "required": [ + "username", + "email", + "roleId" + ] + }, + "DetailedUsers": { + "type": "object", + "properties": { + "summaryByState": { + "$ref": "#/definitions/Summary", + "description": "Summary of filtered users" + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/DetailedUser" + }, + "description": "List of users" + }, + "summaryByUserActivity": { + "$ref": "#/definitions/Summary", + "description": "Count of online/offline users" + }, + "summaryByRoleDistribution": { + "$ref": "#/definitions/Summary", + "description": "User distribution by role" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "Page details of the filtered records" + } + } + }, + "DeviceDistribution": { + "type": "object", + "properties": { + "projectName": { + "type": "string" + }, + "deviceCount": { + "type": "integer", + "format": "int64" + } + } + }, + "DeviceEntitlement": { + "type": "object", + "properties": { + "size": { + "$ref": "#/definitions/DeviceSize" + }, + "limit": { + "type": "integer", + "format": "int32" + }, + "usage": { + "type": "integer", + "format": "int64" + } + } + }, + "DeviceReport": { + "type": "object", + "properties": { + "entpId": { + "type": "string", + "description": "Enterprise id for which we want to get summary report for all objects", + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "deviceSummaryReport": { + "$ref": "#/definitions/DeviceSummaryReport", + "description": "Enterprise device report" + }, + "error": { + "type": "string", + "description": "Error while fetching report for enterprise, if any" + } + }, + "description": "Get summary reports of device objects for self/child enterprise", + "title": "Get device reports" + }, + "DeviceSize": { + "type": "string", + "enum": [ + "DEFAULT_SIZE", + "SMALL_SIZE", + "MEDIUM_SIZE", + "LARGE_SIZE", + "XLARGE_SIZE" + ], + "default": "DEFAULT_SIZE" + }, + "DeviceSummaryReport": { + "type": "object", + "properties": { + "totalDevices": { + "type": "integer", + "format": "int64" + }, + "summaryByState": { + "$ref": "#/definitions/Summary" + } + } + }, + "DocPolicies": { + "type": "object", + "properties": { + "summaryByState": { + "$ref": "#/definitions/Summary", + "description": "Summary of filtered docpolicy" + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/DocPolicySummary" + }, + "description": "List of docpolicy" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "Page details of the filtered records" + } + } + }, + "DocPolicy": { + "type": "object", + "example": { + "id": "EAJ1ABAi-KOom7dJlrBoE8eq1pj9", + "policyName": "xxxxxxxxx", + "version": "xxxxxxx", + "fileURL": "xxxxxxxx", + "serverHost": "zedcontrol.local.zededa.net", + "latest": false, + "revision": { + "prev": "", + "curr": "1", + "createdAt": "2020-07-17T06:03:14Z", + "createdBy": "us.root@zededa.com", + "updatedAt": "2020-07-17T06:03:14Z", + "updatedBy": "us.root@zededa.com" + } + }, + "properties": { + "id": { + "type": "string", + "description": "Unique system defined docpolicy ID", + "readOnly": true, + "pattern": "[0-9A-Za-z_=-]{28}", + "uniqueItems": true + }, + "policyName": { + "type": "string", + "description": "User defined name of the docpolicy. Name cannot be changed once created", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "version": { + "type": "string", + "description": "Policy doc version" + }, + "fileURL": { + "type": "string", + "description": "Policy doc fileURL" + }, + "serverHost": { + "type": "string", + "description": "Server Host" + }, + "latest": { + "type": "boolean", + "description": "Mark latest docpolicy check" + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "System defined info", + "readOnly": true + } + }, + "description": "DocPolicy meta data", + "title": "DocPolicy detail", + "required": [ + "policyName" + ] + }, + "DocPolicySummary": { + "type": "object", + "example": { + "policyName": "xxxxxxxxx", + "version": "xxxxxxx", + "fileURL": "xxxxxxxx", + "revision": { + "prev": "", + "curr": "1", + "createdAt": "2020-07-17T06:03:14Z", + "createdBy": "us.root@zededa.com", + "updatedAt": "2020-07-17T06:03:14Z", + "updatedBy": "us.root@zededa.com" + } + }, + "properties": { + "policy": { + "type": "string", + "description": "User defined name of the docpolicy. Name cannot be changed once created", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "version": { + "type": "string", + "description": "Policy doc version" + }, + "fileURL": { + "type": "string", + "description": "Policy doc fileURL" + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "System defined info", + "readOnly": true + } + }, + "description": "DocPolicy meta data", + "title": "DocPolicy detail" + }, + "Enterprise": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Unique system defined enterprise ID", + "readOnly": true, + "pattern": "[0-9A-Za-z_=-]{28}", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the enterprise. Once enterprise is created, name can\u2019t be changed", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "SfdcId": { + "type": "string" + }, + "HubspotId": { + "type": "string" + }, + "state": { + "$ref": "#/definitions/EnterpriseState", + "description": "Enterprise state" + }, + "type": { + "$ref": "#/definitions/EnterpriseType", + "description": "Enterprise type" + }, + "policyList": { + "$ref": "#/definitions/PolicyVersionList", + "description": "Policy version list" + }, + "parentEntpId": { + "type": "string", + "description": "Parent enterprise ID", + "title": "string id = 100;\nstring name = 101;", + "pattern": "[0-9A-Za-z_=-]{28}" + }, + "azureSubId": { + "type": "string", + "description": "Azure subscription ID tied to this enterprise" + }, + "title": { + "type": "string", + "description": "User defined title for the enterprise. Title can be changed any time", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+" + }, + "description": { + "type": "string", + "description": "Detailed description of the enterprise", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "system defined info", + "readOnly": true + }, + "realms": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of realms associated with the enterprise" + }, + "attributes": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "enterprise level key-value pairs" + }, + "inheritAuthFromParent": { + "type": "boolean", + "description": "Perform authorization using parent enterprise" + }, + "childEnterprises": { + "type": "array", + "items": { + "$ref": "#/definitions/EnterpriseSummary" + }, + "description": "List of all child enterprises" + }, + "controllerHostURL": { + "type": "string", + "description": "zedcontrol host" + }, + "streamEvents": { + "$ref": "#/definitions/DataStream", + "description": "Enable / Disable streaming of events to 3rd party end point" + }, + "totpSettings": { + "$ref": "#/definitions/TOTPSettings", + "description": "Enterprise settings to enforce TOTP" + }, + "apiTokenExpiryInSeconds": { + "type": "integer", + "format": "int64", + "description": "Enterprise settings for API Token expiry to be set in seconds" + } + }, + "description": "Enterprise meta data", + "title": "Enterprise detail", + "required": [ + "name", + "title" + ] + }, + "EnterpriseState": { + "type": "string", + "enum": [ + "ENTERPRISE_STATE_UNSPECIFIED", + "ENTERPRISE_STATE_CREATED", + "ENTERPRISE_STATE_DELETED", + "ENTERPRISE_STATE_ACTIVE", + "ENTERPRISE_STATE_INACTIVE", + "ENTERPRISE_STATE_SIGNEDUP" + ], + "default": "ENTERPRISE_STATE_UNSPECIFIED" + }, + "EnterpriseSummary": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "id": { + "type": "string" + } + } + }, + "EnterpriseType": { + "type": "string", + "enum": [ + "ENTERPRISE_TYPE_UNSPECIFIED", + "ENTERPRISE_TYPE_SELFSIGNUP" + ], + "default": "ENTERPRISE_TYPE_UNSPECIFIED" + }, + "Enterprises": { + "type": "object", + "properties": { + "summaryByState": { + "$ref": "#/definitions/Summary", + "description": "Summary of filtered enterprises" + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/Enterprise" + }, + "description": "List of enterprises" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "Page details of the filtered records" + } + } + }, + "Entitlement": { + "type": "object", + "properties": { + "entpId": { + "type": "string", + "description": "Enterprise id for which we want to post/get enforce entitlement", + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "entpName": { + "type": "string", + "description": "Enterprise name for which we want to post/get enforce entitlement", + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "devices": { + "type": "array", + "items": { + "$ref": "#/definitions/DeviceEntitlement" + }, + "description": "Device entitlement data" + }, + "userCount": { + "$ref": "#/definitions/UserEntitlement", + "description": "User entitlement data" + }, + "plugins": { + "$ref": "#/definitions/PluginEntitlement", + "description": "Plugin entitlement data" + }, + "features": { + "type": "array", + "items": { + "$ref": "#/definitions/FeatureEntitlement" + }, + "description": "Features entitlement data" + } + }, + "description": "Get Entitlement data", + "title": "Entitlement data" + }, + "FeatureEntitlement": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "active": { + "type": "boolean" + }, + "subFeatureEntitlement": { + "type": "array", + "items": { + "$ref": "#/definitions/FeatureEntitlement" + }, + "title": "SubFeatureEntitlement represents nested sub-features entitlement" + } + } + }, + "IdState": { + "type": "string", + "enum": [ + "ID_STATE_UNSPECIFIED", + "ID_STATE_NOT_VERIFIED", + "ID_STATE_VERIFIED" + ], + "default": "ID_STATE_UNSPECIFIED" + }, + "Identifier64": { + "type": "object", + "properties": { + "base64": { + "type": "string" + } + }, + "title": "Generic identifier, base64 encoding" + }, + "JWTAuthProfileAlgorithm": { + "type": "string", + "enum": [ + "None", + "RS256", + "RS384", + "RS512" + ], + "default": "None" + }, + "LastLoggedinUserInfo": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "lastLoginTime": { + "type": "string", + "format": "date-time" + } + } + }, + "ModelClazz": { + "type": "string", + "enum": [ + "ModelClazzUnspecified", + "ModelClazzDetailedUser", + "ModelClazzSimpleUser", + "ModelClazzEnterprise", + "ModelClazzRealm", + "ModelClazzCredential", + "ModelClazzPolicy", + "ModelClazzRole", + "ModelClazzProfile", + "ModelClazzDocPolicy", + "ModelClazzAllowedEnterpriseList", + "ModelClazzTotalUserCount", + "ModelClazzLastLoggedInUserInfo", + "ModelClazzUserActivitySummary", + "ModelClazzUserUsagePerEnterprise", + "ModelClazzEnterpriseGithubRepository" + ], + "default": "ModelClazzUnspecified", + "title": "Global identifier of clazz types" + }, + "OAUTHProfile": { + "type": "object", + "properties": { + "OIDCEndPoint": { + "type": "string", + "description": "OIDC endpoint for oauth validation" + }, + "clientID": { + "type": "string", + "description": "OAUTH client ID" + }, + "clientSecret": { + "type": "string", + "description": "OAUTH client secret" + }, + "encryptedSecrets": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "cryptoKey": { + "type": "string" + }, + "roleScope": { + "type": "string", + "description": "OIDC scope to fetch application role" + }, + "jwtAuthProfile": { + "$ref": "#/definitions/OAUTHProfileJWTAuthProfile", + "description": "Config for JWT based authentication, jwks_uri is derived from OIDC Well Known Endpoints" + }, + "idpId": { + "type": "string", + "description": "id for Vmware IDP" + }, + "additionalParameters": { + "type": "string", + "additionalProperties": { + "type": "string" + }, + "description": "pass additional url parameters during the exchange and authorization process" + } + } + }, + "OAUTHProfileJWTAuthProfile": { + "type": "object", + "properties": { + "alg": { + "$ref": "#/definitions/JWTAuthProfileAlgorithm", + "description": "Algorithm for JWT signature verification" + } + }, + "description": "Config for JWT based authentication, jwks_uri is derived from OIDC Well Known Endpoints", + "title": "JWT Authentication profile detail" + }, + "ObjectRevision": { + "type": "object", + "properties": { + "prev": { + "type": "string", + "description": "Previous" + }, + "curr": { + "type": "string", + "description": "Current Database version of the record" + }, + "createdAt": { + "type": "object", + "format": "date-time", + "description": "The time, in milliseconds since the epoch, when the record was created." + }, + "createdBy": { + "type": "string", + "description": "User data: Created By" + }, + "updatedAt": { + "type": "object", + "format": "date-time", + "description": "The time, in milliseconds since the epoch, when the record was last updated." + }, + "updatedBy": { + "type": "string", + "description": "User data: Updated By" + } + }, + "description": "ObjectRevision store the user details, who has doent the necessary operation like Create Operation or update operation", + "title": "ObjectRevision is used to store the user information.", + "required": [ + "curr", + "createdAt", + "createdBy", + "updatedAt", + "updatedBy" + ] + }, + "ObjectType": { + "type": "string", + "enum": [ + "OBJECT_TYPE_UNSPECIFIED", + "OBJECT_TYPE_USER", + "OBJECT_TYPE_EDGE_NODE", + "OBJECT_TYPE_EDGE_APP", + "OBJECT_TYPE_IMAGE", + "OBJECT_TYPE_EDGE_APP_INSTANCE", + "OBJECT_TYPE_PROJECT", + "OBJECT_TYPE_NETWORK", + "OBJECT_TYPE_DATASTORE", + "OBJECT_TYPE_SERVICE", + "OBJECT_TYPE_SERVICE_INSTANCE", + "OBJECT_TYPE_ENTERPRISE", + "OBJECT_TYPE_ROLE", + "OBJECT_TYPE_CREDENTIAL", + "OBJECT_TYPE_NETWORK_INSTANCE", + "OBJECT_TYPE_VOLUME_INSTANCE", + "OBJECT_TYPE_REALM", + "OBJECT_TYPE_AUTHPROFILE", + "OBJECT_TYPE_POLICY", + "OBJECT_TYPE_APP_POLICY", + "OBJECT_TYPE_CLUSTER_INSTANCE", + "OBJECT_TYPE_PLUGIN", + "OBJECT_TYPE_DOC_POLICY", + "OBJECT_TYPE_ORCHESTRATOR_CLUSTER", + "OBJECT_TYPE_TAGS", + "OBJECT_TYPE_EDGE_NODE_INTERFACE", + "OBJECT_TYPE_DEPLOYMENT", + "OBJECT_TYPE_ENTITLEMENTS", + "OBJECT_TYPE_DATA_STREAM", + "OBJECT_TYPE_API_USAGE", + "OBJECT_TYPE_APP_INSTANCE_SNAPSHOT", + "OBJECT_TYPE_PATCH_ENVELOPE", + "OBJECT_TYPE_RESOURCE_USAGE_TRACK", + "OBJECT_TYPE_PATCH_ENVELOPE_REFERENCE", + "OBJECT_TYPE_DEV_PASSTHROUGH", + "OBJECT_TYPE_EDGE_NODE_CLUSTER", + "OBJECT_TYPE_ASSET_GROUP", + "OBJECT_TYPE_APP_PROFILE", + "OBJECT_TYPE_PROFILE_DEPLOYMENT", + "OBJECT_TYPE_ZKS_INSTANCE", + "OBJECT_TYPE_CLUSTER_GROUP" + ], + "default": "OBJECT_TYPE_UNSPECIFIED" + }, + "OpaqueToken64": { + "type": "object", + "properties": { + "base64": { + "type": "string" + } + }, + "title": "Base64 encoded opaque token" + }, + "PasswordProfile": { + "type": "object", + "properties": { + "minLength": { + "type": "integer", + "format": "int64" + }, + "maxLength": { + "type": "integer", + "format": "int64" + }, + "minNumericChars": { + "type": "integer", + "format": "int64" + }, + "minSymbolChars": { + "type": "integer", + "format": "int64" + }, + "minUppercaseChars": { + "type": "integer", + "format": "int64" + }, + "minLowercaseChars": { + "type": "integer", + "format": "int64" + }, + "maxPasswordAge": { + "type": "integer", + "format": "int64" + }, + "minPasswordAge": { + "type": "integer", + "format": "int64" + }, + "numPrevPasswordCheck": { + "type": "integer", + "format": "int64" + }, + "passwordExpiryNotificationPeriodInSeconds": { + "type": "integer", + "format": "int64" + } + } + }, + "PluginEntitlement": { + "type": "object", + "properties": { + "pluginTotalLimit": { + "type": "integer", + "format": "int32" + }, + "pluginTotalUsage": { + "type": "integer", + "format": "int64" + }, + "pluginTypeEntitlement": { + "type": "array", + "items": { + "$ref": "#/definitions/PluginTypeEntitlement" + } + } + } + }, + "PluginReport": { + "type": "object", + "properties": { + "entpId": { + "type": "string", + "description": "Enterprise id for which we want to get summary report for all objects", + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "pluginSummaryReport": { + "$ref": "#/definitions/PluginSummaryReport", + "description": "Enterprise plugin report" + }, + "error": { + "type": "string", + "description": "Error while fetching report for enterprise, if any" + } + }, + "description": "Get summary reports of plugin objects for self/child enterprise", + "title": "Get plugin reports" + }, + "PluginSummaryReport": { + "type": "object", + "properties": { + "totalPlugins": { + "type": "integer", + "format": "int64" + } + } + }, + "PluginType": { + "type": "string", + "enum": [ + "PLUGIN_TYPE_UNSPECIFIED", + "PLUGIN_TYPE_SPLUNK", + "PLUGIN_TYPE_HTTP", + "PLUGIN_TYPE_RANCHER", + "PLUGIN_TYPE_VMWARE_VCO", + "PLUGIN_TYPE_VMWARE_TMC", + "PLUGIN_TYPE_OTEL" + ], + "default": "PLUGIN_TYPE_UNSPECIFIED" + }, + "PluginTypeEntitlement": { + "type": "object", + "properties": { + "pluginType": { + "$ref": "#/definitions/PluginType" + }, + "pluginTypeLimit": { + "type": "integer", + "format": "int32" + }, + "pluginTypeUsage": { + "type": "integer", + "format": "int64" + } + } + }, + "Policies": { + "type": "object", + "properties": { + "summaryByState": { + "$ref": "#/definitions/Summary" + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/Policy" + } + }, + "next": { + "$ref": "#/definitions/Cursor" + } + } + }, + "Policy": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "zone": { + "type": "string" + }, + "scope": { + "$ref": "#/definitions/PolicyScope" + }, + "access": { + "$ref": "#/definitions/PolicyAccess" + }, + "ownerId": { + "type": "string" + }, + "external": { + "type": "boolean" + } + } + }, + "PolicyAccess": { + "type": "string", + "enum": [ + "PermissionAccess__INVALID__", + "PermissionAccessCreate", + "PermissionAccessRead", + "PermissionAccessCreateRead", + "PermissionAccessUpdate", + "PermissionAccessCreateUpdate", + "PermissionAccessReadUpdate", + "PermissionAccessCreateReadUpdate", + "PermissionAccessDelete", + "PermissionAccessCreateDelete", + "PermissionAccessReadDelete", + "PermissionAccessCreateReadDelete", + "PermissionAccessUpdateDelete", + "PermissionAccessCreateUpdateDelete", + "PermissionAccessReadUpdateDelete", + "PermissionAccessCreateReadUpdateDelete", + "PermissionAccessExecute", + "PermissionAccessCreateExecute", + "PermissionAccessReadExecute", + "PermissionAccessCreateReadExecute", + "PermissionAccessUpdateExecute", + "PermissionAccessCreateUpdateExecute", + "PermissionAccessReadUpdateExecute", + "PermissionAccessCreateReadUpdateExecute", + "PermissionAccessDeleteExecute", + "PermissionAccessCreateDeleteExecute", + "PermissionAccessReadDeleteExecute", + "PermissionAccessCreateReadDeleteExecute", + "PermissionAccessUpdateDeleteExecute", + "PermissionAccessCreateUpdateDeleteExecute", + "PermissionAccessReadUpdateDeleteExecute", + "PermissionAccessCreateReadUpdateDeleteExecute", + "PermissionAccessQuery", + "PermissionAccessCreateQuery", + "PermissionAccessReadQuery", + "PermissionAccessCreateReadQuery", + "PermissionAccessUpdateQuery", + "PermissionAccessCreateUpdateQuery", + "PermissionAccessReadUpdateQuery", + "PermissionAccessCreateReadUpdateQuery", + "PermissionAccessDeleteQuery", + "PermissionAccessCreateDeleteQuery", + "PermissionAccessReadDeleteQuery", + "PermissionAccessCreateReadDeleteQuery", + "PermissionAccessUpdateDeleteQuery", + "PermissionAccessCreateUpdateDeleteQuery", + "PermissionAccessReadUpdateDeleteQuery", + "PermissionAccessCreateReadUpdateDeleteQuery", + "PermissionAccessExecuteQuery", + "PermissionAccessCreateExecuteQuery", + "PermissionAccessReadExecuteQuery", + "PermissionAccessCreateReadExecuteQuery", + "PermissionAccessUpdateExecuteQuery", + "PermissionAccessCreateUpdateExecuteQuery", + "PermissionAccessReadUpdateExecuteQuery", + "PermissionAccessCreateReadUpdateExecuteQuery", + "PermissionAccessDeleteExecuteQuery", + "PermissionAccessCreateDeleteExecuteQuery", + "PermissionAccessReadDeleteExecuteQuery", + "PermissionAccessCreateReadDeleteExecuteQuery", + "PermissionAccessUpdateDeleteExecuteQuery", + "PermissionAccessCreateUpdateDeleteExecuteQuery", + "PermissionAccessReadUpdateDeleteExecuteQuery", + "PermissionAccessCreateReadUpdateDeleteExecuteQuery" + ], + "default": "PermissionAccess__INVALID__" + }, + "PolicyScope": { + "type": "string", + "enum": [ + "PermissionScope__INVALID__", + "PermissionScopeOther", + "PermissionScopeGroup", + "PermissionScopeOtherGroup", + "PermissionScopeOwner", + "PermissionScopeOtherOwner", + "PermissionScopeGroupOwner", + "PermissionScopeOtherGroupOwner", + "PermissionScopeEnterprise", + "PermissionScopeOtherEnterprise", + "PermissionScopeGroupEnterprise", + "PermissionScopeOtherGroupEnterprise", + "PermissionScopeOwnerEnterprise", + "PermissionScopeOtherOwnerEnterprise", + "PermissionScopeGroupOwnerEnterprise", + "PermissionScopeOtherGroupOwnerEnterprise" + ], + "default": "PermissionScope__INVALID__", + "title": "Scope of the permission, similar to Unix file system" + }, + "PolicyVersion": { + "type": "object", + "properties": { + "Policy": { + "type": "string" + }, + "Version": { + "type": "string" + }, + "AcceptedAt": { + "type": "string", + "format": "date-time" + }, + "AcceptedBy": { + "type": "string" + }, + "EffectiveFrom": { + "type": "string", + "format": "date-time" + } + } + }, + "PolicyVersionList": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/PolicyVersion" + } + } + } + }, + "ProjectList": { + "type": "object", + "properties": { + "project": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "ProjectReport": { + "type": "object", + "properties": { + "entpId": { + "type": "string", + "description": "Enterprise id for which we want to get summary report for all objects", + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "projectSummaryReport": { + "$ref": "#/definitions/ProjectSummaryReport", + "description": "Enterprise project report" + }, + "error": { + "type": "string", + "description": "Error while fetching report for enterprise, if any" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "cursor next" + } + }, + "description": "Get summary reports of project objects for self/child enterprise", + "title": "Get project reports" + }, + "ProjectSummaryReport": { + "type": "object", + "properties": { + "total": { + "type": "integer", + "format": "int64" + }, + "deviceDistribution": { + "type": "array", + "items": { + "$ref": "#/definitions/DeviceDistribution" + } + } + } + }, + "Realm": { + "type": "object", + "example": { + "id": "EAJ1ABAi-KOom7dJlrBoE8eq1pj9", + "name": "zededa.com", + "enterpriseId": "AAFlABDe6Nm63ixF5LJBbk9Keqp6", + "title": "zededa", + "description": "Test realm", + "revision": { + "prev": "", + "curr": "1", + "createdAt": "2020-07-17T06:03:14Z", + "createdBy": "us.root@zededa.com", + "updatedAt": "2020-07-17T06:03:14Z", + "updatedBy": "us.root@zededa.com" + } + }, + "properties": { + "id": { + "type": "string", + "description": "Unique system defined realm ID", + "readOnly": true, + "pattern": "[0-9A-Za-z_=-]{28}", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the realm. Name cannot be changed once created", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "enterpriseId": { + "type": "string", + "description": "Enterprise ID of the enterprise where the realm is to be created", + "pattern": "[0-9A-Za-z_=-]{28}", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the realm. Title can be changed anytime", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+" + }, + "description": { + "type": "string", + "description": "Detailed description of the realm", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "System defined info", + "readOnly": true + } + }, + "description": "Realm meta data", + "title": "Realm detail", + "required": [ + "name", + "title", + "enterpriseId" + ] + }, + "Realms": { + "type": "object", + "properties": { + "summaryByState": { + "$ref": "#/definitions/Summary", + "description": "Summary of filtered realms" + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/Realm" + }, + "description": "List of realms" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "Page details of the filtered records" + } + } + }, + "Role": { + "type": "object", + "example": { + "id": "AAGFABAEqnH4je5PHZTXSmHOs-XC", + "name": "SysRoot", + "title": "SysRoot", + "description": "", + "revision": { + "prev": "", + "curr": "1", + "createdAt": "2020-07-16T18:19:56Z", + "createdBy": "SYSTEM_ROOT", + "updatedAt": "1970-01-01T00:00:01Z", + "updatedBy": "SYSTEM_ROOT" + }, + "type": "USER_ROLE_CLUSTER", + "state": "ROLE_STATE_ACTIVE", + "scopes": [ + { + "accessDevice": "PermissionAccessCreateReadUpdateDelete", + "accessApp": "PermissionAccessCreateReadUpdateDelete", + "accessUser": "PermissionAccessCreateReadUpdateDelete", + "accessStorage": "PermissionAccessCreateReadUpdateDelete", + "accessEnterprise": "PermissionAccessCreateReadUpdateDelete", + "enterpriseFilter": [ + "srAll" + ], + "projectFilter": [ + "srAll" + ] + } + ] + }, + "properties": { + "id": { + "type": "string", + "description": "Unique system defined role ID", + "readOnly": true, + "pattern": "[0-9A-Za-z_=-]{28}", + "uniqueItems": true + }, + "name": { + "type": "string", + "description": "User defined name of the role. Name cannot be changed once created", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+", + "uniqueItems": true + }, + "title": { + "type": "string", + "description": "User defined title of the role. Title can be changed anytime", + "maxLength": 256, + "minLength": 3, + "pattern": "[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+" + }, + "description": { + "type": "string", + "description": "Detailed description of the role", + "maxLength": 256 + }, + "revision": { + "$ref": "#/definitions/ObjectRevision", + "description": "System defined info", + "readOnly": true + }, + "type": { + "$ref": "#/definitions/UserRole", + "description": "Type of the role" + }, + "state": { + "$ref": "#/definitions/RoleState", + "description": "State of the role" + }, + "scopes": { + "type": "array", + "items": { + "$ref": "#/definitions/Scope" + }, + "description": "Scopes/Permissions associated with the role" + }, + "projectTags": { + "type": "string", + "additionalProperties": { + "type": "string" + }, + "description": "Map of project tags filter" + } + }, + "description": "Role meta data", + "title": "Role detail", + "required": [ + "name", + "title", + "type", + "scopes" + ] + }, + "RoleState": { + "type": "string", + "enum": [ + "ROLE_STATE_UNSPECIFIED", + "ROLE_STATE_CREATED", + "ROLE_STATE_ACTIVE", + "ROLE_STATE_INACTIVE", + "ROLE_STATE_ARCHIVED" + ], + "default": "ROLE_STATE_UNSPECIFIED", + "description": "Values for this needs to match the const defined in libs/database/datamodel.go for\nbackward compatibility." + }, + "Roles": { + "type": "object", + "properties": { + "summaryByState": { + "$ref": "#/definitions/Summary", + "description": "Summary of filtered roles" + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + }, + "description": "List of roles" + }, + "next": { + "$ref": "#/definitions/Cursor", + "description": "Page details of the filtered records" + } + } + }, + "Scope": { + "type": "object", + "properties": { + "accessDevice": { + "type": "string", + "description": "Device access permission" + }, + "accessApp": { + "type": "string", + "description": "Application access permission, this will be deprecated in further release - please use accessEdgeApp and accessAppInstance for granular permission access scope." + }, + "accessUser": { + "type": "string", + "description": "User access permission" + }, + "accessStorage": { + "type": "string", + "description": "Storage access permission" + }, + "accessEnterprise": { + "type": "string", + "description": "Enterprise access permission" + }, + "enterpriseFilter": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of enterprise filters" + }, + "projectFilter": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of project filters" + }, + "accessEdgeApp": { + "type": "string", + "description": "Edge app access permission" + }, + "accessAppInstance": { + "type": "string", + "description": "Application Instance access permission" + }, + "accessEnterpriseIntegrationItems": { + "type": "string", + "description": "datastream and 3rd party integration access permission" + }, + "uuid": { + "type": "string", + "description": "Unique system defined scope ID", + "readOnly": true, + "pattern": "[0-9A-Za-z_=-]{28}", + "uniqueItems": true + } + } + }, + "ServerSyncStatus": { + "type": "object", + "properties": { + "serverName": { + "type": "string" + }, + "status": { + "type": "string" + }, + "error": { + "type": "string" + } + } + }, + "SessionDetails": { + "type": "object", + "properties": { + "sessionId": { + "type": "string", + "description": "DEPRECATED. sessionId is obfuscated for security reasons", + "readOnly": true + }, + "expiresAt": { + "type": "string", + "format": "date-time", + "description": "session expiry time" + }, + "userName": { + "type": "string", + "description": "Logged in user name" + }, + "clientIp": { + "type": "string", + "description": "IP address of the logged in user" + }, + "userAgent": { + "type": "string", + "description": "user agent details" + } + }, + "description": "Details of all logged in session", + "title": "Session detail" + }, + "SimpleUser": { + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "BEGIN-SYNC(SimpleUser)" + }, + "username": { + "type": "string" + }, + "realmId": { + "type": "string" + }, + "state": { + "$ref": "#/definitions/UserState" + }, + "firstName": { + "type": "string" + } + } + }, + "Summary": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Summary description" + }, + "total": { + "type": "number", + "format": "int64", + "description": "Total" + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "integer", + "format": "int64" + }, + "description": "Values: Map for storing " + } + }, + "description": "Summary is used to store the Summary details", + "title": "Summary is used to store the Summary details" + }, + "TOTPEnrolmentURL": { + "type": "object", + "properties": { + "URL": { + "type": "string" + }, + "Secret": { + "type": "string" + } + } + }, + "TOTPSettings": { + "type": "object", + "properties": { + "enforce": { + "type": "boolean" + }, + "enforceInChildren": { + "type": "boolean" + }, + "enforcedByParent": { + "type": "boolean" + } + } + }, + "Token64": { + "type": "object", + "properties": { + "base64": { + "type": "string" + }, + "expires": { + "type": "string", + "format": "int64" + } + }, + "title": "Base64 encoded token" + }, + "UserEntitlement": { + "type": "object", + "properties": { + "limit": { + "type": "integer", + "format": "int32" + }, + "usage": { + "type": "integer", + "format": "int64" + } + } + }, + "UserReport": { + "type": "object", + "properties": { + "entpId": { + "type": "string", + "description": "Enterprise id for which we want to get summary report for all objects", + "pattern": "[0-9A-Za-z-]+", + "uniqueItems": true + }, + "userSummaryReport": { + "$ref": "#/definitions/UserSummaryReport", + "description": "Enterprise user report" + }, + "error": { + "type": "string", + "description": "Error while fetching report for enterprise, if any" + } + }, + "description": "Get summary reports of user objects for self/child enterprise", + "title": "Get user reports" + }, + "UserRole": { + "type": "string", + "enum": [ + "USER_ROLE_UNSPECIFIED", + "USER_ROLE_SYSTEM_DEFINED", + "USER_ROLE_USER_DEFINED", + "USER_ROLE_CLUSTER" + ], + "default": "USER_ROLE_UNSPECIFIED" + }, + "UserState": { + "type": "string", + "enum": [ + "USER_STATE_UNSPECIFIED", + "USER_STATE_CREATED", + "USER_STATE_ACTIVE", + "USER_STATE_INACTIVE", + "USER_STATE_SIGNEDUP", + "USER_STATE_SUSPENDED" + ], + "default": "USER_STATE_UNSPECIFIED", + "title": "General well being of the user" + }, + "UserSummaryReport": { + "type": "object", + "properties": { + "users": { + "type": "integer", + "format": "int64" + }, + "activeUsersCount": { + "type": "integer", + "format": "int64" + }, + "lastLoggedinUserInfo": { + "$ref": "#/definitions/LastLoggedinUserInfo" + } + } + }, + "UserUsagePerEnterprise": { + "type": "object", + "properties": { + "entpId": { + "type": "string", + "description": "Enterprise id", + "readOnly": true, + "pattern": "[0-9A-Za-z-]+" + }, + "userUsage": { + "type": "string", + "format": "int64", + "description": "User usage for that enterprise" + } + } + }, + "UserUsagePerEnterpriseList": { + "type": "object", + "properties": { + "userUsagePerEntp": { + "type": "array", + "items": { + "$ref": "#/definitions/UserUsagePerEnterprise" + }, + "description": "user usage per enterprise list" + } + } + }, + "ZcOpsStatus": { + "type": "string", + "enum": [ + "OPS_STATUS_UNSPECIFIED", + "OPS_STATUS_PENDING", + "OPS_STATUS_ONGOING", + "OPS_STATUS_COMPLETE" + ], + "default": "OPS_STATUS_UNSPECIFIED", + "description": "- OPS_STATUS_PENDING: In rare cases, system may not start operation when it was requested. Client will be notified that operation is PENDING\n - OPS_STATUS_ONGOING: system will start the operation, but at the time response was generated, operation is still ONGOING.\n - OPS_STATUS_COMPLETE: Even if the result of the operations may result in failure, but the OpsStatus will marked COMPLETE for almost all cases.", + "title": "ZedCloud internal operation status" + }, + "ZcOpsType": { + "type": "string", + "enum": [ + "OPS_TYPE_UNSPECIFIED", + "OPS_TYPE_READ", + "OPS_TYPE_DELETE", + "OPS_TYPE_CREATE", + "OPS_TYPE_UPDATE", + "OPS_TYPE_LIST" + ], + "default": "OPS_TYPE_UNSPECIFIED", + "title": "ZedCloud internal operation type" + }, + "ZksSyncStatus": { + "type": "object", + "properties": { + "status": { + "$ref": "#/definitions/ZksSyncStatusCode" + }, + "serverStatuses": { + "type": "array", + "items": { + "$ref": "#/definitions/ServerSyncStatus" + } + } + } + }, + "ZksSyncStatusCode": { + "type": "string", + "enum": [ + "ZKS_SYNC_STATUS_CODE_UNSPECIFIED", + "ZKS_SYNC_STATUS_CODE_HEALTHY", + "ZKS_SYNC_STATUS_CODE_PARTIALLY_HEALTHY", + "ZKS_SYNC_STATUS_CODE_UNHEALTHY" + ], + "default": "ZKS_SYNC_STATUS_CODE_UNSPECIFIED" + }, + "ZsrvError": { + "type": "object", + "properties": { + "ec": { + "$ref": "#/definitions/ZsrvErrorCode", + "title": "Enumrated error code, describes more granular numerical\nvalue than just httpStatus" + }, + "location": { + "type": "string", + "title": "Ignore: Internal field only" + }, + "details": { + "type": "string", + "title": "Field captures string description of details" + } + } + }, + "ZsrvErrorCode": { + "type": "string", + "enum": [ + "zMsgErrorNone", + "zMsgSucess", + "NotFound", + "AlreadyExists", + "VersionMismatch", + "RangeError", + "LargeResult", + "IncompleteData", + "InvalidData", + "FunctionUnsupported", + "NoMemory", + "SendFailure", + "Timeout", + "BadReqBody", + "BadReqParam", + "InvalidFieldFormat", + "UrlNotFound", + "ApiVersionNotSupported", + "Unauthorized", + "Forbidden", + "Conflict", + "NotModified", + "DependencyConflict", + "JsonFmtError", + "ProtoFmtError", + "CertError", + "DataBaseConnection", + "DBError", + "zMsgAccepted", + "zMsgCreated", + "PreConditionFailed", + "InternalServerError" + ], + "default": "zMsgErrorNone", + "description": "- zMsgErrorNone: common validation errors\n - IncompleteData: message had fields that weren't filled in\n - InvalidData: message contained the field that wasn't expected\n - FunctionUnsupported: this feature unavailable on this version of device\n - InvalidFieldFormat: message contained the field that wasn't correctly formatted\n - JsonFmtError: Marshal / Unmarshal errors\n - DataBaseConnection: generic DB error", + "title": "ZedCould internal error code" + }, + "ZsrvResponse": { + "type": "object", + "properties": { + "operationType": { + "$ref": "#/definitions/ZcOpsType", + "title": "Describes one of the operations type : possible values\n Read/Delete/Create/Update/List" + }, + "operationStatus": { + "$ref": "#/definitions/ZcOpsStatus", + "title": "if this is log running job" + }, + "objectKind": { + "type": "string", + "title": "zedcloud object kind on which the operation was performed" + }, + "objectId": { + "type": "string", + "title": "Unique value identifies the object that was operated on" + }, + "objectName": { + "type": "string", + "title": "name of the object" + }, + "objectRevision": { + "type": "string", + "title": "object revision post the operation, note Read operation\ndoesn't change the revision" + }, + "objectType": { + "$ref": "#/definitions/ObjectType" + }, + "operationTime": { + "type": "string", + "title": "time of operation" + }, + "startTime": { + "type": "string", + "title": "total time taken by operations" + }, + "endTime": { + "type": "string" + }, + "user": { + "type": "string", + "title": "the operation is performed on behalf of this user" + }, + "httpStatusCode": { + "type": "integer", + "format": "int32", + "title": "http response" + }, + "httpStatusMsg": { + "type": "string", + "title": "summary of the error in text format" + }, + "jobId": { + "type": "string", + "title": "for tracking asynchronous tasks" + }, + "error": { + "type": "array", + "items": { + "$ref": "#/definitions/ZsrvError" + }, + "title": "one or more errors will be set if the operation failed\ni.e. httpStatusCode != 2xx" + } + } + }, + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "typeUrl": { + "type": "string" + }, + "value": { + "type": "string", + "format": "byte" + } + } + } + }, + "securityDefinitions": { + "BearerToken": { + "type": "apiKey", + "description": "Bearer token for user session", + "name": "Authorization", + "in": "header" + } + }, + "security": [ + { + "BearerToken": [] + } + ], + "externalDocs": { + "description": "ZEDEDA Product Documentation", + "url": "https://docs.zededa.com/-M-8m8d8KqdLpfOgY_jo/iam" + } +} \ No newline at end of file diff --git a/packages/zedcloud-automation/pyproject.toml b/packages/zedcloud-automation/pyproject.toml new file mode 100644 index 0000000..323aa8b --- /dev/null +++ b/packages/zedcloud-automation/pyproject.toml @@ -0,0 +1,24 @@ +[project] +name = "zedcloud-automation" +version = "0.1.0" +description = "Pytest fixtures and helpers for ZEDEDA Zedcloud API automation" +requires-python = ">=3.10" +license = { text = "MIT" } +authors = [{ name = "vignesh-zededa" }] +dependencies = [ + "zedcloud", + "pytest>=8.0.0", +] + +[project.entry-points.pytest11] +zedcloud_automation = "zedcloud_automation.plugin" + +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[tool.hatch.build.targets.wheel] +packages = ["src/zedcloud_automation"] + +[tool.uv.sources] +zedcloud = { workspace = true } diff --git a/packages/zedcloud-automation/src/zedcloud_automation/__init__.py b/packages/zedcloud-automation/src/zedcloud_automation/__init__.py new file mode 100644 index 0000000..3e637ae --- /dev/null +++ b/packages/zedcloud-automation/src/zedcloud_automation/__init__.py @@ -0,0 +1,15 @@ +"""Pytest automation helpers built on the Zedcloud SDK.""" + +from zedcloud_automation.markers import needs_cloud, register_markers +from zedcloud_automation.resources import ManagedResource, ResourceTracker +from zedcloud_automation.waits import wait_until + +__all__ = [ + "ManagedResource", + "ResourceTracker", + "needs_cloud", + "register_markers", + "wait_until", +] + +__version__ = "0.1.0" diff --git a/packages/zedcloud-automation/src/zedcloud_automation/fixtures.py b/packages/zedcloud-automation/src/zedcloud_automation/fixtures.py new file mode 100644 index 0000000..58866cf --- /dev/null +++ b/packages/zedcloud-automation/src/zedcloud_automation/fixtures.py @@ -0,0 +1,39 @@ +"""Pytest fixtures yielding authenticated Zedcloud clients.""" + +from __future__ import annotations + +import pytest + +from zedcloud import ZedcloudClient +from zedcloud_automation.markers import credentials_available, skip_without_credentials +from zedcloud_automation.resources import ResourceTracker + + +@pytest.fixture(scope="session") +def zedcloud_credentials_present() -> bool: + return credentials_available() + + +@pytest.fixture(scope="session") +def zedcloud_client(zedcloud_credentials_present: bool): + """Session-scoped authenticated client; skips when credentials are missing.""" + if not zedcloud_credentials_present: + skip_without_credentials() + client = ZedcloudClient.from_env() + yield client + client.close() + + +@pytest.fixture +def resource_tracker(zedcloud_client: ZedcloudClient): + """Track created resources and delete them after the test.""" + tracker = ResourceTracker(zedcloud_client) + yield tracker + tracker.cleanup() + + +__all__ = [ + "resource_tracker", + "zedcloud_client", + "zedcloud_credentials_present", +] diff --git a/packages/zedcloud-automation/src/zedcloud_automation/markers.py b/packages/zedcloud-automation/src/zedcloud_automation/markers.py new file mode 100644 index 0000000..a3b81e0 --- /dev/null +++ b/packages/zedcloud-automation/src/zedcloud_automation/markers.py @@ -0,0 +1,33 @@ +"""Pytest markers for Zedcloud automation suites.""" + +from __future__ import annotations + +import os +from collections.abc import Callable +from typing import Any, TypeVar + +import pytest + +F = TypeVar("F", bound=Callable[..., Any]) + +smoke = pytest.mark.smoke +integration = pytest.mark.integration +needs_cloud = pytest.mark.needs_cloud + + +def register_markers(config: Any) -> None: + config.addinivalue_line("markers", "smoke: read-only smoke checks") + config.addinivalue_line("markers", "integration: may create or modify resources") + config.addinivalue_line( + "markers", + "needs_cloud: requires ZEDCLOUD_BASE_URL and ZEDCLOUD_TOKEN", + ) + + +def credentials_available() -> bool: + return bool(os.environ.get("ZEDCLOUD_BASE_URL") and os.environ.get("ZEDCLOUD_TOKEN")) + + +def skip_without_credentials() -> None: + if not credentials_available(): + pytest.skip("ZEDCLOUD_BASE_URL and ZEDCLOUD_TOKEN are required") diff --git a/packages/zedcloud-automation/src/zedcloud_automation/plugin.py b/packages/zedcloud-automation/src/zedcloud_automation/plugin.py new file mode 100644 index 0000000..c11455b --- /dev/null +++ b/packages/zedcloud-automation/src/zedcloud_automation/plugin.py @@ -0,0 +1,10 @@ +"""Pytest plugin registration for zedcloud-automation.""" + +from __future__ import annotations + +from zedcloud_automation.fixtures import * # noqa: F403 +from zedcloud_automation.markers import register_markers + + +def pytest_configure(config): # type: ignore[no-untyped-def] + register_markers(config) diff --git a/packages/zedcloud-automation/src/zedcloud_automation/resources.py b/packages/zedcloud-automation/src/zedcloud_automation/resources.py new file mode 100644 index 0000000..c7e9fd1 --- /dev/null +++ b/packages/zedcloud-automation/src/zedcloud_automation/resources.py @@ -0,0 +1,64 @@ +"""Resource lifecycle helpers for create → use → cleanup patterns.""" + +from __future__ import annotations + +from collections.abc import Callable +from dataclasses import dataclass, field +from typing import Any + +from zedcloud import ZedcloudClient + + +@dataclass +class ManagedResource: + """A resource with an optional cleanup callback.""" + + kind: str + resource_id: str + name: str | None = None + raw: Any = None + delete: Callable[[], None] | None = None + + +@dataclass +class ResourceTracker: + """Collects resources created during a test and deletes them in reverse order.""" + + client: ZedcloudClient + _resources: list[ManagedResource] = field(default_factory=list) + + def track(self, resource: ManagedResource) -> ManagedResource: + self._resources.append(resource) + return resource + + def add( + self, + kind: str, + resource_id: str, + *, + name: str | None = None, + raw: Any = None, + delete: Callable[[], None] | None = None, + ) -> ManagedResource: + return self.track( + ManagedResource( + kind=kind, + resource_id=resource_id, + name=name, + raw=raw, + delete=delete, + ) + ) + + def cleanup(self) -> None: + errors: list[str] = [] + while self._resources: + resource = self._resources.pop() + if resource.delete is None: + continue + try: + resource.delete() + except Exception as exc: # noqa: BLE001 — collect all cleanup failures + errors.append(f"{resource.kind}/{resource.resource_id}: {exc}") + if errors: + raise RuntimeError("resource cleanup failed:\n" + "\n".join(errors)) diff --git a/packages/zedcloud-automation/src/zedcloud_automation/waits.py b/packages/zedcloud-automation/src/zedcloud_automation/waits.py new file mode 100644 index 0000000..adb1b24 --- /dev/null +++ b/packages/zedcloud-automation/src/zedcloud_automation/waits.py @@ -0,0 +1,27 @@ +"""Polling helpers for eventually-consistent Zedcloud state.""" + +from __future__ import annotations + +import time +from collections.abc import Callable +from typing import TypeVar + +T = TypeVar("T") + + +def wait_until( + predicate: Callable[[], T | None | bool], + *, + timeout: float = 60.0, + interval: float = 2.0, + message: str = "condition not met", +) -> T: + """Poll ``predicate`` until it returns a truthy value or ``timeout`` elapses.""" + deadline = time.monotonic() + timeout + last: T | None | bool = None + while time.monotonic() < deadline: + last = predicate() + if last: + return last # type: ignore[return-value] + time.sleep(interval) + raise TimeoutError(f"{message} (last={last!r})") diff --git a/packages/zedcloud-automation/tests/smoke/test_smoke_readonly.py b/packages/zedcloud-automation/tests/smoke/test_smoke_readonly.py new file mode 100644 index 0000000..0740cd5 --- /dev/null +++ b/packages/zedcloud-automation/tests/smoke/test_smoke_readonly.py @@ -0,0 +1,29 @@ +"""Read-only smoke tests against a live Zedcloud tenant (skipped without creds).""" + +from __future__ import annotations + +import pytest + +from zedcloud import ZedcloudClient + +pytestmark = [ + pytest.mark.smoke, + pytest.mark.needs_cloud, +] + + +def test_list_enterprises(zedcloud_client: ZedcloudClient) -> None: + result = zedcloud_client.iam.query_enterprises(next_page_size=5) + assert result is not None + + +def test_list_apps_readonly(zedcloud_client: ZedcloudClient) -> None: + result = zedcloud_client.apps.query_edge_application_bundles(next_page_size=5, summary=True) + assert result is not None + assert hasattr(result, "list") + + +def test_list_nodes_readonly(zedcloud_client: ZedcloudClient) -> None: + result = zedcloud_client.nodes.query_edge_nodes(next_page_size=5, summary=True) + assert result is not None + assert hasattr(result, "list") diff --git a/packages/zedcloud-mcp/README.md b/packages/zedcloud-mcp/README.md new file mode 100644 index 0000000..c68bc51 --- /dev/null +++ b/packages/zedcloud-mcp/README.md @@ -0,0 +1,15 @@ +# Zedcloud MCP Server + +Exposes focused ZEDEDA Zedcloud operations as [Model Context Protocol](https://modelcontextprotocol.io/) tools. + +## Run + +```bash +export ZEDCLOUD_BASE_URL=https://zedcontrol.zededa.net +export ZEDCLOUD_TOKEN=… +uv run zedcloud-mcp +``` + +## Cursor / Claude Desktop + +See the repository root README for MCP config snippets. diff --git a/packages/zedcloud-mcp/pyproject.toml b/packages/zedcloud-mcp/pyproject.toml new file mode 100644 index 0000000..abfe286 --- /dev/null +++ b/packages/zedcloud-mcp/pyproject.toml @@ -0,0 +1,24 @@ +[project] +name = "zedcloud-mcp" +version = "0.1.0" +description = "MCP server exposing ZEDEDA Zedcloud operations via the zedcloud SDK" +requires-python = ">=3.10" +license = { text = "MIT" } +authors = [{ name = "vignesh-zededa" }] +dependencies = [ + "zedcloud", + "mcp>=1.0.0", +] + +[project.scripts] +zedcloud-mcp = "zedcloud_mcp.server:main" + +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[tool.hatch.build.targets.wheel] +packages = ["src/zedcloud_mcp"] + +[tool.uv.sources] +zedcloud = { workspace = true } diff --git a/packages/zedcloud-mcp/src/zedcloud_mcp/__init__.py b/packages/zedcloud-mcp/src/zedcloud_mcp/__init__.py new file mode 100644 index 0000000..1eadac7 --- /dev/null +++ b/packages/zedcloud-mcp/src/zedcloud_mcp/__init__.py @@ -0,0 +1,7 @@ +"""Zedcloud MCP server entrypoint.""" + +from zedcloud_mcp.server import list_tool_names, main, mcp + +__all__ = ["list_tool_names", "main", "mcp"] + +__version__ = "0.1.0" diff --git a/packages/zedcloud-mcp/src/zedcloud_mcp/server.py b/packages/zedcloud-mcp/src/zedcloud_mcp/server.py new file mode 100644 index 0000000..410bb5e --- /dev/null +++ b/packages/zedcloud-mcp/src/zedcloud_mcp/server.py @@ -0,0 +1,64 @@ +"""Zedcloud MCP server (stdio) — tools wrap the ``zedcloud`` SDK only.""" + +from __future__ import annotations + +import json +from collections.abc import Callable +from typing import Any + +from mcp.server.mcpserver import MCPServer + +from zedcloud import ZedcloudClient +from zedcloud_mcp.tools import TOOL_SPECS + +mcp = MCPServer( + name="zedcloud", + instructions=( + "ZEDEDA Zedcloud control-plane tools. Authenticate via " + "ZEDCLOUD_BASE_URL and ZEDCLOUD_TOKEN environment variables." + ), +) + +_client: ZedcloudClient | None = None + + +def get_client() -> ZedcloudClient: + global _client + if _client is None: + _client = ZedcloudClient.from_env() + return _client + + +def _dump(value: Any) -> str: + if hasattr(value, "model_dump"): + return json.dumps( + value.model_dump(mode="json", by_alias=True), + indent=2, + default=str, + ) + return json.dumps(value, indent=2, default=str) + + +def _register(name: str, description: str, handler: Callable[..., str]) -> None: + mcp.tool(name=name, description=description)(handler) + + +def _build_tools() -> None: + for spec in TOOL_SPECS: + _register(spec.name, spec.description, spec.bind(get_client, _dump)) + + +def list_tool_names() -> list[str]: + """Return registered tool names (for make mcp-list / tests).""" + return sorted(spec.name for spec in TOOL_SPECS) + + +_build_tools() + + +def main() -> None: + mcp.run(transport="stdio") + + +if __name__ == "__main__": + main() diff --git a/packages/zedcloud-mcp/src/zedcloud_mcp/tools/__init__.py b/packages/zedcloud-mcp/src/zedcloud_mcp/tools/__init__.py new file mode 100644 index 0000000..17597bd --- /dev/null +++ b/packages/zedcloud-mcp/src/zedcloud_mcp/tools/__init__.py @@ -0,0 +1,18 @@ +"""MCP tool specs grouped by domain.""" + +from zedcloud_mcp.tools.apps import APP_TOOLS +from zedcloud_mcp.tools.base import ToolSpec +from zedcloud_mcp.tools.jobs import JOB_TOOLS +from zedcloud_mcp.tools.k8s import K8S_TOOLS +from zedcloud_mcp.tools.networks import NETWORK_TOOLS +from zedcloud_mcp.tools.nodes import NODE_TOOLS + +TOOL_SPECS: list[ToolSpec] = [ + *NODE_TOOLS, + *APP_TOOLS, + *NETWORK_TOOLS, + *K8S_TOOLS, + *JOB_TOOLS, +] + +__all__ = ["TOOL_SPECS", "ToolSpec"] diff --git a/packages/zedcloud-mcp/src/zedcloud_mcp/tools/apps.py b/packages/zedcloud-mcp/src/zedcloud_mcp/tools/apps.py new file mode 100644 index 0000000..c8d1d61 --- /dev/null +++ b/packages/zedcloud-mcp/src/zedcloud_mcp/tools/apps.py @@ -0,0 +1,79 @@ +"""App-related MCP tools.""" + +from __future__ import annotations + +from zedcloud_mcp.tools.base import ClientFactory, DumpFn, Handler, ToolSpec + + +def _list_apps(get_client: ClientFactory, dump: DumpFn) -> Handler: + def list_apps( + name_pattern: str | None = None, + page_size: float = 25, + ) -> str: + """List edge application bundles.""" + result = get_client().apps.query_edge_application_bundles( + name_pattern=name_pattern, + next_page_size=page_size, + summary=True, + ) + return dump(result) + + return list_apps + + +def _get_app(get_client: ClientFactory, dump: DumpFn) -> Handler: + def get_app(app_id: str) -> str: + """Get an edge application bundle by ID.""" + return dump(get_client().apps.get_edge_application_bundle(app_id)) + + return get_app + + +def _list_app_instances(get_client: ClientFactory, dump: DumpFn) -> Handler: + def list_app_instances( + name_pattern: str | None = None, + project_name: str | None = None, + page_size: float = 25, + ) -> str: + """List edge application instances.""" + result = get_client().apps.query_edge_application_instances( + name_pattern=name_pattern, + project_name=project_name, + next_page_size=page_size, + summary=True, + ) + return dump(result) + + return list_app_instances + + +def _get_app_instance(get_client: ClientFactory, dump: DumpFn) -> Handler: + def get_app_instance(instance_id: str) -> str: + """Get an edge application instance by ID.""" + return dump(get_client().apps.get_edge_application_instance(instance_id)) + + return get_app_instance + + +APP_TOOLS = [ + ToolSpec( + name="zedcloud_list_apps", + description="List edge application bundles.", + make_handler=_list_apps, + ), + ToolSpec( + name="zedcloud_get_app", + description="Get an edge application bundle by ID.", + make_handler=_get_app, + ), + ToolSpec( + name="zedcloud_list_app_instances", + description="List edge application instances.", + make_handler=_list_app_instances, + ), + ToolSpec( + name="zedcloud_get_app_instance", + description="Get an edge application instance by ID.", + make_handler=_get_app_instance, + ), +] diff --git a/packages/zedcloud-mcp/src/zedcloud_mcp/tools/base.py b/packages/zedcloud-mcp/src/zedcloud_mcp/tools/base.py new file mode 100644 index 0000000..7e59121 --- /dev/null +++ b/packages/zedcloud-mcp/src/zedcloud_mcp/tools/base.py @@ -0,0 +1,23 @@ +"""Shared MCP tool descriptor.""" + +from __future__ import annotations + +from collections.abc import Callable +from dataclasses import dataclass +from typing import Any + +from zedcloud import ZedcloudClient + +DumpFn = Callable[[Any], str] +ClientFactory = Callable[[], ZedcloudClient] +Handler = Callable[..., str] + + +@dataclass(frozen=True, slots=True) +class ToolSpec: + name: str + description: str + make_handler: Callable[[ClientFactory, DumpFn], Handler] + + def bind(self, get_client: ClientFactory, dump: DumpFn) -> Handler: + return self.make_handler(get_client, dump) diff --git a/packages/zedcloud-mcp/src/zedcloud_mcp/tools/jobs.py b/packages/zedcloud-mcp/src/zedcloud_mcp/tools/jobs.py new file mode 100644 index 0000000..cf9cd53 --- /dev/null +++ b/packages/zedcloud-mcp/src/zedcloud_mcp/tools/jobs.py @@ -0,0 +1,45 @@ +"""Job-related MCP tools.""" + +from __future__ import annotations + +from zedcloud_mcp.tools.base import ClientFactory, DumpFn, Handler, ToolSpec + + +def _list_jobs(get_client: ClientFactory, dump: DumpFn) -> Handler: + def list_jobs( + name_pattern: str | None = None, + project_name: str | None = None, + page_size: float = 25, + ) -> str: + """List asynchronous bulk jobs.""" + result = get_client().jobs.query_jobs( + name_pattern=name_pattern, + project_name=project_name, + next_page_size=page_size, + summary=True, + ) + return dump(result) + + return list_jobs + + +def _get_job(get_client: ClientFactory, dump: DumpFn) -> Handler: + def get_job(job_id: str) -> str: + """Get a job by ID.""" + return dump(get_client().jobs.get_job_by_id(job_id)) + + return get_job + + +JOB_TOOLS = [ + ToolSpec( + name="zedcloud_list_jobs", + description="List asynchronous Zedcloud jobs.", + make_handler=_list_jobs, + ), + ToolSpec( + name="zedcloud_get_job", + description="Get a Zedcloud job by ID.", + make_handler=_get_job, + ), +] diff --git a/packages/zedcloud-mcp/src/zedcloud_mcp/tools/k8s.py b/packages/zedcloud-mcp/src/zedcloud_mcp/tools/k8s.py new file mode 100644 index 0000000..d2213f6 --- /dev/null +++ b/packages/zedcloud-mcp/src/zedcloud_mcp/tools/k8s.py @@ -0,0 +1,48 @@ +"""Kubernetes / ZKS MCP tools.""" + +from __future__ import annotations + +from zedcloud_mcp.tools.base import ClientFactory, DumpFn, Handler, ToolSpec + + +def _list_zks_instances(get_client: ClientFactory, dump: DumpFn) -> Handler: + def list_zks_instances() -> str: + """List ZKS cluster instances.""" + return dump(get_client().k8s.list_zks_instances()) + + return list_zks_instances + + +def _get_zks_instance(get_client: ClientFactory, dump: DumpFn) -> Handler: + def get_zks_instance(instance_id: str) -> str: + """Get a ZKS cluster instance by ID.""" + return dump(get_client().k8s.get_zks_instance(instance_id)) + + return get_zks_instance + + +def _list_k8s_deployments(get_client: ClientFactory, dump: DumpFn) -> Handler: + def list_k8s_deployments() -> str: + """List Kubernetes deployments managed by ZKS.""" + return dump(get_client().k8s.list_deployments()) + + return list_k8s_deployments + + +K8S_TOOLS = [ + ToolSpec( + name="zedcloud_list_zks_instances", + description="List ZKS (ZEDEDA Kubernetes Service) cluster instances.", + make_handler=_list_zks_instances, + ), + ToolSpec( + name="zedcloud_get_zks_instance", + description="Get a ZKS cluster instance by ID.", + make_handler=_get_zks_instance, + ), + ToolSpec( + name="zedcloud_list_k8s_deployments", + description="List Kubernetes deployments managed via Zedcloud.", + make_handler=_list_k8s_deployments, + ), +] diff --git a/packages/zedcloud-mcp/src/zedcloud_mcp/tools/networks.py b/packages/zedcloud-mcp/src/zedcloud_mcp/tools/networks.py new file mode 100644 index 0000000..74bc0a7 --- /dev/null +++ b/packages/zedcloud-mcp/src/zedcloud_mcp/tools/networks.py @@ -0,0 +1,68 @@ +"""Network-related MCP tools.""" + +from __future__ import annotations + +from zedcloud_mcp.tools.base import ClientFactory, DumpFn, Handler, ToolSpec + + +def _list_networks(get_client: ClientFactory, dump: DumpFn) -> Handler: + def list_networks( + name_pattern: str | None = None, + project_name: str | None = None, + page_size: float = 25, + ) -> str: + """List edge networks.""" + result = get_client().networks.query_edge_networks( + name_pattern=name_pattern, + project_name=project_name, + next_page_size=page_size, + summary=True, + ) + return dump(result) + + return list_networks + + +def _get_network(get_client: ClientFactory, dump: DumpFn) -> Handler: + def get_network(network_id: str) -> str: + """Get an edge network by ID.""" + return dump(get_client().networks.get_edge_network(network_id)) + + return get_network + + +def _list_network_instances(get_client: ClientFactory, dump: DumpFn) -> Handler: + def list_network_instances( + name_pattern: str | None = None, + project_name: str | None = None, + page_size: float = 25, + ) -> str: + """List edge network instances.""" + result = get_client().networks.query_edge_network_instances( + name_pattern=name_pattern, + project_name=project_name, + next_page_size=page_size, + summary=True, + ) + return dump(result) + + return list_network_instances + + +NETWORK_TOOLS = [ + ToolSpec( + name="zedcloud_list_networks", + description="List edge networks.", + make_handler=_list_networks, + ), + ToolSpec( + name="zedcloud_get_network", + description="Get an edge network by ID.", + make_handler=_get_network, + ), + ToolSpec( + name="zedcloud_list_network_instances", + description="List edge network instances.", + make_handler=_list_network_instances, + ), +] diff --git a/packages/zedcloud-mcp/src/zedcloud_mcp/tools/nodes.py b/packages/zedcloud-mcp/src/zedcloud_mcp/tools/nodes.py new file mode 100644 index 0000000..b615241 --- /dev/null +++ b/packages/zedcloud-mcp/src/zedcloud_mcp/tools/nodes.py @@ -0,0 +1,71 @@ +"""Node-related MCP tools.""" + +from __future__ import annotations + +from zedcloud_mcp.tools.base import ClientFactory, DumpFn, Handler, ToolSpec + + +def _list_nodes(get_client: ClientFactory, dump: DumpFn) -> Handler: + def list_nodes( + name_pattern: str | None = None, + project_name: str | None = None, + page_size: float = 25, + ) -> str: + """List edge nodes (devices).""" + result = get_client().nodes.query_edge_nodes( + name_pattern=name_pattern, + project_name=project_name, + next_page_size=page_size, + summary=True, + ) + return dump(result) + + return list_nodes + + +def _get_node(get_client: ClientFactory, dump: DumpFn) -> Handler: + def get_node(node_id: str) -> str: + """Get an edge node by ID.""" + return dump(get_client().nodes.get_edge_node(node_id)) + + return get_node + + +def _get_node_by_name(get_client: ClientFactory, dump: DumpFn) -> Handler: + def get_node_by_name(name: str) -> str: + """Get an edge node by name.""" + return dump(get_client().nodes.get_edge_node_by_name(name)) + + return get_node_by_name + + +def _get_node_status(get_client: ClientFactory, dump: DumpFn) -> Handler: + def get_node_status(node_id: str) -> str: + """Get edge node status by ID.""" + return dump(get_client().nodes.get_edge_node_status(node_id)) + + return get_node_status + + +NODE_TOOLS = [ + ToolSpec( + name="zedcloud_list_nodes", + description="List edge nodes (devices), optionally filtered by name/project.", + make_handler=_list_nodes, + ), + ToolSpec( + name="zedcloud_get_node", + description="Get an edge node configuration by ID.", + make_handler=_get_node, + ), + ToolSpec( + name="zedcloud_get_node_by_name", + description="Get an edge node configuration by name.", + make_handler=_get_node_by_name, + ), + ToolSpec( + name="zedcloud_get_node_status", + description="Get edge node status/details by ID.", + make_handler=_get_node_status, + ), +] diff --git a/packages/zedcloud-mcp/tests/test_tools.py b/packages/zedcloud-mcp/tests/test_tools.py new file mode 100644 index 0000000..a7cd8e2 --- /dev/null +++ b/packages/zedcloud-mcp/tests/test_tools.py @@ -0,0 +1,15 @@ +"""MCP server smoke tests (no live credentials required).""" + +from __future__ import annotations + +from zedcloud_mcp.server import list_tool_names + + +def test_lists_expected_tools() -> None: + names = list_tool_names() + assert "zedcloud_list_nodes" in names + assert "zedcloud_list_apps" in names + assert "zedcloud_list_networks" in names + assert "zedcloud_list_zks_instances" in names + assert "zedcloud_list_jobs" in names + assert len(names) >= 10 diff --git a/packages/zedcloud/README.md b/packages/zedcloud/README.md new file mode 100644 index 0000000..9bf26aa --- /dev/null +++ b/packages/zedcloud/README.md @@ -0,0 +1,5 @@ +# zedcloud + +Typed Python client for ZEDEDA Zedcloud REST APIs. + +See the repository root [README](../../README.md) for install and quickstart. diff --git a/packages/zedcloud/pyproject.toml b/packages/zedcloud/pyproject.toml new file mode 100644 index 0000000..8827c10 --- /dev/null +++ b/packages/zedcloud/pyproject.toml @@ -0,0 +1,38 @@ +[project] +name = "zedcloud" +version = "0.1.0" +description = "Typed Python client for ZEDEDA Zedcloud REST APIs" +readme = "README.md" +requires-python = ">=3.10" +license = { text = "MIT" } +authors = [{ name = "vignesh-zededa" }] +keywords = ["zededa", "zedcloud", "edge", "iot", "sdk"] +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Typing :: Typed", +] +dependencies = [ + "httpx>=0.27.0", + "pydantic>=2.0.0", +] + +[project.optional-dependencies] +dev = [ + "pytest>=8.0.0", + "respx>=0.21.0", + "ruff>=0.6.0", +] + +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[tool.hatch.build.targets.wheel] +packages = ["src/zedcloud"] diff --git a/packages/zedcloud/src/zedcloud/__init__.py b/packages/zedcloud/src/zedcloud/__init__.py new file mode 100644 index 0000000..e696ed9 --- /dev/null +++ b/packages/zedcloud/src/zedcloud/__init__.py @@ -0,0 +1,25 @@ +"""Zedcloud Python SDK — typed client for ZEDEDA Zedcloud REST APIs.""" + +from zedcloud.client import ZedcloudClient +from zedcloud.config import ZedcloudConfig +from zedcloud.errors import ( + ApiError, + AuthError, + ConflictError, + NotFoundError, + RateLimitError, + ServerError, +) + +__all__ = [ + "ApiError", + "AuthError", + "ConflictError", + "NotFoundError", + "RateLimitError", + "ServerError", + "ZedcloudClient", + "ZedcloudConfig", +] + +__version__ = "0.1.0" diff --git a/packages/zedcloud/src/zedcloud/_generated/__init__.py b/packages/zedcloud/src/zedcloud/_generated/__init__.py new file mode 100644 index 0000000..e96210d --- /dev/null +++ b/packages/zedcloud/src/zedcloud/_generated/__init__.py @@ -0,0 +1 @@ +"""Auto-generated from openapi/*.swagger.json — do not edit by hand.""" diff --git a/packages/zedcloud/src/zedcloud/_generated/models/__init__.py b/packages/zedcloud/src/zedcloud/_generated/models/__init__.py new file mode 100644 index 0000000..ef488d5 --- /dev/null +++ b/packages/zedcloud/src/zedcloud/_generated/models/__init__.py @@ -0,0 +1,20 @@ +"""Generated Pydantic models per Zedcloud service. + +Import from a concrete module, e.g.:: + + from zedcloud._generated.models.apps import Apps, AppSummary +""" + +__all__: list[str] = [] + +# - zedcloud._generated.models.apps +# - zedcloud._generated.models.nodes +# - zedcloud._generated.models.iam +# - zedcloud._generated.models.orchestration +# - zedcloud._generated.models.k8s +# - zedcloud._generated.models.storage +# - zedcloud._generated.models.diag +# - zedcloud._generated.models.app_profiles +# - zedcloud._generated.models.networks +# - zedcloud._generated.models.jobs +# - zedcloud._generated.models.node_clusters diff --git a/packages/zedcloud/src/zedcloud/_generated/models/app_profiles.py b/packages/zedcloud/src/zedcloud/_generated/models/app_profiles.py new file mode 100644 index 0000000..39ce0e6 --- /dev/null +++ b/packages/zedcloud/src/zedcloud/_generated/models/app_profiles.py @@ -0,0 +1,1714 @@ +# Generated by scripts/generate_from_openapi.py from zedge_app_profile_service.swagger.json +# Do not edit by hand — re-run: uv run python scripts/generate_from_openapi.py + +from __future__ import annotations +from enum import Enum +from pydantic import Base64Str, BaseModel, Field, confloat, constr +from typing import Any + + +class AppCategory(Enum): + app_category_unspecified = "APP_CATEGORY_UNSPECIFIED" + app_category_operating_system = "APP_CATEGORY_OPERATING_SYSTEM" + app_category_industrial = "APP_CATEGORY_INDUSTRIAL" + app_category_edge_application = "APP_CATEGORY_EDGE_APPLICATION" + app_category_networking = "APP_CATEGORY_NETWORKING" + app_category_security = "APP_CATEGORY_SECURITY" + app_category_data_analytics = "APP_CATEGORY_DATA_ANALYTICS" + app_category_cloud_application = "APP_CATEGORY_CLOUD_APPLICATION" + app_category_devops = "APP_CATEGORY_DEVOPS" + app_category_others = "APP_CATEGORY_OTHERS" + + +class AppInstanceLogs(BaseModel): + access: bool = Field( + ..., + description="Flags to enable / disable sending of logs generated by app instance to zedcloud", + ) + + +class AppProfileFilter(BaseModel): + name_pattern: str | None = Field( + default=None, alias="namePattern", description="app profile name pattern" + ) + id: str | None = Field(default=None, description="app profile id") + + +class AppProfileInfo(BaseModel): + app_profile_id: ( + constr( + pattern=r"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + ) + | None + ) = Field( + default=None, alias="appProfileId", description="Unique ID of the asset group." + ) + version: int | None = None + + +class AppProfileStatusType(Enum): + app_profile_status_type_inactive = "APP_PROFILE_STATUS_TYPE_INACTIVE" + app_profile_status_type_active = "APP_PROFILE_STATUS_TYPE_ACTIVE" + + +class AppType(Enum): + app_type_unspecified = "APP_TYPE_UNSPECIFIED" + app_type_vm = "APP_TYPE_VM" + app_type_vm_runtime = "APP_TYPE_VM_RUNTIME" + app_type_container = "APP_TYPE_CONTAINER" + app_type_module = "APP_TYPE_MODULE" + app_type_docker_compose = "APP_TYPE_DOCKER_COMPOSE" + + +class AssetIDs(BaseModel): + ids: list[str] | None = None + + +class AssetTag(BaseModel): + tag: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + + +class AssetTags(BaseModel): + asset_tag: list[AssetTag] | None = Field(default=None, alias="assetTag") + + +class Author(BaseModel): + user: str | None = Field( + default=None, + description="UI map: AppEditPage:DeveloperPane:Name_Field, AppDetailsPage:DeveloperPane:Name_Field", + title="Name of the developer", + ) + group: str | None = Field(default=None, title="Not used by ZedUI") + company: str | None = Field( + default=None, + description="UI map: AppEditPage:IdentityPane:Category_Field, AppDetailsPage:IdentityPane:Category_Field", + title="Company of the developer", + ) + website: str | None = Field( + default=None, + description="UI map: AppEditPage:DeveloperPane:Website_Field, AppDetailsPage:DeveloperPane:Website_Field", + title="Website of the developer company", + ) + email: str | None = Field( + default=None, + description="UI map: AppEditPage:DeveloperPane:Email_Field, AppDetailsPage:DeveloperPane:Email_Field", + title="Contact email of the developer company", + ) + + +class ContainerDetail(BaseModel): + container_create_option: str | None = Field( + default=None, + alias="containerCreateOption", + description="Create options direct the creation of the Docker container", + title="Base64 encoded container specific details", + ) + + +class Cursor(BaseModel): + page_token: str | None = Field( + default=None, alias="pageToken", description="Page Token" + ) + order_by: list[str] | None = Field( + default=None, + alias="orderBy", + description="OrderBy helps in sorting the list response", + ) + page_num: float | None = Field( + default=None, alias="pageNum", description="Page Number" + ) + page_size: float | None = Field( + default=None, alias="pageSize", description="Defines the page size" + ) + total_pages: float | None = Field( + default=None, + alias="totalPages", + description="Total number of pages to be fetched.", + ) + + +class DeploymentType(Enum): + deployment_type_unspecified = "DEPLOYMENT_TYPE_UNSPECIFIED" + deployment_type_stand_alone = "DEPLOYMENT_TYPE_STAND_ALONE" + deployment_type_azure = "DEPLOYMENT_TYPE_AZURE" + deployment_type_k3_s = "DEPLOYMENT_TYPE_K3S" + deployment_type_aws = "DEPLOYMENT_TYPE_AWS" + deployment_type_k3_s_azure = "DEPLOYMENT_TYPE_K3S_AZURE" + deployment_type_k3_s_aws = "DEPLOYMENT_TYPE_K3S_AWS" + deployment_type_vmware_vce = "DEPLOYMENT_TYPE_VMWARE_VCE" + deployment_type_vmware_tkg_attach = "DEPLOYMENT_TYPE_VMWARE_TKG_ATTACH" + deployment_type_docker_runtime = "DEPLOYMENT_TYPE_DOCKER_RUNTIME" + + +class Details(BaseModel): + category: str | None = Field( + default="All", + description="UI map: AppMarketplacePage:AppCard:DescriptionField, AppEditPage:IdentityPane:CategoryField, AppDetailsPage:IdentityPane:CategoryField", + title="Type of the Edge application", + ) + os: str | None = Field(default=None, title="Edge application's Operating System") + app_category: AppCategory = Field(..., alias="appCategory") + logo: dict[str, str] | None = Field( + default=None, + description="UI map: AppEditPage:IdentityPane:Logo, AppDetailsPage:IdentityPane:Logo", + title="App Logo", + ) + screenshot_list: dict[str, str] | None = Field( + default=None, + alias="screenshotList", + description="UI map: AppEditPage:IdentityPane:Screenshot_Fields, AppDetailsPage:IdentityPane:Screenshot_Fields", + title="App Screenshots", + ) + license_list: dict[str, str] | None = Field( + default=None, + alias="licenseList", + description="UI map: AppMarketplacePage:AppCard:License, AppEditPage:IdentityPane:License, AppDetailsPage:IdentityPane:License", + title="App Licenses", + ) + support: str | None = Field( + default=None, + description="UI map: AppEditPage:DeveloperPane:Support_Description_Field, AppDetailsPage:DeveloperPane:Support_Description_Field", + title="Support Description", + ) + agreement_list: dict[str, str] | None = Field( + default=None, + alias="agreementList", + description="UI map: AppEditPage:DeveloperPane:Developer_Agreement_Field, AppDetailsPage:DeveloperPane:Developer_Agreement_Field", + title="Developer Agreements", + ) + + +class DockerRuntimeProtocolVersion(Enum): + runtime_protocol_version_unknown = "RuntimeProtocolVersion_Unknown" + runtime_protocol_version_v1 = "RuntimeProtocolVersion_V1" + + +class DockerRuntimeVersion(Enum): + runtime_version_unknown = "RuntimeVersion_Unknown" + runtime_version_v1 = "RuntimeVersion_V1" + + +class ImageDatastore(BaseModel): + id: str | None = Field(default=None, description="Datastore ID") + name: str | None = Field(default=None, description="Datastore Name") + + +class IoType(Enum): + io_type_unspecified = "IO_TYPE_UNSPECIFIED" + io_type_eth = "IO_TYPE_ETH" + io_type_usb = "IO_TYPE_USB" + io_type_com = "IO_TYPE_COM" + io_type_audio = "IO_TYPE_AUDIO" + io_type_wlan = "IO_TYPE_WLAN" + io_type_wwan = "IO_TYPE_WWAN" + io_type_hdmi = "IO_TYPE_HDMI" + io_type_lte = "IO_TYPE_LTE" + io_type_storage_nvme_device = "IO_TYPE_STORAGE_NVME_DEVICE" + io_type_storage_sata_device = "IO_TYPE_STORAGE_SATA_DEVICE" + io_type_eth_pf = "IO_TYPE_ETH_PF" + io_type_eth_vf = "IO_TYPE_ETH_VF" + io_type_usb_controller = "IO_TYPE_USB_CONTROLLER" + io_type_usb_device = "IO_TYPE_USB_DEVICE" + io_type_can = "IO_TYPE_CAN" + io_type_vcan = "IO_TYPE_VCAN" + io_type_lcan = "IO_TYPE_LCAN" + io_type_vlan = "IO_TYPE_VLAN" + io_type_other = "IO_TYPE_OTHER" + + +class LimitParams(BaseModel): + limitrate: int | None = Field( + default=None, + description="UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + title="Rate limit in ACL rule", + ) + limitunit: str | None = Field( + default=None, + description="UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + title="Rate limit unit in ACL rule", + ) + limitburst: int | None = Field( + default=None, + description="UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + title="Rate limit burst in ACL rule", + ) + + +class LispServer(BaseModel): + name_or_ip: str = Field(..., alias="nameOrIp", description="name/IP") + credential: str = Field(..., description="lisp credential") + + +class MapParams(BaseModel): + app_port: int | None = Field( + default=None, alias="appPort", description="Application Port value" + ) + + +class Match(BaseModel): + type: str | None = Field( + default=None, + description="Type of Match (Required)", + title="enum: host, protocol, adapter\nAt the device level it will pick right interface to apply this match", + ) + value: str | None = Field(default=None, description="Value of match (Required)") + + +class ModuleType(Enum): + module_type_unspecified = "MODULE_TYPE_UNSPECIFIED" + module_type_system_defined = "MODULE_TYPE_SYSTEM_DEFINED" + module_type_custom = "MODULE_TYPE_CUSTOM" + module_type_azure_edge_agent = "MODULE_TYPE_AZURE_EDGE_AGENT" + module_type_azure_edge_hub = "MODULE_TYPE_AZURE_EDGE_HUB" + + +class NetworkInstanceDhcpType(Enum): + network_instance_dhcp_type_unspecified = "NETWORK_INSTANCE_DHCP_TYPE_UNSPECIFIED" + network_instance_dhcp_type_v4 = "NETWORK_INSTANCE_DHCP_TYPE_V4" + network_instance_dhcp_type_v6 = "NETWORK_INSTANCE_DHCP_TYPE_V6" + network_instance_dhcp_type_cryptoeid = "NETWORK_INSTANCE_DHCP_TYPE_CRYPTOEID" + network_instance_dhcp_type_cryptov4 = "NETWORK_INSTANCE_DHCP_TYPE_CRYPTOV4" + network_instance_dhcp_type_cryptov6 = "NETWORK_INSTANCE_DHCP_TYPE_CRYPTOV6" + + +class NetworkInstanceKind(Enum): + network_instance_kind_unspecified = "NETWORK_INSTANCE_KIND_UNSPECIFIED" + network_instance_kind_transparent = "NETWORK_INSTANCE_KIND_TRANSPARENT" + network_instance_kind_switch = "NETWORK_INSTANCE_KIND_SWITCH" + network_instance_kind_local = "NETWORK_INSTANCE_KIND_LOCAL" + network_instance_kind_cloud = "NETWORK_INSTANCE_KIND_CLOUD" + network_instance_kind_mesh = "NETWORK_INSTANCE_KIND_MESH" + network_instance_kind_honeypot = "NETWORK_INSTANCE_KIND_HONEYPOT" + + +class NtpServer(BaseModel): + server: str | None = Field(default=None, description="NTP Server IP or FQDN") + + +class ObjectType(Enum): + object_type_unspecified = "OBJECT_TYPE_UNSPECIFIED" + object_type_user = "OBJECT_TYPE_USER" + object_type_edge_node = "OBJECT_TYPE_EDGE_NODE" + object_type_edge_app = "OBJECT_TYPE_EDGE_APP" + object_type_image = "OBJECT_TYPE_IMAGE" + object_type_edge_app_instance = "OBJECT_TYPE_EDGE_APP_INSTANCE" + object_type_project = "OBJECT_TYPE_PROJECT" + object_type_network = "OBJECT_TYPE_NETWORK" + object_type_datastore = "OBJECT_TYPE_DATASTORE" + object_type_service = "OBJECT_TYPE_SERVICE" + object_type_service_instance = "OBJECT_TYPE_SERVICE_INSTANCE" + object_type_enterprise = "OBJECT_TYPE_ENTERPRISE" + object_type_role = "OBJECT_TYPE_ROLE" + object_type_credential = "OBJECT_TYPE_CREDENTIAL" + object_type_network_instance = "OBJECT_TYPE_NETWORK_INSTANCE" + object_type_volume_instance = "OBJECT_TYPE_VOLUME_INSTANCE" + object_type_realm = "OBJECT_TYPE_REALM" + object_type_authprofile = "OBJECT_TYPE_AUTHPROFILE" + object_type_policy = "OBJECT_TYPE_POLICY" + object_type_app_policy = "OBJECT_TYPE_APP_POLICY" + object_type_cluster_instance = "OBJECT_TYPE_CLUSTER_INSTANCE" + object_type_plugin = "OBJECT_TYPE_PLUGIN" + object_type_doc_policy = "OBJECT_TYPE_DOC_POLICY" + object_type_orchestrator_cluster = "OBJECT_TYPE_ORCHESTRATOR_CLUSTER" + object_type_tags = "OBJECT_TYPE_TAGS" + object_type_edge_node_interface = "OBJECT_TYPE_EDGE_NODE_INTERFACE" + object_type_deployment = "OBJECT_TYPE_DEPLOYMENT" + object_type_entitlements = "OBJECT_TYPE_ENTITLEMENTS" + object_type_data_stream = "OBJECT_TYPE_DATA_STREAM" + object_type_api_usage = "OBJECT_TYPE_API_USAGE" + object_type_app_instance_snapshot = "OBJECT_TYPE_APP_INSTANCE_SNAPSHOT" + object_type_patch_envelope = "OBJECT_TYPE_PATCH_ENVELOPE" + object_type_resource_usage_track = "OBJECT_TYPE_RESOURCE_USAGE_TRACK" + object_type_patch_envelope_reference = "OBJECT_TYPE_PATCH_ENVELOPE_REFERENCE" + object_type_dev_passthrough = "OBJECT_TYPE_DEV_PASSTHROUGH" + object_type_edge_node_cluster = "OBJECT_TYPE_EDGE_NODE_CLUSTER" + object_type_asset_group = "OBJECT_TYPE_ASSET_GROUP" + object_type_app_profile = "OBJECT_TYPE_APP_PROFILE" + object_type_profile_deployment = "OBJECT_TYPE_PROFILE_DEPLOYMENT" + object_type_zks_instance = "OBJECT_TYPE_ZKS_INSTANCE" + object_type_cluster_group = "OBJECT_TYPE_CLUSTER_GROUP" + + +class OpaqueConfigType(Enum): + opaque_config_type_unspecified = "OPAQUE_CONFIG_TYPE_UNSPECIFIED" + opaque_config_type_vpn = "OPAQUE_CONFIG_TYPE_VPN" + opaque_config_type_lisp = "OPAQUE_CONFIG_TYPE_LISP" + + +class Param(BaseModel): + name: str | None = Field( + default=None, description="Name of the Parameter (Required)" + ) + value: str | None = Field( + default=None, description="Value of the parameter (Required)" + ) + + +class Permission(BaseModel): + pass + + +class ProfileDeploymentFilter(BaseModel): + profile_deployment_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="profileDeploymentId", + description="Unique id of the asset, unique across the enterprise.", + ) + name_pattern: str | None = Field( + default=None, alias="namePattern", description="deployment name pattern" + ) + + +class ProfilePolicyCommon(BaseModel): + id: str | None = Field(default=None, description="unique id for an policy") + name: str | None = Field(default=None, description="user defined policy name") + title: str | None = Field(default=None, description="user defined policy title") + tags: dict[str, str] | None = Field( + default=None, description="user defined key-value pairs of a policy" + ) + + +class Resource(BaseModel): + name: str | None = Field( + default=None, description="Name of the Resource (Required)" + ) + value: str | None = Field(default=None, description="Value of Resource (Required)") + + +class RunState(Enum): + run_state_unspecified = "RUN_STATE_UNSPECIFIED" + run_state_online = "RUN_STATE_ONLINE" + run_state_halted = "RUN_STATE_HALTED" + run_state_init = "RUN_STATE_INIT" + run_state_rebooting = "RUN_STATE_REBOOTING" + run_state_offline = "RUN_STATE_OFFLINE" + run_state_unknown = "RUN_STATE_UNKNOWN" + run_state_unprovisioned = "RUN_STATE_UNPROVISIONED" + run_state_provisioned = "RUN_STATE_PROVISIONED" + run_state_suspect = "RUN_STATE_SUSPECT" + run_state_downloading = "RUN_STATE_DOWNLOADING" + run_state_restarting = "RUN_STATE_RESTARTING" + run_state_purging = "RUN_STATE_PURGING" + run_state_halting = "RUN_STATE_HALTING" + run_state_error = "RUN_STATE_ERROR" + run_state_verifying = "RUN_STATE_VERIFYING" + run_state_loading = "RUN_STATE_LOADING" + run_state_creating_volume = "RUN_STATE_CREATING_VOLUME" + run_state_booting = "RUN_STATE_BOOTING" + run_state_maintenance_mode = "RUN_STATE_MAINTENANCE_MODE" + run_state_start_delayed = "RUN_STATE_START_DELAYED" + run_state_baseos_updating = "RUN_STATE_BASEOS_UPDATING" + run_state_preparing_poweroff = "RUN_STATE_PREPARING_POWEROFF" + run_state_powering_off = "RUN_STATE_POWERING_OFF" + run_state_prepared_poweroff = "RUN_STATE_PREPARED_POWEROFF" + + +class StaticDNSList(BaseModel): + hostname: str | None = Field(default=None, description="Host name") + addrs: list[str] | None = Field(default=None, description="Addresses") + + +class Summary(BaseModel): + description: str | None = Field(default=None, description="Summary description") + total: float | None = Field(default=None, description="Total") + values: dict[str, int] | None = Field( + default=None, description="Values: Map for storing " + ) + + +class TargetAssetGroup(BaseModel): + group_id: ( + constr( + pattern=r"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + ) + | None + ) = Field( + default=None, alias="groupId", description="unique Id of the asset group." + ) + + +class VariableFileEncoding(Enum): + file_encoding_unspecified = "FILE_ENCODING_UNSPECIFIED" + file_encoding_base64 = "FILE_ENCODING_BASE64" + + +class VariableGroupConditionOperator(Enum): + condition_operator_unspecified = "CONDITION_OPERATOR_UNSPECIFIED" + condition_operator_equalto = "CONDITION_OPERATOR_EQUALTO" + condition_operator_notequalto = "CONDITION_OPERATOR_NOTEQUALTO" + + +class VariableOptionVal(BaseModel): + label: str | None = Field( + default=None, description="Display label of the key in User-Agent" + ) + value: str | None = Field(default=None, description="Value of the key to be used") + + +class VariableVariableFormat(Enum): + variable_format_unspecified = "VARIABLE_FORMAT_UNSPECIFIED" + variable_format_text = "VARIABLE_FORMAT_TEXT" + variable_format_number = "VARIABLE_FORMAT_NUMBER" + variable_format_file = "VARIABLE_FORMAT_FILE" + variable_format_dropdown = "VARIABLE_FORMAT_DROPDOWN" + variable_format_boolean = "VARIABLE_FORMAT_BOOLEAN" + variable_format_password = "VARIABLE_FORMAT_PASSWORD" + + +class VmBootloaderMode(Enum): + vm_bootloader_mode_unspecified = "VM_BOOTLOADER_MODE_UNSPECIFIED" + vm_bootloader_mode_legacy = "VM_BOOTLOADER_MODE_LEGACY" + vm_bootloader_mode_uefi = "VM_BOOTLOADER_MODE_UEFI" + + +class VolumeInstanceAccessMode(Enum): + volume_instance_access_mode_invalid = "VOLUME_INSTANCE_ACCESS_MODE_INVALID" + volume_instance_access_mode_readwrite = "VOLUME_INSTANCE_ACCESS_MODE_READWRITE" + volume_instance_access_mode_readonly = "VOLUME_INSTANCE_ACCESS_MODE_READONLY" + volume_instance_access_mode_multiread_singlewrite = ( + "VOLUME_INSTANCE_ACCESS_MODE_MULTIREAD_SINGLEWRITE" + ) + + +class VolumeInstanceType(Enum): + volume_instance_type_unspecified = "VOLUME_INSTANCE_TYPE_UNSPECIFIED" + volume_instance_type_emptydir = "VOLUME_INSTANCE_TYPE_EMPTYDIR" + volume_instance_type_blockstorage = "VOLUME_INSTANCE_TYPE_BLOCKSTORAGE" + volume_instance_type_hostfs = "VOLUME_INSTANCE_TYPE_HOSTFS" + volume_instance_type_tmpfs = "VOLUME_INSTANCE_TYPE_TMPFS" + volume_instance_type_secret = "VOLUME_INSTANCE_TYPE_SECRET" + volume_instance_type_nfs = "VOLUME_INSTANCE_TYPE_NFS" + volume_instance_type_aws_block_storage = "VOLUME_INSTANCE_TYPE_AWS_BLOCK_STORAGE" + volume_instance_type_content_tree = "VOLUME_INSTANCE_TYPE_CONTENT_TREE" + + +class ZcOpsStatus(Enum): + ops_status_unspecified = "OPS_STATUS_UNSPECIFIED" + ops_status_pending = "OPS_STATUS_PENDING" + ops_status_ongoing = "OPS_STATUS_ONGOING" + ops_status_complete = "OPS_STATUS_COMPLETE" + + +class ZcOpsType(Enum): + ops_type_unspecified = "OPS_TYPE_UNSPECIFIED" + ops_type_read = "OPS_TYPE_READ" + ops_type_delete = "OPS_TYPE_DELETE" + ops_type_create = "OPS_TYPE_CREATE" + ops_type_update = "OPS_TYPE_UPDATE" + ops_type_list = "OPS_TYPE_LIST" + + +class ZedCloudOpsCmd(BaseModel): + counter: float | None = Field(default=None, description="counter") + ops_time: dict[str, Any] | None = Field( + default=None, alias="opsTime", description="Timestamp: Operational time" + ) + + +class ZsrvErrorCode(Enum): + z_msg_error_none = "zMsgErrorNone" + z_msg_sucess = "zMsgSucess" + not_found = "NotFound" + already_exists = "AlreadyExists" + version_mismatch = "VersionMismatch" + range_error = "RangeError" + large_result = "LargeResult" + incomplete_data = "IncompleteData" + invalid_data = "InvalidData" + function_unsupported = "FunctionUnsupported" + no_memory = "NoMemory" + send_failure = "SendFailure" + timeout = "Timeout" + bad_req_body = "BadReqBody" + bad_req_param = "BadReqParam" + invalid_field_format = "InvalidFieldFormat" + url_not_found = "UrlNotFound" + api_version_not_supported = "ApiVersionNotSupported" + unauthorized = "Unauthorized" + forbidden = "Forbidden" + conflict = "Conflict" + not_modified = "NotModified" + dependency_conflict = "DependencyConflict" + json_fmt_error = "JsonFmtError" + proto_fmt_error = "ProtoFmtError" + cert_error = "CertError" + data_base_connection = "DataBaseConnection" + db_error = "DBError" + z_msg_accepted = "zMsgAccepted" + z_msg_created = "zMsgCreated" + pre_condition_failed = "PreConditionFailed" + internal_server_error = "InternalServerError" + + +class AppACEMatch(BaseModel): + type: str = Field(..., description="Type") + value: str = Field(..., description="Value") + + +class AppMapParams(BaseModel): + port: float = Field(..., description="Application port") + + +class CommonConnectivityProbeMethod(Enum): + connectivity_probe_method_unspecified = "CONNECTIVITY_PROBE_METHOD_UNSPECIFIED" + connectivity_probe_method_icmp = "CONNECTIVITY_PROBE_METHOD_ICMP" + connectivity_probe_method_tcp = "CONNECTIVITY_PROBE_METHOD_TCP" + + +class CommonProbeEndpoint(BaseModel): + host: str | None = Field(default=None, description="IP address or FQDN.") + port: int | None = Field( + default=None, + description="TCP port required for CONNECTIVITY_PROBE_METHOD_TCP.\nLeave empty for CONNECTIVITY_PROBE_METHOD_ICMP.", + ) + + +class ConfigFormat(Enum): + fmt_unknown = "FmtUnknown" + raw = "RAW" + qcow = "QCOW" + qcow2 = "QCOW2" + vhd = "VHD" + vmdk = "VMDK" + ova = "OVA" + vhdx = "VHDX" + container = "CONTAINER" + iso = "ISO" + pvc = "PVC" + + +class DhcpIpRange(BaseModel): + start: str | None = Field(default=None, description="starting IP") + end: str | None = Field(default=None, description="ending IP") + + +class HvMode(Enum): + hv_pv = "HV_PV" + hv_hvm = "HV_HVM" + hv_fml = "HV_FML" + hv_nohyper = "HV_NOHYPER" + hv_legacy = "HV_LEGACY" + + +class PhyAdapter(BaseModel): + type: IoType | None = "IO_TYPE_UNSPECIFIED" + name: str | None = Field(default=None, description="Physical Adapter name") + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + + +class ProtobufAny(BaseModel): + type_url: str | None = Field(default=None, alias="typeUrl") + value: Base64Str | None = None + + +class SpType(Enum): + sptype_invalidsrv = "SPTYPE_INVALIDSRV" + sptype_mapserver = "SPTYPE_MAPSERVER" + sptype_supportserver = "SPTYPE_SUPPORTSERVER" + + +class Vm(BaseModel): + cpus: float = Field(..., description="CPUs") + memory: float = Field(..., description="Memory") + mode: HvMode + vnc: bool = Field(..., description="VNC") + vnc_display: float | None = Field( + default=None, alias="vncDisplay", description="VNC display" + ) + cpu_pinning_enabled: bool | None = Field( + default=None, alias="cpuPinningEnabled", description="Enable CpuPinning" + ) + vmm_maxmem: int | None = Field( + default=None, + alias="vmmMaxmem", + description="Maximum amount of memory in kbytes allowed for VM monitor to occupy", + ) + bootloader_mode: VmBootloaderMode | None = Field( + default="VM_BOOTLOADER_MODE_UNSPECIFIED", alias="bootloaderMode" + ) + enable_oem_win_license_key: bool | None = Field( + default=None, + alias="enableOemWinLicenseKey", + description="Enable device which has VM to receive the Windows license embedded in the ACPI tables", + ) + disable_vtpm: bool | None = Field( + default=None, + alias="disableVTPM", + description="Disable vTPM for virtual machines (VM)", + ) + + +class AclAction(BaseModel): + drop: bool | None = Field( + default=None, description="Drop the packet", title="Not used by ZedUI" + ) + limit: bool | None = Field( + default=None, + description="UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + title="Limit action on ACL rule", + ) + limit_value: LimitParams | None = Field(default=None, alias="limitValue") + limitrate: int | None = Field( + default=None, + description="UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + title="Rate limit in ACL rule", + ) + limitunit: str | None = Field( + default=None, + description="UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + title="Rate limit unit in ACL rule", + ) + limitburst: int | None = Field( + default=None, + description="UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + title="Rate limit burst in ACL rule", + ) + portmap: bool | None = Field( + default=None, + description="UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + title="Enable device to app port mapping for incoming ACL rule, implicitly added by ZedUI code", + ) + portmapto: MapParams | None = None + + +class AssetGroup(BaseModel): + id: ( + constr( + pattern=r"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + ) + | None + ) = Field(default=None, description="unique Id of the asset group.") + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the asset group, unique across the enterprise. Once asset group is created, name can’t be changed.", + ) + title: ( + constr(pattern=r"[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined title of the asset group. Title can be changed at any time.", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the asset group." + ) + project_id: str | None = Field( + default=None, alias="projectId", description="project id" + ) + asset_ids: AssetIDs | None = Field(default=None, alias="assetIds") + asset_tags: AssetTags | None = Field(default=None, alias="assetTags") + + +class AssetGroupList(BaseModel): + next: Cursor | None = None + list_: list[AssetGroup] | None = Field( + default=None, alias="list", description="asset group summary list" + ) + total_count: int | None = Field( + default=None, alias="totalCount", description="asset group total count" + ) + + +class AssetGroupRead(BaseModel): + id: ( + constr( + pattern=r"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + ) + | None + ) = Field(default=None, description="unique Id of the asset group.") + name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined name of the asset group, unique across the enterprise. Once asset group is created, name can’t be changed.", + ) + title: ( + constr(pattern=r"[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined title of the asset group. Title can be changed at any time.", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the asset group." + ) + project_id: str | None = Field( + default=None, alias="projectId", description="project id" + ) + asset_ids: AssetIDs | None = Field(default=None, alias="assetIds") + asset_tags: AssetTags | None = Field(default=None, alias="assetTags") + asset_count: int | None = Field(default=None, alias="assetCount") + + +class DhcpServerConfig(BaseModel): + subnet: str | None = Field(default=None, description="Subnet address") + mask: str | None = Field(default=None, description="Subnet Mask") + gateway: str | None = Field( + default=None, description="IP Address of Network Gateway" + ) + domain: str | None = Field(default=None, description="Network domain") + ntp: str | None = Field( + default=None, + description="IP Address of NTP Server", + title="ntp will be deprecated", + ) + dns: list[str] | None = Field( + default=None, + description="IP Addresses of DNS servers", + title="possible DNS ip address", + ) + dhcp_range: DhcpIpRange | None = Field(default=None, alias="dhcpRange") + ntp_servers: list[NtpServer] | None = Field( + default=None, alias="ntpServers", description="NTP Servers" + ) + + +class EIDRegister(BaseModel): + app_cert: Base64Str = Field(..., alias="AppCert", description="app certificate") + app_public_key: Base64Str = Field( + ..., alias="AppPublicKey", description="App public key" + ) + app_private_key: Base64Str = Field( + ..., alias="AppPrivateKey", description="App private key" + ) + uuid: str = Field(..., alias="UUID", description="UUID") + display_name: str = Field(..., alias="DisplayName", description="Display name") + lisp_instance: float = Field(..., alias="LispInstance", description="Lisp Instance") + eid: str = Field(..., alias="EID", description="EID") + eid_hash_len: float = Field(..., alias="EIDHashLen", description="EID hash length") + lisp_signature: str = Field( + ..., alias="LispSignature", description="Lisp Signature" + ) + lisp_map_servers: list[LispServer] = Field( + ..., + alias="LispMapServers", + description="Lisp Map Server", + title="time CreateTime time.Time", + ) + + +class ModuleDetail(BaseModel): + twin_detail: str | None = Field( + default=None, + alias="twinDetail", + description="Base64 encoded module twin details, desired properties of the module will be updated to reflect these values", + ) + routes: dict[str, str] | None = Field( + default=None, + description="Send messages between modules or send messages from modules to iot hub", + ) + environment: dict[str, str] | None = Field( + default=None, + description="Extra information to module to make configuration easier", + ) + module_type: ModuleType | None = Field( + default="MODULE_TYPE_UNSPECIFIED", alias="moduleType" + ) + + +class ProfileDeployment(BaseModel): + id: ( + constr( + pattern=r"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + ) + | None + ) = Field(default=None, description="unique Id of the deployment.") + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the deployment, unique across the enterprise. Once deployment is created, name can’t be changed.", + ) + title: ( + constr(pattern=r"[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined title of the deployment. Title can be changed at any time.", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the deployment." + ) + project_id: str = Field(..., alias="projectId", description="project id") + app_profile_info: AppProfileInfo = Field(..., alias="appProfileInfo") + target_asset_group: TargetAssetGroup = Field(..., alias="targetAssetGroup") + status: str | None = None + + +class ProfileDeploymentList(BaseModel): + next: Cursor | None = None + list_: list[ProfileDeployment] | None = Field( + default=None, alias="list", description="deployment summary list" + ) + + +class ProfileDeploymentResourceObjectStatus(BaseModel): + id: ( + constr( + pattern=r"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + ) + | None + ) = Field(default=None, description="Unique ID of the object.") + object_type: ObjectType | None = Field( + default="OBJECT_TYPE_UNSPECIFIED", alias="objectType" + ) + object_run_state: RunState | None = Field( + default="RUN_STATE_UNSPECIFIED", alias="objectRunState" + ) + job_id: str | None = Field( + default=None, + alias="jobId", + description="Job ID associated with the object creation. Only applicable for EdgeAppInstance objects.", + ) + error_message: str | None = Field( + default=None, + alias="errorMessage", + description="Error message if the object creation or operation failed.", + ) + + +class ProfileVolumeConfig(BaseModel): + type: VolumeInstanceType | None = "VOLUME_INSTANCE_TYPE_UNSPECIFIED" + multiattach: bool | None = Field( + default=None, + description="flag to enable the volume to be attached to multiple app instances", + ) + cleartext: bool | None = Field( + default=None, + description="flag to keep the contents of the volume unencrypted (in clear text)", + ) + accessmode: VolumeInstanceAccessMode | None = "VOLUME_INSTANCE_ACCESS_MODE_INVALID" + size_bytes: int | None = Field( + default=None, alias="sizeBytes", description="size of volume" + ) + image: str | None = Field(default=None, description="name of the image") + content_tree_id: str | None = Field( + default=None, alias="contentTreeId", description="content tree ID" + ) + label: str | None = Field(default=None, description="label") + purge: ZedCloudOpsCmd | None = None + content_tree_target_condition: dict[str, str] | None = Field( + default=None, + alias="contentTreeTargetCondition", + description="user defined key-value pairs of a content tree that will be used for targeting by block storage", + ) + block_storage_tags: dict[str, str] | None = Field( + default=None, + alias="blockStorageTags", + description="user defined key-value pairs of a block storage, will be used for targeting content tree", + ) + + +class ProfileVolumePolicy(BaseModel): + meta_data: ProfilePolicyCommon | None = Field(default=None, alias="metaData") + volume_config: ProfileVolumeConfig | None = Field( + default=None, alias="volumeConfig" + ) + + +class ServicePoint(BaseModel): + type: SpType | None = "SPTYPE_INVALIDSRV" + name_or_ip: str | None = Field( + default=None, alias="NameOrIp", description="Service name/ service name" + ) + credential: str | None = Field( + default=None, alias="Credential", description="Service credentials" + ) + + +class VMManifestImage(BaseModel): + imagename: str | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Image_Name_Field, AppDetailsPage:DrivesPane:Image_Name_Field", + ) + imageid: str | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Image_ID_Field, AppDetailsPage:DrivesPane:Image_ID_Field", + ) + imageformat: ConfigFormat | None = "FmtUnknown" + maxsize: str | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Max_Size_Field, AppDetailsPage:DrivesPane:Max_Size_Field", + ) + preserve: bool | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Preserve_Field, AppDetailsPage:DrivesPane:Preserve_Field", + ) + target: str | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Target_Field, AppDetailsPage:DrivesPane:Target_Field", + title="enum: Disk, Kernel, Initrd, RamDisk", + ) + drvtype: str | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Drive_Type_Field, AppDetailsPage:DrivesPane:Drive_Type_Field", + title="enum: CDROM, HDD, NET", + ) + params: list[Param] | None = Field(default=None, title="Not used by ZedUI") + readonly: bool | None = Field(default=None, title="Not used by ZedUI") + volumelabel: str | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Volume_Label, AppDetailsPage:DrivesPane:Volume_Label", + ) + ignorepurge: bool | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Ignorepurge, AppDetailsPage:DrivesPane:Ignorepurgee_Field", + ) + cleartext: bool | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Cleartext, AppDetailsPage:DrivesPane:ClearText_Field", + ) + mountpath: str | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Mountpath, AppDetailsPage:DrivesPane:Mountpath_Field", + ) + imagestatus: str | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Image_Status_Field, AppDetailsPage:DrivesPane:Image_Status_Field", + title="enum: UNSPECIFIED, CREATED, PENDING, UPLOADING, READY, INUSE, ARCHIVED, MAX, FAILED, UPLINKING", + ) + datastore: list[ImageDatastore] | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:DataStore_Field, AppDetailsPage:DrivesPane:DataStore_Field", + ) + + +class VariableGroupCondition(BaseModel): + name: str | None = None + value: str | None = None + operator: VariableGroupConditionOperator | None = "CONDITION_OPERATOR_UNSPECIFIED" + + +class VariableGroupVariable(BaseModel): + type: str | None = None + name: str = Field(..., description="Name of the Variable (Required)") + label: str = Field(..., description="Label for the variable (Required)") + max_length: str | None = Field( + default=None, + alias="maxLength", + description="Max length of the value of the variable(Optional. Default: 1024)", + ) + required: bool = Field( + ..., + description="This variable MUST be specified when creating an App Instance. (Optional. Default: False)", + ) + default: str | None = Field( + default=None, + description="Default value of the variable. (Optional. Default: )", + ) + process_input: str | None = Field(default=None, alias="processInput") + value: str | None = Field( + default=None, + description="User-specified value of the variable.(Required if required is true. Optional otherwise)", + ) + format: VariableVariableFormat + encode: VariableFileEncoding | None = "FILE_ENCODING_UNSPECIFIED" + options: list[VariableOptionVal] | None = Field( + default=None, + description="Key-Value pair of options. Applicable if format is VARIABLE_FORMAT_DROPDOWN", + ) + + +class ZsrvError(BaseModel): + ec: ZsrvErrorCode | None = "zMsgErrorNone" + location: str | None = Field(default=None, title="Ignore: Internal field only") + details: str | None = Field( + default=None, title="Field captures string description of details" + ) + + +class ZsrvResponse(BaseModel): + operation_type: ZcOpsType | None = Field( + default="OPS_TYPE_UNSPECIFIED", alias="operationType" + ) + operation_status: ZcOpsStatus | None = Field( + default="OPS_STATUS_UNSPECIFIED", alias="operationStatus" + ) + object_kind: str | None = Field( + default=None, + alias="objectKind", + title="zedcloud object kind on which the operation was performed", + ) + object_id: str | None = Field( + default=None, + alias="objectId", + title="Unique value identifies the object that was operated on", + ) + object_name: str | None = Field( + default=None, alias="objectName", title="name of the object" + ) + object_revision: str | None = Field( + default=None, + alias="objectRevision", + title="object revision post the operation, note Read operation\ndoesn't change the revision", + ) + object_type: ObjectType | None = Field( + default="OBJECT_TYPE_UNSPECIFIED", alias="objectType" + ) + operation_time: str | None = Field( + default=None, alias="operationTime", title="time of operation" + ) + start_time: str | None = Field( + default=None, alias="startTime", title="total time taken by operations" + ) + end_time: str | None = Field(default=None, alias="endTime") + user: str | None = Field( + default=None, title="the operation is performed on behalf of this user" + ) + http_status_code: int | None = Field( + default=None, alias="httpStatusCode", title="http response" + ) + http_status_msg: str | None = Field( + default=None, alias="httpStatusMsg", title="summary of the error in text format" + ) + job_id: str | None = Field( + default=None, alias="jobId", title="for tracking asynchronous tasks" + ) + error: list[ZsrvError] | None = Field( + default=None, + title="one or more errors will be set if the operation failed\ni.e. httpStatusCode != 2xx", + ) + + +class AppACEAction(BaseModel): + drop: bool = Field(..., description="ACE drop flag") + limit: bool = Field(..., description="ACE limit flag") + limitrate: float = Field(..., description="ACE limit rate") + limitunit: str = Field(..., description="ACE limit unit") + limitburst: float = Field(..., description="ACE limit burst") + portmap: bool = Field(..., description="application port map flag") + mapparams: AppMapParams + + +class CommonConnectivityProbe(BaseModel): + probe_method: CommonConnectivityProbeMethod | None = Field( + default="CONNECTIVITY_PROBE_METHOD_UNSPECIFIED", alias="probeMethod" + ) + probe_endpoint: CommonProbeEndpoint | None = Field( + default=None, alias="probeEndpoint" + ) + + +class GooglerpcStatus(BaseModel): + code: int | None = None + message: str | None = None + details: list[ProtobufAny] | None = None + + +class Acl(BaseModel): + matches: list[Match] | None = Field( + default=None, + description="Network traffic matching criteria consistngs of one or more of source IP address, destination IP address, protocol, source port and destination port", + ) + actions: list[AclAction] | None = Field( + default=None, + description="Chain of actions to be taken on matching network traffic", + ) + name: str | None = Field( + default=None, description="Name of the Access Control List" + ) + + +class CustomConfigVariableGroup(BaseModel): + name: str | None = Field( + default=None, description="Name of the Variable Group(Required)" + ) + variables: list[VariableGroupVariable] | None = Field( + default=None, description="List of variables(Required)" + ) + required: bool | None = Field( + default=None, + description="Indicates if the variable group is required to be specified for the App Instance. (Optional. Default:False)", + ) + condition: VariableGroupCondition | None = None + + +class Interface(BaseModel): + name: str | None = Field( + default=None, description="Interface name used by the edge application" + ) + type: str | None = Field( + default=None, + description='Physical Adapter type for this interface. Applicable only when "direct attach" flag is true.', + ) + optional: bool | None = Field( + default=None, + description="Indicates if the interface is optional for edge application.", + ) + directattach: bool | None = Field( + default=None, + description="If true, a physical adapter is assigned to the edge application directly. If false, a network instance is assigned to the edge application.", + ) + privateip: bool | None = Field( + default=None, + description="If true, DHCP network can't be assigned and user needs to provide a static IP address.", + ) + acls: list[Acl] | None = Field( + default=None, + description='Traffic access control rules for this interface. Applicable only when "direct attach" flag is false.', + ) + + +class LispConfig(BaseModel): + lispiid: float | None = Field(default=None, description="lisp id") + allocate: bool | None = Field(default=None, description="Allocate flag") + exportprivate: bool | None = Field(default=None, description="Export Private flag") + allocationprefix: Base64Str | None = Field( + default=None, description="Allocation Prefix" + ) + allocationprefixlen: float | None = Field( + default=None, description="Allocation Prefix Length" + ) + sp: list[ServicePoint] | None = Field( + default=None, description="Service Point List" + ) + + +class NetInstOpaqueConfig(BaseModel): + type: OpaqueConfigType | None = "OPAQUE_CONFIG_TYPE_UNSPECIFIED" + oconfig: str | None = Field( + default=None, description="base64 encoded string of opaque config" + ) + lisp: LispConfig | None = None + + +class ProbeConfig(BaseModel): + enable_gateway_ping: bool | None = Field( + default=None, alias="enableGatewayPing", description="Enable gateway ping" + ) + ping_max_cost: float | None = Field( + default=None, alias="pingMaxCost", description="Ping max cost" + ) + prefer_lower_cost: bool | None = Field( + default=None, alias="preferLowerCost", description="Prefer lower cost" + ) + prefer_stronger_wwan_signal: bool | None = Field( + default=None, + alias="preferStrongerWwanSignal", + description="Prefer stronger WWAN signal", + ) + custom_probe_config: CommonConnectivityProbe | None = Field( + default=None, alias="customProbeConfig" + ) + + +class ProfileDeploymentPerDeviceStatus(BaseModel): + asset_id: ( + constr( + pattern=r"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + ) + | None + ) = Field(default=None, alias="assetId", description="Unique ID of the object.") + object_status: list[ProfileDeploymentResourceObjectStatus] | None = Field( + default=None, + alias="objectStatus", + description="list of status of objects created by deployment for the given asset id", + ) + + +class ProfileDeploymentResourceDetailedStatus(BaseModel): + id: ( + constr( + pattern=r"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + ) + | None + ) = Field(default=None, description="unique Id of the deployment.") + name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined name of the deployment, unique across the enterprise. Once deployment is created, name can’t be changed.", + ) + title: ( + constr(pattern=r"[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined title of the deployment. Title can be changed at any time.", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the deployment." + ) + project_id: str | None = Field( + default=None, alias="projectId", description="project id" + ) + app_profile_info: AppProfileInfo | None = Field( + default=None, alias="appProfileInfo" + ) + target_asset_group: TargetAssetGroup | None = Field( + default=None, alias="targetAssetGroup" + ) + asset_resource_status: list[ProfileDeploymentPerDeviceStatus] | None = Field( + default=None, + alias="assetResourceStatus", + description="list of status of objects created by deployment", + ) + + +class ProfileDeploymentResourceDetailedStatusResp(BaseModel): + resource_status: ProfileDeploymentResourceDetailedStatus | None = Field( + default=None, alias="resourceStatus" + ) + next: Cursor | None = None + + +class StaticIPRoute(BaseModel): + prefix: str | None = Field(default=None, description="IP Prefix") + gateway: str | None = Field(default=None, description="Gateway IP") + output_port: str | None = Field( + default=None, alias="outputPort", description="Output Port" + ) + probe_config: ProbeConfig | None = Field(default=None, alias="probeConfig") + + +class AppACE(BaseModel): + matches: list[AppACEMatch] = Field(..., description="app ACE match") + actions: list[AppACEAction] = Field(..., description="app ACE actions") + id: float = Field(..., description="app ACE id") + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the app ACE, unique across the enterprise. Once object is created, name can’t be changed", + ) + + +class AppInterface(BaseModel): + netname: str | None = Field( + default=None, + description="network name: will be deprecated in future, use netinstname", + ) + io: PhyAdapter | None = None + intforder: float | None = Field(default=None, description="intforder") + intfname: str = Field(..., description="intf Name") + directattach: bool | None = Field( + default=None, + description="direct attach flag", + title="comes from manifest during app create", + ) + privateip: bool | None = Field(default=None, description="Private IP flag") + acls: list[AppACE] | None = Field(default=None, description="app Acls") + ipaddr: str | None = Field( + default=None, + description="IP address", + title="if netname points static DHCP then we need to take\nstatic /32 address here", + ) + macaddr: str | None = Field( + default=None, + description="MAC address", + title="in case of p2v we might want to provide a mac-address.\napplicable only in case of DHCP=passthrough", + ) + access_vlan_id: confloat(ge=2.0, le=4093.0) | None = Field( + default=None, + alias="accessVlanId", + description="access port VLAN ID, vlan id of zero will be treated as trunk port and vlan id 1 is implicitly used by linux bridges", + ) + eidregister: EIDRegister | None = None + netinstname: str | None = Field( + default=None, + description='Network Instance name to be matched for interface assignment. Applicable only when "direct attach" flag is false', + ) + netinsttag: dict[str, str] | None = Field( + default=None, + description='Network Instance tag to be matched for interface assignment. Applicable only when "direct attach" flag is false', + ) + netinstid: str | None = Field( + default=None, + description="Network Instance id to be matched for interface assignment.", + ) + default_net_instance: bool | None = Field( + default=None, alias="defaultNetInstance", description="default instance flag" + ) + allow_to_discover: bool | None = Field( + default=None, + alias="allowToDiscover", + description="flag tells if appInstance have permission to access the network mappings from the connected netInstance", + ) + + +class CustomConfig(BaseModel): + name: str | None = Field( + default=None, description="Name of CustomConfig (Required)" + ) + add: bool | None = Field( + default=None, + description="Add the Custom Config to App Instance (Optional. Default: False)", + ) + override: bool | None = Field( + default=None, + description="Override existing custom config from App Bundle Manifest (Optional. Default: False)", + ) + allow_storage_resize: bool | None = Field( + default=None, + alias="allowStorageResize", + description="Allow Appinstance storage to be resized after app instance is created. (Optional. Default: False)", + ) + field_delimiter: str | None = Field( + default=None, + alias="fieldDelimiter", + description="Field delimiter used in specifying variables in template. (Required)", + ) + template: str | None = Field( + default=None, description="base64 encrypted template string. (Optional)" + ) + variable_groups: list[CustomConfigVariableGroup] | None = Field( + default=None, + alias="variableGroups", + description="List of Variable groups. (Required)", + ) + + +class ProfileNetworkConfig(BaseModel): + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + port: str | None = Field( + default=None, + description="name of port mapping in the model", + title="name of port mapping in the model", + ) + port_tags: dict[str, str] | None = Field( + default=None, + alias="portTags", + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + kind: NetworkInstanceKind | None = "NETWORK_INSTANCE_KIND_UNSPECIFIED" + type: NetworkInstanceDhcpType | None = "NETWORK_INSTANCE_DHCP_TYPE_UNSPECIFIED" + ip: DhcpServerConfig | None = None + dns_list: list[StaticDNSList] | None = Field( + default=None, alias="dnsList", description="List of Static DNS entries" + ) + opaque: NetInstOpaqueConfig | None = None + device_default: bool | None = Field( + default=None, + alias="deviceDefault", + description="flag to indicate if this is the default network instance for the device", + title="flag to indicate if this is default network", + ) + propagate_connected_routes: bool | None = Field( + default=None, + alias="propagateConnectedRoutes", + description="Automatically propagate connected routes", + title="flag to indicate automatically propagate connected routes", + ) + static_routes: list[StaticIPRoute] | None = Field( + default=None, + alias="staticRoutes", + description="List of Static IP routes", + title="list of static IP routes", + ) + + +class ProfileNetworkPolicy(BaseModel): + meta_data: ProfilePolicyCommon | None = Field(default=None, alias="metaData") + network_config: ProfileNetworkConfig | None = Field( + default=None, alias="networkConfig" + ) + + +class UserDataTemplate(BaseModel): + custom_config: CustomConfig | None = Field(default=None, alias="customConfig") + + +class VMManifest(BaseModel): + ac_kind: str | None = Field( + default="VMManifest", + alias="acKind", + description="UI map: N/A - not exposed to users", + title="Edge Application type", + ) + ac_version: str | None = Field( + default="1.2.0", + alias="acVersion", + description="UI map: N/A - not exposed to users", + title="Manifest version", + ) + name: str | None = Field( + default=None, + description="UI map: AppEditPage:IdentityPane:Name_Field, AppDetailsPage:IdentityPane:Name_Field", + title="Unique id of app manifest, should match object name", + ) + display_name: str | None = Field( + default=None, + alias="displayName", + description="UI map: AppEditPage:IdentityPane:Title_Field, AppDetailsPage:IdentityPane:Title_Field", + title="Display name or title of app manifest", + ) + description: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="UI map: AppDetailsPage:IdentityPane:DescriptionField, AppMarketplacePage:AppCard:DescriptionField", + title="Description of the Edge application", + ) + owner: Author | None = None + desc: Details | None = None + images: list[VMManifestImage] | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane, AppDetailsPage:DrivesPane", + title="Images used by the app", + ) + interfaces: list[Interface] | None = Field( + default=None, + description="UI map: AppEditPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + title="I/O adapter settings", + ) + permissions: list[Permission] | None = None + vmmode: str | None = Field( + default="HV_HVM", + description="UI map: AppEditPage:IdentityPane:VM_Mode_Field, AppDetailsPage:IdentityPane:VM_Mode_Field", + title="VM mode for VM-based app", + ) + enablevnc: bool | None = Field( + default=None, + description="UI map: AppEditPage:IdentityPane:VNC_Field, AppDetailsPage:IdentityPane:VNC_Field", + title="Enable VNC for the app", + ) + resources: list[Resource] | None = Field( + default=None, + description="UI map: AppEditPage:ResourcesPane, AppDetailsPage:ResourcesPane", + title="Hardware resource requirement (CPU, Memory, Storage) for the app", + ) + configuration: UserDataTemplate | None = None + container_detail: ContainerDetail | None = Field( + default=None, alias="containerDetail" + ) + module: ModuleDetail | None = None + app_type: AppType | None = Field(default="APP_TYPE_UNSPECIFIED", alias="appType") + deployment_type: DeploymentType | None = Field( + default="DEPLOYMENT_TYPE_UNSPECIFIED", alias="deploymentType" + ) + cpu_pinning_enabled: bool | None = Field( + default=None, alias="cpuPinningEnabled", description="Enable CpuPinning" + ) + runtime_version: DockerRuntimeVersion | None = Field( + default="RuntimeVersion_Unknown", alias="runtimeVersion" + ) + runtime_protocol_version: DockerRuntimeProtocolVersion | None = Field( + default="RuntimeProtocolVersion_Unknown", alias="runtimeProtocolVersion" + ) + persistent_runtime_size_bytes: str | None = Field( + default=None, + alias="PersistentRuntimeSizeBytes", + description="Size of persistent blank storage for runtime in bytes", + ) + docker_compose_yaml_text: str | None = Field( + default=None, + alias="dockerComposeYamlText", + description="Docker compose base64 encoded plain text", + ) + docker_compose_tar_image_name: str | None = Field( + default=None, + alias="dockerComposeTarImageName", + description="Docker compose tar image name", + ) + enable_oem_win_license_key: bool | None = Field( + default=None, + alias="enableOemWinLicenseKey", + description="UI map: AppEditPage:IdentityPane:ENABLEVMCONFIG_Field, AppDetailsPage:IdentityPane:ENABLEVMCONFIG_Field", + title="Enable device to read the license info from APCI tables", + ) + disable_vtpm: bool | None = Field( + default=None, + alias="disableVTPM", + description="UI map: AppEditPage:IdentityPane:DISABLEVTPM_Field, AppDetailsPage:IdentityPane:DISABLEVTPM_Field", + title="Disable vTPM for a virtual machine (VM)", + ) + + +class ProfileAppConfig(BaseModel): + networks: int | None = Field( + default=None, description="user defined network options" + ) + drives: int | None = Field(default=None, description="user defined drives") + cpus: int | None = Field(default=None, description="user defined cpus for bundle") + memory: int | None = Field( + default=None, description="user defined memory for bundle" + ) + manifest_json: VMManifest | None = Field(default=None, alias="manifestJSON") + storage: int | None = Field( + default=None, description="user defined storage for bundle" + ) + name_project_part: str | None = Field( + default=None, + alias="nameProjectPart", + description="User provided name part for the auto deployed app", + ) + name_app_part: str | None = Field( + default=None, + alias="nameAppPart", + description="User provided name part for the auto deployed app", + ) + interfaces: list[AppInterface] | None = Field( + default=None, description="application interfaces" + ) + start_delay_in_seconds: int | None = Field( + default=None, + alias="startDelayInSeconds", + description="start delay is the time in seconds EVE should wait after boot before starting the application instance", + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + logs: AppInstanceLogs | None = None + vminfo: Vm | None = None + remote_console: bool | None = Field( + default=None, alias="remoteConsole", description="Remote console flag" + ) + new_bundle_version_available: bool | None = Field( + default=None, + alias="newBundleVersionAvailable", + description="this flag denotes whether there is latest bundle available in the marketplace or not", + ) + bundle_version: int | None = Field( + default=None, alias="bundleVersion", description="current bundle version" + ) + net_inst_tags: dict[str, str] | None = Field( + default=None, + alias="netInstTags", + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + net_inst_name: str | None = Field( + default=None, alias="netInstName", description="network instance name" + ) + + +class ProfileAppPolicy(BaseModel): + meta_data: ProfilePolicyCommon | None = Field(default=None, alias="metaData") + app_config: ProfileAppConfig | None = Field(default=None, alias="appConfig") + + +class AppProfile(BaseModel): + id: str | None = Field(default=None, description="unique id for an App profile") + name: str | None = Field( + default=None, description="user defined name for the App profile" + ) + title: str | None = Field( + default=None, description="user defined title for the app profile" + ) + app_policies: list[ProfileAppPolicy] | None = Field( + default=None, alias="appPolicies", description="list of app instance policies" + ) + network_policies: list[ProfileNetworkPolicy] | None = Field( + default=None, + alias="networkPolicies", + description="list of network instance policies", + ) + volume_policies: list[ProfileVolumePolicy] | None = Field( + default=None, + alias="volumePolicies", + description="list of volume instance policies", + ) + latest_version: int | None = Field( + default=None, + alias="latestVersion", + description="latest version of app profile. Server-derived; value supplied in a create or update request is ignored", + ) + status: AppProfileStatusType | None = "APP_PROFILE_STATUS_TYPE_INACTIVE" + + +class AppProfileConfigSummary(BaseModel): + id: str | None = Field(default=None, description="unique id for app profile") + name: str | None = Field(default=None, description="user defined app profile name") + title: str | None = Field( + default=None, description="user defined app profile title" + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the app profile." + ) + app_policies: list[ProfileAppPolicy] | None = Field( + default=None, alias="appPolicies", description="list of app instance policies" + ) + network_policies: list[ProfileNetworkPolicy] | None = Field( + default=None, + alias="networkPolicies", + description="list of network instance policies", + ) + volume_policies: list[ProfileVolumePolicy] | None = Field( + default=None, + alias="volumePolicies", + description="list of volume instance policies", + ) + + +class AppProfileRead(BaseModel): + id: str | None = Field(default=None, description="unique id for an App profile") + name: str | None = Field( + default=None, description="user defined name for the App profile" + ) + title: str | None = Field( + default=None, description="user defined title for the app profile" + ) + app_policies: list[ProfileAppPolicy] | None = Field( + default=None, alias="appPolicies", description="list of app instance policies" + ) + network_policies: list[ProfileNetworkPolicy] | None = Field( + default=None, + alias="networkPolicies", + description="list of network instance policies", + ) + volume_policies: list[ProfileVolumePolicy] | None = Field( + default=None, + alias="volumePolicies", + description="list of volume instance policies", + ) + latest_version: int | None = Field( + default=None, alias="latestVersion", description="latest version of app profile" + ) + status: AppProfileStatusType | None = "APP_PROFILE_STATUS_TYPE_INACTIVE" + + +class AppProfileVersion(BaseModel): + id: str | None = Field(default=None, description="unique id for an App profile") + name: str | None = Field( + default=None, description="user defined name for the App profile" + ) + title: str | None = Field( + default=None, description="user defined title for the app profile" + ) + app_policies: list[ProfileAppPolicy] | None = Field( + default=None, alias="appPolicies", description="list of app instance policies" + ) + network_policies: list[ProfileNetworkPolicy] | None = Field( + default=None, + alias="networkPolicies", + description="list of network instance policies", + ) + volume_policies: list[ProfileVolumePolicy] | None = Field( + default=None, + alias="volumePolicies", + description="list of volume instance policies", + ) + version: int | None = Field( + default=None, description="latest version of app profile" + ) + + +class AppProfileVersionListResp(BaseModel): + version_list: list[AppProfileVersion] | None = Field( + default=None, + alias="versionList", + description="App profile version list response", + ) + next: Cursor | None = None + + +class AppProfiles(BaseModel): + summary_by_state: Summary | None = Field(default=None, alias="summaryByState") + list_: list[AppProfileConfigSummary] | None = Field( + default=None, alias="list", description="App profile summary list response" + ) + next: Cursor | None = None diff --git a/packages/zedcloud/src/zedcloud/_generated/models/apps.py b/packages/zedcloud/src/zedcloud/_generated/models/apps.py new file mode 100644 index 0000000..481f49c --- /dev/null +++ b/packages/zedcloud/src/zedcloud/_generated/models/apps.py @@ -0,0 +1,3382 @@ +# Generated by scripts/generate_from_openapi.py from zedge_app_service.swagger.json +# Do not edit by hand — re-run: uv run python scripts/generate_from_openapi.py + +from __future__ import annotations +from enum import Enum +from pydantic import AwareDatetime, Base64Str, BaseModel, Field, confloat, constr +from typing import Any + + +class AdminState(Enum): + admin_state_unspecified = "ADMIN_STATE_UNSPECIFIED" + admin_state_created = "ADMIN_STATE_CREATED" + admin_state_deleted = "ADMIN_STATE_DELETED" + admin_state_active = "ADMIN_STATE_ACTIVE" + admin_state_inactive = "ADMIN_STATE_INACTIVE" + admin_state_registered = "ADMIN_STATE_REGISTERED" + admin_state_archived = "ADMIN_STATE_ARCHIVED" + admin_state_deletion_pending = "ADMIN_STATE_DELETION_PENDING" + + +class AppCategory(Enum): + app_category_unspecified = "APP_CATEGORY_UNSPECIFIED" + app_category_operating_system = "APP_CATEGORY_OPERATING_SYSTEM" + app_category_industrial = "APP_CATEGORY_INDUSTRIAL" + app_category_edge_application = "APP_CATEGORY_EDGE_APPLICATION" + app_category_networking = "APP_CATEGORY_NETWORKING" + app_category_security = "APP_CATEGORY_SECURITY" + app_category_data_analytics = "APP_CATEGORY_DATA_ANALYTICS" + app_category_cloud_application = "APP_CATEGORY_CLOUD_APPLICATION" + app_category_devops = "APP_CATEGORY_DEVOPS" + app_category_others = "APP_CATEGORY_OTHERS" + + +class AppInfo(BaseModel): + app_id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + alias="appId", + description="system generated unique id for the app bundle", + ) + app_name: str | None = Field( + default=None, alias="appName", description="app bundle name" + ) + + +class AppInstEdgeNodeCluster(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, description="Id of the edge node cluster" + ) + designated_node_id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, alias="designatedNodeID", description="Id of the designated node" + ) + name: str | None = Field(default=None, description="edge node cluster name") + enable_app_pinning: bool | None = Field( + default=None, + alias="enableAppPinning", + description="enable application pinning to edge node cluster's designated node", + ) + + +class AppInstMemorySummary(BaseModel): + allocated_mb: float | None = Field( + default=None, + alias="AllocatedMB", + description="Total memory allocated for the App instance.", + title="AllocatedMB - Total memory allocated to the App Instance.\nNormally, AllocatedMB >= UsedMB + AvailableMB", + ) + used_mb: float | None = Field( + default=None, + alias="UsedMB", + description="Total memory used by the App within allocated memory", + ) + available_mb: float | None = Field( + default=None, + alias="AvailableMB", + description="Available / Free memory in the App", + ) + + +class AppInstPatchEnvelopeConfigHttpRequestAppInstPatchEnvelopeHttpRequest(Enum): + unspecified = "UNSPECIFIED" + referencing_patch = "REFERENCING_PATCH" + not_referencing_patch = "NOT_REFERENCING_PATCH" + + +class AppInstanceLogs(BaseModel): + access: bool = Field( + ..., + description="Flags to enable / disable sending of logs generated by app instance to zedcloud", + ) + + +class AppInstanceLogsQueryResponseItem(BaseModel): + msgid: str | None = Field(default=None, description="message Id") + content: str | None = Field(default=None, description="app instance logs") + timestamp: AwareDatetime | None = Field( + default=None, description="timestamp of query time" + ) + + +class AppType(Enum): + app_type_unspecified = "APP_TYPE_UNSPECIFIED" + app_type_vm = "APP_TYPE_VM" + app_type_vm_runtime = "APP_TYPE_VM_RUNTIME" + app_type_container = "APP_TYPE_CONTAINER" + app_type_module = "APP_TYPE_MODULE" + app_type_docker_compose = "APP_TYPE_DOCKER_COMPOSE" + + +class Author(BaseModel): + user: str | None = Field( + default=None, + description="UI map: AppEditPage:DeveloperPane:Name_Field, AppDetailsPage:DeveloperPane:Name_Field", + title="Name of the developer", + ) + group: str | None = Field(default=None, title="Not used by ZedUI") + company: str | None = Field( + default=None, + description="UI map: AppEditPage:IdentityPane:Category_Field, AppDetailsPage:IdentityPane:Category_Field", + title="Company of the developer", + ) + website: str | None = Field( + default=None, + description="UI map: AppEditPage:DeveloperPane:Website_Field, AppDetailsPage:DeveloperPane:Website_Field", + title="Website of the developer company", + ) + email: str | None = Field( + default=None, + description="UI map: AppEditPage:DeveloperPane:Email_Field, AppDetailsPage:DeveloperPane:Email_Field", + title="Contact email of the developer company", + ) + + +class ClassificationItem(BaseModel): + source_node: str | None = Field(default=None, alias="sourceNode") + dest_node: str | None = Field(default=None, alias="destNode") + metric_value: str | None = Field(default=None, alias="metricValue") + level: int | None = None + + +class ClassificationRequestHttpRequestFlowlogCategoryTypeHttpRequest(Enum): + unspecified = "UNSPECIFIED" + direction = "DIRECTION" + acl_id = "ACL_ID" + action = "ACTION" + proto = "PROTO" + remote_ip = "REMOTE_IP" + remote_port = "REMOTE_PORT" + fqdn = "FQDN" + + +class ClassificationResponse(BaseModel): + list_: list[ClassificationItem] | None = Field(default=None, alias="list") + + +class ContainerDetail(BaseModel): + container_create_option: str | None = Field( + default=None, + alias="containerCreateOption", + description="Create options direct the creation of the Docker container", + title="Base64 encoded container specific details", + ) + + +class ContainerPortMap(BaseModel): + ip: str | None = Field(default=None, description="container ip") + private_port: float | None = Field( + default=None, alias="privatePort", description="container private port" + ) + public_port: float | None = Field( + default=None, alias="publicPort", description="container public port" + ) + type: str | None = Field(default=None, description="port type (tcp, udp)") + runtime_ip: str | None = Field( + default=None, + alias="runtimeIp", + description="IP address that can be used for connecting to port mapped containers inside runtime", + ) + + +class ControllerType(Enum): + controller_type_unspecified = "CONTROLLER_TYPE_UNSPECIFIED" + controller_type_azure = "CONTROLLER_TYPE_AZURE" + controller_type_aws = "CONTROLLER_TYPE_AWS" + controller_type_gcp = "CONTROLLER_TYPE_GCP" + controller_type_vco = "CONTROLLER_TYPE_VCO" + + +class CpuSummary(BaseModel): + utilization: float | None = Field( + default=None, alias="Utilization", description="CPU Utilization" + ) + + +class Cursor(BaseModel): + page_token: str | None = Field( + default=None, alias="pageToken", description="Page Token" + ) + order_by: list[str] | None = Field( + default=None, + alias="orderBy", + description="OrderBy helps in sorting the list response", + ) + page_num: float | None = Field( + default=None, alias="pageNum", description="Page Number" + ) + page_size: float | None = Field( + default=None, alias="pageSize", description="Defines the page size" + ) + total_pages: float | None = Field( + default=None, + alias="totalPages", + description="Total number of pages to be fetched.", + ) + + +class DNSInfo(BaseModel): + servers: list[str] = Field(..., description="Array of dns server") + domain: str = Field(..., description="domain name") + search: list[str] = Field(..., description="Array of search strings") + + +class DeploymentType(Enum): + deployment_type_unspecified = "DEPLOYMENT_TYPE_UNSPECIFIED" + deployment_type_stand_alone = "DEPLOYMENT_TYPE_STAND_ALONE" + deployment_type_azure = "DEPLOYMENT_TYPE_AZURE" + deployment_type_k3_s = "DEPLOYMENT_TYPE_K3S" + deployment_type_aws = "DEPLOYMENT_TYPE_AWS" + deployment_type_k3_s_azure = "DEPLOYMENT_TYPE_K3S_AZURE" + deployment_type_k3_s_aws = "DEPLOYMENT_TYPE_K3S_AWS" + deployment_type_vmware_vce = "DEPLOYMENT_TYPE_VMWARE_VCE" + deployment_type_vmware_tkg_attach = "DEPLOYMENT_TYPE_VMWARE_TKG_ATTACH" + deployment_type_docker_runtime = "DEPLOYMENT_TYPE_DOCKER_RUNTIME" + + +class Details(BaseModel): + category: str | None = Field( + default="All", + description="UI map: AppMarketplacePage:AppCard:DescriptionField, AppEditPage:IdentityPane:CategoryField, AppDetailsPage:IdentityPane:CategoryField", + title="Type of the Edge application", + ) + os: str | None = Field(default=None, title="Edge application's Operating System") + app_category: AppCategory = Field(..., alias="appCategory") + logo: dict[str, str] | None = Field( + default=None, + description="UI map: AppEditPage:IdentityPane:Logo, AppDetailsPage:IdentityPane:Logo", + title="App Logo", + ) + screenshot_list: dict[str, str] | None = Field( + default=None, + alias="screenshotList", + description="UI map: AppEditPage:IdentityPane:Screenshot_Fields, AppDetailsPage:IdentityPane:Screenshot_Fields", + title="App Screenshots", + ) + license_list: dict[str, str] | None = Field( + default=None, + alias="licenseList", + description="UI map: AppMarketplacePage:AppCard:License, AppEditPage:IdentityPane:License, AppDetailsPage:IdentityPane:License", + title="App Licenses", + ) + support: str | None = Field( + default=None, + description="UI map: AppEditPage:DeveloperPane:Support_Description_Field, AppDetailsPage:DeveloperPane:Support_Description_Field", + title="Support Description", + ) + agreement_list: dict[str, str] | None = Field( + default=None, + alias="agreementList", + description="UI map: AppEditPage:DeveloperPane:Developer_Agreement_Field, AppDetailsPage:DeveloperPane:Developer_Agreement_Field", + title="Developer Agreements", + ) + + +class DevInfo(BaseModel): + device_id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + alias="deviceId", + description="system generated unique id for the device", + ) + device_name: str | None = Field( + default=None, alias="deviceName", description="device name" + ) + raw_status: str | None = Field( + default=None, alias="rawStatus", description="device raw status" + ) + + +class DockerRuntimeProtocolVersion(Enum): + runtime_protocol_version_unknown = "RuntimeProtocolVersion_Unknown" + runtime_protocol_version_v1 = "RuntimeProtocolVersion_V1" + + +class DockerRuntimeVersion(Enum): + runtime_version_unknown = "RuntimeVersion_Unknown" + runtime_version_v1 = "RuntimeVersion_V1" + + +class Entity(Enum): + entity_unspecified = "ENTITY_UNSPECIFIED" + entity_base_os = "ENTITY_BASE_OS" + entity_system_adapter = "ENTITY_SYSTEM_ADAPTER" + entity_vault = "ENTITY_VAULT" + entity_attestation = "ENTITY_ATTESTATION" + entity_app_instance = "ENTITY_APP_INSTANCE" + entity_port = "ENTITY_PORT" + entity_network = "ENTITY_NETWORK" + entity_network_instance = "ENTITY_NETWORK_INSTANCE" + entity_content_tree = "ENTITY_CONTENT_TREE" + entity_content_blob = "ENTITY_CONTENT_BLOB" + entity_volume = "ENTITY_VOLUME" + + +class EventSource(Enum): + event_source_unspecified = "EVENT_SOURCE_UNSPECIFIED" + event_source_system = "EVENT_SOURCE_SYSTEM" + event_source_user = "EVENT_SOURCE_USER" + + +class ExternalOpaqueBinaryBlob(BaseModel): + image_name: str | None = Field( + default=None, + alias="imageName", + title="Name of the image uploaded into data store", + ) + file_name_to_use: str | None = Field( + default=None, + alias="fileNameToUse", + title="optional - file name to be used for storing this data in EVE.\nthe same file name shall be advertised to application agent", + ) + blob_meta_data: str | None = Field( + default=None, + alias="blobMetaData", + description="Eve shall use the image name when fileNameToUse is empty\noptional - this can be image type or size etc encoded into a single string.\nonly the application instance agents will interpret this.", + ) + image_id: str | None = Field(default=None, alias="imageId") + + +class FlowlogAction(Enum): + flow_log_action_unspecified = "FLOW_LOG_ACTION_UNSPECIFIED" + flow_log_action_drop = "FLOW_LOG_ACTION_DROP" + flow_log_action_accept = "FLOW_LOG_ACTION_ACCEPT" + + +class FlowlogMetric(Enum): + flow_log_metric_unspecified = "FLOW_LOG_METRIC_UNSPECIFIED" + flow_log_metric_bytes = "FLOW_LOG_METRIC_BYTES" + flow_log_metric_packets = "FLOW_LOG_METRIC_PACKETS" + + +class GPSLocation(BaseModel): + latitude: float | None = Field(default=None, description="Latitude") + longitude: float | None = Field(default=None, description="Longitude") + altitude: float | None = Field( + default=None, description="Altitude from mean sea level" + ) + timestamp: dict[str, Any] | None = Field(default=None, description="UTC timestamp") + horizontal_reliability: float | None = Field( + default=None, + alias="horizontalReliability", + description="Horizontal reliability", + ) + vertical_reliability: float | None = Field( + default=None, alias="verticalReliability", description="Vertical reliability" + ) + horizontal_uncertainty: float | None = Field( + default=None, + alias="horizontalUncertainty", + description="Horizontal uncertainty", + ) + vertical_uncertainty: float | None = Field( + default=None, alias="verticalUncertainty", description="Vertical uncertainty" + ) + logical_label: str | None = Field( + default=None, + alias="logicalLabel", + description="Logical label of the adapter used to get GPS coordinates", + ) + + +class GeoLocation(BaseModel): + underlay_ip: str | None = Field( + default=None, + alias="underlayIP", + description="Single IP address, either in IPv4 or in IPv6 format", + ) + hostname: str | None = Field(default=None, description="Host name") + city: str | None = Field(default=None, description="City") + region: str | None = Field(default=None, description="Region") + country: str | None = Field( + default=None, + description="Country code consisting of 2 capital letters as per ISO 3166-1 alpha2 standard", + ) + loc: str | None = Field( + default=None, + description="Ordered pair of (latitude, longitude) separated by comma (,). Latitude is the horizontal component used for geographic positioning; it is the angle between 0° (the equator) and ±90° (north or south) at the poles measured in decimal degrees. It is the first value in an ordered pair. A negative number denotes a location south of the equator; a positive number is north. Longitude is the vertical component used for geographic positioning; it is the angle between 0° (the Prime Meridian) and ±180° (westward or eastward) measured in decimal degrees. It is the second number in an ordered pair. A negative number indicates a location west of Greenwich, England; a positive number east.", + ) + org: str | None = Field( + default=None, + description="The name of the recipient, firm, or company at this geographical location.", + ) + postal: str | None = Field( + default=None, + description="Postal code (ZIP code for USA) of the geographical location", + ) + latlong: str | None = Field( + default=None, description="Deprecated field: comma, separated lat, long" + ) + freeloc: str | None = Field( + default=None, description="Free formatted location string" + ) + + +class ImageDatastore(BaseModel): + id: str | None = Field(default=None, description="Datastore ID") + name: str | None = Field(default=None, description="Datastore Name") + + +class InlineOpaqueBase64Data(BaseModel): + base64_data: str | None = Field( + default=None, alias="base64Data", title="base64 encoded" + ) + file_name_to_use: str | None = Field( + default=None, + alias="fileNameToUse", + title="file name to be used for storing this data in EVE.\nthe same file name shall be advertised to application agent", + ) + base64_meta_data: str | None = Field( + default=None, + alias="base64MetaData", + title="optional - any arbitrary metadata encoded to base64 string", + ) + + +class InstanceTransitionAction(Enum): + instance_ta_unspecified = "INSTANCE_TA_UNSPECIFIED" + instance_ta_none = "INSTANCE_TA_NONE" + instance_ta_updaterequired = "INSTANCE_TA_UPDATEREQUIRED" + instance_ta_updatewithrestart = "INSTANCE_TA_UPDATEWITHRESTART" + instance_ta_updatewithpurge = "INSTANCE_TA_UPDATEWITHPURGE" + + +class IoAddresses(BaseModel): + mac_address: str | None = Field(default=None, alias="macAddress") + + +class IoMemberStatus(BaseModel): + name: str | None = Field(default=None, description="IoBundle Member name") + io_address: IoAddresses | None = Field(default=None, alias="ioAddress") + + +class IoType(Enum): + io_type_unspecified = "IO_TYPE_UNSPECIFIED" + io_type_eth = "IO_TYPE_ETH" + io_type_usb = "IO_TYPE_USB" + io_type_com = "IO_TYPE_COM" + io_type_audio = "IO_TYPE_AUDIO" + io_type_wlan = "IO_TYPE_WLAN" + io_type_wwan = "IO_TYPE_WWAN" + io_type_hdmi = "IO_TYPE_HDMI" + io_type_lte = "IO_TYPE_LTE" + io_type_storage_nvme_device = "IO_TYPE_STORAGE_NVME_DEVICE" + io_type_storage_sata_device = "IO_TYPE_STORAGE_SATA_DEVICE" + io_type_eth_pf = "IO_TYPE_ETH_PF" + io_type_eth_vf = "IO_TYPE_ETH_VF" + io_type_usb_controller = "IO_TYPE_USB_CONTROLLER" + io_type_usb_device = "IO_TYPE_USB_DEVICE" + io_type_can = "IO_TYPE_CAN" + io_type_vcan = "IO_TYPE_VCAN" + io_type_lcan = "IO_TYPE_LCAN" + io_type_vlan = "IO_TYPE_VLAN" + io_type_other = "IO_TYPE_OTHER" + + +class LimitParams(BaseModel): + limitrate: int | None = Field( + default=None, + description="UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + title="Rate limit in ACL rule", + ) + limitunit: str | None = Field( + default=None, + description="UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + title="Rate limit unit in ACL rule", + ) + limitburst: int | None = Field( + default=None, + description="UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + title="Rate limit burst in ACL rule", + ) + + +class LispServer(BaseModel): + name_or_ip: str = Field(..., alias="nameOrIp", description="name/IP") + credential: str = Field(..., description="lisp credential") + + +class MapParams(BaseModel): + app_port: int | None = Field( + default=None, alias="appPort", description="Application Port value" + ) + + +class Match(BaseModel): + type: str | None = Field( + default=None, + description="Type of Match (Required)", + title="enum: host, protocol, adapter\nAt the device level it will pick right interface to apply this match", + ) + value: str | None = Field(default=None, description="Value of match (Required)") + + +class MemorySummary(BaseModel): + total_mb: float | None = Field( + default=None, alias="TotalMB", description="Total memory for the device in MBs" + ) + used_mb: float | None = Field( + default=None, + alias="UsedMB", + description="Total memory used by the device in MBs within allocated memory", + ) + allocated_mb: float | None = Field( + default=None, alias="AllocatedMB", description="Total allocated memory in MBs" + ) + + +class MetricQueryRequestWithIdHttpRequestMetricTypeHttpRequest(Enum): + unspecified = "UNSPECIFIED" + cpu_total = "CPU_TOTAL" + cpu_usage = "CPU_USAGE" + memory_total = "MEMORY_TOTAL" + memory_utilization = "MEMORY_UTILIZATION" + network_total = "NETWORK_TOTAL" + network_rates = "NETWORK_RATES" + events_count = "EVENTS_COUNT" + storage_utilization = "STORAGE_UTILIZATION" + storage_io_zpool = "STORAGE_IO_ZPOOL" + storage_io_zvol = "STORAGE_IO_ZVOL" + + +class MetricQueryRequestWithNameHttpRequestMetricTypeHttpRequest(Enum): + unspecified = "UNSPECIFIED" + cpu_total = "CPU_TOTAL" + cpu_usage = "CPU_USAGE" + memory_total = "MEMORY_TOTAL" + memory_utilization = "MEMORY_UTILIZATION" + network_total = "NETWORK_TOTAL" + network_rates = "NETWORK_RATES" + events_count = "EVENTS_COUNT" + storage_utilization = "STORAGE_UTILIZATION" + storage_io_zpool = "STORAGE_IO_ZPOOL" + storage_io_zvol = "STORAGE_IO_ZVOL" + + +class MetricQueryResponseItem(BaseModel): + timestamp: AwareDatetime | None = None + values: list[float] | None = None + + +class MetricThreshold(BaseModel): + yellow: float | None = None + red: float | None = None + + +class ModuleType(Enum): + module_type_unspecified = "MODULE_TYPE_UNSPECIFIED" + module_type_system_defined = "MODULE_TYPE_SYSTEM_DEFINED" + module_type_custom = "MODULE_TYPE_CUSTOM" + module_type_azure_edge_agent = "MODULE_TYPE_AZURE_EDGE_AGENT" + module_type_azure_edge_hub = "MODULE_TYPE_AZURE_EDGE_HUB" + + +class NetworkCounters(BaseModel): + if_name: str | None = Field(default=None, alias="ifName", description="ifName") + tx_bytes: float | None = Field( + default=None, alias="txBytes", description="Tx Bytes" + ) + rx_bytes: float | None = Field( + default=None, alias="rxBytes", description="Rx Bytes" + ) + tx_pkts: float | None = Field( + default=None, alias="txPkts", description="Tx Packets" + ) + rx_pkts: float | None = Field( + default=None, alias="rxPkts", description="Rx packets" + ) + tx_errors: float | None = Field( + default=None, alias="txErrors", description="Tx Errors" + ) + rx_errors: float | None = Field( + default=None, alias="rxErrors", description="Rx Errors" + ) + tx_drops: float | None = Field( + default=None, alias="txDrops", description="Tx Drops" + ) + rx_drops: float | None = Field( + default=None, alias="rxDrops", description="Rx Drops" + ) + tx_acl_drops: float | None = Field( + default=None, alias="txAclDrops", description="Tx ACL Rate Drops" + ) + rx_acl_drops: float | None = Field( + default=None, alias="rxAclDrops", description="Rx ACL Rate Drops" + ) + tx_acl_rate_limit_drops: float | None = Field( + default=None, alias="txAclRateLimitDrops", description="Tx ACL Rate Limit Drops" + ) + rx_acl_rate_limit_drops: float | None = Field( + default=None, alias="rxAclRateLimitDrops", description="Rx ACL Rate Limit Drops" + ) + + +class NetworkProxyProto(Enum): + network_proxy_proto_http = "NETWORK_PROXY_PROTO_HTTP" + network_proxy_proto_https = "NETWORK_PROXY_PROTO_HTTPS" + network_proxy_proto_socks = "NETWORK_PROXY_PROTO_SOCKS" + network_proxy_proto_ftp = "NETWORK_PROXY_PROTO_FTP" + network_proxy_proto_other = "NETWORK_PROXY_PROTO_OTHER" + + +class ObjectDetail(BaseModel): + id: str | None = None + name: str | None = None + + +class ObjectParentDetail(BaseModel): + id_of_parent_object: constr(pattern=r"[0-9A-Za-z-]+") = Field( + ..., + alias="idOfParentObject", + description="system defined unique id of parent object", + ) + version_of_parent_object: int | None = Field( + default=None, + alias="versionOfParentObject", + description="version of object present in parent", + ) + update_available: bool | None = Field( + default=None, alias="updateAvailable", description="Update required flag" + ) + reference_exists: bool | None = Field( + default=None, + alias="referenceExists", + description="Relation with child and parent object exists or not", + ) + + +class ObjectRevision(BaseModel): + prev: str | None = Field(default=None, description="Previous") + curr: str = Field(..., description="Current Database version of the record") + created_at: dict[str, Any] = Field( + ..., + alias="createdAt", + description="The time, in milliseconds since the epoch, when the record was created.", + ) + created_by: str = Field(..., alias="createdBy", description="User data: Created By") + updated_at: dict[str, Any] = Field( + ..., + alias="updatedAt", + description="The time, in milliseconds since the epoch, when the record was last updated.", + ) + updated_by: str = Field(..., alias="updatedBy", description="User data: Updated By") + + +class ObjectTag(BaseModel): + key: str | None = Field(default=None, description="object tag key identifier.") + value: str | None = Field( + default=None, description="value associated for the object tag key" + ) + description: str | None = Field( + default=None, description="Description of the tag key" + ) + + +class ObjectTagsList(BaseModel): + object_tags: list[ObjectTag] | None = Field( + default=None, + alias="objectTags", + description="Details of Object tags list records.", + ) + next: Cursor | None = None + + +class ObjectType(Enum): + object_type_unspecified = "OBJECT_TYPE_UNSPECIFIED" + object_type_user = "OBJECT_TYPE_USER" + object_type_edge_node = "OBJECT_TYPE_EDGE_NODE" + object_type_edge_app = "OBJECT_TYPE_EDGE_APP" + object_type_image = "OBJECT_TYPE_IMAGE" + object_type_edge_app_instance = "OBJECT_TYPE_EDGE_APP_INSTANCE" + object_type_project = "OBJECT_TYPE_PROJECT" + object_type_network = "OBJECT_TYPE_NETWORK" + object_type_datastore = "OBJECT_TYPE_DATASTORE" + object_type_service = "OBJECT_TYPE_SERVICE" + object_type_service_instance = "OBJECT_TYPE_SERVICE_INSTANCE" + object_type_enterprise = "OBJECT_TYPE_ENTERPRISE" + object_type_role = "OBJECT_TYPE_ROLE" + object_type_credential = "OBJECT_TYPE_CREDENTIAL" + object_type_network_instance = "OBJECT_TYPE_NETWORK_INSTANCE" + object_type_volume_instance = "OBJECT_TYPE_VOLUME_INSTANCE" + object_type_realm = "OBJECT_TYPE_REALM" + object_type_authprofile = "OBJECT_TYPE_AUTHPROFILE" + object_type_policy = "OBJECT_TYPE_POLICY" + object_type_app_policy = "OBJECT_TYPE_APP_POLICY" + object_type_cluster_instance = "OBJECT_TYPE_CLUSTER_INSTANCE" + object_type_plugin = "OBJECT_TYPE_PLUGIN" + object_type_doc_policy = "OBJECT_TYPE_DOC_POLICY" + object_type_orchestrator_cluster = "OBJECT_TYPE_ORCHESTRATOR_CLUSTER" + object_type_tags = "OBJECT_TYPE_TAGS" + object_type_edge_node_interface = "OBJECT_TYPE_EDGE_NODE_INTERFACE" + object_type_deployment = "OBJECT_TYPE_DEPLOYMENT" + object_type_entitlements = "OBJECT_TYPE_ENTITLEMENTS" + object_type_data_stream = "OBJECT_TYPE_DATA_STREAM" + object_type_api_usage = "OBJECT_TYPE_API_USAGE" + object_type_app_instance_snapshot = "OBJECT_TYPE_APP_INSTANCE_SNAPSHOT" + object_type_patch_envelope = "OBJECT_TYPE_PATCH_ENVELOPE" + object_type_resource_usage_track = "OBJECT_TYPE_RESOURCE_USAGE_TRACK" + object_type_patch_envelope_reference = "OBJECT_TYPE_PATCH_ENVELOPE_REFERENCE" + object_type_dev_passthrough = "OBJECT_TYPE_DEV_PASSTHROUGH" + object_type_edge_node_cluster = "OBJECT_TYPE_EDGE_NODE_CLUSTER" + object_type_asset_group = "OBJECT_TYPE_ASSET_GROUP" + object_type_app_profile = "OBJECT_TYPE_APP_PROFILE" + object_type_profile_deployment = "OBJECT_TYPE_PROFILE_DEPLOYMENT" + object_type_zks_instance = "OBJECT_TYPE_ZKS_INSTANCE" + object_type_cluster_group = "OBJECT_TYPE_CLUSTER_GROUP" + + +class OpaqueAppInstanceStatus(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="System defined universally unique Id of the app instance", + ) + name: str | None = Field( + default=None, + description="App instance name. Unique across the application instance", + ) + opaque_app_instance_status: Base64Str | None = Field( + default=None, + alias="opaqueAppInstanceStatus", + description="opaque app instance status info", + ) + device_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="deviceId", + description="User defined name of the device, unique across the enterprise.", + ) + last_update_time: AwareDatetime | None = Field( + default=None, alias="lastUpdateTime", description="last update time" + ) + + +class OpaqueObjectCategory(Enum): + opaque_object_category_unknown = "OpaqueObjectCategoryUnknown" + opaque_object_category_inline = "OpaqueObjectCategoryInline" + opaque_object_category_external_binary = "OpaqueObjectCategoryExternalBinary" + + +class Origin(Enum): + origin_unspecified = "ORIGIN_UNSPECIFIED" + origin_imported = "ORIGIN_IMPORTED" + origin_local = "ORIGIN_LOCAL" + origin_global = "ORIGIN_GLOBAL" + origin_app_profile_local = "ORIGIN_APP_PROFILE_LOCAL" + + +class PNACSupplicantState(Enum): + pnac_supplicant_state_unspecified = "PNAC_SUPPLICANT_STATE_UNSPECIFIED" + pnac_supplicant_state_disconnected = "PNAC_SUPPLICANT_STATE_DISCONNECTED" + pnac_supplicant_state_connecting = "PNAC_SUPPLICANT_STATE_CONNECTING" + pnac_supplicant_state_authenticating = "PNAC_SUPPLICANT_STATE_AUTHENTICATING" + pnac_supplicant_state_authenticated = "PNAC_SUPPLICANT_STATE_AUTHENTICATED" + pnac_supplicant_state_failed = "PNAC_SUPPLICANT_STATE_FAILED" + pnac_supplicant_state_held = "PNAC_SUPPLICANT_STATE_HELD" + + +class Param(BaseModel): + name: str | None = Field( + default=None, description="Name of the Parameter (Required)" + ) + value: str | None = Field( + default=None, description="Value of the parameter (Required)" + ) + + +class PatchEnvelopeAction(Enum): + patch_envelope_action_unspecified = "PATCH_ENVELOPE_ACTION_UNSPECIFIED" + patch_envelope_action_store = "PATCH_ENVELOPE_ACTION_STORE" + patch_envelope_action_activate = "PATCH_ENVELOPE_ACTION_ACTIVATE" + + +class PatchEnvelopeState(Enum): + patch_envelope_state_unknown = "PatchEnvelopeStateUnknown" + patch_envelope_state_errored = "PatchEnvelopeStateErrored" + patch_envelope_state_received = "PatchEnvelopeStateReceived" + patch_envelope_state_downloading = "PatchEnvelopeStateDownloading" + patch_envelope_state_downloaded = "PatchEnvelopeStateDownloaded" + patch_envelope_state_ready = "PatchEnvelopeStateReady" + patch_envelope_state_active = "PatchEnvelopeStateActive" + + +class PatchEnvelopeStatus(BaseModel): + id: str | None = Field(default=None, description="patch envelope id") + name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined name of the patch envelope, unique across the enterprise. Once patch envelope is created, name can’t be changed", + ) + user_defined_version: str | None = Field( + default=None, + alias="userDefinedVersion", + description="User defined version for the given patch envelope", + ) + state: PatchEnvelopeState | None = "PatchEnvelopeStateUnknown" + errors: list[str] | None = Field(default=None, description="Patch envelope error") + project_id: str | None = Field( + default=None, alias="projectId", description="project id" + ) + project_name: str | None = Field( + default=None, alias="projectName", description="project name" + ) + device_id: str | None = Field( + default=None, alias="deviceId", description="device id" + ) + device_name: str | None = Field( + default=None, alias="deviceName", description="device name" + ) + + +class PatchEnvelopeUsageInfo(BaseModel): + uuid: str | None = Field( + default=None, description="Id of patch envelope", title="UUID of PatchEnvelope" + ) + patch_api_call_count: float | None = Field( + default=None, + alias="patchApiCallCount", + description="number of times app instance called patch APIs", + title="count the number of times app instance called patch APIs", + ) + version: str | None = Field( + default=None, + description="version of patch envelope", + title="Version of PatchEnvelope", + ) + download_count: str | None = Field( + default=None, + alias="downloadCount", + description=" number of times app instance download whole patch envelope or part of it", + title="count the number of times app instance actually downloaded\nwhole patch envelope or part of it", + ) + + +class PatchReferenceUpdateConfig(BaseModel): + project_id: str | None = Field(default=None, alias="projectId") + patchenvelope_id: str | None = Field(default=None, alias="patchenvelopeId") + app_inst_id_list: list[str] | None = Field(default=None, alias="appInstIDList") + + +class PatchStatusFilter(BaseModel): + device_name: str | None = Field(default=None, alias="deviceName") + + +class PatchStatusListMsg(BaseModel): + list_: list[PatchEnvelopeStatus] | None = Field(default=None, alias="list") + total_count: int | None = Field(default=None, alias="totalCount") + next: Cursor | None = None + + +class Permission(BaseModel): + pass + + +class RadioAccessTechnology(Enum): + radio_access_technology_unspecified = "RADIO_ACCESS_TECHNOLOGY_UNSPECIFIED" + radio_access_technology_gsm = "RADIO_ACCESS_TECHNOLOGY_GSM" + radio_access_technology_umts = "RADIO_ACCESS_TECHNOLOGY_UMTS" + radio_access_technology_lte = "RADIO_ACCESS_TECHNOLOGY_LTE" + radio_access_technology_5_gnr = "RADIO_ACCESS_TECHNOLOGY_5GNR" + + +class Resource(BaseModel): + name: str | None = Field( + default=None, description="Name of the Resource (Required)" + ) + value: str | None = Field(default=None, description="Value of Resource (Required)") + + +class RunState(Enum): + run_state_unspecified = "RUN_STATE_UNSPECIFIED" + run_state_online = "RUN_STATE_ONLINE" + run_state_halted = "RUN_STATE_HALTED" + run_state_init = "RUN_STATE_INIT" + run_state_rebooting = "RUN_STATE_REBOOTING" + run_state_offline = "RUN_STATE_OFFLINE" + run_state_unknown = "RUN_STATE_UNKNOWN" + run_state_unprovisioned = "RUN_STATE_UNPROVISIONED" + run_state_provisioned = "RUN_STATE_PROVISIONED" + run_state_suspect = "RUN_STATE_SUSPECT" + run_state_downloading = "RUN_STATE_DOWNLOADING" + run_state_restarting = "RUN_STATE_RESTARTING" + run_state_purging = "RUN_STATE_PURGING" + run_state_halting = "RUN_STATE_HALTING" + run_state_error = "RUN_STATE_ERROR" + run_state_verifying = "RUN_STATE_VERIFYING" + run_state_loading = "RUN_STATE_LOADING" + run_state_creating_volume = "RUN_STATE_CREATING_VOLUME" + run_state_booting = "RUN_STATE_BOOTING" + run_state_maintenance_mode = "RUN_STATE_MAINTENANCE_MODE" + run_state_start_delayed = "RUN_STATE_START_DELAYED" + run_state_baseos_updating = "RUN_STATE_BASEOS_UPDATING" + run_state_preparing_poweroff = "RUN_STATE_PREPARING_POWEROFF" + run_state_powering_off = "RUN_STATE_POWERING_OFF" + run_state_prepared_poweroff = "RUN_STATE_PREPARED_POWEROFF" + + +class RunStateConfigHttpRequestRunStateHttpRequest(Enum): + unspecified = "UNSPECIFIED" + online = "ONLINE" + halted = "HALTED" + init = "INIT" + rebooting = "REBOOTING" + offline = "OFFLINE" + unknown = "UNKNOWN" + unprovisioned = "UNPROVISIONED" + provisioned = "PROVISIONED" + suspect = "SUSPECT" + downloading = "DOWNLOADING" + restarting = "RESTARTING" + purging = "PURGING" + halting = "HALTING" + error = "ERROR" + verifying = "VERIFYING" + loading = "LOADING" + creating_volume = "CREATING_VOLUME" + booting = "BOOTING" + maintenance_mode = "MAINTENANCE_MODE" + start_delayed = "START_DELAYED" + baseos_updating = "BASEOS_UPDATING" + preparing_poweroff = "PREPARING_POWEROFF" + powering_off = "POWERING_OFF" + prepared_poweroff = "PREPARED_POWEROFF" + + +class RuntimePlatformVersions(BaseModel): + agent_version: str | None = Field( + default=None, alias="agentVersion", description="agent version" + ) + compose_version: str | None = Field( + default=None, alias="composeVersion", description="compose version" + ) + container_runtime_version: str | None = Field( + default=None, + alias="containerRuntimeVersion", + description="container runtime platform version", + ) + kernel_version: str | None = Field( + default=None, alias="kernelVersion", description="kernel version" + ) + kubernetes_version: str | None = Field( + default=None, alias="kubernetesVersion", description="kubernetes version" + ) + + +class SIMCard(BaseModel): + slot_number: float | None = Field( + default=None, alias="slotNumber", description="Slot number" + ) + slot_activated: bool | None = Field( + default=None, alias="slotActivated", description="Is Slot activated" + ) + iccid: str | None = Field( + default=None, description="Integrated Circuit Card Identifier" + ) + imsi: str | None = Field( + default=None, description="International Mobile Subscriber Identity" + ) + state: str | None = Field(default=None, description="Current state of the SIM card") + + +class SWState(Enum): + sw_state_unspecified = "SW_STATE_UNSPECIFIED" + sw_state_initial = "SW_STATE_INITIAL" + sw_state_download_in_progress = "SW_STATE_DOWNLOAD_IN_PROGRESS" + sw_state_downloaded = "SW_STATE_DOWNLOADED" + sw_state_verified = "SW_STATE_VERIFIED" + sw_state_installed = "SW_STATE_INSTALLED" + sw_state_booting = "SW_STATE_BOOTING" + sw_state_running = "SW_STATE_RUNNING" + sw_state_halting = "SW_STATE_HALTING" + sw_state_halted = "SW_STATE_HALTED" + sw_state_refreshing = "SW_STATE_REFRESHING" + sw_state_purging = "SW_STATE_PURGING" + sw_state_resolving_tag = "SW_STATE_RESOLVING_TAG" + sw_state_resolved_tag = "SW_STATE_RESOLVED_TAG" + sw_state_creating_volume = "SW_STATE_CREATING_VOLUME" + sw_state_created_volume = "SW_STATE_CREATED_VOLUME" + sw_state_verifying = "SW_STATE_VERIFYING" + sw_state_loading = "SW_STATE_LOADING" + sw_state_loaded = "SW_STATE_LOADED" + sw_state_awaitnetworkinstance = "SW_STATE_AWAITNETWORKINSTANCE" + + +class Severity(Enum): + severity_unspecified = "SEVERITY_UNSPECIFIED" + severity_notice = "SEVERITY_NOTICE" + severity_warning = "SEVERITY_WARNING" + severity_error = "SEVERITY_ERROR" + + +class SharedStorageSummary(BaseModel): + id: str | None = Field(default=None, alias="Id", description="Id") + name: str | None = Field(default=None, alias="Name", description="Name") + allocated_mb: float | None = Field( + default=None, alias="AllocatedMB", description="Allocated Storage in MBs" + ) + used_mb: float | None = Field( + default=None, + alias="UsedMB", + description="How much is used within the allocated total storage", + ) + + +class SimcardState(Enum): + simcard_state_invalid = "SIMCARD_STATE_INVALID" + simcard_state_assigned = "SIMCARD_STATE_ASSIGNED" + simcard_state_provisioned = "SIMCARD_STATE_PROVISIONED" + simcard_state_active = "SIMCARD_STATE_ACTIVE" + simcard_state_suspended = "SIMCARD_STATE_SUSPENDED" + simcard_state_cancelled = "SIMCARD_STATE_CANCELLED" + + +class SnapshotState(Enum): + invalid = "INVALID" + idle = "IDLE" + creating = "CREATING" + created = "CREATED" + create_failed = "CREATE_FAILED" + rolling_back = "ROLLING_BACK" + active = "ACTIVE" + rollback_failed = "ROLLBACK_FAILED" + deleting = "DELETING" + delete_failed = "DELETE_FAILED" + deleted = "DELETED" + + +class StorageDeviceMetrics(BaseModel): + read_errors: float | None = Field( + default=None, alias="readErrors", description="read errors counter" + ) + write_errors: float | None = Field( + default=None, alias="writeErrors", description="write errors counter" + ) + checksum_errors: float | None = Field( + default=None, alias="checksumErrors", description="checksum errors counter" + ) + bytes_read: float | None = Field( + default=None, alias="bytesRead", description="read bytes counter" + ) + bytes_write: float | None = Field( + default=None, alias="bytesWrite", description="write bytes counter" + ) + + +class StorageSummary(BaseModel): + total_mb: float | None = Field( + default=None, alias="TotalMB", description="Total Storage for the device in MBs" + ) + used_mb: float | None = Field( + default=None, + alias="UsedMB", + description="How much is used within the allocated total storage", + ) + allocated_mb: float | None = Field( + default=None, + alias="AllocatedMB", + description="Total reserved for running applications + temp. images etc", + ) + shared_storage_summary: list[SharedStorageSummary] | None = Field( + default=None, alias="sharedStorageSummary", description="Shared storage summary" + ) + id: str | None = Field(default=None, alias="Id", description="Id") + name: str | None = Field(default=None, alias="Name", description="Name") + + +class Summary(BaseModel): + description: str | None = Field(default=None, description="Summary description") + total: float | None = Field(default=None, description="Total") + values: dict[str, int] | None = Field( + default=None, description="Values: Map for storing " + ) + + +class TopTalkersResponseItem(BaseModel): + local_addr: ( + constr( + pattern=r"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", + min_length=1, + ) + | None + ) = Field(default=None, alias="localAddr") + remote_addr: str | None = Field(default=None, alias="remoteAddr") + local_port: int | None = Field(default=None, alias="localPort") + remote_port: int | None = Field(default=None, alias="remotePort") + proto: int | None = None + total: str | None = Field(default=None, alias="Total") + rx_total: str | None = Field(default=None, alias="rxTotal") + tx_total: str | None = Field(default=None, alias="txTotal") + + +class TransCause(Enum): + trans_cause_unspecified = "TRANS_CAUSE_UNSPECIFIED" + trans_cause_app_drive_changed = "TRANS_CAUSE_APP_DRIVE_CHANGED" + trans_cause_app_network_changed = "TRANS_CAUSE_APP_NETWORK_CHANGED" + trans_cause_app_custom_config_changed = "TRANS_CAUSE_APP_CUSTOM_CONFIG_CHANGED" + trans_cause_app_module_bundle_update = "TRANS_CAUSE_APP_MODULE_BUNDLE_UPDATE" + trans_cause_app_desc_changed = "TRANS_CAUSE_APP_DESC_CHANGED" + trans_cause_app_fixed_resources_changed = "TRANS_CAUSE_APP_FIXED_RESOURCES_CHANGED" + trans_cause_app_vnc_mode_changed = "TRANS_CAUSE_APP_VNC_MODE_CHANGED" + trans_cause_app_vm_mode_changed = "TRANS_CAUSE_APP_VM_MODE_CHANGED" + trans_cause_inter_ca_expiring = "TRANS_CAUSE_INTER_CA_EXPIRING" + trans_cause_inter_ca_expired = "TRANS_CAUSE_INTER_CA_EXPIRED" + trans_cause_device_ca_expiring = "TRANS_CAUSE_DEVICE_CA_EXPIRING" + trans_cause_device_ca_expired = "TRANS_CAUSE_DEVICE_CA_EXPIRED" + trans_cause_identity_ca_expiring = "TRANS_CAUSE_IDENTITY_CA_EXPIRING" + trans_cause_identity_ca_expired = "TRANS_CAUSE_IDENTITY_CA_EXPIRED" + trans_cause_app_compose_tar_image_changed = ( + "TRANS_CAUSE_APP_COMPOSE_TAR_IMAGE_CHANGED" + ) + trans_cause_app_compose_yaml_changed = "TRANS_CAUSE_APP_COMPOSE_YAML_CHANGED" + trans_cause_app_compose_datastore_changed = ( + "TRANS_CAUSE_APP_COMPOSE_DATASTORE_CHANGED" + ) + trans_cause_app_enable_vm_config_changed = ( + "TRANS_CAUSE_APP_ENABLE_VM_CONFIG_CHANGED" + ) + + +class TwinDetail(BaseModel): + authentication_type: str | None = Field(default=None, alias="authenticationType") + cloud_to_device_message_count: int | None = Field( + default=None, alias="cloudToDeviceMessageCount" + ) + reported: Base64Str | None = None + desired: Base64Str | None = None + module_count: int | None = Field(default=None, alias="moduleCount") + last_desired_status: Base64Str | None = Field( + default=None, alias="lastDesiredStatus" + ) + tags: Base64Str | None = None + status_code: int | None = Field(default=None, alias="statusCode") + description: str | None = None + + +class VCEStatusDetail(BaseModel): + vce_url: str | None = Field(default=None, alias="vceURL") + vce_edge_id: int | None = Field(default=None, alias="vceEdgeId") + activation_state: str | None = Field(default=None, alias="activationState") + edge_state: str | None = Field(default=None, alias="edgeState") + service_state: str | None = Field(default=None, alias="serviceState") + ha_state: str | None = Field(default=None, alias="haState") + ha_previous_state: str | None = Field(default=None, alias="haPreviousState") + bastion_state: str | None = Field(default=None, alias="bastionState") + created: AwareDatetime | None = None + activation_key: str | None = Field(default=None, alias="activationKey") + activation_key_expires: AwareDatetime | None = Field( + default=None, alias="activationKeyExpires" + ) + activation_time: AwareDatetime | None = Field(default=None, alias="activationTime") + serial_number: str | None = Field(default=None, alias="serialNumber") + lte_region: str | None = Field(default=None, alias="lteRegion") + alerts_enabled: bool | None = Field(default=None, alias="alertsEnabled") + operator_alerts_enabled: bool | None = Field( + default=None, alias="operatorAlertsEnabled" + ) + edge_state_time: AwareDatetime | None = Field(default=None, alias="edgeStateTime") + is_live: bool | None = Field(default=None, alias="isLive") + system_up_since: AwareDatetime | None = Field(default=None, alias="systemUpSince") + service_up_since: AwareDatetime | None = Field(default=None, alias="serviceUpSince") + last_contact: AwareDatetime | None = Field(default=None, alias="lastContact") + ha_last_contact: AwareDatetime | None = Field(default=None, alias="haLastContact") + ha_serial_number: str | None = Field(default=None, alias="haSerialNumber") + modified: AwareDatetime | None = None + is_hub: bool | None = Field(default=None, alias="isHub") + status_fetched_at: AwareDatetime | None = Field( + default=None, alias="statusFetchedAt" + ) + + +class VariableFileEncoding(Enum): + file_encoding_unspecified = "FILE_ENCODING_UNSPECIFIED" + file_encoding_base64 = "FILE_ENCODING_BASE64" + + +class VariableGroupConditionOperator(Enum): + condition_operator_unspecified = "CONDITION_OPERATOR_UNSPECIFIED" + condition_operator_equalto = "CONDITION_OPERATOR_EQUALTO" + condition_operator_notequalto = "CONDITION_OPERATOR_NOTEQUALTO" + + +class VariableOptionVal(BaseModel): + label: str | None = Field( + default=None, description="Display label of the key in User-Agent" + ) + value: str | None = Field(default=None, description="Value of the key to be used") + + +class VariableVariableFormat(Enum): + variable_format_unspecified = "VARIABLE_FORMAT_UNSPECIFIED" + variable_format_text = "VARIABLE_FORMAT_TEXT" + variable_format_number = "VARIABLE_FORMAT_NUMBER" + variable_format_file = "VARIABLE_FORMAT_FILE" + variable_format_dropdown = "VARIABLE_FORMAT_DROPDOWN" + variable_format_boolean = "VARIABLE_FORMAT_BOOLEAN" + variable_format_password = "VARIABLE_FORMAT_PASSWORD" + + +class VmBootloaderMode(Enum): + vm_bootloader_mode_unspecified = "VM_BOOTLOADER_MODE_UNSPECIFIED" + vm_bootloader_mode_legacy = "VM_BOOTLOADER_MODE_LEGACY" + vm_bootloader_mode_uefi = "VM_BOOTLOADER_MODE_UEFI" + + +class ZCellularControlProtocol(Enum): + z_cellular_control_protocol_unspecified = "Z_CELLULAR_CONTROL_PROTOCOL_UNSPECIFIED" + z_cellular_control_protocol_qmi = "Z_CELLULAR_CONTROL_PROTOCOL_QMI" + z_cellular_control_protocol_mbim = "Z_CELLULAR_CONTROL_PROTOCOL_MBIM" + + +class ZCellularOperatingState(Enum): + z_cellular_operating_state_unspecified = "Z_CELLULAR_OPERATING_STATE_UNSPECIFIED" + z_cellular_operating_state_offline = "Z_CELLULAR_OPERATING_STATE_OFFLINE" + z_cellular_operating_state_radio_off = "Z_CELLULAR_OPERATING_STATE_RADIO_OFF" + z_cellular_operating_state_online = "Z_CELLULAR_OPERATING_STATE_ONLINE" + z_cellular_operating_state_online_and_connected = ( + "Z_CELLULAR_OPERATING_STATE_ONLINE_AND_CONNECTED" + ) + z_cellular_operating_state_unrecognized = "Z_CELLULAR_OPERATING_STATE_UNRECOGNIZED" + + +class ZcOpsStatus(Enum): + ops_status_unspecified = "OPS_STATUS_UNSPECIFIED" + ops_status_pending = "OPS_STATUS_PENDING" + ops_status_ongoing = "OPS_STATUS_ONGOING" + ops_status_complete = "OPS_STATUS_COMPLETE" + + +class ZcOpsType(Enum): + ops_type_unspecified = "OPS_TYPE_UNSPECIFIED" + ops_type_read = "OPS_TYPE_READ" + ops_type_delete = "OPS_TYPE_DELETE" + ops_type_create = "OPS_TYPE_CREATE" + ops_type_update = "OPS_TYPE_UPDATE" + ops_type_list = "OPS_TYPE_LIST" + + +class ZedCloudOpsCmd(BaseModel): + counter: float | None = Field(default=None, description="counter") + ops_time: dict[str, Any] | None = Field( + default=None, alias="opsTime", description="Timestamp: Operational time" + ) + + +class ZsrvErrorCode(Enum): + z_msg_error_none = "zMsgErrorNone" + z_msg_sucess = "zMsgSucess" + not_found = "NotFound" + already_exists = "AlreadyExists" + version_mismatch = "VersionMismatch" + range_error = "RangeError" + large_result = "LargeResult" + incomplete_data = "IncompleteData" + invalid_data = "InvalidData" + function_unsupported = "FunctionUnsupported" + no_memory = "NoMemory" + send_failure = "SendFailure" + timeout = "Timeout" + bad_req_body = "BadReqBody" + bad_req_param = "BadReqParam" + invalid_field_format = "InvalidFieldFormat" + url_not_found = "UrlNotFound" + api_version_not_supported = "ApiVersionNotSupported" + unauthorized = "Unauthorized" + forbidden = "Forbidden" + conflict = "Conflict" + not_modified = "NotModified" + dependency_conflict = "DependencyConflict" + json_fmt_error = "JsonFmtError" + proto_fmt_error = "ProtoFmtError" + cert_error = "CertError" + data_base_connection = "DataBaseConnection" + db_error = "DBError" + z_msg_accepted = "zMsgAccepted" + z_msg_created = "zMsgCreated" + pre_condition_failed = "PreConditionFailed" + internal_server_error = "InternalServerError" + + +class AppACEMatch(BaseModel): + type: str = Field(..., description="Type") + value: str = Field(..., description="Value") + + +class AppMapParams(BaseModel): + port: float = Field(..., description="Application port") + + +class CommonNetworkConfigOrigin(Enum): + network_config_origin_unspecified = "NETWORK_CONFIG_ORIGIN_UNSPECIFIED" + network_config_origin_controller = "NETWORK_CONFIG_ORIGIN_CONTROLLER" + network_config_origin_bootstrap = "NETWORK_CONFIG_ORIGIN_BOOTSTRAP" + network_config_origin_override = "NETWORK_CONFIG_ORIGIN_OVERRIDE" + network_config_origin_lastresort = "NETWORK_CONFIG_ORIGIN_LASTRESORT" + network_config_origin_tui = "NETWORK_CONFIG_ORIGIN_TUI" + network_config_origin_loc = "NETWORK_CONFIG_ORIGIN_LOC" + network_config_origin_lps = "NETWORK_CONFIG_ORIGIN_LPS" + + +class CommonPortConfigSource(BaseModel): + origin: CommonNetworkConfigOrigin | None = "NETWORK_CONFIG_ORIGIN_UNSPECIFIED" + submitted_at: AwareDatetime | None = Field( + default=None, + alias="submittedAt", + description="Timestamp when this port’s configuration was originally submitted\nor created at its source.\n\nMeaning depends on the origin:\n- Controller, LOC, bootstrap: timestamp provided by the controller.\n- Local override.json: when the file was first loaded by EVE.\n- Last-resort: when EVE generated the fallback config.\n- LPS modifications: when the modified config was received.\n- TUI: when the user submitted the configuration.\n\nThis is different from DevicePortStatus.timePriority, which is used\nto compare and prioritize different sources of network configuration\n(and may be synthetic for some sources, e.g. year 2000 for override.json,\nepoch 0 for last-resort). By contrast, submitted_at represents when this\nport’s configuration first came into existence, regardless of when or whether\nthe device applied it.\n\nNote: this is a per-port timestamp. The underlying network config may\ncover multiple ports, but only the portion relevant to this port is\nreflected here.", + ) + + +class ConfigFormat(Enum): + fmt_unknown = "FmtUnknown" + raw = "RAW" + qcow = "QCOW" + qcow2 = "QCOW2" + vhd = "VHD" + vmdk = "VMDK" + ova = "OVA" + vhdx = "VHDX" + container = "CONTAINER" + iso = "ISO" + pvc = "PVC" + + +class Drive(BaseModel): + imagename: str = Field(..., description="Name of Image Object used for the drive.") + maxsize: float = Field(..., description="Drive maximum size") + readonly: bool = Field( + ..., + description="Read only flag. If set, drive is mounted as readonly by app instance.", + ) + preserve: bool = Field( + ..., + description="Preserve the drive even when all app instances using it are deleted", + ) + drvtype: str = Field( + ..., + description="Type of Drive. Valid Values: UNSPECIFIED, CDROM, HDD, NET, HDD_EMPTY. HDD_EMPTY - is to allocate the empty disk of maxsizebytes specified", + ) + target: str = Field( + ..., description="type of target. Valid values: Disk, Kernel, Initrd, RamDisk" + ) + volumelabel: str | None = Field( + default=None, description="User defined volume to use for this drive " + ) + mvolname: str | None = Field( + default=None, + description="mutable Volume for this drive. Only one of imvolname and mvolname must be specified.", + ) + imvolname: str | None = Field( + default=None, + description="immutable Volume for this drive. Only one of imvolname and mvolname must be specified.", + ) + ignorepurge: bool | None = Field( + default=None, + description="don't purge this drive as part of purge command for mutable volumes", + ) + cleartext: bool | None = Field( + default=None, description="If set, don't encrypt the drive. Store in cleartext" + ) + mountpath: str | None = Field( + default=None, description="Mount Path for the drive in the App Instance" + ) + runtime_internal: bool | None = Field( + default=None, + alias="runtimeInternal", + description="If set, the drive is internal to the runtime and not externally exposed with API", + ) + + +class HvMode(Enum): + hv_pv = "HV_PV" + hv_hvm = "HV_HVM" + hv_fml = "HV_FML" + hv_nohyper = "HV_NOHYPER" + hv_legacy = "HV_LEGACY" + + +class PhyAdapter(BaseModel): + type: IoType | None = "IO_TYPE_UNSPECIFIED" + name: str | None = Field(default=None, description="Physical Adapter name") + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + + +class ProtobufAny(BaseModel): + type_url: str | None = Field(default=None, alias="typeUrl") + value: Base64Str | None = None + + +class ProtobufNullValue(Enum): + null_value = "NULL_VALUE" + + +class Vm(BaseModel): + cpus: float = Field(..., description="CPUs") + memory: float = Field(..., description="Memory") + mode: HvMode + vnc: bool = Field(..., description="VNC") + vnc_display: float | None = Field( + default=None, alias="vncDisplay", description="VNC display" + ) + cpu_pinning_enabled: bool | None = Field( + default=None, alias="cpuPinningEnabled", description="Enable CpuPinning" + ) + vmm_maxmem: int | None = Field( + default=None, + alias="vmmMaxmem", + description="Maximum amount of memory in kbytes allowed for VM monitor to occupy", + ) + bootloader_mode: VmBootloaderMode | None = Field( + default="VM_BOOTLOADER_MODE_UNSPECIFIED", alias="bootloaderMode" + ) + enable_oem_win_license_key: bool | None = Field( + default=None, + alias="enableOemWinLicenseKey", + description="Enable device which has VM to receive the Windows license embedded in the ACPI tables", + ) + disable_vtpm: bool | None = Field( + default=None, + alias="disableVTPM", + description="Disable vTPM for virtual machines (VM)", + ) + + +class AclAction(BaseModel): + drop: bool | None = Field( + default=None, description="Drop the packet", title="Not used by ZedUI" + ) + limit: bool | None = Field( + default=None, + description="UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + title="Limit action on ACL rule", + ) + limit_value: LimitParams | None = Field(default=None, alias="limitValue") + limitrate: int | None = Field( + default=None, + description="UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + title="Rate limit in ACL rule", + ) + limitunit: str | None = Field( + default=None, + description="UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + title="Rate limit unit in ACL rule", + ) + limitburst: int | None = Field( + default=None, + description="UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + title="Rate limit burst in ACL rule", + ) + portmap: bool | None = Field( + default=None, + description="UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + title="Enable device to app port mapping for incoming ACL rule, implicitly added by ZedUI code", + ) + portmapto: MapParams | None = None + + +class ActionScope(BaseModel): + type: ObjectType | None = "OBJECT_TYPE_UNSPECIFIED" + id: str | None = Field( + default=None, + description="Unique id of the type (e.g. projectId in case of project type)", + ) + + +class AppInstanceLogsQueryResponse(BaseModel): + list_: list[AppInstanceLogsQueryResponseItem] | None = Field( + default=None, alias="list", description="app instance logs query response" + ) + total_records: float | None = Field( + default=None, + alias="totalRecords", + description="app instance logs query response", + ) + next: Cursor | None = None + + +class AppInstanceSnapshotState(BaseModel): + state: SnapshotState | None = "INVALID" + timestamp: AwareDatetime | None = None + + +class AppProjectList(BaseModel): + project_details: list[ObjectDetail] | None = Field( + default=None, + alias="projectDetails", + description="List of projects which are associated with the given app", + ) + total_count: int | None = Field( + default=None, alias="totalCount", description="total number of records" + ) + next: Cursor | None = None + + +class AzureDevStatusDetail(BaseModel): + o_state: str | None = Field(default=None, alias="oState") + a_state: str | None = Field(default=None, alias="aState") + connection_state_updated_time: str | None = Field( + default=None, alias="connectionStateUpdatedTime" + ) + twin: TwinDetail | None = None + last_activity_time: str | None = Field(default=None, alias="lastActivityTime") + status_update_time: str | None = Field(default=None, alias="statusUpdateTime") + + +class AzureStatus(BaseModel): + azure_dev_status: AzureDevStatusDetail | None = Field( + default=None, alias="azureDevStatus" + ) + + +class BinaryArtifact(BaseModel): + format: OpaqueObjectCategory | None = "OpaqueObjectCategoryUnknown" + base64_artifact: InlineOpaqueBase64Data | None = Field( + default=None, alias="base64Artifact" + ) + binary_artifact: ExternalOpaqueBinaryBlob | None = Field( + default=None, alias="binaryArtifact" + ) + artifact_meta_data: str | None = Field( + default=None, + alias="artifactMetaData", + title="optional - any arbitrary metadata about/for artifact encoded to base64 string", + ) + id: ( + constr( + pattern=r"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + ) + | None + ) = Field( + default=None, + description="System defined universally unique Id of the artifact.", + title="artifact id", + ) + + +class DeviceEntity(BaseModel): + entity: Entity | None = "ENTITY_UNSPECIFIED" + entity_id: str | None = Field(default=None, alias="entityId") + entity_name: str | None = Field(default=None, alias="entityName") + + +class DeviceError(BaseModel): + description: str = Field(..., description="Description of the error") + severity: Severity + timestamp: dict[str, Any] = Field( + ..., description="Timestamp at which error had occurred" + ) + entities: list[DeviceEntity] = Field( + ..., description="objects referenced by the description or retry_condition" + ) + retry_condition: str | None = Field( + default=None, alias="retryCondition", description="condition for retry" + ) + + +class EIDRegister(BaseModel): + app_cert: Base64Str = Field(..., alias="AppCert", description="app certificate") + app_public_key: Base64Str = Field( + ..., alias="AppPublicKey", description="App public key" + ) + app_private_key: Base64Str = Field( + ..., alias="AppPrivateKey", description="App private key" + ) + uuid: str = Field(..., alias="UUID", description="UUID") + display_name: str = Field(..., alias="DisplayName", description="Display name") + lisp_instance: float = Field(..., alias="LispInstance", description="Lisp Instance") + eid: str = Field(..., alias="EID", description="EID") + eid_hash_len: float = Field(..., alias="EIDHashLen", description="EID hash length") + lisp_signature: str = Field( + ..., alias="LispSignature", description="Lisp Signature" + ) + lisp_map_servers: list[LispServer] = Field( + ..., + alias="LispMapServers", + description="Lisp Map Server", + title="time CreateTime time.Time", + ) + + +class EventQueryResponseItem(BaseModel): + user: str | None = Field(default=None, description="User name") + project: str | None = Field(default=None, description="project name") + device: str | None = Field(default=None, description="device name") + instance: str | None = Field(default=None, description="instance name") + severity: str | None = Field( + default=None, description="severity: FIXME: should be ENUM" + ) + description: str | None = Field(default=None, description="Event description") + timestamp: dict[str, Any] | None = Field( + default=None, description="event timestamp" + ) + source: EventSource | None = "EVENT_SOURCE_UNSPECIFIED" + resource: str | None = Field(default=None, description="Event resources") + event_type: str | None = Field( + default=None, alias="eventType", description="Event type" + ) + tags: list[str] | None = Field(default=None, description="Event tags") + resource_name: str | None = Field( + default=None, alias="resourceName", description="Event resources" + ) + json_data: dict[str, Any] | None = Field( + default=None, alias="jsonData", description="Event resources" + ) + cluster_instance: str | None = Field( + default=None, alias="clusterInstance", description="clusterInstance name" + ) + + +class LTEAdapter(BaseModel): + sim_name: str | None = Field( + default=None, alias="simName", description="Name of SIM card." + ) + cell_module_name: str | None = Field( + default=None, alias="cellModuleName", description="Name of Cell Module" + ) + imsi: str | None = Field(default=None, description="imsi of the SIM") + iccid: str | None = Field(default=None, description="iccid of the SIM") + simcard_state: SimcardState | None = Field( + default="SIMCARD_STATE_INVALID", alias="simcardState" + ) + imei: str | None = Field(default=None, description="IMEI of Cell Radio.") + firmware_version: str | None = Field( + default=None, + alias="firmwareVersion", + description="Firmware Version of Cell Radio.", + ) + + +class MetricQueryResponse(BaseModel): + threshold: MetricThreshold | None = None + metric_type: str | None = Field(default=None, alias="metricType") + x_label: str | None = Field(default=None, alias="xLabel") + y_labels: list[str] | None = Field(default=None, alias="yLabels") + list_: list[MetricQueryResponseItem] | None = Field(default=None, alias="list") + + +class ModemDetail(BaseModel): + manufacturer: str | None = Field(default=None, description="Modem manufacturer") + model: str | None = Field(default=None, description="Modem model") + firmware_version: str | None = Field( + default=None, alias="firmwareVersion", description="Modem firmware version" + ) + imei: str | None = Field(default=None, description="Modem IMEI") + operating_state: ZCellularOperatingState | None = Field( + default="Z_CELLULAR_OPERATING_STATE_UNSPECIFIED", alias="operatingState" + ) + control_protocol: ZCellularControlProtocol | None = Field( + default="Z_CELLULAR_CONTROL_PROTOCOL_UNSPECIFIED", alias="controlProtocol" + ) + + +class ModuleDetail(BaseModel): + twin_detail: str | None = Field( + default=None, + alias="twinDetail", + description="Base64 encoded module twin details, desired properties of the module will be updated to reflect these values", + ) + routes: dict[str, str] | None = Field( + default=None, + description="Send messages between modules or send messages from modules to iot hub", + ) + environment: dict[str, str] | None = Field( + default=None, + description="Extra information to module to make configuration easier", + ) + module_type: ModuleType | None = Field( + default="MODULE_TYPE_UNSPECIFIED", alias="moduleType" + ) + + +class ModuleSummary(BaseModel): + module_type: ModuleType | None = Field( + default="MODULE_TYPE_UNSPECIFIED", alias="moduleType" + ) + + +class NetProxyServer(BaseModel): + proto: NetworkProxyProto | None = "NETWORK_PROXY_PROTO_HTTP" + server: str | None = Field(default=None, description="Net Proxy Server") + port: float | None = Field(default=None, description="Net Proxy Port") + + +class NetProxyStatus(BaseModel): + network_proxy: bool | None = Field( + default=None, + alias="networkProxy", + description="Use pacfile (Auto discover or manual upload)", + title="Enable, the proxy configuration coming from network", + ) + proxies: list[NetProxyServer] | None = Field( + default=None, + description="protocol level proxies", + title="protocol level proxies", + ) + exceptions: str | None = Field(default=None, description="exceptions") + pacfile: str | None = Field( + default=None, + description="proxy configuration in a pacfile", + title="proxy configuration in a pacfile", + ) + network_proxy_url: str | None = Field( + default=None, + alias="networkProxyURL", + description="Network Proxy URL", + title="Direct URL for wpad.dat download", + ) + wpad_proxy_url: str | None = Field( + default=None, alias="wpadProxyURL", description="WPAD Proxy URL" + ) + + +class NetworkProvider(BaseModel): + plmn: str | None = Field(default=None, description="PLMN code") + name: str | None = Field(default=None, description="Human-friendly name") + rat: RadioAccessTechnology | None = "RADIO_ACCESS_TECHNOLOGY_UNSPECIFIED" + roaming: bool | None = Field(default=None, description="Is Roaming ON") + connected_at: AwareDatetime | None = Field( + default=None, + alias="connectedAt", + description="Time when was the connection established", + ) + + +class PNACPortStatus(BaseModel): + enabled: bool | None = Field( + default=None, + description="Whether 802.1X authentication is enabled on this port", + ) + supplicant_state: PNACSupplicantState | None = Field( + default="PNAC_SUPPLICANT_STATE_UNSPECIFIED", alias="supplicantState" + ) + last_auth_timestamp: AwareDatetime | None = Field( + default=None, + alias="lastAuthTimestamp", + description="Timestamp of the most recent successful 802.1X authentication.", + ) + err: DeviceError | None = None + + +class PatchEnvelope(BaseModel): + id: ( + constr( + pattern=r"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + ) + | None + ) = Field( + default=None, + description="System defined universally unique Id of the patch envelope.", + ) + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the patch envelope, unique across the enterprise. Once patch envelope is created, name can’t be changed.", + ) + title: constr( + pattern=r"[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined title of the patch envelope. Title can be changed at any time.", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the patch envelope." + ) + revision: ObjectRevision | None = None + user_defined_version: str | None = Field( + default=None, + alias="userDefinedVersion", + description="User defined version for the given patch envelope", + title="optional - arbitrary version string if any by user", + ) + action: PatchEnvelopeAction + artifacts: list[BinaryArtifact] = Field(..., description="Patch envelope artifacts") + project_id: str | None = Field( + default=None, alias="projectId", description="project id" + ) + device_count: float | None = Field( + default=None, + alias="deviceCount", + description="number of devices referencing this patch envelope", + ) + project_name: str | None = Field( + default=None, alias="projectName", description="project name" + ) + + +class PatchEnvelopeList(BaseModel): + next: Cursor | None = None + list_: list[PatchEnvelope] | None = Field( + default=None, alias="list", description="patch envelope summary list" + ) + summary_by_action: Summary | None = Field(default=None, alias="summaryByAction") + total_count: int | None = Field( + default=None, alias="totalCount", description="patch envelope total count" + ) + + +class SWInfo(BaseModel): + version: str | None = Field(default=None, description="software version") + hash: str | None = Field(default=None, description="software hash") + state: SWState | None = "SW_STATE_UNSPECIFIED" + disk: str | None = Field(default=None, description="software disk") + download_progress: float | None = Field( + default=None, alias="downloadProgress", description="download progress" + ) + image_name: str | None = Field( + default=None, alias="imageName", description="image name" + ) + + +class TopTalkersResponse(BaseModel): + list_: list[TopTalkersResponseItem] | None = Field(default=None, alias="list") + next: Cursor | None = None + + +class TransDetails(BaseModel): + cause: TransCause | None = "TRANS_CAUSE_UNSPECIFIED" + severity: str | None = Field( + default=None, + description="Urgency of the recommended action (ERROR - must take action immediately, WARN - must take action but not immediately, NOTICE - may take action", + ) + scope: ActionScope | None = None + + +class VCEStatus(BaseModel): + vce_status_detail: VCEStatusDetail | None = Field( + default=None, alias="vceStatusDetail" + ) + + +class VMManifestImage(BaseModel): + imagename: str | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Image_Name_Field, AppDetailsPage:DrivesPane:Image_Name_Field", + ) + imageid: str | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Image_ID_Field, AppDetailsPage:DrivesPane:Image_ID_Field", + ) + imageformat: ConfigFormat | None = "FmtUnknown" + maxsize: str | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Max_Size_Field, AppDetailsPage:DrivesPane:Max_Size_Field", + ) + preserve: bool | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Preserve_Field, AppDetailsPage:DrivesPane:Preserve_Field", + ) + target: str | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Target_Field, AppDetailsPage:DrivesPane:Target_Field", + title="enum: Disk, Kernel, Initrd, RamDisk", + ) + drvtype: str | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Drive_Type_Field, AppDetailsPage:DrivesPane:Drive_Type_Field", + title="enum: CDROM, HDD, NET", + ) + params: list[Param] | None = Field(default=None, title="Not used by ZedUI") + readonly: bool | None = Field(default=None, title="Not used by ZedUI") + volumelabel: str | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Volume_Label, AppDetailsPage:DrivesPane:Volume_Label", + ) + ignorepurge: bool | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Ignorepurge, AppDetailsPage:DrivesPane:Ignorepurgee_Field", + ) + cleartext: bool | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Cleartext, AppDetailsPage:DrivesPane:ClearText_Field", + ) + mountpath: str | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Mountpath, AppDetailsPage:DrivesPane:Mountpath_Field", + ) + imagestatus: str | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Image_Status_Field, AppDetailsPage:DrivesPane:Image_Status_Field", + title="enum: UNSPECIFIED, CREATED, PENDING, UPLOADING, READY, INUSE, ARCHIVED, MAX, FAILED, UPLINKING", + ) + datastore: list[ImageDatastore] | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:DataStore_Field, AppDetailsPage:DrivesPane:DataStore_Field", + ) + + +class VMManifestSummary(BaseModel): + ac_kind: str | None = Field( + default="VMManifest", + alias="acKind", + description="UI map: N/A - not exposed to users", + title="Edge Application type", + ) + ac_version: str | None = Field( + default="1.2.0", + alias="acVersion", + description="UI map: N/A - not exposed to users", + title="Manifest version", + ) + name: str | None = Field( + default=None, + description="UI map: AppEditPage:IdentityPane:Name_Field, AppDetailsPage:IdentityPane:Name_Field", + title="Unique id of app manifest, should match object name", + ) + display_name: str | None = Field( + default=None, + alias="displayName", + description="UI map: AppEditPage:IdentityPane:Title_Field, AppDetailsPage:IdentityPane:Title_Field", + title="Display name or title of app manifest", + ) + description: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="UI map: AppDetailsPage:IdentityPane:DescriptionField, AppMarketplacePage:AppCard:DescriptionField", + title="Description of the Edge application", + ) + desc: Details | None = None + module: ModuleSummary | None = None + app_type: AppType | None = Field(default="APP_TYPE_UNSPECIFIED", alias="appType") + deployment_type: DeploymentType | None = Field( + default="DEPLOYMENT_TYPE_UNSPECIFIED", alias="deploymentType" + ) + + +class VariableGroupCondition(BaseModel): + name: str | None = None + value: str | None = None + operator: VariableGroupConditionOperator | None = "CONDITION_OPERATOR_UNSPECIFIED" + + +class VariableGroupVariable(BaseModel): + type: str | None = None + name: str = Field(..., description="Name of the Variable (Required)") + label: str = Field(..., description="Label for the variable (Required)") + max_length: str | None = Field( + default=None, + alias="maxLength", + description="Max length of the value of the variable(Optional. Default: 1024)", + ) + required: bool = Field( + ..., + description="This variable MUST be specified when creating an App Instance. (Optional. Default: False)", + ) + default: str | None = Field( + default=None, + description="Default value of the variable. (Optional. Default: )", + ) + process_input: str | None = Field(default=None, alias="processInput") + value: str | None = Field( + default=None, + description="User-specified value of the variable.(Required if required is true. Optional otherwise)", + ) + format: VariableVariableFormat + encode: VariableFileEncoding | None = "FILE_ENCODING_UNSPECIFIED" + options: list[VariableOptionVal] | None = Field( + default=None, + description="Key-Value pair of options. Applicable if format is VARIABLE_FORMAT_DROPDOWN", + ) + + +class ZsrvError(BaseModel): + ec: ZsrvErrorCode | None = "zMsgErrorNone" + location: str | None = Field(default=None, title="Ignore: Internal field only") + details: str | None = Field( + default=None, title="Field captures string description of details" + ) + + +class ZsrvResponse(BaseModel): + operation_type: ZcOpsType | None = Field( + default="OPS_TYPE_UNSPECIFIED", alias="operationType" + ) + operation_status: ZcOpsStatus | None = Field( + default="OPS_STATUS_UNSPECIFIED", alias="operationStatus" + ) + object_kind: str | None = Field( + default=None, + alias="objectKind", + title="zedcloud object kind on which the operation was performed", + ) + object_id: str | None = Field( + default=None, + alias="objectId", + title="Unique value identifies the object that was operated on", + ) + object_name: str | None = Field( + default=None, alias="objectName", title="name of the object" + ) + object_revision: str | None = Field( + default=None, + alias="objectRevision", + title="object revision post the operation, note Read operation\ndoesn't change the revision", + ) + object_type: ObjectType | None = Field( + default="OBJECT_TYPE_UNSPECIFIED", alias="objectType" + ) + operation_time: str | None = Field( + default=None, alias="operationTime", title="time of operation" + ) + start_time: str | None = Field( + default=None, alias="startTime", title="total time taken by operations" + ) + end_time: str | None = Field(default=None, alias="endTime") + user: str | None = Field( + default=None, title="the operation is performed on behalf of this user" + ) + http_status_code: int | None = Field( + default=None, alias="httpStatusCode", title="http response" + ) + http_status_msg: str | None = Field( + default=None, alias="httpStatusMsg", title="summary of the error in text format" + ) + job_id: str | None = Field( + default=None, alias="jobId", title="for tracking asynchronous tasks" + ) + error: list[ZsrvError] | None = Field( + default=None, + title="one or more errors will be set if the operation failed\ni.e. httpStatusCode != 2xx", + ) + + +class AppACEAction(BaseModel): + drop: bool = Field(..., description="ACE drop flag") + limit: bool = Field(..., description="ACE limit flag") + limitrate: float = Field(..., description="ACE limit rate") + limitunit: str = Field(..., description="ACE limit unit") + limitburst: float = Field(..., description="ACE limit burst") + portmap: bool = Field(..., description="application port map flag") + mapparams: AppMapParams + + +class GooglerpcStatus(BaseModel): + code: int | None = None + message: str | None = None + details: list[ProtobufAny] | None = None + + +class Acl(BaseModel): + matches: list[Match] | None = Field( + default=None, + description="Network traffic matching criteria consistngs of one or more of source IP address, destination IP address, protocol, source port and destination port", + ) + actions: list[AclAction] | None = Field( + default=None, + description="Chain of actions to be taken on matching network traffic", + ) + name: str | None = Field( + default=None, description="Name of the Access Control List" + ) + + +class AppInstanceLogsResponse(BaseModel): + result: ZsrvResponse | None = None + content: AppInstanceLogsQueryResponse | None = None + + +class AppPublicAppSummary(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="System defined universally unique Id of the edge application", + ) + name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined name of the edge application, unique across the enterprise. Once object is created, name can’t be changed", + ) + title: ( + constr(pattern=r"^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined title of the edge application. Title can be changed at any time", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the edge application" + ) + manifest_json: VMManifestSummary | None = Field(default=None, alias="manifestJSON") + parent_detail: ObjectParentDetail | None = Field(default=None, alias="parentDetail") + origin_type: Origin = Field(..., alias="originType") + networks: int | None = Field( + default=None, description="user defined network options" + ) + drives: int | None = Field(default=None, description="user defined drives") + cpus: int | None = Field(default=None, description="user defined cpus for bundle") + memory: int | None = Field( + default=None, description="user defined memory for bundle" + ) + storage: int | None = Field( + default=None, description="user defined storage for bundle" + ) + user_defined_version: str | None = Field( + default=None, + alias="userDefinedVersion", + description="User defined version for the given edge-app", + ) + app_inst_count: int | None = Field( + default=None, alias="appInstCount", description="AppCommon.App instance count" + ) + is_imported: bool | None = Field( + default=None, + alias="isImported", + description="Flag to represent where app bundle is already imported", + ) + tags: dict[str, str] | None = Field( + default=None, description="User defined tags for the edge application" + ) + + +class AppPublicApps(BaseModel): + next: Cursor | None = None + summary_by_category: Summary | None = Field(default=None, alias="summaryByCategory") + summary_by_origin: Summary | None = Field(default=None, alias="summaryByOrigin") + summary_by_app_type: Summary | None = Field(default=None, alias="summaryByAppType") + summary_by_app_instance_distribution: Summary | None = Field( + default=None, alias="summaryByAppInstanceDistribution" + ) + list_: list[AppPublicAppSummary] | None = Field( + default=None, alias="list", description="edge application summary list" + ) + + +class AppStatusFromTPController(BaseModel): + app_name: str | None = Field(default=None, alias="appName") + app_id: str | None = Field(default=None, alias="appId") + eve_device_id: str | None = Field(default=None, alias="eveDeviceId") + enterprise_id: str | None = Field(default=None, alias="enterpriseId") + type: ControllerType | None = "CONTROLLER_TYPE_UNSPECIFIED" + azure_status: AzureStatus | None = Field(default=None, alias="azureStatus") + vce_status: VCEStatus | None = Field(default=None, alias="vceStatus") + + +class AppSummary(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="System defined universally unique Id of the edge application", + ) + name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined name of the edge application, unique across the enterprise. Once object is created, name can’t be changed", + ) + title: ( + constr(pattern=r"^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined title of the edge application. Title can be changed at any time", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the edge application" + ) + manifest_json: VMManifestSummary | None = Field(default=None, alias="manifestJSON") + parent_detail: ObjectParentDetail | None = Field(default=None, alias="parentDetail") + origin_type: Origin = Field(..., alias="originType") + networks: int | None = Field( + default=None, description="user defined network options" + ) + drives: int | None = Field(default=None, description="user defined drives") + cpus: int | None = Field(default=None, description="user defined cpus for bundle") + memory: int | None = Field( + default=None, description="user defined memory for bundle" + ) + storage: int | None = Field( + default=None, description="user defined storage for bundle" + ) + user_defined_version: str | None = Field( + default=None, + alias="userDefinedVersion", + description="User defined version for the given edge-app", + ) + app_inst_count: int | None = Field( + default=None, alias="appInstCount", description="App instance count" + ) + is_imported: bool | None = Field( + default=None, + alias="isImported", + description="Flag to represent where app bundle is already imported", + ) + tags: dict[str, str] | None = Field( + default=None, description="User defined tags for the edge application" + ) + + +class Apps(BaseModel): + next: Cursor | None = None + summary_by_category: Summary | None = Field(default=None, alias="summaryByCategory") + summary_by_origin: Summary | None = Field(default=None, alias="summaryByOrigin") + summary_by_app_type: Summary | None = Field(default=None, alias="summaryByAppType") + summary_by_app_instance_distribution: Summary | None = Field( + default=None, alias="summaryByAppInstanceDistribution" + ) + list_: list[AppSummary] | None = Field( + default=None, alias="list", description="edge application summary list" + ) + + +class CellularStatus(BaseModel): + providers: list[NetworkProvider] | None = Field( + default=None, description="List of network providers" + ) + modem: ModemDetail | None = None + sim_cards: list[SIMCard] | None = Field( + default=None, alias="simCards", description="List of SIM Cards" + ) + + +class ComposeContainerStatus(BaseModel): + container_name: str | None = Field( + default=None, alias="containerName", description="container name" + ) + container_image: str | None = Field( + default=None, alias="containerImage", description="container image" + ) + container_entry_point: str | None = Field( + default=None, alias="containerEntryPoint", description="container entry point" + ) + create_time_utc: str | None = Field( + default=None, alias="createTimeUTC", description="container creation time - UTC" + ) + port_maps: list[ContainerPortMap] | None = Field( + default=None, alias="portMaps", description="ports mapped to container" + ) + container_state: str | None = Field( + default=None, + alias="containerState", + description="running status of container (running, stopped, exited)", + ) + uptime: float | None = Field( + default=None, description="container up-time in seconds from start" + ) + err_info: DeviceError | None = Field(default=None, alias="errInfo") + + +class CustomConfigVariableGroup(BaseModel): + name: str | None = Field( + default=None, description="Name of the Variable Group(Required)" + ) + variables: list[VariableGroupVariable] | None = Field( + default=None, description="List of variables(Required)" + ) + required: bool | None = Field( + default=None, + description="Indicates if the variable group is required to be specified for the App Instance. (Optional. Default:False)", + ) + condition: VariableGroupCondition | None = None + + +class EventQueryResponse(BaseModel): + list_: list[EventQueryResponseItem] = Field( + ..., alias="list", description="Event Query response list" + ) + next: Cursor + summary: Summary | None = None + + +class Interface(BaseModel): + name: str | None = Field( + default=None, description="Interface name used by the edge application" + ) + type: str | None = Field( + default=None, + description='Physical Adapter type for this interface. Applicable only when "direct attach" flag is true.', + ) + optional: bool | None = Field( + default=None, + description="Indicates if the interface is optional for edge application.", + ) + directattach: bool | None = Field( + default=None, + description="If true, a physical adapter is assigned to the edge application directly. If false, a network instance is assigned to the edge application.", + ) + privateip: bool | None = Field( + default=None, + description="If true, DHCP network can't be assigned and user needs to provide a static IP address.", + ) + acls: list[Acl] | None = Field( + default=None, + description='Traffic access control rules for this interface. Applicable only when "direct attach" flag is false.', + ) + + +class IoBundleStatus(BaseModel): + type: IoType + name: str = Field(..., description="Io Bundle status name") + members: list[str] = Field( + ..., description="Member Array", title="members - Deprecated by memberList" + ) + app_name: str = Field(..., alias="appName", description="Application name") + lte_info: LTEAdapter | None = Field(default=None, alias="lteInfo") + err: DeviceError | None = None + member_list: list[IoMemberStatus] | None = Field( + default=None, alias="memberList", description="List of IO members" + ) + + +class ManifestInfo(BaseModel): + bundle_version: str | None = Field( + default=None, + alias="bundleVersion", + description="Current version of edge application being used", + ) + next_bundle_version: str | None = Field( + default=None, + alias="nextBundleVersion", + description="Next version of edge application available", + ) + transition_action: InstanceTransitionAction | None = Field( + default="INSTANCE_TA_UNSPECIFIED", alias="transitionAction" + ) + params: dict[str, str] | None = Field( + default=None, + description="Common and Custom parameters for deciding on transition actions", + ) + details: TransDetails | None = None + enablevnc: bool | None = Field(default=None, description="Enable vnc for the app") + + +class NetworkStatus(BaseModel): + up: bool | None = Field(default=None, description="Network Status flag") + mac_addr: str | None = Field( + default=None, alias="macAddr", description="mac Address" + ) + if_name: str | None = Field(default=None, alias="ifName", description="ifName") + ip_addrs: list[str] | None = Field( + default=None, alias="ipAddrs", description="Array of IP addresses" + ) + default_routers: list[str] | None = Field( + default=None, alias="defaultRouters", description="Default Routers" + ) + dns: DNSInfo | None = None + location: GeoLocation | None = None + uplink: bool | None = Field(default=None, description="Uplink flag") + proxy: NetProxyStatus | None = None + err_info: DeviceError | None = Field(default=None, alias="errInfo") + gps_location: GPSLocation | None = Field(default=None, alias="gpsLocation") + cellular: CellularStatus | None = None + mtu: int | None = Field(default=None, description="Network MTU") + pnac_status: PNACPortStatus | None = Field(default=None, alias="pnacStatus") + config_source: CommonPortConfigSource | None = Field( + default=None, alias="configSource" + ) + + +class AppACE(BaseModel): + matches: list[AppACEMatch] = Field(..., description="app ACE match") + actions: list[AppACEAction] = Field(..., description="app ACE actions") + id: float = Field(..., description="app ACE id") + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the app ACE, unique across the enterprise. Once object is created, name can’t be changed", + ) + + +class AppInstConfigStatus(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="System defined universally unique Id of the app instance", + ) + name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined name of the app instance, unique across the enterprise. Once app instance is created, name can’t be changed", + ) + device_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="deviceId", + description="System generated identifier for the device", + ) + device_name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="deviceName", + description="User defined name of the device, unique across the enterprise. Once device is created, name can’t be changed", + ) + app_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="appId", + description="System generated identifier for the app bundle", + ) + app_name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="appName", + description="User defined name of the edge app, unique across the enterprise. Once edge app is created, name can’t be changed", + ) + project_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="projectId", + description="System generated identifier for the project", + ) + project_name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="projectName", + description="User defined name of the project, unique across the enterprise. Once project is created, name can’t be changed", + ) + run_state: RunState | None = Field( + default="RUN_STATE_UNSPECIFIED", alias="runState" + ) + storage: StorageSummary | None = Field(default=None, alias="Storage") + cpu_utilization: float | None = Field( + default=None, alias="cpuUtilization", description="cpu utilization" + ) + memory_utilization: float | None = Field( + default=None, alias="memoryUtilization", description="memory utilization" + ) + storage_utilization: float | None = Field( + default=None, alias="storageUtilization", description="storage utilization" + ) + app_type: AppType | None = Field(default="APP_TYPE_UNSPECIFIED", alias="appType") + user_defined_version: str | None = Field( + default=None, + alias="userDefinedVersion", + description="Instance version tells which edge app does this instance is running", + ) + sw_state: SWState | None = Field(default="SW_STATE_UNSPECIFIED", alias="swState") + sw_info: list[SWInfo] | None = Field( + default=None, alias="swInfo", description="Software details" + ) + manifest_info: ManifestInfo | None = Field(default=None, alias="manifestInfo") + patch_envelope_id: str | None = Field( + default=None, alias="patchEnvelopeId", description="Patch envelope Id" + ) + patch_envelope_name: str | None = Field( + default=None, alias="patchEnvelopeName", description="Patch envelope name" + ) + deployment_type: DeploymentType | None = Field( + default="DEPLOYMENT_TYPE_UNSPECIFIED", alias="deploymentType" + ) + net_status_list: list[NetworkStatus] | None = Field( + default=None, alias="netStatusList", description="network status list" + ) + vminfo: Vm | None = None + remote_console: bool | None = Field( + default=None, alias="remoteConsole", description="Remote console flag" + ) + + +class AppInterface(BaseModel): + netname: str | None = Field( + default=None, + description="network name: will be deprecated in future, use netinstname", + ) + io: PhyAdapter | None = None + intforder: float | None = Field(default=None, description="intforder") + intfname: str = Field(..., description="intf Name") + directattach: bool | None = Field( + default=None, + description="direct attach flag", + title="comes from manifest during app create", + ) + privateip: bool | None = Field(default=None, description="Private IP flag") + acls: list[AppACE] | None = Field(default=None, description="app Acls") + ipaddr: str | None = Field( + default=None, + description="IP address", + title="if netname points static DHCP then we need to take\nstatic /32 address here", + ) + macaddr: str | None = Field( + default=None, + description="MAC address", + title="in case of p2v we might want to provide a mac-address.\napplicable only in case of DHCP=passthrough", + ) + access_vlan_id: confloat(ge=2.0, le=4093.0) | None = Field( + default=None, + alias="accessVlanId", + description="access port VLAN ID, vlan id of zero will be treated as trunk port and vlan id 1 is implicitly used by linux bridges", + ) + eidregister: EIDRegister | None = None + netinstname: str | None = Field( + default=None, + description='Network Instance name to be matched for interface assignment. Applicable only when "direct attach" flag is false', + ) + netinsttag: dict[str, str] | None = Field( + default=None, + description='Network Instance tag to be matched for interface assignment. Applicable only when "direct attach" flag is false', + ) + netinstid: str | None = Field( + default=None, + description="Network Instance id to be matched for interface assignment.", + ) + default_net_instance: bool | None = Field( + default=None, alias="defaultNetInstance", description="default instance flag" + ) + allow_to_discover: bool | None = Field( + default=None, + alias="allowToDiscover", + description="flag tells if appInstance have permission to access the network mappings from the connected netInstance", + ) + + +class AppInstConfigStatusList(BaseModel): + list_: list[AppInstConfigStatus] | None = Field( + default=None, alias="list", description="app instance status summary" + ) + summary_by_state: Summary | None = Field(default=None, alias="summaryByState") + total_count: int | None = Field( + default=None, alias="totalCount", description="total number of records" + ) + summary_by_app_type: Summary | None = Field(default=None, alias="summaryByAppType") + summary_by_patch_envelope: Summary | None = Field( + default=None, alias="summaryByPatchEnvelope" + ) + next: Cursor | None = None + + +class AppInstStatusMsg(BaseModel): + id: str | None = Field(default=None, description="app instance id") + name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined name of the app instance, unique across the enterprise. Once app instance is created, name can’t be changed", + ) + device_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="deviceId", + description="User defined name of the device, unique across the enterprise. Once device is created, name can’t be changed", + ) + app_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="appId", + description="User defined name of the edge app, unique across the enterprise. Once edge app is created, name can’t be changed", + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + admin_state: AdminState | None = Field( + default="ADMIN_STATE_UNSPECIFIED", alias="adminState" + ) + err_info: list[DeviceError] | None = Field( + default=None, alias="errInfo", description="Device error details" + ) + boot_time: AwareDatetime | None = Field( + default=None, alias="bootTime", description="device boot time" + ) + last_update: AwareDatetime | None = Field( + default=None, alias="lastUpdate", description="device last update time" + ) + io_status_list: list[IoBundleStatus] | None = Field( + default=None, alias="IoStatusList", description="Io bundle status list" + ) + sw_info: list[SWInfo] | None = Field( + default=None, alias="swInfo", description="Software details" + ) + run_state: RunState | None = Field( + default="RUN_STATE_UNSPECIFIED", alias="runState" + ) + net_counter_list: list[NetworkCounters] | None = Field( + default=None, alias="netCounterList", description="network counter list" + ) + memory: MemorySummary | None = Field(default=None, alias="Memory") + storage: StorageSummary | None = Field(default=None, alias="Storage") + net_status_list: list[NetworkStatus] | None = Field( + default=None, alias="netStatusList", description="network status list" + ) + up_time: AwareDatetime | None = Field( + default=None, alias="upTime", description="device up time" + ) + sw_state: SWState | None = Field(default="SW_STATE_UNSPECIFIED", alias="swState") + cpu: CpuSummary | None = Field(default=None, alias="Cpu") + project_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="projectId", + description="User defined name of the project, unique across the enterprise. Once project is created, name can’t be changed", + ) + title: str | None = Field(default=None, description="app instance status title") + app_status_from_tp_controller: AppStatusFromTPController | None = Field( + default=None, alias="appStatusFromTPController" + ) + app_type: AppType | None = Field(default="APP_TYPE_UNSPECIFIED", alias="appType") + cluster_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="clusterId", + description="System defined universally unique clusterInstance ID, unique across the enterprise.", + ) + deployment_type: DeploymentType | None = Field( + default="DEPLOYMENT_TYPE_UNSPECIFIED", alias="deploymentType" + ) + memory_summary: AppInstMemorySummary | None = Field( + default=None, alias="memorySummary" + ) + volume_refs: list[str] | None = Field( + default=None, alias="volumeRefs", description="list of volume ids attached" + ) + zpool_metrics: StorageDeviceMetrics | None = Field( + default=None, alias="zpoolMetrics" + ) + patch_envelope_usage_info: list[PatchEnvelopeUsageInfo] | None = Field( + default=None, + alias="patchEnvelopeUsageInfo", + description="patch envelope usage info", + ) + container_status_list: list[ComposeContainerStatus] | None = Field( + default=None, + alias="containerStatusList", + description="docker-compose container status", + ) + runtime_platform_versions: RuntimePlatformVersions | None = Field( + default=None, alias="runtimePlatformVersions" + ) + app: AppInfo | None = None + device: DevInfo | None = None + + +class AppInstStatusSummaryMsg(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="System defined universally unique Id of the app instance", + ) + name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined name of the app instance, unique across the enterprise. Once app instance is created, name can’t be changed", + ) + device_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="deviceId", + description="User defined name of the device, unique across the enterprise. Once device is created, name can’t be changed", + ) + app_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="appId", + description="User defined name of the edge app, unique across the enterprise. Once edge app is created, name can’t be changed", + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + admin_state: AdminState | None = Field( + default="ADMIN_STATE_UNSPECIFIED", alias="adminState" + ) + cluster_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="clusterID", + description="System defined universally unique clusterInstance ID, unique across the enterprise.", + ) + run_state: RunState | None = Field( + default="RUN_STATE_UNSPECIFIED", alias="runState" + ) + memory: MemorySummary | None = Field(default=None, alias="Memory") + storage: StorageSummary | None = Field(default=None, alias="Storage") + sw_state: SWState | None = Field(default="SW_STATE_UNSPECIFIED", alias="swState") + cpu: CpuSummary | None = Field(default=None, alias="Cpu") + project_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="projectId", + description="User defined name of the project, unique across the enterprise. Once project is created, name can’t be changed", + ) + title: ( + constr(pattern=r"^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined title of the app instance. Title can be changed at any time", + ) + app_type: AppType | None = Field(default="APP_TYPE_UNSPECIFIED", alias="appType") + deployment_type: DeploymentType | None = Field( + default="DEPLOYMENT_TYPE_UNSPECIFIED", alias="deploymentType" + ) + memory_summary: AppInstMemorySummary | None = Field( + default=None, alias="memorySummary" + ) + sw_info: list[SWInfo] | None = Field( + default=None, alias="swInfo", description="Software details" + ) + app_name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="appName", + description="User defined name of the edge app, unique across the enterprise. Once edge app is created, name can’t be changed", + ) + project_name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="projectName", + description="User defined name of the project, unique across the enterprise. Once project is created, name can’t be changed", + ) + device_name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="deviceName", + description="User defined name of the device, unique across the enterprise. Once device is created, name can’t be changed", + ) + net_status_list: list[NetworkStatus] | None = Field( + default=None, alias="netStatusList", description="network status list" + ) + + +class CustomConfig(BaseModel): + name: str | None = Field( + default=None, description="Name of CustomConfig (Required)" + ) + add: bool | None = Field( + default=None, + description="Add the Custom Config to App Instance (Optional. Default: False)", + ) + override: bool | None = Field( + default=None, + description="Override existing custom config from App Bundle Manifest (Optional. Default: False)", + ) + allow_storage_resize: bool | None = Field( + default=None, + alias="allowStorageResize", + description="Allow Appinstance storage to be resized after app instance is created. (Optional. Default: False)", + ) + field_delimiter: str | None = Field( + default=None, + alias="fieldDelimiter", + description="Field delimiter used in specifying variables in template. (Required)", + ) + template: str | None = Field( + default=None, description="base64 encrypted template string. (Optional)" + ) + variable_groups: list[CustomConfigVariableGroup] | None = Field( + default=None, + alias="variableGroups", + description="List of Variable groups. (Required)", + ) + + +class UserDataTemplate(BaseModel): + custom_config: CustomConfig | None = Field(default=None, alias="customConfig") + + +class VMManifest(BaseModel): + ac_kind: str | None = Field( + default="VMManifest", + alias="acKind", + description="UI map: N/A - not exposed to users", + title="Edge Application type", + ) + ac_version: str | None = Field( + default="1.2.0", + alias="acVersion", + description="UI map: N/A - not exposed to users", + title="Manifest version", + ) + name: str | None = Field( + default=None, + description="UI map: AppEditPage:IdentityPane:Name_Field, AppDetailsPage:IdentityPane:Name_Field", + title="Unique id of app manifest, should match object name", + ) + display_name: str | None = Field( + default=None, + alias="displayName", + description="UI map: AppEditPage:IdentityPane:Title_Field, AppDetailsPage:IdentityPane:Title_Field", + title="Display name or title of app manifest", + ) + description: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="UI map: AppDetailsPage:IdentityPane:DescriptionField, AppMarketplacePage:AppCard:DescriptionField", + title="Description of the Edge application", + ) + owner: Author | None = None + desc: Details | None = None + images: list[VMManifestImage] | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane, AppDetailsPage:DrivesPane", + title="Images used by the app", + ) + interfaces: list[Interface] | None = Field( + default=None, + description="UI map: AppEditPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + title="I/O adapter settings", + ) + permissions: list[Permission] | None = None + vmmode: str | None = Field( + default="HV_HVM", + description="UI map: AppEditPage:IdentityPane:VM_Mode_Field, AppDetailsPage:IdentityPane:VM_Mode_Field", + title="VM mode for VM-based app", + ) + enablevnc: bool | None = Field( + default=None, + description="UI map: AppEditPage:IdentityPane:VNC_Field, AppDetailsPage:IdentityPane:VNC_Field", + title="Enable VNC for the app", + ) + resources: list[Resource] | None = Field( + default=None, + description="UI map: AppEditPage:ResourcesPane, AppDetailsPage:ResourcesPane", + title="Hardware resource requirement (CPU, Memory, Storage) for the app", + ) + configuration: UserDataTemplate | None = None + container_detail: ContainerDetail | None = Field( + default=None, alias="containerDetail" + ) + module: ModuleDetail | None = None + app_type: AppType | None = Field(default="APP_TYPE_UNSPECIFIED", alias="appType") + deployment_type: DeploymentType | None = Field( + default="DEPLOYMENT_TYPE_UNSPECIFIED", alias="deploymentType" + ) + cpu_pinning_enabled: bool | None = Field( + default=None, alias="cpuPinningEnabled", description="Enable CpuPinning" + ) + runtime_version: DockerRuntimeVersion | None = Field( + default="RuntimeVersion_Unknown", alias="runtimeVersion" + ) + runtime_protocol_version: DockerRuntimeProtocolVersion | None = Field( + default="RuntimeProtocolVersion_Unknown", alias="runtimeProtocolVersion" + ) + persistent_runtime_size_bytes: str | None = Field( + default=None, + alias="PersistentRuntimeSizeBytes", + description="Size of persistent blank storage for runtime in bytes", + ) + docker_compose_yaml_text: str | None = Field( + default=None, + alias="dockerComposeYamlText", + description="Docker compose base64 encoded plain text", + ) + docker_compose_tar_image_name: str | None = Field( + default=None, + alias="dockerComposeTarImageName", + description="Docker compose tar image name", + ) + enable_oem_win_license_key: bool | None = Field( + default=None, + alias="enableOemWinLicenseKey", + description="UI map: AppEditPage:IdentityPane:ENABLEVMCONFIG_Field, AppDetailsPage:IdentityPane:ENABLEVMCONFIG_Field", + title="Enable device to read the license info from APCI tables", + ) + disable_vtpm: bool | None = Field( + default=None, + alias="disableVTPM", + description="UI map: AppEditPage:IdentityPane:DISABLEVTPM_Field, AppDetailsPage:IdentityPane:DISABLEVTPM_Field", + title="Disable vTPM for a virtual machine (VM)", + ) + + +class App(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="System defined universally unique Id of the edge application", + ) + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the edge application, unique across the enterprise. Once object is created, name can’t be changed", + ) + title: constr( + pattern=r"^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined title of the edge application. Title can be changed at any time", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the edge application" + ) + revision: ObjectRevision | None = None + networks: int | None = Field( + default=None, description="user defined network options" + ) + drives: int | None = Field(default=None, description="user defined drives") + cpus: int | None = Field(default=None, description="user defined cpus for bundle") + memory: int | None = Field( + default=None, description="user defined memory for bundle" + ) + manifest_json: VMManifest | None = Field(default=None, alias="manifestJSON") + parent_detail: ObjectParentDetail | None = Field(default=None, alias="parentDetail") + origin_type: Origin = Field(..., alias="originType") + storage: int | None = Field( + default=None, description="user defined storage for bundle" + ) + user_defined_version: str | None = Field( + default=None, + alias="userDefinedVersion", + description="User defined version for the given edge-app", + ) + project_access_list: list[str] | None = Field( + default=None, + alias="projectAccessList", + description="project access list of the app bundle", + ) + is_imported: bool | None = Field( + default=None, + alias="isImported", + description="Flag to represent where app bundle is already imported", + ) + app_inst_count: int | None = Field( + default=None, alias="appInstCount", description="App instance count" + ) + datastore_id_list: list[str] | None = Field( + default=None, + alias="datastoreIdList", + description="List of datastore ids containing private registry credential", + ) + tags: dict[str, str] | None = Field( + default=None, description="User defined tags for the edge application" + ) + + +class AppInstStatusListMsg(BaseModel): + list_: list[AppInstStatusSummaryMsg] | None = Field( + default=None, alias="list", description="app instance status summary" + ) + summary_by_state: Summary | None = Field(default=None, alias="summaryByState") + summary_by_app_type: Summary | None = Field(default=None, alias="summaryByAppType") + summary_by_patch_envelope: Summary | None = Field( + default=None, alias="summaryByPatchEnvelope" + ) + next: Cursor | None = None + + +class AppHttpRequest(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") = Field( + ..., description="System defined universally unique Id of the edge application" + ) + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the edge application, unique across the enterprise. Once object is created, name can’t be changed", + ) + title: constr( + pattern=r"^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined title of the edge application. Title can be changed at any time", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the edge application" + ) + revision: ObjectRevision | None = None + networks: int | None = Field( + default=None, description="user defined network options" + ) + drives: int | None = Field(default=None, description="user defined drives") + cpus: int | None = Field(default=None, description="user defined cpus for bundle") + memory: int | None = Field( + default=None, description="user defined memory for bundle" + ) + manifest_json: VMManifest | None = Field(default=None, alias="manifestJSON") + parent_detail: ObjectParentDetail | None = Field(default=None, alias="parentDetail") + origin_type: Origin = Field(..., alias="originType") + storage: int | None = Field( + default=None, description="user defined storage for bundle" + ) + user_defined_version: str | None = Field( + default=None, + alias="userDefinedVersion", + description="User defined version for the given edge-app", + ) + project_access_list: list[str] | None = Field( + default=None, + alias="projectAccessList", + description="project access list of the app bundle", + ) + is_imported: bool | None = Field( + default=None, + alias="isImported", + description="Flag to represent where app bundle is already imported", + ) + app_inst_count: int | None = Field( + default=None, alias="appInstCount", description="App instance count" + ) + datastore_id_list: list[str] | None = Field( + default=None, + alias="datastoreIdList", + description="List of datastore ids containing private registry credential", + ) + tags: dict[str, str] | None = Field( + default=None, description="User defined tags for the edge application" + ) + + +class AppInstSnapshotsList(BaseModel): + snapshots: list[AppInstanceSnapshot] | None = None + + +class AppInstance(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="System defined universally unique Id of the app instance", + ) + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the app instance, unique across the enterprise. Once app instance is created, name can’t be changed", + ) + title: constr( + pattern=r"^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined title of the app instance. Title can be changed at any time", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the app instance" + ) + revision: ObjectRevision | None = None + project_id: str = Field( + ..., + alias="projectId", + description="project name which the given app instance belong to", + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + cluster_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="clusterID", + description="System defined universally unique clusterInstance ID, unique across the enterprise.", + ) + app_id: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + alias="appId", + description="User defined name of the edge app, unique across the enterprise. Once app name is created, name can’t be changed", + ) + device_id: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + alias="deviceId", + description="User defined name of the device name, unique across the enterprise. Once device name is defined, name can’t be changed", + ) + activate: bool = Field(..., description="app instance activation flag") + vminfo: Vm | None = None + drives: list[Drive] | None = Field(default=None, description="drive details") + interfaces: list[AppInterface] | None = Field( + default=None, description="application interfaces" + ) + user_data: str | None = Field( + default=None, + alias="userData", + description="Deprecated: Application initiazation script in cloud-config format to be used by cloud-init", + ) + custom_config: CustomConfig | None = Field(default=None, alias="customConfig") + collect_stats_ip_addr: str | None = Field( + default=None, + alias="collectStatsIPAddr", + description="holds the static Ip of the app instance", + ) + bundleversion: str | None = Field( + default=None, description="version of bundle app is referring to" + ) + logs: AppInstanceLogs | None = None + restart: ZedCloudOpsCmd | None = None + refresh: ZedCloudOpsCmd | None = None + purge: ZedCloudOpsCmd | None = None + remote_console: bool | None = Field( + default=None, alias="remoteConsole", description="Remote console flag" + ) + encrypted_secrets: dict[str, str] | None = Field( + default=None, alias="encryptedSecrets", description="user encrypted secrets map" + ) + crypto_key: str | None = Field( + default=None, + alias="cryptoKey", + description="Crypto Key for decrypting user secret information", + ) + manifest_info: ManifestInfo | None = Field(default=None, alias="manifestInfo") + app_type: AppType | None = Field(default="APP_TYPE_UNSPECIFIED", alias="appType") + is_secret_updated: bool | None = Field( + default=None, + alias="isSecretUpdated", + description="This field tells whether user secrets has updated or not, especially the cusotom config", + ) + app_policy_id: str | None = Field( + default=None, alias="appPolicyId", description="app policy id" + ) + deployment_type: DeploymentType | None = Field( + default="DEPLOYMENT_TYPE_UNSPECIFIED", alias="deploymentType" + ) + user_defined_version: str | None = Field( + default=None, + alias="userDefinedVersion", + description="Instance version tells which edge app does this instance is running", + ) + start_delay_in_seconds: int | None = Field( + default=None, + alias="startDelayInSeconds", + description="start delay is the time in seconds EVE should wait after boot before starting the application instance", + ) + cloud_init_version: int | None = Field( + default=None, + alias="cloudInitVersion", + description="Cloud-init version that indicates whether it necessary or not for cloud-init tool to restart in a guest", + ) + allow_snapshots: bool | None = Field( + default=None, + alias="allowSnapshots", + description="Flag to determine if a snapshot creation is allowed", + ) + max_snapshots: int | None = Field( + default=None, + alias="maxSnapshots", + description="Maximum number of snapshots allowed to be created", + ) + available_snapshots: list[AppInstanceSnapshot] | None = Field( + default=None, + alias="availableSnapshots", + description="The list of available snapshots of the application instance", + ) + patch_envelope_id: str | None = Field( + default=None, alias="patchEnvelopeId", description="patch envelope id" + ) + patch_envelope_name: str | None = Field( + default=None, alias="patchEnvelopeName", description="patch envelope name" + ) + edge_node_cluster: AppInstEdgeNodeCluster | None = Field( + default=None, alias="edgeNodeCluster" + ) + docker_compose_yaml_text: str | None = Field( + default=None, + alias="dockerComposeYamlText", + description="Docker compose base64 encoded plain text", + title="internal field", + ) + docker_compose_tar_image_name: str | None = Field( + default=None, + alias="dockerComposeTarImageName", + description="Docker compose tar image name", + title="internal field", + ) + datastore_id_list: list[str] | None = Field( + default=None, + alias="datastoreIdList", + description="List of datastore ids containing private registry credentials", + title="internal field", + ) + persistent_runtime_size_bytes: str | None = Field( + default=None, + alias="PersistentRuntimeSizeBytes", + description="Persistent runtime size in bytes", + ) + + +class AppInstanceSnapshot(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="System defined universally unique Id of the app instance snapshot", + ) + name: str = Field( + ..., description="Snapshot name. Unique across the application instance" + ) + state: SnapshotState | None = "INVALID" + config: AppInstance | None = None + activate: bool | None = Field( + default=None, description="Indicates whether the snapshot should be activated" + ) + immediate: bool | None = Field( + default=None, + description="Indicates that the snapshot should be taken immediately", + ) + + +class AppInstanceUpdateHttpRequest(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="System defined universally unique Id of the app instance", + ) + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the app instance, unique across the enterprise. Once app instance is created, name can’t be changed", + ) + title: constr( + pattern=r"^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined title of the app instance. Title can be changed at any time", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the app instance" + ) + revision: ObjectRevision | None = None + project_id: str = Field( + ..., + alias="projectId", + description="project name which the given app instance belong to", + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + cluster_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="clusterID", + description="System defined universally unique clusterInstance ID, unique across the enterprise.", + ) + app_id: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + alias="appId", + description="User defined name of the edge app, unique across the enterprise. Once app name is created, name can’t be changed", + ) + device_id: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + alias="deviceId", + description="User defined name of the device name, unique across the enterprise. Once device name is defined, name can’t be changed", + ) + activate: bool = Field(..., description="app instance activation flag") + vminfo: Vm | None = None + drives: list[Drive] | None = Field(default=None, description="drive details") + interfaces: list[AppInterface] | None = Field( + default=None, description="application interfaces" + ) + user_data: str | None = Field( + default=None, + alias="userData", + description="Deprecated: Application initiazation script in cloud-config format to be used by cloud-init", + ) + custom_config: CustomConfig | None = Field(default=None, alias="customConfig") + collect_stats_ip_addr: str | None = Field( + default=None, + alias="collectStatsIPAddr", + description="holds the static Ip of the app instance", + ) + bundleversion: str | None = Field( + default=None, description="version of bundle app is referring to" + ) + logs: AppInstanceLogs | None = None + restart: ZedCloudOpsCmd | None = None + refresh: ZedCloudOpsCmd | None = None + purge: ZedCloudOpsCmd | None = None + remote_console: bool | None = Field( + default=None, alias="remoteConsole", description="Remote console flag" + ) + encrypted_secrets: dict[str, str] | None = Field( + default=None, alias="encryptedSecrets", description="user encrypted secrets map" + ) + crypto_key: str | None = Field( + default=None, + alias="cryptoKey", + description="Crypto Key for decrypting user secret information", + ) + manifest_info: ManifestInfo | None = Field(default=None, alias="manifestInfo") + app_type: AppType | None = Field(default="APP_TYPE_UNSPECIFIED", alias="appType") + is_secret_updated: bool | None = Field( + default=None, + alias="isSecretUpdated", + description="This field tells whether user secrets has updated or not, especially the cusotom config", + ) + app_policy_id: str | None = Field( + default=None, alias="appPolicyId", description="app policy id" + ) + deployment_type: DeploymentType | None = Field( + default="DEPLOYMENT_TYPE_UNSPECIFIED", alias="deploymentType" + ) + user_defined_version: str | None = Field( + default=None, + alias="userDefinedVersion", + description="Instance version tells which edge app does this instance is running", + ) + start_delay_in_seconds: int | None = Field( + default=None, + alias="startDelayInSeconds", + description="start delay is the time in seconds EVE should wait after boot before starting the application instance", + ) + cloud_init_version: int | None = Field( + default=None, + alias="cloudInitVersion", + description="Cloud-init version that indicates whether it necessary or not for cloud-init tool to restart in a guest", + ) + allow_snapshots: bool | None = Field( + default=None, + alias="allowSnapshots", + description="Flag to determine if a snapshot creation is allowed", + ) + max_snapshots: int | None = Field( + default=None, + alias="maxSnapshots", + description="Maximum number of snapshots allowed to be created", + ) + available_snapshots: list[AppInstanceSnapshot] | None = Field( + default=None, + alias="availableSnapshots", + description="The list of available snapshots of the application instance", + ) + patch_envelope_id: str | None = Field( + default=None, alias="patchEnvelopeId", description="patch envelope id" + ) + patch_envelope_name: str | None = Field( + default=None, alias="patchEnvelopeName", description="patch envelope name" + ) + edge_node_cluster: AppInstEdgeNodeCluster | None = Field( + default=None, alias="edgeNodeCluster" + ) + + +class AppInstances(BaseModel): + summary_by_state: Summary | None = Field(default=None, alias="summaryByState") + list_: list[AppInstance] | None = Field( + default=None, alias="list", description="app insatance list response" + ) + next: Cursor | None = None + + +AppInstSnapshotsList.model_rebuild() +AppInstance.model_rebuild() diff --git a/packages/zedcloud/src/zedcloud/_generated/models/diag.py b/packages/zedcloud/src/zedcloud/_generated/models/diag.py new file mode 100644 index 0000000..03eb6a0 --- /dev/null +++ b/packages/zedcloud/src/zedcloud/_generated/models/diag.py @@ -0,0 +1,2294 @@ +# Generated by scripts/generate_from_openapi.py from zedge_diag_service.swagger.json +# Do not edit by hand — re-run: uv run python scripts/generate_from_openapi.py + +from __future__ import annotations +from pydantic import AwareDatetime, Base64Str, BaseModel, Field, constr +from enum import Enum +from typing import Any + + +class BriefHealth(BaseModel): + service_health_status: str | None = Field(default=None, alias="serviceHealthStatus") + + +class CloudVersion(BaseModel): + comp: str | None = None + ver: str | None = None + + +class CmdArg(BaseModel): + key: str | None = Field(default=None, description="Command line argument: key") + value: str | None = Field(default=None, description="Command line argument: value") + + +class Cursor(BaseModel): + page_token: str | None = Field( + default=None, alias="pageToken", description="Page Token" + ) + order_by: list[str] | None = Field( + default=None, + alias="orderBy", + description="OrderBy helps in sorting the list response", + ) + page_num: float | None = Field( + default=None, alias="pageNum", description="Page Number" + ) + page_size: float | None = Field( + default=None, alias="pageSize", description="Defines the page size" + ) + total_pages: float | None = Field( + default=None, + alias="totalPages", + description="Total number of pages to be fetched.", + ) + + +class DebugKnobDetail(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, description="system generated unique id for a device" + ) + debug_knob: bool | None = Field( + default=None, alias="debugKnob", description="debug knob flag" + ) + expiry: str | None = Field(default=None, description="debug expiry time in minutes") + expired: bool | None = Field( + default=None, description="debug knob expiry status flag" + ) + + +class DeviceCmdsSubType(Enum): + device_no_op = "DeviceNoOp" + device_start = "DeviceStart" + device_stop = "DeviceStop" + device_reboot = "DeviceReboot" + device_shutdown = "DeviceShutdown" + device_update_os = "DeviceUpdateOS" + device_apply_os = "DeviceApplyOS" + device_reset = "DeviceReset" + device_add_os = "DeviceAddOS" + device_drop_os = "DeviceDropOS" + device_offboard = "DeviceOffboard" + device_activate = "DeviceActivate" + device_de_activate = "DeviceDeActivate" + device_baseos_retry = "DeviceBaseosRetry" + device_start_debug_mode = "DeviceStartDebugMode" + device_stop_debug_mode = "DeviceStopDebugMode" + prepare_power_off = "PreparePowerOff" + device_start_edgeview_mode = "DeviceStartEdgeviewMode" + device_stop_edgeview_mode = "DeviceStopEdgeviewMode" + device_edgeview_client_script = "DeviceEdgeviewClientScript" + + +class EventQueryRequestWithTypeHttpRequestObjectTypeHttpRequest(Enum): + unspecified = "UNSPECIFIED" + user = "USER" + edge_node = "EDGE_NODE" + edge_app = "EDGE_APP" + image = "IMAGE" + edge_app_instance = "EDGE_APP_INSTANCE" + project = "PROJECT" + network = "NETWORK" + datastore = "DATASTORE" + service = "SERVICE" + service_instance = "SERVICE_INSTANCE" + enterprise = "ENTERPRISE" + role = "ROLE" + credential = "CREDENTIAL" + network_instance = "NETWORK_INSTANCE" + volume_instance = "VOLUME_INSTANCE" + realm = "REALM" + authprofile = "AUTHPROFILE" + policy = "POLICY" + app_policy = "APP_POLICY" + cluster_instance = "CLUSTER_INSTANCE" + plugin = "PLUGIN" + doc_policy = "DOC_POLICY" + orchestrator_cluster = "ORCHESTRATOR_CLUSTER" + tags = "TAGS" + edge_node_interface = "EDGE_NODE_INTERFACE" + deployment = "DEPLOYMENT" + entitlements = "ENTITLEMENTS" + data_stream = "DATA_STREAM" + api_usage = "API_USAGE" + app_instance_snapshot = "APP_INSTANCE_SNAPSHOT" + + +class EventSource(Enum): + event_source_unspecified = "EVENT_SOURCE_UNSPECIFIED" + event_source_system = "EVENT_SOURCE_SYSTEM" + event_source_user = "EVENT_SOURCE_USER" + + +class EventTopUsersData(BaseModel): + user_name: str | None = Field(default=None, alias="userName") + event_count: int | None = Field(default=None, alias="eventCount") + + +class EventTopUsersResp(BaseModel): + top_users: list[EventTopUsersData] | None = Field(default=None, alias="topUsers") + + +class HealthDesc(BaseModel): + host_name: str | None = Field(default=None, alias="hostName") + env_name: str | None = Field(default=None, alias="envName") + service_name: str | None = Field(default=None, alias="serviceName") + service_instance: str | None = Field(default=None, alias="serviceInstance") + brief_health: BriefHealth | None = Field(default=None, alias="briefHealth") + + +class HealthServiceSubType(Enum): + publisher = "Publisher" + subscriber = "Subscriber" + + +class HelloName(BaseModel): + first_name: str | None = Field(default=None, alias="firstName") + last_name: str | None = Field(default=None, alias="lastName") + encrypted_secrets: dict[str, str] | None = Field( + default=None, alias="encryptedSecrets" + ) + crypto_key: str | None = Field(default=None, alias="cryptoKey") + + +class HelloResp(BaseModel): + response: str | None = None + + +class LastKnownStatus(BaseModel): + last_known_status_line: str | None = Field( + default=None, alias="lastKnownStatusLine" + ) + last_attempt_state: int | None = Field(default=None, alias="lastAttemptState") + last_attempted_at: AwareDatetime | None = Field( + default=None, alias="lastAttemptedAt" + ) + + +class LocalOperatorConsoleBlob(BaseModel): + dev_id: str | None = Field(default=None, alias="devId") + config: str | None = None + encrypted_config: str | None = Field(default=None, alias="encryptedConfig") + + +class LocalOperatorConsoleBlobList(BaseModel): + local_operator_console_blob_list: list[LocalOperatorConsoleBlob] | None = Field( + default=None, alias="localOperatorConsoleBlobList" + ) + controller_certs: str | None = Field(default=None, alias="controllerCerts") + + +class MetricQueryResponseItem(BaseModel): + timestamp: AwareDatetime | None = None + values: list[float] | None = None + + +class MetricThreshold(BaseModel): + yellow: float | None = None + red: float | None = None + + +class MetricType(Enum): + metric_type_unspecified = "METRIC_TYPE_UNSPECIFIED" + metric_type_cpu_total = "METRIC_TYPE_CPU_TOTAL" + metric_type_cpu_usage = "METRIC_TYPE_CPU_USAGE" + metric_type_memory_total = "METRIC_TYPE_MEMORY_TOTAL" + metric_type_memory_utilization = "METRIC_TYPE_MEMORY_UTILIZATION" + metric_type_network_total = "METRIC_TYPE_NETWORK_TOTAL" + metric_type_network_rates = "METRIC_TYPE_NETWORK_RATES" + metric_type_events_count = "METRIC_TYPE_EVENTS_COUNT" + metric_type_storage_utilization = "METRIC_TYPE_STORAGE_UTILIZATION" + metric_type_storage_io_zpool = "METRIC_TYPE_STORAGE_IO_ZPOOL" + metric_type_storage_io_zvol = "METRIC_TYPE_STORAGE_IO_ZVOL" + + +class ObjectRevision(BaseModel): + prev: str | None = Field(default=None, description="Previous") + curr: str = Field(..., description="Current Database version of the record") + created_at: dict[str, Any] = Field( + ..., + alias="createdAt", + description="The time, in milliseconds since the epoch, when the record was created.", + ) + created_by: str = Field(..., alias="createdBy", description="User data: Created By") + updated_at: dict[str, Any] = Field( + ..., + alias="updatedAt", + description="The time, in milliseconds since the epoch, when the record was last updated.", + ) + updated_by: str = Field(..., alias="updatedBy", description="User data: Updated By") + + +class ObjectType(Enum): + object_type_unspecified = "OBJECT_TYPE_UNSPECIFIED" + object_type_user = "OBJECT_TYPE_USER" + object_type_edge_node = "OBJECT_TYPE_EDGE_NODE" + object_type_edge_app = "OBJECT_TYPE_EDGE_APP" + object_type_image = "OBJECT_TYPE_IMAGE" + object_type_edge_app_instance = "OBJECT_TYPE_EDGE_APP_INSTANCE" + object_type_project = "OBJECT_TYPE_PROJECT" + object_type_network = "OBJECT_TYPE_NETWORK" + object_type_datastore = "OBJECT_TYPE_DATASTORE" + object_type_service = "OBJECT_TYPE_SERVICE" + object_type_service_instance = "OBJECT_TYPE_SERVICE_INSTANCE" + object_type_enterprise = "OBJECT_TYPE_ENTERPRISE" + object_type_role = "OBJECT_TYPE_ROLE" + object_type_credential = "OBJECT_TYPE_CREDENTIAL" + object_type_network_instance = "OBJECT_TYPE_NETWORK_INSTANCE" + object_type_volume_instance = "OBJECT_TYPE_VOLUME_INSTANCE" + object_type_realm = "OBJECT_TYPE_REALM" + object_type_authprofile = "OBJECT_TYPE_AUTHPROFILE" + object_type_policy = "OBJECT_TYPE_POLICY" + object_type_app_policy = "OBJECT_TYPE_APP_POLICY" + object_type_cluster_instance = "OBJECT_TYPE_CLUSTER_INSTANCE" + object_type_plugin = "OBJECT_TYPE_PLUGIN" + object_type_doc_policy = "OBJECT_TYPE_DOC_POLICY" + object_type_orchestrator_cluster = "OBJECT_TYPE_ORCHESTRATOR_CLUSTER" + object_type_tags = "OBJECT_TYPE_TAGS" + object_type_edge_node_interface = "OBJECT_TYPE_EDGE_NODE_INTERFACE" + object_type_deployment = "OBJECT_TYPE_DEPLOYMENT" + object_type_entitlements = "OBJECT_TYPE_ENTITLEMENTS" + object_type_data_stream = "OBJECT_TYPE_DATA_STREAM" + object_type_api_usage = "OBJECT_TYPE_API_USAGE" + object_type_app_instance_snapshot = "OBJECT_TYPE_APP_INSTANCE_SNAPSHOT" + object_type_patch_envelope = "OBJECT_TYPE_PATCH_ENVELOPE" + object_type_resource_usage_track = "OBJECT_TYPE_RESOURCE_USAGE_TRACK" + object_type_patch_envelope_reference = "OBJECT_TYPE_PATCH_ENVELOPE_REFERENCE" + object_type_dev_passthrough = "OBJECT_TYPE_DEV_PASSTHROUGH" + object_type_edge_node_cluster = "OBJECT_TYPE_EDGE_NODE_CLUSTER" + object_type_asset_group = "OBJECT_TYPE_ASSET_GROUP" + object_type_app_profile = "OBJECT_TYPE_APP_PROFILE" + object_type_profile_deployment = "OBJECT_TYPE_PROFILE_DEPLOYMENT" + object_type_zks_instance = "OBJECT_TYPE_ZKS_INSTANCE" + object_type_cluster_group = "OBJECT_TYPE_CLUSTER_GROUP" + + +class PingMsgSendResp(BaseModel): + ping_id: str | None = Field(default=None, alias="pingId") + + +class PolicyDocVersion(BaseModel): + policy: str | None = None + version: str | None = None + file_url: str | None = Field(default=None, alias="fileURL") + revision: ObjectRevision | None = None + + +class Summary(BaseModel): + description: str | None = Field(default=None, description="Summary description") + total: float | None = Field(default=None, description="Total") + values: dict[str, int] | None = Field( + default=None, description="Values: Map for storing " + ) + + +class WifiConfigcryptoblock(BaseModel): + identity: str | None = None + password: str | None = None + + +class ZcOpsStatus(Enum): + ops_status_unspecified = "OPS_STATUS_UNSPECIFIED" + ops_status_pending = "OPS_STATUS_PENDING" + ops_status_ongoing = "OPS_STATUS_ONGOING" + ops_status_complete = "OPS_STATUS_COMPLETE" + + +class ZcOpsType(Enum): + ops_type_unspecified = "OPS_TYPE_UNSPECIFIED" + ops_type_read = "OPS_TYPE_READ" + ops_type_delete = "OPS_TYPE_DELETE" + ops_type_create = "OPS_TYPE_CREATE" + ops_type_update = "OPS_TYPE_UPDATE" + ops_type_list = "OPS_TYPE_LIST" + + +class ZsrvErrorCode(Enum): + z_msg_error_none = "zMsgErrorNone" + z_msg_sucess = "zMsgSucess" + not_found = "NotFound" + already_exists = "AlreadyExists" + version_mismatch = "VersionMismatch" + range_error = "RangeError" + large_result = "LargeResult" + incomplete_data = "IncompleteData" + invalid_data = "InvalidData" + function_unsupported = "FunctionUnsupported" + no_memory = "NoMemory" + send_failure = "SendFailure" + timeout = "Timeout" + bad_req_body = "BadReqBody" + bad_req_param = "BadReqParam" + invalid_field_format = "InvalidFieldFormat" + url_not_found = "UrlNotFound" + api_version_not_supported = "ApiVersionNotSupported" + unauthorized = "Unauthorized" + forbidden = "Forbidden" + conflict = "Conflict" + not_modified = "NotModified" + dependency_conflict = "DependencyConflict" + json_fmt_error = "JsonFmtError" + proto_fmt_error = "ProtoFmtError" + cert_error = "CertError" + data_base_connection = "DataBaseConnection" + db_error = "DBError" + z_msg_accepted = "zMsgAccepted" + z_msg_created = "zMsgCreated" + pre_condition_failed = "PreConditionFailed" + internal_server_error = "InternalServerError" + + +class CommonBootOrder(Enum): + boot_order_unspecified = "BOOT_ORDER_UNSPECIFIED" + boot_order_usb = "BOOT_ORDER_USB" + boot_order_nousb = "BOOT_ORDER_NOUSB" + + +class CommonCellularIPType(Enum): + cellular_ip_type_unspecified = "CELLULAR_IP_TYPE_UNSPECIFIED" + cellular_ip_type_ipv4 = "CELLULAR_IP_TYPE_IPV4" + cellular_ip_type_ipv4_and_ipv6 = "CELLULAR_IP_TYPE_IPV4_AND_IPV6" + cellular_ip_type_ipv6 = "CELLULAR_IP_TYPE_IPV6" + + +class CommonCipherBlock(BaseModel): + cipher_context_id: str | None = Field( + default=None, alias="cipherContextId", title="cipher context id" + ) + initial_value: Base64Str | None = Field( + default=None, + alias="initialValue", + title="Initial Value for Symmetric Key derivation", + ) + cipher_data: Base64Str | None = Field( + default=None, alias="cipherData", title="encrypted sensitive data" + ) + clear_text_sha256: Base64Str | None = Field( + default=None, + alias="clearTextSha256", + title="sha256 of the plaintext sensitive data", + ) + + +class CommonConnectivityProbeMethod(Enum): + connectivity_probe_method_unspecified = "CONNECTIVITY_PROBE_METHOD_UNSPECIFIED" + connectivity_probe_method_icmp = "CONNECTIVITY_PROBE_METHOD_ICMP" + connectivity_probe_method_tcp = "CONNECTIVITY_PROBE_METHOD_TCP" + + +class CommonDHCPType(Enum): + dhcp_noop = "DHCPNoop" + static = "Static" + dhcp_none = "DHCPNone" + client = "Client" + + +class CommonDhcpOptionsIgnore(BaseModel): + ntp_server_exclusively: bool | None = Field( + default=None, + alias="ntpServerExclusively", + description="When true, statically configured NTP servers are used exclusively,\nignoring any NTP servers provided by DHCP.\nIf true and no static NTP servers are set, no NTP servers will be used.\nFor DHCP (IPv4), this applies to option 42.\nFor DHCPv6 (IPv6), this applies to option 56.", + ) + ip_addresses_exclusively: bool | None = Field( + default=None, + alias="ipAddressesExclusively", + description="When true, statically configured IP addresses are used exclusively,\nignoring any IP addresses provided by DHCP.\nIf true and no static IP addresses are set, the interface will have no IP assigned.", + ) + dns_config_exclusively: bool | None = Field( + default=None, + alias="dnsConfigExclusively", + description="When true, statically configured DNS servers and domain name(s) are used\nexclusively, ignoring any DNS-related configuration provided by DHCP.\nIf true and no static DNS servers are set, no DNS servers will be used.\nSimilarly, if no static domain name(s) are set, no domain name(s) will be used.\nFor DHCP (IPv4), this applies to option 6 (DNS servers), option 15\n(single domain name), and option 119 (search domains).\nFor DHCPv6 (IPv6), this applies to option 23 (DNS servers) and option 24\n(domain search list).", + ) + gateways_exclusively: bool | None = Field( + default=None, + alias="gatewaysExclusively", + description="When true, statically configured gateway addresses are used exclusively,\nignoring any routers provided by DHCP.\nIf true and no static routers are set, no gateway will be used.\nFor DHCP (IPv4), this applies to option 3.\nFor DHCPv6 (IPv6), this applies to option 24.", + ) + + +class CommonEncryptionScheme(Enum): + sa_none = "SA_NONE" + sa_aes_256_cfb = "SA_AES_256_CFB" + + +class CommonKeyExchangeScheme(Enum): + kea_none = "KEA_NONE" + kea_ecdh = "KEA_ECDH" + + +class CommonNetworkType(Enum): + networktypenoop = "NETWORKTYPENOOP" + v4 = "V4" + v6 = "V6" + crypto_v4 = "CryptoV4" + crypto_v6 = "CryptoV6" + crypto_eid = "CryptoEID" + v4_only = "V4Only" + v6_only = "V6Only" + dual_v4_v6 = "DualV4V6" + + +class CommonPhyIoMemberUsage(Enum): + phy_io_usage_none = "PhyIoUsageNone" + phy_io_usage_mgmt_and_apps = "PhyIoUsageMgmtAndApps" + phy_io_usage_shared = "PhyIoUsageShared" + phy_io_usage_dedicated = "PhyIoUsageDedicated" + phy_io_usage_disabled = "PhyIoUsageDisabled" + phy_io_usage_mgmt_only = "PhyIoUsageMgmtOnly" + + +class CommonPhyIoType(Enum): + phy_io_noop = "PhyIoNoop" + phy_io_net_eth = "PhyIoNetEth" + phy_io_usb = "PhyIoUSB" + phy_io_com = "PhyIoCOM" + phy_io_audio = "PhyIoAudio" + phy_io_net_wlan = "PhyIoNetWLAN" + phy_io_net_wwan = "PhyIoNetWWAN" + phy_io_hdmi = "PhyIoHDMI" + phy_io_nvme_storage = "PhyIoNVMEStorage" + phy_io_sata_storage = "PhyIoSATAStorage" + phy_io_net_eth_pf = "PhyIoNetEthPF" + phy_io_net_eth_vf = "PhyIoNetEthVF" + phy_io_usb_controller = "PhyIoUSBController" + phy_io_usb_device = "PhyIoUSBDevice" + phy_io_can = "PhyIoCAN" + phy_io_vcan = "PhyIoVCAN" + phy_io_lcan = "PhyIoLCAN" + phy_io_other = "PhyIoOther" + + +class CommonProbeEndpoint(BaseModel): + host: str | None = Field(default=None, description="IP address or FQDN.") + port: int | None = Field( + default=None, + description="TCP port required for CONNECTIVITY_PROBE_METHOD_TCP.\nLeave empty for CONNECTIVITY_PROBE_METHOD_ICMP.", + ) + + +class CommonWiFiKeyScheme(Enum): + scheme_noop = "SchemeNOOP" + wpapsk = "WPAPSK" + wpaeap = "WPAEAP" + + +class CommonZnetStaticDNSEntry(BaseModel): + host_name: str | None = Field(default=None, alias="HostName") + address: list[str] | None = Field(default=None, alias="Address") + + +class CommonipRange(BaseModel): + start: str | None = None + end: str | None = None + + +class Commonipspec(BaseModel): + dhcp: CommonDHCPType | None = "DHCPNoop" + subnet: str | None = Field(default=None, title="subnet is CIDR format...x.y.z.l/nn") + gateway: str | None = None + domain: str | None = None + ntp: str | None = Field( + default=None, + title="ntp and more_ntp are used as a union to specify several NTP servers\nvia IP address or FQDN\nthis is for historical reasons when we only allowed to specify one\nNTP server", + ) + more_ntp: list[str] | None = Field(default=None, alias="moreNtp") + dns: list[str] | None = None + dhcp_range: CommonipRange | None = Field(default=None, alias="dhcpRange") + dhcp_options_ignore: CommonDhcpOptionsIgnore | None = Field( + default=None, alias="dhcpOptionsIgnore" + ) + + +class CommonproxyProto(Enum): + proxy_http = "PROXY_HTTP" + proxy_https = "PROXY_HTTPS" + proxy_socks = "PROXY_SOCKS" + proxy_ftp = "PROXY_FTP" + proxy_other = "PROXY_OTHER" + + +class ConfigACEAction(BaseModel): + drop: bool | None = None + limit: bool | None = Field( + default=None, title="limit action, and its associated parameter" + ) + limitrate: int | None = None + limitunit: str | None = None + limitburst: int | None = None + portmap: bool | None = Field( + default=None, title="port map action, and its associated parameter" + ) + app_port: int | None = Field(default=None, alias="appPort") + + +class ConfigACEDirection(Enum): + both = "BOTH" + ingress = "INGRESS" + egress = "EGRESS" + + +class ConfigACEMatch(BaseModel): + type: str | None = Field( + default=None, + description='Supported ACE match types:\n * "ip": value should be an IP address of a remote endpoint. The match is satisfied\n for outbound and inbound flow if the destination and the source IP address\n matches the given value, respectively. Can be combined with any other match\n type to further narrow down the selection criteria.\n * "host": value should be a domain name of a remote endpoint. It can be either a fully\n qualified, or a partially qualified domain name (FQDN or PQDN). A packet is\n matched if it is destined to or originated from an IP address that was obtained\n by a DNS query for that exact domain or any of its subdomains. For example,\n match of type "host" with value "domain.com" will also apply to the endpoint\n "subdomain.domain.com". Can be combined with other match types except for "eidset".\n * "eidset": special match type for the overlay network. Matches IPs of all applications\n deployed in the same network as well as all IPs with statically configured\n DNS entries (under the config field NetworkInstanceConfig.Dns). For this type,\n value field is not used. Can be combined with other match types except for\n "host".\n * "protocol": value should specify the protocol to match. Protocol can be one of "tcp",\n "udp", "icmp", or "all", or it can be a numeric value, representing one\n of these protocols or a different one. A protocol name from /etc/protocols\n is also allowed. Protocol match can be combined with any other match type\n (often combined with port numbers).\n * "lport": value should be an application local port number. For filtering actions,\n this is the source port for outbound traffic and destination port for inbound\n traffic. For PORTMAP action, this represents application port as exposed\n to the external network (i.e., if :2222 is mapped to :22,\n lport refers to 2222). lport can be combined with any other match type.\n It is actually required to combine "lport" and "protocol" inside the same ACE.\n In other words, port without protocol is not valid.\n * "fport": value should be a remote endpoint port number (foreign port). Used for filtering\n actions, but not for PORTMAP (do not confuse with "lport", which is still used to\n represent the forwarded port - the forwarded port is still considered as local).\n "fport" can be combined with any other match type. It is actually required\n to combine "fport" with "protocol" inside the same ACE. In other words, port\n without protocol is not valid.\n * "adapter": value should be an adapter shared label (SystemAdapter.shared_labels).\n It can be used for an inbound ACE to apply the rule only to packets arriving\n via one of the matched network adapters. Typically used to activate a given\n port-forwarding rule (PORTMAP) for only a subset of network adapters.\n When not specified, the rule applies to every port attached to the network\n instance (i.e. equivalent to setting "adapter" to the pre-defined shared\n label "all").\n Adapter label cannot be used for outbound ACE. This is because the EVE firewall\n is applied before routing, and the output network adapter is not yet known.', + ) + value: str | None = None + + +class ConfigAddressType(Enum): + first = "First" + ipv4 = "IPV4" + ipv6 = "IPV6" + crypto_ipv4 = "CryptoIPV4" + crypto_ipv6 = "CryptoIPV6" + last = "Last" + + +class ConfigAffinityType(Enum): + affinity_type_preferred = "AFFINITY_TYPE_PREFERRED" + affinity_type_required = "AFFINITY_TYPE_REQUIRED" + + +class ConfigAppDebugAccessPolicy(BaseModel): + allow_app: bool | None = Field( + default=None, + alias="allowApp", + title="app side of edge-view access is allowed or not", + ) + + +class ConfigAppRuntimeType(Enum): + app_runtime_type_unspecified = "APP_RUNTIME_TYPE_UNSPECIFIED" + app_runtime_type_docker = "APP_RUNTIME_TYPE_DOCKER" + + +class ConfigConfigItem(BaseModel): + key: str | None = None + value: str | None = None + + +class ConfigDevDebugAccessPolicy(BaseModel): + allow_dev: bool | None = Field( + default=None, + alias="allowDev", + title="device side of edge-view access is allowed or not", + ) + + +class ConfigDeviceOpsCmd(BaseModel): + counter: int | None = None + desired_state: bool | None = Field(default=None, alias="desiredState") + ops_time: str | None = Field( + default=None, + alias="opsTime", + title="FIXME: change to timestamp, once we move to gogo proto", + ) + + +class ConfigDiskConfigType(Enum): + disk_config_type_unspecified = "DISK_CONFIG_TYPE_UNSPECIFIED" + disk_config_type_eveos = "DISK_CONFIG_TYPE_EVEOS" + disk_config_type_persist = "DISK_CONFIG_TYPE_PERSIST" + disk_config_type_zfs_online = "DISK_CONFIG_TYPE_ZFS_ONLINE" + disk_config_type_zfs_offline = "DISK_CONFIG_TYPE_ZFS_OFFLINE" + disk_config_type_appdirect = "DISK_CONFIG_TYPE_APPDIRECT" + disk_config_type_unused = "DISK_CONFIG_TYPE_UNUSED" + + +class ConfigDisksArrayType(Enum): + disks_array_type_unspecified = "DISKS_ARRAY_TYPE_UNSPECIFIED" + disks_array_type_raid0 = "DISKS_ARRAY_TYPE_RAID0" + disks_array_type_raid1 = "DISKS_ARRAY_TYPE_RAID1" + disks_array_type_raid5 = "DISKS_ARRAY_TYPE_RAID5" + disks_array_type_raid6 = "DISKS_ARRAY_TYPE_RAID6" + + +class ConfigDriveType(Enum): + unclassified = "Unclassified" + cdrom = "CDROM" + hdd = "HDD" + net = "NET" + hdd_empty = "HDD_EMPTY" + + +class ConfigDsType(Enum): + ds_unknown = "DsUnknown" + ds_http = "DsHttp" + ds_https = "DsHttps" + ds_s3 = "DsS3" + ds_sftp = "DsSFTP" + ds_container_registry = "DsContainerRegistry" + ds_azure_blob = "DsAzureBlob" + ds_google_storage = "DsGoogleStorage" + + +class ConfigEVEOPAQUEOBJECTCATEGORY(Enum): + unknown = "UNKNOWN" + base64 = "BASE64" + binaryblob = "BINARYBLOB" + secret = "SECRET" + + +class ConfigEVEPATCHENVELOPEACTION(Enum): + store = "STORE" + activate = "ACTIVATE" + + +class ConfigEncryptedExternalOpaqueBinaryBlob(BaseModel): + cipher_data: CommonCipherBlock | None = Field(default=None, alias="cipherData") + + +class ConfigEncryptedInlineOpaqueBase64Data(BaseModel): + cipher_data: CommonCipherBlock | None = Field(default=None, alias="cipherData") + + +class ConfigEthVF(BaseModel): + index: int | None = None + mac: str | None = None + vlan_id: int | None = Field(default=None, alias="vlanId") + + +class ConfigExternalEndPointPolicy(BaseModel): + allow_ext: bool | None = Field( + default=None, + alias="allowExt", + title="external of device side of edge-view access is allowed or not", + ) + + +class ConfigFormat(Enum): + fmt_unknown = "FmtUnknown" + raw = "RAW" + qcow = "QCOW" + qcow2 = "QCOW2" + vhd = "VHD" + vmdk = "VMDK" + ova = "OVA" + vhdx = "VHDX" + container = "CONTAINER" + iso = "ISO" + pvc = "PVC" + + +class ConfigHAScheme(Enum): + ha_scheme_unspecified = "HA_SCHEME_UNSPECIFIED" + ha_scheme_k3_s_embedded = "HA_SCHEME_K3S_EMBEDDED" + + +class ConfigInstanceOpsCmd(BaseModel): + counter: int | None = None + ops_time: str | None = Field(default=None, alias="opsTime") + + +class ConfigLOCConfig(BaseModel): + loc_url: str | None = Field( + default=None, + alias="locUrl", + title="If set indicates URL of the Local Operator Console (LOC)", + ) + datastore_collect_info_id: list[str] | None = Field( + default=None, + alias="datastoreCollectInfoId", + description="several datastores can be specified, but at the current moment only one will be supported\nthis is done to be extensible to allow to specify the datastore or have alternatives in\ncase of failure", + title="UUID of the datastore to upload the collect-info tarball to - only DsHttp and DsHttps is currently possible\nthe directory is specified by dpath in DatastoreConfig and the filename is the standard collect-info.sh\nfilename with the device uuid concatenated,\nf.e.: eve-info-v34-2025-05-13-08-53-52-5d0767ee-0547-4569-b530-387e526f8cb9.tar.gz", + ) + + +class ConfigLoadBalancerInterface(BaseModel): + interface_name: str | None = Field(default=None, alias="interfaceName") + address_cidrs: list[str] | None = Field(default=None, alias="addressCidrs") + + +class ConfigLoadBalancerService(BaseModel): + interfaces: list[ConfigLoadBalancerInterface] | None = None + + +class ConfigMetaDataType(Enum): + meta_data_drive = "MetaDataDrive" + meta_data_none = "MetaDataNone" + meta_data_open_stack = "MetaDataOpenStack" + meta_data_drive_multipart = "MetaDataDriveMultipart" + + +class ConfigPatchEnvelopeRef(BaseModel): + name: str | None = Field( + default=None, + title="one of them should be non-empty\nnon-empty name overrides the id", + ) + id: str | None = None + + +class ConfigPhyIOUsagePolicy(BaseModel): + free_uplink: bool | None = Field(default=None, alias="freeUplink") + + +class ConfigSignatureInfo(BaseModel): + intercertsurl: str | None = None + signercerturl: str | None = None + signature: Base64Str | None = None + + +class ConfigSpanningTreeProtocol(BaseModel): + ports_with_bpdu_guard: str | None = Field( + default=None, + alias="portsWithBpduGuard", + description="Ports matched by this adapter label (logical or shared) will have the BPDU guard enabled.\nIt makes sense to enable the guard on ports which are expected to be leafs\nand therefore not participate in STP, or where the downstream bridges are not fully\ntrusted.", + ) + + +class ConfigSystemAdapter(BaseModel): + name: str | None = Field( + default=None, + description="name - Name of the Network Interface. This is the Port Name\n used in Info / Metrics / flowlog etc. Name cannot be changed.\nThis will be the Network Port name.", + ) + free_uplink: bool | None = Field( + default=None, alias="freeUplink", title="DEPRECATED by cost below" + ) + uplink: bool | None = Field( + default=None, + title="uplink - DEPRECATED by PhysicalIO.Usage / PhysicalIO.UsagePolicy\nthis is part of the uplink group\ndeprecate: have a separate device policy object in the API", + ) + network_uuid: str | None = Field( + default=None, + alias="networkUUID", + title="networkUUID - attach this network config for this adapter\nif not set, depending on Usage of Adapter, would be treated as\nan L2 port", + ) + addr: str | None = Field( + default=None, + description="addr - if its static network we need ip address\nIf this is specified, networkUUID must also be specified. addr\nis expected to be in sync with the network object (same subnet etc ).", + ) + alias: str | None = Field( + default=None, + description="alias - Device just reflects it back in status / Metrics back to\ncloud.", + ) + lower_layer_name: str | None = Field( + default=None, + alias="lowerLayerName", + description="lowerLayerName - For example, if lower layer is PhysicalAdapter\n( physical interface), this should point to logicallabel of the\nphysicalIO.", + ) + cost: int | None = Field( + default=None, + description="Cost of sending traffic over the port.\nUsed to prioritize ports and give preference to lower-cost ports (e.g. eth over wwan).\n0 is the lowest cost (free); 255 the highest.\nCan be set for management and app-shared ports.\nCost is used for EVE management traffic and for local network instances with multiple\nports. For any request towards the controller or for an image download, EVE tries ports\nin the order of increasing cost, starting with the free ports. Once it finds the lowest\ncost port with a working connectivity, it may spread the load if there are multiple\nconnected ports of the same cost.\nFor local networking instances with multiple ports, the cost may be used to decide\nwhich port to use for a particular destination network (incl. port selection for\nthe default route). Unlike the management traffic, load-balancing is currently\nnot supported for local network instances and the app traffic that is routed through\nthem.", + ) + shared_labels: list[str] | None = Field( + default=None, + alias="sharedLabels", + title='A set of user-defined "shared" labels attached to the adapter.\nThere are no restrictions on the format of an adapter label, it can be any\nnon-empty string.\nUnlike the logical label (aka port logical name), shared label is not a unique\nport identifier. Instead, the same shared label can be assigned to multiple ports.\nNote that EVE automatically assigns "all" label to every port, "uplink" label to every\nmanagement port and "freeuplink" label to every management port with zero cost.\n("automatically assigns" is meant here in imaginary sense, these labels are not supposed\nto be explicitly added by the controller to SystemAdapters inside EdgeDevConfig).\nShared label can be used to:\n - designate a group of network adapters to be used by a network instances for external\n connectivity\n - limit port-forwarding firewall rule to only a subset of network adapters\n - create a multi-path static IP route (with multiple ports providing access to the routed\n destination network)', + ) + allow_local_modifications: bool | None = Field( + default=None, + alias="allowLocalModifications", + description="Allow the local operator to make (limited) configuration changes to this network adapter.", + ) + + +class ConfigTarget(Enum): + tgt_unknown = "TgtUnknown" + disk = "Disk" + kernel = "Kernel" + initrd = "Initrd" + ram_disk = "RamDisk" + app_custom = "AppCustom" + + +class ConfigUUIDandVersion(BaseModel): + uuid: str | None = None + version: str | None = None + + +class ConfigVfList(BaseModel): + vf_count: int | None = Field( + default=None, + alias="vfCount", + title="how many Virtual Functions (VF) will be created", + ) + data: list[ConfigEthVF] | None = Field( + default=None, title="optional configuration for given Virtual Function (VF)" + ) + + +class ConfigVlanAccessPort(BaseModel): + vlan_id: int | None = Field( + default=None, alias="vlanId", title="VLAN ID from the range <1,4094>" + ) + access_port: str | None = Field( + default=None, + alias="accessPort", + description="Physical network adapter used as the access port for the given VLAN.\nEither a single NI port referenced by its name (SystemAdapter.Name, aka logical label)\nor an adapter shared-label matching zero or more NI ports.", + ) + + +class ConfigVlanAdapter(BaseModel): + logicallabel: str | None = Field( + default=None, description="Logical name of this VLAN adapter." + ) + interface_name: str | None = Field( + default=None, + alias="interfaceName", + description="A physical name of the VLAN sub-interface.\nNote that the interface name is limited in Linux kernel to 15 characters.\nIf not defined, logicallabel will be used instead.", + ) + lower_layer_name: str | None = Field( + default=None, + alias="lowerLayerName", + description="Logical name of the lower layer adapter (bond or physicalIO).", + ) + vlan_id: int | None = Field( + default=None, + alias="vlanId", + description="VLAN ID. Valid values are from 1 to 4094.", + ) + + +class ConfigVmBootMode(Enum): + vm_boot_mode_unspecified = "VM_BOOT_MODE_UNSPECIFIED" + vm_boot_mode_legacy = "VM_BOOT_MODE_LEGACY" + vm_boot_mode_uefi = "VM_BOOT_MODE_UEFI" + + +class ConfigVmMode(Enum): + pv = "PV" + hvm = "HVM" + filler = "Filler" + fml = "FML" + nohyper = "NOHYPER" + legacy = "LEGACY" + + +class ConfigVolumeAccessProtocols(Enum): + vap_none = "VAP_NONE" + vap_9_p = "VAP_9P" + + +class ConfigVolumeContentOriginType(Enum): + vcot_unknown = "VCOT_UNKNOWN" + vcot_blank = "VCOT_BLANK" + vcot_download = "VCOT_DOWNLOAD" + + +class ConfigVolumeRef(BaseModel): + uuid: str | None = None + generation_count: str | None = Field(default=None, alias="generationCount") + mount_dir: str | None = Field( + default=None, + alias="mountDir", + title="Indicates volume mount point inside container\nif mount_dir is empty then it will be mounted on /mnt", + ) + + +class ConfigWifiConfig(BaseModel): + wifi_ssid: str | None = Field(default=None, alias="wifiSSID") + key_scheme: CommonWiFiKeyScheme | None = Field( + default="SchemeNOOP", alias="keyScheme" + ) + identity: str | None = Field( + default=None, title="to be deprecated, use cipherData instead" + ) + password: str | None = Field( + default=None, title="to be deprecated, use cipherData instead" + ) + crypto: WifiConfigcryptoblock | None = None + priority: int | None = None + cipher_data: CommonCipherBlock | None = Field(default=None, alias="cipherData") + + +class ConfigZNetworkInstType(Enum): + z_net_inst_first = "ZNetInstFirst" + znet_inst_switch = "ZnetInstSwitch" + znet_inst_local = "ZnetInstLocal" + znet_inst_cloud = "ZnetInstCloud" + znet_inst_mesh = "ZnetInstMesh" + znet_inst_honey_pot = "ZnetInstHoneyPot" + znet_inst_transparent = "ZnetInstTransparent" + z_net_inst_last = "ZNetInstLast" + + +class ConfigZNetworkOpaqueConfigType(Enum): + z_net_o_config_vpn = "ZNetOConfigVPN" + z_net_o_config_lisp = "ZNetOConfigLisp" + + +class ConfigZcServiceType(Enum): + zcloud_invalid_srv = "zcloudInvalidSrv" + map_server = "mapServer" + support_server = "supportServer" + + +class EvecommonCellularAuthProtocol(Enum): + cellular_auth_protocol_none = "CELLULAR_AUTH_PROTOCOL_NONE" + cellular_auth_protocol_pap = "CELLULAR_AUTH_PROTOCOL_PAP" + cellular_auth_protocol_chap = "CELLULAR_AUTH_PROTOCOL_CHAP" + cellular_auth_protocol_pap_and_chap = "CELLULAR_AUTH_PROTOCOL_PAP_AND_CHAP" + + +class EvecommonDiskDescription(BaseModel): + name: str | None = None + logical_name: str | None = Field(default=None, alias="logicalName") + serial: str | None = None + + +class EvecommonHashAlgorithm(Enum): + hash_algorithm_invalid = "HASH_ALGORITHM_INVALID" + hash_algorithm_sha256_16_bytes = "HASH_ALGORITHM_SHA256_16BYTES" + hash_algorithm_sha256_32_bytes = "HASH_ALGORITHM_SHA256_32BYTES" + + +class EvecommonRadioAccessTechnology(Enum): + radio_access_technology_unspecified = "RADIO_ACCESS_TECHNOLOGY_UNSPECIFIED" + radio_access_technology_gsm = "RADIO_ACCESS_TECHNOLOGY_GSM" + radio_access_technology_umts = "RADIO_ACCESS_TECHNOLOGY_UMTS" + radio_access_technology_lte = "RADIO_ACCESS_TECHNOLOGY_LTE" + radio_access_technology_5_gnr = "RADIO_ACCESS_TECHNOLOGY_5GNR" + + +class EvecommonWirelessType(Enum): + type_noop = "TypeNOOP" + wi_fi = "WiFi" + cellular = "Cellular" + + +class EveconfigArpMonitor(BaseModel): + interval: int | None = Field( + default=None, + description="Interval specifies the ARP link monitoring frequency in milliseconds.", + ) + ip_targets: list[str] | None = Field( + default=None, + alias="ipTargets", + description="IpTargets specifies the IPv4 addresses to use as ARP monitoring peers.\nThese are the targets of ARP requests sent to determine the health of links.", + ) + + +class EveconfigBondMode(Enum): + bond_mode_unspecified = "BOND_MODE_UNSPECIFIED" + bond_mode_balance_rr = "BOND_MODE_BALANCE_RR" + bond_mode_active_backup = "BOND_MODE_ACTIVE_BACKUP" + bond_mode_balance_xor = "BOND_MODE_BALANCE_XOR" + bond_mode_broadcast = "BOND_MODE_BROADCAST" + bond_mode_802_3_ad = "BOND_MODE_802_3AD" + bond_mode_balance_tlb = "BOND_MODE_BALANCE_TLB" + bond_mode_balance_alb = "BOND_MODE_BALANCE_ALB" + + +class EveconfigClusterType(Enum): + cluster_type_unspecified = "CLUSTER_TYPE_UNSPECIFIED" + cluster_type_k3_s_base = "CLUSTER_TYPE_K3S_BASE" + cluster_type_replicated_storage = "CLUSTER_TYPE_REPLICATED_STORAGE" + cluster_type_ha = "CLUSTER_TYPE_HA" + + +class EveconfigEAPMethod(Enum): + eap_method_unspecified = "EAP_METHOD_UNSPECIFIED" + eap_method_tls = "EAP_METHOD_TLS" + + +class EveconfigEdgeNodeCluster(BaseModel): + cluster_name: str | None = Field( + default=None, + alias="clusterName", + title="cluster name, in case it has multiple cluster on the same site", + ) + cluster_id: str | None = Field( + default=None, alias="clusterId", title="cluster UUID" + ) + cluster_interface: str | None = Field( + default=None, + alias="clusterInterface", + title='Cluster-Interface, for example "mgmt0", this is the logicallabel of the physicalIO', + ) + cluster_ip_prefix: str | None = Field( + default=None, + alias="clusterIpPrefix", + title="the 'cluster-prefix' IP address of the 'Cluster-Interface', 10.244.244.2/28", + ) + is_worker_node: bool | None = Field( + default=None, alias="isWorkerNode", title="This device is an 'Agent' node" + ) + join_server_ip: str | None = Field( + default=None, + alias="joinServerIp", + title="Server IP address to join the cluster. E.g. 10.244.244.1", + ) + encrypted_cluster_token: CommonCipherBlock | None = Field( + default=None, alias="encryptedClusterToken" + ) + cluster_type: EveconfigClusterType | None = Field( + default="CLUSTER_TYPE_UNSPECIFIED", alias="clusterType" + ) + tie_breaker_node_id: str | None = Field( + default=None, + alias="tieBreakerNodeId", + description="Node Id for eve to disable all pod scheduling\nEVE-OS should use this to set kubernetes node labels identifying\nthe tie-breaker node to the kubernetes scheduler.\nNode labels are used in the node selector specification of\nkubernetes objects to direct pod scheduling away from a\nspecific node due to node limitations.", + ) + ha_scheme: ConfigHAScheme | None = Field( + default="HA_SCHEME_UNSPECIFIED", alias="haScheme" + ) + load_balancer_service: ConfigLoadBalancerService | None = Field( + default=None, alias="loadBalancerService" + ) + master_node_uuids: list[str] | None = Field( + default=None, + alias="masterNodeUuids", + description='UUIDs of all designated master/control-plane nodes in the cluster,\nas known to the controller. Surviving EVE nodes use this list to\nprune k8s Node objects (and thereby k3s embedded etcd members) for\nmasters the controller has removed (e.g. after a "replace node"\noperation in the UI). Workers are not listed here.', + ) + + +class EveconfigExternalOpaqueBinaryBlob(BaseModel): + image_name: str | None = Field( + default=None, + alias="imageName", + title="Name of the image uploaded into data store", + ) + file_name_to_use: str | None = Field( + default=None, + alias="fileNameToUse", + title="file name to be used for storing this data in EVE\nthe same file name shall be advertised to application agent\nif it's empty EVE will use image name", + ) + blob_meta_data: str | None = Field( + default=None, + alias="blobMetaData", + title="can be image type or size encoded into a single string", + ) + image_id: str | None = Field( + default=None, + alias="imageId", + title="Target field of Volume set to AppCustom\nrefers to UUID of a volume", + ) + + +class EveconfigHashAlgorithm(Enum): + hash_algorithm_unspecified = "HASH_ALGORITHM_UNSPECIFIED" + hash_algorithm_sha256 = "HASH_ALGORITHM_SHA256" + hash_algorithm_sha384 = "HASH_ALGORITHM_SHA384" + hash_algorithm_sha512 = "HASH_ALGORITHM_SHA512" + + +class EveconfigImage(BaseModel): + uuidandversion: ConfigUUIDandVersion | None = None + name: str | None = Field( + default=None, + title="it could be relative path/name as well; appended to the datastore dpath", + ) + sha256: str | None = None + iformat: ConfigFormat | None = "FmtUnknown" + siginfo: ConfigSignatureInfo | None = None + ds_id: str | None = Field(default=None, alias="dsId") + size_bytes: str | None = Field( + default=None, + alias="sizeBytes", + description="sizeBytes indicates the maximum download size of an image.\nA value of 0 will indicate the unlimited download.", + ) + + +class EveconfigInlineOpaqueBase64Data(BaseModel): + base64_data: str | None = Field( + default=None, alias="base64Data", title="base64 encoded data" + ) + file_name_to_use: str | None = Field( + default=None, + alias="fileNameToUse", + title="file name to be used for storing this data\nsame file name shall be advertised to application agent", + ) + base64_meta_data: str | None = Field( + default=None, + alias="base64MetaData", + title="any arbitrary metadata encoded to base64 string", + ) + + +class EveconfigKeyType(Enum): + key_type_unspecified = "KEY_TYPE_UNSPECIFIED" + key_type_rsa_2048 = "KEY_TYPE_RSA_2048" + key_type_rsa_3072 = "KEY_TYPE_RSA_3072" + key_type_rsa_4096 = "KEY_TYPE_RSA_4096" + key_type_ecdsa_p256 = "KEY_TYPE_ECDSA_P256" + key_type_ecdsa_p384 = "KEY_TYPE_ECDSA_P384" + key_type_ecdsa_p521 = "KEY_TYPE_ECDSA_P521" + + +class EveconfigLacpRate(Enum): + lacp_rate_unspecified = "LACP_RATE_UNSPECIFIED" + lacp_rate_slow = "LACP_RATE_SLOW" + lacp_rate_fast = "LACP_RATE_FAST" + + +class EveconfigMIIMonitor(BaseModel): + interval: int | None = Field( + default=None, + description="Specifies the MII link monitoring frequency in milliseconds.\nThis determines how often the link state of each bond slave is inspected\nfor link failures.", + ) + updelay: int | None = Field( + default=None, + description="Updelay specifies the time, in milliseconds, to wait before enabling\na bond slave after a link recovery has been detected.\nThe updelay value should be a multiple of the monitoring interval; if not,\nit will be rounded down to the nearest multiple.\nThe default value is 0.", + ) + downdelay: int | None = Field( + default=None, + description="Specifies the time, in milliseconds, to wait before disabling a bond\nslave after a link failure has been detected.\nThe downdelay value should be a multiple of the monitoring interval; if not,\nit will be rounded down to the nearest multiple.\nThe default value is 0.", + ) + + +class EveconfigSnapshotType(Enum): + snapshot_type_unspecified = "SNAPSHOT_TYPE_UNSPECIFIED" + snapshot_type_app_update = "SNAPSHOT_TYPE_APP_UPDATE" + snapshot_type_immediate = "SNAPSHOT_TYPE_IMMEDIATE" + + +class ProtobufAny(BaseModel): + type_url: str | None = Field(default=None, alias="typeUrl") + value: Base64Str | None = None + + +class ProtobufNullValue(Enum): + null_value = "NULL_VALUE" + + +class EventQueryResponseItem(BaseModel): + user: str | None = Field(default=None, description="User name") + project: str | None = Field(default=None, description="project name") + device: str | None = Field(default=None, description="device name") + instance: str | None = Field(default=None, description="instance name") + severity: str | None = Field( + default=None, description="severity: FIXME: should be ENUM" + ) + description: str | None = Field(default=None, description="Event description") + timestamp: dict[str, Any] | None = Field( + default=None, description="event timestamp" + ) + source: EventSource | None = "EVENT_SOURCE_UNSPECIFIED" + resource: str | None = Field(default=None, description="Event resources") + event_type: str | None = Field( + default=None, alias="eventType", description="Event type" + ) + tags: list[str] | None = Field(default=None, description="Event tags") + resource_name: str | None = Field( + default=None, alias="resourceName", description="Event resources" + ) + json_data: dict[str, Any] | None = Field( + default=None, alias="jsonData", description="Event resources" + ) + cluster_instance: str | None = Field( + default=None, alias="clusterInstance", description="clusterInstance name" + ) + + +class MetricQueryResponse(BaseModel): + threshold: MetricThreshold | None = None + metric_type: str | None = Field(default=None, alias="metricType") + x_label: str | None = Field(default=None, alias="xLabel") + y_labels: list[str] | None = Field(default=None, alias="yLabels") + list_: list[MetricQueryResponseItem] | None = Field(default=None, alias="list") + + +class PolicyDocVersionList(BaseModel): + summary: Summary | None = None + list_: list[PolicyDocVersion] | None = Field(default=None, alias="list") + next: Cursor | None = None + + +class ZsrvError(BaseModel): + ec: ZsrvErrorCode | None = "zMsgErrorNone" + location: str | None = Field(default=None, title="Ignore: Internal field only") + details: str | None = Field( + default=None, title="Field captures string description of details" + ) + + +class ZsrvResponse(BaseModel): + operation_type: ZcOpsType | None = Field( + default="OPS_TYPE_UNSPECIFIED", alias="operationType" + ) + operation_status: ZcOpsStatus | None = Field( + default="OPS_STATUS_UNSPECIFIED", alias="operationStatus" + ) + object_kind: str | None = Field( + default=None, + alias="objectKind", + title="zedcloud object kind on which the operation was performed", + ) + object_id: str | None = Field( + default=None, + alias="objectId", + title="Unique value identifies the object that was operated on", + ) + object_name: str | None = Field( + default=None, alias="objectName", title="name of the object" + ) + object_revision: str | None = Field( + default=None, + alias="objectRevision", + title="object revision post the operation, note Read operation\ndoesn't change the revision", + ) + object_type: ObjectType | None = Field( + default="OBJECT_TYPE_UNSPECIFIED", alias="objectType" + ) + operation_time: str | None = Field( + default=None, alias="operationTime", title="time of operation" + ) + start_time: str | None = Field( + default=None, alias="startTime", title="total time taken by operations" + ) + end_time: str | None = Field(default=None, alias="endTime") + user: str | None = Field( + default=None, title="the operation is performed on behalf of this user" + ) + http_status_code: int | None = Field( + default=None, alias="httpStatusCode", title="http response" + ) + http_status_msg: str | None = Field( + default=None, alias="httpStatusMsg", title="summary of the error in text format" + ) + job_id: str | None = Field( + default=None, alias="jobId", title="for tracking asynchronous tasks" + ) + error: list[ZsrvError] | None = Field( + default=None, + title="one or more errors will be set if the operation failed\ni.e. httpStatusCode != 2xx", + ) + + +class CommonCipherContext(BaseModel): + context_id: str | None = Field( + default=None, + alias="contextId", + title="cipher context id, key to this structure", + ) + hash_scheme: EvecommonHashAlgorithm | None = Field( + default="HASH_ALGORITHM_INVALID", alias="hashScheme" + ) + key_exchange_scheme: CommonKeyExchangeScheme | None = Field( + default="KEA_NONE", alias="keyExchangeScheme" + ) + encryption_scheme: CommonEncryptionScheme | None = Field( + default="SA_NONE", alias="encryptionScheme" + ) + device_cert_hash: Base64Str | None = Field( + default=None, alias="deviceCertHash", title="device public certificate hash" + ) + controller_cert_hash: Base64Str | None = Field( + default=None, alias="controllerCertHash", title="controller certificate hash" + ) + + +class CommonConnectivityProbe(BaseModel): + probe_method: CommonConnectivityProbeMethod | None = Field( + default="CONNECTIVITY_PROBE_METHOD_UNSPECIFIED", alias="probeMethod" + ) + probe_endpoint: CommonProbeEndpoint | None = Field( + default=None, alias="probeEndpoint" + ) + + +class CommonProxyServer(BaseModel): + proto: CommonproxyProto | None = "PROXY_HTTP" + server: str | None = None + port: int | None = None + + +class ConfigACE(BaseModel): + matches: list[ConfigACEMatch] | None = Field( + default=None, + title="multiple matches here is for various fields of 6 tuples\n for example\n 1) host=www.example.com & port=http\n 2) ip=8.8.8.8 & port=53 & proto=UDP\n 3) adapter=uplink && port=8080 && proto=TCP", + ) + actions: list[ConfigACEAction] | None = Field( + default=None, + description="Expect only single action...repeated here is\nfor future work.", + ) + name: str | None = None + id: int | None = None + dir: ConfigACEDirection | None = "BOTH" + + +class ConfigAdapter(BaseModel): + type: CommonPhyIoType | None = "PhyIoNoop" + name: str | None = None + eth_vf: ConfigEthVF | None = Field(default=None, alias="ethVf") + interface_order: int | None = Field( + default=None, + alias="interfaceOrder", + description='Define the network interface order relative to other directly assigned\nnetwork devices and virtual network adapters.\nOnly applies to (assignable) network adapters, i.e. types: "PhyIoNetEth", "PhyIoNetWLAN",\n"PhyIoNetWWAN" and "PhyIoNetEthVF".\nThe numbering is across both the "Adapter" (direct assignments) and the "NetworkAdapter"\n(virtual interfaces) lists for a given "AppInstanceConfig", thus every entry in these\nlists, excluding non-networking adapters, must have a unique order number\n(when the "enforce_network_interface_order" is enabled, see "VmConfig").\nInterface with a lower order value should appear inside the application before\ninterface with a higher order value.\nThe implementation of this ordering may depend on the hypervisor. For example,\nthe hypervisor might virtualize the PCI bus and assign lower PCI addresses to\ninterfaces with lower order values. But the actual outcome of interface ordering\ndepends on the application and EVE therefore cannot guarantee desired order.\nSince this field was introduced in later versions, older EVE versions do not support\nuser-defined interface ordering. For backward compatibility, the user-defined\norder is applied only if "enforce_network_interface_order" is enabled for the given\napplication (see "VmConfig", file "vm.proto").', + ) + + +class ConfigBaseOS(BaseModel): + content_tree_uuid: str | None = Field( + default=None, + alias="contentTreeUuid", + title="UUID for ContentTree with BaseOS image", + ) + retry_update: ConfigDeviceOpsCmd | None = Field(default=None, alias="retryUpdate") + activate: bool | None = Field( + default=None, title="if not set BaseOS will be installed,\nbut not activated" + ) + base_os_version: str | None = Field(default=None, alias="baseOsVersion") + + +class ConfigCellularAccessPoint(BaseModel): + sim_slot: int | None = Field( + default=None, + alias="simSlot", + description="SIM card slot to which this configuration applies.\n0 - unspecified (apply to currently activated or the only available)\n1 - config for SIM card in the first slot\n2 - config for SIM card in the second slot\netc.", + ) + apn: str | None = Field( + default=None, + description='Access Point Network to connect into.\nBy default it is "internet".\nApplies to the default bearer.\nTo modify the attach bearer APN, use attach_apn instead.', + ) + auth_protocol: EvecommonCellularAuthProtocol | None = Field( + default="CELLULAR_AUTH_PROTOCOL_NONE", alias="authProtocol" + ) + cipher_data: CommonCipherBlock | None = Field(default=None, alias="cipherData") + preferred_plmns: list[str] | None = Field( + default=None, + alias="preferredPlmns", + description='The set of cellular network operators that modem should preferably try to register\nand connect into.\nNetwork operator should be referenced by PLMN (Public Land Mobile Network) code,\nconsisting of 3-digits MCC (Mobile Country Code) and 2 or 3-digits MNC (Mobile Network Code),\nseparated by a dash, e.g. "310-260".\nIf empty, then modem will select the network automatically based on the SIM card config.', + ) + forbid_roaming: bool | None = Field( + default=None, + alias="forbidRoaming", + description="If true, then modem will avoid connecting to networks with roaming.", + ) + preferred_rats: list[EvecommonRadioAccessTechnology] | None = Field( + default=None, + alias="preferredRats", + description="The list of preferred Radio Access Technologies (RATs) to use for connecting\nto the network.\nOrder matters, first is the most preferred, second is tried next, etc.\nNot listed technologies will not be tried.\nIf empty, then modem will select RAT automatically.", + ) + ip_type: CommonCellularIPType | None = Field( + default="CELLULAR_IP_TYPE_UNSPECIFIED", alias="ipType" + ) + attach_apn: str | None = Field( + default=None, + alias="attachApn", + description="Access Point Name (APN) for the attach (initial) bearer.\nThis field is optional. If not specified, EVE will not send any attach bearer\nconfiguration to the modem. Instead, the modem will use one of its pre-installed\nprofiles (see CellularProfile) to determine the configuration.", + ) + attach_ip_type: CommonCellularIPType | None = Field( + default="CELLULAR_IP_TYPE_UNSPECIFIED", alias="attachIpType" + ) + attach_auth_protocol: EvecommonCellularAuthProtocol | None = Field( + default="CELLULAR_AUTH_PROTOCOL_NONE", alias="attachAuthProtocol" + ) + + +class ConfigCellularConnectivityProbe(BaseModel): + disable: bool | None = Field( + default=None, description="If true, then probing is disabled." + ) + probe_address: str | None = Field( + default=None, + alias="probeAddress", + description="IP/FQDN to periodically probe using 3 pings per iteration to determine connectivity status.\nThis field is now deprecated and replaced with custom_probe (see below).\nTo maintain backward-compatibility, EVE will check both probe_address and custom_probe\nand will use whichever has non-zero value (if any), but preferring custom_probe.", + ) + custom_probe: CommonConnectivityProbe | None = Field( + default=None, alias="customProbe" + ) + + +class ConfigContentTree(BaseModel): + uuid: str | None = None + ds_id: str | None = Field(default=None, alias="dsId") + url: str | None = Field(default=None, alias="URL") + iformat: ConfigFormat | None = "FmtUnknown" + sha256: str | None = Field( + default=None, title="The sha is for the top blob of the ContentTree" + ) + max_size_bytes: str | None = Field( + default=None, + alias="maxSizeBytes", + description="maxSizeBytes used for capping resource consumption in EVE.\nmaxSizeBytes indicates the maximum download size of content tree.", + ) + siginfo: ConfigSignatureInfo | None = None + display_name: str | None = Field(default=None, alias="displayName") + generation_count: str | None = Field( + default=None, + alias="generationCount", + description="For container ContentTree, sha256 might not be available in config.\nIf the sha256 is not available then it needs to be resolved corresponding to the tag\nchange in generation_count indicates that the resolution of tag is needed\ngeneration_count needs to be updated when purge is required for an existing\ninstance. In case of new instance using the same content tree, EVE will get\nnew content tree UUID in the device configuration from the controller.", + ) + custom_meta_data: str | None = Field( + default=None, + alias="customMetaData", + description="An arbitrary string. Usage depends on the content purpose. Currently the\nonly usage is with custom application blobs (AppCustom) - this string will\nappear in the restAPI endpoint available at http://169.254.169.254. So user\napplication can read that data and treat the blob accordingly.", + ) + ds_ids_list: list[str] | None = Field( + default=None, + alias="dsIdsList", + description="List of DatastoreConfig UUIDs, that must have the same content. In case of\nnetwork failure, the download process can fallback to the next datastore\nin the list.", + ) + designated_node_id: str | None = Field( + default=None, + alias="designatedNodeId", + description="To inform the edge-node if the device receiving this content tree is\nresponsible for content tree download or not.", + ) + + +class ConfigDatastoreConfig(BaseModel): + id: str | None = None + d_type: ConfigDsType | None = Field(default="DsUnknown", alias="dType") + fqdn: str | None = None + api_key: str | None = Field( + default=None, alias="apiKey", title="to be deprecated, use cipherData instead" + ) + password: str | None = Field( + default=None, title="to be deprecated, use cipherData instead" + ) + dpath: str | None = Field( + default=None, title="depending on datastore types, it could be bucket or path" + ) + region: str | None = Field(default=None, title="Applies for some datastore types") + cipher_data: CommonCipherBlock | None = Field(default=None, alias="cipherData") + ds_cert_pem: list[Base64Str] | None = Field( + default=None, + alias="dsCertPEM", + title="Uploaded datastore certificate or certificate chain", + ) + + +class ConfigDiskConfig(BaseModel): + disk: EvecommonDiskDescription | None = None + old_disk: EvecommonDiskDescription | None = Field(default=None, alias="oldDisk") + disk_config: ConfigDiskConfigType | None = Field( + default="DISK_CONFIG_TYPE_UNSPECIFIED", alias="diskConfig" + ) + + +class ConfigDisksConfig(BaseModel): + disks: list[ConfigDiskConfig] | None = None + array_type: ConfigDisksArrayType | None = Field( + default="DISKS_ARRAY_TYPE_UNSPECIFIED", alias="arrayType" + ) + children: list[ConfigDisksConfig] | None = None + + +class ConfigDrive(BaseModel): + image: EveconfigImage | None = None + readonly: bool | None = None + preserve: bool | None = None + drvtype: ConfigDriveType | None = "Unclassified" + target: ConfigTarget | None = "TgtUnknown" + maxsizebytes: str | None = Field( + default=None, + description="maxsizebytes indicates the maximum size of the volume.\nInitial image size will be resized to the maxsizebytes\niff maxsizebytes is greater than the image size.", + ) + + +class ConfigEdgeViewConfig(BaseModel): + token: str | None = Field( + default=None, + title="JWT token for signed info, it contains the dispatcher\nendpoint IP:Port, device UUID, nonce and expiration time", + ) + disp_cert_pem: list[Base64Str] | None = Field( + default=None, + alias="dispCertPem", + title="dispatcher certificate(s) if it's not well-known CA signed", + ) + dev_policy: ConfigDevDebugAccessPolicy | None = Field( + default=None, alias="devPolicy" + ) + app_policy: ConfigAppDebugAccessPolicy | None = Field( + default=None, alias="appPolicy" + ) + ext_policy: ConfigExternalEndPointPolicy | None = Field( + default=None, alias="extPolicy" + ) + generation_id: int | None = Field( + default=None, + alias="generationId", + title="Generation ID for re-start edgeview without parameter changes", + ) + + +class ConfigEveBinaryArtifact(BaseModel): + format: ConfigEVEOPAQUEOBJECTCATEGORY | None = "UNKNOWN" + inline: EveconfigInlineOpaqueBase64Data | None = None + volume_ref: EveconfigExternalOpaqueBinaryBlob | None = Field( + default=None, alias="volumeRef" + ) + encrypted_inline: ConfigEncryptedInlineOpaqueBase64Data | None = Field( + default=None, alias="encryptedInline" + ) + encrypted_volumeref: ConfigEncryptedExternalOpaqueBinaryBlob | None = Field( + default=None, alias="encryptedVolumeref" + ) + artifact_meta_data: str | None = Field( + default=None, + alias="artifactMetaData", + title="If metadata_cipher_data is set then artifactMetaData can be ignored", + ) + metadata_cipher_data: CommonCipherBlock | None = Field( + default=None, alias="metadataCipherData" + ) + + +class ConfigEvePatchEnvelope(BaseModel): + display_name: str | None = Field( + default=None, alias="displayName", title="Unique name provided by user" + ) + uuid: str | None = Field(default=None, title="Unique") + version: str | None = Field(default=None, title="arbitrary version from user") + action: ConfigEVEPATCHENVELOPEACTION | None = "STORE" + artifacts: list[ConfigEveBinaryArtifact] | None = None + app_inst_ids_allowed: list[str] | None = Field( + default=None, + alias="appInstIdsAllowed", + title="List of application instance ids that should\nbe allowed to access this patch envelope", + ) + create_time: AwareDatetime | None = Field( + default=None, alias="createTime", title="Time object created in UTC format" + ) + + +class ConfigNetworkAdapter(BaseModel): + name: str | None = None + network_id: str | None = Field(default=None, alias="networkId") + addr: str | None = None + hostname: str | None = None + crypto_eid: str | None = Field( + default=None, alias="cryptoEid", title="more configuration for getting addr/EID" + ) + lispsignature: str | None = None + pemcert: Base64Str | None = None + pemprivatekey: Base64Str | None = None + mac_address: str | None = Field( + default=None, + alias="macAddress", + title="Used in case of P2V, where we want to specify a macAddress\nto vif, that is simulated towards app", + ) + acls: list[ConfigACE] | None = Field(default=None, title="firewall") + access_vlan_id: int | None = Field( + default=None, + alias="accessVlanId", + title="access port vlan id\napp interface with access vlan id of zero will be treated as trunk port\nvalid vlan id range: 2 - 4093\nvlan id 1 is implicitly used by linux bridges", + ) + allow_to_discover: bool | None = Field( + default=None, + alias="allowToDiscover", + title="allow AppInstance to discover other AppInstances\nattached to this network instance. Default is false", + ) + interface_order: int | None = Field( + default=None, + alias="interfaceOrder", + description='Define the network interface order relative to other virtual network adapters\nand directly assigned network devices.\nThe numbering is across both the "Adapter" (direct assignments) and the "NetworkAdapter"\n(virtual interfaces) lists for a given "AppInstanceConfig", thus every entry in these\nlists, excluding non-networking adapters, must have a unique order number\n(when the "enforce_network_interface_order" is enabled, see "VmConfig").\nInterface with a lower order value should appear inside the application before\ninterface with a higher order value.\nThe implementation of this ordering may depend on the hypervisor. For example,\nthe hypervisor might virtualize the PCI bus and assign lower PCI addresses to\ninterfaces with lower order values. But the actual outcome of interface ordering\ndepends on the application and EVE therefore cannot guarantee desired order.\nSince this field was introduced in later versions, older EVE versions do not support\nuser-defined interface ordering. For backward compatibility, the user-defined\norder is applied only if "enforce_network_interface_order" is enabled for the given\napplication (see "VmConfig", file "vm.proto").', + ) + + +class ConfigPNAC(BaseModel): + logicallabel: str | None = Field( + default=None, + title="Logical name of the associated physical Ethernet interface (PhysicalIO.logicallabel)", + ) + eap_identity: str | None = Field( + default=None, + alias="eapIdentity", + description="EAP identity (optional).\nEven when certificate-based authentication is used (e.g., EAP-TLS),\nan explicit EAP identity may be configured and does not need to match\nthe certificate’s DN or SAN attributes.\nIf no EAP identity is configured and a certificate-based EAP method\nis used, EVE will derive the identity from the enrolled certificate,\npreferring the subject common name (CN), or the SAN URI if CN is absent.", + ) + eap_method: EveconfigEAPMethod | None = Field( + default="EAP_METHOD_UNSPECIFIED", alias="eapMethod" + ) + cert_enrollment_profile_name: str | None = Field( + default=None, + alias="certEnrollmentProfileName", + description="Certificate enrollment profile to use for authentication.\nRelevant only when the selected EAP method requires a certificate (e.g., EAP-TLS).\n\nThis field references the profile_name of a certificate enrollment profile\ndefined in EdgeDevConfig (currently SCEP profiles only, see scep_profiles).\nWhile SCEP is the only supported enrollment protocol today, this field is\nintended to reference any supported enrollment profile in the future.", + ) + + +class ConfigPhysicalIO(BaseModel): + ptype: CommonPhyIoType | None = "PhyIoNoop" + phylabel: str | None = Field( + default=None, + title="physical label typically printed on box.\nExample Eth0, Eth1, Wifi0, ComA, ComB", + ) + phyaddrs: dict[str, str] | None = Field( + default=None, + description='The hardware bus address. The key to this map can be of the following\n(case-insensitive) values:\n"pcilong": the address is a PCI id of the form 0000:02:00.0\n"ifname": the address is a string for a network interface like "eth1"\n"serial": the address is a Linux serial port alias such as "/dev/ttyS2"\n"irq": the address is a number such as "5". This can be a comma\n separated list of integers or even a range of integers. Hence using\n a string to address this.\n"ioports": the address is a string such as "2f8-2ff"\n"usbaddr": the address is a USB of the form of "1:2.3"\nIf the type is PhyIoNet*, then there needs to be an "ifname" physaddr.', + ) + logicallabel: str | None = Field( + default=None, + title="logicallabel - provides the ability to model designer to refer\n the physicalIO port to using more friendly name\nFor example Eth0->Mgmt0\n or USBA->ConfigDiskA etc", + ) + assigngrp: str | None = Field( + default=None, + description="This is the name used in AppInstanceConfig.adapters to assign an\nadapter to an application.\n\nIf assigngrp is not set, the Adapter cannot be assigned to any\napplication. One example is, when the adapter is on the same Pci\nbus as another device required by Dom0.\n\nEven if there is only one device on the its PCIBus, the assignGrp Must\nbe set.", + title="assigngrp\nAssignment Group, is unique label that is applied across PhysicalIOs\nEntireGroup can be assigned to application or nothing at all", + ) + usage: CommonPhyIoMemberUsage | None = "PhyIoUsageNone" + usage_policy: ConfigPhyIOUsagePolicy | None = Field( + default=None, alias="usagePolicy" + ) + cbattr: dict[str, str] | None = Field( + default=None, + title="physical and logical attributes\n For example in WWAN to which firmware version to load etc", + ) + vflist: ConfigVfList | None = None + parentassigngrp: str | None = Field( + default=None, + description="Parent Assignment Group is there to reference the parent assignment\ngroup in order to make the device dependent on a different device.\nCurrently the concrete reason to do this is to make a usb device dependent\non the PCI address the USB controller is using to prevent passthrough of\nthe USB controller in one application while trying to passthrough\na USB device on this controller to another application.\n\nWe only allow these two cases:\n- children and their parent devices are assigned to the same application\n instance\n- parent device stays in host and one or more children (in separate\n assignment groups) are assigned to one or more application instances", + title="parentassigngrp", + ) + + +class ConfigPortProbe(BaseModel): + enable_gw_ping: bool | None = Field( + default=None, + alias="enableGwPing", + description="Use ICMP ping towards the port's gateway IP to determine connectivity status.\nThis probing is performed much more frequently than the custom_probe and provides\nfaster fail-over. On the other hand, it generates more traffic through the probed\nports. Use gw_ping_max_cost (see below) to limit which ports it is enabled for\nbased on the port cost.\nAvoid using this probe method if the gateway router is configured to drop/ignore\nICMP pings and therefore this probe method would return false negatives.", + ) + gw_ping_max_cost: int | None = Field( + default=None, + alias="gwPingMaxCost", + description="Ports exceeding this cost will have the gateway probing disabled to reduce\ntraffic generated by probing (only less-frequent custom_probe will be performed).", + ) + custom_probe: CommonConnectivityProbe | None = Field( + default=None, alias="customProbe" + ) + + +class ConfigSnapshotDesc(BaseModel): + id: str | None = Field( + default=None, + description="id of the snapshot.\nThe format of the ID is a standard UUIDv4.\nShould be unique within the app instance. Generated by the Controller in\nthe case the snapshot creation is requested by the Controller, or by EVE\nin the case the snapshot creation is triggered locally.\nCorresponds to the ZInfoApp.snapshots[].id field (see the `info.proto`\nfile).", + ) + type: EveconfigSnapshotType | None = "SNAPSHOT_TYPE_UNSPECIFIED" + + +class ConfigVmConfig(BaseModel): + kernel: str | None = None + ramdisk: str | None = None + memory: int | None = Field( + default=None, title="in kbytes; rounded up to Mbytes for xen" + ) + maxmem: int | None = Field( + default=None, + title="in kbytes; xen only, default equal to 'memory', so no ballooning", + ) + vcpus: int | None = Field( + default=None, description="The amount of the VCPUs in the VM." + ) + maxcpus: int | None = Field( + default=None, + description="In the case of the Xen hypervisor - the maximal amount of the VCPUs\navailable to the VM. Can be greater than `vcpus` (the VCPUs online on the\nVM start). If the field is not set, it is initialized by EVE to the value\nin the `vcpus` field.", + ) + rootdev: str | None = None + extraargs: str | None = None + bootloader: str | None = None + cpus: str | None = Field( + default=None, + description='Currently is not handled by EVE.\nCPU mask of the CPUs assigned to the VM. Represented in the form\n"d[[,-]d]*". E.g. "0-2" or "0-2,5,6". CPUs start with 0. For example, the\nmask "0,3" would mean that only physical CPUs 0 and 3 are available for\nthe VM.', + ) + devicetree: str | None = None + dtdev: list[str] | None = None + irqs: list[int] | None = None + iomem: list[str] | None = None + virtualization_mode: ConfigVmMode | None = Field( + default="PV", alias="virtualizationMode" + ) + enable_vnc: bool | None = Field( + default=None, + alias="enableVnc", + title="Enable VNC access to the edge application", + ) + vnc_display: int | None = Field(default=None, alias="vncDisplay") + vnc_passwd: str | None = Field(default=None, alias="vncPasswd") + disable_logs: bool | None = Field( + default=None, + alias="disableLogs", + title="Change of the 'disable logs' field can be handled without VM reboot", + ) + pin_cpu: bool | None = Field( + default=None, + alias="pinCpu", + description="Set if the VM should run in a mode with pinned CPUs.\nIn this case any VCPU thread created by QEMU runs on a dedicated physical\nCPU. All the other QEMU threads will be limited to run on the physical\nCPUs defined by CPU mask. The CPU mask is provided with the 'cpus' field,\ndefined above. If the CPU mask is not set, the physical CPUs to be used\nfor running QEMU threads are picked automatically by Pillar: it just takes\nthat amount of available physical CPUs that is defined with the 'vcpus'\nparameter defined above.", + ) + vmm_maxmem: int | None = Field( + default=None, + alias="vmmMaxmem", + title='Maximum amount of memory in kbytes allowed for VM monitor to occupy,\naka "overhead". E.g. for the qemu-kvm hypervisor the memory limit\nfor one VM instance (guest RAM + VM monitor) is set according to the\nfollowing equation: `memory` + `vmm_maxmem`', + ) + enable_vnc_shim_vm: bool | None = Field( + default=None, + alias="enableVncShimVm", + title="Enable VNC access to the shim VM harboring the edge application (for containers only)", + ) + boot_mode: ConfigVmBootMode | None = Field( + default="VM_BOOT_MODE_UNSPECIFIED", alias="bootMode" + ) + enforce_network_interface_order: bool | None = Field( + default=None, + alias="enforceNetworkInterfaceOrder", + description='Enables enforcement of user-defined ordering for network interfaces.\nThis applies to both virtual interfaces (specified in the "AppInstanceConfig.interfaces" list)\nand directly assigned network adapters (specified in the "AppInstanceConfig.adapters" list\nas items of type "PhyIoNetEth", "PhyIoNetWLAN", "PhyIoNetWWAN", and "PhyIoNetEthVF").\nNote: Older versions of EVE may not support enforcing the user-defined order\nof application network interfaces. The controller can check\n"ZInfoDevice.api_capability" to verify if the configured device supports the\nAPI capability "API_CAPABILITY_ENFORCED_NET_INTERFACE_ORDER".\nPlease beware that EVE\'s ability to influence the order of VM application interfaces\nis limited. Depending on the application\'s operating system, achieving the desired network\ninterface order might not be possible.', + ) + enable_oem_win_license_key: bool | None = Field( + default=None, + alias="enableOemWinLicenseKey", + title="The app should receive the Windows license embedded in ACPI tables", + ) + disable_vtpm: bool | None = Field( + default=None, + alias="disableVtpm", + description="Disable vTPM for the VM, this defaults to false according to the\nproto3 specification.", + ) + boot_order: CommonBootOrder | None = Field( + default="BOOT_ORDER_UNSPECIFIED", alias="bootOrder" + ) + + +class ConfigVolumeContentOrigin(BaseModel): + type: ConfigVolumeContentOriginType | None = "VCOT_UNKNOWN" + download_content_tree_id: str | None = Field( + default=None, alias="downloadContentTreeID" + ) + + +class ConfigZcServicePoint(BaseModel): + zs_type: ConfigZcServiceType | None = Field( + default="zcloudInvalidSrv", alias="zsType" + ) + name_or_ip: str | None = Field(default=None, alias="NameOrIp") + credential: str | None = Field(default=None, alias="Credential") + + +class EveconfigBondAdapter(BaseModel): + logicallabel: str | None = Field( + default=None, description="Name of this bond adapter." + ) + interface_name: str | None = Field( + default=None, + alias="interfaceName", + description="A physical name of the bond interface.\nNote that the interface name is limited in Linux kernel to 15 characters.\nIf not defined, logicallabel will be used instead.", + ) + lower_layer_names: list[str] | None = Field( + default=None, + alias="lowerLayerNames", + description="Logical names of aggregated PhysicalIOs.\nFor all bonding modes but Active-Backup the order is irrelevant.\nIn the Active-Backup mode (BOND_MODE_ACTIVE_BACKUP), the first PhysicalIO\nin the list will be considered as the primary port (i.e. only when\nthe primary is off-line will alternate ports be used).", + ) + bond_mode: EveconfigBondMode | None = Field( + default="BOND_MODE_UNSPECIFIED", alias="bondMode" + ) + mii: EveconfigMIIMonitor | None = None + arp: EveconfigArpMonitor | None = None + lacp_rate: EveconfigLacpRate | None = Field( + default="LACP_RATE_UNSPECIFIED", alias="lacpRate" + ) + + +class EveconfigCSRProfile(BaseModel): + common_name: str | None = Field( + default=None, + alias="commonName", + description="X.509 Distinguished Name (DN) attributes.", + ) + organization: str | None = None + organizational_unit: str | None = Field(default=None, alias="organizationalUnit") + country: str | None = None + state: str | None = None + locality: str | None = None + san_dns: list[str] | None = Field( + default=None, + alias="sanDns", + description="X.509 Subject Alternative Name (SAN) attributes.", + ) + san_ip: list[str] | None = Field(default=None, alias="sanIp") + san_uri: list[str] | None = Field(default=None, alias="sanUri") + san_email: list[str] | None = Field(default=None, alias="sanEmail") + renew_period_percent: int | None = Field( + default=None, + alias="renewPeriodPercent", + description="Certificate renewal settings.\nPercentage of the certificate validity period after which\nthe device should attempt renewal (e.g., 80 = renew after 80%).", + ) + key_type: EveconfigKeyType | None = Field( + default="KEY_TYPE_UNSPECIFIED", alias="keyType" + ) + hash_algorithm: EveconfigHashAlgorithm | None = Field( + default="HASH_ALGORITHM_UNSPECIFIED", alias="hashAlgorithm" + ) + + +class EveconfigIPRoute(BaseModel): + destination_network: str | None = Field( + default=None, + alias="destinationNetwork", + description="Destination network address in the CIDR format: /\nIt is allowed to submit default route with all-zeroes destination network address\n0.0.0.0/0 or ::/0.", + ) + gateway: str | None = Field( + default=None, + description="Gateway IP address.\nThis must be a valid IP address and can not be all-zeroes.\nAt least one of 'gateway' or 'port' (see below) must be defined (both can be set).\nThis can be an external gateway IP or an IP address of one of the app instances\nconnected to the network instance.", + ) + port: str | None = Field( + default=None, + description="Output device port for the routed traffic.\nEither a single NI port referenced by its name (SystemAdapter.Name, aka logical label)\nor an adapter shared-label matching zero or more NI ports (multipath routing).\nCan be used additionally to or instead of `gateway` to determine the next hop\nand the output network interface for the destination network.\nAt least one of 'gateway' or 'port' must be defined.\nSince 'port' refers to one or more physical network adapters, it is not applicable\nto routes where gateway points to another application instance running on EVE.\nIf shared label is used, EVE will pick (at most) one of the matched ports to be used\nfor route at a given time. Port is selected based on connectivity status, port costs,\nwwan signal strength, etc. - see config options below.\nNote that load-balancing across multiple ports is not yet supported.\nAlso please note that if `gateway` is defined, only ports with subnets containing\nthe gateway IP will be considered.", + ) + probe: ConfigPortProbe | None = None + prefer_lower_cost: bool | None = Field( + default=None, + alias="preferLowerCost", + description="When EVE is deciding which port to use for multipath route and multiple ports have\nworking connectivity (or probing is disabled), port can be selected based on the cost\n(see SystemAdapter.cost). If this option is enabled, EVE will prefer ports with lower\ncosts.", + ) + prefer_stronger_wwan_signal: bool | None = Field( + default=None, + alias="preferStrongerWwanSignal", + description="When EVE is deciding which port to use for multipath route and there are multiple\ncandidates among cellular modems, it might make sense to consider the current cellular\nnetwork signal strength. If this option is enabled, EVE will prefer cellular ports\nwith better signal (only among cellular ports).", + ) + + +class EveconfigSCEPProfile(BaseModel): + profile_name: str | None = Field( + default=None, + alias="profileName", + description="User-assigned logical name for this certificate enrollment profile.\nMust be unique within the device configuration.\n\nCurrently, this name is unique among EdgeDevConfig.scep_profiles only.\nIn the future, when additional certificate enrollment protocols are supported,\nprofile names are expected to be unique across all enrollment profile types.", + ) + scep_url: str | None = Field( + default=None, + alias="scepUrl", + title="Full SCEP server URL, including scheme, host, and path.\nExample: https://ca.example.com/scep", + ) + use_controller_proxy: bool | None = Field( + default=None, + alias="useControllerProxy", + description="If true, SCEP requests are sent via the controller-provided SCEP proxy.\nIf false, the device connects directly to the SCEP server.\nThe proxy option is intended for deployments where the SCEP server\nis not reachable from the unauthenticated or provisioning network.", + ) + scep_challenge_password: CommonCipherBlock | None = Field( + default=None, alias="scepChallengePassword" + ) + ca_cert_pem: list[Base64Str] | None = Field( + default=None, + alias="caCertPem", + description="Trusted CA certificate chain used for SCEP operations.\nRequired by RFC 8894, Section 2.2.\n\n- Each certificate in the chain that is capable of key encryption\n (typically only the issuing CA) will receive a copy of the encrypted\n symmetric key used to encrypt the PKCS#7 certificate enrollment request.\n- The full set of certificates is used to validate the CA signature\n on SCEP responses.", + ) + csr_profile: EveconfigCSRProfile | None = Field(default=None, alias="csrProfile") + + +class GooglerpcStatus(BaseModel): + code: int | None = None + message: str | None = None + details: list[ProtobufAny] | None = None + + +class CloudVersionResp(BaseModel): + version: CloudVersion | None = None + result: ZsrvResponse | None = None + + +class EventQueryResponse(BaseModel): + list_: list[EventQueryResponseItem] = Field( + ..., alias="list", description="Event Query response list" + ) + next: Cursor + summary: Summary | None = None + + +class HealthServiceResp(BaseModel): + health_service: HealthServiceSubType | None = Field( + default="Publisher", alias="healthService" + ) + hresult: ZsrvResponse | None = None + health_desc: list[HealthDesc] | None = Field(default=None, alias="healthDesc") + + +class PolicyDocVersionResp(BaseModel): + result: ZsrvResponse | None = None + pinfo: PolicyDocVersion | None = None + plist: PolicyDocVersionList | None = None + + +class CommonProxyConfig(BaseModel): + network_proxy_enable: bool | None = Field( + default=None, + alias="networkProxyEnable", + title="enable network level proxy in the form of WPAD", + ) + proxies: list[CommonProxyServer] | None = Field( + default=None, title="dedicated per protocol information" + ) + exceptions: str | None = Field(default=None, title="exceptions separated by commas") + pacfile: str | None = Field( + default=None, title="or pacfile can be in place of others\nbase64 encoded" + ) + network_proxy_url: str | None = Field( + default=None, alias="networkProxyURL", title="Direct URL for wpad.dat download" + ) + proxy_cert_pem: list[Base64Str] | None = Field( + default=None, + alias="proxyCertPEM", + title="Uploaded proxy certificate or certificate chain for MITM\nthis may be needed either in explicit (has ProxyServer items), automatic\n(networkProxyEnable) or transparent (network layer not aware of proxy)", + ) + + +class ConfigBaseOSConfig(BaseModel): + uuidandversion: ConfigUUIDandVersion | None = None + drives: list[ConfigDrive] | None = Field( + default=None, + description="volumeID will supersede drives. Drives still\nexist for backward compatibility.\nDrives will be deprecated in the future.", + ) + activate: bool | None = None + base_os_version: str | None = Field(default=None, alias="baseOSVersion") + volume_id: str | None = Field(default=None, alias="volumeID") + + +class ConfigCellularConfig(BaseModel): + apn: str | None = Field( + default=None, + alias="APN", + description='APN string - by default it is "internet".\nTO BE DEPRECATED: Fill connection arguments inside access_points instead.\nIf access_points is non-empty, then APN field is ignored.', + ) + probe: ConfigCellularConnectivityProbe | None = None + location_tracking: bool | None = Field( + default=None, + alias="locationTracking", + description="Some LTE modems have GNSS receiver integrated and can be used for device\nlocation tracking.\nEnable this option to have location info periodically obtained from this\nmodem and published to controller and to applications.", + ) + access_points: list[ConfigCellularAccessPoint] | None = Field( + default=None, + alias="accessPoints", + description="Parameters to apply for connecting to cellular networks.\nConfigured separately for every SIM card inserted into the modem.", + ) + activated_sim_slot: int | None = Field( + default=None, + alias="activatedSimSlot", + description="Select SIM card slot to activate.\nCurrently, EVE support only single-standby SIM card mode.\n0 - unspecified (leave the currently activated)\n1 - activate the first SIM slot\n2 - activate the second SIM slot\netc.", + ) + + +class ConfigNetworkInstanceLispConfig(BaseModel): + lisp_m_ss: list[ConfigZcServicePoint] | None = Field(default=None, alias="LispMSs") + lisp_instance_id: int | None = Field(default=None, alias="LispInstanceId") + allocate: bool | None = None + exportprivate: bool | None = None + allocationprefix: Base64Str | None = None + allocationprefixlen: int | None = None + experimental: bool | None = Field( + default=None, title="various configuration to dataPlane, lispers.net vs Zededa" + ) + + +class ConfigNetworkInstanceOpaqueConfig(BaseModel): + oconfig: str | None = None + lisp_config: ConfigNetworkInstanceLispConfig | None = Field( + default=None, alias="lispConfig" + ) + type: ConfigZNetworkOpaqueConfigType | None = "ZNetOConfigVPN" + + +class ConfigSnapshotConfig(BaseModel): + active_snapshot: str | None = Field( + default=None, + alias="activeSnapshot", + description="active_snapshot is the id of the snapshot which is expected to be used by\nthe application.\nIt may be empty if no snapshot expected to be used.", + ) + rollback_cmd: ConfigInstanceOpsCmd | None = Field(default=None, alias="rollbackCmd") + max_snapshots: int | None = Field( + default=None, + alias="maxSnapshots", + description="max_snapshots is the maximum number of snapshots that can be stored for the\napplication instance.\nIf the number of snapshots exceeds the max_snapshots, the oldest snapshot\nwill be deleted. It's so even if the oldest snapshot is the active one.\nAs an example, let's consider the following scenario:\nThe value of max_snapshots is 1. Then a snapshot is created. VM continues\nworking. Then a rollback to the snapshot created earlier is requested, so\nthe first snapshot becomes active. EVE performs the rollback. Then the\ncontroller requests a new snapshot be created. EVE is configured to store\nonly 1 snapshot, hence the first one should be deleted.", + ) + snapshots: list[ConfigSnapshotDesc] | None = Field( + default=None, + description="snapshots is the list of snapshots of the application instance.\nIt is used to synchronize the list of snapshots between the controller and\nthe device. This can be used to provide an id of a new snapshot or to\ndelete an existing snapshot.\nTo provide a new snapshot id, the controller should send a message with\nthe new snapshot id in the snapshots list. The id is generated by\nController in this case. (It can be also generated by EVE, if the snapshot\ncreation is triggered locally. In this case the ID will be returned in the\nZInfoApp.snapshots[].id field, see the `info.proto` file).\nWorth noting that the snapshot creation is not triggered by the appearance\nof the snapshot id in the available_snapshots list. The snapshot creation\nwill be triggered by the behaviour defined in the snapshot type field.\nTo delete a snapshot, the controller should send a message that does not\ncontain the snapshot id in the available_snapshots list. The device will\ndelete the snapshot with the absent id.", + ) + + +class ConfigVolume(BaseModel): + uuid: str | None = None + origin: ConfigVolumeContentOrigin | None = None + protocols: list[ConfigVolumeAccessProtocols] | None = Field( + default=None, + title="describes all the different ways how this Volume can\nbe offered to Tasks", + ) + generation_count: str | None = Field( + default=None, + alias="generationCount", + title="change in generationCount indicates that the mutated volume needs to be\npurged and built from scratch. This is a generalization of the purge\ncommand for an application instance", + ) + maxsizebytes: str | None = Field( + default=None, + description="miscellaneous attributes of the Volume\nmaxSizeBytes Used for capping resource consumption in EVE.\nmaxSizeBytes indicates the maximum size of the volume.", + ) + readonly: bool | None = None + display_name: str | None = Field(default=None, alias="displayName") + clear_text: bool | None = Field(default=None, alias="clearText") + target: ConfigTarget | None = "TgtUnknown" + designated_node_id: str | None = Field( + default=None, + alias="designatedNodeId", + title="To inform the edge-node if the device receiving this Volume is\nresponsible for volume creation, convert PVC, or not", + ) + + +class ConfigWirelessConfig(BaseModel): + type: EvecommonWirelessType | None = "TypeNOOP" + cellular_cfg: list[ConfigCellularConfig] | None = Field( + default=None, alias="cellularCfg" + ) + wifi_cfg: list[ConfigWifiConfig] | None = Field(default=None, alias="wifiCfg") + + +class ConfigAppInstanceConfig(BaseModel): + uuidandversion: ConfigUUIDandVersion | None = None + displayname: str | None = None + fixedresources: ConfigVmConfig | None = None + drives: list[ConfigDrive] | None = Field( + default=None, + description="VolumeRefs, if supported by EVE, will supersede drives. Drives still\nexist for backward compatibility.\nDrives will be deprecated in the future.\nThe order here is critical because they are presented to the VM or\ncontainer in the order they are listed, e.g., the first VM image\nwill be the root disk.", + ) + activate: bool | None = Field( + default=None, + description="Set activate to start the application instance; clear it to stop it.", + ) + interfaces: list[ConfigNetworkAdapter] | None = Field( + default=None, + description="NetworkAdapter are virtual adapters assigned to the application\nThe order here is critical because they are presented to the VM or\ncontainer in the order they are listed, e.g., the first NetworkAdapter\nwill appear in a Linux VM as eth0. Also, the MAC address is determined\nbased on the order in the list.", + ) + adapters: list[ConfigAdapter] | None = Field( + default=None, + title="Physical adapters such as eth1 or USB controllers and GPUs assigned\nto the application instance.\nThe Name in Adapter should be set to PhysicalIO.assigngrp", + ) + restart: ConfigInstanceOpsCmd | None = None + purge: ConfigInstanceOpsCmd | None = None + user_data: str | None = Field( + default=None, + alias="userData", + description='App Instance initialization configuration data provided by user\nThis will be used as "user-data" in cloud-init\nEmpty string will indicate that cloud-init is not required\nIt is also used to carry environment variables for containers.\nXXX will be deprecated and replaced by the cipherData below.', + ) + remote_console: bool | None = Field( + default=None, + alias="remoteConsole", + description="Config flag if the app-instance should be made accessible\nthrough a remote console session established by the device.", + ) + cipher_data: CommonCipherBlock | None = Field(default=None, alias="cipherData") + collect_stats_ip_addr: str | None = Field( + default=None, + alias="collectStatsIPAddr", + title="The static IP address assigned on the NetworkAdapter which App Container\nstats collection uses. If the 'collectStatsIPAddr' is not empty and valid,\nit enables the container stats collection for this App.\nDuring App instance creation, after user enables the collection of stats\nfrom App, cloud needs to make sure at least one 'Local' type of Network-Instance\nis assigned to the App interface, and based on the subnet of the NI, statically\nassign an IP address on the same subnet, e.g. 10.1.0.100", + ) + volume_ref_list: list[ConfigVolumeRef] | None = Field( + default=None, + alias="volumeRefList", + description="The volumes to be attached to the app-instance.\nThe order here is critical because they are presented to the VM or\ncontainer in the order they are listed, e.g., the first VM image\nwill be the root disk.\nNote that since the name volumeRef was used before and deprecated\npython protobuf seems to require that we use a different name.", + ) + meta_data_type: ConfigMetaDataType | None = Field( + default="MetaDataDrive", alias="metaDataType" + ) + profile_list: list[str] | None = Field( + default=None, + alias="profileList", + description="profile_list is a set of strings which can be used to control which sets\nof applications are run. Combined with the activate flag above.\nIf the profile list is empty it means wildcard; application will\nbe started independent of the global or local profile specified for the\ndevice.", + ) + start_delay_in_seconds: int | None = Field( + default=None, + alias="startDelayInSeconds", + description="start_delay_in_seconds - Applicable only when EVE boots up fresh and starts\napplications for the first time after boot up. This is the amount of time that\nEVE waits (after boot finish) before starting each application.\nDefault value 0 -> start application immediately.\nNon-Zero value -> After EVE is ready to start application instance, wait for the\ngiven amount of time before starting the respective application instance.", + ) + service: bool | None = Field( + default=None, + title="service - run app instance as a service container in the host/dom0\nwill override default capabilities with configuration\ndefined in org.mobyproject.config label of image provided by linuxkit", + ) + cloud_init_version: int | None = Field( + default=None, + alias="cloudInitVersion", + description="All changes to the cloud-init config are tracked using this version field -\nonce the version is changed cloud-init tool restarts in a guest.", + ) + snapshot: ConfigSnapshotConfig | None = None + patch_ref: ConfigPatchEnvelopeRef | None = Field(default=None, alias="patchRef") + designated_node_id: str | None = Field( + default=None, + alias="designatedNodeId", + description="Designated Node Id is used for cluster nodes to determine placement of\nthe AppInstance when an EdgeNodeCluster config is present.\nSee affinity below to set the desired node affinity.\neg. Preferred or Required.", + ) + vm_resolution: str | None = Field( + default=None, + alias="vmResolution", + description="Custom resolution applies to VM that is running in FML mode only.", + ) + runtime_type: ConfigAppRuntimeType | None = Field( + default="APP_RUNTIME_TYPE_UNSPECIFIED", alias="runtimeType" + ) + affinity: ConfigAffinityType | None = "AFFINITY_TYPE_PREFERRED" + + +class ConfigNetworkConfig(BaseModel): + id: str | None = None + type: CommonNetworkType | None = "NETWORKTYPENOOP" + ip: Commonipspec | None = None + dns: list[CommonZnetStaticDNSEntry] | None = None + ent_proxy: CommonProxyConfig | None = Field(default=None, alias="entProxy") + wireless: ConfigWirelessConfig | None = None + mtu: int | None = Field( + default=None, + description='Maximum transmission unit (MTU) to set on the associated network adapter(s).\nThis is the largest IP packet that the underlying link can and is allowed to carry.\nThis does not include the L2 header size (e.g. Ethernet header or a VLAN tag size).\nThe value is a 16-byte unsigned integer, representing the MTU size in bytes.\nThe minimum accepted value for the MTU is 1280 (RFC 8200, "IPv6 minimum link MTU").\nIf not defined (zero value), EVE will set the default MTU size, which depends\non the network adapter type. Ethernet and WiFi adapters default to 1500 bytes,\nwhile cellular modems typically receive their MTU value from the network provider\n(which EVE will use unless user overrides the MTU value).', + ) + + +class ConfigNetworkInstanceConfig(BaseModel): + uuidandversion: ConfigUUIDandVersion | None = None + displayname: str | None = None + inst_type: ConfigZNetworkInstType | None = Field( + default="ZNetInstFirst", alias="instType" + ) + activate: bool | None = Field( + default=None, + description="activate\n - True by default. If set to false ( deactivate), the network instance\n configuration is downloaded to the device, but the network instance\n itself is not created on the device.", + ) + port: ConfigAdapter | None = None + stp: ConfigSpanningTreeProtocol | None = None + cfg: ConfigNetworkInstanceOpaqueConfig | None = None + ip_type: ConfigAddressType | None = Field(default="First", alias="ipType") + ip: Commonipspec | None = None + dns: list[CommonZnetStaticDNSEntry] | None = Field( + default=None, title="static DNS entry, if we are running DNS/DHCP service" + ) + propagate_connected_routes: bool | None = Field( + default=None, + alias="propagateConnectedRoutes", + description="Enable to use DHCP to automatically propagate routes for port subnets\ninto applications connected to them indirectly through local network instances.\nThis option is only valid for local network instances. For other types\nof network instances, it will be ignored.", + ) + static_routes: list[EveconfigIPRoute] | None = Field( + default=None, + alias="staticRoutes", + description="List of IP routes statically added to the network instance routing table.\nStatically routed subnets are also propagated to connected applications\nusing DHCP, with gateway set to the network instance bridge IP if it is\noutside of the network instance subnet.\n\nIP route gateway may point to an external endpoint (provided that network\ninstance is not air-gapped), or to an IP address of one of the applications\nconnected to the network instance. For an external gateway, user may specify\noutput port label instead of the IP address. EVE will automatically determine\nthe gateway IP address (based on the port config statically configured or received\nvia DHCP).\n\nStatic routes are handled independently from connected routes. While connected\nroutes are propagated to applications only if enabled by propagate_connected_routes,\nstatic routes are always propagated. Both connected and statically configured\nroutes can be propagated at the same time, there are no restrictions for using both.\n\nNote that the default route (with the bridge IP as the gateway) is automatically\npropagated to connected applications, unless network instance is air-gapped\n(without port) or all NI ports are app-shared (not management) and neither\nof them has a default route. In both cases, it is possible to enforce default\nroute propagation by configuring a static default route for the network instance.\n\nFor more info on static and connected routes please refer to:\nhttps://wiki.lfedge.org/display/EVE/Connected+and+Static+IP+Route\n\nThis option is only valid for local network instances. For other types\nof network instances, it will be ignored.", + ) + mtu: int | None = Field( + default=None, + description="Maximum transmission unit (MTU) to set for the network instance and all application\ninterfaces connected to it.\nThis is the largest IP packet that the network instance is allowed to carry.\nThis does not include the L2 header size (e.g. Ethernet header or a VLAN tag size).\nThe value is a 16-byte unsigned integer, representing the MTU size in bytes.\nThe minimum accepted value for the MTU is 1280 (RFC 8200, \"IPv6 minimum link MTU\").\nIf not defined (zero value), EVE will set the MTU to the default value of 1500 bytes.\nOn the host side, MTU is set to interfaces by EVE. On the guest (app) side,\nthe responsibility to set the MTU lies either with EVE or with the user/app, depending on\nthe network instance, app type and the type of interfaces used (local or switch,\nVM or container, virtio or emulated).\nFor container applications running inside an EVE-created shim-VM, EVE initializes\nthe MTU of interfaces during shim-VM boot. Furthermore, interfaces connected\nto local network instances will have their MTUs automatically updated if there is\na change in MTU configuration. To update the MTU of interfaces connected to switch\nnetwork instances, the user may run an external DHCP server in the network and publish\nMTU changes via DHCP option 26 (the DHCP client run by EVE inside shim-VM will pick it up\nand apply it).\nIn the case of VM applications, it is mostly the responsibility of the app/user to set\nand keep the MTUs up-to-date.\nIf device provides HW-assisted virtualization capabilities, EVE will connect VM with\nnetwork instances using para-virtualized virtio interfaces, which allow to propagate MTU\nvalue from the host to the guest. If the virtio driver used by the app supports the MTU\npropagation (VIRTIO_NET_F_MTU feature flag is set), the initial MTU values will be set\nusing virtio (regardless of the network instance type).\nTo support MTU update for interfaces connected to local network instances, the app can\nrun a DHCP client and receive the latest MTU via DHCP option 26. For switch network\ninstances, the user can run his own external DHCP server in the network with the MTU\noption configured.\nPlease note that application traffic leaving or entering the device via a network\nadapter associated with the network instance is additionally limited by MTU values\nof NI ports, configured within their NetworkConfig objects (refer to netconfig.proto).\nIf the configured network instance MTU is higher than MTU of any of the NI ports,\nEVE will flag the network instance with an error and use the lowest MTU among\nall the NI ports for the network instance instead. This is to prevent apps from sending\npackets exceeding the path MTU. Packets entering NI via port with a higher MTU and with\nsize exceeding the NI MTU will get fragmented inside EVE (if allowed by IP header).\nBy default (if MTU is not configured by the user, i.e. 'mtu' is zero), EVE uses 1500\nas MTU for air-gapped network instances and the lowest MTU among NI ports for NIs with\nexternal connectivity.", + ) + disable_flowlog: bool | None = Field( + default=None, + alias="disableFlowlog", + description="Disable flow logging for this network instance.\nWhen flow logging is enabled, EVE periodically records all application TCP and UDP\nflows. A flow record includes the application UUID, VIF name, open/close timestamps,\nsource/destination IP/port/protocol 5-tuple, and packet and byte counters.\nAdditionally, EVE records every DNS request made by an application, including\nthe request time, the hostname being resolved, and the returned IP address(es).\nThe flow logging API can be found in proto/config/flowlog/flowlog.proto\nIf flow logging is not needed, it is recommended to disable this feature as it\ncan potentially generate a large amount of data, which is then uploaded to the controller.\nDepending on the implementation, it may also introduce additional packet processing\noverhead.", + ) + vlan_access_ports: list[ConfigVlanAccessPort] | None = Field( + default=None, + alias="vlanAccessPorts", + description="VLAN access ports configured for a switch network instance.\nFor other types of network instances, this option is ignored.\nThis setting applies to physical network ports attached to the network instance.\nVLAN configuration for application interfaces is applied separately via AppInstanceConfig\n(see NetworkAdapter.access_vlan_id).", + ) + forward_lldp: bool | None = Field( + default=None, + alias="forwardLldp", + description="Enables forwarding of LLDP (Link Layer Discovery Protocol) frames across this\nnetwork instance.\nLLDP is used by devices to advertise identity and capabilities to directly\nconnected neighbors, and is often required for topology discovery and network\nmanagement tools.\nWhen enabled, LLDP frames (EtherType 0x88cc) are not dropped or suppressed\nby the forwarding plane.", + ) + + +class ConfigEdgeDevConfig(BaseModel): + id: ConfigUUIDandVersion | None = None + apps: list[ConfigAppInstanceConfig] | None = None + networks: list[ConfigNetworkConfig] | None = None + datastores: list[ConfigDatastoreConfig] | None = None + base: list[ConfigBaseOSConfig] | None = Field( + default=None, + description="OBSOLETE - base. Use baseos instead. Controller should fill this for\nbackward compatibility till all the Older Eve images are no longer\nsupported.", + ) + reboot: ConfigDeviceOpsCmd | None = None + backup: ConfigDeviceOpsCmd | None = None + config_items: list[ConfigConfigItem] | None = Field( + default=None, alias="configItems" + ) + system_adapter_list: list[ConfigSystemAdapter] | None = Field( + default=None, + alias="systemAdapterList", + description="systemAdapterList - List of DeviceNetworkAdapters. Only Network\n adapters ( Ex: eth0, wlan1 etc ) have a corresponding SystemAdapter.\nnon-Network adapters do not have systemadapters.", + ) + device_io_list: list[ConfigPhysicalIO] | None = Field( + default=None, + alias="deviceIoList", + title="deviceIoList - List of Physical Adapters. Includes both Network\n Adapters and Non-Network Adapters ( USB / Com etc )", + ) + manufacturer: str | None = Field( + default=None, title="Override dmidecode info if set" + ) + product_name: str | None = Field(default=None, alias="productName") + network_instances: list[ConfigNetworkInstanceConfig] | None = Field( + default=None, alias="networkInstances" + ) + cipher_contexts: list[CommonCipherContext] | None = Field( + default=None, + alias="cipherContexts", + title="controller supplies a list of cipher contexts,\ncontaining certificate and other details, to be\nused for sensitive data decryption", + ) + content_info: list[ConfigContentTree] | None = Field( + default=None, + alias="contentInfo", + description="These images aka ContentTrees and Volumes should be created by EVE\nindependently of any application usage.\nApplication instances will refer to the volumes.", + ) + volumes: list[ConfigVolume] | None = None + controllercert_confighash: str | None = Field( + default=None, + alias="controllercertConfighash", + description="This field is used by the device to detect when it needs to re-download\nthe controller certs using the /certs API endpoint.\nThe controller just needs to ensure this value changes when it wants the\ndevice to re-fetch the controller certs, for instance by having it\nbe a hash of all of the controller certificates.", + ) + maintenance_mode: bool | None = Field( + default=None, + alias="maintenanceMode", + description="deprecated 23;\nIf maintence_mode is set the device will operate in a limited mode e.g.,\nnot start applications etc as to enable inspection of its state and\nrecover from bad state.", + ) + controller_epoch: str | None = Field( + default=None, + alias="controllerEpoch", + title="controller_epoch indicates current epoch of config\nif we set new epoch, EVE sends all info messages to controller\nit captures when a new controller takes over and needs all the info be resent", + ) + baseos: ConfigBaseOS | None = None + global_profile: str | None = Field( + default=None, + alias="globalProfile", + description="global_profile, if set, controls set of applications which will run.\nThe Activate=true app instances which have this profile in their profile_list\nwill run. If the global_profile is not set, then the profile_list is not\nused to gate the application instances.", + ) + local_profile_server: str | None = Field( + default=None, + alias="localProfileServer", + title="local_profile_server, if set, indicates a hostname/IPv4/IPv6 address and\noptional port number at which EVE will request for a local profile.\nIf such a local profile is retrieved, it will override the global_profile.\nThe syntax follows the usual URL server name syntax thus the following\nare example valid strings:\n [fe80::1]:1234\n 10.1.1.1:1234\n hostname:1234\n [fe80::1]\n 10.1.1.1\n hostname\nIf the port number is not specified, it will default to 8888", + ) + profile_server_token: str | None = Field( + default=None, + alias="profileServerToken", + description="Together with a local_profile_server one can specify a\nprofile_server_token. EVE must verify that the response from the\nlocal_profile_server contains this token.", + ) + vlans: list[ConfigVlanAdapter] | None = Field( + default=None, + description="A list of VLAN sub-interfaces configured for EVE management traffic and\nfor local network instances.", + ) + bonds: list[EveconfigBondAdapter] | None = Field( + default=None, + description="A list of bond interfaces (LAGs) aggregating physical network adapters.", + ) + edgeview: ConfigEdgeViewConfig | None = None + disks: ConfigDisksConfig | None = None + shutdown: ConfigDeviceOpsCmd | None = None + device_name: str | None = Field(default=None, alias="deviceName") + project_name: str | None = Field(default=None, alias="projectName") + project_id: str | None = Field(default=None, alias="projectId") + enterprise_name: str | None = Field(default=None, alias="enterpriseName") + enterprise_id: str | None = Field(default=None, alias="enterpriseId") + config_timestamp: AwareDatetime | None = Field( + default=None, + alias="configTimestamp", + description="Timestamp updated by controller whenever device config is modified.\nUsed by EVE to properly order configurations that originate at the same controller\nbut get submitted to device through different ways:\n /config API vs. initial config for bootstrapping vs. USB-based config override etc.\nThis ensures that device will not accidentally revert back to an older configuration.\nDoes not apply to legacy override.json and usb.json mechanisms.", + ) + loc_config: ConfigLOCConfig | None = Field(default=None, alias="locConfig") + patch_envelopes: list[ConfigEvePatchEnvelope] | None = Field( + default=None, alias="patchEnvelopes" + ) + cluster: EveconfigEdgeNodeCluster | None = None + pnacs: list[ConfigPNAC] | None = Field( + default=None, + description="Port access control configuration per PhysicalIO port.", + ) + scep_profiles: list[EveconfigSCEPProfile] | None = Field( + default=None, + alias="scepProfiles", + description="SCEP (Simple Certificate Enrollment Protocol) profiles.\nCurrently used only in conjunction with 802.1X to enroll certificates\nwhich are then used for port-based authentication.\nSupport for additional certificate enrollment protocols may be added\nin the future, each with its own configuration type and profile list.", + ) + + +class ConfigServiceResp(BaseModel): + config: ConfigEdgeDevConfig | None = None + created_at: AwareDatetime | None = Field(default=None, alias="createdAt") + updated_at: AwareDatetime | None = Field(default=None, alias="updatedAt") + read_at: AwareDatetime | None = Field(default=None, alias="readAt") + result: ZsrvResponse | None = None + last_known_status: LastKnownStatus | None = Field( + default=None, alias="lastKnownStatus" + ) + pconfig: str | None = Field(default=None, title="protobuf stringified") + next_config: ConfigEdgeDevConfig | None = Field(default=None, alias="nextConfig") + next_config_hash: str | None = Field(default=None, alias="nextConfigHash") + latest_config: ConfigEdgeDevConfig | None = Field( + default=None, alias="latestConfig" + ) + latest_config_hash: str | None = Field(default=None, alias="latestConfigHash") + local_operator_console_blob_list: LocalOperatorConsoleBlobList | None = Field( + default=None, alias="localOperatorConsoleBlobList" + ) + + +ConfigDisksConfig.model_rebuild() diff --git a/packages/zedcloud/src/zedcloud/_generated/models/iam.py b/packages/zedcloud/src/zedcloud/_generated/models/iam.py new file mode 100644 index 0000000..439e97b --- /dev/null +++ b/packages/zedcloud/src/zedcloud/_generated/models/iam.py @@ -0,0 +1,1953 @@ +# Generated by scripts/generate_from_openapi.py from zedge_user_service.swagger.json +# Do not edit by hand — re-run: uv run python scripts/generate_from_openapi.py + +from __future__ import annotations +from enum import Enum +from pydantic import AwareDatetime, Base64Str, BaseModel, Field, constr +from typing import Any + + +class AAAFailureResponseCredentialChangeCause(Enum): + field__invalid__ = "__INVALID__" + aaa_failure_response_credential_change_cause_unknown = ( + "AAAFailureResponseCredentialChangeCauseUnknown" + ) + aaa_failure_response_credential_change_cause_authentication_failure = ( + "AAAFailureResponseCredentialChangeCauseAuthenticationFailure" + ) + aaa_failure_response_credential_change_cause_permission_denied = ( + "AAAFailureResponseCredentialChangeCausePermissionDenied" + ) + aaa_failure_response_credential_change_cause_internal_server_error = ( + "AAAFailureResponseCredentialChangeCauseInternalServerError" + ) + aaa_failure_response_credential_change_cause_already_exists = ( + "AAAFailureResponseCredentialChangeCauseAlreadyExists" + ) + aaa_failure_response_credential_change_cause_password_too_simple = ( + "AAAFailureResponseCredentialChangeCausePasswordTooSimple" + ) + aaa_failure_response_credential_change_cause_not_found = ( + "AAAFailureResponseCredentialChangeCauseNotFound" + ) + + +class AAAFailureResponseGenerateTokenCause(Enum): + field__invalid__ = "__INVALID__" + aaa_failure_response_generate_token_cause_user_unknown = ( + "AAAFailureResponseGenerateTokenCauseUserUnknown" + ) + aaa_failure_response_generate_token_cause_exception = ( + "AAAFailureResponseGenerateTokenCauseException" + ) + aaa_failure_response_generate_token_cause_enterprise_unknown = ( + "AAAFailureResponseGenerateTokenCauseEnterpriseUnknown" + ) + aaa_failure_response_generate_token_cause_forbidden = ( + "AAAFailureResponseGenerateTokenCauseForbidden" + ) + aaa_failure_response_generate_token_cause_internal_error = ( + "AAAFailureResponseGenerateTokenCauseInternalError" + ) + + +class AAAFailureResponseLoginCause(Enum): + field__invalid__ = "__INVALID__" + aaa_failure_response_login_cause_garbage = "AAAFailureResponseLoginCauseGarbage" + aaa_failure_response_login_cause_realm_unknown = ( + "AAAFailureResponseLoginCauseRealmUnknown" + ) + aaa_failure_response_login_cause_user_unknown = ( + "AAAFailureResponseLoginCauseUserUnknown" + ) + aaa_failure_response_login_cause_user_suspended = ( + "AAAFailureResponseLoginCauseUserSuspended" + ) + aaa_failure_response_login_cause_password_mismatch = ( + "AAAFailureResponseLoginCausePasswordMismatch" + ) + aaa_failure_response_login_cause_challenge_mismatch = ( + "AAAFailureResponseLoginCauseChallengeMismatch" + ) + aaa_failure_response_login_cause_no_such_credentials = ( + "AAAFailureResponseLoginCauseNoSuchCredentials" + ) + aaa_failure_response_login_cause_exception = "AAAFailureResponseLoginCauseException" + aaa_failure_response_login_cause_enterprise_unknown = ( + "AAAFailureResponseLoginCauseEnterpriseUnknown" + ) + aaa_failure_response_login_cause_scheme_unknown = ( + "AAAFailureResponseLoginCauseSchemeUnknown" + ) + aaa_failure_response_login_cause_user_signedup_state = ( + "AAAFailureResponseLoginCauseUserSignedupState" + ) + aaa_failure_response_login_cause_role_unknown = ( + "AAAFailureResponseLoginCauseRoleUnknown" + ) + aaa_failure_response_login_cause_update_last_login_time_failed = ( + "AAAFailureResponseLoginCauseUpdateLastLoginTimeFailed" + ) + aaa_failure_response_login_cause_enterprise_inactive = ( + "AAAFailureResponseLoginCauseEnterpriseInactive" + ) + aaa_failure_response_login_cause_user_inactive = ( + "AAAFailureResponseLoginCauseUserInactive" + ) + aaa_failure_response_login_cause_enterprise_signedup_state = ( + "AAAFailureResponseLoginCauseEnterpriseSignedupState" + ) + aaa_failure_response_login_cause_enterprise_unknown_state = ( + "AAAFailureResponseLoginCauseEnterpriseUnknownState" + ) + aaa_failure_response_login_cause_user_unknown_state = ( + "AAAFailureResponseLoginCauseUserUnknownState" + ) + aaa_failure_response_login_cause_enterprise_created_state = ( + "AAAFailureResponseLoginCauseEnterpriseCreatedState" + ) + aaa_failure_response_login_cause_user_created_state = ( + "AAAFailureResponseLoginCauseUserCreatedState" + ) + aaa_failure_response_login_cause_password_mismatch_and_max_failed_pwd_attempt = ( + "AAAFailureResponseLoginCausePasswordMismatchAndMaxFailedPwdAttempt" + ) + aaa_failure_response_login_cause_password_decryption_failed = ( + "AAAFailureResponseLoginCausePasswordDecryptionFailed" + ) + aaa_failure_response_login_cause_password_expired = ( + "AAAFailureResponseLoginCausePasswordExpired" + ) + totp_error = "TOTPError" + totp_invalid_code = "TOTPInvalidCode" + aaa_failure_response_login_cause_empty_subject = ( + "AAAFailureResponseLoginCauseEmptySubject" + ) + totp_invalid_code_and_max_failed_totp_attempt = ( + "TOTPInvalidCodeAndMaxFailedTOTPAttempt" + ) + + +class AAAFailureResponseLogoutCause(Enum): + field__invalid__ = "__INVALID__" + aaa_failure_response_logout_cause_unknown = "AAAFailureResponseLogoutCauseUnknown" + aaa_failure_response_logout_cause_garbage = "AAAFailureResponseLogoutCauseGarbage" + aaa_failure_response_logout_cause_expired = "AAAFailureResponseLogoutCauseExpired" + aaa_failure_response_logout_cause_no_such_session = ( + "AAAFailureResponseLogoutCauseNoSuchSession" + ) + + +class AAAFailureResponseQueryAllSessionDetailsCause(Enum): + field__invalid__ = "__INVALID__" + aaa_failure_response_query_all_session_details_cause_unknown = ( + "AAAFailureResponseQueryAllSessionDetailsCauseUnknown" + ) + aaa_failure_response_query_all_session_details_cause_unauthorized_access = ( + "AAAFailureResponseQueryAllSessionDetailsCauseUnauthorizedAccess" + ) + aaa_failure_response_query_all_session_details_cause_user_unknown = ( + "AAAFailureResponseQueryAllSessionDetailsCauseUserUnknown" + ) + + +class AAAFailureResponseSessionDetailsCause(Enum): + field__invalid__ = "__INVALID__" + aaa_failure_response_session_details_cause_unknown = ( + "AAAFailureResponseSessionDetailsCauseUnknown" + ) + aaa_failure_response_session_details_cause_no_such_session = ( + "AAAFailureResponseSessionDetailsCauseNoSuchSession" + ) + + +class AAAFailureResponseType(Enum): + field__invalid__ = "__INVALID__" + aaa_failure_response_type_none = "AAAFailureResponseTypeNone" + aaa_failure_response_type_login = "AAAFailureResponseTypeLogin" + aaa_failure_response_type_refresh = "AAAFailureResponseTypeRefresh" + aaa_failure_response_type_logout = "AAAFailureResponseTypeLogout" + aaa_failure_response_type_session_details = "AAAFailureResponseTypeSessionDetails" + aaa_failure_response_type_credential_change = ( + "AAAFailureResponseTypeCredentialChange" + ) + aaa_failure_response_type_query_all_session_details = ( + "AAAFailureResponseTypeQueryAllSessionDetails" + ) + aaa_failure_response_type_generate_token = "AAAFailureResponseTypeGenerateToken" + + +class AAAFailureTokenRefreshCause(Enum): + field__invalid__ = "__INVALID__" + aaa_failure_token_refresh_cause_expired = "AAAFailureTokenRefreshCauseExpired" + aaa_failure_token_refresh_cause_unknown = "AAAFailureTokenRefreshCauseUnknown" + + +class AAALoginModeResponseMode(Enum): + aaa_login_mode_local = "AAALoginModeLocal" + aaa_login_mode_external = "AAALoginModeExternal" + + +class AAANotifyResponseType(Enum): + field__invalid__ = "__INVALID__" + aaa_notify_type_login = "AAANotifyTypeLogin" + aaa_notify_type_logout = "AAANotifyTypeLogout" + + +class AAARedirectResponse(BaseModel): + redirect_url: str | None = Field(default=None, alias="redirectUrl") + code: int | None = None + + +class AAARequestLoginForgotPassword(BaseModel): + username: str | None = None + + +class AAAResponseType(Enum): + field__invalid__ = "__INVALID__" + aaa_response_type_success = "AAAResponseTypeSuccess" + aaa_response_type_failure = "AAAResponseTypeFailure" + aaa_response_type_notify = "AAAResponseTypeNotify" + aaa_response_type_enterprise_signup = "AAAResponseTypeEnterpriseSignup" + aaa_response_type_admin_user_signup = "AAAResponseTypeAdminUserSignup" + aaa_response_type_redirect = "AAAResponseTypeRedirect" + aaa_response_type_login_mode = "AAAResponseTypeLoginMode" + totp_enrolment = "TOTPEnrolment" + enrol_totp = "EnrolTOTP" + + +class AAASuccessResponseCredentialChange(BaseModel): + credential_id: str | None = Field(default=None, alias="credentialId") + + +class AAASuccessResponseQueryAllSessionDetailsCause(Enum): + field__invalid__ = "__INVALID__" + ok = "OK" + failed = "FAILED" + + +class AAASuccessResponseType(Enum): + field__invalid__ = "__INVALID__" + aaa_success_response_type_login = "AAASuccessResponseTypeLogin" + aaa_success_response_type_refresh = "AAASuccessResponseTypeRefresh" + aaa_success_response_type_permisson = "AAASuccessResponseTypePermisson" + aaa_success_response_type_logout = "AAASuccessResponseTypeLogout" + aaa_success_response_type_session_details = "AAASuccessResponseTypeSessionDetails" + aaa_success_response_type_credential_change = ( + "AAASuccessResponseTypeCredentialChange" + ) + aaa_success_response_type_query_all_session_details = ( + "AAASuccessResponseTypeQueryAllSessionDetails" + ) + aaa_success_response_type_generate_token = "AAASuccessResponseTypeGenerateToken" + + +class AAAFrontendGenerateTokenResponseCause(Enum): + unspecified = "UNSPECIFIED" + ok = "OK" + user_unknown = "USER_UNKNOWN" + exception = "EXCEPTION" + + +class AAAFrontendLoginModeRequest(BaseModel): + username: str | None = None + + +class AAAFrontendLoginModeResponseMode(Enum): + local = "LOCAL" + external = "EXTERNAL" + + +class AAAFrontendLoginResponseCause(Enum): + unspecified = "UNSPECIFIED" + ok = "OK" + unknown = "UNKNOWN" + credentials = "CREDENTIALS" + suspended = "SUSPENDED" + exception = "EXCEPTION" + inactive = "INACTIVE" + signedupstate = "SIGNEDUPSTATE" + unknownstate = "UNKNOWNSTATE" + createdstate = "CREATEDSTATE" + user_unknown = "USER_UNKNOWN" + enterprise_unknown = "ENTERPRISE_UNKNOWN" + role_unknown = "ROLE_UNKNOWN" + user_unknownstate = "USER_UNKNOWNSTATE" + user_inactive = "USER_INACTIVE" + user_signedupstate = "USER_SIGNEDUPSTATE" + user_createdstate = "USER_CREATEDSTATE" + enterprise_unknownstate = "ENTERPRISE_UNKNOWNSTATE" + enterprise_inactive = "ENTERPRISE_INACTIVE" + enterprise_signedupstate = "ENTERPRISE_SIGNEDUPSTATE" + enterprise_createdstate = "ENTERPRISE_CREATEDSTATE" + credential_notfound = "CREDENTIAL_NOTFOUND" + credential_mismatch = "CREDENTIAL_MISMATCH" + scheme_unknown = "SCHEME_UNKNOWN" + update_logintime_failed = "UPDATE_LOGINTIME_FAILED" + credential_mismatch_max_failed_pwd_attempt = ( + "CREDENTIAL_MISMATCH_MAX_FAILED_PWD_ATTEMPT" + ) + redirect = "REDIRECT" + decryption_failed = "DECRYPTION_FAILED" + password_expired = "PASSWORD_EXPIRED" + totp_ok = "TOTP_OK" + totp_invalid_code = "TOTP_INVALID_CODE" + totp_err = "TOTP_ERR" + + +class AAAFrontendLoginWithOauthRequest(BaseModel): + username_at_realm: str | None = Field(default=None, alias="usernameAtRealm") + enterprise_name: str | None = Field(default=None, alias="enterpriseName") + redirect_uri: str | None = Field(default=None, alias="redirectUri") + + +class AAAFrontendLoginWithPasswordRequest(BaseModel): + username_at_realm: str | None = Field(default=None, alias="usernameAtRealm") + username: str | None = None + realm: str | None = None + password: str | None = None + verbose_policy: bool | None = Field( + default=None, alias="verbosePolicy", title="How verbal should the response be" + ) + verbose_simple_user: bool | None = Field(default=None, alias="verboseSimpleUser") + verbose_detailed_user: bool | None = Field( + default=None, alias="verboseDetailedUser" + ) + verbose_realm: bool | None = Field(default=None, alias="verboseRealm") + verbose_enterprise: bool | None = Field(default=None, alias="verboseEnterprise") + enterprise_name: str | None = Field(default=None, alias="enterpriseName") + + +class AAAFrontendLogoutRequest(BaseModel): + pass + + +class AAAFrontendLogoutResponseCause(Enum): + unspecified = "UNSPECIFIED" + ok = "OK" + failed = "FAILED" + + +class AAAFrontendOAUTHCallbackRequest(BaseModel): + code: str | None = None + state: str | None = None + + +class AAAFrontendRefreshResponseCause(Enum): + unspecified = "UNSPECIFIED" + ok = "OK" + unknown = "UNKNOWN" + credentials = "CREDENTIALS" + expired = "EXPIRED" + + +class AAAFrontendSessionDetailsResponseCause(Enum): + unspecified = "UNSPECIFIED" + ok = "OK" + failed = "FAILED" + + +class AllowedEnterprise(BaseModel): + id: str | None = None + name: str | None = None + role_id: str | None = Field(default=None, alias="roleId") + + +class AppInstSummaryReport(BaseModel): + total_app_insts: int | None = Field(default=None, alias="totalAppInsts") + + +class AuthProfileType(Enum): + auth_profile_type_unspecified = "AUTH_PROFILE_TYPE_UNSPECIFIED" + auth_profile_type_oauth_azure_ad = "AUTH_PROFILE_TYPE_OAUTH_AZURE_AD" + auth_profile_type_oauth_google = "AUTH_PROFILE_TYPE_OAUTH_GOOGLE" + auth_profile_type_oauth_custom = "AUTH_PROFILE_TYPE_OAUTH_CUSTOM" + auth_profile_type_local = "AUTH_PROFILE_TYPE_LOCAL" + + +class AuthType(Enum): + auth_type_unspecified = "AUTH_TYPE_UNSPECIFIED" + auth_type_local = "AUTH_TYPE_LOCAL" + auth_type_oauth = "AUTH_TYPE_OAUTH" + auth_type_saml = "AUTH_TYPE_SAML" + + +class CredentialType(Enum): + credential_type_unspecified = "CREDENTIAL_TYPE_UNSPECIFIED" + credential_type_password = "CREDENTIAL_TYPE_PASSWORD" + credential_type_chap = "CREDENTIAL_TYPE_CHAP" + credential_type_public_key = "CREDENTIAL_TYPE_PUBLIC_KEY" + credential_type_none = "CREDENTIAL_TYPE_NONE" + + +class CrudAction(Enum): + crud_action__invalid__ = "CrudAction__INVALID__" + crud_action_not_applicable = "CrudActionNotApplicable" + crud_action_create = "CrudActionCreate" + crud_action_read = "CrudActionRead" + crud_action_update = "CrudActionUpdate" + crud_action_delete = "CrudActionDelete" + crud_action_query = "CrudActionQuery" + crud_action_query_next = "CrudActionQueryNext" + crud_action_read_self = "CrudActionReadSelf" + crud_action_update_self = "CrudActionUpdateSelf" + + +class CrudContentEncoding(Enum): + crud_payload_encoding__invalid__ = "CrudPayloadEncoding__INVALID__" + crud_payload_encoding_protobuf = "CrudPayloadEncodingProtobuf" + crud_payload_encoding_json = "CrudPayloadEncodingJSON" + + +class CrudContentJSON(BaseModel): + json_: str | None = Field(default=None, alias="json") + + +class CrudResultCode(Enum): + crud_result_code__invalid__ = "CrudResultCode__INVALID__" + crud_result_code_success = "CrudResultCodeSuccess" + crud_result_code_authentication = "CrudResultCodeAuthentication" + crud_result_code_already_exists = "CrudResultCodeAlreadyExists" + crud_result_code_exception = "CrudResultCodeException" + crud_result_code_has_dependencies = "CrudResultCodeHasDependencies" + crud_result_code_illegal_argument = "CrudResultCodeIllegalArgument" + crud_result_code_illegal_request = "CrudResultCodeIllegalRequest" + crud_result_code_incomplete = "CrudResultCodeIncomplete" + crud_result_code_internal_error = "CrudResultCodeInternalError" + crud_result_code_not_found = "CrudResultCodeNotFound" + crud_result_code_not_identified = "CrudResultCodeNotIdentified" + crud_result_code_permission_denied = "CrudResultCodePermissionDenied" + crud_result_code_query_expired = "CrudResultCodeQueryExpired" + crud_result_code_unknown = "CrudResultCodeUnknown" + + +class CrudStatisticsUser(BaseModel): + total: int | None = None + suspended: int | None = None + deleted: int | None = None + + +class Cursor(BaseModel): + page_token: str | None = Field( + default=None, alias="pageToken", description="Page Token" + ) + order_by: list[str] | None = Field( + default=None, + alias="orderBy", + description="OrderBy helps in sorting the list response", + ) + page_num: float | None = Field( + default=None, alias="pageNum", description="Page Number" + ) + page_size: float | None = Field( + default=None, alias="pageSize", description="Defines the page size" + ) + total_pages: float | None = Field( + default=None, + alias="totalPages", + description="Total number of pages to be fetched.", + ) + + +class DataStream(BaseModel): + plugin_id: str | None = Field(default=None, alias="pluginId") + enabled: bool | None = None + + +class DeviceDistribution(BaseModel): + project_name: str | None = Field(default=None, alias="projectName") + device_count: int | None = Field(default=None, alias="deviceCount") + + +class DeviceSize(Enum): + default_size = "DEFAULT_SIZE" + small_size = "SMALL_SIZE" + medium_size = "MEDIUM_SIZE" + large_size = "LARGE_SIZE" + xlarge_size = "XLARGE_SIZE" + + +class EnterpriseState(Enum): + enterprise_state_unspecified = "ENTERPRISE_STATE_UNSPECIFIED" + enterprise_state_created = "ENTERPRISE_STATE_CREATED" + enterprise_state_deleted = "ENTERPRISE_STATE_DELETED" + enterprise_state_active = "ENTERPRISE_STATE_ACTIVE" + enterprise_state_inactive = "ENTERPRISE_STATE_INACTIVE" + enterprise_state_signedup = "ENTERPRISE_STATE_SIGNEDUP" + + +class EnterpriseSummary(BaseModel): + name: str | None = None + id: str | None = None + + +class EnterpriseType(Enum): + enterprise_type_unspecified = "ENTERPRISE_TYPE_UNSPECIFIED" + enterprise_type_selfsignup = "ENTERPRISE_TYPE_SELFSIGNUP" + + +class FeatureEntitlement(BaseModel): + name: str | None = None + active: bool | None = None + sub_feature_entitlement: list[FeatureEntitlement] | None = Field( + default=None, + alias="subFeatureEntitlement", + title="SubFeatureEntitlement represents nested sub-features entitlement", + ) + + +class IdState(Enum): + id_state_unspecified = "ID_STATE_UNSPECIFIED" + id_state_not_verified = "ID_STATE_NOT_VERIFIED" + id_state_verified = "ID_STATE_VERIFIED" + + +class Identifier64(BaseModel): + base64: str | None = None + + +class JWTAuthProfileAlgorithm(Enum): + none = "None" + rs256 = "RS256" + rs384 = "RS384" + rs512 = "RS512" + + +class LastLoggedinUserInfo(BaseModel): + name: str | None = None + last_login_time: AwareDatetime | None = Field(default=None, alias="lastLoginTime") + + +class ModelClazz(Enum): + model_clazz_unspecified = "ModelClazzUnspecified" + model_clazz_detailed_user = "ModelClazzDetailedUser" + model_clazz_simple_user = "ModelClazzSimpleUser" + model_clazz_enterprise = "ModelClazzEnterprise" + model_clazz_realm = "ModelClazzRealm" + model_clazz_credential = "ModelClazzCredential" + model_clazz_policy = "ModelClazzPolicy" + model_clazz_role = "ModelClazzRole" + model_clazz_profile = "ModelClazzProfile" + model_clazz_doc_policy = "ModelClazzDocPolicy" + model_clazz_allowed_enterprise_list = "ModelClazzAllowedEnterpriseList" + model_clazz_total_user_count = "ModelClazzTotalUserCount" + model_clazz_last_logged_in_user_info = "ModelClazzLastLoggedInUserInfo" + model_clazz_user_activity_summary = "ModelClazzUserActivitySummary" + model_clazz_user_usage_per_enterprise = "ModelClazzUserUsagePerEnterprise" + model_clazz_enterprise_github_repository = "ModelClazzEnterpriseGithubRepository" + + +class OAUTHProfileJWTAuthProfile(BaseModel): + alg: JWTAuthProfileAlgorithm | None = "None" + + +class ObjectRevision(BaseModel): + prev: str | None = Field(default=None, description="Previous") + curr: str = Field(..., description="Current Database version of the record") + created_at: dict[str, Any] = Field( + ..., + alias="createdAt", + description="The time, in milliseconds since the epoch, when the record was created.", + ) + created_by: str = Field(..., alias="createdBy", description="User data: Created By") + updated_at: dict[str, Any] = Field( + ..., + alias="updatedAt", + description="The time, in milliseconds since the epoch, when the record was last updated.", + ) + updated_by: str = Field(..., alias="updatedBy", description="User data: Updated By") + + +class ObjectType(Enum): + object_type_unspecified = "OBJECT_TYPE_UNSPECIFIED" + object_type_user = "OBJECT_TYPE_USER" + object_type_edge_node = "OBJECT_TYPE_EDGE_NODE" + object_type_edge_app = "OBJECT_TYPE_EDGE_APP" + object_type_image = "OBJECT_TYPE_IMAGE" + object_type_edge_app_instance = "OBJECT_TYPE_EDGE_APP_INSTANCE" + object_type_project = "OBJECT_TYPE_PROJECT" + object_type_network = "OBJECT_TYPE_NETWORK" + object_type_datastore = "OBJECT_TYPE_DATASTORE" + object_type_service = "OBJECT_TYPE_SERVICE" + object_type_service_instance = "OBJECT_TYPE_SERVICE_INSTANCE" + object_type_enterprise = "OBJECT_TYPE_ENTERPRISE" + object_type_role = "OBJECT_TYPE_ROLE" + object_type_credential = "OBJECT_TYPE_CREDENTIAL" + object_type_network_instance = "OBJECT_TYPE_NETWORK_INSTANCE" + object_type_volume_instance = "OBJECT_TYPE_VOLUME_INSTANCE" + object_type_realm = "OBJECT_TYPE_REALM" + object_type_authprofile = "OBJECT_TYPE_AUTHPROFILE" + object_type_policy = "OBJECT_TYPE_POLICY" + object_type_app_policy = "OBJECT_TYPE_APP_POLICY" + object_type_cluster_instance = "OBJECT_TYPE_CLUSTER_INSTANCE" + object_type_plugin = "OBJECT_TYPE_PLUGIN" + object_type_doc_policy = "OBJECT_TYPE_DOC_POLICY" + object_type_orchestrator_cluster = "OBJECT_TYPE_ORCHESTRATOR_CLUSTER" + object_type_tags = "OBJECT_TYPE_TAGS" + object_type_edge_node_interface = "OBJECT_TYPE_EDGE_NODE_INTERFACE" + object_type_deployment = "OBJECT_TYPE_DEPLOYMENT" + object_type_entitlements = "OBJECT_TYPE_ENTITLEMENTS" + object_type_data_stream = "OBJECT_TYPE_DATA_STREAM" + object_type_api_usage = "OBJECT_TYPE_API_USAGE" + object_type_app_instance_snapshot = "OBJECT_TYPE_APP_INSTANCE_SNAPSHOT" + object_type_patch_envelope = "OBJECT_TYPE_PATCH_ENVELOPE" + object_type_resource_usage_track = "OBJECT_TYPE_RESOURCE_USAGE_TRACK" + object_type_patch_envelope_reference = "OBJECT_TYPE_PATCH_ENVELOPE_REFERENCE" + object_type_dev_passthrough = "OBJECT_TYPE_DEV_PASSTHROUGH" + object_type_edge_node_cluster = "OBJECT_TYPE_EDGE_NODE_CLUSTER" + object_type_asset_group = "OBJECT_TYPE_ASSET_GROUP" + object_type_app_profile = "OBJECT_TYPE_APP_PROFILE" + object_type_profile_deployment = "OBJECT_TYPE_PROFILE_DEPLOYMENT" + object_type_zks_instance = "OBJECT_TYPE_ZKS_INSTANCE" + object_type_cluster_group = "OBJECT_TYPE_CLUSTER_GROUP" + + +class OpaqueToken64(BaseModel): + base64: str | None = None + + +class PasswordProfile(BaseModel): + min_length: int | None = Field(default=None, alias="minLength") + max_length: int | None = Field(default=None, alias="maxLength") + min_numeric_chars: int | None = Field(default=None, alias="minNumericChars") + min_symbol_chars: int | None = Field(default=None, alias="minSymbolChars") + min_uppercase_chars: int | None = Field(default=None, alias="minUppercaseChars") + min_lowercase_chars: int | None = Field(default=None, alias="minLowercaseChars") + max_password_age: int | None = Field(default=None, alias="maxPasswordAge") + min_password_age: int | None = Field(default=None, alias="minPasswordAge") + num_prev_password_check: int | None = Field( + default=None, alias="numPrevPasswordCheck" + ) + password_expiry_notification_period_in_seconds: int | None = Field( + default=None, alias="passwordExpiryNotificationPeriodInSeconds" + ) + + +class PluginSummaryReport(BaseModel): + total_plugins: int | None = Field(default=None, alias="totalPlugins") + + +class PluginType(Enum): + plugin_type_unspecified = "PLUGIN_TYPE_UNSPECIFIED" + plugin_type_splunk = "PLUGIN_TYPE_SPLUNK" + plugin_type_http = "PLUGIN_TYPE_HTTP" + plugin_type_rancher = "PLUGIN_TYPE_RANCHER" + plugin_type_vmware_vco = "PLUGIN_TYPE_VMWARE_VCO" + plugin_type_vmware_tmc = "PLUGIN_TYPE_VMWARE_TMC" + plugin_type_otel = "PLUGIN_TYPE_OTEL" + + +class PluginTypeEntitlement(BaseModel): + plugin_type: PluginType | None = Field( + default="PLUGIN_TYPE_UNSPECIFIED", alias="pluginType" + ) + plugin_type_limit: int | None = Field(default=None, alias="pluginTypeLimit") + plugin_type_usage: int | None = Field(default=None, alias="pluginTypeUsage") + + +class PolicyAccess(Enum): + permission_access__invalid__ = "PermissionAccess__INVALID__" + permission_access_create = "PermissionAccessCreate" + permission_access_read = "PermissionAccessRead" + permission_access_create_read = "PermissionAccessCreateRead" + permission_access_update = "PermissionAccessUpdate" + permission_access_create_update = "PermissionAccessCreateUpdate" + permission_access_read_update = "PermissionAccessReadUpdate" + permission_access_create_read_update = "PermissionAccessCreateReadUpdate" + permission_access_delete = "PermissionAccessDelete" + permission_access_create_delete = "PermissionAccessCreateDelete" + permission_access_read_delete = "PermissionAccessReadDelete" + permission_access_create_read_delete = "PermissionAccessCreateReadDelete" + permission_access_update_delete = "PermissionAccessUpdateDelete" + permission_access_create_update_delete = "PermissionAccessCreateUpdateDelete" + permission_access_read_update_delete = "PermissionAccessReadUpdateDelete" + permission_access_create_read_update_delete = ( + "PermissionAccessCreateReadUpdateDelete" + ) + permission_access_execute = "PermissionAccessExecute" + permission_access_create_execute = "PermissionAccessCreateExecute" + permission_access_read_execute = "PermissionAccessReadExecute" + permission_access_create_read_execute = "PermissionAccessCreateReadExecute" + permission_access_update_execute = "PermissionAccessUpdateExecute" + permission_access_create_update_execute = "PermissionAccessCreateUpdateExecute" + permission_access_read_update_execute = "PermissionAccessReadUpdateExecute" + permission_access_create_read_update_execute = ( + "PermissionAccessCreateReadUpdateExecute" + ) + permission_access_delete_execute = "PermissionAccessDeleteExecute" + permission_access_create_delete_execute = "PermissionAccessCreateDeleteExecute" + permission_access_read_delete_execute = "PermissionAccessReadDeleteExecute" + permission_access_create_read_delete_execute = ( + "PermissionAccessCreateReadDeleteExecute" + ) + permission_access_update_delete_execute = "PermissionAccessUpdateDeleteExecute" + permission_access_create_update_delete_execute = ( + "PermissionAccessCreateUpdateDeleteExecute" + ) + permission_access_read_update_delete_execute = ( + "PermissionAccessReadUpdateDeleteExecute" + ) + permission_access_create_read_update_delete_execute = ( + "PermissionAccessCreateReadUpdateDeleteExecute" + ) + permission_access_query = "PermissionAccessQuery" + permission_access_create_query = "PermissionAccessCreateQuery" + permission_access_read_query = "PermissionAccessReadQuery" + permission_access_create_read_query = "PermissionAccessCreateReadQuery" + permission_access_update_query = "PermissionAccessUpdateQuery" + permission_access_create_update_query = "PermissionAccessCreateUpdateQuery" + permission_access_read_update_query = "PermissionAccessReadUpdateQuery" + permission_access_create_read_update_query = "PermissionAccessCreateReadUpdateQuery" + permission_access_delete_query = "PermissionAccessDeleteQuery" + permission_access_create_delete_query = "PermissionAccessCreateDeleteQuery" + permission_access_read_delete_query = "PermissionAccessReadDeleteQuery" + permission_access_create_read_delete_query = "PermissionAccessCreateReadDeleteQuery" + permission_access_update_delete_query = "PermissionAccessUpdateDeleteQuery" + permission_access_create_update_delete_query = ( + "PermissionAccessCreateUpdateDeleteQuery" + ) + permission_access_read_update_delete_query = "PermissionAccessReadUpdateDeleteQuery" + permission_access_create_read_update_delete_query = ( + "PermissionAccessCreateReadUpdateDeleteQuery" + ) + permission_access_execute_query = "PermissionAccessExecuteQuery" + permission_access_create_execute_query = "PermissionAccessCreateExecuteQuery" + permission_access_read_execute_query = "PermissionAccessReadExecuteQuery" + permission_access_create_read_execute_query = ( + "PermissionAccessCreateReadExecuteQuery" + ) + permission_access_update_execute_query = "PermissionAccessUpdateExecuteQuery" + permission_access_create_update_execute_query = ( + "PermissionAccessCreateUpdateExecuteQuery" + ) + permission_access_read_update_execute_query = ( + "PermissionAccessReadUpdateExecuteQuery" + ) + permission_access_create_read_update_execute_query = ( + "PermissionAccessCreateReadUpdateExecuteQuery" + ) + permission_access_delete_execute_query = "PermissionAccessDeleteExecuteQuery" + permission_access_create_delete_execute_query = ( + "PermissionAccessCreateDeleteExecuteQuery" + ) + permission_access_read_delete_execute_query = ( + "PermissionAccessReadDeleteExecuteQuery" + ) + permission_access_create_read_delete_execute_query = ( + "PermissionAccessCreateReadDeleteExecuteQuery" + ) + permission_access_update_delete_execute_query = ( + "PermissionAccessUpdateDeleteExecuteQuery" + ) + permission_access_create_update_delete_execute_query = ( + "PermissionAccessCreateUpdateDeleteExecuteQuery" + ) + permission_access_read_update_delete_execute_query = ( + "PermissionAccessReadUpdateDeleteExecuteQuery" + ) + permission_access_create_read_update_delete_execute_query = ( + "PermissionAccessCreateReadUpdateDeleteExecuteQuery" + ) + + +class PolicyScope(Enum): + permission_scope__invalid__ = "PermissionScope__INVALID__" + permission_scope_other = "PermissionScopeOther" + permission_scope_group = "PermissionScopeGroup" + permission_scope_other_group = "PermissionScopeOtherGroup" + permission_scope_owner = "PermissionScopeOwner" + permission_scope_other_owner = "PermissionScopeOtherOwner" + permission_scope_group_owner = "PermissionScopeGroupOwner" + permission_scope_other_group_owner = "PermissionScopeOtherGroupOwner" + permission_scope_enterprise = "PermissionScopeEnterprise" + permission_scope_other_enterprise = "PermissionScopeOtherEnterprise" + permission_scope_group_enterprise = "PermissionScopeGroupEnterprise" + permission_scope_other_group_enterprise = "PermissionScopeOtherGroupEnterprise" + permission_scope_owner_enterprise = "PermissionScopeOwnerEnterprise" + permission_scope_other_owner_enterprise = "PermissionScopeOtherOwnerEnterprise" + permission_scope_group_owner_enterprise = "PermissionScopeGroupOwnerEnterprise" + permission_scope_other_group_owner_enterprise = ( + "PermissionScopeOtherGroupOwnerEnterprise" + ) + + +class PolicyVersion(BaseModel): + policy: str | None = Field(default=None, alias="Policy") + version: str | None = Field(default=None, alias="Version") + accepted_at: AwareDatetime | None = Field(default=None, alias="AcceptedAt") + accepted_by: str | None = Field(default=None, alias="AcceptedBy") + effective_from: AwareDatetime | None = Field(default=None, alias="EffectiveFrom") + + +class PolicyVersionList(BaseModel): + list_: list[PolicyVersion] | None = Field(default=None, alias="list") + + +class ProjectList(BaseModel): + project: list[str] | None = None + + +class ProjectSummaryReport(BaseModel): + total: int | None = None + device_distribution: list[DeviceDistribution] | None = Field( + default=None, alias="deviceDistribution" + ) + + +class Realm(BaseModel): + id: constr(pattern=r"[0-9A-Za-z_=-]{28}") | None = Field( + default=None, description="Unique system defined realm ID" + ) + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the realm. Name cannot be changed once created", + ) + enterprise_id: constr(pattern=r"[0-9A-Za-z_=-]{28}") = Field( + ..., + alias="enterpriseId", + description="Enterprise ID of the enterprise where the realm is to be created", + ) + title: constr( + pattern=r"[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+", min_length=3, max_length=256 + ) = Field( + ..., description="User defined title of the realm. Title can be changed anytime" + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the realm" + ) + revision: ObjectRevision | None = None + + +class RoleState(Enum): + role_state_unspecified = "ROLE_STATE_UNSPECIFIED" + role_state_created = "ROLE_STATE_CREATED" + role_state_active = "ROLE_STATE_ACTIVE" + role_state_inactive = "ROLE_STATE_INACTIVE" + role_state_archived = "ROLE_STATE_ARCHIVED" + + +class Scope(BaseModel): + access_device: str | None = Field( + default=None, alias="accessDevice", description="Device access permission" + ) + access_app: str | None = Field( + default=None, + alias="accessApp", + description="Application access permission, this will be deprecated in further release - please use accessEdgeApp and accessAppInstance for granular permission access scope.", + ) + access_user: str | None = Field( + default=None, alias="accessUser", description="User access permission" + ) + access_storage: str | None = Field( + default=None, alias="accessStorage", description="Storage access permission" + ) + access_enterprise: str | None = Field( + default=None, + alias="accessEnterprise", + description="Enterprise access permission", + ) + enterprise_filter: list[str] | None = Field( + default=None, alias="enterpriseFilter", description="List of enterprise filters" + ) + project_filter: list[str] | None = Field( + default=None, alias="projectFilter", description="List of project filters" + ) + access_edge_app: str | None = Field( + default=None, alias="accessEdgeApp", description="Edge app access permission" + ) + access_app_instance: str | None = Field( + default=None, + alias="accessAppInstance", + description="Application Instance access permission", + ) + access_enterprise_integration_items: str | None = Field( + default=None, + alias="accessEnterpriseIntegrationItems", + description="datastream and 3rd party integration access permission", + ) + uuid: constr(pattern=r"[0-9A-Za-z_=-]{28}") | None = Field( + default=None, description="Unique system defined scope ID" + ) + + +class ServerSyncStatus(BaseModel): + server_name: str | None = Field(default=None, alias="serverName") + status: str | None = None + error: str | None = None + + +class SessionDetails(BaseModel): + session_id: str | None = Field( + default=None, + alias="sessionId", + description="DEPRECATED. sessionId is obfuscated for security reasons", + ) + expires_at: AwareDatetime | None = Field( + default=None, alias="expiresAt", description="session expiry time" + ) + user_name: str | None = Field( + default=None, alias="userName", description="Logged in user name" + ) + client_ip: str | None = Field( + default=None, alias="clientIp", description="IP address of the logged in user" + ) + user_agent: str | None = Field( + default=None, alias="userAgent", description="user agent details" + ) + + +class Summary(BaseModel): + description: str | None = Field(default=None, description="Summary description") + total: float | None = Field(default=None, description="Total") + values: dict[str, int] | None = Field( + default=None, description="Values: Map for storing " + ) + + +class TOTPEnrolmentURL(BaseModel): + url: str | None = Field(default=None, alias="URL") + secret: str | None = Field(default=None, alias="Secret") + + +class TOTPSettings(BaseModel): + enforce: bool | None = None + enforce_in_children: bool | None = Field(default=None, alias="enforceInChildren") + enforced_by_parent: bool | None = Field(default=None, alias="enforcedByParent") + + +class Token64(BaseModel): + base64: str | None = None + expires: str | None = None + + +class UserEntitlement(BaseModel): + limit: int | None = None + usage: int | None = None + + +class UserRole(Enum): + user_role_unspecified = "USER_ROLE_UNSPECIFIED" + user_role_system_defined = "USER_ROLE_SYSTEM_DEFINED" + user_role_user_defined = "USER_ROLE_USER_DEFINED" + user_role_cluster = "USER_ROLE_CLUSTER" + + +class UserState(Enum): + user_state_unspecified = "USER_STATE_UNSPECIFIED" + user_state_created = "USER_STATE_CREATED" + user_state_active = "USER_STATE_ACTIVE" + user_state_inactive = "USER_STATE_INACTIVE" + user_state_signedup = "USER_STATE_SIGNEDUP" + user_state_suspended = "USER_STATE_SUSPENDED" + + +class UserSummaryReport(BaseModel): + users: int | None = None + active_users_count: int | None = Field(default=None, alias="activeUsersCount") + last_loggedin_user_info: LastLoggedinUserInfo | None = Field( + default=None, alias="lastLoggedinUserInfo" + ) + + +class UserUsagePerEnterprise(BaseModel): + entp_id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, alias="entpId", description="Enterprise id" + ) + user_usage: str | None = Field( + default=None, alias="userUsage", description="User usage for that enterprise" + ) + + +class UserUsagePerEnterpriseList(BaseModel): + user_usage_per_entp: list[UserUsagePerEnterprise] | None = Field( + default=None, + alias="userUsagePerEntp", + description="user usage per enterprise list", + ) + + +class ZcOpsStatus(Enum): + ops_status_unspecified = "OPS_STATUS_UNSPECIFIED" + ops_status_pending = "OPS_STATUS_PENDING" + ops_status_ongoing = "OPS_STATUS_ONGOING" + ops_status_complete = "OPS_STATUS_COMPLETE" + + +class ZcOpsType(Enum): + ops_type_unspecified = "OPS_TYPE_UNSPECIFIED" + ops_type_read = "OPS_TYPE_READ" + ops_type_delete = "OPS_TYPE_DELETE" + ops_type_create = "OPS_TYPE_CREATE" + ops_type_update = "OPS_TYPE_UPDATE" + ops_type_list = "OPS_TYPE_LIST" + + +class ZksSyncStatusCode(Enum): + zks_sync_status_code_unspecified = "ZKS_SYNC_STATUS_CODE_UNSPECIFIED" + zks_sync_status_code_healthy = "ZKS_SYNC_STATUS_CODE_HEALTHY" + zks_sync_status_code_partially_healthy = "ZKS_SYNC_STATUS_CODE_PARTIALLY_HEALTHY" + zks_sync_status_code_unhealthy = "ZKS_SYNC_STATUS_CODE_UNHEALTHY" + + +class ZsrvErrorCode(Enum): + z_msg_error_none = "zMsgErrorNone" + z_msg_sucess = "zMsgSucess" + not_found = "NotFound" + already_exists = "AlreadyExists" + version_mismatch = "VersionMismatch" + range_error = "RangeError" + large_result = "LargeResult" + incomplete_data = "IncompleteData" + invalid_data = "InvalidData" + function_unsupported = "FunctionUnsupported" + no_memory = "NoMemory" + send_failure = "SendFailure" + timeout = "Timeout" + bad_req_body = "BadReqBody" + bad_req_param = "BadReqParam" + invalid_field_format = "InvalidFieldFormat" + url_not_found = "UrlNotFound" + api_version_not_supported = "ApiVersionNotSupported" + unauthorized = "Unauthorized" + forbidden = "Forbidden" + conflict = "Conflict" + not_modified = "NotModified" + dependency_conflict = "DependencyConflict" + json_fmt_error = "JsonFmtError" + proto_fmt_error = "ProtoFmtError" + cert_error = "CertError" + data_base_connection = "DataBaseConnection" + db_error = "DBError" + z_msg_accepted = "zMsgAccepted" + z_msg_created = "zMsgCreated" + pre_condition_failed = "PreConditionFailed" + internal_server_error = "InternalServerError" + + +class ProtobufAny(BaseModel): + type_url: str | None = Field(default=None, alias="typeUrl") + value: Base64Str | None = None + + +class AAAFailureResponseCredentialChange(BaseModel): + cause: AAAFailureResponseCredentialChangeCause | None = "__INVALID__" + + +class AAAFailureResponseGenerateToken(BaseModel): + cause: AAAFailureResponseGenerateTokenCause | None = "__INVALID__" + error: str | None = None + + +class AAAFailureResponseLogout(BaseModel): + cause: AAAFailureResponseLogoutCause | None = "__INVALID__" + original: OpaqueToken64 | None = None + error: str | None = None + + +class AAAFailureResponseQueryAllSessionDetails(BaseModel): + error: str | None = None + cause: AAAFailureResponseQueryAllSessionDetailsCause | None = "__INVALID__" + + +class AAAFailureResponseSessionDetails(BaseModel): + cause: AAAFailureResponseSessionDetailsCause | None = "__INVALID__" + original: OpaqueToken64 | None = None + + +class AAAFailureTokenRefresh(BaseModel): + cause: AAAFailureTokenRefreshCause | None = "__INVALID__" + original: OpaqueToken64 | None = None + error: str | None = None + + +class AAALoginModeResponse(BaseModel): + username: str | None = None + mode: AAALoginModeResponseMode | None = "AAALoginModeLocal" + + +class AAARequestAdminUserSignup(BaseModel): + name: str | None = None + first_name: str | None = Field(default=None, alias="firstName") + full_name: str | None = Field(default=None, alias="fullName") + enterprise_name: str | None = Field(default=None, alias="enterpriseName") + type: CredentialType | None = "CREDENTIAL_TYPE_UNSPECIFIED" + password: str | None = None + email: str | None = None + + +class AAASuccessResponseLogout(BaseModel): + original: OpaqueToken64 | None = None + + +class AAASuccessResponseQueryAllSessionDetails(BaseModel): + cause: AAASuccessResponseQueryAllSessionDetailsCause | None = "__INVALID__" + session_details: list[SessionDetails] | None = Field( + default=None, alias="sessionDetails" + ) + + +class AAASuccessTokenRefresh(BaseModel): + token: Token64 | None = None + + +class AAAFrontendGenerateTokenResponse(BaseModel): + token: str | None = None + expires_at: AwareDatetime | None = Field(default=None, alias="expiresAt") + user_name: str | None = Field(default=None, alias="userName") + client_ip: str | None = Field(default=None, alias="clientIp") + user_agent: str | None = Field(default=None, alias="userAgent") + cause: AAAFrontendGenerateTokenResponseCause | None = "UNSPECIFIED" + error: str | None = None + + +class AAAFrontendLoginModeResponse(BaseModel): + username: str | None = None + mode: AAAFrontendLoginModeResponseMode | None = "LOCAL" + + +class AAAFrontendLogoutResponse(BaseModel): + cause: AAAFrontendLogoutResponseCause | None = "UNSPECIFIED" + token: OpaqueToken64 | None = None + + +class AAAFrontendRefreshResponse(BaseModel): + cause: AAAFrontendRefreshResponseCause | None = "UNSPECIFIED" + user_id: str | None = Field( + default=None, alias="userId", title="BEGIN: Only valid when Cause == OK" + ) + token: Token64 | None = None + + +class AdminUserSignup(BaseModel): + name: str | None = None + first_name: str | None = Field(default=None, alias="firstName") + full_name: str | None = Field(default=None, alias="fullName") + type: CredentialType | None = "CREDENTIAL_TYPE_UNSPECIFIED" + password: str | None = None + email: str | None = None + + +class AppInstReport(BaseModel): + entp_id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + alias="entpId", + description="Enterprise id for which we want to get summary report for all objects", + ) + app_inst_summary_report: AppInstSummaryReport | None = Field( + default=None, alias="appInstSummaryReport" + ) + error: str | None = Field( + default=None, description="Error while fetching report for enterprise, if any" + ) + + +class Credential(BaseModel): + id: str | None = None + owner: str | None = None + type: CredentialType | None = "CREDENTIAL_TYPE_UNSPECIFIED" + current_cred: str | None = Field(default=None, alias="currentCred") + new_cred: str | None = Field(default=None, alias="newCred") + forgot: bool | None = None + salt: int | None = None + + +class Credentials(BaseModel): + summary_by_state: Summary | None = Field(default=None, alias="summaryByState") + list_: list[Credential] | None = Field(default=None, alias="list") + next: Cursor | None = None + + +class CrudStatisticsContainer(BaseModel): + clazz: ModelClazz | None = "ModelClazzUnspecified" + user: CrudStatisticsUser | None = None + + +class DeviceEntitlement(BaseModel): + size: DeviceSize | None = "DEFAULT_SIZE" + limit: int | None = None + usage: int | None = None + + +class DeviceSummaryReport(BaseModel): + total_devices: int | None = Field(default=None, alias="totalDevices") + summary_by_state: Summary | None = Field(default=None, alias="summaryByState") + + +class DocPolicy(BaseModel): + id: constr(pattern=r"[0-9A-Za-z_=-]{28}") | None = Field( + default=None, description="Unique system defined docpolicy ID" + ) + policy_name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + alias="policyName", + description="User defined name of the docpolicy. Name cannot be changed once created", + ) + version: str | None = Field(default=None, description="Policy doc version") + file_url: str | None = Field( + default=None, alias="fileURL", description="Policy doc fileURL" + ) + server_host: str | None = Field( + default=None, alias="serverHost", description="Server Host" + ) + latest: bool | None = Field(default=None, description="Mark latest docpolicy check") + revision: ObjectRevision | None = None + + +class DocPolicySummary(BaseModel): + policy: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined name of the docpolicy. Name cannot be changed once created", + ) + version: str | None = Field(default=None, description="Policy doc version") + file_url: str | None = Field( + default=None, alias="fileURL", description="Policy doc fileURL" + ) + revision: ObjectRevision | None = None + + +class Enterprise(BaseModel): + id: constr(pattern=r"[0-9A-Za-z_=-]{28}") | None = Field( + default=None, description="Unique system defined enterprise ID" + ) + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the enterprise. Once enterprise is created, name can’t be changed", + ) + sfdc_id: str | None = Field(default=None, alias="SfdcId") + hubspot_id: str | None = Field(default=None, alias="HubspotId") + state: EnterpriseState | None = "ENTERPRISE_STATE_UNSPECIFIED" + type: EnterpriseType | None = "ENTERPRISE_TYPE_UNSPECIFIED" + policy_list: PolicyVersionList | None = Field(default=None, alias="policyList") + parent_entp_id: constr(pattern=r"[0-9A-Za-z_=-]{28}") | None = Field( + default=None, + alias="parentEntpId", + description="Parent enterprise ID", + title="string id = 100;\nstring name = 101;", + ) + azure_sub_id: str | None = Field( + default=None, + alias="azureSubId", + description="Azure subscription ID tied to this enterprise", + ) + title: constr( + pattern=r"[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined title for the enterprise. Title can be changed any time", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the enterprise" + ) + revision: ObjectRevision | None = None + realms: list[str] | None = Field( + default=None, description="List of realms associated with the enterprise" + ) + attributes: dict[str, str] | None = Field( + default=None, description="enterprise level key-value pairs" + ) + inherit_auth_from_parent: bool | None = Field( + default=None, + alias="inheritAuthFromParent", + description="Perform authorization using parent enterprise", + ) + child_enterprises: list[EnterpriseSummary] | None = Field( + default=None, + alias="childEnterprises", + description="List of all child enterprises", + ) + controller_host_url: str | None = Field( + default=None, alias="controllerHostURL", description="zedcontrol host" + ) + stream_events: DataStream | None = Field(default=None, alias="streamEvents") + totp_settings: TOTPSettings | None = Field(default=None, alias="totpSettings") + api_token_expiry_in_seconds: int | None = Field( + default=None, + alias="apiTokenExpiryInSeconds", + description="Enterprise settings for API Token expiry to be set in seconds", + ) + + +class Enterprises(BaseModel): + summary_by_state: Summary | None = Field(default=None, alias="summaryByState") + list_: list[Enterprise] | None = Field( + default=None, alias="list", description="List of enterprises" + ) + next: Cursor | None = None + + +class OAUTHProfile(BaseModel): + oidc_end_point: str | None = Field( + default=None, + alias="OIDCEndPoint", + description="OIDC endpoint for oauth validation", + ) + client_id: str | None = Field( + default=None, alias="clientID", description="OAUTH client ID" + ) + client_secret: str | None = Field( + default=None, alias="clientSecret", description="OAUTH client secret" + ) + encrypted_secrets: dict[str, str] | None = Field( + default=None, alias="encryptedSecrets" + ) + crypto_key: str | None = Field(default=None, alias="cryptoKey") + role_scope: str | None = Field( + default=None, + alias="roleScope", + description="OIDC scope to fetch application role", + ) + jwt_auth_profile: OAUTHProfileJWTAuthProfile | None = Field( + default=None, alias="jwtAuthProfile" + ) + idp_id: str | None = Field( + default=None, alias="idpId", description="id for Vmware IDP" + ) + additional_parameters: str | None = Field( + default=None, + alias="additionalParameters", + description="pass additional url parameters during the exchange and authorization process", + ) + + +class PluginEntitlement(BaseModel): + plugin_total_limit: int | None = Field(default=None, alias="pluginTotalLimit") + plugin_total_usage: int | None = Field(default=None, alias="pluginTotalUsage") + plugin_type_entitlement: list[PluginTypeEntitlement] | None = Field( + default=None, alias="pluginTypeEntitlement" + ) + + +class PluginReport(BaseModel): + entp_id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + alias="entpId", + description="Enterprise id for which we want to get summary report for all objects", + ) + plugin_summary_report: PluginSummaryReport | None = Field( + default=None, alias="pluginSummaryReport" + ) + error: str | None = Field( + default=None, description="Error while fetching report for enterprise, if any" + ) + + +class Policy(BaseModel): + id: str | None = None + zone: str | None = None + scope: PolicyScope | None = "PermissionScope__INVALID__" + access: PolicyAccess | None = "PermissionAccess__INVALID__" + owner_id: str | None = Field(default=None, alias="ownerId") + external: bool | None = None + + +class ProjectReport(BaseModel): + entp_id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + alias="entpId", + description="Enterprise id for which we want to get summary report for all objects", + ) + project_summary_report: ProjectSummaryReport | None = Field( + default=None, alias="projectSummaryReport" + ) + error: str | None = Field( + default=None, description="Error while fetching report for enterprise, if any" + ) + next: Cursor | None = None + + +class Realms(BaseModel): + summary_by_state: Summary | None = Field(default=None, alias="summaryByState") + list_: list[Realm] | None = Field( + default=None, alias="list", description="List of realms" + ) + next: Cursor | None = None + + +class Role(BaseModel): + id: constr(pattern=r"[0-9A-Za-z_=-]{28}") | None = Field( + default=None, description="Unique system defined role ID" + ) + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the role. Name cannot be changed once created", + ) + title: constr( + pattern=r"[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+", min_length=3, max_length=256 + ) = Field( + ..., description="User defined title of the role. Title can be changed anytime" + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the role" + ) + revision: ObjectRevision | None = None + type: UserRole + state: RoleState | None = "ROLE_STATE_UNSPECIFIED" + scopes: list[Scope] = Field( + ..., description="Scopes/Permissions associated with the role" + ) + project_tags: str | None = Field( + default=None, alias="projectTags", description="Map of project tags filter" + ) + + +class Roles(BaseModel): + summary_by_state: Summary | None = Field(default=None, alias="summaryByState") + list_: list[Role] | None = Field( + default=None, alias="list", description="List of roles" + ) + next: Cursor | None = None + + +class SimpleUser(BaseModel): + id: str | None = Field(default=None, title="BEGIN-SYNC(SimpleUser)") + username: str | None = None + realm_id: str | None = Field(default=None, alias="realmId") + state: UserState | None = "USER_STATE_UNSPECIFIED" + first_name: str | None = Field(default=None, alias="firstName") + + +class UserReport(BaseModel): + entp_id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + alias="entpId", + description="Enterprise id for which we want to get summary report for all objects", + ) + user_summary_report: UserSummaryReport | None = Field( + default=None, alias="userSummaryReport" + ) + error: str | None = Field( + default=None, description="Error while fetching report for enterprise, if any" + ) + + +class ZksSyncStatus(BaseModel): + status: ZksSyncStatusCode | None = "ZKS_SYNC_STATUS_CODE_UNSPECIFIED" + server_statuses: list[ServerSyncStatus] | None = Field( + default=None, alias="serverStatuses" + ) + + +class ZsrvError(BaseModel): + ec: ZsrvErrorCode | None = "zMsgErrorNone" + location: str | None = Field(default=None, title="Ignore: Internal field only") + details: str | None = Field( + default=None, title="Field captures string description of details" + ) + + +class ZsrvResponse(BaseModel): + operation_type: ZcOpsType | None = Field( + default="OPS_TYPE_UNSPECIFIED", alias="operationType" + ) + operation_status: ZcOpsStatus | None = Field( + default="OPS_STATUS_UNSPECIFIED", alias="operationStatus" + ) + object_kind: str | None = Field( + default=None, + alias="objectKind", + title="zedcloud object kind on which the operation was performed", + ) + object_id: str | None = Field( + default=None, + alias="objectId", + title="Unique value identifies the object that was operated on", + ) + object_name: str | None = Field( + default=None, alias="objectName", title="name of the object" + ) + object_revision: str | None = Field( + default=None, + alias="objectRevision", + title="object revision post the operation, note Read operation\ndoesn't change the revision", + ) + object_type: ObjectType | None = Field( + default="OBJECT_TYPE_UNSPECIFIED", alias="objectType" + ) + operation_time: str | None = Field( + default=None, alias="operationTime", title="time of operation" + ) + start_time: str | None = Field( + default=None, alias="startTime", title="total time taken by operations" + ) + end_time: str | None = Field(default=None, alias="endTime") + user: str | None = Field( + default=None, title="the operation is performed on behalf of this user" + ) + http_status_code: int | None = Field( + default=None, alias="httpStatusCode", title="http response" + ) + http_status_msg: str | None = Field( + default=None, alias="httpStatusMsg", title="summary of the error in text format" + ) + job_id: str | None = Field( + default=None, alias="jobId", title="for tracking asynchronous tasks" + ) + error: list[ZsrvError] | None = Field( + default=None, + title="one or more errors will be set if the operation failed\ni.e. httpStatusCode != 2xx", + ) + + +class GooglerpcStatus(BaseModel): + code: int | None = None + message: str | None = None + details: list[ProtobufAny] | None = None + + +class AAARequestEnterpriseSignup(BaseModel): + enterprise: Enterprise | None = None + admin_user: AdminUserSignup | None = Field(default=None, alias="adminUser") + realm_list: list[str] | None = Field(default=None, alias="realmList") + profile_type: AuthProfileType | None = Field( + default="AUTH_PROFILE_TYPE_UNSPECIFIED", alias="profileType" + ) + token: str | None = None + title: str | None = None + employer_name: str | None = Field(default=None, alias="employerName") + + +class AuthorizationProfile(BaseModel): + id: constr(pattern=r"[0-9A-Za-z_=-]{28}") | None = Field( + default=None, description="Unique system defined profile ID" + ) + enterprise_id: constr(pattern=r"[0-9A-Za-z_=-]{28}") | None = Field( + default=None, + alias="enterpriseId", + description="Parent enterprise ID of the authorization profile", + ) + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the profile. Profile name is unique within an enterprise. Name can't be changed once created", + ) + type: AuthType | None = "AUTH_TYPE_UNSPECIFIED" + oauth_profile: OAUTHProfile | None = Field(default=None, alias="oauthProfile") + password_profile: PasswordProfile | None = Field( + default=None, alias="passwordProfile" + ) + test_only: bool | None = Field(default=None, alias="testOnly") + active: bool | None = Field( + default=None, + description="Mark this profile as active. Only one profile can be active in a given enterprise", + ) + default_role_id: constr(pattern=r"[0-9A-Za-z_=-]{28}") = Field( + ..., + alias="defaultRoleId", + description="Default Role ID to associate with the profile", + ) + title: constr( + pattern=r"[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined title for the profile. Title can be changed anytime", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the profile" + ) + profile_type: AuthProfileType | None = Field( + default="AUTH_PROFILE_TYPE_UNSPECIFIED", alias="profileType" + ) + disable_auto_user_create: bool | None = Field( + default=None, + alias="disableAutoUserCreate", + description="Do not automatically create new users if this is set", + ) + revision: ObjectRevision | None = None + + +class AuthorizationProfiles(BaseModel): + summary_by_state: Summary | None = Field(default=None, alias="summaryByState") + list_: list[AuthorizationProfile] | None = Field( + default=None, alias="list", description="List of profiles" + ) + next: Cursor | None = None + + +class DetailedUser(BaseModel): + id: constr(pattern=r"[0-9A-Za-z_=-]{28}") | None = Field( + default=None, description="Unique system defined user ID" + ) + username: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field(..., description="User defined name") + sfdc_id: str | None = Field(default=None, alias="SfdcId") + hubspot_id: str | None = Field(default=None, alias="HubspotId") + revision: ObjectRevision | None = None + state: UserState | None = "USER_STATE_UNSPECIFIED" + first_name: str | None = Field( + default=None, alias="firstName", description="First name of the user" + ) + locale: str | None = Field(default=None, description="Locale of the user") + full_name: str | None = Field( + default=None, alias="fullName", description="Full name of the user" + ) + time_zone: str | None = Field( + default=None, alias="timeZone", description="Preferred time zone of the user" + ) + role_id: constr(pattern=r"[0-9A-Za-z_=-]{28}") = Field( + ..., alias="roleId", description="Role associated with the user" + ) + type: AuthType | None = "AUTH_TYPE_UNSPECIFIED" + email: str = Field(..., description="Email of the user") + phone: str | None = Field(default=None, description="Phone number of the user") + notify_pref: str | None = Field( + default=None, + alias="notifyPref", + description="Notification preference of the user", + ) + last_login_time: AwareDatetime | None = Field( + default=None, + alias="LastLoginTime", + description="Last login time of the user", + title="Operational Status to be returned to CLI/UI", + ) + last_logout_time: AwareDatetime | None = Field( + default=None, alias="LastLogoutTime", description="Last logout time of the user" + ) + email_state: IdState | None = Field( + default="ID_STATE_UNSPECIFIED", alias="emailState" + ) + phone_state: IdState | None = Field( + default="ID_STATE_UNSPECIFIED", alias="phoneState" + ) + custom_user_input: dict[str, str] | None = Field( + default=None, alias="customUserInput", description="Custom user parameters" + ) + allowed_enterprises: list[AllowedEnterprise] | None = Field( + default=None, + alias="allowedEnterprises", + description="Permitted list of enterprises with their associated roles", + ) + enterprise_id: str | None = Field( + default=None, alias="enterpriseId", description="Origin enterprise of the user" + ) + totp_enabled: bool | None = Field( + default=None, alias="totpEnabled", description="Is TOTP enrolment enabled" + ) + allowed_entp_project_list: dict[str, ProjectList] | None = Field( + default=None, + alias="allowedEntpProjectList", + description="Allowed enterprise project", + title="internal", + ) + zks_sync_status: ZksSyncStatus | None = Field(default=None, alias="zksSyncStatus") + token_zks_sync_status: dict[str, ZksSyncStatus] | None = Field( + default=None, + alias="tokenZksSyncStatus", + description="User session token sync status", + ) + password_expiry_notification_period_in_seconds: int | None = Field( + default=None, + alias="passwordExpiryNotificationPeriodInSeconds", + description="Password expiry notification period in seconds", + ) + + +class DetailedUsers(BaseModel): + summary_by_state: Summary | None = Field(default=None, alias="summaryByState") + list_: list[DetailedUser] | None = Field( + default=None, alias="list", description="List of users" + ) + summary_by_user_activity: Summary | None = Field( + default=None, alias="summaryByUserActivity" + ) + summary_by_role_distribution: Summary | None = Field( + default=None, alias="summaryByRoleDistribution" + ) + next: Cursor | None = None + + +class DeviceReport(BaseModel): + entp_id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + alias="entpId", + description="Enterprise id for which we want to get summary report for all objects", + ) + device_summary_report: DeviceSummaryReport | None = Field( + default=None, alias="deviceSummaryReport" + ) + error: str | None = Field( + default=None, description="Error while fetching report for enterprise, if any" + ) + + +class DocPolicies(BaseModel): + summary_by_state: Summary | None = Field(default=None, alias="summaryByState") + list_: list[DocPolicySummary] | None = Field( + default=None, alias="list", description="List of docpolicy" + ) + next: Cursor | None = None + + +class Entitlement(BaseModel): + entp_id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + alias="entpId", + description="Enterprise id for which we want to post/get enforce entitlement", + ) + entp_name: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + alias="entpName", + description="Enterprise name for which we want to post/get enforce entitlement", + ) + devices: list[DeviceEntitlement] | None = Field( + default=None, description="Device entitlement data" + ) + user_count: UserEntitlement | None = Field(default=None, alias="userCount") + plugins: PluginEntitlement | None = None + features: list[FeatureEntitlement] | None = Field( + default=None, description="Features entitlement data" + ) + + +class Policies(BaseModel): + summary_by_state: Summary | None = Field(default=None, alias="summaryByState") + list_: list[Policy] | None = Field(default=None, alias="list") + next: Cursor | None = None + + +class AAASuccessResponseLogin(BaseModel): + user_id: Identifier64 | None = Field(default=None, alias="userId") + token: Token64 | None = None + enterprise_id: Identifier64 | None = Field(default=None, alias="enterpriseId") + realm_id: Identifier64 | None = Field(default=None, alias="realmId") + policies: list[Policy] | None = Field( + default=None, + title="BEGIN: Only valid when a certain verbosity level is requested", + ) + simple_user: SimpleUser | None = Field(default=None, alias="simpleUser") + detailed_user: DetailedUser | None = Field(default=None, alias="detailedUser") + realm: Realm | None = None + enterprise: Enterprise | None = None + role: Role | None = None + login_token: Token64 | None = Field(default=None, alias="loginToken") + api_token: Token64 | None = Field(default=None, alias="apiToken") + password_expiry_time: AwareDatetime | None = Field( + default=None, alias="passwordExpiryTime" + ) + password_expiry_notification_period_in_seconds: int | None = Field( + default=None, alias="passwordExpiryNotificationPeriodInSeconds" + ) + is_jwt_valid: bool | None = Field(default=None, alias="isJWTValid") + + +class AAASuccessSessionDetailsResponse(BaseModel): + original: OpaqueToken64 | None = None + policies: list[Policy] | None = None + user: DetailedUser | None = None + + +class AAAFrontendLoginResponse(BaseModel): + cause: AAAFrontendLoginResponseCause | None = "UNSPECIFIED" + user_id: str | None = Field( + default=None, alias="userId", title="BEGIN: Only valid when Cause == OK" + ) + token: Token64 | None = None + policies: list[Policy] | None = Field( + default=None, title="BEGIN: Only valid when Verbose is requesed" + ) + simple_user: SimpleUser | None = Field(default=None, alias="simpleUser") + detailed_user: DetailedUser | None = Field(default=None, alias="detailedUser") + realm: Realm | None = None + enterprise: Enterprise | None = None + role: Role | None = None + no_of_login_attempts_left: int | None = Field( + default=None, alias="noOfLoginAttemptsLeft" + ) + redirect_url: str | None = Field(default=None, alias="redirectUrl") + login_token: Token64 | None = Field(default=None, alias="loginToken") + api_token: Token64 | None = Field(default=None, alias="apiToken") + password_expiry_time: AwareDatetime | None = Field( + default=None, alias="passwordExpiryTime" + ) + password_expiry_notification_period_in_seconds: int | None = Field( + default=None, alias="passwordExpiryNotificationPeriodInSeconds" + ) + temp_token: Token64 | None = Field(default=None, alias="tempToken") + + +class AAAFrontendSessionDetailsResponse(BaseModel): + cause: AAAFrontendSessionDetailsResponseCause | None = "UNSPECIFIED" + user: DetailedUser | None = None + policies: list[Policy] | None = None + + +class AllowedEnterpriseList(BaseModel): + enterprises: list[AllowedEnterprise] | None = Field( + default=None, description="List of child enterprises" + ) + error: str | None = Field( + default=None, + description="Error while fetching list of child enterprises, if any", + ) + next: Cursor | None = None + total: str | None = Field( + default=None, description="Total number of allowed enterprises" + ) + enterprise_entitlements: list[Entitlement] | None = Field( + default=None, + alias="enterpriseEntitlements", + description="Enterprises entitlement data", + ) + + +class CrudContentProtobuf(BaseModel): + detailed_user: DetailedUser | None = Field(default=None, alias="detailedUser") + simple_user: SimpleUser | None = Field(default=None, alias="simpleUser") + enterprise: Enterprise | None = None + realm: Realm | None = None + user: DetailedUser | None = None + credential: Credential | None = None + role: Role | None = None + policy: Policy | None = None + profile: AuthorizationProfile | None = None + doc_policy: DocPolicy | None = Field(default=None, alias="docPolicy") + encrypted_secrets: dict[str, str] | None = Field( + default=None, alias="encryptedSecrets" + ) + crypto_key: str | None = Field(default=None, alias="cryptoKey") + + +class AAAFailureResponseLogin(BaseModel): + cause: AAAFailureResponseLoginCause | None = "__INVALID__" + error: str | None = None + no_of_login_attempts_left: int | None = Field( + default=None, alias="noOfLoginAttemptsLeft" + ) + temp_token: Token64 | None = Field(default=None, alias="tempToken") + temp_success_response: AAASuccessResponseLogin | None = Field( + default=None, alias="tempSuccessResponse" + ) + + +class AAANotifyResponse(BaseModel): + type: AAANotifyResponseType | None = "__INVALID__" + login: AAASuccessResponseLogin | None = None + logout: AAASuccessResponseLogout | None = None + + +class AAASuccessResponseGenerateToken(BaseModel): + login: AAASuccessResponseLogin | None = None + session_details: SessionDetails | None = Field(default=None, alias="sessionDetails") + + +class CrudContent(BaseModel): + oid: Identifier64 | None = None + encoding: CrudContentEncoding | None = "CrudPayloadEncoding__INVALID__" + clazz: ModelClazz | None = "ModelClazzUnspecified" + protobuf: CrudContentProtobuf | None = None + json_: CrudContentJSON | None = Field(default=None, alias="json") + + +class CrudResultWithContent(BaseModel): + code: CrudResultCode | None = "CrudResultCode__INVALID__" + content: CrudContent | None = None + identifier: Identifier64 | None = None + + +class AAAFailureResponse(BaseModel): + type: AAAFailureResponseType | None = "__INVALID__" + login: AAAFailureResponseLogin | None = None + refresh: AAAFailureTokenRefresh | None = None + logout: AAAFailureResponseLogout | None = None + details: AAAFailureResponseSessionDetails | None = None + credential: AAAFailureResponseCredentialChange | None = None + query_session_details: AAAFailureResponseQueryAllSessionDetails | None = Field( + default=None, alias="querySessionDetails" + ) + generate_token: AAAFailureResponseGenerateToken | None = Field( + default=None, alias="generateToken" + ) + + +class AAASuccessResponse(BaseModel): + type: AAASuccessResponseType | None = "__INVALID__" + login: AAASuccessResponseLogin | None = None + refresh: AAASuccessTokenRefresh | None = None + details: AAASuccessSessionDetailsResponse | None = None + logout: AAASuccessResponseLogout | None = None + credential: AAASuccessResponseCredentialChange | None = None + query_session_details: AAASuccessResponseQueryAllSessionDetails | None = Field( + default=None, alias="querySessionDetails" + ) + generate_token: AAASuccessResponseGenerateToken | None = Field( + default=None, alias="generateToken" + ) + + +class CrudResponseQuery(BaseModel): + query_token: OpaqueToken64 | None = Field(default=None, alias="queryToken") + code: CrudResultCode | None = "CrudResultCode__INVALID__" + position: int | None = Field(default=None, title="The index of the first result") + size: int | None = Field( + default=None, + title="The number of results returned, could be less than the requested size", + ) + total: int | None = Field( + default=None, title="The total number of result items for this query" + ) + list_: list[CrudResultWithContent] | None = Field( + default=None, alias="list", title="List of the results" + ) + global_statistics: list[CrudStatisticsContainer] | None = Field( + default=None, alias="globalStatistics", title="Global statistics" + ) + query_statistics: list[CrudStatisticsContainer] | None = Field( + default=None, alias="queryStatistics", title="Global statistics" + ) + clazz: ModelClazz | None = "ModelClazzUnspecified" + profiles: AuthorizationProfiles | None = None + enterprises: Enterprises | None = None + roles: Roles | None = None + realms: Realms | None = None + credentials: Credentials | None = None + users: DetailedUsers | None = None + policies: Policies | None = None + doc_policies: DocPolicies | None = Field(default=None, alias="docPolicies") + allowed_enterprise_list: AllowedEnterpriseList | None = Field( + default=None, alias="allowedEnterpriseList" + ) + user_summary_report: UserSummaryReport | None = Field( + default=None, alias="userSummaryReport" + ) + user_usage_per_enterprise_list: UserUsagePerEnterpriseList | None = Field( + default=None, alias="userUsagePerEnterpriseList" + ) + + +class CrudResponseRead(BaseModel): + result: CrudResultWithContent | None = None + + +class AAAResponse(BaseModel): + type: AAAResponseType | None = "__INVALID__" + success: AAASuccessResponse | None = None + failure: AAAFailureResponse | None = None + notify: AAANotifyResponse | None = None + redirect: AAARedirectResponse | None = None + mode: AAALoginModeResponse | None = None + result: ZsrvResponse | None = None + totp_url: TOTPEnrolmentURL | None = Field(default=None, alias="totpURL") + + +class CrudResponse(BaseModel): + token: OpaqueToken64 | None = None + action: CrudAction | None = "CrudAction__INVALID__" + result: ZsrvResponse | None = None + read: CrudResponseRead | None = None + query: CrudResponseQuery | None = None + + +FeatureEntitlement.model_rebuild() diff --git a/packages/zedcloud/src/zedcloud/_generated/models/jobs.py b/packages/zedcloud/src/zedcloud/_generated/models/jobs.py new file mode 100644 index 0000000..8502667 --- /dev/null +++ b/packages/zedcloud/src/zedcloud/_generated/models/jobs.py @@ -0,0 +1,1398 @@ +# Generated by scripts/generate_from_openapi.py from zedge_job_service.swagger.json +# Do not edit by hand — re-run: uv run python scripts/generate_from_openapi.py + +from __future__ import annotations +from pydantic import AwareDatetime, Base64Str, BaseModel, Field, confloat, constr +from enum import Enum +from typing import Any + + +class AppInstEdgeNodeCluster(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, description="Id of the edge node cluster" + ) + designated_node_id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, alias="designatedNodeID", description="Id of the designated node" + ) + name: str | None = Field(default=None, description="edge node cluster name") + enable_app_pinning: bool | None = Field( + default=None, + alias="enableAppPinning", + description="enable application pinning to edge node cluster's designated node", + ) + + +class AppInstanceLogs(BaseModel): + access: bool = Field( + ..., + description="Flags to enable / disable sending of logs generated by app instance to zedcloud", + ) + + +class AppInstanceRefreshAndPurge(BaseModel): + purge: bool | None = None + + +class AppType(Enum): + app_type_unspecified = "APP_TYPE_UNSPECIFIED" + app_type_vm = "APP_TYPE_VM" + app_type_vm_runtime = "APP_TYPE_VM_RUNTIME" + app_type_container = "APP_TYPE_CONTAINER" + app_type_module = "APP_TYPE_MODULE" + app_type_docker_compose = "APP_TYPE_DOCKER_COMPOSE" + + +class BaseOSImage(BaseModel): + uuid: str = Field(..., description="system generated unique id for an image") + version: str = Field(..., description="image version") + image_name: str = Field(..., alias="imageName", description="image name") + activate: bool = Field(..., description="activation flag") + imvol_id: str | None = Field( + default=None, + alias="imvolId", + description="immutable Volume for this base image", + ) + + +class BaseosUpdate(BaseModel): + baseimage: BaseOSImage | None = None + + +class BulkService(Enum): + bulk_service_unspecified = "BULK_SERVICE_UNSPECIFIED" + bulk_service_baseos_update = "BULK_SERVICE_BASEOS_UPDATE" + bulk_service_appinstance_deploy = "BULK_SERVICE_APPINSTANCE_DEPLOY" + bulk_service_appinstance_refresh = "BULK_SERVICE_APPINSTANCE_REFRESH" + bulk_service_appinstance_purge = "BULK_SERVICE_APPINSTANCE_PURGE" + bulk_service_model_import = "BULK_SERVICE_MODEL_IMPORT" + bulk_service_bundle_import = "BULK_SERVICE_BUNDLE_IMPORT" + bulk_service_appinstance_cert_update = "BULK_SERVICE_APPINSTANCE_CERT_UPDATE" + bulk_service_appinstance_delete = "BULK_SERVICE_APPINSTANCE_DELETE" + bulk_service_baseos_update_retry = "BULK_SERVICE_BASEOS_UPDATE_RETRY" + bulk_service_appinstance_update = "BULK_SERVICE_APPINSTANCE_UPDATE" + bulk_service_device_tag_update = "BULK_SERVICE_DEVICE_TAG_UPDATE" + bulk_service_device_tag_deployment_update = ( + "BULK_SERVICE_DEVICE_TAG_DEPLOYMENT_UPDATE" + ) + bulk_service_device_project_and_target_update = ( + "BULK_SERVICE_DEVICE_PROJECT_AND_TARGET_UPDATE" + ) + bulk_service_deployment_create = "BULK_SERVICE_DEPLOYMENT_CREATE" + bulk_service_apply_patch_envelope = "BULK_SERVICE_APPLY_PATCH_ENVELOPE" + + +class BundleDetail(BaseModel): + name: str | None = None + parent_bundle_id: str | None = Field(default=None, alias="parentBundleId") + + +class BundleImport(BaseModel): + bundle_config: list[BundleDetail] | None = Field(default=None, alias="bundleConfig") + + +class Cursor(BaseModel): + page_token: str | None = Field( + default=None, alias="pageToken", description="Page Token" + ) + order_by: list[str] | None = Field( + default=None, + alias="orderBy", + description="OrderBy helps in sorting the list response", + ) + page_num: float | None = Field( + default=None, alias="pageNum", description="Page Number" + ) + page_size: float | None = Field( + default=None, alias="pageSize", description="Defines the page size" + ) + total_pages: float | None = Field( + default=None, + alias="totalPages", + description="Total number of pages to be fetched.", + ) + + +class DeploymentTagUpdate(BaseModel): + deployment_tag: str = Field( + ..., + alias="deploymentTag", + description="deployment tag to be updated on the device", + ) + + +class DeploymentType(Enum): + deployment_type_unspecified = "DEPLOYMENT_TYPE_UNSPECIFIED" + deployment_type_stand_alone = "DEPLOYMENT_TYPE_STAND_ALONE" + deployment_type_azure = "DEPLOYMENT_TYPE_AZURE" + deployment_type_k3_s = "DEPLOYMENT_TYPE_K3S" + deployment_type_aws = "DEPLOYMENT_TYPE_AWS" + deployment_type_k3_s_azure = "DEPLOYMENT_TYPE_K3S_AZURE" + deployment_type_k3_s_aws = "DEPLOYMENT_TYPE_K3S_AWS" + deployment_type_vmware_vce = "DEPLOYMENT_TYPE_VMWARE_VCE" + deployment_type_vmware_tkg_attach = "DEPLOYMENT_TYPE_VMWARE_TKG_ATTACH" + deployment_type_docker_runtime = "DEPLOYMENT_TYPE_DOCKER_RUNTIME" + + +class DeviceProjectAndTargetUpdate(BaseModel): + project_id: str = Field(..., alias="projectId", description="project id.") + tags: dict[str, str] | None = Field( + default=None, description="tag to be updated on the device" + ) + deployment_tag: str | None = Field( + default=None, + alias="deploymentTag", + description="deployment tag to be updated on the device", + ) + override: bool | None = Field( + default=None, + description="Set this flag to override given tags over existing tags. Otherwise the tags will be merged/appended", + ) + + +class InstanceTransitionAction(Enum): + instance_ta_unspecified = "INSTANCE_TA_UNSPECIFIED" + instance_ta_none = "INSTANCE_TA_NONE" + instance_ta_updaterequired = "INSTANCE_TA_UPDATEREQUIRED" + instance_ta_updatewithrestart = "INSTANCE_TA_UPDATEWITHRESTART" + instance_ta_updatewithpurge = "INSTANCE_TA_UPDATEWITHPURGE" + + +class IoType(Enum): + io_type_unspecified = "IO_TYPE_UNSPECIFIED" + io_type_eth = "IO_TYPE_ETH" + io_type_usb = "IO_TYPE_USB" + io_type_com = "IO_TYPE_COM" + io_type_audio = "IO_TYPE_AUDIO" + io_type_wlan = "IO_TYPE_WLAN" + io_type_wwan = "IO_TYPE_WWAN" + io_type_hdmi = "IO_TYPE_HDMI" + io_type_lte = "IO_TYPE_LTE" + io_type_storage_nvme_device = "IO_TYPE_STORAGE_NVME_DEVICE" + io_type_storage_sata_device = "IO_TYPE_STORAGE_SATA_DEVICE" + io_type_eth_pf = "IO_TYPE_ETH_PF" + io_type_eth_vf = "IO_TYPE_ETH_VF" + io_type_usb_controller = "IO_TYPE_USB_CONTROLLER" + io_type_usb_device = "IO_TYPE_USB_DEVICE" + io_type_can = "IO_TYPE_CAN" + io_type_vcan = "IO_TYPE_VCAN" + io_type_lcan = "IO_TYPE_LCAN" + io_type_vlan = "IO_TYPE_VLAN" + io_type_other = "IO_TYPE_OTHER" + + +class JobStatus(Enum): + job_status_unspecified = "JOB_STATUS_UNSPECIFIED" + job_status_initialized = "JOB_STATUS_INITIALIZED" + job_status_ready = "JOB_STATUS_READY" + job_status_inprogress = "JOB_STATUS_INPROGRESS" + job_status_completed = "JOB_STATUS_COMPLETED" + job_status_failed = "JOB_STATUS_FAILED" + job_status_aborted = "JOB_STATUS_ABORTED" + + +class LispServer(BaseModel): + name_or_ip: str = Field(..., alias="nameOrIp", description="name/IP") + credential: str = Field(..., description="lisp credential") + + +class ModelAttributes(BaseModel): + memory: str | None = None + storage: str | None = None + cpus: str | None = None + + +class NetInstEdgeNodeCluster(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, description="Id of the Edge Node Cluster" + ) + designated_node_id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + alias="designatedNodeID", + description="Id of the designated Edge Node", + ) + + +class NetworkInstanceDhcpType(Enum): + network_instance_dhcp_type_unspecified = "NETWORK_INSTANCE_DHCP_TYPE_UNSPECIFIED" + network_instance_dhcp_type_v4 = "NETWORK_INSTANCE_DHCP_TYPE_V4" + network_instance_dhcp_type_v6 = "NETWORK_INSTANCE_DHCP_TYPE_V6" + network_instance_dhcp_type_cryptoeid = "NETWORK_INSTANCE_DHCP_TYPE_CRYPTOEID" + network_instance_dhcp_type_cryptov4 = "NETWORK_INSTANCE_DHCP_TYPE_CRYPTOV4" + network_instance_dhcp_type_cryptov6 = "NETWORK_INSTANCE_DHCP_TYPE_CRYPTOV6" + + +class NetworkInstanceKind(Enum): + network_instance_kind_unspecified = "NETWORK_INSTANCE_KIND_UNSPECIFIED" + network_instance_kind_transparent = "NETWORK_INSTANCE_KIND_TRANSPARENT" + network_instance_kind_switch = "NETWORK_INSTANCE_KIND_SWITCH" + network_instance_kind_local = "NETWORK_INSTANCE_KIND_LOCAL" + network_instance_kind_cloud = "NETWORK_INSTANCE_KIND_CLOUD" + network_instance_kind_mesh = "NETWORK_INSTANCE_KIND_MESH" + network_instance_kind_honeypot = "NETWORK_INSTANCE_KIND_HONEYPOT" + + +class NtpServer(BaseModel): + server: str | None = Field(default=None, description="NTP Server IP or FQDN") + + +class ObjectRevision(BaseModel): + prev: str | None = Field(default=None, description="Previous") + curr: str = Field(..., description="Current Database version of the record") + created_at: dict[str, Any] = Field( + ..., + alias="createdAt", + description="The time, in milliseconds since the epoch, when the record was created.", + ) + created_by: str = Field(..., alias="createdBy", description="User data: Created By") + updated_at: dict[str, Any] = Field( + ..., + alias="updatedAt", + description="The time, in milliseconds since the epoch, when the record was last updated.", + ) + updated_by: str = Field(..., alias="updatedBy", description="User data: Updated By") + + +class ObjectType(Enum): + object_type_unspecified = "OBJECT_TYPE_UNSPECIFIED" + object_type_user = "OBJECT_TYPE_USER" + object_type_edge_node = "OBJECT_TYPE_EDGE_NODE" + object_type_edge_app = "OBJECT_TYPE_EDGE_APP" + object_type_image = "OBJECT_TYPE_IMAGE" + object_type_edge_app_instance = "OBJECT_TYPE_EDGE_APP_INSTANCE" + object_type_project = "OBJECT_TYPE_PROJECT" + object_type_network = "OBJECT_TYPE_NETWORK" + object_type_datastore = "OBJECT_TYPE_DATASTORE" + object_type_service = "OBJECT_TYPE_SERVICE" + object_type_service_instance = "OBJECT_TYPE_SERVICE_INSTANCE" + object_type_enterprise = "OBJECT_TYPE_ENTERPRISE" + object_type_role = "OBJECT_TYPE_ROLE" + object_type_credential = "OBJECT_TYPE_CREDENTIAL" + object_type_network_instance = "OBJECT_TYPE_NETWORK_INSTANCE" + object_type_volume_instance = "OBJECT_TYPE_VOLUME_INSTANCE" + object_type_realm = "OBJECT_TYPE_REALM" + object_type_authprofile = "OBJECT_TYPE_AUTHPROFILE" + object_type_policy = "OBJECT_TYPE_POLICY" + object_type_app_policy = "OBJECT_TYPE_APP_POLICY" + object_type_cluster_instance = "OBJECT_TYPE_CLUSTER_INSTANCE" + object_type_plugin = "OBJECT_TYPE_PLUGIN" + object_type_doc_policy = "OBJECT_TYPE_DOC_POLICY" + object_type_orchestrator_cluster = "OBJECT_TYPE_ORCHESTRATOR_CLUSTER" + object_type_tags = "OBJECT_TYPE_TAGS" + object_type_edge_node_interface = "OBJECT_TYPE_EDGE_NODE_INTERFACE" + object_type_deployment = "OBJECT_TYPE_DEPLOYMENT" + object_type_entitlements = "OBJECT_TYPE_ENTITLEMENTS" + object_type_data_stream = "OBJECT_TYPE_DATA_STREAM" + object_type_api_usage = "OBJECT_TYPE_API_USAGE" + object_type_app_instance_snapshot = "OBJECT_TYPE_APP_INSTANCE_SNAPSHOT" + object_type_patch_envelope = "OBJECT_TYPE_PATCH_ENVELOPE" + object_type_resource_usage_track = "OBJECT_TYPE_RESOURCE_USAGE_TRACK" + object_type_patch_envelope_reference = "OBJECT_TYPE_PATCH_ENVELOPE_REFERENCE" + object_type_dev_passthrough = "OBJECT_TYPE_DEV_PASSTHROUGH" + object_type_edge_node_cluster = "OBJECT_TYPE_EDGE_NODE_CLUSTER" + object_type_asset_group = "OBJECT_TYPE_ASSET_GROUP" + object_type_app_profile = "OBJECT_TYPE_APP_PROFILE" + object_type_profile_deployment = "OBJECT_TYPE_PROFILE_DEPLOYMENT" + object_type_zks_instance = "OBJECT_TYPE_ZKS_INSTANCE" + object_type_cluster_group = "OBJECT_TYPE_CLUSTER_GROUP" + + +class OpaqueConfigType(Enum): + opaque_config_type_unspecified = "OPAQUE_CONFIG_TYPE_UNSPECIFIED" + opaque_config_type_vpn = "OPAQUE_CONFIG_TYPE_VPN" + opaque_config_type_lisp = "OPAQUE_CONFIG_TYPE_LISP" + + +class SelectionCriteria(BaseModel): + project_id: str | None = Field(default=None, alias="projectId") + bundle_id: str | None = Field(default=None, alias="bundleId") + device_id_list: list[str] | None = Field(default=None, alias="deviceIdList") + + +class SnapshotState(Enum): + invalid = "INVALID" + idle = "IDLE" + creating = "CREATING" + created = "CREATED" + create_failed = "CREATE_FAILED" + rolling_back = "ROLLING_BACK" + active = "ACTIVE" + rollback_failed = "ROLLBACK_FAILED" + deleting = "DELETING" + delete_failed = "DELETE_FAILED" + deleted = "DELETED" + + +class StaticDNSList(BaseModel): + hostname: str | None = Field(default=None, description="Host name") + addrs: list[str] | None = Field(default=None, description="Addresses") + + +class Summary(BaseModel): + description: str | None = Field(default=None, description="Summary description") + total: float | None = Field(default=None, description="Total") + values: dict[str, int] | None = Field( + default=None, description="Values: Map for storing " + ) + + +class TagUpdate(BaseModel): + tags: dict[str, str] = Field(..., description="tag to be updated on the device") + override: bool | None = Field( + default=None, + description="Set this flag to override given tags over existing tags. Otherwise the tags will be merged/appended", + ) + + +class TransCause(Enum): + trans_cause_unspecified = "TRANS_CAUSE_UNSPECIFIED" + trans_cause_app_drive_changed = "TRANS_CAUSE_APP_DRIVE_CHANGED" + trans_cause_app_network_changed = "TRANS_CAUSE_APP_NETWORK_CHANGED" + trans_cause_app_custom_config_changed = "TRANS_CAUSE_APP_CUSTOM_CONFIG_CHANGED" + trans_cause_app_module_bundle_update = "TRANS_CAUSE_APP_MODULE_BUNDLE_UPDATE" + trans_cause_app_desc_changed = "TRANS_CAUSE_APP_DESC_CHANGED" + trans_cause_app_fixed_resources_changed = "TRANS_CAUSE_APP_FIXED_RESOURCES_CHANGED" + trans_cause_app_vnc_mode_changed = "TRANS_CAUSE_APP_VNC_MODE_CHANGED" + trans_cause_app_vm_mode_changed = "TRANS_CAUSE_APP_VM_MODE_CHANGED" + trans_cause_inter_ca_expiring = "TRANS_CAUSE_INTER_CA_EXPIRING" + trans_cause_inter_ca_expired = "TRANS_CAUSE_INTER_CA_EXPIRED" + trans_cause_device_ca_expiring = "TRANS_CAUSE_DEVICE_CA_EXPIRING" + trans_cause_device_ca_expired = "TRANS_CAUSE_DEVICE_CA_EXPIRED" + trans_cause_identity_ca_expiring = "TRANS_CAUSE_IDENTITY_CA_EXPIRING" + trans_cause_identity_ca_expired = "TRANS_CAUSE_IDENTITY_CA_EXPIRED" + trans_cause_app_compose_tar_image_changed = ( + "TRANS_CAUSE_APP_COMPOSE_TAR_IMAGE_CHANGED" + ) + trans_cause_app_compose_yaml_changed = "TRANS_CAUSE_APP_COMPOSE_YAML_CHANGED" + trans_cause_app_compose_datastore_changed = ( + "TRANS_CAUSE_APP_COMPOSE_DATASTORE_CHANGED" + ) + trans_cause_app_enable_vm_config_changed = ( + "TRANS_CAUSE_APP_ENABLE_VM_CONFIG_CHANGED" + ) + + +class VariableFileEncoding(Enum): + file_encoding_unspecified = "FILE_ENCODING_UNSPECIFIED" + file_encoding_base64 = "FILE_ENCODING_BASE64" + + +class VariableGroupConditionOperator(Enum): + condition_operator_unspecified = "CONDITION_OPERATOR_UNSPECIFIED" + condition_operator_equalto = "CONDITION_OPERATOR_EQUALTO" + condition_operator_notequalto = "CONDITION_OPERATOR_NOTEQUALTO" + + +class VariableOptionVal(BaseModel): + label: str | None = Field( + default=None, description="Display label of the key in User-Agent" + ) + value: str | None = Field(default=None, description="Value of the key to be used") + + +class VariableVariableFormat(Enum): + variable_format_unspecified = "VARIABLE_FORMAT_UNSPECIFIED" + variable_format_text = "VARIABLE_FORMAT_TEXT" + variable_format_number = "VARIABLE_FORMAT_NUMBER" + variable_format_file = "VARIABLE_FORMAT_FILE" + variable_format_dropdown = "VARIABLE_FORMAT_DROPDOWN" + variable_format_boolean = "VARIABLE_FORMAT_BOOLEAN" + variable_format_password = "VARIABLE_FORMAT_PASSWORD" + + +class VmBootloaderMode(Enum): + vm_bootloader_mode_unspecified = "VM_BOOTLOADER_MODE_UNSPECIFIED" + vm_bootloader_mode_legacy = "VM_BOOTLOADER_MODE_LEGACY" + vm_bootloader_mode_uefi = "VM_BOOTLOADER_MODE_UEFI" + + +class ZcOpsStatus(Enum): + ops_status_unspecified = "OPS_STATUS_UNSPECIFIED" + ops_status_pending = "OPS_STATUS_PENDING" + ops_status_ongoing = "OPS_STATUS_ONGOING" + ops_status_complete = "OPS_STATUS_COMPLETE" + + +class ZcOpsType(Enum): + ops_type_unspecified = "OPS_TYPE_UNSPECIFIED" + ops_type_read = "OPS_TYPE_READ" + ops_type_delete = "OPS_TYPE_DELETE" + ops_type_create = "OPS_TYPE_CREATE" + ops_type_update = "OPS_TYPE_UPDATE" + ops_type_list = "OPS_TYPE_LIST" + + +class ZedCloudOpsCmd(BaseModel): + counter: float | None = Field(default=None, description="counter") + ops_time: dict[str, Any] | None = Field( + default=None, alias="opsTime", description="Timestamp: Operational time" + ) + + +class ZsrvErrorCode(Enum): + z_msg_error_none = "zMsgErrorNone" + z_msg_sucess = "zMsgSucess" + not_found = "NotFound" + already_exists = "AlreadyExists" + version_mismatch = "VersionMismatch" + range_error = "RangeError" + large_result = "LargeResult" + incomplete_data = "IncompleteData" + invalid_data = "InvalidData" + function_unsupported = "FunctionUnsupported" + no_memory = "NoMemory" + send_failure = "SendFailure" + timeout = "Timeout" + bad_req_body = "BadReqBody" + bad_req_param = "BadReqParam" + invalid_field_format = "InvalidFieldFormat" + url_not_found = "UrlNotFound" + api_version_not_supported = "ApiVersionNotSupported" + unauthorized = "Unauthorized" + forbidden = "Forbidden" + conflict = "Conflict" + not_modified = "NotModified" + dependency_conflict = "DependencyConflict" + json_fmt_error = "JsonFmtError" + proto_fmt_error = "ProtoFmtError" + cert_error = "CertError" + data_base_connection = "DataBaseConnection" + db_error = "DBError" + z_msg_accepted = "zMsgAccepted" + z_msg_created = "zMsgCreated" + pre_condition_failed = "PreConditionFailed" + internal_server_error = "InternalServerError" + + +class AppACEMatch(BaseModel): + type: str = Field(..., description="Type") + value: str = Field(..., description="Value") + + +class AppMapParams(BaseModel): + port: float = Field(..., description="Application port") + + +class CommonConnectivityProbeMethod(Enum): + connectivity_probe_method_unspecified = "CONNECTIVITY_PROBE_METHOD_UNSPECIFIED" + connectivity_probe_method_icmp = "CONNECTIVITY_PROBE_METHOD_ICMP" + connectivity_probe_method_tcp = "CONNECTIVITY_PROBE_METHOD_TCP" + + +class CommonProbeEndpoint(BaseModel): + host: str | None = Field(default=None, description="IP address or FQDN.") + port: int | None = Field( + default=None, + description="TCP port required for CONNECTIVITY_PROBE_METHOD_TCP.\nLeave empty for CONNECTIVITY_PROBE_METHOD_ICMP.", + ) + + +class DhcpIpRange(BaseModel): + start: str | None = Field(default=None, description="starting IP") + end: str | None = Field(default=None, description="ending IP") + + +class Drive(BaseModel): + imagename: str = Field(..., description="Name of Image Object used for the drive.") + maxsize: float = Field(..., description="Drive maximum size") + readonly: bool = Field( + ..., + description="Read only flag. If set, drive is mounted as readonly by app instance.", + ) + preserve: bool = Field( + ..., + description="Preserve the drive even when all app instances using it are deleted", + ) + drvtype: str = Field( + ..., + description="Type of Drive. Valid Values: UNSPECIFIED, CDROM, HDD, NET, HDD_EMPTY. HDD_EMPTY - is to allocate the empty disk of maxsizebytes specified", + ) + target: str = Field( + ..., description="type of target. Valid values: Disk, Kernel, Initrd, RamDisk" + ) + volumelabel: str | None = Field( + default=None, description="User defined volume to use for this drive " + ) + mvolname: str | None = Field( + default=None, + description="mutable Volume for this drive. Only one of imvolname and mvolname must be specified.", + ) + imvolname: str | None = Field( + default=None, + description="immutable Volume for this drive. Only one of imvolname and mvolname must be specified.", + ) + ignorepurge: bool | None = Field( + default=None, + description="don't purge this drive as part of purge command for mutable volumes", + ) + cleartext: bool | None = Field( + default=None, description="If set, don't encrypt the drive. Store in cleartext" + ) + mountpath: str | None = Field( + default=None, description="Mount Path for the drive in the App Instance" + ) + runtime_internal: bool | None = Field( + default=None, + alias="runtimeInternal", + description="If set, the drive is internal to the runtime and not externally exposed with API", + ) + + +class HvMode(Enum): + hv_pv = "HV_PV" + hv_hvm = "HV_HVM" + hv_fml = "HV_FML" + hv_nohyper = "HV_NOHYPER" + hv_legacy = "HV_LEGACY" + + +class PhyAdapter(BaseModel): + type: IoType | None = "IO_TYPE_UNSPECIFIED" + name: str | None = Field(default=None, description="Physical Adapter name") + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + + +class ProtobufAny(BaseModel): + type_url: str | None = Field(default=None, alias="typeUrl") + value: Base64Str | None = None + + +class SpType(Enum): + sptype_invalidsrv = "SPTYPE_INVALIDSRV" + sptype_mapserver = "SPTYPE_MAPSERVER" + sptype_supportserver = "SPTYPE_SUPPORTSERVER" + + +class Vm(BaseModel): + cpus: float = Field(..., description="CPUs") + memory: float = Field(..., description="Memory") + mode: HvMode + vnc: bool = Field(..., description="VNC") + vnc_display: float | None = Field( + default=None, alias="vncDisplay", description="VNC display" + ) + cpu_pinning_enabled: bool | None = Field( + default=None, alias="cpuPinningEnabled", description="Enable CpuPinning" + ) + vmm_maxmem: int | None = Field( + default=None, + alias="vmmMaxmem", + description="Maximum amount of memory in kbytes allowed for VM monitor to occupy", + ) + bootloader_mode: VmBootloaderMode | None = Field( + default="VM_BOOTLOADER_MODE_UNSPECIFIED", alias="bootloaderMode" + ) + enable_oem_win_license_key: bool | None = Field( + default=None, + alias="enableOemWinLicenseKey", + description="Enable device which has VM to receive the Windows license embedded in the ACPI tables", + ) + disable_vtpm: bool | None = Field( + default=None, + alias="disableVTPM", + description="Disable vTPM for virtual machines (VM)", + ) + + +class ActionScope(BaseModel): + type: ObjectType | None = "OBJECT_TYPE_UNSPECIFIED" + id: str | None = Field( + default=None, + description="Unique id of the type (e.g. projectId in case of project type)", + ) + + +class CustomUpdateModelFields(BaseModel): + custom_model_attributes: ModelAttributes | None = Field( + default=None, alias="customModelAttributes" + ) + + +class DhcpServerConfig(BaseModel): + subnet: str | None = Field(default=None, description="Subnet address") + mask: str | None = Field(default=None, description="Subnet Mask") + gateway: str | None = Field( + default=None, description="IP Address of Network Gateway" + ) + domain: str | None = Field(default=None, description="Network domain") + ntp: str | None = Field( + default=None, + description="IP Address of NTP Server", + title="ntp will be deprecated", + ) + dns: list[str] | None = Field( + default=None, + description="IP Addresses of DNS servers", + title="possible DNS ip address", + ) + dhcp_range: DhcpIpRange | None = Field(default=None, alias="dhcpRange") + ntp_servers: list[NtpServer] | None = Field( + default=None, alias="ntpServers", description="NTP Servers" + ) + + +class EIDRegister(BaseModel): + app_cert: Base64Str = Field(..., alias="AppCert", description="app certificate") + app_public_key: Base64Str = Field( + ..., alias="AppPublicKey", description="App public key" + ) + app_private_key: Base64Str = Field( + ..., alias="AppPrivateKey", description="App private key" + ) + uuid: str = Field(..., alias="UUID", description="UUID") + display_name: str = Field(..., alias="DisplayName", description="Display name") + lisp_instance: float = Field(..., alias="LispInstance", description="Lisp Instance") + eid: str = Field(..., alias="EID", description="EID") + eid_hash_len: float = Field(..., alias="EIDHashLen", description="EID hash length") + lisp_signature: str = Field( + ..., alias="LispSignature", description="Lisp Signature" + ) + lisp_map_servers: list[LispServer] = Field( + ..., + alias="LispMapServers", + description="Lisp Map Server", + title="time CreateTime time.Time", + ) + + +class JobConfig(BaseModel): + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the job request, unique across the enterprise. Once object is created, name can’t be changed", + ) + id: ( + constr( + pattern=r"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + ) + | None + ) = Field( + default=None, + description="System defined universally unique Id of the job request", + ) + object_type: ObjectType = Field(..., alias="objectType") + operation_type: BulkService | None = Field( + default="BULK_SERVICE_UNSPECIFIED", alias="operationType" + ) + status: JobStatus | None = "JOB_STATUS_UNSPECIFIED" + object_list: list[str] | None = Field(default=None, alias="objectList") + start_time: AwareDatetime | None = Field( + default=None, alias="startTime", description="start time of the job" + ) + finish_time: AwareDatetime | None = Field( + default=None, alias="finishTime", description="finish time of the job" + ) + revision: ObjectRevision | None = None + individual_op_status: dict[str, str] | None = Field( + default=None, + alias="individualOpStatus", + description="status of individual field of the given object", + ) + selection_criteria: SelectionCriteria | None = Field( + default=None, alias="selectionCriteria" + ) + error_detail_of_job: str | None = Field( + default=None, + alias="errorDetailOfJob", + description="detailed error with which job/task has failed", + ) + title: str | None = Field( + default=None, description="user or system specified title" + ) + description: str | None = Field( + default=None, description="user or system specified description" + ) + project_id: str | None = Field( + default=None, + alias="projectId", + description="project Id in which job is getting created", + ) + + +class JobConfigList(BaseModel): + summary_by_state: Summary | None = Field(default=None, alias="summaryByState") + list_: list[JobConfig] | None = Field( + default=None, alias="list", description="Details of job list records." + ) + next: Cursor | None = None + + +class ServicePoint(BaseModel): + type: SpType | None = "SPTYPE_INVALIDSRV" + name_or_ip: str | None = Field( + default=None, alias="NameOrIp", description="Service name/ service name" + ) + credential: str | None = Field( + default=None, alias="Credential", description="Service credentials" + ) + + +class SysModelDetail(BaseModel): + name: str | None = None + parent_model_id: str | None = Field(default=None, alias="parentModelId") + custom_model_fields: CustomUpdateModelFields | None = Field( + default=None, alias="customModelFields" + ) + + +class TransDetails(BaseModel): + cause: TransCause | None = "TRANS_CAUSE_UNSPECIFIED" + severity: str | None = Field( + default=None, + description="Urgency of the recommended action (ERROR - must take action immediately, WARN - must take action but not immediately, NOTICE - may take action", + ) + scope: ActionScope | None = None + + +class VariableGroupCondition(BaseModel): + name: str | None = None + value: str | None = None + operator: VariableGroupConditionOperator | None = "CONDITION_OPERATOR_UNSPECIFIED" + + +class VariableGroupVariable(BaseModel): + type: str | None = None + name: str = Field(..., description="Name of the Variable (Required)") + label: str = Field(..., description="Label for the variable (Required)") + max_length: str | None = Field( + default=None, + alias="maxLength", + description="Max length of the value of the variable(Optional. Default: 1024)", + ) + required: bool = Field( + ..., + description="This variable MUST be specified when creating an App Instance. (Optional. Default: False)", + ) + default: str | None = Field( + default=None, + description="Default value of the variable. (Optional. Default: )", + ) + process_input: str | None = Field(default=None, alias="processInput") + value: str | None = Field( + default=None, + description="User-specified value of the variable.(Required if required is true. Optional otherwise)", + ) + format: VariableVariableFormat + encode: VariableFileEncoding | None = "FILE_ENCODING_UNSPECIFIED" + options: list[VariableOptionVal] | None = Field( + default=None, + description="Key-Value pair of options. Applicable if format is VARIABLE_FORMAT_DROPDOWN", + ) + + +class ZsrvError(BaseModel): + ec: ZsrvErrorCode | None = "zMsgErrorNone" + location: str | None = Field(default=None, title="Ignore: Internal field only") + details: str | None = Field( + default=None, title="Field captures string description of details" + ) + + +class ZsrvResponse(BaseModel): + operation_type: ZcOpsType | None = Field( + default="OPS_TYPE_UNSPECIFIED", alias="operationType" + ) + operation_status: ZcOpsStatus | None = Field( + default="OPS_STATUS_UNSPECIFIED", alias="operationStatus" + ) + object_kind: str | None = Field( + default=None, + alias="objectKind", + title="zedcloud object kind on which the operation was performed", + ) + object_id: str | None = Field( + default=None, + alias="objectId", + title="Unique value identifies the object that was operated on", + ) + object_name: str | None = Field( + default=None, alias="objectName", title="name of the object" + ) + object_revision: str | None = Field( + default=None, + alias="objectRevision", + title="object revision post the operation, note Read operation\ndoesn't change the revision", + ) + object_type: ObjectType | None = Field( + default="OBJECT_TYPE_UNSPECIFIED", alias="objectType" + ) + operation_time: str | None = Field( + default=None, alias="operationTime", title="time of operation" + ) + start_time: str | None = Field( + default=None, alias="startTime", title="total time taken by operations" + ) + end_time: str | None = Field(default=None, alias="endTime") + user: str | None = Field( + default=None, title="the operation is performed on behalf of this user" + ) + http_status_code: int | None = Field( + default=None, alias="httpStatusCode", title="http response" + ) + http_status_msg: str | None = Field( + default=None, alias="httpStatusMsg", title="summary of the error in text format" + ) + job_id: str | None = Field( + default=None, alias="jobId", title="for tracking asynchronous tasks" + ) + error: list[ZsrvError] | None = Field( + default=None, + title="one or more errors will be set if the operation failed\ni.e. httpStatusCode != 2xx", + ) + + +class AppACEAction(BaseModel): + drop: bool = Field(..., description="ACE drop flag") + limit: bool = Field(..., description="ACE limit flag") + limitrate: float = Field(..., description="ACE limit rate") + limitunit: str = Field(..., description="ACE limit unit") + limitburst: float = Field(..., description="ACE limit burst") + portmap: bool = Field(..., description="application port map flag") + mapparams: AppMapParams + + +class CommonConnectivityProbe(BaseModel): + probe_method: CommonConnectivityProbeMethod | None = Field( + default="CONNECTIVITY_PROBE_METHOD_UNSPECIFIED", alias="probeMethod" + ) + probe_endpoint: CommonProbeEndpoint | None = Field( + default=None, alias="probeEndpoint" + ) + + +class GooglerpcStatus(BaseModel): + code: int | None = None + message: str | None = None + details: list[ProtobufAny] | None = None + + +class CustomConfigVariableGroup(BaseModel): + name: str | None = Field( + default=None, description="Name of the Variable Group(Required)" + ) + variables: list[VariableGroupVariable] | None = Field( + default=None, description="List of variables(Required)" + ) + required: bool | None = Field( + default=None, + description="Indicates if the variable group is required to be specified for the App Instance. (Optional. Default:False)", + ) + condition: VariableGroupCondition | None = None + + +class LispConfig(BaseModel): + lispiid: float | None = Field(default=None, description="lisp id") + allocate: bool | None = Field(default=None, description="Allocate flag") + exportprivate: bool | None = Field(default=None, description="Export Private flag") + allocationprefix: Base64Str | None = Field( + default=None, description="Allocation Prefix" + ) + allocationprefixlen: float | None = Field( + default=None, description="Allocation Prefix Length" + ) + sp: list[ServicePoint] | None = Field( + default=None, description="Service Point List" + ) + + +class ManifestInfo(BaseModel): + bundle_version: str | None = Field( + default=None, + alias="bundleVersion", + description="Current version of edge application being used", + ) + next_bundle_version: str | None = Field( + default=None, + alias="nextBundleVersion", + description="Next version of edge application available", + ) + transition_action: InstanceTransitionAction | None = Field( + default="INSTANCE_TA_UNSPECIFIED", alias="transitionAction" + ) + params: dict[str, str] | None = Field( + default=None, + description="Common and Custom parameters for deciding on transition actions", + ) + details: TransDetails | None = None + enablevnc: bool | None = Field(default=None, description="Enable vnc for the app") + + +class ModelImport(BaseModel): + model_config_: list[SysModelDetail] | None = Field( + default=None, alias="modelConfig" + ) + + +class NetInstOpaqueConfig(BaseModel): + type: OpaqueConfigType | None = "OPAQUE_CONFIG_TYPE_UNSPECIFIED" + oconfig: str | None = Field( + default=None, description="base64 encoded string of opaque config" + ) + lisp: LispConfig | None = None + + +class ProbeConfig(BaseModel): + enable_gateway_ping: bool | None = Field( + default=None, alias="enableGatewayPing", description="Enable gateway ping" + ) + ping_max_cost: float | None = Field( + default=None, alias="pingMaxCost", description="Ping max cost" + ) + prefer_lower_cost: bool | None = Field( + default=None, alias="preferLowerCost", description="Prefer lower cost" + ) + prefer_stronger_wwan_signal: bool | None = Field( + default=None, + alias="preferStrongerWwanSignal", + description="Prefer stronger WWAN signal", + ) + custom_probe_config: CommonConnectivityProbe | None = Field( + default=None, alias="customProbeConfig" + ) + + +class StaticIPRoute(BaseModel): + prefix: str | None = Field(default=None, description="IP Prefix") + gateway: str | None = Field(default=None, description="Gateway IP") + output_port: str | None = Field( + default=None, alias="outputPort", description="Output Port" + ) + probe_config: ProbeConfig | None = Field(default=None, alias="probeConfig") + + +class AppACE(BaseModel): + matches: list[AppACEMatch] = Field(..., description="app ACE match") + actions: list[AppACEAction] = Field(..., description="app ACE actions") + id: float = Field(..., description="app ACE id") + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the app ACE, unique across the enterprise. Once object is created, name can’t be changed", + ) + + +class AppInterface(BaseModel): + netname: str | None = Field( + default=None, + description="network name: will be deprecated in future, use netinstname", + ) + io: PhyAdapter | None = None + intforder: float | None = Field(default=None, description="intforder") + intfname: str = Field(..., description="intf Name") + directattach: bool | None = Field( + default=None, + description="direct attach flag", + title="comes from manifest during app create", + ) + privateip: bool | None = Field(default=None, description="Private IP flag") + acls: list[AppACE] | None = Field(default=None, description="app Acls") + ipaddr: str | None = Field( + default=None, + description="IP address", + title="if netname points static DHCP then we need to take\nstatic /32 address here", + ) + macaddr: str | None = Field( + default=None, + description="MAC address", + title="in case of p2v we might want to provide a mac-address.\napplicable only in case of DHCP=passthrough", + ) + access_vlan_id: confloat(ge=2.0, le=4093.0) | None = Field( + default=None, + alias="accessVlanId", + description="access port VLAN ID, vlan id of zero will be treated as trunk port and vlan id 1 is implicitly used by linux bridges", + ) + eidregister: EIDRegister | None = None + netinstname: str | None = Field( + default=None, + description='Network Instance name to be matched for interface assignment. Applicable only when "direct attach" flag is false', + ) + netinsttag: dict[str, str] | None = Field( + default=None, + description='Network Instance tag to be matched for interface assignment. Applicable only when "direct attach" flag is false', + ) + netinstid: str | None = Field( + default=None, + description="Network Instance id to be matched for interface assignment.", + ) + default_net_instance: bool | None = Field( + default=None, alias="defaultNetInstance", description="default instance flag" + ) + allow_to_discover: bool | None = Field( + default=None, + alias="allowToDiscover", + description="flag tells if appInstance have permission to access the network mappings from the connected netInstance", + ) + + +class CustomConfig(BaseModel): + name: str | None = Field( + default=None, description="Name of CustomConfig (Required)" + ) + add: bool | None = Field( + default=None, + description="Add the Custom Config to App Instance (Optional. Default: False)", + ) + override: bool | None = Field( + default=None, + description="Override existing custom config from App Bundle Manifest (Optional. Default: False)", + ) + allow_storage_resize: bool | None = Field( + default=None, + alias="allowStorageResize", + description="Allow Appinstance storage to be resized after app instance is created. (Optional. Default: False)", + ) + field_delimiter: str | None = Field( + default=None, + alias="fieldDelimiter", + description="Field delimiter used in specifying variables in template. (Required)", + ) + template: str | None = Field( + default=None, description="base64 encrypted template string. (Optional)" + ) + variable_groups: list[CustomConfigVariableGroup] | None = Field( + default=None, + alias="variableGroups", + description="List of Variable groups. (Required)", + ) + + +class NetInstConfig(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="System defined universally unique Id of the network instance", + ) + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the network instance, unique across the enterprise. Once object is created, name can’t be changed", + ) + title: constr( + pattern=r"^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined title of the network instance. Title can be changed at any time", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the network instance" + ) + revision: ObjectRevision | None = None + project_id: str | None = Field( + default=None, + alias="projectId", + description="id of the project in which network instance is created", + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + cluster_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="clusterID", + description="id of the Cluster in which the network instance is configured", + ) + device_id: str = Field( + ..., + alias="deviceId", + description="id of the device on which network instance is created", + title="device on which this network is running", + ) + port: str = Field( + ..., + description="name of port mapping in the model", + title="name of port mapping in the model", + ) + port_tags: dict[str, str] | None = Field( + default=None, + alias="portTags", + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + kind: NetworkInstanceKind + dhcp: bool | None = Field( + default=None, description="Deprecated", title="dhcp - DEPRECATED" + ) + type: NetworkInstanceDhcpType | None = "NETWORK_INSTANCE_DHCP_TYPE_UNSPECIFIED" + ip: DhcpServerConfig | None = None + dns_list: list[StaticDNSList] | None = Field( + default=None, alias="dnsList", description="List of Static DNS entries" + ) + oconfig: str | None = Field(default=None, title="Deprecated") + lisp: LispConfig | None = None + opaque: NetInstOpaqueConfig | None = None + device_default: bool | None = Field( + default=None, + alias="deviceDefault", + description="flag to indicate if this is the default network instance for the device", + title="flag to indicate if this is default network", + ) + network_policy_id: str | None = Field( + default=None, + alias="networkPolicyId", + description="id of the network policy to be attached to this network instance", + ) + propagate_connected_routes: bool | None = Field( + default=None, + alias="propagateConnectedRoutes", + description="Automatically propagate connected routes", + ) + static_routes: list[StaticIPRoute] | None = Field( + default=None, alias="staticRoutes", description="List of Static IP routes" + ) + mtu: int | None = Field( + default=None, + description="Maximum transmission unit (MTU) to set for the network instance and all application interfaces connected to it", + ) + edge_node_cluster: NetInstEdgeNodeCluster | None = Field( + default=None, alias="edgeNodeCluster" + ) + forward_lldp: bool | None = Field( + default=None, + alias="forwardLldp", + description="Enables forwarding of LLDP (Link Layer Discovery Protocol) frames across this\nnetwork instance.\nLLDP is used by devices to advertise identity and capabilities to directly\nconnected neighbors, and is often required for topology discovery and network\nmanagement tools.\nWhen enabled, LLDP frames (EtherType 0x88cc) are not dropped or suppressed\nby the forwarding plane.", + ) + + +class NetworkConfigOrDefault(BaseModel): + net_instance_default: bool | None = Field(default=None, alias="netInstanceDefault") + net_instance_config: NetInstConfig | None = Field( + default=None, alias="netInstanceConfig" + ) + + +class AppInstance(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="System defined universally unique Id of the app instance", + ) + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the app instance, unique across the enterprise. Once app instance is created, name can’t be changed", + ) + title: constr( + pattern=r"^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined title of the app instance. Title can be changed at any time", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the app instance" + ) + revision: ObjectRevision | None = None + project_id: str = Field( + ..., + alias="projectId", + description="project name which the given app instance belong to", + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + cluster_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="clusterID", + description="System defined universally unique clusterInstance ID, unique across the enterprise.", + ) + app_id: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + alias="appId", + description="User defined name of the edge app, unique across the enterprise. Once app name is created, name can’t be changed", + ) + device_id: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + alias="deviceId", + description="User defined name of the device name, unique across the enterprise. Once device name is defined, name can’t be changed", + ) + activate: bool = Field(..., description="app instance activation flag") + vminfo: Vm | None = None + drives: list[Drive] | None = Field(default=None, description="drive details") + interfaces: list[AppInterface] | None = Field( + default=None, description="application interfaces" + ) + user_data: str | None = Field( + default=None, + alias="userData", + description="Deprecated: Application initiazation script in cloud-config format to be used by cloud-init", + ) + custom_config: CustomConfig | None = Field(default=None, alias="customConfig") + collect_stats_ip_addr: str | None = Field( + default=None, + alias="collectStatsIPAddr", + description="holds the static Ip of the app instance", + ) + bundleversion: str | None = Field( + default=None, description="version of bundle app is referring to" + ) + logs: AppInstanceLogs | None = None + restart: ZedCloudOpsCmd | None = None + refresh: ZedCloudOpsCmd | None = None + purge: ZedCloudOpsCmd | None = None + remote_console: bool | None = Field( + default=None, alias="remoteConsole", description="Remote console flag" + ) + encrypted_secrets: dict[str, str] | None = Field( + default=None, alias="encryptedSecrets", description="user encrypted secrets map" + ) + crypto_key: str | None = Field( + default=None, + alias="cryptoKey", + description="Crypto Key for decrypting user secret information", + ) + manifest_info: ManifestInfo | None = Field(default=None, alias="manifestInfo") + app_type: AppType | None = Field(default="APP_TYPE_UNSPECIFIED", alias="appType") + is_secret_updated: bool | None = Field( + default=None, + alias="isSecretUpdated", + description="This field tells whether user secrets has updated or not, especially the cusotom config", + ) + app_policy_id: str | None = Field( + default=None, alias="appPolicyId", description="app policy id" + ) + deployment_type: DeploymentType | None = Field( + default="DEPLOYMENT_TYPE_UNSPECIFIED", alias="deploymentType" + ) + user_defined_version: str | None = Field( + default=None, + alias="userDefinedVersion", + description="Instance version tells which edge app does this instance is running", + ) + start_delay_in_seconds: int | None = Field( + default=None, + alias="startDelayInSeconds", + description="start delay is the time in seconds EVE should wait after boot before starting the application instance", + ) + cloud_init_version: int | None = Field( + default=None, + alias="cloudInitVersion", + description="Cloud-init version that indicates whether it necessary or not for cloud-init tool to restart in a guest", + ) + allow_snapshots: bool | None = Field( + default=None, + alias="allowSnapshots", + description="Flag to determine if a snapshot creation is allowed", + ) + max_snapshots: int | None = Field( + default=None, + alias="maxSnapshots", + description="Maximum number of snapshots allowed to be created", + ) + available_snapshots: list[AppInstanceSnapshot] | None = Field( + default=None, + alias="availableSnapshots", + description="The list of available snapshots of the application instance", + ) + patch_envelope_id: str | None = Field( + default=None, alias="patchEnvelopeId", description="patch envelope id" + ) + patch_envelope_name: str | None = Field( + default=None, alias="patchEnvelopeName", description="patch envelope name" + ) + edge_node_cluster: AppInstEdgeNodeCluster | None = Field( + default=None, alias="edgeNodeCluster" + ) + docker_compose_yaml_text: str | None = Field( + default=None, + alias="dockerComposeYamlText", + description="Docker compose base64 encoded plain text", + title="internal field", + ) + docker_compose_tar_image_name: str | None = Field( + default=None, + alias="dockerComposeTarImageName", + description="Docker compose tar image name", + title="internal field", + ) + datastore_id_list: list[str] | None = Field( + default=None, + alias="datastoreIdList", + description="List of datastore ids containing private registry credentials", + title="internal field", + ) + persistent_runtime_size_bytes: str | None = Field( + default=None, + alias="PersistentRuntimeSizeBytes", + description="Persistent runtime size in bytes", + ) + + +class AppInstanceDeploy(BaseModel): + instance_config: list[BulkInstanceConfig] | None = Field( + default=None, + alias="instanceConfig", + description="XXX for now user will send only one common config. In future with complex\nfiltering and payload, user can send instance config per device.", + ) + + +class AppInstanceSnapshot(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="System defined universally unique Id of the app instance snapshot", + ) + name: str = Field( + ..., description="Snapshot name. Unique across the application instance" + ) + state: SnapshotState | None = "INVALID" + config: AppInstance | None = None + activate: bool | None = Field( + default=None, description="Indicates whether the snapshot should be activated" + ) + immediate: bool | None = Field( + default=None, + description="Indicates that the snapshot should be taken immediately", + ) + + +class BulkConfig(BaseModel): + selection_criteria: SelectionCriteria | None = Field( + default=None, alias="selectionCriteria" + ) + job_id: str | None = Field(default=None, alias="jobId") + job_name: str | None = Field(default=None, alias="jobName") + baseos_update: BaseosUpdate | None = Field(default=None, alias="baseosUpdate") + instance_deploy: AppInstanceDeploy | None = Field( + default=None, alias="instanceDeploy" + ) + instance_refresh_and_purge: AppInstanceRefreshAndPurge | None = Field( + default=None, alias="instanceRefreshAndPurge" + ) + model_import: ModelImport | None = Field(default=None, alias="modelImport") + bundle_import: BundleImport | None = Field(default=None, alias="bundleImport") + tag_update: TagUpdate | None = Field(default=None, alias="tagUpdate") + deployment_tag_update: DeploymentTagUpdate | None = Field( + default=None, alias="deploymentTagUpdate" + ) + device_project_and_target_update: DeviceProjectAndTargetUpdate | None = Field( + default=None, alias="deviceProjectAndTargetUpdate" + ) + + +class BulkInstanceConfig(BaseModel): + device_id: str | None = Field(default=None, alias="deviceId") + app_instance_config: AppInstance | None = Field( + default=None, alias="appInstanceConfig" + ) + net_instance_detail: NetworkConfigOrDefault | None = Field( + default=None, alias="netInstanceDetail" + ) + net_instance_config: list[NetInstConfig] | None = Field( + default=None, alias="netInstanceConfig" + ) + + +AppInstance.model_rebuild() +AppInstanceDeploy.model_rebuild() diff --git a/packages/zedcloud/src/zedcloud/_generated/models/k8s.py b/packages/zedcloud/src/zedcloud/_generated/models/k8s.py new file mode 100644 index 0000000..1c142a6 --- /dev/null +++ b/packages/zedcloud/src/zedcloud/_generated/models/k8s.py @@ -0,0 +1,1612 @@ +# Generated by scripts/generate_from_openapi.py from zedge_kubernetes_service.swagger.json +# Do not edit by hand — re-run: uv run python scripts/generate_from_openapi.py + +from __future__ import annotations +from enum import Enum +from pydantic import AwareDatetime, Base64Str, BaseModel, Field, constr +from typing import Any + + +class AdminState(Enum): + admin_state_unspecified = "ADMIN_STATE_UNSPECIFIED" + admin_state_created = "ADMIN_STATE_CREATED" + admin_state_deleted = "ADMIN_STATE_DELETED" + admin_state_active = "ADMIN_STATE_ACTIVE" + admin_state_inactive = "ADMIN_STATE_INACTIVE" + admin_state_registered = "ADMIN_STATE_REGISTERED" + admin_state_archived = "ADMIN_STATE_ARCHIVED" + admin_state_deletion_pending = "ADMIN_STATE_DELETION_PENDING" + + +class BaseOSImage(BaseModel): + uuid: str = Field(..., description="system generated unique id for an image") + version: str = Field(..., description="image version") + image_name: str = Field(..., alias="imageName", description="image name") + activate: bool = Field(..., description="activation flag") + imvol_id: str | None = Field( + default=None, + alias="imvolId", + description="immutable Volume for this base image", + ) + + +class BasicAuthCredentials(BaseModel): + username: str | None = Field( + default=None, description="Username for basic authentication" + ) + password: str | None = Field( + default=None, description="Password for basic authentication" + ) + + +class Chart(BaseModel): + name: str = Field(..., description="Name of the Helm chart. Example: 'nginx'") + version: str = Field( + ..., description="Version of the Helm chart. Example: '15.4.0'" + ) + custom_values: dict[str, Any] | None = Field( + default=None, + alias="customValues", + description="Custom values for the Helm chart. Example: {'replicaCount': 3, 'service': {'type': 'LoadBalancer', 'port': 80}}", + ) + repo_identifier: str | None = Field( + default=None, + alias="repoIdentifier", + description="Repository identifier for the Helm chart. Example: 'bitnami'", + ) + + +class ClusterGroupManifest(BaseModel): + yaml_content: str = Field( + ..., alias="yamlContent", description="The content of an yaml manifest" + ) + + +class ClusterGroupManifestJaml(BaseModel): + yaml_content: str | None = Field( + default=None, alias="yamlContent", description="The content of an jaml manifest" + ) + + +class ClusterGroupManifestOutput(BaseModel): + manifest: ClusterGroupManifestJaml | None = None + + +class ClusterGroupResourceSummary(BaseModel): + missing: int | None = Field( + default=None, + description="Number of resources in the cluster group that are missing", + ) + modified: int | None = Field( + default=None, + description="Number of resources in the cluster group that are modified", + ) + not_ready: int | None = Field( + default=None, + alias="notReady", + description="Number of resources in the cluster group that are not ready", + ) + orphaned: int | None = Field( + default=None, + description="Number of resources in the cluster group that are orphaned", + ) + ready: int | None = Field( + default=None, + description="Number of resources in the cluster group that are ready", + ) + unknown: int | None = Field( + default=None, + description="Number of resources in the cluster group that are in unknown state", + ) + wait_applied: int | None = Field( + default=None, + alias="waitApplied", + description="Number of resources in the cluster group that are waiting for applied state", + ) + + +class ClusterGroupResources(BaseModel): + amount: int | None = Field( + default=None, description="Total resources of clusters in the cluster group" + ) + summary: ClusterGroupResourceSummary | None = None + + +class ClusterMetadata(BaseModel): + cluster_id: str = Field( + ..., + alias="clusterId", + description="ID of the target cluster. Example: 'cluster-abc123'", + ) + orchestrator_cluster_id: str = Field( + ..., + alias="orchestratorClusterId", + description="Orchestrator cluster ID. Example: 'rancher-cluster-123'", + ) + cluster_name: str | None = Field( + default=None, + alias="clusterName", + description="Name of the target cluster. Example: 'production-k8s'", + ) + kube_version: str | None = Field( + default=None, + alias="kubeVersion", + description="Kubernetes version of the target cluster. Example: 'v1.28.0'", + ) + + +class ClusterReadiness(BaseModel): + total: int | None = Field( + default=None, description="Total number of clusters in the cluster group" + ) + ready: int | None = Field( + default=None, + description="Number of clusters in the cluster group that are ready", + ) + + +class Cursor(BaseModel): + page_token: str | None = Field( + default=None, alias="pageToken", description="Page Token" + ) + order_by: list[str] | None = Field( + default=None, + alias="orderBy", + description="OrderBy helps in sorting the list response", + ) + page_num: float | None = Field( + default=None, alias="pageNum", description="Page Number" + ) + page_size: float | None = Field( + default=None, alias="pageSize", description="Defines the page size" + ) + total_pages: float | None = Field( + default=None, + alias="totalPages", + description="Total number of pages to be fetched.", + ) + + +class GitRepoCondition(BaseModel): + type: str | None = Field(default=None, description="Type of the condition") + status: str | None = Field( + default=None, description="Status of the condition (True, False, Unknown)" + ) + error: bool | None = Field( + default=None, description="Whether the condition represents an error state" + ) + transitioning: bool | None = Field( + default=None, description="Whether the condition is in a transitioning state" + ) + message: str | None = Field( + default=None, + description="Human readable message indicating details about the condition", + ) + last_update_time: str | None = Field( + default=None, + alias="lastUpdateTime", + description="Last time the condition was updated", + ) + + +class GitRepoEvents(BaseModel): + reason: str | None = Field(default=None, description="Reason for the event") + type: str | None = Field(default=None, description="Type of the event") + message: str | None = Field( + default=None, description="Detailed message about the event" + ) + last_update_time: AwareDatetime | None = Field( + default=None, + alias="lastUpdateTime", + description="Last time the event was updated", + ) + + +class GitRepoListStatusSummary(BaseModel): + description: str | None = Field( + default=None, description="Description of the status summary" + ) + total: int | None = Field(default=None, description="Total number of GitRepos") + values: dict[str, int] | None = Field( + default=None, description="Map of status values and their counts" + ) + + +class GitRepoMetadata(BaseModel): + name: str = Field(..., description="Name of the GitRepo configuration (required)") + title: str | None = Field( + default=None, description="Display title of the GitRepo configuration" + ) + description: str | None = Field( + default=None, description="Description of the GitRepo configuration" + ) + + +class GitRepoRepositoryDetails(BaseModel): + url: str = Field(..., description="Git repository URL (required)") + branch: str | None = Field(default=None, description="Git branch to track") + commit: str | None = Field(default=None, description="Specific git commit hash") + path_list: list[str] | None = Field( + default=None, + alias="pathList", + description="List of paths within the repository to monitor", + ) + + +class GitRepoResourceCounts(BaseModel): + desired_ready: int | None = Field( + default=None, alias="desiredReady", description="Desired ready count" + ) + missing: int | None = Field(default=None, description="Missing resources count") + modified: int | None = Field(default=None, description="Modified resources count") + not_ready: int | None = Field( + default=None, alias="notReady", description="Not ready resources count" + ) + orphaned: int | None = Field(default=None, description="Orphaned resources count") + ready: int | None = Field(default=None, description="Ready resources count") + unknown: int | None = Field(default=None, description="Unknown resources count") + wait_applied: int | None = Field( + default=None, alias="waitApplied", description="Wait applied resources count" + ) + + +class GitRepoResourceStatusMap(BaseModel): + api_version: str | None = Field( + default=None, alias="apiVersion", description="API version of the resource" + ) + kind: str | None = Field(default=None, description="Kind of Kubernetes resource") + name: str | None = Field(default=None, description="Name of the resource") + namespace: str | None = Field(default=None, description="Namespace of the resource") + state: str | None = Field(default=None, description="State of the resource") + + +class GitRepoState(BaseModel): + error: bool | None = Field( + default=None, description="Indicates if the GitRepo is in an error state" + ) + message: str | None = Field( + default=None, + description="Status message providing additional details about the GitRepo state", + ) + name: str | None = Field(default=None, description="current state name") + transitioning: bool | None = Field( + default=None, + description="Indicates if the GitRepo is currently undergoing state transition", + ) + + +class GitRepoStatusDisplay(BaseModel): + ready_bundle_deployments: str | None = Field( + default=None, + alias="readyBundleDeployments", + description="Ready bundle deployments count", + ) + state: str | None = Field(default=None, description="Current state of the GitRepo") + + +class GitRepoTargetType(Enum): + git_repo_target_type_unknown = "GIT_REPO_TARGET_TYPE_UNKNOWN" + git_repo_target_type_all_cluster = "GIT_REPO_TARGET_TYPE_ALL_CLUSTER" + git_repo_target_type_cluster = "GIT_REPO_TARGET_TYPE_CLUSTER" + git_repo_target_type_cluster_group = "GIT_REPO_TARGET_TYPE_CLUSTER_GROUP" + + +class HelmChartDependency(BaseModel): + name: constr(pattern=r"^[a-z0-9]([-a-z0-9]*[a-z0-9])?$") | None = Field( + default=None, description="Name of the dependency chart. Example: 'postgresql'" + ) + repository: str | None = Field( + default=None, + description="Repository URL for the dependency. Example: 'https://charts.bitnami.com/bitnami'", + ) + tags: list[str] | None = Field( + default=None, + description="Tags associated with the dependency. Example: ['database', 'postgresql']", + ) + version: str | None = Field( + default=None, + description="Version constraint for the dependency. Example: '^12.0.0'", + ) + + +class HelmChartListResponse(BaseModel): + api_version: str | None = Field( + default=None, alias="apiVersion", description="API version of the chart index" + ) + generated: str | None = Field( + default=None, description="Timestamp when the chart index was generated" + ) + repo_identifier: str | None = Field( + default=None, + alias="repoIdentifier", + description="Identifier for the Helm chart repository", + ) + repo_name: str | None = Field( + default=None, alias="repoName", description="Name of the Helm chart repository" + ) + entries: dict[str, list[dict[str, Any]]] | None = Field( + default=None, description="Map of chart names to list of chart version details" + ) + + +class HelmChartMaintainer(BaseModel): + name: str | None = Field( + default=None, description="Name of the maintainer. Example: 'Zededa Team'" + ) + url: str | None = Field( + default=None, + description="URL or contact information for the maintainer. Example: 'https://github.com/bitnami/charts'", + ) + + +class K8sDeploymentType(Enum): + k8s_deployment_type_unspecified = "K8sDeploymentType_UNSPECIFIED" + helmchart = "HELMCHART" + + +class Metadata(BaseModel): + name: str = Field( + ..., description="Name of the deployment. Example: 'nginx-deployment'" + ) + title: str | None = Field( + default=None, + description="Human-readable title of the deployment. Example: 'NGINX Web Server'", + ) + description: str | None = Field( + default=None, + description="Description of the deployment. Example: 'Production NGINX deployment with custom configuration'", + ) + project_id: str = Field( + ..., alias="projectId", description="Project ID associated with the deployment" + ) + + +class NodeAction(Enum): + node_action_unspecified = "NODE_ACTION_UNSPECIFIED" + node_action_add_nodes = "NODE_ACTION_ADD_NODES" + node_action_remove_nodes = "NODE_ACTION_REMOVE_NODES" + + +class ObjectType(Enum): + object_type_unspecified = "OBJECT_TYPE_UNSPECIFIED" + object_type_user = "OBJECT_TYPE_USER" + object_type_edge_node = "OBJECT_TYPE_EDGE_NODE" + object_type_edge_app = "OBJECT_TYPE_EDGE_APP" + object_type_image = "OBJECT_TYPE_IMAGE" + object_type_edge_app_instance = "OBJECT_TYPE_EDGE_APP_INSTANCE" + object_type_project = "OBJECT_TYPE_PROJECT" + object_type_network = "OBJECT_TYPE_NETWORK" + object_type_datastore = "OBJECT_TYPE_DATASTORE" + object_type_service = "OBJECT_TYPE_SERVICE" + object_type_service_instance = "OBJECT_TYPE_SERVICE_INSTANCE" + object_type_enterprise = "OBJECT_TYPE_ENTERPRISE" + object_type_role = "OBJECT_TYPE_ROLE" + object_type_credential = "OBJECT_TYPE_CREDENTIAL" + object_type_network_instance = "OBJECT_TYPE_NETWORK_INSTANCE" + object_type_volume_instance = "OBJECT_TYPE_VOLUME_INSTANCE" + object_type_realm = "OBJECT_TYPE_REALM" + object_type_authprofile = "OBJECT_TYPE_AUTHPROFILE" + object_type_policy = "OBJECT_TYPE_POLICY" + object_type_app_policy = "OBJECT_TYPE_APP_POLICY" + object_type_cluster_instance = "OBJECT_TYPE_CLUSTER_INSTANCE" + object_type_plugin = "OBJECT_TYPE_PLUGIN" + object_type_doc_policy = "OBJECT_TYPE_DOC_POLICY" + object_type_orchestrator_cluster = "OBJECT_TYPE_ORCHESTRATOR_CLUSTER" + object_type_tags = "OBJECT_TYPE_TAGS" + object_type_edge_node_interface = "OBJECT_TYPE_EDGE_NODE_INTERFACE" + object_type_deployment = "OBJECT_TYPE_DEPLOYMENT" + object_type_entitlements = "OBJECT_TYPE_ENTITLEMENTS" + object_type_data_stream = "OBJECT_TYPE_DATA_STREAM" + object_type_api_usage = "OBJECT_TYPE_API_USAGE" + object_type_app_instance_snapshot = "OBJECT_TYPE_APP_INSTANCE_SNAPSHOT" + object_type_patch_envelope = "OBJECT_TYPE_PATCH_ENVELOPE" + object_type_resource_usage_track = "OBJECT_TYPE_RESOURCE_USAGE_TRACK" + object_type_patch_envelope_reference = "OBJECT_TYPE_PATCH_ENVELOPE_REFERENCE" + object_type_dev_passthrough = "OBJECT_TYPE_DEV_PASSTHROUGH" + object_type_edge_node_cluster = "OBJECT_TYPE_EDGE_NODE_CLUSTER" + object_type_asset_group = "OBJECT_TYPE_ASSET_GROUP" + object_type_app_profile = "OBJECT_TYPE_APP_PROFILE" + object_type_profile_deployment = "OBJECT_TYPE_PROFILE_DEPLOYMENT" + object_type_zks_instance = "OBJECT_TYPE_ZKS_INSTANCE" + object_type_cluster_group = "OBJECT_TYPE_CLUSTER_GROUP" + + +class PodsCapacity(BaseModel): + used: int | None = Field(default=None, description="Used pods capacity") + total: int | None = Field(default=None, description="Total pods capacity") + + +class PrivateRepoMetadata(BaseModel): + name: str = Field( + ..., description="Name of the private repository configuration (required)" + ) + title: str | None = Field( + default=None, + description="Display title of the private repository configuration", + ) + description: str | None = Field( + default=None, description="Description of the private repository configuration" + ) + tags: dict[str, str] | None = Field( + default=None, description="Tags associated with the private repository" + ) + + +class PrivateRepoStatus(BaseModel): + error: bool | None = Field( + default=None, description="Indicates if the repository is in an error state" + ) + message: str | None = Field( + default=None, + description="Status message providing additional details about the repository state", + ) + name: str | None = Field( + default=None, description="Name of the repository in its current state" + ) + transitioning: bool | None = Field( + default=None, + description="Indicates if the repository is currently undergoing state transition", + ) + + +class PrivateRepoType(Enum): + private_repo_type_unspecified = "PRIVATE_REPO_TYPE_UNSPECIFIED" + private_repo_type_git = "PRIVATE_REPO_TYPE_GIT" + private_repo_type_helm_index = "PRIVATE_REPO_TYPE_HELM_INDEX" + + +class ResourceUsage(BaseModel): + current: float | None = Field(default=None, description="Current resource usage") + total: float | None = Field(default=None, description="Total resource usage") + + +class RunState(Enum): + run_state_unspecified = "RUN_STATE_UNSPECIFIED" + run_state_online = "RUN_STATE_ONLINE" + run_state_halted = "RUN_STATE_HALTED" + run_state_init = "RUN_STATE_INIT" + run_state_rebooting = "RUN_STATE_REBOOTING" + run_state_offline = "RUN_STATE_OFFLINE" + run_state_unknown = "RUN_STATE_UNKNOWN" + run_state_unprovisioned = "RUN_STATE_UNPROVISIONED" + run_state_provisioned = "RUN_STATE_PROVISIONED" + run_state_suspect = "RUN_STATE_SUSPECT" + run_state_downloading = "RUN_STATE_DOWNLOADING" + run_state_restarting = "RUN_STATE_RESTARTING" + run_state_purging = "RUN_STATE_PURGING" + run_state_halting = "RUN_STATE_HALTING" + run_state_error = "RUN_STATE_ERROR" + run_state_verifying = "RUN_STATE_VERIFYING" + run_state_loading = "RUN_STATE_LOADING" + run_state_creating_volume = "RUN_STATE_CREATING_VOLUME" + run_state_booting = "RUN_STATE_BOOTING" + run_state_maintenance_mode = "RUN_STATE_MAINTENANCE_MODE" + run_state_start_delayed = "RUN_STATE_START_DELAYED" + run_state_baseos_updating = "RUN_STATE_BASEOS_UPDATING" + run_state_preparing_poweroff = "RUN_STATE_PREPARING_POWEROFF" + run_state_powering_off = "RUN_STATE_POWERING_OFF" + run_state_prepared_poweroff = "RUN_STATE_PREPARED_POWEROFF" + + +class SSHCredentials(BaseModel): + ssh_private_key: str | None = Field( + default=None, + alias="sshPrivateKey", + description="Base64 encoded SSH private key for authentication, Required if Secret type is SECRET_TYPE_SSH", + ) + ssh_public_key: str | None = Field( + default=None, + alias="sshPublicKey", + description="Base64 encoded SSH public key for authentication, Required if Secret type is SECRET_TYPE_SSH", + ) + + +class SecretData(BaseModel): + encoded_username: str | None = Field( + default=None, + alias="encodedUsername", + description="Base64 encoded username for basic authentication, Required if Secret type is SECRET_TYPE_BASIC_AUTH", + ) + encoded_password: str | None = Field( + default=None, + alias="encodedPassword", + description="Base64 encoded password for basic authentication, Required if Secret type is SECRET_TYPE_BASIC_AUTH", + ) + ssh_public_key: str | None = Field( + default=None, + alias="sshPublicKey", + description="Base64 encoded SSH public key for SSH authentication, Required if Secret type is SECRET_TYPE_SSH", + ) + ssh_private_key: str | None = Field( + default=None, + alias="sshPrivateKey", + description="Base64 encoded SSH private key for SSH authentication, Required if Secret type is SECRET_TYPE_SSH", + ) + + +class SecretState(BaseModel): + error: bool | None = Field( + default=None, description="Indicates if the secret is in an error state" + ) + message: str | None = Field( + default=None, + description="Status message providing additional details about the secret state", + ) + name: str | None = Field( + default=None, description="Name of the secret in its current state" + ) + transitioning: bool | None = Field( + default=None, + description="Indicates if the secret is currently undergoing state transition", + ) + + +class SecretType(Enum): + secret_type_unspecified = "SECRET_TYPE_UNSPECIFIED" + secret_type_ssh = "SECRET_TYPE_SSH" + secret_type_basic_auth = "SECRET_TYPE_BASIC_AUTH" + secret_type_none = "SECRET_TYPE_NONE" + + +class SnapshotOperationStatus(Enum): + snapshot_operation_status_unspecified = "SNAPSHOT_OPERATION_STATUS_UNSPECIFIED" + snapshot_operation_status_in_progress = "SNAPSHOT_OPERATION_STATUS_IN_PROGRESS" + snapshot_operation_status_completed = "SNAPSHOT_OPERATION_STATUS_COMPLETED" + snapshot_operation_status_failed = "SNAPSHOT_OPERATION_STATUS_FAILED" + snapshot_operation_status_timed_out = "SNAPSHOT_OPERATION_STATUS_TIMED_OUT" + + +class SnapshotOperationType(Enum): + snapshot_operation_type_unspecified = "SNAPSHOT_OPERATION_TYPE_UNSPECIFIED" + snapshot_operation_type_create = "SNAPSHOT_OPERATION_TYPE_CREATE" + snapshot_operation_type_restore = "SNAPSHOT_OPERATION_TYPE_RESTORE" + snapshot_operation_type_delete = "SNAPSHOT_OPERATION_TYPE_DELETE" + + +class SnapshotStatusInfo(BaseModel): + state: str | None = Field( + default=None, + description="Current state of the snapshot (e.g., ready, creating, error)", + ) + message: str | None = Field( + default=None, description="Status message with additional details" + ) + + +class Summary(BaseModel): + description: str | None = Field(default=None, description="Summary description") + total: float | None = Field(default=None, description="Total") + values: dict[str, int] | None = Field( + default=None, description="Values: Map for storing " + ) + + +class TargetClusters(BaseModel): + is_multi_cluster: bool = Field( + ..., + alias="isMultiCluster", + description="Indicates if the deployment is for multiple clusters. Example: false", + ) + cluster_tags: dict[str, str] | None = Field( + default=None, + alias="clusterTags", + description="Tags for the clusters where the deployment will be applied. Example: {'environment': 'production', 'region': 'us-west-2'}. This field is reserved for future use and not currently implemented.", + ) + cluster_metadata: ClusterMetadata = Field(..., alias="clusterMetadata") + + +class ZcOpsStatus(Enum): + ops_status_unspecified = "OPS_STATUS_UNSPECIFIED" + ops_status_pending = "OPS_STATUS_PENDING" + ops_status_ongoing = "OPS_STATUS_ONGOING" + ops_status_complete = "OPS_STATUS_COMPLETE" + + +class ZcOpsType(Enum): + ops_type_unspecified = "OPS_TYPE_UNSPECIFIED" + ops_type_read = "OPS_TYPE_READ" + ops_type_delete = "OPS_TYPE_DELETE" + ops_type_create = "OPS_TYPE_CREATE" + ops_type_update = "OPS_TYPE_UPDATE" + ops_type_list = "OPS_TYPE_LIST" + + +class ZksInstanceBulkUpdateData(BaseModel): + tags: dict[str, str] | None = Field( + default=None, description="New tags for the ZKS instance" + ) + + +class ZksInstanceK3sBulkUpgradeData(BaseModel): + version: str | None = Field(default=None, description="K3s version to upgrade to") + + +class ZksInstanceNode(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") = Field( + ..., description="System defined universally unique Id of the node" + ) + cluster_interface: str = Field( + ..., alias="clusterInterface", description="Cluster interface of the node" + ) + + +class ZksInstanceRegistrationCommands(BaseModel): + command: str | None = Field( + default=None, description="Command to register a node with the ZKS instance" + ) + insecure_command: str | None = Field( + default=None, + alias="insecureCommand", + description="Insecure command to register a node with the ZKS instance", + ) + node_command: str | None = Field( + default=None, + alias="nodeCommand", + description="Node command to register a node with the ZKS instance", + ) + windows_node_command: str | None = Field( + default=None, + alias="windowsNodeCommand", + description="Windows node command to register a node with the ZKS instance", + ) + + +class ZksInstanceRegistrationInfo(BaseModel): + created: str | None = Field( + default=None, + description="Timestamp when the registration commands were created", + ) + manifest_url: str | None = Field( + default=None, + alias="manifestUrl", + description="URL to fetch the registration manifest", + ) + commands: ZksInstanceRegistrationCommands | None = None + + +class ZksInstanceStatusSummary(BaseModel): + online: int | None = Field( + default=None, description="Number of online nodes in the zks instance" + ) + init: int | None = Field( + default=None, description="Number of nodes in init state in the zks instance" + ) + suspect: int | None = Field( + default=None, description="Number of suspect nodes in the zks instance" + ) + error: int | None = Field( + default=None, description="Number of error nodes in the zks instance" + ) + unspecified: int | None = Field( + default=None, + description="Number of nodes in unspecified state in the zks instance", + ) + unknown: int | None = Field( + default=None, description="Number of nodes in unknown state in the zks instance" + ) + offline: int | None = Field( + default=None, description="Number of offline nodes in the zks instance" + ) + pending: int | None = Field( + default=None, description="Number of pending nodes in the zks instance" + ) + + +class ZksInstanceSummary(BaseModel): + id: str | None = Field( + default=None, + description="System defined universally unique Id of the zks instance", + ) + project_id: str | None = Field( + default=None, alias="projectId", description="Foreign key to the project" + ) + name: str | None = Field( + default=None, + description="User defined name of the zks instance, unique across the enterprise. Once zks instance is created, name can’t be changed", + ) + title: str | None = Field( + default=None, + description="User defined title of the zks instance. Title can be changed at any time", + ) + description: str | None = Field( + default=None, description="Detailed description of the zks instance" + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources.", + ) + n_of_nodes: int | None = Field( + default=None, + alias="nOfNodes", + description="Number of nodes in the zks instance", + ) + + +class ZksInstancesList(BaseModel): + list_: list[ZksInstanceSummary] | None = Field( + default=None, alias="list", description="List of ZKS instances" + ) + next: Cursor | None = None + + +class ZksK3sVersion(BaseModel): + id: str | None = Field( + default=None, description="Unique identifier for the K3s version" + ) + version: str | None = Field(default=None, description="K3s version string") + type: str | None = Field( + default=None, description="Type of the K3s version (e.g., release, beta)" + ) + + +class ZksK3sVersionList(BaseModel): + list_: list[ZksK3sVersion] | None = Field( + default=None, alias="list", description="List of available K3s versions" + ) + + +class ZsrvErrorCode(Enum): + z_msg_error_none = "zMsgErrorNone" + z_msg_sucess = "zMsgSucess" + not_found = "NotFound" + already_exists = "AlreadyExists" + version_mismatch = "VersionMismatch" + range_error = "RangeError" + large_result = "LargeResult" + incomplete_data = "IncompleteData" + invalid_data = "InvalidData" + function_unsupported = "FunctionUnsupported" + no_memory = "NoMemory" + send_failure = "SendFailure" + timeout = "Timeout" + bad_req_body = "BadReqBody" + bad_req_param = "BadReqParam" + invalid_field_format = "InvalidFieldFormat" + url_not_found = "UrlNotFound" + api_version_not_supported = "ApiVersionNotSupported" + unauthorized = "Unauthorized" + forbidden = "Forbidden" + conflict = "Conflict" + not_modified = "NotModified" + dependency_conflict = "DependencyConflict" + json_fmt_error = "JsonFmtError" + proto_fmt_error = "ProtoFmtError" + cert_error = "CertError" + data_base_connection = "DataBaseConnection" + db_error = "DBError" + z_msg_accepted = "zMsgAccepted" + z_msg_created = "zMsgCreated" + pre_condition_failed = "PreConditionFailed" + internal_server_error = "InternalServerError" + + +class ProtobufAny(BaseModel): + type_url: str | None = Field(default=None, alias="typeUrl") + value: Base64Str | None = None + + +class ProtobufNullValue(Enum): + null_value = "NULL_VALUE" + + +class ClusterGroup(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="System defined universally unique Id of the cluster group", + ) + project_id: constr(pattern=r"[0-9A-Za-z-]+") = Field( + ..., alias="projectId", description="Foreign key to the project" + ) + name: str = Field( + ..., + description="User defined name of the cluster group, unique across the enterprise. Once cluster group is created, name can’t be changed", + ) + title: str | None = Field( + default=None, + description="User defined title of the cluster group. Title can be changed at any time", + ) + description: str | None = Field( + default=None, description="Detailed description of the cluster group" + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + manifest: ClusterGroupManifest | None = None + + +class ClusterGroupCluster(BaseModel): + name: str | None = Field( + default=None, description="Name of the cluster in the cluster group" + ) + state: RunState | None = "RUN_STATE_UNSPECIFIED" + bundle_ready: str | None = Field( + default=None, + alias="bundleReady", + description="Bundle readiness of the cluster in the cluster group", + ) + repos_ready: str | None = Field( + default=None, + alias="reposReady", + description="Repository readiness of the cluster in the cluster group", + ) + resources: int | None = Field( + default=None, + description="Number of resources in the cluster in the cluster group", + ) + last_seen: AwareDatetime | None = Field( + default=None, + alias="lastSeen", + description="Last seen timestamp of the cluster in the cluster group", + ) + age: AwareDatetime | None = Field( + default=None, description="Age of the cluster in the cluster group" + ) + + +class ClusterGroupStatus(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="System defined universally unique Id of the cluster group", + ) + project_id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, alias="projectId", description="Foreign key to the project" + ) + project_name: str | None = Field( + default=None, + alias="projectName", + description="Name of the project to which this cluster group belongs", + ) + name: str | None = Field( + default=None, + description="User defined name of the cluster group, unique across the enterprise. Once cluster group is created, name can’t be changed", + ) + title: str | None = Field( + default=None, + description="User defined title of the cluster group. Title can be changed at any time", + ) + description: str | None = Field( + default=None, description="Detailed description of the cluster group" + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + state: RunState | None = "RUN_STATE_UNSPECIFIED" + cluster_readiness: ClusterReadiness | None = Field( + default=None, alias="clusterReadiness" + ) + resources: ClusterGroupResources | None = None + clusters: list[ClusterGroupCluster] | None = Field( + default=None, description="List of clusters in the cluster group" + ) + namespace: str | None = Field( + default=None, description="Namespace of the cluster group" + ) + age: AwareDatetime | None = Field( + default=None, description="Age of the cluster group" + ) + cluster_tags: dict[str, str] | None = Field( + default=None, + alias="clusterTags", + description="Cluster tags are name/value pairs that enable you to categorize clusters", + ) + + +class GitRepoGetStatus(BaseModel): + display: GitRepoStatusDisplay | None = None + conditions: list[GitRepoCondition] | None = Field( + default=None, description="List of conditions describing the current state" + ) + resource_counts: GitRepoResourceCounts | None = Field( + default=None, alias="resourceCounts" + ) + resource_status_map: list[GitRepoResourceStatusMap] | None = Field( + default=None, + alias="resourceStatusMap", + description="Detailed status map of individual resources managed by this GitRepo", + ) + state: GitRepoState | None = None + summary: dict[str, Any] | None = Field( + default=None, description="Summary information for the GitRepo" + ) + + +class GitRepoSecretConfig(BaseModel): + type: SecretType | None = "SECRET_TYPE_UNSPECIFIED" + name: str | None = Field(default=None, description="Name of the secret") + + +class GitRepoTargetConfig(BaseModel): + type: GitRepoTargetType + value: str | None = Field( + default=None, + description="Target value (cluster ID, cluster group ID, etc.). Required when type is CLUSTER or CLUSTER_GROUP, not required for ALL_CLUSTER", + ) + + +class HelmAuthConfig(BaseModel): + secret: GitRepoSecretConfig | None = None + helm_repo_url_regex: str | None = Field( + default=None, + alias="helmRepoUrlRegex", + description="Regular expression pattern to match Helm repository URLs", + ) + + +class HelmChartData(BaseModel): + chart: Chart + target_clusters: TargetClusters = Field(..., alias="targetClusters") + + +class HelmChartDetail(BaseModel): + annotations: dict[str, str] | None = Field( + default=None, + description="Chart annotations including category, images, and licenses", + ) + api_version: str | None = Field( + default=None, alias="apiVersion", description="Helm chart API version" + ) + app_version: str | None = Field( + default=None, + alias="appVersion", + description="Version of the application packaged in the chart", + ) + dependencies: list[HelmChartDependency] | None = Field( + default=None, description="List of chart dependencies" + ) + description: str | None = Field( + default=None, description="Description of the Helm chart" + ) + home: str | None = Field(default=None, description="Home page URL for the chart") + icon: str | None = Field(default=None, description="Icon URL for the chart") + keywords: list[str] | None = Field( + default=None, description="Keywords associated with the chart" + ) + maintainers: list[HelmChartMaintainer] | None = Field( + default=None, description="List of chart maintainers" + ) + name: str | None = Field(default=None, description="Name of the Helm chart") + sources: list[str] | None = Field( + default=None, description="List of source code URLs for the chart" + ) + version: str | None = Field(default=None, description="Version of the Helm chart") + + +class HelmChartInfoResponse(BaseModel): + readme: str | None = Field( + default=None, description="README content for the Helm chart" + ) + app_readme: str | None = Field( + default=None, + alias="appReadme", + description="Application-specific README content", + ) + questions: dict[str, Any] | None = Field( + default=None, description="Configuration questions for the Helm chart" + ) + values: dict[str, Any] | None = Field( + default=None, description="Default values for the Helm chart" + ) + chart: HelmChartDetail | None = None + repo_identifier: str | None = Field( + default=None, + alias="repoIdentifier", + description="Identifier for the Helm chart repository", + ) + + +class PrivateRepoRepositoryDetails(BaseModel): + type: PrivateRepoType + url: str = Field(..., description="Private repository URL (required)") + branch: str | None = Field(default=None, description="Git branch to track") + + +class PrivateRepoSecretConfig(BaseModel): + type: SecretType | None = "SECRET_TYPE_UNSPECIFIED" + name: str | None = Field(default=None, description="Name of the secret resource") + + +class PrivateRepoSecretInfo(BaseModel): + id: str | None = Field(default=None, description="Unique identifier of the secret") + type: SecretType | None = "SECRET_TYPE_UNSPECIFIED" + name: str | None = Field(default=None, description="Name of the secret resource") + data: SecretData | None = None + + +class ResourceCapacityUsage(BaseModel): + reserved: ResourceUsage | None = None + used: ResourceUsage | None = None + + +class SecretMetadata(BaseModel): + name: constr( + pattern=r"^[a-z0-9]([-a-z0-9]*[a-z0-9])?$", min_length=1, max_length=253 + ) = Field( + ..., + description="Name of the Kubernetes secret. This field is required and must be a valid Kubernetes secret name.", + ) + type: SecretType + creation_timestamp: str | None = Field( + default=None, + alias="creationTimestamp", + description="Timestamp when the secret was created", + ) + project_id: str | None = Field( + default=None, + alias="projectId", + description="Project identifier that owns this secret", + ) + state: SecretState | None = None + + +class SnapshotGetResponse(BaseModel): + name: str | None = Field(default=None, description="Name of the snapshot") + cluster_id: str | None = Field( + default=None, alias="clusterId", description="ID of the cluster" + ) + node_name: str | None = Field( + default=None, + alias="nodeName", + description="Name of the node where the snapshot was taken", + ) + size: str | None = Field(default=None, description="Size of the snapshot in bytes") + status: SnapshotStatusInfo | None = None + location: str | None = Field( + default=None, description="Snapshot Location in ZKS server" + ) + k3s_version: str | None = Field( + default=None, alias="k3sVersion", description="k3s Version" + ) + created_at: str | None = Field( + default=None, + alias="createdAt", + description="When the snapshot record was created", + ) + + +class SnapshotListResponse(BaseModel): + total_count: int | None = Field( + default=None, alias="totalCount", description="Total count of snapshots" + ) + snapshots: list[SnapshotGetResponse] | None = Field( + default=None, description="List of snapshot entries" + ) + + +class SnapshotOperationResponse(BaseModel): + operation_id: str | None = Field( + default=None, + alias="operationId", + description="Unique identifier for the async operation", + ) + operation_type: SnapshotOperationType | None = Field( + default="SNAPSHOT_OPERATION_TYPE_UNSPECIFIED", alias="operationType" + ) + status: SnapshotOperationStatus | None = "SNAPSHOT_OPERATION_STATUS_UNSPECIFIED" + phase: str | None = Field( + default=None, description="Current phase of the operation" + ) + cluster_id: str | None = Field( + default=None, + alias="clusterId", + description="Cluster ID associated with the operation", + ) + snapshot_id: str | None = Field( + default=None, + alias="snapshotId", + description="Snapshot id generated for the operation", + ) + snapshot_name: str | None = Field( + default=None, alias="snapshotName", description="Snapshot Name" + ) + message: str | None = Field(default=None, description="Status message") + created_at: AwareDatetime | None = Field( + default=None, alias="createdAt", description="When the operation was created" + ) + updated_at: AwareDatetime | None = Field( + default=None, + alias="updatedAt", + description="When the operation was last updated", + ) + + +class ZksInstance(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="System defined universally unique Id of the zks instance", + ) + project_id: constr(pattern=r"[0-9A-Za-z-]+") = Field( + ..., alias="projectId", description="Foreign key to the project" + ) + name: str = Field( + ..., + description="User defined name of the zks instance, unique across the enterprise. Once zks instance is created, name can’t be changed", + ) + title: str | None = Field( + default=None, + description="User defined title of the zks instance. Title can be changed at any time", + ) + description: str | None = Field( + default=None, description="Detailed description of the zks instance" + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + nodes: list[ZksInstanceNode] = Field( + ..., description="A list of nodes in the zks instance" + ) + is_imported: bool | None = Field( + default=None, + alias="isImported", + description="Indicates if the ZKS instance is imported from an external source", + ) + cluster_prefix: str | None = Field( + default=None, + alias="clusterPrefix", + description="Cluster prefix for the ZKS instance", + ) + + +class ZksInstanceBulkUpdate(BaseModel): + ids: list[str] | None = Field( + default=None, description="List of ZKS instance IDs to be updated" + ) + data: ZksInstanceBulkUpdateData | None = None + + +class ZksInstanceK3sBulkUpgrade(BaseModel): + ids: list[str] | None = Field( + default=None, description="List of ZKS instance IDs to be upgraded" + ) + data: ZksInstanceK3sBulkUpgradeData | None = None + + +class ZksInstanceStatusSummaries(BaseModel): + statuses: ZksInstanceStatusSummary | None = None + + +class ZsrvError(BaseModel): + ec: ZsrvErrorCode | None = "zMsgErrorNone" + location: str | None = Field(default=None, title="Ignore: Internal field only") + details: str | None = Field( + default=None, title="Field captures string description of details" + ) + + +class ZsrvResponse(BaseModel): + operation_type: ZcOpsType | None = Field( + default="OPS_TYPE_UNSPECIFIED", alias="operationType" + ) + operation_status: ZcOpsStatus | None = Field( + default="OPS_STATUS_UNSPECIFIED", alias="operationStatus" + ) + object_kind: str | None = Field( + default=None, + alias="objectKind", + title="zedcloud object kind on which the operation was performed", + ) + object_id: str | None = Field( + default=None, + alias="objectId", + title="Unique value identifies the object that was operated on", + ) + object_name: str | None = Field( + default=None, alias="objectName", title="name of the object" + ) + object_revision: str | None = Field( + default=None, + alias="objectRevision", + title="object revision post the operation, note Read operation\ndoesn't change the revision", + ) + object_type: ObjectType | None = Field( + default="OBJECT_TYPE_UNSPECIFIED", alias="objectType" + ) + operation_time: str | None = Field( + default=None, alias="operationTime", title="time of operation" + ) + start_time: str | None = Field( + default=None, alias="startTime", title="total time taken by operations" + ) + end_time: str | None = Field(default=None, alias="endTime") + user: str | None = Field( + default=None, title="the operation is performed on behalf of this user" + ) + http_status_code: int | None = Field( + default=None, alias="httpStatusCode", title="http response" + ) + http_status_msg: str | None = Field( + default=None, alias="httpStatusMsg", title="summary of the error in text format" + ) + job_id: str | None = Field( + default=None, alias="jobId", title="for tracking asynchronous tasks" + ) + error: list[ZsrvError] | None = Field( + default=None, + title="one or more errors will be set if the operation failed\ni.e. httpStatusCode != 2xx", + ) + + +class GooglerpcStatus(BaseModel): + code: int | None = None + message: str | None = None + details: list[ProtobufAny] | None = None + + +class ClusterCapacity(BaseModel): + pods: PodsCapacity | None = None + cpus: ResourceCapacityUsage | None = None + memory: ResourceCapacityUsage | None = None + + +class ClusterGroupStatusListResp(BaseModel): + list_: list[ClusterGroupStatus] | None = Field( + default=None, + alias="list", + description="Detailed statuses of the cluster groups", + ) + result: ZsrvResponse | None = None + total_count: int | None = Field( + default=None, + alias="totalCount", + description="Total number of cluster groups satisfying the filter criteria", + ) + next: Cursor | None = None + + +class DeploymentData(BaseModel): + helm_chart_data: HelmChartData = Field(..., alias="helmChartData") + + +class DeploymentGetResponse(BaseModel): + id: str | None = Field(default=None, description="Deployment ID") + name: str | None = Field(default=None, description="Release name") + title: str | None = Field(default=None, description="Title of the deployment") + description: str | None = Field( + default=None, description="Description of the deployment" + ) + project_id: str | None = Field( + default=None, + alias="projectId", + description="Project ID associated with the deployment", + ) + type: K8sDeploymentType | None = "K8sDeploymentType_UNSPECIFIED" + spec: DeploymentData | None = None + deployment_status: str | None = Field( + default=None, alias="deploymentStatus", description="Deployment status" + ) + resource_status_map: list[dict[str, Any]] | None = Field( + default=None, + alias="resourceStatusMap", + description="Map of resource status details", + ) + created_at: AwareDatetime | None = Field( + default=None, alias="createdAt", description="Creation timestamp" + ) + updated_at: AwareDatetime | None = Field( + default=None, alias="updatedAt", description="Last update timestamp" + ) + created_by: str | None = Field( + default=None, alias="createdBy", description="User who created the deployment" + ) + updated_by: str | None = Field( + default=None, + alias="updatedBy", + description="User who last updated the deployment", + ) + + +class DeploymentListResponse(BaseModel): + total_count: int | None = Field( + default=None, alias="totalCount", description="Total number of deployments" + ) + state_summary: Summary | None = Field(default=None, alias="stateSummary") + deployments: list[DeploymentGetResponse] | None = Field( + default=None, description="List of deployments" + ) + + +class DeploymentRequest(BaseModel): + type: K8sDeploymentType + metadata: Metadata + data: DeploymentData + + +class GitAuthConfig(BaseModel): + secret: GitRepoSecretConfig | None = None + + +class GitRepoAuthConfig(BaseModel): + encoded_certificates: str | None = Field( + default=None, + alias="encodedCertificates", + description="Base64 encoded certificates for TLS authentication", + ) + insecure_skip_tls_verify: bool | None = Field( + default=None, + alias="insecureSkipTlsVerify", + description="Skip TLS certificate verification", + ) + git: GitAuthConfig | None = None + helm: HelmAuthConfig | None = None + + +class GitRepoData(BaseModel): + project_id: str = Field( + ..., + alias="projectId", + description="Project ID where the GitRepo belongs (required)", + ) + repo_details: GitRepoRepositoryDetails = Field(..., alias="repoDetails") + auth: GitRepoAuthConfig | None = None + target: GitRepoTargetConfig + + +class GitRepoGetResponse(BaseModel): + id: str | None = Field(default=None, description="Unique identifier of the GitRepo") + name: str | None = Field( + default=None, description="Name of the GitRepo configuration" + ) + title: str | None = Field( + default=None, description="Display title of the GitRepo configuration" + ) + description: str | None = Field( + default=None, description="Description of the GitRepo configuration" + ) + workspace: str | None = Field( + default=None, description="Workspace where the GitRepo is deployed" + ) + data: GitRepoData | None = None + status: GitRepoGetStatus | None = None + events: list[GitRepoEvents] | None = Field( + default=None, description="List of events related to the GitRepo" + ) + created_at: AwareDatetime | None = Field( + default=None, + alias="createdAt", + description="Timestamp when the GitRepo was created", + ) + updated_at: AwareDatetime | None = Field( + default=None, + alias="updatedAt", + description="Timestamp when the GitRepo was last updated", + ) + created_by: str | None = Field( + default=None, alias="createdBy", description="User who created the GitRepo" + ) + updated_by: str | None = Field( + default=None, alias="updatedBy", description="User who last updated the GitRepo" + ) + + +class GitRepoListResponse(BaseModel): + total_count: int | None = Field( + default=None, alias="totalCount", description="Total count of GitRepos" + ) + state_summary: GitRepoListStatusSummary | None = Field( + default=None, alias="stateSummary" + ) + gitrepos: list[GitRepoGetResponse] | None = Field( + default=None, description="List of GitRepo entries" + ) + + +class PrivateRepoAuthConfig(BaseModel): + secret: PrivateRepoSecretConfig | None = None + + +class PrivateRepoAuthInfo(BaseModel): + secret: PrivateRepoSecretInfo | None = None + + +class PrivateRepoSpec(BaseModel): + repo_details: PrivateRepoRepositoryDetails = Field(..., alias="repoDetails") + auth: PrivateRepoAuthConfig | None = None + + +class PrivateRepoSpecInfo(BaseModel): + repo_details: PrivateRepoRepositoryDetails | None = Field( + default=None, alias="repoDetails" + ) + auth: PrivateRepoAuthInfo | None = None + + +class SecretCreateRequest(BaseModel): + metadata: SecretMetadata + data: SecretData + + +class SecretInfoResponse(BaseModel): + id: str | None = Field(default=None, description="Unique identifier of the secret") + field_type: str | None = Field( + default=None, alias="_type", description="Type of the secret" + ) + kind: str | None = Field(default=None, description="Kubernetes resource kind") + metadata: SecretMetadata | None = None + data: SSHCredentials | None = None + + +class SecretListResponse(BaseModel): + secrets: list[SecretInfoResponse] | None = Field( + default=None, description="List of secrets with their detailed information" + ) + total_count: int | None = Field( + default=None, + alias="totalCount", + description="Total number of secrets available", + ) + + +class ZksInstanceMetrics(BaseModel): + id: str | None = Field( + default=None, description="ZKS instance ID for which metrics are provided" + ) + name: str | None = Field( + default=None, description="ZKS instance name for which metrics are provided" + ) + provider: str | None = Field( + default=None, description="Provider of the zks instance" + ) + kube_version: str | None = Field( + default=None, + alias="kubeVersion", + description="Kubernetes version of the zks instance", + ) + architecture: str | None = Field( + default=None, description="Architecture of the zks instance" + ) + created: AwareDatetime | None = Field( + default=None, description="Creation time of the zks instance" + ) + total_resources: int | None = Field( + default=None, + alias="totalResources", + description="Total resources in the zks instance", + ) + n_of_nodes: int | None = Field( + default=None, + alias="nOfNodes", + description="Number of nodes in the zks instance", + ) + deployments: int | None = Field( + default=None, description="Number of deployments in the zks instance" + ) + capacity: ClusterCapacity | None = None + + +class ZksInstanceStatus(BaseModel): + id: str | None = Field( + default=None, + description="System defined universally unique Id of the zks instance", + ) + project_id: str | None = Field( + default=None, alias="projectId", description="Foreign key to the project" + ) + name: str | None = Field( + default=None, + description="User defined name of the zks instance, unique across the enterprise. Once zks instance is created, name can’t be changed", + ) + title: str | None = Field( + default=None, + description="User defined title of the zks instance. Title can be changed at any time", + ) + description: str | None = Field( + default=None, description="Detailed description of the zks instance" + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources.", + ) + run_state: RunState | None = Field( + default="RUN_STATE_UNSPECIFIED", alias="runState" + ) + provider: str | None = Field( + default=None, description="Provider of the zks instance" + ) + kube_version: str | None = Field( + default=None, + alias="kubeVersion", + description="Kubernetes version of the zks instance", + ) + architecture: str | None = Field( + default=None, description="Architecture of the zks instance" + ) + created: AwareDatetime | None = Field( + default=None, description="Creation time of the zks instance" + ) + total_resources: int | None = Field( + default=None, + alias="totalResources", + description="Total resources in the zks instance", + ) + n_of_nodes: int | None = Field( + default=None, + alias="nOfNodes", + description="Number of nodes in the zks instance", + ) + deployments: int | None = Field( + default=None, description="Number of deployments in the zks instance" + ) + capacity: ClusterCapacity | None = None + zks_cluster_id: str | None = Field( + default=None, alias="zksClusterId", description="ZKS cluster ID" + ) + project_name: str | None = Field( + default=None, + alias="projectName", + description="Name of the project to which the zks instance belongs", + ) + zks_base_url: str | None = Field( + default=None, alias="zksBaseUrl", description="Base URL of the ZKS instance" + ) + is_imported: bool | None = Field( + default=None, + alias="isImported", + description="Indicates if the ZKS instance is imported from an external source", + ) + fleet_workspace_name: str | None = Field( + default=None, + alias="fleetWorkspaceName", + description="Name of the Fleet workspace associated with the ZKS instance", + ) + total_number_of_nodes: int | None = Field( + default=None, + alias="totalNumberOfNodes", + description="Total number of nodes in the ZKS instance", + ) + cluster_prefix: str | None = Field( + default=None, + alias="clusterPrefix", + description="Cluster prefix for the ZKS instance", + ) + admin_state: AdminState | None = Field( + default="ADMIN_STATE_UNSPECIFIED", alias="adminState" + ) + + +class ZksInstanceStatusListResp(BaseModel): + list_: list[ZksInstanceStatus] | None = Field( + default=None, alias="list", description="Detailed statuses of the zks instances" + ) + result: ZsrvResponse | None = None + summaries: ZksInstanceStatusSummaries | None = None + total_count: int | None = Field( + default=None, + alias="totalCount", + description="Total count of zks instances matching the filter", + ) + next: Cursor | None = None + + +class GitRepoCreateRequest(BaseModel): + metadata: GitRepoMetadata + data: GitRepoData + + +class PrivateRepoCreateRequest(BaseModel): + metadata: PrivateRepoMetadata + spec: PrivateRepoSpec + + +class PrivateRepoGetByIdResponse(BaseModel): + id: str | None = Field( + default=None, description="Unique identifier of the private repository" + ) + metadata: PrivateRepoMetadata | None = None + spec: PrivateRepoSpecInfo | None = None + status: PrivateRepoStatus | None = None + repo_identifier: str | None = Field( + default=None, + alias="repoIdentifier", + description="Unique identifier for the private repository", + ) + + +class PrivateRepoListResponse(BaseModel): + list_: list[PrivateRepoGetByIdResponse] | None = Field( + default=None, alias="list", description="List of private repositories" + ) + total: int | None = Field( + default=None, description="Total number of private repositories" + ) diff --git a/packages/zedcloud/src/zedcloud/_generated/models/networks.py b/packages/zedcloud/src/zedcloud/_generated/models/networks.py new file mode 100644 index 0000000..d9f5bb6 --- /dev/null +++ b/packages/zedcloud/src/zedcloud/_generated/models/networks.py @@ -0,0 +1,1375 @@ +# Generated by scripts/generate_from_openapi.py from zedge_network_service.swagger.json +# Do not edit by hand — re-run: uv run python scripts/generate_from_openapi.py + +from __future__ import annotations +from enum import Enum +from pydantic import AwareDatetime, Base64Str, BaseModel, Field, constr +from typing import Any + + +class CellularAuthProtocol(Enum): + cellular_auth_protocol_none = "CELLULAR_AUTH_PROTOCOL_NONE" + cellular_auth_protocol_pap = "CELLULAR_AUTH_PROTOCOL_PAP" + cellular_auth_protocol_chap = "CELLULAR_AUTH_PROTOCOL_CHAP" + cellular_auth_protocol_pap_and_chap = "CELLULAR_AUTH_PROTOCOL_PAP_AND_CHAP" + + +class Cursor(BaseModel): + page_token: str | None = Field( + default=None, alias="pageToken", description="Page Token" + ) + order_by: list[str] | None = Field( + default=None, + alias="orderBy", + description="OrderBy helps in sorting the list response", + ) + page_num: float | None = Field( + default=None, alias="pageNum", description="Page Number" + ) + page_size: float | None = Field( + default=None, alias="pageSize", description="Defines the page size" + ) + total_pages: float | None = Field( + default=None, + alias="totalPages", + description="Total number of pages to be fetched.", + ) + + +class Entity(Enum): + entity_unspecified = "ENTITY_UNSPECIFIED" + entity_base_os = "ENTITY_BASE_OS" + entity_system_adapter = "ENTITY_SYSTEM_ADAPTER" + entity_vault = "ENTITY_VAULT" + entity_attestation = "ENTITY_ATTESTATION" + entity_app_instance = "ENTITY_APP_INSTANCE" + entity_port = "ENTITY_PORT" + entity_network = "ENTITY_NETWORK" + entity_network_instance = "ENTITY_NETWORK_INSTANCE" + entity_content_tree = "ENTITY_CONTENT_TREE" + entity_content_blob = "ENTITY_CONTENT_BLOB" + entity_volume = "ENTITY_VOLUME" + + +class IPAssignment(BaseModel): + mac_address: str | None = Field(default=None, alias="macAddress") + ip_address: list[str] | None = Field(default=None, alias="ipAddress") + + +class IoAddresses(BaseModel): + mac_address: str | None = Field(default=None, alias="macAddress") + + +class IoMemberStatus(BaseModel): + name: str | None = Field(default=None, description="IoBundle Member name") + io_address: IoAddresses | None = Field(default=None, alias="ioAddress") + + +class IoType(Enum): + io_type_unspecified = "IO_TYPE_UNSPECIFIED" + io_type_eth = "IO_TYPE_ETH" + io_type_usb = "IO_TYPE_USB" + io_type_com = "IO_TYPE_COM" + io_type_audio = "IO_TYPE_AUDIO" + io_type_wlan = "IO_TYPE_WLAN" + io_type_wwan = "IO_TYPE_WWAN" + io_type_hdmi = "IO_TYPE_HDMI" + io_type_lte = "IO_TYPE_LTE" + io_type_storage_nvme_device = "IO_TYPE_STORAGE_NVME_DEVICE" + io_type_storage_sata_device = "IO_TYPE_STORAGE_SATA_DEVICE" + io_type_eth_pf = "IO_TYPE_ETH_PF" + io_type_eth_vf = "IO_TYPE_ETH_VF" + io_type_usb_controller = "IO_TYPE_USB_CONTROLLER" + io_type_usb_device = "IO_TYPE_USB_DEVICE" + io_type_can = "IO_TYPE_CAN" + io_type_vcan = "IO_TYPE_VCAN" + io_type_lcan = "IO_TYPE_LCAN" + io_type_vlan = "IO_TYPE_VLAN" + io_type_other = "IO_TYPE_OTHER" + + +class NetCellularAccessPointSecrets(BaseModel): + username: str | None = Field(default=None, description="Cellular Username") + password: str | None = Field(default=None, description="Cellular Password") + + +class NetInstEdgeNodeCluster(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, description="Id of the Edge Node Cluster" + ) + designated_node_id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + alias="designatedNodeID", + description="Id of the designated Edge Node", + ) + + +class NetProjectInfo(BaseModel): + project_id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + alias="projectId", + description="system generated unique id for a project", + ) + project_name: str | None = Field( + default=None, alias="projectName", description="project name" + ) + + +class NetWifiConfigNetcryptoblock(BaseModel): + identity: str | None = None + password: str | None = None + + +class NetWifiConfigSecrets(BaseModel): + wi_fi_passwd: str | None = Field( + default=None, alias="WiFiPasswd", description="Wifi Password" + ) + + +class NetworkDHCPType(Enum): + network_dhcp_type_unspecified = "NETWORK_DHCP_TYPE_UNSPECIFIED" + network_dhcp_type_static = "NETWORK_DHCP_TYPE_STATIC" + network_dhcp_type_passthrough = "NETWORK_DHCP_TYPE_PASSTHROUGH" + network_dhcp_type_deprecated = "NETWORK_DHCP_TYPE_DEPRECATED" + network_dhcp_type_client = "NETWORK_DHCP_TYPE_CLIENT" + network_dhcp_type_static_adapter_specific = ( + "NETWORK_DHCP_TYPE_STATIC_ADAPTER_SPECIFIC" + ) + + +class NetworkInstanceDhcpType(Enum): + network_instance_dhcp_type_unspecified = "NETWORK_INSTANCE_DHCP_TYPE_UNSPECIFIED" + network_instance_dhcp_type_v4 = "NETWORK_INSTANCE_DHCP_TYPE_V4" + network_instance_dhcp_type_v6 = "NETWORK_INSTANCE_DHCP_TYPE_V6" + network_instance_dhcp_type_cryptoeid = "NETWORK_INSTANCE_DHCP_TYPE_CRYPTOEID" + network_instance_dhcp_type_cryptov4 = "NETWORK_INSTANCE_DHCP_TYPE_CRYPTOV4" + network_instance_dhcp_type_cryptov6 = "NETWORK_INSTANCE_DHCP_TYPE_CRYPTOV6" + + +class NetworkInstanceKind(Enum): + network_instance_kind_unspecified = "NETWORK_INSTANCE_KIND_UNSPECIFIED" + network_instance_kind_transparent = "NETWORK_INSTANCE_KIND_TRANSPARENT" + network_instance_kind_switch = "NETWORK_INSTANCE_KIND_SWITCH" + network_instance_kind_local = "NETWORK_INSTANCE_KIND_LOCAL" + network_instance_kind_cloud = "NETWORK_INSTANCE_KIND_CLOUD" + network_instance_kind_mesh = "NETWORK_INSTANCE_KIND_MESH" + network_instance_kind_honeypot = "NETWORK_INSTANCE_KIND_HONEYPOT" + + +class NetworkKind(Enum): + network_kind_unspecified = "NETWORK_KIND_UNSPECIFIED" + network_kind_v4 = "NETWORK_KIND_V4" + network_kind_v6 = "NETWORK_KIND_V6" + network_kind_v4_only = "NETWORK_KIND_V4_ONLY" + network_kind_v6_only = "NETWORK_KIND_V6_ONLY" + network_kind_dual_v4_v6 = "NETWORK_KIND_DUAL_V4_V6" + + +class NetworkProxyProto(Enum): + network_proxy_proto_http = "NETWORK_PROXY_PROTO_HTTP" + network_proxy_proto_https = "NETWORK_PROXY_PROTO_HTTPS" + network_proxy_proto_socks = "NETWORK_PROXY_PROTO_SOCKS" + network_proxy_proto_ftp = "NETWORK_PROXY_PROTO_FTP" + network_proxy_proto_other = "NETWORK_PROXY_PROTO_OTHER" + + +class NetworkRelatedDevice(BaseModel): + dev_id: str | None = Field(default=None, alias="devId") + dev_name: str | None = Field(default=None, alias="devName") + adapter_name: str | None = Field(default=None, alias="adapterName") + + +class NetworkWiFiKeyScheme(Enum): + network_wifikey_scheme_unspecified = "NETWORK_WIFIKEY_SCHEME_UNSPECIFIED" + network_wifikey_scheme_wpapsk = "NETWORK_WIFIKEY_SCHEME_WPAPSK" + network_wifikey_scheme_wpaeap = "NETWORK_WIFIKEY_SCHEME_WPAEAP" + + +class NetworkWirelessType(Enum): + network_wireless_type_unspecified = "NETWORK_WIRELESS_TYPE_UNSPECIFIED" + network_wireless_type_wifi = "NETWORK_WIRELESS_TYPE_WIFI" + network_wireless_type_cellular = "NETWORK_WIRELESS_TYPE_CELLULAR" + + +class NtpServer(BaseModel): + server: str | None = Field(default=None, description="NTP Server IP or FQDN") + + +class ObjectRevision(BaseModel): + prev: str | None = Field(default=None, description="Previous") + curr: str = Field(..., description="Current Database version of the record") + created_at: dict[str, Any] = Field( + ..., + alias="createdAt", + description="The time, in milliseconds since the epoch, when the record was created.", + ) + created_by: str = Field(..., alias="createdBy", description="User data: Created By") + updated_at: dict[str, Any] = Field( + ..., + alias="updatedAt", + description="The time, in milliseconds since the epoch, when the record was last updated.", + ) + updated_by: str = Field(..., alias="updatedBy", description="User data: Updated By") + + +class ObjectTag(BaseModel): + key: str | None = Field(default=None, description="object tag key identifier.") + value: str | None = Field( + default=None, description="value associated for the object tag key" + ) + description: str | None = Field( + default=None, description="Description of the tag key" + ) + + +class ObjectTagsList(BaseModel): + object_tags: list[ObjectTag] | None = Field( + default=None, + alias="objectTags", + description="Details of Object tags list records.", + ) + next: Cursor | None = None + + +class ObjectType(Enum): + object_type_unspecified = "OBJECT_TYPE_UNSPECIFIED" + object_type_user = "OBJECT_TYPE_USER" + object_type_edge_node = "OBJECT_TYPE_EDGE_NODE" + object_type_edge_app = "OBJECT_TYPE_EDGE_APP" + object_type_image = "OBJECT_TYPE_IMAGE" + object_type_edge_app_instance = "OBJECT_TYPE_EDGE_APP_INSTANCE" + object_type_project = "OBJECT_TYPE_PROJECT" + object_type_network = "OBJECT_TYPE_NETWORK" + object_type_datastore = "OBJECT_TYPE_DATASTORE" + object_type_service = "OBJECT_TYPE_SERVICE" + object_type_service_instance = "OBJECT_TYPE_SERVICE_INSTANCE" + object_type_enterprise = "OBJECT_TYPE_ENTERPRISE" + object_type_role = "OBJECT_TYPE_ROLE" + object_type_credential = "OBJECT_TYPE_CREDENTIAL" + object_type_network_instance = "OBJECT_TYPE_NETWORK_INSTANCE" + object_type_volume_instance = "OBJECT_TYPE_VOLUME_INSTANCE" + object_type_realm = "OBJECT_TYPE_REALM" + object_type_authprofile = "OBJECT_TYPE_AUTHPROFILE" + object_type_policy = "OBJECT_TYPE_POLICY" + object_type_app_policy = "OBJECT_TYPE_APP_POLICY" + object_type_cluster_instance = "OBJECT_TYPE_CLUSTER_INSTANCE" + object_type_plugin = "OBJECT_TYPE_PLUGIN" + object_type_doc_policy = "OBJECT_TYPE_DOC_POLICY" + object_type_orchestrator_cluster = "OBJECT_TYPE_ORCHESTRATOR_CLUSTER" + object_type_tags = "OBJECT_TYPE_TAGS" + object_type_edge_node_interface = "OBJECT_TYPE_EDGE_NODE_INTERFACE" + object_type_deployment = "OBJECT_TYPE_DEPLOYMENT" + object_type_entitlements = "OBJECT_TYPE_ENTITLEMENTS" + object_type_data_stream = "OBJECT_TYPE_DATA_STREAM" + object_type_api_usage = "OBJECT_TYPE_API_USAGE" + object_type_app_instance_snapshot = "OBJECT_TYPE_APP_INSTANCE_SNAPSHOT" + object_type_patch_envelope = "OBJECT_TYPE_PATCH_ENVELOPE" + object_type_resource_usage_track = "OBJECT_TYPE_RESOURCE_USAGE_TRACK" + object_type_patch_envelope_reference = "OBJECT_TYPE_PATCH_ENVELOPE_REFERENCE" + object_type_dev_passthrough = "OBJECT_TYPE_DEV_PASSTHROUGH" + object_type_edge_node_cluster = "OBJECT_TYPE_EDGE_NODE_CLUSTER" + object_type_asset_group = "OBJECT_TYPE_ASSET_GROUP" + object_type_app_profile = "OBJECT_TYPE_APP_PROFILE" + object_type_profile_deployment = "OBJECT_TYPE_PROFILE_DEPLOYMENT" + object_type_zks_instance = "OBJECT_TYPE_ZKS_INSTANCE" + object_type_cluster_group = "OBJECT_TYPE_CLUSTER_GROUP" + + +class OpaqueConfigType(Enum): + opaque_config_type_unspecified = "OPAQUE_CONFIG_TYPE_UNSPECIFIED" + opaque_config_type_vpn = "OPAQUE_CONFIG_TYPE_VPN" + opaque_config_type_lisp = "OPAQUE_CONFIG_TYPE_LISP" + + +class RunState(Enum): + run_state_unspecified = "RUN_STATE_UNSPECIFIED" + run_state_online = "RUN_STATE_ONLINE" + run_state_halted = "RUN_STATE_HALTED" + run_state_init = "RUN_STATE_INIT" + run_state_rebooting = "RUN_STATE_REBOOTING" + run_state_offline = "RUN_STATE_OFFLINE" + run_state_unknown = "RUN_STATE_UNKNOWN" + run_state_unprovisioned = "RUN_STATE_UNPROVISIONED" + run_state_provisioned = "RUN_STATE_PROVISIONED" + run_state_suspect = "RUN_STATE_SUSPECT" + run_state_downloading = "RUN_STATE_DOWNLOADING" + run_state_restarting = "RUN_STATE_RESTARTING" + run_state_purging = "RUN_STATE_PURGING" + run_state_halting = "RUN_STATE_HALTING" + run_state_error = "RUN_STATE_ERROR" + run_state_verifying = "RUN_STATE_VERIFYING" + run_state_loading = "RUN_STATE_LOADING" + run_state_creating_volume = "RUN_STATE_CREATING_VOLUME" + run_state_booting = "RUN_STATE_BOOTING" + run_state_maintenance_mode = "RUN_STATE_MAINTENANCE_MODE" + run_state_start_delayed = "RUN_STATE_START_DELAYED" + run_state_baseos_updating = "RUN_STATE_BASEOS_UPDATING" + run_state_preparing_poweroff = "RUN_STATE_PREPARING_POWEROFF" + run_state_powering_off = "RUN_STATE_POWERING_OFF" + run_state_prepared_poweroff = "RUN_STATE_PREPARED_POWEROFF" + + +class RunStateConfigHttpRequestRunStateHttpRequest(Enum): + unspecified = "UNSPECIFIED" + online = "ONLINE" + halted = "HALTED" + init = "INIT" + rebooting = "REBOOTING" + offline = "OFFLINE" + unknown = "UNKNOWN" + unprovisioned = "UNPROVISIONED" + provisioned = "PROVISIONED" + suspect = "SUSPECT" + downloading = "DOWNLOADING" + restarting = "RESTARTING" + purging = "PURGING" + halting = "HALTING" + error = "ERROR" + verifying = "VERIFYING" + loading = "LOADING" + creating_volume = "CREATING_VOLUME" + booting = "BOOTING" + maintenance_mode = "MAINTENANCE_MODE" + start_delayed = "START_DELAYED" + baseos_updating = "BASEOS_UPDATING" + preparing_poweroff = "PREPARING_POWEROFF" + powering_off = "POWERING_OFF" + prepared_poweroff = "PREPARED_POWEROFF" + + +class Severity(Enum): + severity_unspecified = "SEVERITY_UNSPECIFIED" + severity_notice = "SEVERITY_NOTICE" + severity_warning = "SEVERITY_WARNING" + severity_error = "SEVERITY_ERROR" + + +class SimcardState(Enum): + simcard_state_invalid = "SIMCARD_STATE_INVALID" + simcard_state_assigned = "SIMCARD_STATE_ASSIGNED" + simcard_state_provisioned = "SIMCARD_STATE_PROVISIONED" + simcard_state_active = "SIMCARD_STATE_ACTIVE" + simcard_state_suspended = "SIMCARD_STATE_SUSPENDED" + simcard_state_cancelled = "SIMCARD_STATE_CANCELLED" + + +class StaticDNSList(BaseModel): + hostname: str | None = Field(default=None, description="Host name") + addrs: list[str] | None = Field(default=None, description="Addresses") + + +class Summary(BaseModel): + description: str | None = Field(default=None, description="Summary description") + total: float | None = Field(default=None, description="Total") + values: dict[str, int] | None = Field( + default=None, description="Values: Map for storing " + ) + + +class VifInfo(BaseModel): + vif_name: str | None = Field(default=None, alias="vifName") + mac_address: str | None = Field(default=None, alias="macAddress") + app_name: str | None = Field(default=None, alias="appName") + + +class ZcOpsStatus(Enum): + ops_status_unspecified = "OPS_STATUS_UNSPECIFIED" + ops_status_pending = "OPS_STATUS_PENDING" + ops_status_ongoing = "OPS_STATUS_ONGOING" + ops_status_complete = "OPS_STATUS_COMPLETE" + + +class ZcOpsType(Enum): + ops_type_unspecified = "OPS_TYPE_UNSPECIFIED" + ops_type_read = "OPS_TYPE_READ" + ops_type_delete = "OPS_TYPE_DELETE" + ops_type_create = "OPS_TYPE_CREATE" + ops_type_update = "OPS_TYPE_UPDATE" + ops_type_list = "OPS_TYPE_LIST" + + +class ZsrvErrorCode(Enum): + z_msg_error_none = "zMsgErrorNone" + z_msg_sucess = "zMsgSucess" + not_found = "NotFound" + already_exists = "AlreadyExists" + version_mismatch = "VersionMismatch" + range_error = "RangeError" + large_result = "LargeResult" + incomplete_data = "IncompleteData" + invalid_data = "InvalidData" + function_unsupported = "FunctionUnsupported" + no_memory = "NoMemory" + send_failure = "SendFailure" + timeout = "Timeout" + bad_req_body = "BadReqBody" + bad_req_param = "BadReqParam" + invalid_field_format = "InvalidFieldFormat" + url_not_found = "UrlNotFound" + api_version_not_supported = "ApiVersionNotSupported" + unauthorized = "Unauthorized" + forbidden = "Forbidden" + conflict = "Conflict" + not_modified = "NotModified" + dependency_conflict = "DependencyConflict" + json_fmt_error = "JsonFmtError" + proto_fmt_error = "ProtoFmtError" + cert_error = "CertError" + data_base_connection = "DataBaseConnection" + db_error = "DBError" + z_msg_accepted = "zMsgAccepted" + z_msg_created = "zMsgCreated" + pre_condition_failed = "PreConditionFailed" + internal_server_error = "InternalServerError" + + +class CommonCellularIPType(Enum): + cellular_ip_type_unspecified = "CELLULAR_IP_TYPE_UNSPECIFIED" + cellular_ip_type_ipv4 = "CELLULAR_IP_TYPE_IPV4" + cellular_ip_type_ipv4_and_ipv6 = "CELLULAR_IP_TYPE_IPV4_AND_IPV6" + cellular_ip_type_ipv6 = "CELLULAR_IP_TYPE_IPV6" + + +class CommonCipherBlock(BaseModel): + cipher_context_id: str | None = Field( + default=None, alias="cipherContextId", title="cipher context id" + ) + initial_value: Base64Str | None = Field( + default=None, + alias="initialValue", + title="Initial Value for Symmetric Key derivation", + ) + cipher_data: Base64Str | None = Field( + default=None, alias="cipherData", title="encrypted sensitive data" + ) + clear_text_sha256: Base64Str | None = Field( + default=None, + alias="clearTextSha256", + title="sha256 of the plaintext sensitive data", + ) + + +class CommonConnectivityProbeMethod(Enum): + connectivity_probe_method_unspecified = "CONNECTIVITY_PROBE_METHOD_UNSPECIFIED" + connectivity_probe_method_icmp = "CONNECTIVITY_PROBE_METHOD_ICMP" + connectivity_probe_method_tcp = "CONNECTIVITY_PROBE_METHOD_TCP" + + +class CommonProbeEndpoint(BaseModel): + host: str | None = Field(default=None, description="IP address or FQDN.") + port: int | None = Field( + default=None, + description="TCP port required for CONNECTIVITY_PROBE_METHOD_TCP.\nLeave empty for CONNECTIVITY_PROBE_METHOD_ICMP.", + ) + + +class DhcpIpRange(BaseModel): + start: str | None = Field(default=None, description="starting IP") + end: str | None = Field(default=None, description="ending IP") + + +class EvecommonCellularAuthProtocol(Enum): + cellular_auth_protocol_none = "CELLULAR_AUTH_PROTOCOL_NONE" + cellular_auth_protocol_pap = "CELLULAR_AUTH_PROTOCOL_PAP" + cellular_auth_protocol_chap = "CELLULAR_AUTH_PROTOCOL_CHAP" + cellular_auth_protocol_pap_and_chap = "CELLULAR_AUTH_PROTOCOL_PAP_AND_CHAP" + + +class EvecommonRadioAccessTechnology(Enum): + radio_access_technology_unspecified = "RADIO_ACCESS_TECHNOLOGY_UNSPECIFIED" + radio_access_technology_gsm = "RADIO_ACCESS_TECHNOLOGY_GSM" + radio_access_technology_umts = "RADIO_ACCESS_TECHNOLOGY_UMTS" + radio_access_technology_lte = "RADIO_ACCESS_TECHNOLOGY_LTE" + radio_access_technology_5_gnr = "RADIO_ACCESS_TECHNOLOGY_5GNR" + + +class EveinfoIPRoute(BaseModel): + destination_network: str | None = Field( + default=None, + alias="destinationNetwork", + title="Destination network address in the CIDR format: /", + ) + gateway: str | None = Field( + default=None, description="Gateway IP address.\nEmpty for connected route." + ) + port: str | None = Field( + default=None, + description="Logical label of the output device port for the routed traffic.\nEmpty if the gateway is IP address of one of the applications. In that case,\n'gateway_app' is defined instead.", + ) + gateway_app: str | None = Field( + default=None, + alias="gatewayApp", + description="UUID of the application used as the gateway for the route.\nEmpty if the gateway is external (not one of the apps but outside of the device)\nor this is a connected route for a port (thus gateway is empty).\nIn that case, 'port' is defined instead.", + ) + + +class ProtobufAny(BaseModel): + type_url: str | None = Field(default=None, alias="typeUrl") + value: Base64Str | None = None + + +class SpType(Enum): + sptype_invalidsrv = "SPTYPE_INVALIDSRV" + sptype_mapserver = "SPTYPE_MAPSERVER" + sptype_supportserver = "SPTYPE_SUPPORTSERVER" + + +class DeviceEntity(BaseModel): + entity: Entity | None = "ENTITY_UNSPECIFIED" + entity_id: str | None = Field(default=None, alias="entityId") + entity_name: str | None = Field(default=None, alias="entityName") + + +class DeviceError(BaseModel): + description: str = Field(..., description="Description of the error") + severity: Severity + timestamp: dict[str, Any] = Field( + ..., description="Timestamp at which error had occurred" + ) + entities: list[DeviceEntity] = Field( + ..., description="objects referenced by the description or retry_condition" + ) + retry_condition: str | None = Field( + default=None, alias="retryCondition", description="condition for retry" + ) + + +class DhcpServerConfig(BaseModel): + subnet: str | None = Field(default=None, description="Subnet address") + mask: str | None = Field(default=None, description="Subnet Mask") + gateway: str | None = Field( + default=None, description="IP Address of Network Gateway" + ) + domain: str | None = Field(default=None, description="Network domain") + ntp: str | None = Field( + default=None, + description="IP Address of NTP Server", + title="ntp will be deprecated", + ) + dns: list[str] | None = Field( + default=None, + description="IP Addresses of DNS servers", + title="possible DNS ip address", + ) + dhcp_range: DhcpIpRange | None = Field(default=None, alias="dhcpRange") + ntp_servers: list[NtpServer] | None = Field( + default=None, alias="ntpServers", description="NTP Servers" + ) + + +class IpSpec(BaseModel): + deprecated_dhcp: bool | None = Field( + default=None, alias="deprecatedDhcp", title="deprecated" + ) + dhcp: NetworkDHCPType | None = "NETWORK_DHCP_TYPE_UNSPECIFIED" + subnet: str | None = None + mask: str | None = None + gateway: str | None = None + domain: str | None = None + ntp: str | None = Field(default=None, title="ntp will be deprecated") + dns: list[str] | None = None + dhcp_range: DhcpIpRange | None = Field(default=None, alias="dhcpRange") + ntp_servers: list[NtpServer] | None = Field(default=None, alias="ntpServers") + ntp_server_exclusively: bool | None = Field( + default=None, alias="ntpServerExclusively" + ) + + +class LTEAdapter(BaseModel): + sim_name: str | None = Field( + default=None, alias="simName", description="Name of SIM card." + ) + cell_module_name: str | None = Field( + default=None, alias="cellModuleName", description="Name of Cell Module" + ) + imsi: str | None = Field(default=None, description="imsi of the SIM") + iccid: str | None = Field(default=None, description="iccid of the SIM") + simcard_state: SimcardState | None = Field( + default="SIMCARD_STATE_INVALID", alias="simcardState" + ) + imei: str | None = Field(default=None, description="IMEI of Cell Radio.") + firmware_version: str | None = Field( + default=None, + alias="firmwareVersion", + description="Firmware Version of Cell Radio.", + ) + + +class NetCellularAccessPoint(BaseModel): + sim_slot: int | None = Field( + default=None, + alias="simSlot", + description="SIM card slot to which this configuration applies.\n0 - unspecified (apply to currently activated or the only available)\n1 - config for SIM card in the first slot\n2 - config for SIM card in the second slot\netc.", + ) + apn: str | None = Field( + default=None, + description='Access Point Network to connect into.\nBy default it is "internet".', + ) + auth_protocol: EvecommonCellularAuthProtocol | None = Field( + default="CELLULAR_AUTH_PROTOCOL_NONE", alias="authProtocol" + ) + cipher_data: CommonCipherBlock | None = Field(default=None, alias="cipherData") + preferred_plmns: list[str] | None = Field( + default=None, + alias="preferredPlmns", + description='The set of cellular network operators that modem should preferably try to register\nand connect into.\nNetwork operator should be referenced by PLMN (Public Land Mobile Network) code,\nconsisting of 3-digits MCC (Mobile Country Code) and 2 or 3-digits MNC (Mobile Network Code),\nseparated by a dash, e.g. "310-260".\nIf empty, then modem will select the network automatically based on the SIM card config.', + ) + forbid_roaming: bool | None = Field( + default=None, + alias="forbidRoaming", + description="If true, then modem will avoid connecting to networks with roaming.", + ) + preferred_rats: list[EvecommonRadioAccessTechnology] | None = Field( + default=None, + alias="preferredRats", + description="The list of preferred Radio Access Technologies (RATs) to use for connecting\nto the network.\nOrder matters, first is the most preferred, second is tried next, etc.\nNot listed technologies will not be tried.\nIf empty, then modem will select RAT automatically.", + ) + ip_type: CommonCellularIPType | None = Field( + default="CELLULAR_IP_TYPE_UNSPECIFIED", alias="ipType" + ) + attach_apn: str | None = Field( + default=None, + alias="attachApn", + description="Access Point Name (APN) for the attach (initial) bearer.\nThis field is optional. If not specified, EVE will not send any attach bearer\nconfiguration to the modem. Instead, the modem will use one of its pre-installed\nprofiles (see CellularProfile) to determine the configuration.", + ) + attach_ip_type: CommonCellularIPType | None = Field( + default="CELLULAR_IP_TYPE_UNSPECIFIED", alias="attachIpType" + ) + attach_auth_protocol: CellularAuthProtocol | None = Field( + default="CELLULAR_AUTH_PROTOCOL_NONE", alias="attachAuthProtocol" + ) + secrets: NetCellularAccessPointSecrets | None = None + encrypted_secrets: dict[str, str] | None = Field( + default=None, alias="encryptedSecrets" + ) + crypto_key: str | None = Field(default=None, alias="cryptoKey") + attach_secrets: NetCellularAccessPointSecrets | None = Field( + default=None, alias="attachSecrets" + ) + attach_encrypted_secrets: dict[str, str] | None = Field( + default=None, alias="attachEncryptedSecrets" + ) + + +class NetInstConfigStatus(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="System defined universally unique Id of the network instance", + ) + name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined name of the network instance, unique across the enterprise. Once object is created, name can’t be changed", + ) + run_state: RunState | None = Field( + default="RUN_STATE_UNSPECIFIED", alias="runState" + ) + up_time_stamp: AwareDatetime | None = Field(default=None, alias="upTimeStamp") + uplink_intf: str | None = Field(default=None, alias="uplinkIntf") + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + cluster_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="clusterID", + description="User defined name of the clusterInstance, unique across the enterprise.", + ) + type: NetworkInstanceDhcpType | None = "NETWORK_INSTANCE_DHCP_TYPE_UNSPECIFIED" + kind: NetworkInstanceKind | None = "NETWORK_INSTANCE_KIND_UNSPECIFIED" + device_default: bool | None = Field(default=None, alias="deviceDefault") + device_id: str | None = Field(default=None, alias="deviceId") + project_id: str | None = Field(default=None, alias="projectId") + device_name: str | None = Field(default=None, alias="deviceName") + project_name: str | None = Field(default=None, alias="projectName") + network_policy_id: str | None = Field(default=None, alias="networkPolicyId") + edge_node_cluster_id: str | None = Field(default=None, alias="edgeNodeClusterID") + + +class NetInstConfigStatusList(BaseModel): + list_: list[NetInstConfigStatus] | None = Field(default=None, alias="list") + summary_by_kind: Summary | None = Field(default=None, alias="summaryByKind") + summary_by_address_type: Summary | None = Field( + default=None, alias="summaryByAddressType" + ) + next: Cursor | None = None + + +class NetInstShortConfig(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="System defined universally unique Id of the network instance", + ) + name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined name of the network instance, unique across the enterprise. Once object is created, name can’t be changed", + ) + device_id: str | None = Field(default=None, alias="deviceId") + project_id: str | None = Field(default=None, alias="projectId") + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + kind: NetworkInstanceKind | None = "NETWORK_INSTANCE_KIND_UNSPECIFIED" + type: NetworkInstanceDhcpType | None = "NETWORK_INSTANCE_DHCP_TYPE_UNSPECIFIED" + forward_lldp: bool | None = Field(default=None, alias="forwardLldp") + device_default: bool | None = Field(default=None, alias="deviceDefault") + network_policy_id: str | None = Field( + default=None, alias="networkPolicyId", description="network policy id" + ) + + +class NetInstStatusSummaryMsg(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="System defined universally unique Id of the network instance", + ) + name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined name of the network instance, unique across the enterprise. Once object is created, name can’t be changed", + ) + run_state: RunState | None = Field( + default="RUN_STATE_UNSPECIFIED", alias="runState" + ) + up_time_stamp: AwareDatetime | None = Field(default=None, alias="upTimeStamp") + uplink_intf: str | None = Field(default=None, alias="uplinkIntf") + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + cluster_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="clusterID", + description="User defined name of the clusterInstance, unique across the enterprise.", + ) + type: NetworkInstanceDhcpType | None = "NETWORK_INSTANCE_DHCP_TYPE_UNSPECIFIED" + kind: NetworkInstanceKind | None = "NETWORK_INSTANCE_KIND_UNSPECIFIED" + device_id: str | None = Field(default=None, alias="deviceId") + project_id: str | None = Field(default=None, alias="projectId") + device_name: str | None = Field(default=None, alias="deviceName") + project_name: str | None = Field(default=None, alias="projectName") + edge_node_cluster_id: str | None = Field(default=None, alias="edgeNodeClusterID") + + +class NetProxyServer(BaseModel): + proto: NetworkProxyProto | None = "NETWORK_PROXY_PROTO_HTTP" + server: str | None = Field(default=None, description="Net Proxy Server") + port: float | None = Field(default=None, description="Net Proxy Port") + + +class NetWifiConfig(BaseModel): + wifi_ssid: str | None = Field(default=None, alias="wifiSSID") + key_scheme: NetworkWiFiKeyScheme | None = Field( + default="NETWORK_WIFIKEY_SCHEME_UNSPECIFIED", alias="keyScheme" + ) + identity: str | None = None + secret: NetWifiConfigSecrets | None = None + crypto: NetWifiConfigNetcryptoblock | None = None + priority: int | None = None + encrypted_secrets: dict[str, str] | None = Field( + default=None, alias="encryptedSecrets" + ) + crypto_key: str | None = Field(default=None, alias="cryptoKey") + + +class NetworkDeviceList(BaseModel): + list_: list[NetworkRelatedDevice] | None = Field(default=None, alias="list") + + +class ServicePoint(BaseModel): + type: SpType | None = "SPTYPE_INVALIDSRV" + name_or_ip: str | None = Field( + default=None, alias="NameOrIp", description="Service name/ service name" + ) + credential: str | None = Field( + default=None, alias="Credential", description="Service credentials" + ) + + +class ZsrvError(BaseModel): + ec: ZsrvErrorCode | None = "zMsgErrorNone" + location: str | None = Field(default=None, title="Ignore: Internal field only") + details: str | None = Field( + default=None, title="Field captures string description of details" + ) + + +class ZsrvResponse(BaseModel): + operation_type: ZcOpsType | None = Field( + default="OPS_TYPE_UNSPECIFIED", alias="operationType" + ) + operation_status: ZcOpsStatus | None = Field( + default="OPS_STATUS_UNSPECIFIED", alias="operationStatus" + ) + object_kind: str | None = Field( + default=None, + alias="objectKind", + title="zedcloud object kind on which the operation was performed", + ) + object_id: str | None = Field( + default=None, + alias="objectId", + title="Unique value identifies the object that was operated on", + ) + object_name: str | None = Field( + default=None, alias="objectName", title="name of the object" + ) + object_revision: str | None = Field( + default=None, + alias="objectRevision", + title="object revision post the operation, note Read operation\ndoesn't change the revision", + ) + object_type: ObjectType | None = Field( + default="OBJECT_TYPE_UNSPECIFIED", alias="objectType" + ) + operation_time: str | None = Field( + default=None, alias="operationTime", title="time of operation" + ) + start_time: str | None = Field( + default=None, alias="startTime", title="total time taken by operations" + ) + end_time: str | None = Field(default=None, alias="endTime") + user: str | None = Field( + default=None, title="the operation is performed on behalf of this user" + ) + http_status_code: int | None = Field( + default=None, alias="httpStatusCode", title="http response" + ) + http_status_msg: str | None = Field( + default=None, alias="httpStatusMsg", title="summary of the error in text format" + ) + job_id: str | None = Field( + default=None, alias="jobId", title="for tracking asynchronous tasks" + ) + error: list[ZsrvError] | None = Field( + default=None, + title="one or more errors will be set if the operation failed\ni.e. httpStatusCode != 2xx", + ) + + +class CommonConnectivityProbe(BaseModel): + probe_method: CommonConnectivityProbeMethod | None = Field( + default="CONNECTIVITY_PROBE_METHOD_UNSPECIFIED", alias="probeMethod" + ) + probe_endpoint: CommonProbeEndpoint | None = Field( + default=None, alias="probeEndpoint" + ) + + +class ConfigCellularConnectivityProbe(BaseModel): + disable: bool | None = Field( + default=None, description="If true, then probing is disabled." + ) + probe_address: str | None = Field( + default=None, + alias="probeAddress", + description="IP/FQDN to periodically probe using 3 pings per iteration to determine connectivity status.\nThis field is now deprecated and replaced with custom_probe (see below).\nTo maintain backward-compatibility, EVE will check both probe_address and custom_probe\nand will use whichever has non-zero value (if any), but preferring custom_probe.", + ) + custom_probe: CommonConnectivityProbe | None = Field( + default=None, alias="customProbe" + ) + + +class GooglerpcStatus(BaseModel): + code: int | None = None + message: str | None = None + details: list[ProtobufAny] | None = None + + +class IoBundleStatus(BaseModel): + type: IoType + name: str = Field(..., description="Io Bundle status name") + members: list[str] = Field( + ..., description="Member Array", title="members - Deprecated by memberList" + ) + app_name: str = Field(..., alias="appName", description="Application name") + lte_info: LTEAdapter | None = Field(default=None, alias="lteInfo") + err: DeviceError | None = None + member_list: list[IoMemberStatus] | None = Field( + default=None, alias="memberList", description="List of IO members" + ) + + +class LispConfig(BaseModel): + lispiid: float | None = Field(default=None, description="lisp id") + allocate: bool | None = Field(default=None, description="Allocate flag") + exportprivate: bool | None = Field(default=None, description="Export Private flag") + allocationprefix: Base64Str | None = Field( + default=None, description="Allocation Prefix" + ) + allocationprefixlen: float | None = Field( + default=None, description="Allocation Prefix Length" + ) + sp: list[ServicePoint] | None = Field( + default=None, description="Service Point List" + ) + + +class NetCellularConfig(BaseModel): + apn: str | None = Field( + default=None, + alias="APN", + description='APN string - by default it is "internet".\nTO BE DEPRECATED: Fill connection arguments inside access_points instead.\nIf access_points is non-empty, then APN field is ignored.', + ) + probe: ConfigCellularConnectivityProbe | None = None + location_tracking: bool | None = Field( + default=None, + alias="locationTracking", + description="Some LTE modems have GNSS receiver integrated and can be used for device\nlocation tracking.\nEnable this option to have location info periodically obtained from this\nmodem and published to controller and to applications.", + ) + access_points: list[NetCellularAccessPoint] | None = Field( + default=None, + alias="accessPoints", + description="Parameters to apply for connecting to cellular networks.\nConfigured separately for every SIM card inserted into the modem.", + ) + activated_sim_slot: int | None = Field( + default=None, + alias="activatedSimSlot", + description="Select SIM card slot to activate.\nCurrently, EVE support only single-standby SIM card mode.\n0 - unspecified (leave the currently activated)\n1 - activate the first SIM slot\n2 - activate the second SIM slot\netc.", + ) + + +class NetInstOpaqueConfig(BaseModel): + type: OpaqueConfigType | None = "OPAQUE_CONFIG_TYPE_UNSPECIFIED" + oconfig: str | None = Field( + default=None, description="base64 encoded string of opaque config" + ) + lisp: LispConfig | None = None + + +class NetInstStatusListMsg(BaseModel): + list_: list[NetInstStatusSummaryMsg] | None = Field(default=None, alias="list") + summary_by_kind: Summary | None = Field(default=None, alias="summaryByKind") + summary_by_address_type: Summary | None = Field( + default=None, alias="summaryByAddressType" + ) + next: Cursor | None = None + + +class NetInstStatusMsg(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="System defined universally unique Id of the network instance", + ) + name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined name of the network instance, unique across the enterprise. Once object is created, name can’t be changed", + ) + device_id: str | None = Field( + default=None, alias="deviceId", title="device on which this network is running" + ) + run_state: RunState | None = Field( + default="RUN_STATE_UNSPECIFIED", alias="runState" + ) + up_time_stamp: AwareDatetime | None = Field(default=None, alias="upTimeStamp") + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + cluster_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="clusterID", + description="System defined universally unique clusterInstance ID, unique across the enterprise.", + ) + project_id: str | None = Field(default=None, alias="projectId") + kind: NetworkInstanceKind | None = "NETWORK_INSTANCE_KIND_UNSPECIFIED" + bridge_num: int | None = Field(default=None, alias="bridgeNum") + bridge_name: str | None = Field(default=None, alias="bridgeName") + bridge_ip_addr: str | None = Field(default=None, alias="bridgeIPAddr") + ip_mappings: list[IPAssignment] | None = Field(default=None, alias="ipMappings") + vifs: list[VifInfo] | None = None + ipv4_eid: bool | None = Field(default=None, alias="ipv4Eid") + assigned_adapters: list[IoBundleStatus] | None = Field( + default=None, alias="assignedAdapters" + ) + uplink_intf: str | None = Field(default=None, alias="uplinkIntf") + mtu: int | None = Field( + default=None, + description="Maximum transmission unit (MTU) to set for the network instance and all application interfaces connected to it", + ) + ip_routes: list[EveinfoIPRoute] | None = Field( + default=None, + alias="ipRoutes", + description="List of IP routes used by the network instance", + ) + ports: list[str] | None = Field( + default=None, description="List of ports used by the network instance" + ) + err_info: list[DeviceError] | None = Field(default=None, alias="errInfo") + raw_status: str | None = Field(default=None, alias="rawStatus") + + +class NetProxyConfig(BaseModel): + network_proxy: bool | None = Field( + default=None, alias="networkProxy", description="Network proxy" + ) + proxies: list[NetProxyServer] | None = Field( + default=None, + description="Net Proxy: protocol level proxies", + title="protocol level proxies", + ) + exceptions: str | None = Field(default=None, description="Proxy exceptions") + pacfile: str | None = Field( + default=None, + description="proxy configuration in a pacfile", + title="proxy configuration in a pacfile", + ) + network_proxy_url: str | None = Field( + default=None, + alias="networkProxyURL", + description="Network Proxy URL", + title="Direct URL for wpad.dat download", + ) + network_proxy_certs: list[Base64Str] | None = Field( + default=None, + alias="networkProxyCerts", + description="Network Proxy Certificates", + title="Proxy Certificates", + ) + + +class NetWirelessConfig(BaseModel): + type: NetworkWirelessType | None = "NETWORK_WIRELESS_TYPE_UNSPECIFIED" + cellular_cfg: NetCellularConfig | None = Field(default=None, alias="cellularCfg") + wifi_cfg: NetWifiConfig | None = Field(default=None, alias="wifiCfg") + + +class ProbeConfig(BaseModel): + enable_gateway_ping: bool | None = Field( + default=None, alias="enableGatewayPing", description="Enable gateway ping" + ) + ping_max_cost: float | None = Field( + default=None, alias="pingMaxCost", description="Ping max cost" + ) + prefer_lower_cost: bool | None = Field( + default=None, alias="preferLowerCost", description="Prefer lower cost" + ) + prefer_stronger_wwan_signal: bool | None = Field( + default=None, + alias="preferStrongerWwanSignal", + description="Prefer stronger WWAN signal", + ) + custom_probe_config: CommonConnectivityProbe | None = Field( + default=None, alias="customProbeConfig" + ) + + +class StaticIPRoute(BaseModel): + prefix: str | None = Field(default=None, description="IP Prefix") + gateway: str | None = Field(default=None, description="Gateway IP") + output_port: str | None = Field( + default=None, alias="outputPort", description="Output Port" + ) + probe_config: ProbeConfig | None = Field(default=None, alias="probeConfig") + + +class NetConfig(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, description="System defined universally unique Id of the network" + ) + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the network, unique across the enterprise. Once object is created, name can’t be changed", + ) + title: constr( + pattern=r"^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined title of the network. Title can be changed at any time", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the network" + ) + revision: ObjectRevision | None = None + project_id: str = Field(..., alias="projectId") + kind: NetworkKind + ip: IpSpec + dns_list: list[StaticDNSList] | None = Field(default=None, alias="dnsList") + proxy: NetProxyConfig | None = None + enterprise_default: bool | None = Field( + default=None, + alias="enterpriseDefault", + title="make this network default for device", + ) + mtu: int | None = Field( + default=None, + title="Maximum transmission unit (MTU) to set on the associated network adapter(s)", + ) + wireless: NetWirelessConfig | None = None + project: NetProjectInfo | None = None + + +class NetConfigForUpdateHttpRequest(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") = Field( + ..., description="System defined universally unique Id of the network" + ) + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the network, unique across the enterprise. Once object is created, name can’t be changed", + ) + title: constr( + pattern=r"^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined title of the network. Title can be changed at any time", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the network" + ) + revision: ObjectRevision + project_id: str = Field(..., alias="projectId") + kind: NetworkKind + ip: IpSpec + dns_list: list[StaticDNSList] | None = Field(default=None, alias="dnsList") + proxy: NetProxyConfig | None = None + enterprise_default: bool | None = Field( + default=None, + alias="enterpriseDefault", + title="make this network default for device", + ) + mtu: int | None = Field( + default=None, + title="Maximum transmission unit (MTU) to set on the associated network adapter(s)", + ) + wireless: NetWirelessConfig | None = None + project: NetProjectInfo | None = None + + +class NetConfigList(BaseModel): + summary: Summary | None = None + summary_by_kind: Summary | None = Field(default=None, alias="summaryByKind") + summary_by_proxy: Summary | None = Field(default=None, alias="summaryByProxy") + summary_by_dist: Summary | None = Field(default=None, alias="summaryByDist") + list_: list[NetConfig] | None = Field(default=None, alias="list") + next: Cursor | None = None + + +class NetInstConfig(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="System defined universally unique Id of the network instance", + ) + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the network instance, unique across the enterprise. Once object is created, name can’t be changed", + ) + title: constr( + pattern=r"^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined title of the network instance. Title can be changed at any time", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the network instance" + ) + revision: ObjectRevision | None = None + project_id: str | None = Field( + default=None, + alias="projectId", + description="id of the project in which network instance is created", + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + cluster_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="clusterID", + description="id of the Cluster in which the network instance is configured", + ) + device_id: str = Field( + ..., + alias="deviceId", + description="id of the device on which network instance is created", + title="device on which this network is running", + ) + port: str = Field( + ..., + description="name of port mapping in the model", + title="name of port mapping in the model", + ) + port_tags: dict[str, str] | None = Field( + default=None, + alias="portTags", + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + kind: NetworkInstanceKind + dhcp: bool | None = Field( + default=None, description="Deprecated", title="dhcp - DEPRECATED" + ) + type: NetworkInstanceDhcpType | None = "NETWORK_INSTANCE_DHCP_TYPE_UNSPECIFIED" + ip: DhcpServerConfig | None = None + dns_list: list[StaticDNSList] | None = Field( + default=None, alias="dnsList", description="List of Static DNS entries" + ) + oconfig: str | None = Field(default=None, title="Deprecated") + lisp: LispConfig | None = None + opaque: NetInstOpaqueConfig | None = None + device_default: bool | None = Field( + default=None, + alias="deviceDefault", + description="flag to indicate if this is the default network instance for the device", + title="flag to indicate if this is default network", + ) + network_policy_id: str | None = Field( + default=None, + alias="networkPolicyId", + description="id of the network policy to be attached to this network instance", + ) + propagate_connected_routes: bool | None = Field( + default=None, + alias="propagateConnectedRoutes", + description="Automatically propagate connected routes", + ) + static_routes: list[StaticIPRoute] | None = Field( + default=None, alias="staticRoutes", description="List of Static IP routes" + ) + mtu: int | None = Field( + default=None, + description="Maximum transmission unit (MTU) to set for the network instance and all application interfaces connected to it", + ) + edge_node_cluster: NetInstEdgeNodeCluster | None = Field( + default=None, alias="edgeNodeCluster" + ) + forward_lldp: bool | None = Field( + default=None, + alias="forwardLldp", + description="Enables forwarding of LLDP (Link Layer Discovery Protocol) frames across this\nnetwork instance.\nLLDP is used by devices to advertise identity and capabilities to directly\nconnected neighbors, and is often required for topology discovery and network\nmanagement tools.\nWhen enabled, LLDP frames (EtherType 0x88cc) are not dropped or suppressed\nby the forwarding plane.", + ) + + +class NetInstConfigUpdateHttpRequest(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") = Field( + ..., description="System defined universally unique Id of the network instance" + ) + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the network instance, unique across the enterprise. Once object is created, name can’t be changed", + ) + title: constr( + pattern=r"^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined title of the network instance. Title can be changed at any time", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the network instance" + ) + revision: ObjectRevision | None = None + project_id: str | None = Field( + default=None, + alias="projectId", + description="id of the project in which network instance is created", + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + cluster_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="clusterID", + description="id of the Cluster in which the network instance is configured", + ) + device_id: str = Field( + ..., + alias="deviceId", + description="id of the device on which network instance is created", + title="device on which this network is running", + ) + port: str = Field( + ..., + description="name of port mapping in the model", + title="name of port mapping in the model", + ) + port_tags: dict[str, str] | None = Field( + default=None, + alias="portTags", + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + kind: NetworkInstanceKind + dhcp: bool | None = Field( + default=None, description="Deprecated", title="dhcp - DEPRECATED" + ) + type: NetworkInstanceDhcpType | None = "NETWORK_INSTANCE_DHCP_TYPE_UNSPECIFIED" + ip: DhcpServerConfig | None = None + dns_list: list[StaticDNSList] | None = Field( + default=None, alias="dnsList", description="List of Static DNS entries" + ) + oconfig: str | None = Field(default=None, title="Deprecated") + lisp: LispConfig | None = None + opaque: NetInstOpaqueConfig | None = None + device_default: bool | None = Field( + default=None, + alias="deviceDefault", + description="flag to indicate if this is the default network instance for the device", + title="flag to indicate if this is default network", + ) + network_policy_id: str | None = Field( + default=None, + alias="networkPolicyId", + description="id of the network policy to be attached to this network instance", + ) + propagate_connected_routes: bool | None = Field( + default=None, + alias="propagateConnectedRoutes", + description="Automatically propagate connected routes", + ) + static_routes: list[StaticIPRoute] | None = Field( + default=None, alias="staticRoutes", description="List of Static IP routes" + ) + mtu: int | None = Field( + default=None, + description="Maximum transmission unit (MTU) to set for the network instance and all application interfaces connected to it", + ) + edge_node_cluster: NetInstEdgeNodeCluster | None = Field( + default=None, alias="edgeNodeCluster" + ) + forward_lldp: bool | None = Field( + default=None, + alias="forwardLldp", + description="enable/disable lldp frame forward", + ) + + +class NetInstList(BaseModel): + list_: list[NetInstShortConfig] | None = Field(default=None, alias="list") + cfg_list: list[NetInstConfig] | None = Field(default=None, alias="cfgList") + summary_by_kind: Summary | None = Field(default=None, alias="summaryByKind") + summary_by_address_type: Summary | None = Field( + default=None, alias="summaryByAddressType" + ) + next: Cursor | None = None diff --git a/packages/zedcloud/src/zedcloud/_generated/models/node_clusters.py b/packages/zedcloud/src/zedcloud/_generated/models/node_clusters.py new file mode 100644 index 0000000..8879a66 --- /dev/null +++ b/packages/zedcloud/src/zedcloud/_generated/models/node_clusters.py @@ -0,0 +1,876 @@ +# Generated by scripts/generate_from_openapi.py from zedge_node_cluster_service.swagger.json +# Do not edit by hand — re-run: uv run python scripts/generate_from_openapi.py + +from __future__ import annotations +from enum import Enum +from pydantic import AwareDatetime, Base64Str, BaseModel, Field, constr + + +class AdminState(Enum): + admin_state_unspecified = "ADMIN_STATE_UNSPECIFIED" + admin_state_created = "ADMIN_STATE_CREATED" + admin_state_deleted = "ADMIN_STATE_DELETED" + admin_state_active = "ADMIN_STATE_ACTIVE" + admin_state_inactive = "ADMIN_STATE_INACTIVE" + admin_state_registered = "ADMIN_STATE_REGISTERED" + admin_state_archived = "ADMIN_STATE_ARCHIVED" + admin_state_deletion_pending = "ADMIN_STATE_DELETION_PENDING" + + +class BaseOSImage(BaseModel): + uuid: str = Field(..., description="system generated unique id for an image") + version: str = Field(..., description="image version") + image_name: str = Field(..., alias="imageName", description="image name") + activate: bool = Field(..., description="activation flag") + imvol_id: str | None = Field( + default=None, + alias="imvolId", + description="immutable Volume for this base image", + ) + + +class ClusterVlanAdapter(BaseModel): + logical_label: str | None = Field(default=None, alias="logicalLabel") + lower_layer_name: str | None = Field(default=None, alias="lowerLayerName") + vlan_id: int | None = Field(default=None, alias="vlanId") + + +class Cursor(BaseModel): + page_token: str | None = Field( + default=None, alias="pageToken", description="Page Token" + ) + order_by: list[str] | None = Field( + default=None, + alias="orderBy", + description="OrderBy helps in sorting the list response", + ) + page_num: float | None = Field( + default=None, alias="pageNum", description="Page Number" + ) + page_size: float | None = Field( + default=None, alias="pageSize", description="Defines the page size" + ) + total_pages: float | None = Field( + default=None, + alias="totalPages", + description="Total number of pages to be fetched.", + ) + + +class EdgeNodeClusterFilter(BaseModel): + project_name: str | None = Field( + default=None, + alias="projectName", + description="User defined name of the project, unique across the enterprise. Once project is created, name can’t be changed", + ) + project_name_pattern: str | None = Field( + default=None, + alias="projectNamePattern", + description="cluster project name pattern", + ) + name_pattern: str | None = Field( + default=None, alias="namePattern", description="cluster name pattern" + ) + include_zks: str | None = Field( + default=None, alias="includeZks", description="include zks clusters" + ) + title_pattern: str | None = Field( + default=None, alias="titlePattern", description="cluster title pattern" + ) + + +class EdgeNodeClusterInterfacePorts(BaseModel): + ports: list[str] | None = None + shared_labels: list[str] | None = Field(default=None, alias="sharedLabels") + vlan_adapters: list[ClusterVlanAdapter] | None = Field( + default=None, alias="vlanAdapters" + ) + bond_adapters: list[str] | None = Field(default=None, alias="bondAdapters") + + +class EdgeNodeClusterNodeReadyState(Enum): + edge_node_cluster_node_ready_state_unspecified = ( + "EDGE_NODE_CLUSTER_NODE_READY_STATE_UNSPECIFIED" + ) + edge_node_cluster_node_ready_state_ready = ( + "EDGE_NODE_CLUSTER_NODE_READY_STATE_READY" + ) + edge_node_cluster_node_ready_state_not_ready = ( + "EDGE_NODE_CLUSTER_NODE_READY_STATE_NOT_READY" + ) + edge_node_cluster_node_ready_state_unknown = ( + "EDGE_NODE_CLUSTER_NODE_READY_STATE_UNKNOWN" + ) + + +class EdgeNodeClusterNodeStatus(BaseModel): + id: str | None = None + name: str | None = None + ready_state: EdgeNodeClusterNodeReadyState | None = Field( + default="EDGE_NODE_CLUSTER_NODE_READY_STATE_UNSPECIFIED", alias="readyState" + ) + + +class EdgeNodeClusterNodeType(Enum): + edge_node_cluster_node_type_unspecified = "EDGE_NODE_CLUSTER_NODE_TYPE_UNSPECIFIED" + edge_node_cluster_node_type_server = "EDGE_NODE_CLUSTER_NODE_TYPE_SERVER" + edge_node_cluster_node_type_agent = "EDGE_NODE_CLUSTER_NODE_TYPE_AGENT" + + +class EdgeNodeClusterProject(BaseModel): + id: str | None = None + name: str | None = None + + +class EdgeNodeClusterProjects(BaseModel): + list_: list[EdgeNodeClusterProject] | None = Field(default=None, alias="list") + next: Cursor | None = None + total_count: int | None = Field(default=None, alias="totalCount") + + +class EdgeNodeClusterType(Enum): + edge_node_cluster_type_standart = "EDGE_NODE_CLUSTER_TYPE_STANDART" + edge_node_cluster_type_zks = "EDGE_NODE_CLUSTER_TYPE_ZKS" + + +class EdgeNodeClusterUpgradeStatus(Enum): + status_unspecified = "STATUS_UNSPECIFIED" + status_in_progress = "STATUS_IN_PROGRESS" + status_completed = "STATUS_COMPLETED" + status_failed = "STATUS_FAILED" + + +class EdgeNodeClusterUpgradeStatusRespNode(BaseModel): + node_id: str | None = Field(default=None, alias="nodeId") + upgradeable_eve_os: str | None = Field(default=None, alias="upgradeableEveOs") + status: EdgeNodeClusterUpgradeStatus | None = "STATUS_UNSPECIFIED" + created_at: AwareDatetime | None = Field(default=None, alias="createdAt") + updated_at: AwareDatetime | None = Field(default=None, alias="updatedAt") + + +class ObjectType(Enum): + object_type_unspecified = "OBJECT_TYPE_UNSPECIFIED" + object_type_user = "OBJECT_TYPE_USER" + object_type_edge_node = "OBJECT_TYPE_EDGE_NODE" + object_type_edge_app = "OBJECT_TYPE_EDGE_APP" + object_type_image = "OBJECT_TYPE_IMAGE" + object_type_edge_app_instance = "OBJECT_TYPE_EDGE_APP_INSTANCE" + object_type_project = "OBJECT_TYPE_PROJECT" + object_type_network = "OBJECT_TYPE_NETWORK" + object_type_datastore = "OBJECT_TYPE_DATASTORE" + object_type_service = "OBJECT_TYPE_SERVICE" + object_type_service_instance = "OBJECT_TYPE_SERVICE_INSTANCE" + object_type_enterprise = "OBJECT_TYPE_ENTERPRISE" + object_type_role = "OBJECT_TYPE_ROLE" + object_type_credential = "OBJECT_TYPE_CREDENTIAL" + object_type_network_instance = "OBJECT_TYPE_NETWORK_INSTANCE" + object_type_volume_instance = "OBJECT_TYPE_VOLUME_INSTANCE" + object_type_realm = "OBJECT_TYPE_REALM" + object_type_authprofile = "OBJECT_TYPE_AUTHPROFILE" + object_type_policy = "OBJECT_TYPE_POLICY" + object_type_app_policy = "OBJECT_TYPE_APP_POLICY" + object_type_cluster_instance = "OBJECT_TYPE_CLUSTER_INSTANCE" + object_type_plugin = "OBJECT_TYPE_PLUGIN" + object_type_doc_policy = "OBJECT_TYPE_DOC_POLICY" + object_type_orchestrator_cluster = "OBJECT_TYPE_ORCHESTRATOR_CLUSTER" + object_type_tags = "OBJECT_TYPE_TAGS" + object_type_edge_node_interface = "OBJECT_TYPE_EDGE_NODE_INTERFACE" + object_type_deployment = "OBJECT_TYPE_DEPLOYMENT" + object_type_entitlements = "OBJECT_TYPE_ENTITLEMENTS" + object_type_data_stream = "OBJECT_TYPE_DATA_STREAM" + object_type_api_usage = "OBJECT_TYPE_API_USAGE" + object_type_app_instance_snapshot = "OBJECT_TYPE_APP_INSTANCE_SNAPSHOT" + object_type_patch_envelope = "OBJECT_TYPE_PATCH_ENVELOPE" + object_type_resource_usage_track = "OBJECT_TYPE_RESOURCE_USAGE_TRACK" + object_type_patch_envelope_reference = "OBJECT_TYPE_PATCH_ENVELOPE_REFERENCE" + object_type_dev_passthrough = "OBJECT_TYPE_DEV_PASSTHROUGH" + object_type_edge_node_cluster = "OBJECT_TYPE_EDGE_NODE_CLUSTER" + object_type_asset_group = "OBJECT_TYPE_ASSET_GROUP" + object_type_app_profile = "OBJECT_TYPE_APP_PROFILE" + object_type_profile_deployment = "OBJECT_TYPE_PROFILE_DEPLOYMENT" + object_type_zks_instance = "OBJECT_TYPE_ZKS_INSTANCE" + object_type_cluster_group = "OBJECT_TYPE_CLUSTER_GROUP" + + +class RunState(Enum): + run_state_unspecified = "RUN_STATE_UNSPECIFIED" + run_state_online = "RUN_STATE_ONLINE" + run_state_halted = "RUN_STATE_HALTED" + run_state_init = "RUN_STATE_INIT" + run_state_rebooting = "RUN_STATE_REBOOTING" + run_state_offline = "RUN_STATE_OFFLINE" + run_state_unknown = "RUN_STATE_UNKNOWN" + run_state_unprovisioned = "RUN_STATE_UNPROVISIONED" + run_state_provisioned = "RUN_STATE_PROVISIONED" + run_state_suspect = "RUN_STATE_SUSPECT" + run_state_downloading = "RUN_STATE_DOWNLOADING" + run_state_restarting = "RUN_STATE_RESTARTING" + run_state_purging = "RUN_STATE_PURGING" + run_state_halting = "RUN_STATE_HALTING" + run_state_error = "RUN_STATE_ERROR" + run_state_verifying = "RUN_STATE_VERIFYING" + run_state_loading = "RUN_STATE_LOADING" + run_state_creating_volume = "RUN_STATE_CREATING_VOLUME" + run_state_booting = "RUN_STATE_BOOTING" + run_state_maintenance_mode = "RUN_STATE_MAINTENANCE_MODE" + run_state_start_delayed = "RUN_STATE_START_DELAYED" + run_state_baseos_updating = "RUN_STATE_BASEOS_UPDATING" + run_state_preparing_poweroff = "RUN_STATE_PREPARING_POWEROFF" + run_state_powering_off = "RUN_STATE_POWERING_OFF" + run_state_prepared_poweroff = "RUN_STATE_PREPARED_POWEROFF" + + +class ZcOpsStatus(Enum): + ops_status_unspecified = "OPS_STATUS_UNSPECIFIED" + ops_status_pending = "OPS_STATUS_PENDING" + ops_status_ongoing = "OPS_STATUS_ONGOING" + ops_status_complete = "OPS_STATUS_COMPLETE" + + +class ZcOpsType(Enum): + ops_type_unspecified = "OPS_TYPE_UNSPECIFIED" + ops_type_read = "OPS_TYPE_READ" + ops_type_delete = "OPS_TYPE_DELETE" + ops_type_create = "OPS_TYPE_CREATE" + ops_type_update = "OPS_TYPE_UPDATE" + ops_type_list = "OPS_TYPE_LIST" + + +class ZsrvErrorCode(Enum): + z_msg_error_none = "zMsgErrorNone" + z_msg_sucess = "zMsgSucess" + not_found = "NotFound" + already_exists = "AlreadyExists" + version_mismatch = "VersionMismatch" + range_error = "RangeError" + large_result = "LargeResult" + incomplete_data = "IncompleteData" + invalid_data = "InvalidData" + function_unsupported = "FunctionUnsupported" + no_memory = "NoMemory" + send_failure = "SendFailure" + timeout = "Timeout" + bad_req_body = "BadReqBody" + bad_req_param = "BadReqParam" + invalid_field_format = "InvalidFieldFormat" + url_not_found = "UrlNotFound" + api_version_not_supported = "ApiVersionNotSupported" + unauthorized = "Unauthorized" + forbidden = "Forbidden" + conflict = "Conflict" + not_modified = "NotModified" + dependency_conflict = "DependencyConflict" + json_fmt_error = "JsonFmtError" + proto_fmt_error = "ProtoFmtError" + cert_error = "CertError" + data_base_connection = "DataBaseConnection" + db_error = "DBError" + z_msg_accepted = "zMsgAccepted" + z_msg_created = "zMsgCreated" + pre_condition_failed = "PreConditionFailed" + internal_server_error = "InternalServerError" + + +class EveinfoEntity(Enum): + entity_unspecified = "ENTITY_UNSPECIFIED" + entity_base_os = "ENTITY_BASE_OS" + entity_system_adapter = "ENTITY_SYSTEM_ADAPTER" + entity_vault = "ENTITY_VAULT" + entity_attestation = "ENTITY_ATTESTATION" + entity_app_instance = "ENTITY_APP_INSTANCE" + entity_port = "ENTITY_PORT" + entity_network = "ENTITY_NETWORK" + entity_network_instance = "ENTITY_NETWORK_INSTANCE" + entity_content_tree = "ENTITY_CONTENT_TREE" + entity_content_blob = "ENTITY_CONTENT_BLOB" + entity_volume = "ENTITY_VOLUME" + + +class EveinfoSeverity(Enum): + severity_unspecified = "SEVERITY_UNSPECIFIED" + severity_notice = "SEVERITY_NOTICE" + severity_warning = "SEVERITY_WARNING" + severity_error = "SEVERITY_ERROR" + + +class InfoKubeComp(Enum): + kube_comp_unspecified = "KUBE_COMP_UNSPECIFIED" + kube_comp_containerd = "KUBE_COMP_CONTAINERD" + kube_comp_k3_s = "KUBE_COMP_K3S" + kube_comp_multus = "KUBE_COMP_MULTUS" + kube_comp_kubevirt = "KUBE_COMP_KUBEVIRT" + kube_comp_cdi = "KUBE_COMP_CDI" + kube_comp_longhorn = "KUBE_COMP_LONGHORN" + + +class InfoKubeCompUpdateStatus(Enum): + kube_comp_update_status_unspecified = "KUBE_COMP_UPDATE_STATUS_UNSPECIFIED" + kube_comp_update_status_download = "KUBE_COMP_UPDATE_STATUS_DOWNLOAD" + kube_comp_update_status_download_failed = "KUBE_COMP_UPDATE_STATUS_DOWNLOAD_FAILED" + kube_comp_update_status_in_progress = "KUBE_COMP_UPDATE_STATUS_IN_PROGRESS" + kube_comp_update_status_failed = "KUBE_COMP_UPDATE_STATUS_FAILED" + kube_comp_update_status_completed = "KUBE_COMP_UPDATE_STATUS_COMPLETED" + + +class InfoKubeNodeConditionType(Enum): + kube_node_condition_type_unspecified = "KUBE_NODE_CONDITION_TYPE_UNSPECIFIED" + kube_node_condition_type_ready = "KUBE_NODE_CONDITION_TYPE_READY" + kube_node_condition_type_memory_pressure = ( + "KUBE_NODE_CONDITION_TYPE_MEMORY_PRESSURE" + ) + kube_node_condition_type_disk_pressure = "KUBE_NODE_CONDITION_TYPE_DISK_PRESSURE" + kube_node_condition_type_pid_pressure = "KUBE_NODE_CONDITION_TYPE_PID_PRESSURE" + kube_node_condition_type_network_unavail = ( + "KUBE_NODE_CONDITION_TYPE_NETWORK_UNAVAIL" + ) + + +class InfoKubePodNameSpaceInfo(BaseModel): + name: str | None = Field(default=None, title="Name of the namespace") + pod_count: int | None = Field( + default=None, alias="podCount", title="Number of pods in the namespace" + ) + pod_running_count: int | None = Field( + default=None, + alias="podRunningCount", + title="Number of pods in the namespace that are running", + ) + pod_pending_count: int | None = Field( + default=None, + alias="podPendingCount", + title="Number of pods in the namespace that are pending", + ) + pod_failed_count: int | None = Field( + default=None, + alias="podFailedCount", + title="Number of pods in the namespace that are failed", + ) + pod_succeeded_count: int | None = Field( + default=None, + alias="podSucceededCount", + title="Number of pods in the namespace that are succeeded", + ) + + +class InfoKubePodStatus(Enum): + kube_pod_status_unspecified = "KUBE_POD_STATUS_UNSPECIFIED" + kube_pod_status_pending = "KUBE_POD_STATUS_PENDING" + kube_pod_status_running = "KUBE_POD_STATUS_RUNNING" + kube_pod_status_succeeded = "KUBE_POD_STATUS_SUCCEEDED" + kube_pod_status_container_creating = "KUBE_POD_STATUS_CONTAINER_CREATING" + kube_pod_status_crashloop_backoff = "KUBE_POD_STATUS_CRASHLOOP_BACKOFF" + kube_pod_status_error = "KUBE_POD_STATUS_ERROR" + kube_pod_status_evicted = "KUBE_POD_STATUS_EVICTED" + kube_pod_status_failed = "KUBE_POD_STATUS_FAILED" + + +class InfoKubeVMIStatus(Enum): + kube_vmi_status_unspecified = "KUBE_VMI_STATUS_UNSPECIFIED" + kube_vmi_status_pending = "KUBE_VMI_STATUS_PENDING" + kube_vmi_status_scheduling = "KUBE_VMI_STATUS_SCHEDULING" + kube_vmi_status_scheduled = "KUBE_VMI_STATUS_SCHEDULED" + kube_vmi_status_running = "KUBE_VMI_STATUS_RUNNING" + kube_vmi_status_succeeded = "KUBE_VMI_STATUS_SUCCEEDED" + kube_vmi_status_failed = "KUBE_VMI_STATUS_FAILED" + kube_vmi_status_unknown = "KUBE_VMI_STATUS_UNKNOWN" + + +class InfoNodeAdmission(Enum): + node_admission_unspecified = "NODE_ADMISSION_UNSPECIFIED" + node_admission_not_clustered = "NODE_ADMISSION_NOT_CLUSTERED" + node_admission_leaving = "NODE_ADMISSION_LEAVING" + node_admission_joining = "NODE_ADMISSION_JOINING" + node_admission_joined = "NODE_ADMISSION_JOINED" + + +class InfoServiceStatus(Enum): + service_status_unspecified = "SERVICE_STATUS_UNSPECIFIED" + service_status_failed = "SERVICE_STATUS_FAILED" + service_status_degraded = "SERVICE_STATUS_DEGRADED" + service_status_healthy = "SERVICE_STATUS_HEALTHY" + + +class InfoStorageHealthStatus(Enum): + storage_health_status_unspecified = "STORAGE_HEALTH_STATUS_UNSPECIFIED" + storage_health_status_healthy = "STORAGE_HEALTH_STATUS_HEALTHY" + storage_health_status_degraded_2_replica_available_replicating = ( + "STORAGE_HEALTH_STATUS_DEGRADED_2_REPLICA_AVAILABLE_REPLICATING" + ) + storage_health_status_degraded_2_replica_available_not_replicating = ( + "STORAGE_HEALTH_STATUS_DEGRADED_2_REPLICA_AVAILABLE_NOT_REPLICATING" + ) + storage_health_status_degraded_1_replica_available_replicating = ( + "STORAGE_HEALTH_STATUS_DEGRADED_1_REPLICA_AVAILABLE_REPLICATING" + ) + storage_health_status_degraded_1_replica_available_not_replicating = ( + "STORAGE_HEALTH_STATUS_DEGRADED_1_REPLICA_AVAILABLE_NOT_REPLICATING" + ) + storage_health_status_failed = "STORAGE_HEALTH_STATUS_FAILED" + + +class InfoStorageVolumePVCStatus(Enum): + storage_volume_pvc_status_unspecified = "STORAGE_VOLUME_PVC_STATUS_UNSPECIFIED" + storage_volume_pvc_status_bound = "STORAGE_VOLUME_PVC_STATUS_BOUND" + storage_volume_pvc_status_pending = "STORAGE_VOLUME_PVC_STATUS_PENDING" + storage_volume_pvc_status_available = "STORAGE_VOLUME_PVC_STATUS_AVAILABLE" + storage_volume_pvc_status_released = "STORAGE_VOLUME_PVC_STATUS_RELEASED" + storage_volume_pvc_status_failed = "STORAGE_VOLUME_PVC_STATUS_FAILED" + + +class InfoStorageVolumeReplicaStatus(Enum): + storage_volume_replica_status_unspecified = ( + "STORAGE_VOLUME_REPLICA_STATUS_UNSPECIFIED" + ) + storage_volume_replica_status_rebuilding = ( + "STORAGE_VOLUME_REPLICA_STATUS_REBUILDING" + ) + storage_volume_replica_status_online = "STORAGE_VOLUME_REPLICA_STATUS_ONLINE" + storage_volume_replica_status_failed = "STORAGE_VOLUME_REPLICA_STATUS_FAILED" + storage_volume_replica_status_offline = "STORAGE_VOLUME_REPLICA_STATUS_OFFLINE" + storage_volume_replica_status_starting = "STORAGE_VOLUME_REPLICA_STATUS_STARTING" + storage_volume_replica_status_stopping = "STORAGE_VOLUME_REPLICA_STATUS_STOPPING" + + +class InfoStorageVolumeRobustness(Enum): + storage_volume_robustness_unspecified = "STORAGE_VOLUME_ROBUSTNESS_UNSPECIFIED" + storage_volume_robustness_healthy = "STORAGE_VOLUME_ROBUSTNESS_HEALTHY" + storage_volume_robustness_degraded = "STORAGE_VOLUME_ROBUSTNESS_DEGRADED" + storage_volume_robustness_faulted = "STORAGE_VOLUME_ROBUSTNESS_FAULTED" + + +class InfoStorageVolumeState(Enum): + storage_volume_state_unspecified = "STORAGE_VOLUME_STATE_UNSPECIFIED" + storage_volume_state_creating = "STORAGE_VOLUME_STATE_CREATING" + storage_volume_state_attached = "STORAGE_VOLUME_STATE_ATTACHED" + storage_volume_state_detached = "STORAGE_VOLUME_STATE_DETACHED" + storage_volume_state_attaching = "STORAGE_VOLUME_STATE_ATTACHING" + storage_volume_state_detaching = "STORAGE_VOLUME_STATE_DETACHING" + storage_volume_state_deleting = "STORAGE_VOLUME_STATE_DELETING" + + +class ProtobufAny(BaseModel): + type_url: str | None = Field(default=None, alias="typeUrl") + value: Base64Str | None = None + + +class EdgeNodeClusterNode(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") = Field( + ..., description="System defined universally unique Id of the node" + ) + cluster_interface: str = Field( + ..., + alias="clusterInterface", + description="User defined name of the cluster interface, unique across the enterprise. Once cluster interface is created, name can’t be changed", + ) + node_type: EdgeNodeClusterNodeType | None = Field( + default="EDGE_NODE_CLUSTER_NODE_TYPE_UNSPECIFIED", alias="nodeType" + ) + cluster_prefix: str | None = Field( + default=None, alias="clusterPrefix", description="A cluster prefix" + ) + resource_labels: dict[str, str] | None = Field( + default=None, + alias="resourceLabels", + description="Resource labels are name/value pairs that enable you to categorize resources. Label names are case insensitive with max_length 512 and min_length 3. Label values are case sensitive with max_length 256 and min_length 3.", + ) + + +class EdgeNodeClusterStatus(BaseModel): + id: str | None = None + run_state: RunState | None = Field( + default="RUN_STATE_UNSPECIFIED", alias="runState" + ) + nodes: list[EdgeNodeClusterNodeStatus] | None = None + + +class EdgeNodeClusterUpgradeStatusResp(BaseModel): + nodes: list[EdgeNodeClusterUpgradeStatusRespNode] | None = None + + +class ZsrvError(BaseModel): + ec: ZsrvErrorCode | None = "zMsgErrorNone" + location: str | None = Field(default=None, title="Ignore: Internal field only") + details: str | None = Field( + default=None, title="Field captures string description of details" + ) + + +class ZsrvResponse(BaseModel): + operation_type: ZcOpsType | None = Field( + default="OPS_TYPE_UNSPECIFIED", alias="operationType" + ) + operation_status: ZcOpsStatus | None = Field( + default="OPS_STATUS_UNSPECIFIED", alias="operationStatus" + ) + object_kind: str | None = Field( + default=None, + alias="objectKind", + title="zedcloud object kind on which the operation was performed", + ) + object_id: str | None = Field( + default=None, + alias="objectId", + title="Unique value identifies the object that was operated on", + ) + object_name: str | None = Field( + default=None, alias="objectName", title="name of the object" + ) + object_revision: str | None = Field( + default=None, + alias="objectRevision", + title="object revision post the operation, note Read operation\ndoesn't change the revision", + ) + object_type: ObjectType | None = Field( + default="OBJECT_TYPE_UNSPECIFIED", alias="objectType" + ) + operation_time: str | None = Field( + default=None, alias="operationTime", title="time of operation" + ) + start_time: str | None = Field( + default=None, alias="startTime", title="total time taken by operations" + ) + end_time: str | None = Field(default=None, alias="endTime") + user: str | None = Field( + default=None, title="the operation is performed on behalf of this user" + ) + http_status_code: int | None = Field( + default=None, alias="httpStatusCode", title="http response" + ) + http_status_msg: str | None = Field( + default=None, alias="httpStatusMsg", title="summary of the error in text format" + ) + job_id: str | None = Field( + default=None, alias="jobId", title="for tracking asynchronous tasks" + ) + error: list[ZsrvError] | None = Field( + default=None, + title="one or more errors will be set if the operation failed\ni.e. httpStatusCode != 2xx", + ) + + +class EveinfoDeviceEntity(BaseModel): + entity: EveinfoEntity | None = "ENTITY_UNSPECIFIED" + entity_id: str | None = Field(default=None, alias="entityId") + entity_name: str | None = Field(default=None, alias="entityName") + + +class GooglerpcStatus(BaseModel): + code: int | None = None + message: str | None = None + details: list[ProtobufAny] | None = None + + +class InfoErrorInfo(BaseModel): + description: str | None = None + timestamp: AwareDatetime | None = None + severity: EveinfoSeverity | None = "SEVERITY_UNSPECIFIED" + entities: list[EveinfoDeviceEntity] | None = None + retry_condition: str | None = Field(default=None, alias="retryCondition") + + +class InfoKubeEVEAppPodInfo(BaseModel): + name: str | None = Field(default=None, title="Name of the EVE application") + status: InfoKubePodStatus | None = "KUBE_POD_STATUS_UNSPECIFIED" + restart_count: int | None = Field( + default=None, alias="restartCount", title="Restart count of the application" + ) + restart_timestamp: AwareDatetime | None = Field( + default=None, alias="restartTimestamp", title="Restart time of the application" + ) + creation_timestamp: AwareDatetime | None = Field( + default=None, + alias="creationTimestamp", + title="Creation Time of the application", + ) + ip_address: str | None = Field( + default=None, + alias="ipAddress", + title="IP address of the application, on cni0 interface", + ) + node_name: str | None = Field( + default=None, + alias="nodeName", + title="Node name on which the application is running", + ) + + +class InfoKubeNodeCondition(BaseModel): + type: InfoKubeNodeConditionType | None = "KUBE_NODE_CONDITION_TYPE_UNSPECIFIED" + set: bool | None = Field(default=None, title="Condition state") + last_transition_time: AwareDatetime | None = Field( + default=None, + alias="lastTransitionTime", + title="last_transition_time is the last time the Condition changed", + ) + + +class InfoKubeNodeInfo(BaseModel): + name: str | None = Field( + default=None, title="Name of the node, will match device name" + ) + conditions: list[InfoKubeNodeCondition] | None = Field( + default=None, title="Status of the node" + ) + role_server: bool | None = Field( + default=None, alias="roleServer", title="Role of the node is server or not" + ) + creation_timestamp: AwareDatetime | None = Field( + default=None, + alias="creationTimestamp", + title="Creation Time of the node in the cluster", + ) + api_server_sersion: str | None = Field( + default=None, + alias="apiServerSersion", + title="Version of the API Server running on the node", + ) + internal_ip: str | None = Field( + default=None, alias="internalIp", title="Internal IP address of the node" + ) + schedulable: bool | None = None + admission_status: InfoNodeAdmission | None = Field( + default="NODE_ADMISSION_UNSPECIFIED", alias="admissionStatus" + ) + node_id: str | None = Field( + default=None, + alias="nodeId", + title="Id of the eve node matching config.EdgeDevConfig.id", + ) + + +class InfoKubeVMIInfo(BaseModel): + name: str | None = Field(default=None, title="Name of the VirtualMachineInstance") + status: InfoKubeVMIStatus | None = "KUBE_VMI_STATUS_UNSPECIFIED" + creation_time: AwareDatetime | None = Field( + default=None, + alias="creationTime", + title="Creation Time of the VirtualMachineInstance", + ) + last_transition_time: AwareDatetime | None = Field( + default=None, + alias="lastTransitionTime", + title="LastTransitionTime is the last time is_ready changed", + ) + is_ready: bool | None = Field( + default=None, + alias="isReady", + title="IsReady is true if the VMI has a Ready Condition which is true", + ) + node_name: str | None = Field( + default=None, + alias="nodeName", + title="NodeName is the current node (kubernetes.io/hostname) the VMI is running on", + ) + + +class InfoKubeVolumeReplicaInfo(BaseModel): + name: str | None = Field(default=None, title="Name of the volume replica") + owner_node: str | None = Field( + default=None, + alias="ownerNode", + title="Node replica resides on, will match node name", + ) + rebuild_progress_percentage: int | None = Field( + default=None, + alias="rebuildProgressPercentage", + title="Rebuild progress of the volume replica", + ) + status: InfoStorageVolumeReplicaStatus | None = ( + "STORAGE_VOLUME_REPLICA_STATUS_UNSPECIFIED" + ) + + +class InfoZInfoKubeClusterUpdateStatus(BaseModel): + current_node: str | None = Field( + default=None, + alias="currentNode", + title="current_node will have an empty value when no node is in an update", + ) + component: InfoKubeComp | None = "KUBE_COMP_UNSPECIFIED" + status: InfoKubeCompUpdateStatus | None = "KUBE_COMP_UPDATE_STATUS_UNSPECIFIED" + error: InfoErrorInfo | None = None + cluster_id: str | None = Field( + default=None, + alias="clusterId", + description="Cluster UUID which will match config.EdgeNodeCluster.cluster_id passed\n in to the node by the controller.", + ) + + +class EdgeNodeCluster(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, description="System defined universally unique Id of the cluster" + ) + name: str = Field( + ..., + description="User defined name of the cluster, unique across the enterprise. Once cluster is created, name can’t be changed", + ) + title: str | None = Field( + default=None, + description="User defined title of the cluster. Title can be changed at any time", + ) + description: str | None = Field( + default=None, description="Detailed description of the cluster" + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + project_id: constr(pattern=r"[0-9A-Za-z-]+") = Field( + ..., alias="projectId", description="Foreign key to the project" + ) + cluster_prefix: str | None = Field( + default=None, alias="clusterPrefix", description="A cluster prefix" + ) + nodes: list[EdgeNodeClusterNode] = Field( + ..., description="A list of nodes in the cluster" + ) + cluster_type: EdgeNodeClusterType | None = Field( + default="EDGE_NODE_CLUSTER_TYPE_STANDART", alias="clusterType" + ) + manifest_url: str | None = Field( + default=None, + alias="manifestUrl", + description="URL to the configuration manifest", + ) + manifest: Base64Str | None = Field( + default=None, description="Configuration manifest in bytes" + ) + + +class EdgeNodeClusterConfigSummary(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, description="System defined universally unique Id of the cluster" + ) + name: str | None = Field( + default=None, + description="User defined name of the cluster, unique across the enterprise. Once cluster is created, name can’t be changed", + ) + title: str | None = Field( + default=None, + description="User defined title of the cluster. Title can be changed at any time", + ) + description: str | None = Field( + default=None, description="Detailed description of the cluster" + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + project_id: str | None = Field( + default=None, alias="projectId", description="Foreign key to the project" + ) + cluster_prefix: str | None = Field( + default=None, alias="clusterPrefix", description="A cluster prefix" + ) + seed_node_id: str | None = Field( + default=None, alias="seedNodeId", description="Seed node id" + ) + seed_node_ip: str | None = Field( + default=None, alias="seedNodeIp", description="Seed node ip" + ) + admin_state: AdminState | None = Field( + default="ADMIN_STATE_UNSPECIFIED", alias="adminState" + ) + nodes: list[EdgeNodeClusterNode] | None = Field( + default=None, description="A list of nodes in the cluster" + ) + created_at: AwareDatetime | None = Field( + default=None, alias="createdAt", description="Creation time of the cluster" + ) + updated_at: AwareDatetime | None = Field( + default=None, alias="updatedAt", description="Last updated time of the cluster" + ) + project_name: str | None = Field( + default=None, alias="projectName", description="Project Name" + ) + + +class EdgeNodeClusters(BaseModel): + list_: list[EdgeNodeClusterConfigSummary] | None = Field( + default=None, alias="list", description="cluster config summary list response" + ) + next: Cursor | None = None + total_count: int | None = Field( + default=None, alias="totalCount", description="total count of clusters" + ) + + +class InfoKubeVolumeInfo(BaseModel): + name: str | None = Field(default=None, title="Name of the volume") + state: InfoStorageVolumeState | None = "STORAGE_VOLUME_STATE_UNSPECIFIED" + robustness: InfoStorageVolumeRobustness | None = ( + "STORAGE_VOLUME_ROBUSTNESS_UNSPECIFIED" + ) + creation_timestamp: AwareDatetime | None = Field( + default=None, + alias="creationTimestamp", + title="Creation Time of the volume in the cluster", + ) + provisioned_bytes: str | None = Field( + default=None, + alias="provisionedBytes", + title="Provisioned size of the volume in bytes", + ) + allocated_bytes: str | None = Field( + default=None, + alias="allocatedBytes", + title="Allocated size of the volume in bytes", + ) + pvc_status: InfoStorageVolumePVCStatus | None = Field( + default="STORAGE_VOLUME_PVC_STATUS_UNSPECIFIED", alias="pvcStatus" + ) + replica: list[InfoKubeVolumeReplicaInfo] | None = Field( + default=None, title="Replicas of the volume" + ) + robustness_substate: InfoStorageHealthStatus | None = Field( + default="STORAGE_HEALTH_STATUS_UNSPECIFIED", alias="robustnessSubstate" + ) + volume_id: str | None = Field( + default=None, + alias="volumeId", + title="Id of the eve volume info.ZInfoVolume.uuid", + ) + + +class InfoKubeStorageInfo(BaseModel): + health: InfoServiceStatus | None = "SERVICE_STATUS_UNSPECIFIED" + transition_time: AwareDatetime | None = Field( + default=None, + alias="transitionTime", + title="Time of the most recent health status transition", + ) + volumes: list[InfoKubeVolumeInfo] | None = Field( + default=None, title="Status of all the volumes in Longhorn" + ) + + +class InfoZInfoKubeCluster(BaseModel): + nodes: list[InfoKubeNodeInfo] | None = Field( + default=None, title="Info message on a list of cluster nodes" + ) + pod_name_spaces: list[InfoKubePodNameSpaceInfo] | None = Field( + default=None, + alias="podNameSpaces", + title="Info message on a list of namespaces's pods summary", + ) + eve_apps: list[InfoKubeEVEAppPodInfo] | None = Field( + default=None, + alias="eveApps", + title="Info message on a list of EVE applications", + ) + storage: InfoKubeStorageInfo | None = None + cluster_id: str | None = Field( + default=None, + alias="clusterId", + description="Cluster UUID which will match config.EdgeNodeCluster.cluster_id passed\n in to the node by the controller.", + ) + eve_vm_apps: list[InfoKubeVMIInfo] | None = Field( + default=None, alias="eveVmApps", title="Virtual Machines running on the cluster" + ) + + +class EdgeNodeClusterRawInfo(BaseModel): + cluster: InfoZInfoKubeCluster | None = None + upgrade_status: InfoZInfoKubeClusterUpdateStatus | None = Field( + default=None, alias="upgradeStatus" + ) diff --git a/packages/zedcloud/src/zedcloud/_generated/models/nodes.py b/packages/zedcloud/src/zedcloud/_generated/models/nodes.py new file mode 100644 index 0000000..24282da --- /dev/null +++ b/packages/zedcloud/src/zedcloud/_generated/models/nodes.py @@ -0,0 +1,5667 @@ +# Generated by scripts/generate_from_openapi.py from zedge_node_service.swagger.json +# Do not edit by hand — re-run: uv run python scripts/generate_from_openapi.py + +from __future__ import annotations +from enum import Enum +from pydantic import ( + AwareDatetime, + Base64Str, + BaseModel, + Field, + confloat, + conint, + constr, +) +from typing import Any + + +class AdapterUsage(Enum): + adapter_usage_unspecified = "ADAPTER_USAGE_UNSPECIFIED" + adapter_usage_management = "ADAPTER_USAGE_MANAGEMENT" + adapter_usage_app_direct = "ADAPTER_USAGE_APP_DIRECT" + adapter_usage_app_shared = "ADAPTER_USAGE_APP_SHARED" + adapter_usage_disabled = "ADAPTER_USAGE_DISABLED" + adapter_usage_vlans_only = "ADAPTER_USAGE_VLANS_ONLY" + adapter_usage_bond_member = "ADAPTER_USAGE_BOND_MEMBER" + + +class AdminState(Enum): + admin_state_unspecified = "ADMIN_STATE_UNSPECIFIED" + admin_state_created = "ADMIN_STATE_CREATED" + admin_state_deleted = "ADMIN_STATE_DELETED" + admin_state_active = "ADMIN_STATE_ACTIVE" + admin_state_inactive = "ADMIN_STATE_INACTIVE" + admin_state_registered = "ADMIN_STATE_REGISTERED" + admin_state_archived = "ADMIN_STATE_ARCHIVED" + admin_state_deletion_pending = "ADMIN_STATE_DELETION_PENDING" + + +class AdminStateConfigHttpRequestAdminStateHttpRequest(Enum): + unspecified = "UNSPECIFIED" + created = "CREATED" + deleted = "DELETED" + active = "ACTIVE" + inactive = "INACTIVE" + registered = "REGISTERED" + archived = "ARCHIVED" + + +class AllocationPolicy(Enum): + allocation_policy_unspecified = "ALLOCATION_POLICY_UNSPECIFIED" + allocation_policy_hashed = "ALLOCATION_POLICY_HASHED" + allocation_policy_geolatency = "ALLOCATION_POLICY_GEOLATENCY" + allocation_policy_static = "ALLOCATION_POLICY_STATIC" + allocation_policy_custom = "ALLOCATION_POLICY_CUSTOM" + + +class AppAccessPolicy(BaseModel): + allow_app: bool | None = Field( + default=None, + alias="allowApp", + title="app side of edge-view access is allowed or not", + ) + + +class AppCategory(Enum): + app_category_unspecified = "APP_CATEGORY_UNSPECIFIED" + app_category_operating_system = "APP_CATEGORY_OPERATING_SYSTEM" + app_category_industrial = "APP_CATEGORY_INDUSTRIAL" + app_category_edge_application = "APP_CATEGORY_EDGE_APPLICATION" + app_category_networking = "APP_CATEGORY_NETWORKING" + app_category_security = "APP_CATEGORY_SECURITY" + app_category_data_analytics = "APP_CATEGORY_DATA_ANALYTICS" + app_category_cloud_application = "APP_CATEGORY_CLOUD_APPLICATION" + app_category_devops = "APP_CATEGORY_DEVOPS" + app_category_others = "APP_CATEGORY_OTHERS" + + +class AppInstanceLogs(BaseModel): + access: bool = Field( + ..., + description="Flags to enable / disable sending of logs generated by app instance to zedcloud", + ) + + +class AppNamingScheme(Enum): + app_naming_scheme_unspecified = "APP_NAMING_SCHEME_UNSPECIFIED" + app_naming_scheme_device = "APP_NAMING_SCHEME_DEVICE" + app_naming_scheme_app_device = "APP_NAMING_SCHEME_APP_DEVICE" + app_naming_scheme_project_device = "APP_NAMING_SCHEME_PROJECT_DEVICE" + app_naming_scheme_project_app_device = "APP_NAMING_SCHEME_PROJECT_APP_DEVICE" + + +class AppNamingSchemeV2(Enum): + app_naming_schemev2_unspecified = "APP_NAMING_SCHEMEV2_UNSPECIFIED" + app_naming_schemev2_device = "APP_NAMING_SCHEMEV2_DEVICE" + app_naming_schemev2_app_device = "APP_NAMING_SCHEMEV2_APP_DEVICE" + app_naming_schemev2_project_device = "APP_NAMING_SCHEMEV2_PROJECT_DEVICE" + app_naming_schemev2_project_app_device = "APP_NAMING_SCHEMEV2_PROJECT_APP_DEVICE" + + +class AppType(Enum): + app_type_unspecified = "APP_TYPE_UNSPECIFIED" + app_type_vm = "APP_TYPE_VM" + app_type_vm_runtime = "APP_TYPE_VM_RUNTIME" + app_type_container = "APP_TYPE_CONTAINER" + app_type_module = "APP_TYPE_MODULE" + app_type_docker_compose = "APP_TYPE_DOCKER_COMPOSE" + + +class ArpMonitor(BaseModel): + interval: int | None = Field( + default=None, + description="Interval specifies the ARP link monitoring frequency in milliseconds.", + ) + ip_targets: list[str] | None = Field( + default=None, + alias="ipTargets", + description="IpTargets specifies the IPv4 addresses to use as ARP monitoring peers.\nThese are the targets of ARP requests sent to determine the health of links.", + ) + + +class AttestPolicyType(Enum): + attest_policy_type_unspecified = "ATTEST_POLICY_TYPE_UNSPECIFIED" + attest_policy_type_accept = "ATTEST_POLICY_TYPE_ACCEPT" + attest_policy_type_enforce = "ATTEST_POLICY_TYPE_ENFORCE" + + +class AttestState(Enum): + attest_state_unspecified = "ATTEST_STATE_UNSPECIFIED" + attest_state_none = "ATTEST_STATE_NONE" + attest_state_fail = "ATTEST_STATE_FAIL" + attest_state_pass = "ATTEST_STATE_PASS" + attest_state_pass_no_pcr = "ATTEST_STATE_PASS_NO_PCR" + attest_state_fail_no_pcr = "ATTEST_STATE_FAIL_NO_PCR" + + +class AttestationPolicy(BaseModel): + id: constr(pattern=r"[0-9-a-z-]+") | None = Field( + default=None, description="unique policy id" + ) + type: AttestPolicyType + + +class Author(BaseModel): + user: str | None = Field( + default=None, + description="UI map: AppEditPage:DeveloperPane:Name_Field, AppDetailsPage:DeveloperPane:Name_Field", + title="Name of the developer", + ) + group: str | None = Field(default=None, title="Not used by ZedUI") + company: str | None = Field( + default=None, + description="UI map: AppEditPage:IdentityPane:Category_Field, AppDetailsPage:IdentityPane:Category_Field", + title="Company of the developer", + ) + website: str | None = Field( + default=None, + description="UI map: AppEditPage:DeveloperPane:Website_Field, AppDetailsPage:DeveloperPane:Website_Field", + title="Website of the developer company", + ) + email: str | None = Field( + default=None, + description="UI map: AppEditPage:DeveloperPane:Email_Field, AppDetailsPage:DeveloperPane:Email_Field", + title="Contact email of the developer company", + ) + + +class BaseOSImage(BaseModel): + uuid: str = Field(..., description="system generated unique id for an image") + version: str = Field(..., description="image version") + image_name: str = Field(..., alias="imageName", description="image name") + activate: bool = Field(..., description="activation flag") + imvol_id: str | None = Field( + default=None, + alias="imvolId", + description="immutable Volume for this base image", + ) + + +class BondMode(Enum): + bond_mode_unspecified = "BOND_MODE_UNSPECIFIED" + bond_mode_balance_rr = "BOND_MODE_BALANCE_RR" + bond_mode_active_backup = "BOND_MODE_ACTIVE_BACKUP" + bond_mode_balance_xor = "BOND_MODE_BALANCE_XOR" + bond_mode_broadcast = "BOND_MODE_BROADCAST" + bond_mode_802_3_ad = "BOND_MODE_802_3AD" + bond_mode_balance_tlb = "BOND_MODE_BALANCE_TLB" + bond_mode_balance_alb = "BOND_MODE_BALANCE_ALB" + + +class CEPCommonHashAlgorithm(Enum): + hash_algorithm_unspecified = "HASH_ALGORITHM_UNSPECIFIED" + hash_algorithm_sha256 = "HASH_ALGORITHM_SHA256" + hash_algorithm_sha384 = "HASH_ALGORITHM_SHA384" + hash_algorithm_sha512 = "HASH_ALGORITHM_SHA512" + + +class CEPCommonKeyType(Enum): + key_type_unspecified = "KEY_TYPE_UNSPECIFIED" + key_type_rsa_2048 = "KEY_TYPE_RSA_2048" + key_type_rsa_3072 = "KEY_TYPE_RSA_3072" + key_type_rsa_4096 = "KEY_TYPE_RSA_4096" + + +class CEPCommonProjectReference(BaseModel): + project_id: str | None = Field( + default=None, alias="projectId", description="Project unique identifier" + ) + project_name: str | None = Field( + default=None, alias="projectName", description="Project name" + ) + + +class CEPCommonSCEPProfileSecrets(BaseModel): + challenge_password: str | None = Field( + default=None, + alias="challengePassword", + description="SCEP challenge password for certificate enrollment authentication", + ) + + +class Capabilities(BaseModel): + hw_assisted_virtualization: bool | None = Field( + default=None, + alias="HWAssistedVirtualization", + title="VMX/SVM for amd64 or Arm virtualization extensions for arm64", + ) + io_virtualization: bool | None = Field( + default=None, alias="IOVirtualization", title="I/O Virtualization support" + ) + + +class CellularAuthProtocol(Enum): + cellular_auth_protocol_none = "CELLULAR_AUTH_PROTOCOL_NONE" + cellular_auth_protocol_pap = "CELLULAR_AUTH_PROTOCOL_PAP" + cellular_auth_protocol_chap = "CELLULAR_AUTH_PROTOCOL_CHAP" + cellular_auth_protocol_pap_and_chap = "CELLULAR_AUTH_PROTOCOL_PAP_AND_CHAP" + + +class CellularMetrics(BaseModel): + if_name: str | None = Field( + default=None, alias="ifName", description="Network Interface name" + ) + signal_rssi: float | None = Field( + default=None, alias="signalRSSI", description="Signal RSSI" + ) + signal_rsrq: float | None = Field( + default=None, alias="signalRSRQ", description="Signal RSRQ" + ) + signal_rsrp: float | None = Field( + default=None, alias="signalRSRP", description="Signal RSRP" + ) + signal_snr: float | None = Field( + default=None, alias="signalSNR", description="Signal SNR" + ) + rx_total_packets: float | None = Field( + default=None, alias="rxTotalPackets", description="Rx Total Packets" + ) + rx_drops: float | None = Field( + default=None, alias="rxDrops", description="Rx Drops" + ) + rx_total_bytes: float | None = Field( + default=None, alias="rxTotalBytes", description="Rx Total Bytes" + ) + tx_total_packets: float | None = Field( + default=None, alias="txTotalPackets", description="Tx Total Packets" + ) + tx_drops: float | None = Field( + default=None, alias="txDrops", description="Tx Drops" + ) + tx_total_bytes: float | None = Field( + default=None, alias="txTotalBytes", description="Tx Total Bytes" + ) + + +class CertDistinguishedName(BaseModel): + common_name: str | None = Field( + default=None, alias="commonName", description="Common Name (CN)" + ) + serial_number: str | None = Field( + default=None, alias="serialNumber", description="Serial Number (SERIALNUMBER)" + ) + organization: list[str] | None = Field(default=None, description="Organization (O)") + organizational_unit: list[str] | None = Field( + default=None, alias="organizationalUnit", description="Organizational Unit (OU)" + ) + country: list[str] | None = Field(default=None, description="Country (C)") + state_or_province: list[str] | None = Field( + default=None, alias="stateOrProvince", description="State or Province (ST)" + ) + locality: list[str] | None = Field(default=None, description="Locality (L)") + + +class ClusterConfig(BaseModel): + min_nodes_required: int | None = Field(default=None, alias="minNodesRequired") + + +class ClusterNodeType(Enum): + cluster_node_type_unspecified = "CLUSTER_NODE_TYPE_UNSPECIFIED" + cluster_node_type_master = "CLUSTER_NODE_TYPE_MASTER" + cluster_node_type_worker = "CLUSTER_NODE_TYPE_WORKER" + cluster_node_type_tie_breaker = "CLUSTER_NODE_TYPE_TIE_BREAKER" + + +class ClusterType(Enum): + cluster_type_unspecified = "CLUSTER_TYPE_UNSPECIFIED" + cluster_type_k3_s = "CLUSTER_TYPE_K3S" + cluster_type_tkg_attach = "CLUSTER_TYPE_TKG_ATTACH" + + +class CmdArg(BaseModel): + key: str | None = Field(default=None, description="Command line argument: key") + value: str | None = Field(default=None, description="Command line argument: value") + + +class ConfigurationLock(Enum): + configuration_lock_unspecified = "CONFIGURATION_LOCK_UNSPECIFIED" + configuration_lock_enabled = "CONFIGURATION_LOCK_ENABLED" + configuration_lock_disabled = "CONFIGURATION_LOCK_DISABLED" + + +class ConfigurationLockPolicy(BaseModel): + id: constr(pattern=r"[0-9-a-z-]+") | None = Field( + default=None, description="unique policy id" + ) + config_lock: ConfigurationLock = Field(..., alias="configLock") + + +class ContainerDetail(BaseModel): + container_create_option: str | None = Field( + default=None, + alias="containerCreateOption", + description="Create options direct the creation of the Docker container", + title="Base64 encoded container specific details", + ) + + +class CpuSummary(BaseModel): + utilization: float | None = Field( + default=None, alias="Utilization", description="CPU Utilization" + ) + + +class Cursor(BaseModel): + page_token: str | None = Field( + default=None, alias="pageToken", description="Page Token" + ) + order_by: list[str] | None = Field( + default=None, + alias="orderBy", + description="OrderBy helps in sorting the list response", + ) + page_num: float | None = Field( + default=None, alias="pageNum", description="Page Number" + ) + page_size: float | None = Field( + default=None, alias="pageSize", description="Defines the page size" + ) + total_pages: float | None = Field( + default=None, + alias="totalPages", + description="Total number of pages to be fetched.", + ) + + +class DNSInfo(BaseModel): + servers: list[str] = Field(..., description="Array of dns server") + domain: str = Field(..., description="domain name") + search: list[str] = Field(..., description="Array of search strings") + + +class DebugKnobDetail(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, description="system generated unique id for a device" + ) + debug_knob: bool | None = Field( + default=None, alias="debugKnob", description="debug knob flag" + ) + expiry: str | None = Field(default=None, description="debug expiry time in minutes") + expired: bool | None = Field( + default=None, description="debug knob expiry status flag" + ) + + +class DeploymentType(Enum): + deployment_type_unspecified = "DEPLOYMENT_TYPE_UNSPECIFIED" + deployment_type_stand_alone = "DEPLOYMENT_TYPE_STAND_ALONE" + deployment_type_azure = "DEPLOYMENT_TYPE_AZURE" + deployment_type_k3_s = "DEPLOYMENT_TYPE_K3S" + deployment_type_aws = "DEPLOYMENT_TYPE_AWS" + deployment_type_k3_s_azure = "DEPLOYMENT_TYPE_K3S_AZURE" + deployment_type_k3_s_aws = "DEPLOYMENT_TYPE_K3S_AWS" + deployment_type_vmware_vce = "DEPLOYMENT_TYPE_VMWARE_VCE" + deployment_type_vmware_tkg_attach = "DEPLOYMENT_TYPE_VMWARE_TKG_ATTACH" + deployment_type_docker_runtime = "DEPLOYMENT_TYPE_DOCKER_RUNTIME" + + +class Details(BaseModel): + category: str | None = Field( + default="All", + description="UI map: AppMarketplacePage:AppCard:DescriptionField, AppEditPage:IdentityPane:CategoryField, AppDetailsPage:IdentityPane:CategoryField", + title="Type of the Edge application", + ) + os: str | None = Field(default=None, title="Edge application's Operating System") + app_category: AppCategory = Field(..., alias="appCategory") + logo: dict[str, str] | None = Field( + default=None, + description="UI map: AppEditPage:IdentityPane:Logo, AppDetailsPage:IdentityPane:Logo", + title="App Logo", + ) + screenshot_list: dict[str, str] | None = Field( + default=None, + alias="screenshotList", + description="UI map: AppEditPage:IdentityPane:Screenshot_Fields, AppDetailsPage:IdentityPane:Screenshot_Fields", + title="App Screenshots", + ) + license_list: dict[str, str] | None = Field( + default=None, + alias="licenseList", + description="UI map: AppMarketplacePage:AppCard:License, AppEditPage:IdentityPane:License, AppDetailsPage:IdentityPane:License", + title="App Licenses", + ) + support: str | None = Field( + default=None, + description="UI map: AppEditPage:DeveloperPane:Support_Description_Field, AppDetailsPage:DeveloperPane:Support_Description_Field", + title="Support Description", + ) + agreement_list: dict[str, str] | None = Field( + default=None, + alias="agreementList", + description="UI map: AppEditPage:DeveloperPane:Developer_Agreement_Field, AppDetailsPage:DeveloperPane:Developer_Agreement_Field", + title="Developer Agreements", + ) + + +class DevAccessPolicy(BaseModel): + allow_dev: bool | None = Field( + default=None, + alias="allowDev", + title="device side of edge-view access is allowed or not", + ) + + +class DevZedServer(BaseModel): + host_name: str = Field( + ..., alias="hostName", description="Hostname for dev zed server" + ) + eid: list[str] = Field(..., alias="EID", description="EID") + + +class DeviceAttestPolicyType(Enum): + device_attest_policy_type_unspecified = "DEVICE_ATTEST_POLICY_TYPE_UNSPECIFIED" + device_attest_policy_type_accept = "DEVICE_ATTEST_POLICY_TYPE_ACCEPT" + device_attest_policy_type_enforce = "DEVICE_ATTEST_POLICY_TYPE_ENFORCE" + + +class DeviceAttestationPolicy(BaseModel): + type: DeviceAttestPolicyType + + +class DeviceBootReason(Enum): + device_boot_reason_unspecified = "DEVICE_BOOT_REASON_UNSPECIFIED" + device_boot_reason_first = "DEVICE_BOOT_REASON_FIRST" + device_boot_reason_reboot_cmd = "DEVICE_BOOT_REASON_REBOOT_CMD" + device_boot_reason_update = "DEVICE_BOOT_REASON_UPDATE" + device_boot_reason_fallback = "DEVICE_BOOT_REASON_FALLBACK" + device_boot_reason_disconnect = "DEVICE_BOOT_REASON_DISCONNECT" + device_boot_reason_fatal = "DEVICE_BOOT_REASON_FATAL" + device_boot_reason_oom = "DEVICE_BOOT_REASON_OOM" + device_boot_reason_watchdog_hung = "DEVICE_BOOT_REASON_WATCHDOG_HUNG" + device_boot_reason_watchdog_pid = "DEVICE_BOOT_REASON_WATCHDOG_PID" + device_boot_reason_kernel = "DEVICE_BOOT_REASON_KERNEL" + device_boot_reason_power_fail = "DEVICE_BOOT_REASON_POWER_FAIL" + device_boot_reason_unknown = "DEVICE_BOOT_REASON_UNKNOWN" + device_boot_reason_vault_failed = "DEVICE_BOOT_REASON_VAULT_FAILED" + device_boot_reason_poweroff_cmd = "DEVICE_BOOT_REASON_POWEROFF_CMD" + device_boot_reason_parse_fail = "DEVICE_BOOT_REASON_PARSE_FAIL" + + +class DeviceCerts(BaseModel): + pem_cert: Base64Str | None = Field( + default=None, alias="pemCert", description="pem certificate" + ) + pem_key: Base64Str | None = Field( + default=None, alias="pemKey", description="pem key" + ) + + +class DeviceCmdsSubType(Enum): + device_no_op = "DeviceNoOp" + device_start = "DeviceStart" + device_stop = "DeviceStop" + device_reboot = "DeviceReboot" + device_shutdown = "DeviceShutdown" + device_update_os = "DeviceUpdateOS" + device_apply_os = "DeviceApplyOS" + device_reset = "DeviceReset" + device_add_os = "DeviceAddOS" + device_drop_os = "DeviceDropOS" + device_offboard = "DeviceOffboard" + device_activate = "DeviceActivate" + device_de_activate = "DeviceDeActivate" + device_baseos_retry = "DeviceBaseosRetry" + device_start_debug_mode = "DeviceStartDebugMode" + device_stop_debug_mode = "DeviceStopDebugMode" + prepare_power_off = "PreparePowerOff" + device_start_edgeview_mode = "DeviceStartEdgeviewMode" + device_stop_edgeview_mode = "DeviceStopEdgeviewMode" + device_edgeview_client_script = "DeviceEdgeviewClientScript" + + +class DeviceConfigLock(Enum): + device_config_lock_unspecified = "DEVICE_CONFIG_LOCK_UNSPECIFIED" + device_config_lock_enabled = "DEVICE_CONFIG_LOCK_ENABLED" + device_config_lock_disabled = "DEVICE_CONFIG_LOCK_DISABLED" + + +class DeviceDataSecurityAtRestStatus(Enum): + device_data_security_at_rest_unknown = "DEVICE_DATA_SECURITY_AT_REST_UNKNOWN" + device_data_security_at_rest_disabled = "DEVICE_DATA_SECURITY_AT_REST_DISABLED" + device_data_security_at_rest_enabled = "DEVICE_DATA_SECURITY_AT_REST_ENABLED" + device_data_security_at_rest_error = "DEVICE_DATA_SECURITY_AT_REST_ERROR" + + +class DeviceGenerateImageArchVariant(Enum): + generic = "Generic" + fr201 = "Fr201" + jetson = "Jetson" + + +class DeviceGenerateImageType(Enum): + installer = "Installer" + live = "Live" + + +class DeviceHWSecurityModuleStatus(Enum): + device_hw_security_module_status_unspecified = ( + "DEVICE_HW_SECURITY_MODULE_STATUS_UNSPECIFIED" + ) + device_hw_security_module_status_not_found = ( + "DEVICE_HW_SECURITY_MODULE_STATUS_NOT_FOUND" + ) + device_hw_security_module_status_disabled = ( + "DEVICE_HW_SECURITY_MODULE_STATUS_DISABLED" + ) + device_hw_security_module_status_enabled = ( + "DEVICE_HW_SECURITY_MODULE_STATUS_ENABLED" + ) + + +class DeviceImageGenerateStatus(Enum): + unavailable = "Unavailable" + starting = "Starting" + in_progress = "InProgress" + downloading_container_image = "DownloadingContainerImage" + running_container = "RunningContainer" + uploading_image = "UploadingImage" + successful = "Successful" + failed = "Failed" + + +class DeviceInfo(BaseModel): + machine_arch: str | None = Field(default=None, alias="machineArch") + cpu_arch: str | None = Field(default=None, alias="cpuArch") + platform: str | None = None + n_cpu: int | None = Field(default=None, alias="nCpu") + mem_mb: str | None = Field(default=None, alias="memMB") + storage_mb: str | None = Field(default=None, alias="storageMB") + + +class DeviceLBConfig(BaseModel): + interface: str | None = None + start_ip: str | None = Field(default=None, alias="startIP") + + +class DeviceLBConfigList(BaseModel): + list_: list[DeviceLBConfig] | None = Field(default=None, alias="list") + + +class DeviceLoadConfigHttpRequestDeviceLoadHttpRequest(Enum): + unspecified = "UNSPECIFIED" + free = "FREE" + moderate = "MODERATE" + heavy = "HEAVY" + + +class DeviceLocation(BaseModel): + location: str | None = None + count: int | None = None + + +class DeviceLocations(BaseModel): + device_locations: list[DeviceLocation] | None = Field( + default=None, alias="deviceLocations" + ) + next: Cursor | None = None + + +class DeviceMemorySummary(BaseModel): + device_memory_mb: float | None = Field( + default=None, + alias="deviceMemoryMB", + description="Total memory on the device.", + title="deviceMemoryMB >= allocatedForAppsMB + allocatedForEveMB", + ) + allocated_apps_mb: float | None = Field( + default=None, + alias="allocatedAppsMB", + description="Total memory allocated to app instances.", + ) + allocated_eve_mb: float | None = Field( + default=None, + alias="allocatedEveMB", + description="Total memory allocated to EVE on the device.", + ) + used_eve_mb: float | None = Field( + default=None, + alias="usedEveMB", + description="Memory currently used by EVE on the device.", + title="usedByEveMB <= allocatedForEveMB", + ) + available_for_new_apps: float | None = Field( + default=None, + alias="availableForNewApps", + description="Memory Available for new app-instances on the device.", + title="availableForNewApps = deviceMemoryMB - ( allocatedForAppsMB + allocatedForEveMB )", + ) + + +class DevicePCRPolicy(BaseModel): + pcr_indices: list[int] = Field( + ..., + alias="pcrIndices", + description="list of PCR indices to include in the policy", + ) + policy_version: int | None = Field( + default=None, + alias="policyVersion", + description="policy version for audit purposes", + ) + + +class DevicePolicyType(Enum): + device_policy_type_unspecified = "DEVICE_POLICY_TYPE_UNSPECIFIED" + device_policy_type_attestation = "DEVICE_POLICY_TYPE_ATTESTATION" + device_policy_type_pcr = "DEVICE_POLICY_TYPE_PCR" + device_policy_type_port_based_network_access_control = ( + "DEVICE_POLICY_TYPE_PORT_BASED_NETWORK_ACCESS_CONTROL" + ) + + +class DeviceRawMetrics(BaseModel): + name: str | None = None + id: str | None = None + raw_metrics: str | None = Field(default=None, alias="rawMetrics") + + +class DeviceSWStatus(Enum): + device_sw_status_unspecified = "DEVICE_SW_STATUS_UNSPECIFIED" + device_sw_status_downloading = "DEVICE_SW_STATUS_DOWNLOADING" + device_sw_status_downloaddone = "DEVICE_SW_STATUS_DOWNLOADDONE" + device_sw_status_updating = "DEVICE_SW_STATUS_UPDATING" + device_sw_status_updated = "DEVICE_SW_STATUS_UPDATED" + device_sw_status_fallback = "DEVICE_SW_STATUS_FALLBACK" + device_sw_status_failed = "DEVICE_SW_STATUS_FAILED" + + +class DeviceSWSubStatus(Enum): + device_sw_sub_status_unspecified = "DEVICE_SW_SUB_STATUS_UNSPECIFIED" + device_sw_sub_status_download_in_progress = ( + "DEVICE_SW_SUB_STATUS_DOWNLOAD_IN_PROGRESS" + ) + device_sw_sub_status_verify_in_progress = "DEVICE_SW_SUB_STATUS_VERIFY_IN_PROGRESS" + device_sw_sub_status_update_initializing = ( + "DEVICE_SW_SUB_STATUS_UPDATE_INITIALIZING" + ) + device_sw_sub_status_update_rebooting = "DEVICE_SW_SUB_STATUS_UPDATE_REBOOTING" + device_sw_sub_status_update_testing = "DEVICE_SW_SUB_STATUS_UPDATE_TESTING" + device_sw_sub_status_update_need_test_confirm = ( + "DEVICE_SW_SUB_STATUS_UPDATE_NEED_TEST_CONFIRM" + ) + device_sw_sub_status_update_deferred = "DEVICE_SW_SUB_STATUS_UPDATE_DEFERRED" + + +class DeviceSingleUseImageDownloadLinkResp(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, description="system generated unique id for a device" + ) + link: str | None = Field(default=None, description="link to download the image") + + +class DeviceSingleUseImageResp(BaseModel): + device_id: str | None = Field( + default=None, alias="deviceId", description="Device ID" + ) + enterprise_id: str | None = Field( + default=None, alias="enterpriseId", description="Enterprise ID" + ) + generationstatus: DeviceImageGenerateStatus | None = "Unavailable" + + +class DimmRankInfo(BaseModel): + rank_name: str | None = Field(default=None, alias="rankName") + ce_count: str | None = Field(default=None, alias="ceCount") + ue_count: str | None = Field(default=None, alias="ueCount") + + +class DiskDescription(BaseModel): + name: str | None = None + logical_name: str | None = Field(default=None, alias="logicalName") + serial: str | None = None + + +class DockerRuntimeProtocolVersion(Enum): + runtime_protocol_version_unknown = "RuntimeProtocolVersion_Unknown" + runtime_protocol_version_v1 = "RuntimeProtocolVersion_V1" + + +class DockerRuntimeVersion(Enum): + runtime_version_unknown = "RuntimeVersion_Unknown" + runtime_version_v1 = "RuntimeVersion_V1" + + +class EAPMethod(Enum): + eap_method_unspecified = "EAP_METHOD_UNSPECIFIED" + eap_method_tls = "EAP_METHOD_TLS" + + +class ECCMemoryControllerInfo(BaseModel): + controller_name: str | None = Field(default=None, alias="controllerName") + ce_count: str | None = Field(default=None, alias="ceCount") + ue_count: str | None = Field(default=None, alias="ueCount") + ranks: list[DimmRankInfo] | None = None + + +class ECCMemoryReport(BaseModel): + memory_controllers: list[ECCMemoryControllerInfo] | None = Field( + default=None, alias="memoryControllers" + ) + + +class ECCMemoryReportStatus(Enum): + ecc_memory_report_status_not_applicable = "ECC_MEMORY_REPORT_STATUS_NOT_APPLICABLE" + ecc_memory_report_status_pass = "ECC_MEMORY_REPORT_STATUS_PASS" + ecc_memory_report_status_degraded = "ECC_MEMORY_REPORT_STATUS_DEGRADED" + ecc_memory_report_status_failed = "ECC_MEMORY_REPORT_STATUS_FAILED" + + +class ECDSA(BaseModel): + curve: str | None = Field( + default=None, + description="ECDSA curve to be used while signing the certificate.", + ) + + +class EDConfigItem(BaseModel): + key: str | None = Field(default=None, description="key") + value_type: str | None = Field( + default=None, alias="valueType", description="value type" + ) + bool_value: bool | None = Field( + default=None, alias="boolValue", description="boolean value" + ) + uint32_value: float | None = Field( + default=None, alias="uint32Value", description="uint32 value" + ) + uint64_value: str | None = Field( + default=None, alias="uint64Value", description="uint64 value in string format" + ) + float_value: float | None = Field( + default=None, alias="floatValue", description="float value" + ) + string_value: str | None = Field( + default=None, alias="stringValue", description="string value" + ) + + +class EdgeNodeClusterConfig(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, description="System defined universally unique Id of the cluster" + ) + name: str | None = Field( + default=None, + description="User defined name of the cluster, unique across the enterprise. Once cluster is created, name can’t be changed", + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + project_id: str | None = Field( + default=None, alias="projectId", description="Foreign key to the project" + ) + cluster_prefix: str | None = Field( + default=None, alias="clusterPrefix", description="A cluster prefix" + ) + seed_node_id: str | None = Field( + default=None, alias="seedNodeId", description="Seed node id" + ) + seed_node_ip: str | None = Field( + default=None, alias="seedNodeIp", description="Seed node ip" + ) + token: str | None = Field(default=None, description="Cluster token") + is_master: bool | None = Field( + default=None, alias="isMaster", description="Is it a master node?" + ) + manifest: Base64Str | None = Field( + default=None, description="ZKS instance manifest" + ) + tie_breaker_node_id: str | None = Field( + default=None, alias="tieBreakerNodeId", description="Tiebreaker node id" + ) + cluster_type: float | None = Field( + default=None, alias="clusterType", description="Cluster type" + ) + lb_config_list: DeviceLBConfigList | None = Field( + default=None, alias="lbConfigList" + ) + master_node_uuids: list[str] | None = Field( + default=None, + alias="masterNodeUuids", + description="UUIDs of all designated master/control-plane nodes in the cluster. Surviving EVE nodes use this list to prune k8s Node objects (and thereby k3s embedded etcd members) for masters the controller has removed.", + ) + + +class EdgeSyncConfig(BaseModel): + edge_sync_url: str | None = Field( + default=None, alias="edgeSyncUrl", description="edge sync url" + ) + datastore_id: list[str] | None = Field( + default=None, alias="datastoreId", description="upload datastore list" + ) + + +class EnrolledCertStatus(Enum): + enrolled_cert_status_unspecified = "ENROLLED_CERT_STATUS_UNSPECIFIED" + enrolled_cert_status_available = "ENROLLED_CERT_STATUS_AVAILABLE" + enrolled_cert_status_pending = "ENROLLED_CERT_STATUS_PENDING" + enrolled_cert_status_renewal_pending = "ENROLLED_CERT_STATUS_RENEWAL_PENDING" + enrolled_cert_status_expired = "ENROLLED_CERT_STATUS_EXPIRED" + enrolled_cert_status_revoked = "ENROLLED_CERT_STATUS_REVOKED" + enrolled_cert_status_enrollment_failed = "ENROLLED_CERT_STATUS_ENROLLMENT_FAILED" + enrolled_cert_status_renewal_failed = "ENROLLED_CERT_STATUS_RENEWAL_FAILED" + enrolled_cert_status_invalid_config = "ENROLLED_CERT_STATUS_INVALID_CONFIG" + + +class EnrollmentMechanism(Enum): + enrollment_mechanism_unspecified = "ENROLLMENT_MECHANISM_UNSPECIFIED" + enrollment_mechanism_symmetrickey = "ENROLLMENT_MECHANISM_SYMMETRICKEY" + enrollment_mechanism_certificate = "ENROLLMENT_MECHANISM_CERTIFICATE" + enrollment_mechanism_tpm = "ENROLLMENT_MECHANISM_TPM" + + +class EnrollmentType(Enum): + enrollment_type_unspecified = "ENROLLMENT_TYPE_UNSPECIFIED" + enrollment_type_individual = "ENROLLMENT_TYPE_INDIVIDUAL" + enrollment_type_group = "ENROLLMENT_TYPE_GROUP" + + +class Entity(Enum): + entity_unspecified = "ENTITY_UNSPECIFIED" + entity_base_os = "ENTITY_BASE_OS" + entity_system_adapter = "ENTITY_SYSTEM_ADAPTER" + entity_vault = "ENTITY_VAULT" + entity_attestation = "ENTITY_ATTESTATION" + entity_app_instance = "ENTITY_APP_INSTANCE" + entity_port = "ENTITY_PORT" + entity_network = "ENTITY_NETWORK" + entity_network_instance = "ENTITY_NETWORK_INSTANCE" + entity_content_tree = "ENTITY_CONTENT_TREE" + entity_content_blob = "ENTITY_CONTENT_BLOB" + entity_volume = "ENTITY_VOLUME" + + +class EvAuthType(Enum): + ev_auth_type_unspecified = "EvAuth_TYPE_UNSPECIFIED" + ev_auth_type_controler_cert = "EvAuth_TYPE_CONTROLER_CERT" + ev_auth_type_ssh_rsa_keys = "EvAuth_TYPE_SSH_RSA_KEYS" + + +class EveLtsSupportType(Enum): + support_type_unspecified = "SUPPORT_TYPE_UNSPECIFIED" + support_type_lts = "SUPPORT_TYPE_LTS" + support_type_non_lts = "SUPPORT_TYPE_NON_LTS" + + +class EventSource(Enum): + event_source_unspecified = "EVENT_SOURCE_UNSPECIFIED" + event_source_system = "EVENT_SOURCE_SYSTEM" + event_source_user = "EVENT_SOURCE_USER" + + +class ExtAccessPolicy(BaseModel): + allow_ext: bool | None = Field( + default=None, + alias="allowExt", + title="external of device edge-view access is allowed or not", + ) + + +class GPSLocation(BaseModel): + latitude: float | None = Field(default=None, description="Latitude") + longitude: float | None = Field(default=None, description="Longitude") + altitude: float | None = Field( + default=None, description="Altitude from mean sea level" + ) + timestamp: dict[str, Any] | None = Field(default=None, description="UTC timestamp") + horizontal_reliability: float | None = Field( + default=None, + alias="horizontalReliability", + description="Horizontal reliability", + ) + vertical_reliability: float | None = Field( + default=None, alias="verticalReliability", description="Vertical reliability" + ) + horizontal_uncertainty: float | None = Field( + default=None, + alias="horizontalUncertainty", + description="Horizontal uncertainty", + ) + vertical_uncertainty: float | None = Field( + default=None, alias="verticalUncertainty", description="Vertical uncertainty" + ) + logical_label: str | None = Field( + default=None, + alias="logicalLabel", + description="Logical label of the adapter used to get GPS coordinates", + ) + + +class GeoLocation(BaseModel): + underlay_ip: str | None = Field( + default=None, + alias="underlayIP", + description="Single IP address, either in IPv4 or in IPv6 format", + ) + hostname: str | None = Field(default=None, description="Host name") + city: str | None = Field(default=None, description="City") + region: str | None = Field(default=None, description="Region") + country: str | None = Field( + default=None, + description="Country code consisting of 2 capital letters as per ISO 3166-1 alpha2 standard", + ) + loc: str | None = Field( + default=None, + description="Ordered pair of (latitude, longitude) separated by comma (,). Latitude is the horizontal component used for geographic positioning; it is the angle between 0° (the equator) and ±90° (north or south) at the poles measured in decimal degrees. It is the first value in an ordered pair. A negative number denotes a location south of the equator; a positive number is north. Longitude is the vertical component used for geographic positioning; it is the angle between 0° (the Prime Meridian) and ±180° (westward or eastward) measured in decimal degrees. It is the second number in an ordered pair. A negative number indicates a location west of Greenwich, England; a positive number east.", + ) + org: str | None = Field( + default=None, + description="The name of the recipient, firm, or company at this geographical location.", + ) + postal: str | None = Field( + default=None, + description="Postal code (ZIP code for USA) of the geographical location", + ) + latlong: str | None = Field( + default=None, description="Deprecated field: comma, separated lat, long" + ) + freeloc: str | None = Field( + default=None, description="Free formatted location string" + ) + + +class GroupCertificateEnrollment(BaseModel): + group_name: str | None = Field(default=None, alias="groupName") + + +class GroupSymmetricKeyEnrollment(BaseModel): + group_name: str | None = Field(default=None, alias="groupName") + + +class ImageDatastore(BaseModel): + id: str | None = Field(default=None, description="Datastore ID") + name: str | None = Field(default=None, description="Datastore Name") + + +class IndividualCertificateEnrollment(BaseModel): + pass + + +class IndividualSymmetricKeyEnrollment(BaseModel): + registration_id: str | None = Field(default=None, alias="registrationId") + + +class InterfaceOrdering(Enum): + interface_ordering_disabled = "INTERFACE_ORDERING_DISABLED" + interface_ordering_enabled = "INTERFACE_ORDERING_ENABLED" + + +class IoAddresses(BaseModel): + mac_address: str | None = Field(default=None, alias="macAddress") + + +class IoMemberStatus(BaseModel): + name: str | None = Field(default=None, description="IoBundle Member name") + io_address: IoAddresses | None = Field(default=None, alias="ioAddress") + + +class IoType(Enum): + io_type_unspecified = "IO_TYPE_UNSPECIFIED" + io_type_eth = "IO_TYPE_ETH" + io_type_usb = "IO_TYPE_USB" + io_type_com = "IO_TYPE_COM" + io_type_audio = "IO_TYPE_AUDIO" + io_type_wlan = "IO_TYPE_WLAN" + io_type_wwan = "IO_TYPE_WWAN" + io_type_hdmi = "IO_TYPE_HDMI" + io_type_lte = "IO_TYPE_LTE" + io_type_storage_nvme_device = "IO_TYPE_STORAGE_NVME_DEVICE" + io_type_storage_sata_device = "IO_TYPE_STORAGE_SATA_DEVICE" + io_type_eth_pf = "IO_TYPE_ETH_PF" + io_type_eth_vf = "IO_TYPE_ETH_VF" + io_type_usb_controller = "IO_TYPE_USB_CONTROLLER" + io_type_usb_device = "IO_TYPE_USB_DEVICE" + io_type_can = "IO_TYPE_CAN" + io_type_vcan = "IO_TYPE_VCAN" + io_type_lcan = "IO_TYPE_LCAN" + io_type_vlan = "IO_TYPE_VLAN" + io_type_other = "IO_TYPE_OTHER" + + +class JWTInfo(BaseModel): + disp_url: str | None = Field(default=None, alias="dispUrl") + allow_sec: int | None = Field(default=None, alias="allowSec") + expire_sec: str | None = Field(default=None, alias="expireSec") + num_inst: int | None = Field(default=None, alias="numInst") + encrypt: bool | None = None + authen: EvAuthType | None = "EvAuth_TYPE_UNSPECIFIED" + + +class LacpRate(Enum): + lacp_rate_unspecified = "LACP_RATE_UNSPECIFIED" + lacp_rate_slow = "LACP_RATE_SLOW" + lacp_rate_fast = "LACP_RATE_FAST" + + +class LimitParams(BaseModel): + limitrate: int | None = Field( + default=None, + description="UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + title="Rate limit in ACL rule", + ) + limitunit: str | None = Field( + default=None, + description="UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + title="Rate limit unit in ACL rule", + ) + limitburst: int | None = Field( + default=None, + description="UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + title="Rate limit burst in ACL rule", + ) + + +class LispServer(BaseModel): + name_or_ip: str = Field(..., alias="nameOrIp", description="name/IP") + credential: str = Field(..., description="lisp credential") + + +class LocalOperatorConsolePolicy(BaseModel): + id: constr(pattern=r"[0-9-a-z-]+") | None = Field( + default=None, description="unique policy id" + ) + loc_url: str = Field(..., alias="locURL", description="Local operator console URL") + datastore_id: list[str] | None = Field( + default=None, alias="datastoreId", description="upload datastore list" + ) + + +class MIIMonitor(BaseModel): + interval: int | None = Field( + default=None, + description="Specifies the MII link monitoring frequency in milliseconds.\nThis determines how often the link state of each bond slave is inspected\nfor link failures.", + ) + updelay: int | None = Field( + default=None, + description="Updelay specifies the time, in milliseconds, to wait before enabling\na bond slave after a link recovery has been detected.\nThe updelay value should be a multiple of the monitoring interval; if not,\nit will be rounded down to the nearest multiple.\nThe default value is 0.", + ) + downdelay: int | None = Field( + default=None, + description="Specifies the time, in milliseconds, to wait before disabling a bond\nslave after a link failure has been detected.\nThe downdelay value should be a multiple of the monitoring interval; if not,\nit will be rounded down to the nearest multiple.\nThe default value is 0.", + ) + + +class MapParams(BaseModel): + app_port: int | None = Field( + default=None, alias="appPort", description="Application Port value" + ) + + +class Match(BaseModel): + type: str | None = Field( + default=None, + description="Type of Match (Required)", + title="enum: host, protocol, adapter\nAt the device level it will pick right interface to apply this match", + ) + value: str | None = Field(default=None, description="Value of match (Required)") + + +class MemorySummary(BaseModel): + total_mb: float | None = Field( + default=None, alias="TotalMB", description="Total memory for the device in MBs" + ) + used_mb: float | None = Field( + default=None, + alias="UsedMB", + description="Total memory used by the device in MBs within allocated memory", + ) + allocated_mb: float | None = Field( + default=None, alias="AllocatedMB", description="Total allocated memory in MBs" + ) + + +class MetricQueryRequestWithIdHttpRequestMetricTypeHttpRequest(Enum): + unspecified = "UNSPECIFIED" + cpu_total = "CPU_TOTAL" + cpu_usage = "CPU_USAGE" + memory_total = "MEMORY_TOTAL" + memory_utilization = "MEMORY_UTILIZATION" + network_total = "NETWORK_TOTAL" + network_rates = "NETWORK_RATES" + events_count = "EVENTS_COUNT" + storage_utilization = "STORAGE_UTILIZATION" + storage_io_zpool = "STORAGE_IO_ZPOOL" + storage_io_zvol = "STORAGE_IO_ZVOL" + + +class MetricQueryRequestWithNameHttpRequestMetricTypeHttpRequest(Enum): + unspecified = "UNSPECIFIED" + cpu_total = "CPU_TOTAL" + cpu_usage = "CPU_USAGE" + memory_total = "MEMORY_TOTAL" + memory_utilization = "MEMORY_UTILIZATION" + network_total = "NETWORK_TOTAL" + network_rates = "NETWORK_RATES" + events_count = "EVENTS_COUNT" + storage_utilization = "STORAGE_UTILIZATION" + storage_io_zpool = "STORAGE_IO_ZPOOL" + storage_io_zvol = "STORAGE_IO_ZVOL" + + +class MetricQueryResponseItem(BaseModel): + timestamp: AwareDatetime | None = None + values: list[float] | None = None + + +class MetricThreshold(BaseModel): + yellow: float | None = None + red: float | None = None + + +class MetricsDetail(BaseModel): + queries: dict[str, str] | None = Field( + default=None, description="Mapping of queries variable keys and value" + ) + results: dict[str, str] | None = Field( + default=None, description="Mapping of results variable keys and value" + ) + + +class ModelArchType(Enum): + unspecified = "UNSPECIFIED" + undefined = "UNDEFINED" + amd64 = "AMD64" + arm64 = "ARM64" + + +class ModelInfo(BaseModel): + model_id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + alias="modelId", + description="system generated unique id for a model", + ) + model_name: str | None = Field( + default=None, alias="modelName", description="model name" + ) + brand_id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + alias="brandId", + description="system generated unique id for a brand", + ) + brand_name: str | None = Field( + default=None, alias="brandName", description="brand name" + ) + + +class ModuleType(Enum): + module_type_unspecified = "MODULE_TYPE_UNSPECIFIED" + module_type_system_defined = "MODULE_TYPE_SYSTEM_DEFINED" + module_type_custom = "MODULE_TYPE_CUSTOM" + module_type_azure_edge_agent = "MODULE_TYPE_AZURE_EDGE_AGENT" + module_type_azure_edge_hub = "MODULE_TYPE_AZURE_EDGE_HUB" + + +class NetCellularAccessPointSecrets(BaseModel): + username: str | None = Field(default=None, description="Cellular Username") + password: str | None = Field(default=None, description="Cellular Password") + + +class NetInstEdgeNodeCluster(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, description="Id of the Edge Node Cluster" + ) + designated_node_id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + alias="designatedNodeID", + description="Id of the designated Edge Node", + ) + + +class NetProjectInfo(BaseModel): + project_id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + alias="projectId", + description="system generated unique id for a project", + ) + project_name: str | None = Field( + default=None, alias="projectName", description="project name" + ) + + +class NetWifiConfigNetcryptoblock(BaseModel): + identity: str | None = None + password: str | None = None + + +class NetWifiConfigSecrets(BaseModel): + wi_fi_passwd: str | None = Field( + default=None, alias="WiFiPasswd", description="Wifi Password" + ) + + +class NetworkCounters(BaseModel): + if_name: str | None = Field(default=None, alias="ifName", description="ifName") + tx_bytes: float | None = Field( + default=None, alias="txBytes", description="Tx Bytes" + ) + rx_bytes: float | None = Field( + default=None, alias="rxBytes", description="Rx Bytes" + ) + tx_pkts: float | None = Field( + default=None, alias="txPkts", description="Tx Packets" + ) + rx_pkts: float | None = Field( + default=None, alias="rxPkts", description="Rx packets" + ) + tx_errors: float | None = Field( + default=None, alias="txErrors", description="Tx Errors" + ) + rx_errors: float | None = Field( + default=None, alias="rxErrors", description="Rx Errors" + ) + tx_drops: float | None = Field( + default=None, alias="txDrops", description="Tx Drops" + ) + rx_drops: float | None = Field( + default=None, alias="rxDrops", description="Rx Drops" + ) + tx_acl_drops: float | None = Field( + default=None, alias="txAclDrops", description="Tx ACL Rate Drops" + ) + rx_acl_drops: float | None = Field( + default=None, alias="rxAclDrops", description="Rx ACL Rate Drops" + ) + tx_acl_rate_limit_drops: float | None = Field( + default=None, alias="txAclRateLimitDrops", description="Tx ACL Rate Limit Drops" + ) + rx_acl_rate_limit_drops: float | None = Field( + default=None, alias="rxAclRateLimitDrops", description="Rx ACL Rate Limit Drops" + ) + + +class NetworkDHCPType(Enum): + network_dhcp_type_unspecified = "NETWORK_DHCP_TYPE_UNSPECIFIED" + network_dhcp_type_static = "NETWORK_DHCP_TYPE_STATIC" + network_dhcp_type_passthrough = "NETWORK_DHCP_TYPE_PASSTHROUGH" + network_dhcp_type_deprecated = "NETWORK_DHCP_TYPE_DEPRECATED" + network_dhcp_type_client = "NETWORK_DHCP_TYPE_CLIENT" + network_dhcp_type_static_adapter_specific = ( + "NETWORK_DHCP_TYPE_STATIC_ADAPTER_SPECIFIC" + ) + + +class NetworkInstanceDhcpType(Enum): + network_instance_dhcp_type_unspecified = "NETWORK_INSTANCE_DHCP_TYPE_UNSPECIFIED" + network_instance_dhcp_type_v4 = "NETWORK_INSTANCE_DHCP_TYPE_V4" + network_instance_dhcp_type_v6 = "NETWORK_INSTANCE_DHCP_TYPE_V6" + network_instance_dhcp_type_cryptoeid = "NETWORK_INSTANCE_DHCP_TYPE_CRYPTOEID" + network_instance_dhcp_type_cryptov4 = "NETWORK_INSTANCE_DHCP_TYPE_CRYPTOV4" + network_instance_dhcp_type_cryptov6 = "NETWORK_INSTANCE_DHCP_TYPE_CRYPTOV6" + + +class NetworkInstanceFlowLogTransmission(Enum): + network_instance_flow_log_transmission_unspecified = ( + "NETWORK_INSTANCE_FLOW_LOG_TRANSMISSION_UNSPECIFIED" + ) + network_instance_flow_log_transmission_enabled = ( + "NETWORK_INSTANCE_FLOW_LOG_TRANSMISSION_ENABLED" + ) + network_instance_flow_log_transmission_disabled = ( + "NETWORK_INSTANCE_FLOW_LOG_TRANSMISSION_DISABLED" + ) + + +class NetworkInstanceKind(Enum): + network_instance_kind_unspecified = "NETWORK_INSTANCE_KIND_UNSPECIFIED" + network_instance_kind_transparent = "NETWORK_INSTANCE_KIND_TRANSPARENT" + network_instance_kind_switch = "NETWORK_INSTANCE_KIND_SWITCH" + network_instance_kind_local = "NETWORK_INSTANCE_KIND_LOCAL" + network_instance_kind_cloud = "NETWORK_INSTANCE_KIND_CLOUD" + network_instance_kind_mesh = "NETWORK_INSTANCE_KIND_MESH" + network_instance_kind_honeypot = "NETWORK_INSTANCE_KIND_HONEYPOT" + + +class NetworkKind(Enum): + network_kind_unspecified = "NETWORK_KIND_UNSPECIFIED" + network_kind_v4 = "NETWORK_KIND_V4" + network_kind_v6 = "NETWORK_KIND_V6" + network_kind_v4_only = "NETWORK_KIND_V4_ONLY" + network_kind_v6_only = "NETWORK_KIND_V6_ONLY" + network_kind_dual_v4_v6 = "NETWORK_KIND_DUAL_V4_V6" + + +class NetworkProxyProto(Enum): + network_proxy_proto_http = "NETWORK_PROXY_PROTO_HTTP" + network_proxy_proto_https = "NETWORK_PROXY_PROTO_HTTPS" + network_proxy_proto_socks = "NETWORK_PROXY_PROTO_SOCKS" + network_proxy_proto_ftp = "NETWORK_PROXY_PROTO_FTP" + network_proxy_proto_other = "NETWORK_PROXY_PROTO_OTHER" + + +class NetworkWiFiKeyScheme(Enum): + network_wifikey_scheme_unspecified = "NETWORK_WIFIKEY_SCHEME_UNSPECIFIED" + network_wifikey_scheme_wpapsk = "NETWORK_WIFIKEY_SCHEME_WPAPSK" + network_wifikey_scheme_wpaeap = "NETWORK_WIFIKEY_SCHEME_WPAEAP" + + +class NetworkWirelessType(Enum): + network_wireless_type_unspecified = "NETWORK_WIRELESS_TYPE_UNSPECIFIED" + network_wireless_type_wifi = "NETWORK_WIRELESS_TYPE_WIFI" + network_wireless_type_cellular = "NETWORK_WIRELESS_TYPE_CELLULAR" + + +class NtpServer(BaseModel): + server: str | None = Field(default=None, description="NTP Server IP or FQDN") + + +class NtpSourceMode(Enum): + ntp_source_mode_unspecified = "NTP_SOURCE_MODE_UNSPECIFIED" + ntp_source_mode_client = "NTP_SOURCE_MODE_CLIENT" + ntp_source_mode_peer = "NTP_SOURCE_MODE_PEER" + ntp_source_mode_ref = "NTP_SOURCE_MODE_REF" + + +class NtpSourceState(Enum): + ntp_source_state_unspecified = "NTP_SOURCE_STATE_UNSPECIFIED" + ntp_source_state_sync = "NTP_SOURCE_STATE_SYNC" + ntp_source_state_unreach = "NTP_SOURCE_STATE_UNREACH" + ntp_source_state_falseticker = "NTP_SOURCE_STATE_FALSETICKER" + ntp_source_state_jittery = "NTP_SOURCE_STATE_JITTERY" + ntp_source_state_candidate = "NTP_SOURCE_STATE_CANDIDATE" + ntp_source_state_outlier = "NTP_SOURCE_STATE_OUTLIER" + + +class ObjectParentDetail(BaseModel): + id_of_parent_object: constr(pattern=r"[0-9A-Za-z-]+") = Field( + ..., + alias="idOfParentObject", + description="system defined unique id of parent object", + ) + version_of_parent_object: int | None = Field( + default=None, + alias="versionOfParentObject", + description="version of object present in parent", + ) + update_available: bool | None = Field( + default=None, alias="updateAvailable", description="Update required flag" + ) + reference_exists: bool | None = Field( + default=None, + alias="referenceExists", + description="Relation with child and parent object exists or not", + ) + + +class ObjectRevision(BaseModel): + prev: str | None = Field(default=None, description="Previous") + curr: str = Field(..., description="Current Database version of the record") + created_at: dict[str, Any] = Field( + ..., + alias="createdAt", + description="The time, in milliseconds since the epoch, when the record was created.", + ) + created_by: str = Field(..., alias="createdBy", description="User data: Created By") + updated_at: dict[str, Any] = Field( + ..., + alias="updatedAt", + description="The time, in milliseconds since the epoch, when the record was last updated.", + ) + updated_by: str = Field(..., alias="updatedBy", description="User data: Updated By") + + +class ObjectTag(BaseModel): + key: str | None = Field(default=None, description="object tag key identifier.") + value: str | None = Field( + default=None, description="value associated for the object tag key" + ) + description: str | None = Field( + default=None, description="Description of the tag key" + ) + + +class ObjectTagsList(BaseModel): + object_tags: list[ObjectTag] | None = Field( + default=None, + alias="objectTags", + description="Details of Object tags list records.", + ) + next: Cursor | None = None + + +class ObjectType(Enum): + object_type_unspecified = "OBJECT_TYPE_UNSPECIFIED" + object_type_user = "OBJECT_TYPE_USER" + object_type_edge_node = "OBJECT_TYPE_EDGE_NODE" + object_type_edge_app = "OBJECT_TYPE_EDGE_APP" + object_type_image = "OBJECT_TYPE_IMAGE" + object_type_edge_app_instance = "OBJECT_TYPE_EDGE_APP_INSTANCE" + object_type_project = "OBJECT_TYPE_PROJECT" + object_type_network = "OBJECT_TYPE_NETWORK" + object_type_datastore = "OBJECT_TYPE_DATASTORE" + object_type_service = "OBJECT_TYPE_SERVICE" + object_type_service_instance = "OBJECT_TYPE_SERVICE_INSTANCE" + object_type_enterprise = "OBJECT_TYPE_ENTERPRISE" + object_type_role = "OBJECT_TYPE_ROLE" + object_type_credential = "OBJECT_TYPE_CREDENTIAL" + object_type_network_instance = "OBJECT_TYPE_NETWORK_INSTANCE" + object_type_volume_instance = "OBJECT_TYPE_VOLUME_INSTANCE" + object_type_realm = "OBJECT_TYPE_REALM" + object_type_authprofile = "OBJECT_TYPE_AUTHPROFILE" + object_type_policy = "OBJECT_TYPE_POLICY" + object_type_app_policy = "OBJECT_TYPE_APP_POLICY" + object_type_cluster_instance = "OBJECT_TYPE_CLUSTER_INSTANCE" + object_type_plugin = "OBJECT_TYPE_PLUGIN" + object_type_doc_policy = "OBJECT_TYPE_DOC_POLICY" + object_type_orchestrator_cluster = "OBJECT_TYPE_ORCHESTRATOR_CLUSTER" + object_type_tags = "OBJECT_TYPE_TAGS" + object_type_edge_node_interface = "OBJECT_TYPE_EDGE_NODE_INTERFACE" + object_type_deployment = "OBJECT_TYPE_DEPLOYMENT" + object_type_entitlements = "OBJECT_TYPE_ENTITLEMENTS" + object_type_data_stream = "OBJECT_TYPE_DATA_STREAM" + object_type_api_usage = "OBJECT_TYPE_API_USAGE" + object_type_app_instance_snapshot = "OBJECT_TYPE_APP_INSTANCE_SNAPSHOT" + object_type_patch_envelope = "OBJECT_TYPE_PATCH_ENVELOPE" + object_type_resource_usage_track = "OBJECT_TYPE_RESOURCE_USAGE_TRACK" + object_type_patch_envelope_reference = "OBJECT_TYPE_PATCH_ENVELOPE_REFERENCE" + object_type_dev_passthrough = "OBJECT_TYPE_DEV_PASSTHROUGH" + object_type_edge_node_cluster = "OBJECT_TYPE_EDGE_NODE_CLUSTER" + object_type_asset_group = "OBJECT_TYPE_ASSET_GROUP" + object_type_app_profile = "OBJECT_TYPE_APP_PROFILE" + object_type_profile_deployment = "OBJECT_TYPE_PROFILE_DEPLOYMENT" + object_type_zks_instance = "OBJECT_TYPE_ZKS_INSTANCE" + object_type_cluster_group = "OBJECT_TYPE_CLUSTER_GROUP" + + +class OpaqueConfigType(Enum): + opaque_config_type_unspecified = "OPAQUE_CONFIG_TYPE_UNSPECIFIED" + opaque_config_type_vpn = "OPAQUE_CONFIG_TYPE_VPN" + opaque_config_type_lisp = "OPAQUE_CONFIG_TYPE_LISP" + + +class OptionalCapabilities(BaseModel): + hv_type_kubevirt: bool | None = Field( + default=None, alias="hvTypeKubevirt", title="Virtualization type Kubevirt" + ) + etcd_snapshot: bool | None = Field( + default=None, + alias="etcdSnapshot", + title="Device supports etcd snapshots (e.g. eve-k flavor)", + ) + + +class Origin(Enum): + origin_unspecified = "ORIGIN_UNSPECIFIED" + origin_imported = "ORIGIN_IMPORTED" + origin_local = "ORIGIN_LOCAL" + origin_global = "ORIGIN_GLOBAL" + origin_app_profile_local = "ORIGIN_APP_PROFILE_LOCAL" + + +class PCRPolicy(BaseModel): + id: constr(pattern=r"[0-9-a-z-]+") | None = Field( + default=None, description="unique policy id" + ) + pcr_indices: list[int] = Field( + ..., alias="pcrIndices", description="List of PCR indices for TPM key sealing" + ) + policy_version: int | None = Field( + default=None, + alias="policyVersion", + description="Policy version for audit tracking", + ) + + +class PCRType(Enum): + pcr_type_unspecified = "PCR_TYPE_UNSPECIFIED" + pcr_type_hash = "PCR_TYPE_HASH" + pcr_type_event_log = "PCR_TYPE_EVENT_LOG" + + +class PCRValue(BaseModel): + type: PCRType + index: float = Field( + ..., + description="Current index for the PCR item in the list. First element has the index 0", + ) + value: str = Field(..., description="Actual value for the PCR item.") + + +class PNACMetricInfo(BaseModel): + logical_label: str | None = Field( + default=None, + alias="logicalLabel", + description="Logical label of the network port", + ) + eapol_frames_rx: str | None = Field( + default=None, alias="eapolFramesRx", description="Total EAPOL frames received" + ) + eapol_frames_tx: str | None = Field( + default=None, + alias="eapolFramesTx", + description="Total EAPOL frames transmitted", + ) + eapol_start_frames_tx: str | None = Field( + default=None, + alias="eapolStartFramesTx", + description="EAPOL-Start frames transmitted", + ) + eapol_logoff_frames_tx: str | None = Field( + default=None, + alias="eapolLogoffFramesTx", + description="EAPOL-Logoff frames transmitted", + ) + eapol_resp_frames_tx: str | None = Field( + default=None, + alias="eapolRespFramesTx", + description="EAP-Response frames transmitted", + ) + eapol_req_id_frames_rx: str | None = Field( + default=None, + alias="eapolReqIdFramesRx", + description="EAP-Request Identity frames received", + ) + eapol_req_frames_rx: str | None = Field( + default=None, + alias="eapolReqFramesRx", + description="EAP-Request frames received", + ) + invalid_eapol_frames_rx: str | None = Field( + default=None, + alias="invalidEapolFramesRx", + description="Invalid EAPOL frames received", + ) + eap_length_error_frames_rx: str | None = Field( + default=None, + alias="eapLengthErrorFramesRx", + description="EAPOL frames with length errors received", + ) + + +class PNACSupplicantState(Enum): + pnac_supplicant_state_unspecified = "PNAC_SUPPLICANT_STATE_UNSPECIFIED" + pnac_supplicant_state_disconnected = "PNAC_SUPPLICANT_STATE_DISCONNECTED" + pnac_supplicant_state_connecting = "PNAC_SUPPLICANT_STATE_CONNECTING" + pnac_supplicant_state_authenticating = "PNAC_SUPPLICANT_STATE_AUTHENTICATING" + pnac_supplicant_state_authenticated = "PNAC_SUPPLICANT_STATE_AUTHENTICATED" + pnac_supplicant_state_failed = "PNAC_SUPPLICANT_STATE_FAILED" + pnac_supplicant_state_held = "PNAC_SUPPLICANT_STATE_HELD" + + +class Param(BaseModel): + name: str | None = Field( + default=None, description="Name of the Parameter (Required)" + ) + value: str | None = Field( + default=None, description="Value of the parameter (Required)" + ) + + +class Permission(BaseModel): + pass + + +class PhysicalStorageRaidType(Enum): + physical_storage_raid_type_unspecified = "PHYSICAL_STORAGE_RAID_TYPE_UNSPECIFIED" + physical_storage_raid_type_raid0 = "PHYSICAL_STORAGE_RAID_TYPE_RAID0" + physical_storage_raid_type_raid_mirror = "PHYSICAL_STORAGE_RAID_TYPE_RAID_MIRROR" + physical_storage_raid_type_raidz1 = "PHYSICAL_STORAGE_RAID_TYPE_RAIDZ1" + physical_storage_raid_type_raidz2 = "PHYSICAL_STORAGE_RAID_TYPE_RAIDZ2" + physical_storage_raid_type_raidz3 = "PHYSICAL_STORAGE_RAID_TYPE_RAIDZ3" + physical_storage_raid_type_noraid = "PHYSICAL_STORAGE_RAID_TYPE_NORAID" + + +class PhysicalStorageStatus(Enum): + physical_storage_status_unspecified = "PHYSICAL_STORAGE_STATUS_UNSPECIFIED" + physical_storage_status_online = "PHYSICAL_STORAGE_STATUS_ONLINE" + physical_storage_status_degraded = "PHYSICAL_STORAGE_STATUS_DEGRADED" + physical_storage_status_faulted = "PHYSICAL_STORAGE_STATUS_FAULTED" + physical_storage_status_offline = "PHYSICAL_STORAGE_STATUS_OFFLINE" + physical_storage_status_unavail = "PHYSICAL_STORAGE_STATUS_UNAVAIL" + physical_storage_status_removed = "PHYSICAL_STORAGE_STATUS_REMOVED" + physical_storage_status_suspended = "PHYSICAL_STORAGE_STATUS_SUSPENDED" + + +class PhysicalStorageTypeInfo(Enum): + physical_storage_type_info_unspecified = "PHYSICAL_STORAGE_TYPE_INFO_UNSPECIFIED" + physical_storage_type_info_ext4 = "PHYSICAL_STORAGE_TYPE_INFO_EXT4" + physical_storage_type_info_zfs = "PHYSICAL_STORAGE_TYPE_INFO_ZFS" + + +class PolicyCommon(BaseModel): + id: str | None = Field( + default=None, description="system generated unique id for an policy" + ) + name: str | None = Field(default=None, description="user defined policy name") + title: str | None = Field(default=None, description="user defined policy title") + revision: ObjectRevision | None = None + tags: dict[str, str] | None = Field( + default=None, description="user defined key-value pairs of a policy" + ) + policy_target_condition: dict[str, str] | None = Field( + default=None, + alias="policyTargetCondition", + description="user defined key-value pairs of a policy that will be used for targeting by devices", + ) + + +class PolicyStatus(Enum): + policy_status_unspecified = "POLICY_STATUS_UNSPECIFIED" + policy_status_initialized = "POLICY_STATUS_INITIALIZED" + policy_status_inprogress = "POLICY_STATUS_INPROGRESS" + policy_status_ready = "POLICY_STATUS_READY" + policy_status_failed = "POLICY_STATUS_FAILED" + + +class PolicyType(Enum): + policy_type_unspecified = "POLICY_TYPE_UNSPECIFIED" + policy_type_app = "POLICY_TYPE_APP" + policy_type_azure = "POLICY_TYPE_AZURE" + policy_type_aws = "POLICY_TYPE_AWS" + policy_type_gcp = "POLICY_TYPE_GCP" + policy_type_module = "POLICY_TYPE_MODULE" + policy_type_attestation = "POLICY_TYPE_ATTESTATION" + policy_type_network = "POLICY_TYPE_NETWORK" + policy_type_cluster = "POLICY_TYPE_CLUSTER" + policy_type_edgeview = "POLICY_TYPE_EDGEVIEW" + policy_type_loc = "POLICY_TYPE_LOC" + policy_type_configuration_lock = "POLICY_TYPE_CONFIGURATION_LOCK" + policy_type_pcr = "POLICY_TYPE_PCR" + policy_type_port_based_network_access_control = ( + "POLICY_TYPE_PORT_BASED_NETWORK_ACCESS_CONTROL" + ) + + +class PortBasedNetworkAccessControlPolicy(BaseModel): + id: constr(pattern=r"[0-9-a-z-]+") | None = Field( + default=None, description="unique policy id" + ) + enable_port_based_network_access_control: bool | None = Field( + default=None, + alias="enablePortBasedNetworkAccessControl", + description="Enable or disable port based network access control (802.1X). When disabled, other fields are ignored.", + ) + eap_method: EAPMethod | None = Field( + default="EAP_METHOD_UNSPECIFIED", alias="eapMethod" + ) + eap_identity: str | None = Field( + default=None, + alias="eapIdentity", + description="EAP identity string used for authentication", + title="EAP identity string used for authentication", + ) + certificate_enrollment_id: str | None = Field( + default=None, + alias="certificateEnrollmentId", + description="ID of the certificate enrollment object used for 802.1X authentication", + title="Reference to the certificate enrollment object used for 802.1X authentication", + ) + + +class RSA(BaseModel): + rsa_bits: str | None = Field( + default=None, alias="rsaBits", description="RSA Encryption Key bit size." + ) + + +class RadioAccessTechnology(Enum): + radio_access_technology_unspecified = "RADIO_ACCESS_TECHNOLOGY_UNSPECIFIED" + radio_access_technology_gsm = "RADIO_ACCESS_TECHNOLOGY_GSM" + radio_access_technology_umts = "RADIO_ACCESS_TECHNOLOGY_UMTS" + radio_access_technology_lte = "RADIO_ACCESS_TECHNOLOGY_LTE" + radio_access_technology_5_gnr = "RADIO_ACCESS_TECHNOLOGY_5GNR" + + +class Resource(BaseModel): + name: str | None = Field( + default=None, description="Name of the Resource (Required)" + ) + value: str | None = Field(default=None, description="Value of Resource (Required)") + + +class ResourceGroupDetail(BaseModel): + name: str = Field(..., description="resource group name") + region: str | None = Field(default=None, description="resource group region") + subscription_id: str = Field( + ..., + alias="subscriptionId", + description="azure subscription id to which resource group is attached", + ) + + +class RunState(Enum): + run_state_unspecified = "RUN_STATE_UNSPECIFIED" + run_state_online = "RUN_STATE_ONLINE" + run_state_halted = "RUN_STATE_HALTED" + run_state_init = "RUN_STATE_INIT" + run_state_rebooting = "RUN_STATE_REBOOTING" + run_state_offline = "RUN_STATE_OFFLINE" + run_state_unknown = "RUN_STATE_UNKNOWN" + run_state_unprovisioned = "RUN_STATE_UNPROVISIONED" + run_state_provisioned = "RUN_STATE_PROVISIONED" + run_state_suspect = "RUN_STATE_SUSPECT" + run_state_downloading = "RUN_STATE_DOWNLOADING" + run_state_restarting = "RUN_STATE_RESTARTING" + run_state_purging = "RUN_STATE_PURGING" + run_state_halting = "RUN_STATE_HALTING" + run_state_error = "RUN_STATE_ERROR" + run_state_verifying = "RUN_STATE_VERIFYING" + run_state_loading = "RUN_STATE_LOADING" + run_state_creating_volume = "RUN_STATE_CREATING_VOLUME" + run_state_booting = "RUN_STATE_BOOTING" + run_state_maintenance_mode = "RUN_STATE_MAINTENANCE_MODE" + run_state_start_delayed = "RUN_STATE_START_DELAYED" + run_state_baseos_updating = "RUN_STATE_BASEOS_UPDATING" + run_state_preparing_poweroff = "RUN_STATE_PREPARING_POWEROFF" + run_state_powering_off = "RUN_STATE_POWERING_OFF" + run_state_prepared_poweroff = "RUN_STATE_PREPARED_POWEROFF" + + +class RunStateConfigHttpRequestRunStateHttpRequest(Enum): + unspecified = "UNSPECIFIED" + online = "ONLINE" + halted = "HALTED" + init = "INIT" + rebooting = "REBOOTING" + offline = "OFFLINE" + unknown = "UNKNOWN" + unprovisioned = "UNPROVISIONED" + provisioned = "PROVISIONED" + suspect = "SUSPECT" + downloading = "DOWNLOADING" + restarting = "RESTARTING" + purging = "PURGING" + halting = "HALTING" + error = "ERROR" + verifying = "VERIFYING" + loading = "LOADING" + creating_volume = "CREATING_VOLUME" + booting = "BOOTING" + maintenance_mode = "MAINTENANCE_MODE" + start_delayed = "START_DELAYED" + baseos_updating = "BASEOS_UPDATING" + preparing_poweroff = "PREPARING_POWEROFF" + powering_off = "POWERING_OFF" + prepared_poweroff = "PREPARED_POWEROFF" + + +class SANValues(BaseModel): + hosts: list[str] | None = Field( + default=None, description="List of permitted hosts." + ) + emaild_ids: list[str] | None = Field( + default=None, + alias="emaildIds", + description="List of permitted email addresses.", + ) + uris: list[str] | None = Field(default=None, description="List of permitted URIs.") + ips: list[str] | None = Field( + default=None, description="List of permitted IP addresses." + ) + dns: list[str] | None = Field( + default=None, description="List of permitted DNS names." + ) + upns: list[str] | None = Field( + default=None, description="List of permitted User principal names." + ) + + +class SIMCard(BaseModel): + slot_number: float | None = Field( + default=None, alias="slotNumber", description="Slot number" + ) + slot_activated: bool | None = Field( + default=None, alias="slotActivated", description="Is Slot activated" + ) + iccid: str | None = Field( + default=None, description="Integrated Circuit Card Identifier" + ) + imsi: str | None = Field( + default=None, description="International Mobile Subscriber Identity" + ) + state: str | None = Field(default=None, description="Current state of the SIM card") + + +class SKUDetail(BaseModel): + name: str | None = None + tier: str | None = None + capacity: str | None = None + + +class SWState(Enum): + sw_state_unspecified = "SW_STATE_UNSPECIFIED" + sw_state_initial = "SW_STATE_INITIAL" + sw_state_download_in_progress = "SW_STATE_DOWNLOAD_IN_PROGRESS" + sw_state_downloaded = "SW_STATE_DOWNLOADED" + sw_state_verified = "SW_STATE_VERIFIED" + sw_state_installed = "SW_STATE_INSTALLED" + sw_state_booting = "SW_STATE_BOOTING" + sw_state_running = "SW_STATE_RUNNING" + sw_state_halting = "SW_STATE_HALTING" + sw_state_halted = "SW_STATE_HALTED" + sw_state_refreshing = "SW_STATE_REFRESHING" + sw_state_purging = "SW_STATE_PURGING" + sw_state_resolving_tag = "SW_STATE_RESOLVING_TAG" + sw_state_resolved_tag = "SW_STATE_RESOLVED_TAG" + sw_state_creating_volume = "SW_STATE_CREATING_VOLUME" + sw_state_created_volume = "SW_STATE_CREATED_VOLUME" + sw_state_verifying = "SW_STATE_VERIFYING" + sw_state_loading = "SW_STATE_LOADING" + sw_state_loaded = "SW_STATE_LOADED" + sw_state_awaitnetworkinstance = "SW_STATE_AWAITNETWORKINSTANCE" + + +class SendDeviceMetrics(Enum): + send_device_metrics_unspecified = "SEND_DEVICE_METRICS_UNSPECIFIED" + send_device_metrics_enabled = "SEND_DEVICE_METRICS_ENABLED" + send_device_metrics_disabled = "SEND_DEVICE_METRICS_DISABLED" + + +class Severity(Enum): + severity_unspecified = "SEVERITY_UNSPECIFIED" + severity_notice = "SEVERITY_NOTICE" + severity_warning = "SEVERITY_WARNING" + severity_error = "SEVERITY_ERROR" + + +class SharedStorageSummary(BaseModel): + id: str | None = Field(default=None, alias="Id", description="Id") + name: str | None = Field(default=None, alias="Name", description="Name") + allocated_mb: float | None = Field( + default=None, alias="AllocatedMB", description="Allocated Storage in MBs" + ) + used_mb: float | None = Field( + default=None, + alias="UsedMB", + description="How much is used within the allocated total storage", + ) + + +class SimcardState(Enum): + simcard_state_invalid = "SIMCARD_STATE_INVALID" + simcard_state_assigned = "SIMCARD_STATE_ASSIGNED" + simcard_state_provisioned = "SIMCARD_STATE_PROVISIONED" + simcard_state_active = "SIMCARD_STATE_ACTIVE" + simcard_state_suspended = "SIMCARD_STATE_SUSPENDED" + simcard_state_cancelled = "SIMCARD_STATE_CANCELLED" + + +class SmartAttr(BaseModel): + id: int | None = None + value: str | None = None + worst: str | None = None + thresh: str | None = None + when_failed: str | None = Field(default=None, alias="whenFailed") + raw_value: str | None = Field(default=None, alias="rawValue") + type: str | None = None + attribute_name: str | None = Field(default=None, alias="attributeName") + + +class StaticDNSList(BaseModel): + hostname: str | None = Field(default=None, description="Host name") + addrs: list[str] | None = Field(default=None, description="Addresses") + + +class StorageDeviceMetrics(BaseModel): + read_errors: float | None = Field( + default=None, alias="readErrors", description="read errors counter" + ) + write_errors: float | None = Field( + default=None, alias="writeErrors", description="write errors counter" + ) + checksum_errors: float | None = Field( + default=None, alias="checksumErrors", description="checksum errors counter" + ) + bytes_read: float | None = Field( + default=None, alias="bytesRead", description="read bytes counter" + ) + bytes_write: float | None = Field( + default=None, alias="bytesWrite", description="write bytes counter" + ) + + +class StorageDiskInfo(BaseModel): + disk_name: str | None = Field(default=None, alias="diskName") + wwn: str | None = None + serial_number: str | None = Field(default=None, alias="serialNumber") + model: str | None = None + collector_errors: str | None = Field(default=None, alias="collectorErrors") + smart_attr: list[SmartAttr] | None = Field(default=None, alias="smartAttr") + + +class StorageStatus(BaseModel): + name: str | None = None + mount_path: str | None = Field(default=None, alias="mountPath") + size_mb: str | None = Field(default=None, alias="sizeMB") + partition_label: str | None = Field( + default=None, + alias="partitionLabel", + description='GPT PARTLABEL, e.g. "EFI System", "CONFIG", "IMGA", "IMGB", "P3".\nEmpty for directory entries and partitions on non-GPT disks.', + ) + partition_type_guid: str | None = Field( + default=None, + alias="partitionTypeGuid", + description="GPT partition type GUID (lsblk PARTTYPE), lowercase hyphenated.\nIdentifies the partition's role per the GPT spec.", + ) + partition_uuid: str | None = Field( + default=None, + alias="partitionUuid", + description="GPT PARTUUID, lowercase hyphenated. Unique per partition and stable\nacross filesystem reformats; EVE's boot path resolves IMGA/IMGB/CONFIG\nby this value.", + ) + + +class StorageSummary(BaseModel): + total_mb: float | None = Field( + default=None, alias="TotalMB", description="Total Storage for the device in MBs" + ) + used_mb: float | None = Field( + default=None, + alias="UsedMB", + description="How much is used within the allocated total storage", + ) + allocated_mb: float | None = Field( + default=None, + alias="AllocatedMB", + description="Total reserved for running applications + temp. images etc", + ) + shared_storage_summary: list[SharedStorageSummary] | None = Field( + default=None, alias="sharedStorageSummary", description="Shared storage summary" + ) + id: str | None = Field(default=None, alias="Id", description="Id") + name: str | None = Field(default=None, alias="Name", description="Name") + + +class Subject(BaseModel): + common_name: str | None = Field( + default=None, alias="commonName", description="Certificate common name." + ) + country: list[str] | None = Field(default=None, description="List of countries.") + organization: list[str] | None = Field( + default=None, description="List of organization." + ) + organizational_unit: list[str] | None = Field( + default=None, + alias="organizationalUnit", + description="List of Organizational Unit.", + ) + locality: list[str] | None = Field(default=None, description="List of locallity.") + postal_code: list[str] | None = Field( + default=None, alias="postalCode", description="List of Postal codes." + ) + province: list[str] | None = Field( + default=None, description="List of List of Prvince." + ) + serial_number: str | None = Field( + default=None, alias="serialNumber", description="Subject cerial number" + ) + + +class Summary(BaseModel): + description: str | None = Field(default=None, description="Summary description") + total: float | None = Field(default=None, description="Total") + values: dict[str, int] | None = Field( + default=None, description="Values: Map for storing " + ) + + +class SymmetricKeyEnrollmentDetail(BaseModel): + type: EnrollmentType | None = "ENROLLMENT_TYPE_UNSPECIFIED" + individual_symmetric_key_enrollment: IndividualSymmetricKeyEnrollment | None = ( + Field(default=None, alias="individualSymmetricKeyEnrollment") + ) + group_symmetric_key_enrollment: GroupSymmetricKeyEnrollment | None = Field( + default=None, alias="groupSymmetricKeyEnrollment" + ) + + +class SysModelState(Enum): + sys_model_state_unspecified = "SYS_MODEL_STATE_UNSPECIFIED" + sys_model_state_archive = "SYS_MODEL_STATE_ARCHIVE" + sys_model_state_active = "SYS_MODEL_STATE_ACTIVE" + + +class TPMEnrollmentDetail(BaseModel): + type: EnrollmentType | None = "ENROLLMENT_TYPE_UNSPECIFIED" + + +class TagLevelSettings(BaseModel): + flow_log_transmission: NetworkInstanceFlowLogTransmission | None = Field( + default="NETWORK_INSTANCE_FLOW_LOG_TRANSMISSION_UNSPECIFIED", + alias="flowLogTransmission", + ) + interface_ordering: InterfaceOrdering | None = Field( + default="INTERFACE_ORDERING_DISABLED", alias="interfaceOrdering" + ) + send_device_metrics: SendDeviceMetrics | None = Field( + default="SEND_DEVICE_METRICS_UNSPECIFIED", alias="sendDeviceMetrics" + ) + + +class TagStatus(Enum): + tag_status_unspecified = "TAG_STATUS_UNSPECIFIED" + tag_status_archive = "TAG_STATUS_ARCHIVE" + tag_status_active = "TAG_STATUS_ACTIVE" + tag_status_inactive = "TAG_STATUS_INACTIVE" + tag_status_initialized = "TAG_STATUS_INITIALIZED" + tag_status_failed = "TAG_STATUS_FAILED" + + +class TagType(Enum): + tag_type_unspecified = "TAG_TYPE_UNSPECIFIED" + tag_type_generic = "TAG_TYPE_GENERIC" + tag_type_project = "TAG_TYPE_PROJECT" + tag_type_azure = "TAG_TYPE_AZURE" + tag_type_deployment = "TAG_TYPE_DEPLOYMENT" + + +class VariableFileEncoding(Enum): + file_encoding_unspecified = "FILE_ENCODING_UNSPECIFIED" + file_encoding_base64 = "FILE_ENCODING_BASE64" + + +class VariableGroupConditionOperator(Enum): + condition_operator_unspecified = "CONDITION_OPERATOR_UNSPECIFIED" + condition_operator_equalto = "CONDITION_OPERATOR_EQUALTO" + condition_operator_notequalto = "CONDITION_OPERATOR_NOTEQUALTO" + + +class VariableOptionVal(BaseModel): + label: str | None = Field( + default=None, description="Display label of the key in User-Agent" + ) + value: str | None = Field(default=None, description="Value of the key to be used") + + +class VariableVariableFormat(Enum): + variable_format_unspecified = "VARIABLE_FORMAT_UNSPECIFIED" + variable_format_text = "VARIABLE_FORMAT_TEXT" + variable_format_number = "VARIABLE_FORMAT_NUMBER" + variable_format_file = "VARIABLE_FORMAT_FILE" + variable_format_dropdown = "VARIABLE_FORMAT_DROPDOWN" + variable_format_boolean = "VARIABLE_FORMAT_BOOLEAN" + variable_format_password = "VARIABLE_FORMAT_PASSWORD" + + +class Vfs(BaseModel): + count: conint(le=255) | None = Field( + default=None, + description="The number of Virtual Functions for given Physical Function. Only applies for IO_TYPE_ETH_PF.", + ) + + +class VmBootloaderMode(Enum): + vm_bootloader_mode_unspecified = "VM_BOOTLOADER_MODE_UNSPECIFIED" + vm_bootloader_mode_legacy = "VM_BOOTLOADER_MODE_LEGACY" + vm_bootloader_mode_uefi = "VM_BOOTLOADER_MODE_UEFI" + + +class VolumeInstanceAccessMode(Enum): + volume_instance_access_mode_invalid = "VOLUME_INSTANCE_ACCESS_MODE_INVALID" + volume_instance_access_mode_readwrite = "VOLUME_INSTANCE_ACCESS_MODE_READWRITE" + volume_instance_access_mode_readonly = "VOLUME_INSTANCE_ACCESS_MODE_READONLY" + volume_instance_access_mode_multiread_singlewrite = ( + "VOLUME_INSTANCE_ACCESS_MODE_MULTIREAD_SINGLEWRITE" + ) + + +class VolumeInstanceType(Enum): + volume_instance_type_unspecified = "VOLUME_INSTANCE_TYPE_UNSPECIFIED" + volume_instance_type_emptydir = "VOLUME_INSTANCE_TYPE_EMPTYDIR" + volume_instance_type_blockstorage = "VOLUME_INSTANCE_TYPE_BLOCKSTORAGE" + volume_instance_type_hostfs = "VOLUME_INSTANCE_TYPE_HOSTFS" + volume_instance_type_tmpfs = "VOLUME_INSTANCE_TYPE_TMPFS" + volume_instance_type_secret = "VOLUME_INSTANCE_TYPE_SECRET" + volume_instance_type_nfs = "VOLUME_INSTANCE_TYPE_NFS" + volume_instance_type_aws_block_storage = "VOLUME_INSTANCE_TYPE_AWS_BLOCK_STORAGE" + volume_instance_type_content_tree = "VOLUME_INSTANCE_TYPE_CONTENT_TREE" + + +class ZCellularControlProtocol(Enum): + z_cellular_control_protocol_unspecified = "Z_CELLULAR_CONTROL_PROTOCOL_UNSPECIFIED" + z_cellular_control_protocol_qmi = "Z_CELLULAR_CONTROL_PROTOCOL_QMI" + z_cellular_control_protocol_mbim = "Z_CELLULAR_CONTROL_PROTOCOL_MBIM" + + +class ZCellularOperatingState(Enum): + z_cellular_operating_state_unspecified = "Z_CELLULAR_OPERATING_STATE_UNSPECIFIED" + z_cellular_operating_state_offline = "Z_CELLULAR_OPERATING_STATE_OFFLINE" + z_cellular_operating_state_radio_off = "Z_CELLULAR_OPERATING_STATE_RADIO_OFF" + z_cellular_operating_state_online = "Z_CELLULAR_OPERATING_STATE_ONLINE" + z_cellular_operating_state_online_and_connected = ( + "Z_CELLULAR_OPERATING_STATE_ONLINE_AND_CONNECTED" + ) + z_cellular_operating_state_unrecognized = "Z_CELLULAR_OPERATING_STATE_UNRECOGNIZED" + + +class ZManufacturerInfo(BaseModel): + manufacturer: str | None = None + product_name: str | None = Field(default=None, alias="productName") + version: str | None = None + serial_number: str | None = Field(default=None, alias="serialNumber") + uuid: str | None = None + compatible: str | None = None + bios_vendor: str | None = Field(default=None, alias="biosVendor") + bios_version: str | None = Field(default=None, alias="biosVersion") + bios_release_date: str | None = Field(default=None, alias="biosReleaseDate") + h_sm_status: DeviceHWSecurityModuleStatus | None = Field( + default="DEVICE_HW_SECURITY_MODULE_STATUS_UNSPECIFIED", alias="hSMStatus" + ) + h_sm_info: str | None = Field(default=None, alias="hSMInfo") + endorsement_key: str | None = Field(default=None, alias="endorsementKey") + + +class ZcOpsStatus(Enum): + ops_status_unspecified = "OPS_STATUS_UNSPECIFIED" + ops_status_pending = "OPS_STATUS_PENDING" + ops_status_ongoing = "OPS_STATUS_ONGOING" + ops_status_complete = "OPS_STATUS_COMPLETE" + + +class ZcOpsType(Enum): + ops_type_unspecified = "OPS_TYPE_UNSPECIFIED" + ops_type_read = "OPS_TYPE_READ" + ops_type_delete = "OPS_TYPE_DELETE" + ops_type_create = "OPS_TYPE_CREATE" + ops_type_update = "OPS_TYPE_UPDATE" + ops_type_list = "OPS_TYPE_LIST" + + +class ZedCloudOpsCmd(BaseModel): + counter: float | None = Field(default=None, description="counter") + ops_time: dict[str, Any] | None = Field( + default=None, alias="opsTime", description="Timestamp: Operational time" + ) + + +class ZedcloudCounters(BaseModel): + if_name: str | None = Field(default=None, alias="ifName", description="ifName") + failures: float | None = Field(default=None, description="Failures") + success: float | None = Field(default=None, description="Success") + last_failure: dict[str, Any] | None = Field( + default=None, alias="lastFailure", description="Timestamp of last failure" + ) + last_success: dict[str, Any] | None = Field( + default=None, alias="lastSuccess", description="Timestamp of last success" + ) + + +class ZsrvErrorCode(Enum): + z_msg_error_none = "zMsgErrorNone" + z_msg_sucess = "zMsgSucess" + not_found = "NotFound" + already_exists = "AlreadyExists" + version_mismatch = "VersionMismatch" + range_error = "RangeError" + large_result = "LargeResult" + incomplete_data = "IncompleteData" + invalid_data = "InvalidData" + function_unsupported = "FunctionUnsupported" + no_memory = "NoMemory" + send_failure = "SendFailure" + timeout = "Timeout" + bad_req_body = "BadReqBody" + bad_req_param = "BadReqParam" + invalid_field_format = "InvalidFieldFormat" + url_not_found = "UrlNotFound" + api_version_not_supported = "ApiVersionNotSupported" + unauthorized = "Unauthorized" + forbidden = "Forbidden" + conflict = "Conflict" + not_modified = "NotModified" + dependency_conflict = "DependencyConflict" + json_fmt_error = "JsonFmtError" + proto_fmt_error = "ProtoFmtError" + cert_error = "CertError" + data_base_connection = "DataBaseConnection" + db_error = "DBError" + z_msg_accepted = "zMsgAccepted" + z_msg_created = "zMsgCreated" + pre_condition_failed = "PreConditionFailed" + internal_server_error = "InternalServerError" + + +class AppACEMatch(BaseModel): + type: str = Field(..., description="Type") + value: str = Field(..., description="Value") + + +class AppMapParams(BaseModel): + port: float = Field(..., description="Application port") + + +class CommonCellularIPType(Enum): + cellular_ip_type_unspecified = "CELLULAR_IP_TYPE_UNSPECIFIED" + cellular_ip_type_ipv4 = "CELLULAR_IP_TYPE_IPV4" + cellular_ip_type_ipv4_and_ipv6 = "CELLULAR_IP_TYPE_IPV4_AND_IPV6" + cellular_ip_type_ipv6 = "CELLULAR_IP_TYPE_IPV6" + + +class CommonCipherBlock(BaseModel): + cipher_context_id: str | None = Field( + default=None, alias="cipherContextId", title="cipher context id" + ) + initial_value: Base64Str | None = Field( + default=None, + alias="initialValue", + title="Initial Value for Symmetric Key derivation", + ) + cipher_data: Base64Str | None = Field( + default=None, alias="cipherData", title="encrypted sensitive data" + ) + clear_text_sha256: Base64Str | None = Field( + default=None, + alias="clearTextSha256", + title="sha256 of the plaintext sensitive data", + ) + + +class CommonConnectivityProbeMethod(Enum): + connectivity_probe_method_unspecified = "CONNECTIVITY_PROBE_METHOD_UNSPECIFIED" + connectivity_probe_method_icmp = "CONNECTIVITY_PROBE_METHOD_ICMP" + connectivity_probe_method_tcp = "CONNECTIVITY_PROBE_METHOD_TCP" + + +class CommonNetworkConfigOrigin(Enum): + network_config_origin_unspecified = "NETWORK_CONFIG_ORIGIN_UNSPECIFIED" + network_config_origin_controller = "NETWORK_CONFIG_ORIGIN_CONTROLLER" + network_config_origin_bootstrap = "NETWORK_CONFIG_ORIGIN_BOOTSTRAP" + network_config_origin_override = "NETWORK_CONFIG_ORIGIN_OVERRIDE" + network_config_origin_lastresort = "NETWORK_CONFIG_ORIGIN_LASTRESORT" + network_config_origin_tui = "NETWORK_CONFIG_ORIGIN_TUI" + network_config_origin_loc = "NETWORK_CONFIG_ORIGIN_LOC" + network_config_origin_lps = "NETWORK_CONFIG_ORIGIN_LPS" + + +class CommonPortConfigSource(BaseModel): + origin: CommonNetworkConfigOrigin | None = "NETWORK_CONFIG_ORIGIN_UNSPECIFIED" + submitted_at: AwareDatetime | None = Field( + default=None, + alias="submittedAt", + description="Timestamp when this port’s configuration was originally submitted\nor created at its source.\n\nMeaning depends on the origin:\n- Controller, LOC, bootstrap: timestamp provided by the controller.\n- Local override.json: when the file was first loaded by EVE.\n- Last-resort: when EVE generated the fallback config.\n- LPS modifications: when the modified config was received.\n- TUI: when the user submitted the configuration.\n\nThis is different from DevicePortStatus.timePriority, which is used\nto compare and prioritize different sources of network configuration\n(and may be synthetic for some sources, e.g. year 2000 for override.json,\nepoch 0 for last-resort). By contrast, submitted_at represents when this\nport’s configuration first came into existence, regardless of when or whether\nthe device applied it.\n\nNote: this is a per-port timestamp. The underlying network config may\ncover multiple ports, but only the portion relevant to this port is\nreflected here.", + ) + + +class CommonProbeEndpoint(BaseModel): + host: str | None = Field(default=None, description="IP address or FQDN.") + port: int | None = Field( + default=None, + description="TCP port required for CONNECTIVITY_PROBE_METHOD_TCP.\nLeave empty for CONNECTIVITY_PROBE_METHOD_ICMP.", + ) + + +class ConfigFormat(Enum): + fmt_unknown = "FmtUnknown" + raw = "RAW" + qcow = "QCOW" + qcow2 = "QCOW2" + vhd = "VHD" + vmdk = "VMDK" + ova = "OVA" + vhdx = "VHDX" + container = "CONTAINER" + iso = "ISO" + pvc = "PVC" + + +class DhcpIpRange(BaseModel): + start: str | None = Field(default=None, description="starting IP") + end: str | None = Field(default=None, description="ending IP") + + +class EvecommonCellularAuthProtocol(Enum): + cellular_auth_protocol_none = "CELLULAR_AUTH_PROTOCOL_NONE" + cellular_auth_protocol_pap = "CELLULAR_AUTH_PROTOCOL_PAP" + cellular_auth_protocol_chap = "CELLULAR_AUTH_PROTOCOL_CHAP" + cellular_auth_protocol_pap_and_chap = "CELLULAR_AUTH_PROTOCOL_PAP_AND_CHAP" + + +class EvecommonRadioAccessTechnology(Enum): + radio_access_technology_unspecified = "RADIO_ACCESS_TECHNOLOGY_UNSPECIFIED" + radio_access_technology_gsm = "RADIO_ACCESS_TECHNOLOGY_GSM" + radio_access_technology_umts = "RADIO_ACCESS_TECHNOLOGY_UMTS" + radio_access_technology_lte = "RADIO_ACCESS_TECHNOLOGY_LTE" + radio_access_technology_5_gnr = "RADIO_ACCESS_TECHNOLOGY_5GNR" + + +class HvMode(Enum): + hv_pv = "HV_PV" + hv_hvm = "HV_HVM" + hv_fml = "HV_FML" + hv_nohyper = "HV_NOHYPER" + hv_legacy = "HV_LEGACY" + + +class InfoAPICapability(Enum): + api_capability_unspecified = "API_CAPABILITY_UNSPECIFIED" + api_capability_retry_update = "API_CAPABILITY_RETRY_UPDATE" + api_capability_shutdown = "API_CAPABILITY_SHUTDOWN" + api_capability_start_delay_in_seconds = "API_CAPABILITY_START_DELAY_IN_SECONDS" + api_capability_edgeview = "API_CAPABILITY_EDGEVIEW" + api_capability_volume_snapshots = "API_CAPABILITY_VOLUME_SNAPSHOTS" + api_capability_network_instance_routing = "API_CAPABILITY_NETWORK_INSTANCE_ROUTING" + api_capability_boot_mode = "API_CAPABILITY_BOOT_MODE" + api_capability_mtu = "API_CAPABILITY_MTU" + api_capability_adapter_user_labels = "API_CAPABILITY_ADAPTER_USER_LABELS" + api_capability_enforced_net_interface_order = ( + "API_CAPABILITY_ENFORCED_NET_INTERFACE_ORDER" + ) + api_capability_ntps_fqdn = "API_CAPABILITY_NTPS_FQDN" + api_capability_win_lic_passthrough = "API_CAPABILITY_WIN_LIC_PASSTHROUGH" + api_capability_volume_snapshots_immediate = ( + "API_CAPABILITY_VOLUME_SNAPSHOTS_IMMEDIATE" + ) + api_capability_encrypted_patch_envelope = "API_CAPABILITY_ENCRYPTED_PATCH_ENVELOPE" + api_capability_single_stack_ip_network = "API_CAPABILITY_SINGLE_STACK_IP_NETWORK" + api_capability_cellular_attach_config = "API_CAPABILITY_CELLULAR_ATTACH_CONFIG" + api_capability_edgeview_authentication = "API_CAPABILITY_EDGEVIEW_AUTHENTICATION" + api_capability_disable_vtpm = "API_CAPABILITY_DISABLE_VTPM" + api_capability_loc_reboot_collect_info = "API_CAPABILITY_LOC_REBOOT_COLLECT_INFO" + api_capability_smart_report = "API_CAPABILITY_SMART_REPORT" + api_capability_report_tpm_eventlog = "API_CAPABILITY_REPORT_TPM_EVENTLOG" + + +class IoMember(BaseModel): + ztype: IoType + phylabel: str = Field(..., description="Physical Label") + phyaddrs: dict[str, str] = Field(..., description="Map of Physical Addresses") + logicallabel: str = Field(..., description="Logical Label") + assigngrp: str = Field(..., description="Assign Group") + usage: AdapterUsage | None = "ADAPTER_USAGE_UNSPECIFIED" + cbattr: dict[str, str] | None = Field( + default=None, description="attributes", title="physical and logical attributes" + ) + usage_policy: dict[str, bool] | None = Field( + default=None, alias="usagePolicy", title="usagePolicy" + ) + cost: conint(le=255) = Field( + ..., description="cost of using this ioMember. Default is 0." + ) + vfs: Vfs | None = None + parentassigngrp: str | None = Field( + default=None, + description="Parent group for a IoMember. Can be empty if there is no parent group.", + ) + + +class PhyAdapter(BaseModel): + type: IoType | None = "IO_TYPE_UNSPECIFIED" + name: str | None = Field(default=None, description="Physical Adapter name") + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + + +class ProtobufAny(BaseModel): + type_url: str | None = Field(default=None, alias="typeUrl") + value: Base64Str | None = None + + +class ProtobufNullValue(Enum): + null_value = "NULL_VALUE" + + +class SpType(Enum): + sptype_invalidsrv = "SPTYPE_INVALIDSRV" + sptype_mapserver = "SPTYPE_MAPSERVER" + sptype_supportserver = "SPTYPE_SUPPORTSERVER" + + +class TagConfigStatus(BaseModel): + id: ( + constr( + pattern=r"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + ) + | None + ) = Field( + default=None, + description="System defined universally unique Id of the resource group.", + ) + name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined name of the resource group, unique across the enterprise. Once resource group is created, name can’t be changed.", + ) + status: TagStatus | None = "TAG_STATUS_UNSPECIFIED" + cloud_policy_type: PolicyType | None = Field( + default="POLICY_TYPE_UNSPECIFIED", alias="cloudPolicyType" + ) + attest_policy_type: AttestPolicyType | None = Field( + default="ATTEST_POLICY_TYPE_UNSPECIFIED", alias="attestPolicyType" + ) + app_policy_id: str | None = Field( + default=None, alias="appPolicyId", description="app policy Id" + ) + app_policy_name: str | None = Field( + default=None, alias="appPolicyName", description="app policy name" + ) + network_policy_id: str | None = Field( + default=None, alias="networkPolicyId", description="network policy Id" + ) + network_device_default: bool | None = Field( + default=None, + alias="networkDeviceDefault", + description="flag to indicate if this is the default network instance for the device", + ) + edgeview_allow: bool | None = Field( + default=None, + alias="edgeviewAllow", + description="edgeview is allowed or not for devices in project", + ) + edgeview_session_count: int | None = Field( + default=None, + alias="edgeviewSessionCount", + description="total count of devices enabled with edgeview session", + ) + type: TagType | None = "TAG_TYPE_UNSPECIFIED" + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + + +class Vm(BaseModel): + cpus: float = Field(..., description="CPUs") + memory: float = Field(..., description="Memory") + mode: HvMode + vnc: bool = Field(..., description="VNC") + vnc_display: float | None = Field( + default=None, alias="vncDisplay", description="VNC display" + ) + cpu_pinning_enabled: bool | None = Field( + default=None, alias="cpuPinningEnabled", description="Enable CpuPinning" + ) + vmm_maxmem: int | None = Field( + default=None, + alias="vmmMaxmem", + description="Maximum amount of memory in kbytes allowed for VM monitor to occupy", + ) + bootloader_mode: VmBootloaderMode | None = Field( + default="VM_BOOTLOADER_MODE_UNSPECIFIED", alias="bootloaderMode" + ) + enable_oem_win_license_key: bool | None = Field( + default=None, + alias="enableOemWinLicenseKey", + description="Enable device which has VM to receive the Windows license embedded in the ACPI tables", + ) + disable_vtpm: bool | None = Field( + default=None, + alias="disableVTPM", + description="Disable vTPM for virtual machines (VM)", + ) + + +class AclAction(BaseModel): + drop: bool | None = Field( + default=None, description="Drop the packet", title="Not used by ZedUI" + ) + limit: bool | None = Field( + default=None, + description="UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + title="Limit action on ACL rule", + ) + limit_value: LimitParams | None = Field(default=None, alias="limitValue") + limitrate: int | None = Field( + default=None, + description="UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + title="Rate limit in ACL rule", + ) + limitunit: str | None = Field( + default=None, + description="UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + title="Rate limit unit in ACL rule", + ) + limitburst: int | None = Field( + default=None, + description="UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + title="Rate limit burst in ACL rule", + ) + portmap: bool | None = Field( + default=None, + description="UI map: AppDetailsPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + title="Enable device to app port mapping for incoming ACL rule, implicitly added by ZedUI code", + ) + portmapto: MapParams | None = None + + +class AzureResourceAndServiceDetail(BaseModel): + name: str | None = None + create_by_default: bool | None = Field(default=None, alias="createByDefault") + region: str | None = None + sku: SKUDetail | None = Field(default=None, alias="SKU") + subscription_id: str | None = Field(default=None, alias="subscriptionId") + resource_group_name: str | None = Field(default=None, alias="resourceGroupName") + + +class BlobStatus(BaseModel): + hash: str | None = None + ref_count: str | None = Field(default=None, alias="refCount") + sw_state: SWState | None = Field(default="SW_STATE_UNSPECIFIED", alias="swState") + size_mb: str | None = Field(default=None, alias="sizeMB") + + +class CEPCommonCSRProfile(BaseModel): + common_name: str = Field( + ..., + alias="commonName", + description="Common Name (CN) - typically the device identifier or hostname", + ) + organization: str | None = Field( + default=None, description="Organization (O) - company or entity name" + ) + organizational_unit: str | None = Field( + default=None, + alias="organizationalUnit", + description="Organizational Unit (OU) - department or division", + ) + country: str | None = Field( + default=None, description="Country (C) - two-letter ISO country code" + ) + state: str | None = Field(default=None, description="State or Province (ST)") + locality: str | None = Field(default=None, description="Locality (L) - city name") + san_uri: list[str] | None = Field( + default=None, + alias="sanUri", + description="URIs for Subject Alternative Name extension", + ) + san_email: list[str] | None = Field( + default=None, + alias="sanEmail", + description="Email addresses for Subject Alternative Name extension", + ) + renew_period_percent: int | None = Field( + default=None, + alias="renewPeriodPercent", + description="Percentage of certificate validity period after which renewal should be attempted (e.g., 80 means renew when 80% of validity has passed)", + ) + key_type: CEPCommonKeyType | None = Field( + default="KEY_TYPE_UNSPECIFIED", alias="keyType" + ) + hash_algorithm: CEPCommonHashAlgorithm | None = Field( + default="HASH_ALGORITHM_UNSPECIFIED", alias="hashAlgorithm" + ) + + +class CEPCommonSCEPProfile(BaseModel): + id: str | None = Field( + default=None, description="System-generated unique identifier (UUID)" + ) + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field(..., description="User-defined unique name for the profile") + title: ( + constr(pattern=r"[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+", min_length=3, max_length=256) + | None + ) = Field(default=None, description="Human-readable display title") + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the profile purpose" + ) + scep_url: str = Field( + ..., + alias="scepUrl", + description="Full SCEP server URL including scheme, host, and path (e.g., https://ca.example.com/scep)", + ) + use_controller_proxy: bool | None = Field( + default=None, + alias="useControllerProxy", + description="If true, SCEP requests are routed through the controller proxy; if false, device connects directly to SCEP server", + ) + secret: CEPCommonSCEPProfileSecrets | None = None + encrypted_secrets: dict[str, str] | None = Field( + default=None, + alias="encryptedSecrets", + description="Encrypted secret data (set by server, do not modify)", + ) + crypto_key: str | None = Field( + default=None, + alias="cryptoKey", + description="Encryption key reference (set by server, do not modify)", + ) + ca_cert_pem: list[Base64Str] = Field( + ..., + alias="caCertPem", + description="PEM-encoded trusted CA certificates for SCEP server validation (per RFC8894 section 2.2)", + ) + csr_profile: CEPCommonCSRProfile = Field(..., alias="csrProfile") + enterprise_id: str | None = Field( + default=None, + alias="enterpriseId", + description="Enterprise ID owning this profile", + ) + revision: ObjectRevision | None = None + projects_list: list[CEPCommonProjectReference] | None = Field( + default=None, + alias="projectsList", + description="Projects referencing this CEP profile (populated only when showProjectsList=true)", + ) + profile_in_use: bool | None = Field( + default=None, + alias="profileInUse", + description="True if linked to at least one project, false otherwise", + ) + + +class CEPCommonSCEPProfiles(BaseModel): + list_: list[CEPCommonSCEPProfile] | None = Field( + default=None, alias="list", description="List of SCEP profiles" + ) + next: Cursor | None = None + + +class Certificate(BaseModel): + cert: str | None = Field( + default=None, + description="base64 string of the parent certificate", + title="certificate details", + ) + pvt_key: str | None = Field( + default=None, alias="pvtKey", description="base64 string of the parent pvt key" + ) + public_key: str | None = Field( + default=None, alias="publicKey", description="base63 string of the public key" + ) + pass_phrase: str | None = Field( + default=None, + alias="passPhrase", + description="pass phase for the pvt key, this has to be filled if pvt key is encrypted with a pass phrase", + ) + exportable: bool | None = Field( + default=None, description="Indicates if the private key can be exported." + ) + reuse_key: bool | None = Field( + default=None, + alias="reuseKey", + description="Indicates if the same key pair will be used on certificate renewal.", + ) + encrypted_secrets: dict[str, str] | None = Field( + default=None, + alias="encryptedSecrets", + description="user encrypted secrets map", + title="secrets encryption", + ) + crypto_key: str | None = Field( + default=None, + alias="cryptoKey", + description="Crypto Key for decrypting user secret information", + ) + public_key_algorithm: str | None = Field( + default=None, + alias="publicKeyAlgorithm", + description="Public key algorithm.", + title="encryption algorithm", + ) + rsa_ecryption: RSA | None = Field(default=None, alias="rsaEcryption") + ecdsa_encryption: ECDSA | None = Field(default=None, alias="ecdsaEncryption") + valid_from: AwareDatetime | None = Field( + default=None, + alias="validFrom", + description="Certificate validatity start time", + title="certificate validity", + ) + valid_till: AwareDatetime | None = Field( + default=None, alias="validTill", description="Certificate validatity start time" + ) + san_values: SANValues | None = Field(default=None, alias="sanValues") + subject: Subject | None = None + issuer: Subject | None = None + serial_number: str | None = Field( + default=None, + alias="serialNumber", + description="Unique identifier for each Certificate generated by an Certificate Issuer. ", + ) + basic_contraints_valid: bool | None = Field( + default=None, + alias="basicContraintsValid", + description="This fields tells the basic constraints like isCA are correct.", + ) + key_usage: int | None = Field( + default=None, + alias="keyUsage", + description="Key usage extensions define the purpose of the public key contained in a certificate.", + ) + extended_key_usage: list[str] | None = Field( + default=None, + alias="extendedKeyUsage", + description="Sequence of extended key usages.", + ) + signature_algorithm: str | None = Field(default=None, alias="signatureAlgorithm") + + +class CertificateEnrollmentDetail(BaseModel): + type: EnrollmentType | None = "ENROLLMENT_TYPE_UNSPECIFIED" + individual_certificate_enrollment: IndividualCertificateEnrollment | None = Field( + default=None, alias="individualCertificateEnrollment" + ) + group_certificate_enrollment: GroupCertificateEnrollment | None = Field( + default=None, alias="groupCertificateEnrollment" + ) + + +class ClusterInstPolicy(BaseModel): + id: str | None = Field(default=None, alias="Id") + name: str | None = Field(default=None, alias="Name") + title: str | None = None + revision: ObjectRevision | None = None + + +class ClusterNodeStatus(BaseModel): + age: int | None = None + internal_ip: str | None = Field(default=None, alias="internalIP") + conditions: str | None = None + node_type: ClusterNodeType | None = Field( + default="CLUSTER_NODE_TYPE_UNSPECIFIED", alias="nodeType" + ) + + +class ClusterPolicy(BaseModel): + type: ClusterType + app_policy_id: constr(pattern=r"[0-9-a-z-]+") = Field( + ..., + alias="appPolicyID", + description="UUID of the app policy linked to this cluster policy", + ) + network_policy_id: constr(pattern=r"[0-9-a-z-]+") = Field( + ..., + alias="networkPolicyID", + description="UUID of the network policy linked to this cluster policy", + ) + cluster_config: ClusterConfig | None = Field(default=None, alias="clusterConfig") + + +class DeploymentConfigSummary(BaseModel): + id: str | None = Field( + default=None, description="system generated unique id for an deployment" + ) + name: str | None = Field(default=None, description="user defined deployment name") + title: str | None = Field(default=None, description="user defined deployment title") + app_inst_policies: list[PolicyCommon] | None = Field( + default=None, + alias="appInstPolicies", + description="list of app instance policies", + ) + network_inst_policies: list[PolicyCommon] | None = Field( + default=None, + alias="networkInstPolicies", + description="list of network instance policies", + ) + volume_inst_policies: list[PolicyCommon] | None = Field( + default=None, + alias="volumeInstPolicies", + description="list of volume instance policies", + ) + device_policies: list[PolicyCommon] | None = Field( + default=None, alias="devicePolicies", description="list of device policies" + ) + integration_policy: PolicyCommon | None = Field( + default=None, alias="integrationPolicy" + ) + cluster_policy: PolicyCommon | None = Field(default=None, alias="clusterPolicy") + revision: ObjectRevision | None = None + deployment_tag: str | None = Field( + default=None, + alias="deploymentTag", + description="user defined tag for an deployment", + ) + edge_view_policy: PolicyCommon | None = Field(default=None, alias="edgeViewPolicy") + + +class Deployments(BaseModel): + summary_by_state: Summary | None = Field(default=None, alias="summaryByState") + list_: list[DeploymentConfigSummary] | None = Field( + default=None, + alias="list", + description="deployment instance summary list response", + ) + next: Cursor | None = None + + +class DeviceEntity(BaseModel): + entity: Entity | None = "ENTITY_UNSPECIFIED" + entity_id: str | None = Field(default=None, alias="entityId") + entity_name: str | None = Field(default=None, alias="entityName") + + +class DeviceError(BaseModel): + description: str = Field(..., description="Description of the error") + severity: Severity + timestamp: dict[str, Any] = Field( + ..., description="Timestamp at which error had occurred" + ) + entities: list[DeviceEntity] = Field( + ..., description="objects referenced by the description or retry_condition" + ) + retry_condition: str | None = Field( + default=None, alias="retryCondition", description="condition for retry" + ) + + +class DeviceLisp(BaseModel): + lisp_map_servers: list[LispServer] = Field( + ..., alias="lispMapServers", description="List of Lisp servers" + ) + lisp_instance: float = Field(..., alias="lispInstance", description="LISP instance") + eid: str = Field(..., alias="EID", description="EID") + eid_hash_len: float = Field(..., alias="EIDHashLen", description="EID hash length") + zed_servers: list[DevZedServer] = Field( + ..., alias="zedServers", description="Zed development servers" + ) + eid_allocation_prefix: Base64Str = Field( + ..., alias="eidAllocationPrefix", description="EID allocation prefix" + ) + eid_allocation_prefix_len: float = Field( + ..., alias="eidAllocationPrefixLen", description="EID allocation prefix length" + ) + client_addr: str = Field(..., alias="clientAddr", description="Client Address") + mode: str = Field( + ..., + description="TEMP : flag to indicate which version of LISP data plane should be running on the device", + ) + + +class DevicePortBasedNetworkAccessControlPolicy(BaseModel): + enable_port_based_network_access_control: bool | None = Field( + default=None, + alias="enablePortBasedNetworkAccessControl", + description="Enable or disable port based network access control (802.1X). When disabled, other fields are ignored.", + ) + eap_method: EAPMethod | None = Field( + default="EAP_METHOD_UNSPECIFIED", alias="eapMethod" + ) + eap_identity: str | None = Field( + default=None, + alias="eapIdentity", + description="EAP identity string used for authentication", + title="EAP identity string used for authentication", + ) + certificate_enrollment_id: str | None = Field( + default=None, + alias="certificateEnrollmentId", + description="ID of the certificate enrollment object used for 802.1X authentication", + title="Reference to the certificate enrollment object used for 802.1X authentication", + ) + + +class DeviceSWInfo(BaseModel): + activated: bool | None = None + partition_label: str | None = Field(default=None, alias="partitionLabel") + partition_device: str | None = Field(default=None, alias="partitionDevice") + partition_state: str | None = Field(default=None, alias="partitionState") + status: SWState | None = "SW_STATE_UNSPECIFIED" + short_version: str | None = Field(default=None, alias="shortVersion") + long_version: str | None = Field(default=None, alias="longVersion") + sw_error: DeviceError | None = Field(default=None, alias="swError") + download_progress: int | None = Field(default=None, alias="downloadProgress") + sw_status: DeviceSWStatus | None = Field( + default="DEVICE_SW_STATUS_UNSPECIFIED", alias="swStatus" + ) + sw_sub_status: DeviceSWSubStatus | None = Field( + default="DEVICE_SW_SUB_STATUS_UNSPECIFIED", alias="swSubStatus" + ) + sw_sub_status_str: str | None = Field(default=None, alias="swSubStatusStr") + sub_status_progress: int | None = Field(default=None, alias="subStatusProgress") + is_lts: bool | None = Field( + default=None, + alias="isLTS", + description="flag to indicate device running LTS eve version or not", + ) + + +class DhcpServerConfig(BaseModel): + subnet: str | None = Field(default=None, description="Subnet address") + mask: str | None = Field(default=None, description="Subnet Mask") + gateway: str | None = Field( + default=None, description="IP Address of Network Gateway" + ) + domain: str | None = Field(default=None, description="Network domain") + ntp: str | None = Field( + default=None, + description="IP Address of NTP Server", + title="ntp will be deprecated", + ) + dns: list[str] | None = Field( + default=None, + description="IP Addresses of DNS servers", + title="possible DNS ip address", + ) + dhcp_range: DhcpIpRange | None = Field(default=None, alias="dhcpRange") + ntp_servers: list[NtpServer] | None = Field( + default=None, alias="ntpServers", description="NTP Servers" + ) + + +class EIDRegister(BaseModel): + app_cert: Base64Str = Field(..., alias="AppCert", description="app certificate") + app_public_key: Base64Str = Field( + ..., alias="AppPublicKey", description="App public key" + ) + app_private_key: Base64Str = Field( + ..., alias="AppPrivateKey", description="App private key" + ) + uuid: str = Field(..., alias="UUID", description="UUID") + display_name: str = Field(..., alias="DisplayName", description="Display name") + lisp_instance: float = Field(..., alias="LispInstance", description="Lisp Instance") + eid: str = Field(..., alias="EID", description="EID") + eid_hash_len: float = Field(..., alias="EIDHashLen", description="EID hash length") + lisp_signature: str = Field( + ..., alias="LispSignature", description="Lisp Signature" + ) + lisp_map_servers: list[LispServer] = Field( + ..., + alias="LispMapServers", + description="Lisp Map Server", + title="time CreateTime time.Time", + ) + + +class EdgeviewCfg(BaseModel): + jwt_info: JWTInfo | None = Field(default=None, alias="jwtInfo") + token: str | None = None + dev_policy: DevAccessPolicy | None = Field(default=None, alias="devPolicy") + app_policy: AppAccessPolicy | None = Field(default=None, alias="appPolicy") + ext_policy: ExtAccessPolicy | None = Field(default=None, alias="extPolicy") + generation_id: int | None = Field(default=None, alias="generationId") + require_controller_authen: bool | None = Field( + default=None, alias="requireControllerAuthen" + ) + + +class EdgeviewPolicy(BaseModel): + edgeviewcfg: EdgeviewCfg | None = None + edgeview_allow: bool = Field( + ..., + alias="edgeviewAllow", + description="Allow device to enable Edgeview in this project", + ) + access_allow_change: bool | None = Field( + default=None, + alias="accessAllowChange", + description="Allow inherit instance to change access policy", + ) + max_expire_sec: int | None = Field( + default=None, + alias="maxExpireSec", + description="Maximum seconds allowed for Edgeview session", + ) + max_inst: int | None = Field( + default=None, + alias="maxInst", + description="Maximum instances allowed for Edgeview", + ) + require_controller_authen: bool | None = Field( + default=None, + alias="requireControllerAuthen", + description="Whether controller authentication is required for Edgeview access", + ) + + +class EnrolledCertInfo(BaseModel): + cert_enrollment_profile_name: str | None = Field( + default=None, + alias="certEnrollmentProfileName", + description="Certificate enrollment profile name used to obtain this certificate", + ) + subject: CertDistinguishedName | None = None + issuer: CertDistinguishedName | None = None + san_dns: list[str] | None = Field( + default=None, alias="sanDns", description="DNS names from SAN" + ) + san_ip: list[str] | None = Field( + default=None, alias="sanIp", description="IP addresses from SAN" + ) + san_uri: list[str] | None = Field( + default=None, alias="sanUri", description="URIs from SAN" + ) + san_email: list[str] | None = Field( + default=None, alias="sanEmail", description="Email addresses from SAN" + ) + issue_timestamp: AwareDatetime | None = Field( + default=None, alias="issueTimestamp", description="Certificate validity period." + ) + expiration_timestamp: AwareDatetime | None = Field( + default=None, alias="expirationTimestamp" + ) + renew_period_percent: int | None = Field( + default=None, + alias="renewPeriodPercent", + description="Percentage of validity period after which renewal begins", + ) + sha256_fingerprint: str | None = Field( + default=None, + alias="sha256Fingerprint", + description="SHA-256 fingerprint of the certificate", + ) + status: EnrolledCertStatus | None = "ENROLLED_CERT_STATUS_UNSPECIFIED" + err: DeviceError | None = None + + +class EnrollmentDetail(BaseModel): + attached_iot_hubs_name: list[str] | None = Field( + default=None, alias="attachedIotHubsName" + ) + enable_iot_edge_device: bool | None = Field( + default=None, alias="enableIotEdgeDevice" + ) + mechanism: EnrollmentMechanism | None = "ENROLLMENT_MECHANISM_UNSPECIFIED" + tags: dict[str, str] | None = None + allocation_policy: AllocationPolicy | None = Field( + default="ALLOCATION_POLICY_UNSPECIFIED", alias="allocationPolicy" + ) + symmetric_key_enrollment: SymmetricKeyEnrollmentDetail | None = Field( + default=None, alias="symmetricKeyEnrollment" + ) + certificate_enrollment: CertificateEnrollmentDetail | None = Field( + default=None, alias="certificateEnrollment" + ) + tpm_enrollment: TPMEnrollmentDetail | None = Field( + default=None, alias="tpmEnrollment" + ) + + +class EventQueryResponseItem(BaseModel): + user: str | None = Field(default=None, description="User name") + project: str | None = Field(default=None, description="project name") + device: str | None = Field(default=None, description="device name") + instance: str | None = Field(default=None, description="instance name") + severity: str | None = Field( + default=None, description="severity: FIXME: should be ENUM" + ) + description: str | None = Field(default=None, description="Event description") + timestamp: dict[str, Any] | None = Field( + default=None, description="event timestamp" + ) + source: EventSource | None = "EVENT_SOURCE_UNSPECIFIED" + resource: str | None = Field(default=None, description="Event resources") + event_type: str | None = Field( + default=None, alias="eventType", description="Event type" + ) + tags: list[str] | None = Field(default=None, description="Event tags") + resource_name: str | None = Field( + default=None, alias="resourceName", description="Event resources" + ) + json_data: dict[str, Any] | None = Field( + default=None, alias="jsonData", description="Event resources" + ) + cluster_instance: str | None = Field( + default=None, alias="clusterInstance", description="clusterInstance name" + ) + + +class HardwareInfo(BaseModel): + disks: list[StorageDiskInfo] | None = None + + +class IntegrationPolicy(BaseModel): + id: str | None = Field(default=None, alias="Id") + name: str | None = Field(default=None, alias="Name") + title: str | None = None + revision: ObjectRevision | None = None + + +class IotHubServiceDetail(BaseModel): + service_detail: AzureResourceAndServiceDetail | None = Field( + default=None, alias="serviceDetail" + ) + + +class IpSpec(BaseModel): + deprecated_dhcp: bool | None = Field( + default=None, alias="deprecatedDhcp", title="deprecated" + ) + dhcp: NetworkDHCPType | None = "NETWORK_DHCP_TYPE_UNSPECIFIED" + subnet: str | None = None + mask: str | None = None + gateway: str | None = None + domain: str | None = None + ntp: str | None = Field(default=None, title="ntp will be deprecated") + dns: list[str] | None = None + dhcp_range: DhcpIpRange | None = Field(default=None, alias="dhcpRange") + ntp_servers: list[NtpServer] | None = Field(default=None, alias="ntpServers") + ntp_server_exclusively: bool | None = Field( + default=None, alias="ntpServerExclusively" + ) + + +class LTEAdapter(BaseModel): + sim_name: str | None = Field( + default=None, alias="simName", description="Name of SIM card." + ) + cell_module_name: str | None = Field( + default=None, alias="cellModuleName", description="Name of Cell Module" + ) + imsi: str | None = Field(default=None, description="imsi of the SIM") + iccid: str | None = Field(default=None, description="iccid of the SIM") + simcard_state: SimcardState | None = Field( + default="SIMCARD_STATE_INVALID", alias="simcardState" + ) + imei: str | None = Field(default=None, description="IMEI of Cell Radio.") + firmware_version: str | None = Field( + default=None, + alias="firmwareVersion", + description="Firmware Version of Cell Radio.", + ) + + +class MetricQueryResponse(BaseModel): + threshold: MetricThreshold | None = None + metric_type: str | None = Field(default=None, alias="metricType") + x_label: str | None = Field(default=None, alias="xLabel") + y_labels: list[str] | None = Field(default=None, alias="yLabels") + list_: list[MetricQueryResponseItem] | None = Field(default=None, alias="list") + + +class ModemDetail(BaseModel): + manufacturer: str | None = Field(default=None, description="Modem manufacturer") + model: str | None = Field(default=None, description="Modem model") + firmware_version: str | None = Field( + default=None, alias="firmwareVersion", description="Modem firmware version" + ) + imei: str | None = Field(default=None, description="Modem IMEI") + operating_state: ZCellularOperatingState | None = Field( + default="Z_CELLULAR_OPERATING_STATE_UNSPECIFIED", alias="operatingState" + ) + control_protocol: ZCellularControlProtocol | None = Field( + default="Z_CELLULAR_CONTROL_PROTOCOL_UNSPECIFIED", alias="controlProtocol" + ) + + +class ModuleDetail(BaseModel): + twin_detail: str | None = Field( + default=None, + alias="twinDetail", + description="Base64 encoded module twin details, desired properties of the module will be updated to reflect these values", + ) + routes: dict[str, str] | None = Field( + default=None, + description="Send messages between modules or send messages from modules to iot hub", + ) + environment: dict[str, str] | None = Field( + default=None, + description="Extra information to module to make configuration easier", + ) + module_type: ModuleType | None = Field( + default="MODULE_TYPE_UNSPECIFIED", alias="moduleType" + ) + + +class NetCellularAccessPoint(BaseModel): + sim_slot: int | None = Field( + default=None, + alias="simSlot", + description="SIM card slot to which this configuration applies.\n0 - unspecified (apply to currently activated or the only available)\n1 - config for SIM card in the first slot\n2 - config for SIM card in the second slot\netc.", + ) + apn: str | None = Field( + default=None, + description='Access Point Network to connect into.\nBy default it is "internet".', + ) + auth_protocol: EvecommonCellularAuthProtocol | None = Field( + default="CELLULAR_AUTH_PROTOCOL_NONE", alias="authProtocol" + ) + cipher_data: CommonCipherBlock | None = Field(default=None, alias="cipherData") + preferred_plmns: list[str] | None = Field( + default=None, + alias="preferredPlmns", + description='The set of cellular network operators that modem should preferably try to register\nand connect into.\nNetwork operator should be referenced by PLMN (Public Land Mobile Network) code,\nconsisting of 3-digits MCC (Mobile Country Code) and 2 or 3-digits MNC (Mobile Network Code),\nseparated by a dash, e.g. "310-260".\nIf empty, then modem will select the network automatically based on the SIM card config.', + ) + forbid_roaming: bool | None = Field( + default=None, + alias="forbidRoaming", + description="If true, then modem will avoid connecting to networks with roaming.", + ) + preferred_rats: list[EvecommonRadioAccessTechnology] | None = Field( + default=None, + alias="preferredRats", + description="The list of preferred Radio Access Technologies (RATs) to use for connecting\nto the network.\nOrder matters, first is the most preferred, second is tried next, etc.\nNot listed technologies will not be tried.\nIf empty, then modem will select RAT automatically.", + ) + ip_type: CommonCellularIPType | None = Field( + default="CELLULAR_IP_TYPE_UNSPECIFIED", alias="ipType" + ) + attach_apn: str | None = Field( + default=None, + alias="attachApn", + description="Access Point Name (APN) for the attach (initial) bearer.\nThis field is optional. If not specified, EVE will not send any attach bearer\nconfiguration to the modem. Instead, the modem will use one of its pre-installed\nprofiles (see CellularProfile) to determine the configuration.", + ) + attach_ip_type: CommonCellularIPType | None = Field( + default="CELLULAR_IP_TYPE_UNSPECIFIED", alias="attachIpType" + ) + attach_auth_protocol: CellularAuthProtocol | None = Field( + default="CELLULAR_AUTH_PROTOCOL_NONE", alias="attachAuthProtocol" + ) + secrets: NetCellularAccessPointSecrets | None = None + encrypted_secrets: dict[str, str] | None = Field( + default=None, alias="encryptedSecrets" + ) + crypto_key: str | None = Field(default=None, alias="cryptoKey") + attach_secrets: NetCellularAccessPointSecrets | None = Field( + default=None, alias="attachSecrets" + ) + attach_encrypted_secrets: dict[str, str] | None = Field( + default=None, alias="attachEncryptedSecrets" + ) + + +class NetProxyServer(BaseModel): + proto: NetworkProxyProto | None = "NETWORK_PROXY_PROTO_HTTP" + server: str | None = Field(default=None, description="Net Proxy Server") + port: float | None = Field(default=None, description="Net Proxy Port") + + +class NetProxyStatus(BaseModel): + network_proxy: bool | None = Field( + default=None, + alias="networkProxy", + description="Use pacfile (Auto discover or manual upload)", + title="Enable, the proxy configuration coming from network", + ) + proxies: list[NetProxyServer] | None = Field( + default=None, + description="protocol level proxies", + title="protocol level proxies", + ) + exceptions: str | None = Field(default=None, description="exceptions") + pacfile: str | None = Field( + default=None, + description="proxy configuration in a pacfile", + title="proxy configuration in a pacfile", + ) + network_proxy_url: str | None = Field( + default=None, + alias="networkProxyURL", + description="Network Proxy URL", + title="Direct URL for wpad.dat download", + ) + wpad_proxy_url: str | None = Field( + default=None, alias="wpadProxyURL", description="WPAD Proxy URL" + ) + + +class NetWifiConfig(BaseModel): + wifi_ssid: str | None = Field(default=None, alias="wifiSSID") + key_scheme: NetworkWiFiKeyScheme | None = Field( + default="NETWORK_WIFIKEY_SCHEME_UNSPECIFIED", alias="keyScheme" + ) + identity: str | None = None + secret: NetWifiConfigSecrets | None = None + crypto: NetWifiConfigNetcryptoblock | None = None + priority: int | None = None + encrypted_secrets: dict[str, str] | None = Field( + default=None, alias="encryptedSecrets" + ) + crypto_key: str | None = Field(default=None, alias="cryptoKey") + + +class NetworkProvider(BaseModel): + plmn: str | None = Field(default=None, description="PLMN code") + name: str | None = Field(default=None, description="Human-friendly name") + rat: RadioAccessTechnology | None = "RADIO_ACCESS_TECHNOLOGY_UNSPECIFIED" + roaming: bool | None = Field(default=None, description="Is Roaming ON") + connected_at: AwareDatetime | None = Field( + default=None, + alias="connectedAt", + description="Time when was the connection established", + ) + + +class NtpSource(BaseModel): + authenticated: bool | None = None + reachable: bool | None = None + reachability: int | None = None + state: NtpSourceState | None = "NTP_SOURCE_STATE_UNSPECIFIED" + mode: NtpSourceMode | None = "NTP_SOURCE_MODE_UNSPECIFIED" + hostname: str | None = None + src_addr: str | None = Field(default=None, alias="srcAddr") + src_port: int | None = Field(default=None, alias="srcPort") + dst_addr: str | None = Field(default=None, alias="dstAddr") + dst_port: int | None = Field(default=None, alias="dstPort") + leap: int | None = None + stratum: int | None = None + precision: int | None = None + ref_id: str | None = Field(default=None, alias="refId") + ref_time: AwareDatetime | None = Field(default=None, alias="refTime") + poll: int | None = None + flags: int | None = None + offset: float | None = None + delay: float | None = None + dispersion: float | None = None + jitter: float | None = None + root_delay: float | None = Field(default=None, alias="rootDelay") + root_disp: float | None = Field(default=None, alias="rootDisp") + + +class NtpSources(BaseModel): + source: list[NtpSource] | None = None + + +class ObjectTagFilter(BaseModel): + obj_id: str | None = Field( + default=None, alias="objId", description="Object Id which tags are associated." + ) + obj_name: str | None = Field( + default=None, + alias="objName", + description="Object name which tags are associated.", + ) + obj_type: ObjectType | None = Field( + default="OBJECT_TYPE_UNSPECIFIED", alias="objType" + ) + + +class PCRTemplate(BaseModel): + eve_version: str = Field( + ..., alias="eveVersion", description="EVE version related to the PCR template" + ) + firmware_version: str | None = Field( + default=None, + alias="firmwareVersion", + description="Firmware version related to the PCR template. If user doesn't set it, it will be set to '*'", + ) + pcr_values: list[PCRValue] = Field( + ..., alias="PCRValues", description="List of PCR values for the PCR template" + ) + id: ( + constr( + pattern=r"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + ) + | None + ) = Field( + default=None, + description="System defined universally unique Id of the PCR template. If not set in POST / PUT API calls, this will be treated as a new entry and a unique System Generated ID assigned.", + ) + name: constr(max_length=256) | None = Field( + default=None, + description="Name of the PCR template. The name is Unique among PCR templates for that System Model. If it is not specified, a system-generated name will be assigned.", + ) + + +class PCRTemplatesInfo(BaseModel): + templates: list[PCRTemplate] | None = Field( + default=None, description="List of templates" + ) + next: Cursor | None = None + + +class PCRTemplatesReq(BaseModel): + model_id: str | None = Field( + default=None, alias="modelId", description="device model identifier" + ) + templates: list[PCRTemplate] | None = Field( + default=None, description="List of templates" + ) + + +class PNACPortStatus(BaseModel): + enabled: bool | None = Field( + default=None, + description="Whether 802.1X authentication is enabled on this port", + ) + supplicant_state: PNACSupplicantState | None = Field( + default="PNAC_SUPPLICANT_STATE_UNSPECIFIED", alias="supplicantState" + ) + last_auth_timestamp: AwareDatetime | None = Field( + default=None, + alias="lastAuthTimestamp", + description="Timestamp of the most recent successful 802.1X authentication.", + ) + err: DeviceError | None = None + + +class PhysicalStorageDiskState(BaseModel): + disk: DiskDescription | None = None + status: PhysicalStorageStatus | None = "PHYSICAL_STORAGE_STATUS_UNSPECIFIED" + smart_status: str | None = Field(default=None, alias="smartStatus") + + +class ProjectInfo(BaseModel): + project_id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + alias="projectId", + description="system generated unique id for a project", + ) + project_name: str | None = Field( + default=None, alias="projectName", description="project name" + ) + type: TagType | None = "TAG_TYPE_UNSPECIFIED" + + +class ServicePoint(BaseModel): + type: SpType | None = "SPTYPE_INVALIDSRV" + name_or_ip: str | None = Field( + default=None, alias="NameOrIp", description="Service name/ service name" + ) + credential: str | None = Field( + default=None, alias="Credential", description="Service credentials" + ) + + +class SysBrand(BaseModel): + id: ( + constr( + pattern=r"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + ) + | None + ) = Field( + default=None, description="System defined universally unique Id of the brand." + ) + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field(..., description="user defined sys brand name") + title: constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+") = Field( + ..., description="user defined title for sys brand" + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the image." + ) + svg: str | None = Field( + default=None, description="Deprecated: base64 encoded string of svg file" + ) + attr: dict[str, str] | None = Field( + default=None, description="Map of " + ) + state: SysModelState | None = "SYS_MODEL_STATE_UNSPECIFIED" + revision: ObjectRevision | None = None + system_mfg_name: str | None = Field( + default=None, alias="systemMfgName", description="System Manufacturer name" + ) + logo: dict[str, str] | None = Field( + default=None, + description="Map of which holds the key:url for the logo artifact of the the brand", + ) + origin_type: Origin = Field(..., alias="originType") + + +class SysBrands(BaseModel): + terse: Summary | None = None + list_: list[SysBrand] | None = Field( + default=None, alias="list", description="List of filtered Sys Models" + ) + next: Cursor | None = None + + +class SysModel(BaseModel): + id: ( + constr( + pattern=r"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + ) + | None + ) = Field( + default=None, description="System defined universally unique Id of the model." + ) + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field(..., description="user defined model name") + title: constr( + pattern=r"[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined title of the model. Title can be changed at any time.", + ) + brand_id: constr( + pattern=r"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + ) = Field( + ..., + alias="brandId", + description="System defined universally unique Id of the brand.", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the model." + ) + state: SysModelState + revision: ObjectRevision | None = None + type: ModelArchType + attr: dict[str, str] = Field( + ..., description="Map of which defines attr" + ) + product_status: str | None = Field( + default=None, alias="productStatus", description="Product status" + ) + product_url: str | None = Field( + default=None, alias="productURL", description="Product URL" + ) + brand_name: str | None = Field( + default=None, alias="brandName", description="Brand name." + ) + io_member_list: list[IoMember] | None = Field( + default=None, alias="ioMemberList", description="List of IoMembers" + ) + logo: dict[str, str] | None = Field( + default=None, + description="Map of which holds the key:url for the logo artifact of the model", + ) + parent_detail: ObjectParentDetail | None = Field(default=None, alias="parentDetail") + origin_type: Origin = Field(..., alias="originType") + pcr_templates: list[PCRTemplate] | None = Field( + default=None, + alias="PCRTemplates", + description="PCR templates keyed by EVE version", + ) + is_imported: bool | None = Field( + default=None, + alias="isImported", + description="Flag to represent whether sysModel is imported", + ) + + +class SysModels(BaseModel): + terse: Summary | None = None + summary_by_device_distribution: Summary | None = Field( + default=None, alias="summaryByDeviceDistribution" + ) + summary_by_brand_distribution: Summary | None = Field( + default=None, alias="summaryByBrandDistribution" + ) + list_: list[SysModel] | None = Field( + default=None, alias="list", description="List of filtered Sys Models" + ) + next: Cursor | None = None + + +class TagStatusMsg(BaseModel): + id: ( + constr( + pattern=r"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + ) + | None + ) = Field( + default=None, + description="System defined universally unique Id of the resource group.", + ) + name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined name of the resource group, unique across the enterprise. Once resource group is created, name can’t be changed.", + ) + status: TagStatus | None = "TAG_STATUS_UNSPECIFIED" + type: TagType | None = "TAG_TYPE_UNSPECIFIED" + edgeview_session_count: int | None = Field( + default=None, + alias="edgeviewSessionCount", + description="total count of devices enabled with edgeview session", + ) + + +class TagsConfigStatus(BaseModel): + summary_by_state: Summary | None = Field(default=None, alias="summaryByState") + summary_by_type: Summary | None = Field(default=None, alias="summaryByType") + list_: list[TagConfigStatus] | None = Field( + default=None, + alias="list", + description="List of filtered resource group records", + ) + total_count: int | None = Field( + default=None, alias="totalCount", description="total count of projects" + ) + next: Cursor | None = None + + +class VMManifestImage(BaseModel): + imagename: str | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Image_Name_Field, AppDetailsPage:DrivesPane:Image_Name_Field", + ) + imageid: str | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Image_ID_Field, AppDetailsPage:DrivesPane:Image_ID_Field", + ) + imageformat: ConfigFormat | None = "FmtUnknown" + maxsize: str | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Max_Size_Field, AppDetailsPage:DrivesPane:Max_Size_Field", + ) + preserve: bool | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Preserve_Field, AppDetailsPage:DrivesPane:Preserve_Field", + ) + target: str | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Target_Field, AppDetailsPage:DrivesPane:Target_Field", + title="enum: Disk, Kernel, Initrd, RamDisk", + ) + drvtype: str | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Drive_Type_Field, AppDetailsPage:DrivesPane:Drive_Type_Field", + title="enum: CDROM, HDD, NET", + ) + params: list[Param] | None = Field(default=None, title="Not used by ZedUI") + readonly: bool | None = Field(default=None, title="Not used by ZedUI") + volumelabel: str | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Volume_Label, AppDetailsPage:DrivesPane:Volume_Label", + ) + ignorepurge: bool | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Ignorepurge, AppDetailsPage:DrivesPane:Ignorepurgee_Field", + ) + cleartext: bool | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Cleartext, AppDetailsPage:DrivesPane:ClearText_Field", + ) + mountpath: str | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Mountpath, AppDetailsPage:DrivesPane:Mountpath_Field", + ) + imagestatus: str | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:Image_Status_Field, AppDetailsPage:DrivesPane:Image_Status_Field", + title="enum: UNSPECIFIED, CREATED, PENDING, UPLOADING, READY, INUSE, ARCHIVED, MAX, FAILED, UPLINKING", + ) + datastore: list[ImageDatastore] | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane:DataStore_Field, AppDetailsPage:DrivesPane:DataStore_Field", + ) + + +class VariableGroupCondition(BaseModel): + name: str | None = None + value: str | None = None + operator: VariableGroupConditionOperator | None = "CONDITION_OPERATOR_UNSPECIFIED" + + +class VariableGroupVariable(BaseModel): + type: str | None = None + name: str = Field(..., description="Name of the Variable (Required)") + label: str = Field(..., description="Label for the variable (Required)") + max_length: str | None = Field( + default=None, + alias="maxLength", + description="Max length of the value of the variable(Optional. Default: 1024)", + ) + required: bool = Field( + ..., + description="This variable MUST be specified when creating an App Instance. (Optional. Default: False)", + ) + default: str | None = Field( + default=None, + description="Default value of the variable. (Optional. Default: )", + ) + process_input: str | None = Field(default=None, alias="processInput") + value: str | None = Field( + default=None, + description="User-specified value of the variable.(Required if required is true. Optional otherwise)", + ) + format: VariableVariableFormat + encode: VariableFileEncoding | None = "FILE_ENCODING_UNSPECIFIED" + options: list[VariableOptionVal] | None = Field( + default=None, + description="Key-Value pair of options. Applicable if format is VARIABLE_FORMAT_DROPDOWN", + ) + + +class VolumeInstConfig(BaseModel): + type: VolumeInstanceType | None = "VOLUME_INSTANCE_TYPE_UNSPECIFIED" + multiattach: bool | None = Field( + default=None, + description="flag to enable the volume to be attached to multiple app instances", + ) + cleartext: bool | None = Field( + default=None, + description="flag to keep the contents of the volume unencrypted (in clear text)", + ) + accessmode: VolumeInstanceAccessMode | None = "VOLUME_INSTANCE_ACCESS_MODE_INVALID" + size_bytes: int | None = Field( + default=None, alias="sizeBytes", description="size of volume" + ) + image: str | None = Field(default=None, description="name of the image") + content_tree_id: str | None = Field( + default=None, alias="contentTreeId", description="content tree ID" + ) + label: str | None = Field(default=None, description="label") + purge: ZedCloudOpsCmd | None = None + content_tree_target_condition: dict[str, str] | None = Field( + default=None, + alias="contentTreeTargetCondition", + description="user defined key-value pairs of a content tree that will be used for targeting by block storage", + ) + block_storage_tags: dict[str, str] | None = Field( + default=None, + alias="blockStorageTags", + description="user defined key-value pairs of a block storage, will be used for targeting content tree", + ) + + +class VolumeInstPolicy(BaseModel): + meta_data: PolicyCommon | None = Field(default=None, alias="metaData") + vol_inst_config: VolumeInstConfig | None = Field( + default=None, alias="volInstConfig" + ) + + +class ZsrvError(BaseModel): + ec: ZsrvErrorCode | None = "zMsgErrorNone" + location: str | None = Field(default=None, title="Ignore: Internal field only") + details: str | None = Field( + default=None, title="Field captures string description of details" + ) + + +class ZsrvResponse(BaseModel): + operation_type: ZcOpsType | None = Field( + default="OPS_TYPE_UNSPECIFIED", alias="operationType" + ) + operation_status: ZcOpsStatus | None = Field( + default="OPS_STATUS_UNSPECIFIED", alias="operationStatus" + ) + object_kind: str | None = Field( + default=None, + alias="objectKind", + title="zedcloud object kind on which the operation was performed", + ) + object_id: str | None = Field( + default=None, + alias="objectId", + title="Unique value identifies the object that was operated on", + ) + object_name: str | None = Field( + default=None, alias="objectName", title="name of the object" + ) + object_revision: str | None = Field( + default=None, + alias="objectRevision", + title="object revision post the operation, note Read operation\ndoesn't change the revision", + ) + object_type: ObjectType | None = Field( + default="OBJECT_TYPE_UNSPECIFIED", alias="objectType" + ) + operation_time: str | None = Field( + default=None, alias="operationTime", title="time of operation" + ) + start_time: str | None = Field( + default=None, alias="startTime", title="total time taken by operations" + ) + end_time: str | None = Field(default=None, alias="endTime") + user: str | None = Field( + default=None, title="the operation is performed on behalf of this user" + ) + http_status_code: int | None = Field( + default=None, alias="httpStatusCode", title="http response" + ) + http_status_msg: str | None = Field( + default=None, alias="httpStatusMsg", title="summary of the error in text format" + ) + job_id: str | None = Field( + default=None, alias="jobId", title="for tracking asynchronous tasks" + ) + error: list[ZsrvError] | None = Field( + default=None, + title="one or more errors will be set if the operation failed\ni.e. httpStatusCode != 2xx", + ) + + +class AppACEAction(BaseModel): + drop: bool = Field(..., description="ACE drop flag") + limit: bool = Field(..., description="ACE limit flag") + limitrate: float = Field(..., description="ACE limit rate") + limitunit: str = Field(..., description="ACE limit unit") + limitburst: float = Field(..., description="ACE limit burst") + portmap: bool = Field(..., description="application port map flag") + mapparams: AppMapParams + + +class CommonConnectivityProbe(BaseModel): + probe_method: CommonConnectivityProbeMethod | None = Field( + default="CONNECTIVITY_PROBE_METHOD_UNSPECIFIED", alias="probeMethod" + ) + probe_endpoint: CommonProbeEndpoint | None = Field( + default=None, alias="probeEndpoint" + ) + + +class ConfigCellularConnectivityProbe(BaseModel): + disable: bool | None = Field( + default=None, description="If true, then probing is disabled." + ) + probe_address: str | None = Field( + default=None, + alias="probeAddress", + description="IP/FQDN to periodically probe using 3 pings per iteration to determine connectivity status.\nThis field is now deprecated and replaced with custom_probe (see below).\nTo maintain backward-compatibility, EVE will check both probe_address and custom_probe\nand will use whichever has non-zero value (if any), but preferring custom_probe.", + ) + custom_probe: CommonConnectivityProbe | None = Field( + default=None, alias="customProbe" + ) + + +class GooglerpcStatus(BaseModel): + code: int | None = None + message: str | None = None + details: list[ProtobufAny] | None = None + + +class Acl(BaseModel): + matches: list[Match] | None = Field( + default=None, + description="Network traffic matching criteria consistngs of one or more of source IP address, destination IP address, protocol, source port and destination port", + ) + actions: list[AclAction] | None = Field( + default=None, + description="Chain of actions to be taken on matching network traffic", + ) + name: str | None = Field( + default=None, description="Name of the Access Control List" + ) + + +class CellularStatus(BaseModel): + providers: list[NetworkProvider] | None = Field( + default=None, description="List of network providers" + ) + modem: ModemDetail | None = None + sim_cards: list[SIMCard] | None = Field( + default=None, alias="simCards", description="List of SIM Cards" + ) + + +class CustomConfigVariableGroup(BaseModel): + name: str | None = Field( + default=None, description="Name of the Variable Group(Required)" + ) + variables: list[VariableGroupVariable] | None = Field( + default=None, description="List of variables(Required)" + ) + required: bool | None = Field( + default=None, + description="Indicates if the variable group is required to be specified for the App Instance. (Optional. Default:False)", + ) + condition: VariableGroupCondition | None = None + + +class DPSServiceDetail(BaseModel): + service_detail: AzureResourceAndServiceDetail | None = Field( + default=None, alias="serviceDetail" + ) + enrollment: EnrollmentDetail | None = None + + +class DevDataSecAtRest(BaseModel): + status: DeviceDataSecurityAtRestStatus | None = ( + "DEVICE_DATA_SECURITY_AT_REST_UNKNOWN" + ) + name: str | None = None + err_info: DeviceError | None = Field(default=None, alias="errInfo") + + +class DevicePolicy(BaseModel): + meta_data: PolicyCommon | None = Field(default=None, alias="metaData") + policy_sub_type: DevicePolicyType | None = Field( + default="DEVICE_POLICY_TYPE_UNSPECIFIED", alias="policySubType" + ) + attestation_policy: DeviceAttestationPolicy | None = Field( + default=None, alias="attestationPolicy" + ) + pcr_policy: DevicePCRPolicy | None = Field(default=None, alias="pcrPolicy") + port_based_network_access_control_policy: ( + DevicePortBasedNetworkAccessControlPolicy | None + ) = Field(default=None, alias="portBasedNetworkAccessControlPolicy") + + +class EdgeViewPolicy(BaseModel): + meta_data: PolicyCommon | None = Field(default=None, alias="metaData") + edgeviewcfg: EdgeviewCfg | None = None + edgeview_allow: bool = Field( + ..., + alias="edgeviewAllow", + description="Allow device to enable Edgeview in this project", + ) + access_allow_change: bool | None = Field( + default=None, + alias="accessAllowChange", + description="Allow inherit instance to change access policy", + ) + max_expire_sec: int | None = Field( + default=None, + alias="maxExpireSec", + description="Maximum seconds allowed for Edgeview session", + ) + max_inst: int | None = Field( + default=None, + alias="maxInst", + description="Maximum instances allowed for Edgeview", + ) + require_controller_authen: bool | None = Field( + default=None, + alias="requireControllerAuthen", + description="Whether controller authentication is required for Edgeview access", + ) + + +class EventQueryResponse(BaseModel): + list_: list[EventQueryResponseItem] = Field( + ..., alias="list", description="Event Query response list" + ) + next: Cursor + summary: Summary | None = None + + +class Interface(BaseModel): + name: str | None = Field( + default=None, description="Interface name used by the edge application" + ) + type: str | None = Field( + default=None, + description='Physical Adapter type for this interface. Applicable only when "direct attach" flag is true.', + ) + optional: bool | None = Field( + default=None, + description="Indicates if the interface is optional for edge application.", + ) + directattach: bool | None = Field( + default=None, + description="If true, a physical adapter is assigned to the edge application directly. If false, a network instance is assigned to the edge application.", + ) + privateip: bool | None = Field( + default=None, + description="If true, DHCP network can't be assigned and user needs to provide a static IP address.", + ) + acls: list[Acl] | None = Field( + default=None, + description='Traffic access control rules for this interface. Applicable only when "direct attach" flag is false.', + ) + + +class IoBundleStatus(BaseModel): + type: IoType + name: str = Field(..., description="Io Bundle status name") + members: list[str] = Field( + ..., description="Member Array", title="members - Deprecated by memberList" + ) + app_name: str = Field(..., alias="appName", description="Application name") + lte_info: LTEAdapter | None = Field(default=None, alias="lteInfo") + err: DeviceError | None = None + member_list: list[IoMemberStatus] | None = Field( + default=None, alias="memberList", description="List of IO members" + ) + + +class LispConfig(BaseModel): + lispiid: float | None = Field(default=None, description="lisp id") + allocate: bool | None = Field(default=None, description="Allocate flag") + exportprivate: bool | None = Field(default=None, description="Export Private flag") + allocationprefix: Base64Str | None = Field( + default=None, description="Allocation Prefix" + ) + allocationprefixlen: float | None = Field( + default=None, description="Allocation Prefix Length" + ) + sp: list[ServicePoint] | None = Field( + default=None, description="Service Point List" + ) + + +class NetCellularConfig(BaseModel): + apn: str | None = Field( + default=None, + alias="APN", + description='APN string - by default it is "internet".\nTO BE DEPRECATED: Fill connection arguments inside access_points instead.\nIf access_points is non-empty, then APN field is ignored.', + ) + probe: ConfigCellularConnectivityProbe | None = None + location_tracking: bool | None = Field( + default=None, + alias="locationTracking", + description="Some LTE modems have GNSS receiver integrated and can be used for device\nlocation tracking.\nEnable this option to have location info periodically obtained from this\nmodem and published to controller and to applications.", + ) + access_points: list[NetCellularAccessPoint] | None = Field( + default=None, + alias="accessPoints", + description="Parameters to apply for connecting to cellular networks.\nConfigured separately for every SIM card inserted into the modem.", + ) + activated_sim_slot: int | None = Field( + default=None, + alias="activatedSimSlot", + description="Select SIM card slot to activate.\nCurrently, EVE support only single-standby SIM card mode.\n0 - unspecified (leave the currently activated)\n1 - activate the first SIM slot\n2 - activate the second SIM slot\netc.", + ) + + +class NetInstOpaqueConfig(BaseModel): + type: OpaqueConfigType | None = "OPAQUE_CONFIG_TYPE_UNSPECIFIED" + oconfig: str | None = Field( + default=None, description="base64 encoded string of opaque config" + ) + lisp: LispConfig | None = None + + +class NetProxyConfig(BaseModel): + network_proxy: bool | None = Field( + default=None, alias="networkProxy", description="Network proxy" + ) + proxies: list[NetProxyServer] | None = Field( + default=None, + description="Net Proxy: protocol level proxies", + title="protocol level proxies", + ) + exceptions: str | None = Field(default=None, description="Proxy exceptions") + pacfile: str | None = Field( + default=None, + description="proxy configuration in a pacfile", + title="proxy configuration in a pacfile", + ) + network_proxy_url: str | None = Field( + default=None, + alias="networkProxyURL", + description="Network Proxy URL", + title="Direct URL for wpad.dat download", + ) + network_proxy_certs: list[Base64Str] | None = Field( + default=None, + alias="networkProxyCerts", + description="Network Proxy Certificates", + title="Proxy Certificates", + ) + + +class NetWirelessConfig(BaseModel): + type: NetworkWirelessType | None = "NETWORK_WIRELESS_TYPE_UNSPECIFIED" + cellular_cfg: NetCellularConfig | None = Field(default=None, alias="cellularCfg") + wifi_cfg: NetWifiConfig | None = Field(default=None, alias="wifiCfg") + + +class NetworkStatus(BaseModel): + up: bool | None = Field(default=None, description="Network Status flag") + mac_addr: str | None = Field( + default=None, alias="macAddr", description="mac Address" + ) + if_name: str | None = Field(default=None, alias="ifName", description="ifName") + ip_addrs: list[str] | None = Field( + default=None, alias="ipAddrs", description="Array of IP addresses" + ) + default_routers: list[str] | None = Field( + default=None, alias="defaultRouters", description="Default Routers" + ) + dns: DNSInfo | None = None + location: GeoLocation | None = None + uplink: bool | None = Field(default=None, description="Uplink flag") + proxy: NetProxyStatus | None = None + err_info: DeviceError | None = Field(default=None, alias="errInfo") + gps_location: GPSLocation | None = Field(default=None, alias="gpsLocation") + cellular: CellularStatus | None = None + mtu: int | None = Field(default=None, description="Network MTU") + pnac_status: PNACPortStatus | None = Field(default=None, alias="pnacStatus") + config_source: CommonPortConfigSource | None = Field( + default=None, alias="configSource" + ) + + +class PhysicalStorage(BaseModel): + pool_name: str | None = Field(default=None, alias="poolName") + storage_type: PhysicalStorageTypeInfo | None = Field( + default="PHYSICAL_STORAGE_TYPE_INFO_UNSPECIFIED", alias="storageType" + ) + storage_state: PhysicalStorageStatus | None = Field( + default="PHYSICAL_STORAGE_STATUS_UNSPECIFIED", alias="storageState" + ) + zfs_version: str | None = Field(default=None, alias="zfsVersion") + count_zvols: int | None = Field(default=None, alias="countZvols") + current_raid: PhysicalStorageRaidType | None = Field( + default="PHYSICAL_STORAGE_RAID_TYPE_UNSPECIFIED", alias="currentRaid" + ) + compression_ratio: float | None = Field(default=None, alias="compressionRatio") + zpool_size: str | None = Field(default=None, alias="zpoolSize") + disks: list[PhysicalStorageDiskState] | None = None + pool_status_msg: str | None = Field( + default=None, + alias="poolStatusMsg", + description="Zpool Status message sent by EVE", + ) + + +class ProbeConfig(BaseModel): + enable_gateway_ping: bool | None = Field( + default=None, alias="enableGatewayPing", description="Enable gateway ping" + ) + ping_max_cost: float | None = Field( + default=None, alias="pingMaxCost", description="Ping max cost" + ) + prefer_lower_cost: bool | None = Field( + default=None, alias="preferLowerCost", description="Prefer lower cost" + ) + prefer_stronger_wwan_signal: bool | None = Field( + default=None, + alias="preferStrongerWwanSignal", + description="Prefer stronger WWAN signal", + ) + custom_probe_config: CommonConnectivityProbe | None = Field( + default=None, alias="customProbeConfig" + ) + + +class StaticIPRoute(BaseModel): + prefix: str | None = Field(default=None, description="IP Prefix") + gateway: str | None = Field(default=None, description="Gateway IP") + output_port: str | None = Field( + default=None, alias="outputPort", description="Output Port" + ) + probe_config: ProbeConfig | None = Field(default=None, alias="probeConfig") + + +class TagStatusListMsg(BaseModel): + summary_by_state: Summary | None = Field(default=None, alias="summaryByState") + list_: list[TagStatusMsg] | None = Field( + default=None, + alias="list", + description="List of filtered resource group records", + ) + next: Cursor | None = None + summary_by_type: Summary | None = Field(default=None, alias="summaryByType") + + +class AppACE(BaseModel): + matches: list[AppACEMatch] = Field(..., description="app ACE match") + actions: list[AppACEAction] = Field(..., description="app ACE actions") + id: float = Field(..., description="app ACE id") + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the app ACE, unique across the enterprise. Once object is created, name can’t be changed", + ) + + +class AppInterface(BaseModel): + netname: str | None = Field( + default=None, + description="network name: will be deprecated in future, use netinstname", + ) + io: PhyAdapter | None = None + intforder: float | None = Field(default=None, description="intforder") + intfname: str = Field(..., description="intf Name") + directattach: bool | None = Field( + default=None, + description="direct attach flag", + title="comes from manifest during app create", + ) + privateip: bool | None = Field(default=None, description="Private IP flag") + acls: list[AppACE] | None = Field(default=None, description="app Acls") + ipaddr: str | None = Field( + default=None, + description="IP address", + title="if netname points static DHCP then we need to take\nstatic /32 address here", + ) + macaddr: str | None = Field( + default=None, + description="MAC address", + title="in case of p2v we might want to provide a mac-address.\napplicable only in case of DHCP=passthrough", + ) + access_vlan_id: confloat(ge=2.0, le=4093.0) | None = Field( + default=None, + alias="accessVlanId", + description="access port VLAN ID, vlan id of zero will be treated as trunk port and vlan id 1 is implicitly used by linux bridges", + ) + eidregister: EIDRegister | None = None + netinstname: str | None = Field( + default=None, + description='Network Instance name to be matched for interface assignment. Applicable only when "direct attach" flag is false', + ) + netinsttag: dict[str, str] | None = Field( + default=None, + description='Network Instance tag to be matched for interface assignment. Applicable only when "direct attach" flag is false', + ) + netinstid: str | None = Field( + default=None, + description="Network Instance id to be matched for interface assignment.", + ) + default_net_instance: bool | None = Field( + default=None, alias="defaultNetInstance", description="default instance flag" + ) + allow_to_discover: bool | None = Field( + default=None, + alias="allowToDiscover", + description="flag tells if appInstance have permission to access the network mappings from the connected netInstance", + ) + + +class AzureResourceAndServices(BaseModel): + resource_group: list[ResourceGroupDetail] = Field( + ..., + alias="resourceGroup", + description="list of resource groups attached to cloud policy", + ) + iot_hub_service: list[IotHubServiceDetail] = Field( + ..., + alias="iotHubService", + description="list of iothubs attached to cloud policy", + ) + dps_service: DPSServiceDetail = Field(..., alias="dpsService") + + +class CustomConfig(BaseModel): + name: str | None = Field( + default=None, description="Name of CustomConfig (Required)" + ) + add: bool | None = Field( + default=None, + description="Add the Custom Config to App Instance (Optional. Default: False)", + ) + override: bool | None = Field( + default=None, + description="Override existing custom config from App Bundle Manifest (Optional. Default: False)", + ) + allow_storage_resize: bool | None = Field( + default=None, + alias="allowStorageResize", + description="Allow Appinstance storage to be resized after app instance is created. (Optional. Default: False)", + ) + field_delimiter: str | None = Field( + default=None, + alias="fieldDelimiter", + description="Field delimiter used in specifying variables in template. (Required)", + ) + template: str | None = Field( + default=None, description="base64 encrypted template string. (Optional)" + ) + variable_groups: list[CustomConfigVariableGroup] | None = Field( + default=None, + alias="variableGroups", + description="List of Variable groups. (Required)", + ) + + +class DeviceInfoMsg(BaseModel): + name: str | None = None + id: str | None = None + admin_state: AdminState | None = Field( + default="ADMIN_STATE_UNSPECIFIED", alias="adminState" + ) + run_state: RunState | None = Field( + default="RUN_STATE_UNSPECIFIED", alias="runState" + ) + up_time: AwareDatetime | None = Field(default=None, alias="upTime") + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + title="deprecated = 6;", + ) + last_update: AwareDatetime | None = Field(default=None, alias="lastUpdate") + boot_time: AwareDatetime | None = Field(default=None, alias="bootTime") + net_status_list: list[NetworkStatus] | None = Field( + default=None, alias="netStatusList" + ) + dns: DNSInfo | None = None + io_status_list: list[IoBundleStatus] | None = Field( + default=None, alias="ioStatusList" + ) + storage_list: list[StorageStatus] | None = Field(default=None, alias="storageList") + blob_list: list[BlobStatus] | None = Field(default=None, alias="blobList") + net_counter_list: list[NetworkCounters] | None = Field( + default=None, alias="netCounterList" + ) + host_name: str | None = Field(default=None, alias="hostName") + sw_info: list[DeviceSWInfo] | None = Field(default=None, alias="swInfo") + zc_counters: list[ZedcloudCounters] | None = Field(default=None, alias="zcCounters") + raw_status: str | None = Field(default=None, alias="rawStatus") + memory: MemorySummary | None = Field(default=None, alias="Memory") + storage: StorageSummary | None = Field(default=None, alias="Storage") + minfo: ZManufacturerInfo | None = None + dinfo: DeviceInfo | None = None + cpu: CpuSummary | None = Field(default=None, alias="Cpu") + last_reboot_reason: str | None = Field(default=None, alias="lastRebootReason") + last_reboot_time: AwareDatetime | None = Field(default=None, alias="lastRebootTime") + data_sec_info: list[DevDataSecAtRest] | None = Field( + default=None, alias="dataSecInfo" + ) + dev_error: list[DeviceError] | None = Field(default=None, alias="devError") + project_id: str | None = Field(default=None, alias="projectId") + title: str | None = None + attest_state: AttestState | None = Field( + default="ATTEST_STATE_UNSPECIFIED", alias="attestState" + ) + device_reboot_reason: DeviceBootReason | None = Field( + default="DEVICE_BOOT_REASON_UNSPECIFIED", alias="deviceRebootReason" + ) + cluster_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="clusterID", + description="System defined universally unique clusterInstance ID, unique across the enterprise.", + ) + memory_summary: DeviceMemorySummary | None = Field( + default=None, alias="memorySummary" + ) + capabilities: Capabilities | None = None + debug_knob: bool | None = Field( + default=None, alias="debugKnob", title="debug knob expiry time" + ) + debug_knob_expiry_time: AwareDatetime | None = Field( + default=None, alias="debugKnobExpiryTime" + ) + physical_storage: list[PhysicalStorage] | None = Field( + default=None, alias="physicalStorage" + ) + zpool_metrics: StorageDeviceMetrics | None = Field( + default=None, alias="zpoolMetrics" + ) + cellular_metrics: list[CellularMetrics] | None = Field( + default=None, + alias="cellularMetrics", + description="Last received cellular metrics.", + ) + ntp_sources: NtpSources | None = Field(default=None, alias="ntpSources") + optional_capabilities: OptionalCapabilities | None = Field( + default=None, alias="optionalCapabilities" + ) + cluster_node_status: ClusterNodeStatus | None = Field( + default=None, alias="clusterNodeStatus" + ) + api_capability: InfoAPICapability | None = Field( + default="API_CAPABILITY_UNSPECIFIED", alias="apiCapability" + ) + memory_report: ECCMemoryReport | None = Field(default=None, alias="memoryReport") + hardware_info: HardwareInfo | None = Field(default=None, alias="hardwareInfo") + memory_report_status: ECCMemoryReportStatus | None = Field( + default="ECC_MEMORY_REPORT_STATUS_NOT_APPLICABLE", alias="memoryReportStatus" + ) + enrolled_certs: list[EnrolledCertInfo] | None = Field( + default=None, + alias="enrolledCerts", + description="Certificates enrolled via SCEP on the device", + title="Certificates enrolled via SCEP", + ) + pnac_metrics: list[PNACMetricInfo] | None = Field( + default=None, + alias="pnacMetrics", + description="PNAC 802.1X authentication metrics per network port", + title="PNAC (802.1X) authentication metrics per port", + ) + remote_access_disabled: bool | None = Field( + default=None, + alias="remoteAccessDisabled", + title="Remote access disabled flag reported by the device (/config/remote_access_disabled sentinel file)", + ) + + +class DeviceStatusMsg(BaseModel): + name: str | None = None + id: str | None = None + admin_state: AdminState | None = Field( + default="ADMIN_STATE_UNSPECIFIED", alias="adminState" + ) + run_state: RunState | None = Field( + default="RUN_STATE_UNSPECIFIED", alias="runState" + ) + up_time: AwareDatetime | None = Field(default=None, alias="upTime") + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + title="deprecated = 6;", + ) + last_update: AwareDatetime | None = Field(default=None, alias="lastUpdate") + boot_time: AwareDatetime | None = Field(default=None, alias="bootTime") + net_status_list: list[NetworkStatus] | None = Field( + default=None, alias="netStatusList" + ) + dns: DNSInfo | None = None + io_status_list: list[IoBundleStatus] | None = Field( + default=None, alias="ioStatusList" + ) + storage_list: list[StorageStatus] | None = Field(default=None, alias="storageList") + blob_list: list[BlobStatus] | None = Field(default=None, alias="blobList") + net_counter_list: list[NetworkCounters] | None = Field( + default=None, alias="netCounterList" + ) + host_name: str | None = Field(default=None, alias="hostName") + sw_info: list[DeviceSWInfo] | None = Field(default=None, alias="swInfo") + zc_counters: list[ZedcloudCounters] | None = Field(default=None, alias="zcCounters") + raw_status: str | None = Field(default=None, alias="rawStatus") + raw_metrics: str | None = Field(default=None, alias="rawMetrics") + memory: MemorySummary | None = Field(default=None, alias="Memory") + storage: StorageSummary | None = Field(default=None, alias="Storage") + minfo: ZManufacturerInfo | None = None + dinfo: DeviceInfo | None = None + cpu: CpuSummary | None = Field(default=None, alias="Cpu") + last_reboot_reason: str | None = Field(default=None, alias="lastRebootReason") + last_reboot_time: AwareDatetime | None = Field(default=None, alias="lastRebootTime") + data_sec_info: list[DevDataSecAtRest] | None = Field( + default=None, alias="dataSecInfo" + ) + dev_error: list[DeviceError] | None = Field(default=None, alias="devError") + project_id: str | None = Field(default=None, alias="projectId") + title: str | None = None + attest_state: AttestState | None = Field( + default="ATTEST_STATE_UNSPECIFIED", alias="attestState" + ) + device_reboot_reason: DeviceBootReason | None = Field( + default="DEVICE_BOOT_REASON_UNSPECIFIED", alias="deviceRebootReason" + ) + cluster_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="clusterID", + description="System defined universally unique clusterInstance ID, unique across the enterprise.", + ) + memory_summary: DeviceMemorySummary | None = Field( + default=None, alias="memorySummary" + ) + capabilities: Capabilities | None = None + zpool_metrics: StorageDeviceMetrics | None = Field( + default=None, alias="zpoolMetrics" + ) + cluster_node_status: ClusterNodeStatus | None = Field( + default=None, alias="clusterNodeStatus" + ) + + +class DeviceStatusSummaryMsg(BaseModel): + name: str | None = None + id: str | None = None + admin_state: AdminState | None = Field( + default="ADMIN_STATE_UNSPECIFIED", alias="adminState" + ) + run_state: RunState | None = Field( + default="RUN_STATE_UNSPECIFIED", alias="runState" + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + title="deprecated = 5;", + ) + net_status_list: list[NetworkStatus] | None = Field( + default=None, alias="netStatusList" + ) + sw_info: list[DeviceSWInfo] | None = Field(default=None, alias="swInfo") + minfo: ZManufacturerInfo | None = None + dinfo: DeviceInfo | None = None + memory: MemorySummary | None = Field(default=None, alias="Memory") + storage: StorageSummary | None = Field(default=None, alias="Storage") + cpu: CpuSummary | None = Field(default=None, alias="Cpu") + dev_error: list[DeviceError] | None = Field(default=None, alias="devError") + project_id: str | None = Field(default=None, alias="projectId") + title: str | None = None + cluster_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="clusterID", + description="System defined universally unique clusterInstance ID, unique across the enterprise.", + ) + memory_summary: DeviceMemorySummary | None = Field( + default=None, alias="memorySummary" + ) + debug_knob: bool | None = Field( + default=None, alias="debugKnob", title="debug knob expiry time" + ) + debug_knob_expiry_time: AwareDatetime | None = Field( + default=None, alias="debugKnobExpiryTime" + ) + project_name: str | None = Field( + default=None, + alias="projectName", + description="Project name to which device is associated with", + ) + app_inst_count: int | None = Field( + default=None, + alias="appInstCount", + description="App instance count that is actively running on the device", + ) + location: str | None = Field(default=None, description="Device location") + edgeview_active: bool | None = Field( + default=None, + alias="edgeviewActive", + description="Device edgeview session active", + ) + project_type: TagType | None = Field( + default="TAG_TYPE_UNSPECIFIED", alias="projectType" + ) + cluster_node_status: ClusterNodeStatus | None = Field( + default=None, alias="clusterNodeStatus" + ) + enrolled_certs_status: EnrolledCertStatus | None = Field( + default="ENROLLED_CERT_STATUS_UNSPECIFIED", alias="enrolledCertsStatus" + ) + + +class NetConfig(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, description="System defined universally unique Id of the network" + ) + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the network, unique across the enterprise. Once object is created, name can’t be changed", + ) + title: constr( + pattern=r"^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined title of the network. Title can be changed at any time", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the network" + ) + revision: ObjectRevision | None = None + project_id: str = Field(..., alias="projectId") + kind: NetworkKind + ip: IpSpec + dns_list: list[StaticDNSList] | None = Field(default=None, alias="dnsList") + proxy: NetProxyConfig | None = None + enterprise_default: bool | None = Field( + default=None, + alias="enterpriseDefault", + title="make this network default for device", + ) + mtu: int | None = Field( + default=None, + title="Maximum transmission unit (MTU) to set on the associated network adapter(s)", + ) + wireless: NetWirelessConfig | None = None + project: NetProjectInfo | None = None + + +class NetInstConfig(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="System defined universally unique Id of the network instance", + ) + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the network instance, unique across the enterprise. Once object is created, name can’t be changed", + ) + title: constr( + pattern=r"^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined title of the network instance. Title can be changed at any time", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the network instance" + ) + revision: ObjectRevision | None = None + project_id: str | None = Field( + default=None, + alias="projectId", + description="id of the project in which network instance is created", + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + cluster_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="clusterID", + description="id of the Cluster in which the network instance is configured", + ) + device_id: str = Field( + ..., + alias="deviceId", + description="id of the device on which network instance is created", + title="device on which this network is running", + ) + port: str = Field( + ..., + description="name of port mapping in the model", + title="name of port mapping in the model", + ) + port_tags: dict[str, str] | None = Field( + default=None, + alias="portTags", + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + kind: NetworkInstanceKind + dhcp: bool | None = Field( + default=None, description="Deprecated", title="dhcp - DEPRECATED" + ) + type: NetworkInstanceDhcpType | None = "NETWORK_INSTANCE_DHCP_TYPE_UNSPECIFIED" + ip: DhcpServerConfig | None = None + dns_list: list[StaticDNSList] | None = Field( + default=None, alias="dnsList", description="List of Static DNS entries" + ) + oconfig: str | None = Field(default=None, title="Deprecated") + lisp: LispConfig | None = None + opaque: NetInstOpaqueConfig | None = None + device_default: bool | None = Field( + default=None, + alias="deviceDefault", + description="flag to indicate if this is the default network instance for the device", + title="flag to indicate if this is default network", + ) + network_policy_id: str | None = Field( + default=None, + alias="networkPolicyId", + description="id of the network policy to be attached to this network instance", + ) + propagate_connected_routes: bool | None = Field( + default=None, + alias="propagateConnectedRoutes", + description="Automatically propagate connected routes", + ) + static_routes: list[StaticIPRoute] | None = Field( + default=None, alias="staticRoutes", description="List of Static IP routes" + ) + mtu: int | None = Field( + default=None, + description="Maximum transmission unit (MTU) to set for the network instance and all application interfaces connected to it", + ) + edge_node_cluster: NetInstEdgeNodeCluster | None = Field( + default=None, alias="edgeNodeCluster" + ) + forward_lldp: bool | None = Field( + default=None, + alias="forwardLldp", + description="Enables forwarding of LLDP (Link Layer Discovery Protocol) frames across this\nnetwork instance.\nLLDP is used by devices to advertise identity and capabilities to directly\nconnected neighbors, and is often required for topology discovery and network\nmanagement tools.\nWhen enabled, LLDP frames (EtherType 0x88cc) are not dropped or suppressed\nby the forwarding plane.", + ) + + +class NetworkInstConfig(BaseModel): + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + port: str | None = Field( + default=None, + description="name of port mapping in the model", + title="name of port mapping in the model", + ) + port_tags: dict[str, str] | None = Field( + default=None, + alias="portTags", + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + kind: NetworkInstanceKind | None = "NETWORK_INSTANCE_KIND_UNSPECIFIED" + type: NetworkInstanceDhcpType | None = "NETWORK_INSTANCE_DHCP_TYPE_UNSPECIFIED" + ip: DhcpServerConfig | None = None + dns_list: list[StaticDNSList] | None = Field( + default=None, alias="dnsList", description="List of Static DNS entries" + ) + opaque: NetInstOpaqueConfig | None = None + device_default: bool | None = Field( + default=None, + alias="deviceDefault", + description="flag to indicate if this is the default network instance for the device", + title="flag to indicate if this is default network", + ) + propagate_connected_routes: bool | None = Field( + default=None, + alias="propagateConnectedRoutes", + description="Automatically propagate connected routes", + title="flag to indicate automatically propagate connected routes", + ) + static_routes: list[StaticIPRoute] | None = Field( + default=None, + alias="staticRoutes", + description="List of Static IP routes", + title="list of static IP routes", + ) + forward_lldp: bool | None = Field( + default=None, + alias="forwardLldp", + description="enable/disable lldp frame forward", + ) + + +class NetworkInstPolicy(BaseModel): + meta_data: PolicyCommon | None = Field(default=None, alias="metaData") + net_inst_config: NetworkInstConfig | None = Field( + default=None, alias="netInstConfig" + ) + + +class NetworkPolicy(BaseModel): + net_instance_config: list[NetInstConfig] = Field( + ..., + alias="netInstanceConfig", + description="list of network details that will be created on all the devices of the project to which this policy is attached", + ) + + +class SysInterface(BaseModel): + netname: str | None = Field( + default=None, description="network name: if attaching a network use netname" + ) + adapter_specific_net: NetConfig | None = Field( + default=None, alias="adapterSpecificNet" + ) + ipaddr: str | None = Field( + default=None, + description="IP address: we will be needing this in cae of static network", + ) + intfname: str | None = Field( + default=None, + description="name of interface in the manifest to which this network or adapter maps to", + ) + intf_usage: AdapterUsage | None = Field( + default="ADAPTER_USAGE_UNSPECIFIED", alias="intfUsage" + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + macaddr: str | None = Field( + default=None, description="mac address needs to be over-written in some cases" + ) + cost: conint(le=255) | None = Field( + default=None, description="cost of using this interface. Default is 0." + ) + netid: str | None = Field( + default=None, + description="network identifier has to have value if the netname is not empty", + ) + shared_labels: list[str] | None = Field( + default=None, + alias="sharedLabels", + description="A set of user-defined shared labels attached to the adapter", + ) + net_dhcp: NetworkDHCPType | None = Field( + default="NETWORK_DHCP_TYPE_UNSPECIFIED", alias="netDhcp" + ) + ztype: str | None = Field(default=None, description="Z Type") + allow_local_modifications: bool | None = Field( + default=None, + alias="allowLocalModifications", + description="Allow the local operator to make (limited) configuration changes to this network adapter.", + ) + enable_port_based_network_access_control: bool | None = Field( + default=None, + alias="enablePortBasedNetworkAccessControl", + description="Enable port-based network access control (802.1X) on this interface. Only applicable for Ethernet interfaces that are not app-direct.", + ) + phylabel: str | None = Field( + default=None, description="Physical label of the adapter (model-less devices)" + ) + logicallabel: str | None = Field( + default=None, description="Logical label of the adapter (model-less devices)" + ) + phyaddrs: dict[str, str] | None = Field( + default=None, + description="Physical addresses map, e.g. pcilong, ifname, serial, usbaddr (model-less devices)", + ) + assigngrp: str | None = Field( + default=None, description="IOMMU assignment group (model-less devices)" + ) + parentassigngrp: str | None = Field( + default=None, description="Parent IOMMU assignment group (model-less devices)" + ) + cbattr: dict[str, str] | None = Field( + default=None, + description="Controller-to-bus attributes, e.g. bitrate for CAN (model-less devices)", + ) + + +class UserDataTemplate(BaseModel): + custom_config: CustomConfig | None = Field(default=None, alias="customConfig") + + +class VMManifest(BaseModel): + ac_kind: str | None = Field( + default="VMManifest", + alias="acKind", + description="UI map: N/A - not exposed to users", + title="Edge Application type", + ) + ac_version: str | None = Field( + default="1.2.0", + alias="acVersion", + description="UI map: N/A - not exposed to users", + title="Manifest version", + ) + name: str | None = Field( + default=None, + description="UI map: AppEditPage:IdentityPane:Name_Field, AppDetailsPage:IdentityPane:Name_Field", + title="Unique id of app manifest, should match object name", + ) + display_name: str | None = Field( + default=None, + alias="displayName", + description="UI map: AppEditPage:IdentityPane:Title_Field, AppDetailsPage:IdentityPane:Title_Field", + title="Display name or title of app manifest", + ) + description: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="UI map: AppDetailsPage:IdentityPane:DescriptionField, AppMarketplacePage:AppCard:DescriptionField", + title="Description of the Edge application", + ) + owner: Author | None = None + desc: Details | None = None + images: list[VMManifestImage] | None = Field( + default=None, + description="UI map: AppEditPage:DrivesPane, AppDetailsPage:DrivesPane", + title="Images used by the app", + ) + interfaces: list[Interface] | None = Field( + default=None, + description="UI map: AppEditPage:EnvironmentsPane, AppDetailsPage:EnvironmentsPane", + title="I/O adapter settings", + ) + permissions: list[Permission] | None = None + vmmode: str | None = Field( + default="HV_HVM", + description="UI map: AppEditPage:IdentityPane:VM_Mode_Field, AppDetailsPage:IdentityPane:VM_Mode_Field", + title="VM mode for VM-based app", + ) + enablevnc: bool | None = Field( + default=None, + description="UI map: AppEditPage:IdentityPane:VNC_Field, AppDetailsPage:IdentityPane:VNC_Field", + title="Enable VNC for the app", + ) + resources: list[Resource] | None = Field( + default=None, + description="UI map: AppEditPage:ResourcesPane, AppDetailsPage:ResourcesPane", + title="Hardware resource requirement (CPU, Memory, Storage) for the app", + ) + configuration: UserDataTemplate | None = None + container_detail: ContainerDetail | None = Field( + default=None, alias="containerDetail" + ) + module: ModuleDetail | None = None + app_type: AppType | None = Field(default="APP_TYPE_UNSPECIFIED", alias="appType") + deployment_type: DeploymentType | None = Field( + default="DEPLOYMENT_TYPE_UNSPECIFIED", alias="deploymentType" + ) + cpu_pinning_enabled: bool | None = Field( + default=None, alias="cpuPinningEnabled", description="Enable CpuPinning" + ) + runtime_version: DockerRuntimeVersion | None = Field( + default="RuntimeVersion_Unknown", alias="runtimeVersion" + ) + runtime_protocol_version: DockerRuntimeProtocolVersion | None = Field( + default="RuntimeProtocolVersion_Unknown", alias="runtimeProtocolVersion" + ) + persistent_runtime_size_bytes: str | None = Field( + default=None, + alias="PersistentRuntimeSizeBytes", + description="Size of persistent blank storage for runtime in bytes", + ) + docker_compose_yaml_text: str | None = Field( + default=None, + alias="dockerComposeYamlText", + description="Docker compose base64 encoded plain text", + ) + docker_compose_tar_image_name: str | None = Field( + default=None, + alias="dockerComposeTarImageName", + description="Docker compose tar image name", + ) + enable_oem_win_license_key: bool | None = Field( + default=None, + alias="enableOemWinLicenseKey", + description="UI map: AppEditPage:IdentityPane:ENABLEVMCONFIG_Field, AppDetailsPage:IdentityPane:ENABLEVMCONFIG_Field", + title="Enable device to read the license info from APCI tables", + ) + disable_vtpm: bool | None = Field( + default=None, + alias="disableVTPM", + description="UI map: AppEditPage:IdentityPane:DISABLEVTPM_Field, AppDetailsPage:IdentityPane:DISABLEVTPM_Field", + title="Disable vTPM for a virtual machine (VM)", + ) + + +class DeviceStatusConfig(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") = Field( + ..., description="system generated unique id for a device" + ) + name: str = Field(..., description="user specified device name") + title: str | None = Field(default=None, description="user specified title") + serial_no: str = Field(..., alias="serialNo", description="Device serial number") + project_id: str | None = Field( + default=None, alias="projectId", description="project Id of the device" + ) + project_name: str | None = Field( + default=None, alias="projectName", description="project name of the device" + ) + location: str | None = Field(default=None, description="Device location") + eve_image_name: str | None = Field( + default=None, + alias="eveImageName", + description="Eve image name that was running on the device", + ) + is_eve_latest: str | None = Field( + default=None, + alias="isEveLatest", + description="Boolean that tells whether the active eve image is latest or not", + ) + app_inst_count: str | None = Field( + default=None, + alias="appInstCount", + description="Number of app instance that is running on the device", + ) + run_state: RunState | None = Field( + default="RUN_STATE_UNSPECIFIED", alias="runState" + ) + admin_state: AdminState | None = Field( + default="ADMIN_STATE_UNSPECIFIED", alias="adminState" + ) + dinfo: DeviceInfo | None = None + sw_info: list[DeviceSWInfo] | None = Field( + default=None, alias="swInfo", description="software info reported by the device" + ) + project_type: TagType | None = Field( + default="TAG_TYPE_UNSPECIFIED", alias="projectType" + ) + cluster_node_status: ClusterNodeStatus | None = Field( + default=None, alias="clusterNodeStatus" + ) + interfaces: list[SysInterface] | None = Field( + default=None, description="System Interface list" + ) + model_id: str | None = Field( + default=None, alias="modelId", description="device model" + ) + enrolled_certs_status: EnrolledCertStatus | None = Field( + default="ENROLLED_CERT_STATUS_UNSPECIFIED", alias="enrolledCertsStatus" + ) + + +class VlanAdapter(BaseModel): + logical_label: str | None = Field( + default=None, + alias="logicalLabel", + description="Logical name of this VLAN adapter", + ) + interface_name: str | None = Field( + default=None, + alias="interfaceName", + description="A physical name of the VLAN sub-interface", + ) + lower_layer_name: str | None = Field( + default=None, + alias="lowerLayerName", + description="Logical name of the lower layer adapter (bond or physicalIO)", + ) + vlan_id: int | None = Field( + default=None, alias="vlanId", description="Valid values are from 1 to 4094" + ) + interface: SysInterface | None = None + + +class AppConfig(BaseModel): + id: ( + constr( + pattern=r"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + ) + | None + ) = Field( + default=None, + description="System defined universally unique Id of the edge application", + ) + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the edge application, unique across the enterprise. Once object is created, name can’t be changed", + ) + title: constr( + pattern=r"^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined title of the edge application. Title can be changed at any time", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the edge application" + ) + app_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="appId", + description="User defined name of the edge app, unique across the enterprise. Once app name is created, name can’t be changed", + ) + networks: int = Field(..., description="user defined network options") + drives: int = Field(..., description="user defined drives") + cpus: int = Field(..., description="user defined cpus for bundle") + memory: int = Field(..., description="user defined memory for bundle") + manifest_json: VMManifest = Field(..., alias="manifestJSON") + parent_detail: ObjectParentDetail | None = Field(default=None, alias="parentDetail") + origin_type: Origin = Field(..., alias="originType") + app_version: str | None = Field( + default=None, + alias="appVersion", + description="Current version of the attached bundle", + ) + name_project_part: str | None = Field( + default=None, + alias="nameProjectPart", + description="User provided name part for the auto deployed app", + ) + name_app_part: str | None = Field( + default=None, + alias="nameAppPart", + description="User provided name part for the auto deployed app", + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + naming_scheme: AppNamingScheme | None = Field( + default="APP_NAMING_SCHEME_UNSPECIFIED", alias="namingScheme" + ) + interfaces: list[AppInterface] | None = Field( + default=None, description="application interfaces" + ) + storage: int | None = Field( + default=None, description="user defined storage for bundle" + ) + start_delay_in_seconds: int | None = Field( + default=None, + alias="startDelayInSeconds", + description="start delay is the time in seconds EVE should wait after boot before starting the application instance", + ) + + +class AppInstConfig(BaseModel): + networks: int | None = Field( + default=None, description="user defined network options" + ) + drives: int | None = Field(default=None, description="user defined drives") + cpus: int | None = Field(default=None, description="user defined cpus for bundle") + memory: int | None = Field( + default=None, description="user defined memory for bundle" + ) + manifest_json: VMManifest | None = Field(default=None, alias="manifestJSON") + parent_detail: ObjectParentDetail | None = Field(default=None, alias="parentDetail") + origin_type: Origin | None = Field(default="ORIGIN_UNSPECIFIED", alias="originType") + storage: int | None = Field( + default=None, description="user defined storage for bundle" + ) + name_project_part: str | None = Field( + default=None, + alias="nameProjectPart", + description="User provided name part for the auto deployed app", + ) + name_app_part: str | None = Field( + default=None, + alias="nameAppPart", + description="User provided name part for the auto deployed app", + ) + naming_scheme: AppNamingSchemeV2 | None = Field( + default="APP_NAMING_SCHEMEV2_UNSPECIFIED", alias="namingScheme" + ) + interfaces: list[AppInterface] | None = Field( + default=None, description="application interfaces" + ) + start_delay_in_seconds: int | None = Field( + default=None, + alias="startDelayInSeconds", + description="start delay is the time in seconds EVE should wait after boot before starting the application instance", + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + bundle_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="bundleId", + description="User defined name of the edge app, unique across the enterprise. Once app name is created, name can’t be changed", + ) + logs: AppInstanceLogs | None = None + vminfo: Vm | None = None + remote_console: bool | None = Field( + default=None, alias="remoteConsole", description="Remote console flag" + ) + new_bundle_version_available: bool | None = Field( + default=None, + alias="newBundleVersionAvailable", + description="this flag denotes whether there is latest bundle available in the marketplace or not", + ) + bundle_version: int | None = Field( + default=None, alias="bundleVersion", description="current bundle version" + ) + + +class AppInstPolicy(BaseModel): + meta_data: PolicyCommon | None = Field(default=None, alias="metaData") + app_inst_config: AppInstConfig | None = Field(default=None, alias="appInstConfig") + + +class AppPolicy(BaseModel): + apps: list[AppConfig] = Field( + ..., + description="list of app details that will be provisioned on all the devices of the project to which this policy is attached", + ) + + +class AzurePolicy(BaseModel): + app_id: str = Field(..., alias="appId", description="app id for rbac") + app_password: str = Field( + ..., alias="appPassword", description="app password for rbac" + ) + tenant_id: str = Field(..., alias="tenantId", description="tenant id for rbac") + encrypted_secrets: dict[str, str] | None = Field( + default=None, alias="encryptedSecrets", description="encrypted AppPassword" + ) + crypto_key: str | None = Field( + default=None, alias="cryptoKey", description="key to decrypt AppPassword" + ) + azure_resource_and_services: AzureResourceAndServices | None = Field( + default=None, alias="azureResourceAndServices" + ) + custom_deployment_managed: bool | None = Field( + default=None, alias="customDeploymentManaged" + ) + certificate: Certificate | None = None + + +class BondAdapter(BaseModel): + logical_label: str | None = Field( + default=None, + alias="logicalLabel", + description="Logical name of this bond adapter", + ) + interface_name: str | None = Field( + default=None, + alias="interfaceName", + description="A physical name of the bond interface", + ) + lower_layer_names: list[str] | None = Field( + default=None, + alias="lowerLayerNames", + description="Logical names of aggregated PhysicalIOs", + ) + bond_mode: BondMode | None = Field( + default="BOND_MODE_UNSPECIFIED", alias="bondMode" + ) + mii: MIIMonitor | None = None + arp: ArpMonitor | None = None + lacp_rate: LacpRate | None = Field( + default="LACP_RATE_UNSPECIFIED", alias="lacpRate" + ) + interface: SysInterface | None = None + + +class Deployment(BaseModel): + id: str | None = Field( + default=None, description="system generated unique id for an deployment" + ) + name: str | None = Field( + default=None, description="user defined name for the deployment" + ) + title: str | None = Field( + default=None, description="user defined title for the deployment" + ) + app_inst_policies: list[AppInstPolicy] | None = Field( + default=None, + alias="appInstPolicies", + description="list of app instance policies", + ) + network_inst_policies: list[NetworkInstPolicy] | None = Field( + default=None, + alias="networkInstPolicies", + description="list of network instance policies", + ) + volume_inst_policies: list[VolumeInstPolicy] | None = Field( + default=None, + alias="volumeInstPolicies", + description="list of volume instamce policies", + ) + device_policies: list[DevicePolicy] | None = Field( + default=None, alias="devicePolicies", description="list of device policies" + ) + integration_policy: IntegrationPolicy | None = Field( + default=None, alias="integrationPolicy" + ) + cluster_policy: ClusterInstPolicy | None = Field( + default=None, alias="clusterPolicy" + ) + revision: ObjectRevision | None = None + deployment_tag: str | None = Field( + default=None, + alias="deploymentTag", + description="user defined tag for the deployment, which is used while targeting set of devices", + ) + project_id: str | None = Field( + default=None, + alias="projectId", + description="project id", + title="Adding projectId to support for URL params", + ) + edgeview_policy: EdgeViewPolicy | None = Field(default=None, alias="edgeviewPolicy") + + +class DeviceConfigSummary(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, description="system generated unique id for a device" + ) + name: str = Field(..., description="user specified device name") + title: str = Field(..., description="user specified title") + description: str | None = Field( + default=None, description="user specified description" + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + utype: ModelArchType | None = "UNSPECIFIED" + project_id: str = Field(..., alias="projectId", description="project name") + serialno: str | None = Field(default=None, description="Device serial number") + admin_state: AdminState | None = Field( + default="ADMIN_STATE_UNSPECIFIED", alias="adminState" + ) + model_id: str = Field(..., alias="modelId", description="device model") + cluster_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="clusterID", + description="System defined universally unique clusterInstance ID, unique across the enterprise.", + ) + base_image: list[BaseOSImage] | None = Field( + default=None, alias="baseImage", description="base images" + ) + interfaces: list[SysInterface] | None = Field( + default=None, description="System Interface list" + ) + debug_knob: DebugKnobDetail | None = Field(default=None, alias="debugKnob") + deployment_tag: str | None = Field( + default=None, + alias="deploymentTag", + description="user defined tag for the device, which is used while deploying policies.", + ) + vlan_adapters: list[VlanAdapter] | None = Field( + default=None, alias="vlanAdapters", description="A list of VLAN adapters" + ) + revision: ObjectRevision | None = None + bond_adapter: list[BondAdapter] | None = Field( + default=None, alias="bondAdapter", description="A list of Bond adapters" + ) + + +class DeviceStatusConfigList(BaseModel): + summary_by_state: Summary = Field(..., alias="summaryByState") + summary_by_app_instance_count: Summary = Field( + ..., alias="summaryByAppInstanceCount" + ) + summary_by_eve_distribution: Summary = Field(..., alias="summaryByEVEDistribution") + total_count: int = Field( + ..., alias="totalCount", description="total count of devices" + ) + list_: list[DeviceStatusConfig] = Field( + ..., alias="list", description="List of device status config" + ) + total_ev_active_count: int | None = Field( + default=None, + alias="totalEvActiveCount", + description="total count of edgeview active of devices", + ) + next: Cursor | None = None + + +class DeviceStatusListMsg(BaseModel): + list_: list[DeviceStatusSummaryMsg] | None = Field(default=None, alias="list") + summary_by_state: Summary | None = Field(default=None, alias="summaryByState") + summary_by_app_instance_count: Summary | None = Field( + default=None, alias="summaryByAppInstanceCount" + ) + summary_by_eve_distribution: Summary | None = Field( + default=None, alias="summaryByEVEDistribution" + ) + total_count: int | None = Field(default=None, alias="totalCount") + total_edgeview_active: int | None = Field(default=None, alias="totalEdgeviewActive") + next: Cursor | None = None + + +class ModulePolicy(BaseModel): + id: constr(pattern=r"[0-9-a-z-]+") | None = Field( + default=None, description="unique id for deployment" + ) + labels: dict[str, str] | None = Field( + default=None, description="Mapping of label variable keys and value" + ) + priority: int = Field(..., description="deployment priority of module manifest") + target_condition: str | None = Field( + default=None, + alias="targetCondition", + description="target condition for deployment that matches single device or group of devices", + ) + metrics: MetricsDetail | None = None + etag: str | None = Field( + default=None, alias="Etag", description="etag for deployment" + ) + routes: dict[str, str] | None = Field( + default=None, description="Mapping of routes variable keys and value" + ) + apps: list[AppConfig] = Field( + ..., + description="list of app details that will be provisioned on all the devices of the project to which this policy is attached", + ) + target_condition_new: dict[str, str] | None = Field( + default=None, + alias="targetConditionNew", + description="target condition for deployment that matches single device or group of devices", + ) + azure_edge_agent: AppConfig | None = Field(default=None, alias="azureEdgeAgent") + azure_edge_hub: AppConfig | None = Field(default=None, alias="azureEdgeHub") + + +class PolicyConfig(BaseModel): + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the policy request, unique across the enterprise. Once object is created, name can’t be changed", + ) + id: ( + constr( + pattern=r"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + ) + | None + ) = Field( + default=None, + description="System defined universally unique Id of the policy request", + ) + title: constr( + pattern=r"^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined title of the policy. Title can be changed at any time", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the policy" + ) + type: PolicyType + status: PolicyStatus | None = "POLICY_STATUS_UNSPECIFIED" + revision: ObjectRevision | None = None + attr: dict[str, str] | None = Field( + default=None, + description="Mapping of policy variable keys and policy variable values", + ) + app_policy: AppPolicy | None = Field(default=None, alias="appPolicy") + azure_policy: AzurePolicy | None = Field(default=None, alias="azurePolicy") + module_policy: ModulePolicy | None = Field(default=None, alias="modulePolicy") + attestation_policy: AttestationPolicy | None = Field( + default=None, alias="attestationPolicy" + ) + network_policy: NetworkPolicy | None = Field(default=None, alias="networkPolicy") + cluster_policy: ClusterPolicy | None = Field(default=None, alias="clusterPolicy") + edgeview_policy: EdgeviewPolicy | None = Field(default=None, alias="edgeviewPolicy") + local_operator_console_policy: LocalOperatorConsolePolicy | None = Field( + default=None, alias="localOperatorConsolePolicy" + ) + configuration_lock_policy: ConfigurationLockPolicy | None = Field( + default=None, alias="configurationLockPolicy" + ) + pcr_policy: PCRPolicy | None = Field(default=None, alias="pcrPolicy") + port_based_network_access_control_policy: ( + PortBasedNetworkAccessControlPolicy | None + ) = Field(default=None, alias="portBasedNetworkAccessControlPolicy") + status_message: constr(max_length=256) | None = Field( + default=None, + alias="statusMessage", + description="Detailed status message of the policy", + ) + + +class Tag(BaseModel): + id: ( + constr( + pattern=r"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + ) + | None + ) = Field( + default=None, + description="System defined universally unique Id of the resource group.", + ) + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the resource group, unique across the enterprise. Once resource group is created, name can’t be changed.", + ) + title: constr( + pattern=r"[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined title of the resource group. Title can be changed at any time.", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the resource group." + ) + revision: ObjectRevision | None = None + tag_level_settings: TagLevelSettings | None = Field( + default=None, alias="tagLevelSettings" + ) + type: TagType + attr: dict[str, str] | None = Field( + default=None, description="Resource group wide configuration for edge nodes" + ) + app_policy: PolicyConfig | None = Field(default=None, alias="appPolicy") + cloud_policy: PolicyConfig | None = Field(default=None, alias="cloudPolicy") + module_policy: list[PolicyConfig] | None = Field( + default=None, + alias="modulePolicy", + description="Resource group wide policy for Azure module configuration to be applied to all edge applications", + ) + numdevices: int | None = Field( + default=None, description="Number of edge nodes in this resource group" + ) + attestation_policy: PolicyConfig | None = Field( + default=None, alias="attestationPolicy" + ) + network_policy: PolicyConfig | None = Field(default=None, alias="networkPolicy") + deployment: Deployment | None = None + edgeview_policy: PolicyConfig | None = Field(default=None, alias="edgeviewPolicy") + local_operator_console_policy: PolicyConfig | None = Field( + default=None, alias="localOperatorConsolePolicy" + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + configuration_lock_policy: PolicyConfig | None = Field( + default=None, alias="configurationLockPolicy" + ) + pcr_policy: PolicyConfig | None = Field(default=None, alias="pcrPolicy") + port_based_network_access_control_policy: PolicyConfig | None = Field( + default=None, alias="portBasedNetworkAccessControlPolicy" + ) + + +class TagUpdateHttpRequest(BaseModel): + id: constr( + pattern=r"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + ) = Field( + ..., description="System defined universally unique Id of the resource group." + ) + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the resource group, unique across the enterprise. Once resource group is created, name can’t be changed.", + ) + title: constr( + pattern=r"[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined title of the resource group. Title can be changed at any time.", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the resource group." + ) + revision: ObjectRevision | None = None + tag_level_settings: TagLevelSettings | None = Field( + default=None, alias="tagLevelSettings" + ) + type: TagType + attr: dict[str, str] | None = Field( + default=None, description="Resource group wide configuration for edge nodes" + ) + app_policy: PolicyConfig | None = Field(default=None, alias="appPolicy") + cloud_policy: PolicyConfig | None = Field(default=None, alias="cloudPolicy") + module_policy: list[PolicyConfig] | None = Field( + default=None, + alias="modulePolicy", + description="Resource group wide policy for Azure module configuration to be applied to all edge applications", + ) + numdevices: int | None = Field( + default=None, description="Number of edge nodes in this resource group" + ) + attestation_policy: PolicyConfig | None = Field( + default=None, alias="attestationPolicy" + ) + network_policy: PolicyConfig | None = Field(default=None, alias="networkPolicy") + deployment: Deployment | None = None + edgeview_policy: PolicyConfig | None = Field(default=None, alias="edgeviewPolicy") + local_operator_console_policy: PolicyConfig | None = Field( + default=None, alias="localOperatorConsolePolicy" + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + configuration_lock_policy: PolicyConfig | None = Field( + default=None, alias="configurationLockPolicy" + ) + port_based_network_access_control_policy: PolicyConfig | None = Field( + default=None, alias="portBasedNetworkAccessControlPolicy" + ) + + +class Tags(BaseModel): + summary_by_state: Summary | None = Field(default=None, alias="summaryByState") + summary_by_type: Summary | None = Field(default=None, alias="summaryByType") + list_: list[Tag] | None = Field( + default=None, + alias="list", + description="List of filtered resource group records", + ) + next: Cursor | None = None + + +class DeviceConfig(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, description="system generated unique id for a device" + ) + name: str = Field(..., description="user specified device name") + title: str = Field(..., description="user specified title") + description: str | None = Field( + default=None, description="user specified description" + ) + revision: ObjectRevision | None = None + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + utype: ModelArchType | None = "UNSPECIFIED" + project_id: str = Field(..., alias="projectId", description="project name") + serialno: str | None = Field(default=None, description="Device serial number") + location: str | None = Field( + default=None, description="Device location: deprecated" + ) + cpu: float | None = Field(default=None, description="CPU (configured values)") + thread: float | None = Field(default=None, description="Threads") + memory: float | None = Field(default=None, description="Device memory in MBs") + storage: float | None = Field(default=None, description="Device storage in GBs") + onboarding: DeviceCerts | None = None + identity: Base64Str | None = Field(default=None, description="Device identity") + obkey: str | None = Field(default=None, description="Object key") + token: str | None = Field(default=None, description="Single use token") + client_ip: str | None = Field( + default=None, alias="clientIp", description="Client IP" + ) + dlisp: DeviceLisp | None = None + cluster_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="clusterID", + description="System defined universally unique clusterInstance ID, unique across the enterprise.", + ) + admin_state: AdminState | None = Field( + default="ADMIN_STATE_UNSPECIFIED", alias="adminState" + ) + reset_counter: float | None = Field( + default=None, alias="resetCounter", description="devicereset counter" + ) + reset_time: str | None = Field( + default=None, alias="resetTime", description="device reset time" + ) + base_image: list[BaseOSImage] | None = Field( + default=None, alias="baseImage", description="base images" + ) + model_id: str = Field(..., alias="modelId", description="device model") + config_item: list[EDConfigItem] | None = Field( + default=None, alias="configItem", description="ED configurations" + ) + deprecated: str | None = Field(default=None, description="deprecated field") + vlan_adapters: list[VlanAdapter] | None = Field( + default=None, + alias="vlanAdapters", + description="A list of VLAN sub-interfaces configured for EVE management traffic and for local network instances", + ) + interfaces: list[SysInterface] | None = Field( + default=None, description="System Interface list" + ) + dev_location: GeoLocation | None = Field(default=None, alias="devLocation") + site_pictures: list[str] | None = Field( + default=None, alias="sitePictures", description="Site captured pictures" + ) + asset_id: str | None = Field( + default=None, alias="assetId", description="Device asset ID" + ) + base_os_retry_counter: float | None = Field( + default=None, + alias="baseOsRetryCounter", + description="device baseos retry counter", + ) + base_os_retry_time: str | None = Field( + default=None, alias="baseOsRetryTime", description="device baseos retry time" + ) + debug_knob: DebugKnobDetail | None = Field(default=None, alias="debugKnob") + default_net_inst: NetInstConfig | None = Field(default=None, alias="defaultNetInst") + prepare_power_off_counter: float | None = Field( + default=None, + alias="preparePowerOffCounter", + description="prepare poweroff counter", + ) + prepare_power_off_time: str | None = Field( + default=None, alias="preparePowerOffTime", description="prepare poweroff time" + ) + edgeviewconfig: EdgeviewCfg | None = None + generate_soft_serial: bool | None = Field( + default=None, + alias="generateSoftSerial", + description="indicates whether a soft serial should be generated; it will work ONLY when device is created", + ) + deployment_tag: str | None = Field( + default=None, + alias="deploymentTag", + description="user defined tag for the device, which is used while deploying policies.", + ) + local_operator_console_url: str | None = Field( + default=None, + alias="localOperatorConsoleURL", + description="local operator console url", + title="will be deprecated 73", + ) + config_lock: DeviceConfigLock | None = Field( + default="DEVICE_CONFIG_LOCK_UNSPECIFIED", alias="configLock" + ) + edgeview_allow: bool | None = Field( + default=None, + alias="edgeviewAllow", + description="Allow device to enable Edgeview", + title="To support edge view policy in deployments, adding a new column in device table", + ) + cluster_interface: str | None = Field( + default=None, + alias="clusterInterface", + description="Cluster Interface", + title="The following two fields are related to the edge node cluster configuration", + ) + edge_node_cluster: EdgeNodeClusterConfig | None = Field( + default=None, alias="edgeNodeCluster" + ) + base_os_force_upgrade: bool | None = Field( + default=None, alias="baseOsForceUpgrade", description="Force upgrade base OS" + ) + project: ProjectInfo | None = None + model: ModelInfo | None = None + edge_sync_config: EdgeSyncConfig | None = Field( + default=None, alias="edgeSyncConfig" + ) + pcr_policy: PolicyConfig | None = Field(default=None, alias="pcrPolicy") + bond_adapter: list[BondAdapter] | None = Field( + default=None, alias="bondAdapter", description="A list of bond interfaces" + ) + + +class DeviceConfigList(BaseModel): + summary_by_state: Summary = Field(..., alias="summaryByState") + summary_by_tag_distribution: Summary | None = Field( + default=None, alias="summaryByTagDistribution" + ) + list_: list[DeviceConfigSummary] = Field( + ..., alias="list", description="device config list" + ) + next: Cursor diff --git a/packages/zedcloud/src/zedcloud/_generated/models/orchestration.py b/packages/zedcloud/src/zedcloud/_generated/models/orchestration.py new file mode 100644 index 0000000..95e26b9 --- /dev/null +++ b/packages/zedcloud/src/zedcloud/_generated/models/orchestration.py @@ -0,0 +1,3023 @@ +# Generated by scripts/generate_from_openapi.py from zedge_orchestration_service.swagger.json +# Do not edit by hand — re-run: uv run python scripts/generate_from_openapi.py + +from __future__ import annotations +from enum import Enum +from pydantic import AwareDatetime, Base64Str, BaseModel, Field, confloat, constr +from typing import Any + + +class AdminState(Enum): + admin_state_unspecified = "ADMIN_STATE_UNSPECIFIED" + admin_state_created = "ADMIN_STATE_CREATED" + admin_state_deleted = "ADMIN_STATE_DELETED" + admin_state_active = "ADMIN_STATE_ACTIVE" + admin_state_inactive = "ADMIN_STATE_INACTIVE" + admin_state_registered = "ADMIN_STATE_REGISTERED" + admin_state_archived = "ADMIN_STATE_ARCHIVED" + admin_state_deletion_pending = "ADMIN_STATE_DELETION_PENDING" + + +class AppInstEdgeNodeCluster(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, description="Id of the edge node cluster" + ) + designated_node_id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, alias="designatedNodeID", description="Id of the designated node" + ) + name: str | None = Field(default=None, description="edge node cluster name") + enable_app_pinning: bool | None = Field( + default=None, + alias="enableAppPinning", + description="enable application pinning to edge node cluster's designated node", + ) + + +class AppInstMemorySummary(BaseModel): + allocated_mb: float | None = Field( + default=None, + alias="AllocatedMB", + description="Total memory allocated for the App instance.", + title="AllocatedMB - Total memory allocated to the App Instance.\nNormally, AllocatedMB >= UsedMB + AvailableMB", + ) + used_mb: float | None = Field( + default=None, + alias="UsedMB", + description="Total memory used by the App within allocated memory", + ) + available_mb: float | None = Field( + default=None, + alias="AvailableMB", + description="Available / Free memory in the App", + ) + + +class AppInstanceLogs(BaseModel): + access: bool = Field( + ..., + description="Flags to enable / disable sending of logs generated by app instance to zedcloud", + ) + + +class AppType(Enum): + app_type_unspecified = "APP_TYPE_UNSPECIFIED" + app_type_vm = "APP_TYPE_VM" + app_type_vm_runtime = "APP_TYPE_VM_RUNTIME" + app_type_container = "APP_TYPE_CONTAINER" + app_type_module = "APP_TYPE_MODULE" + app_type_docker_compose = "APP_TYPE_DOCKER_COMPOSE" + + +class ClusterNodeType(Enum): + cluster_node_type_unspecified = "CLUSTER_NODE_TYPE_UNSPECIFIED" + cluster_node_type_master = "CLUSTER_NODE_TYPE_MASTER" + cluster_node_type_worker = "CLUSTER_NODE_TYPE_WORKER" + cluster_node_type_tie_breaker = "CLUSTER_NODE_TYPE_TIE_BREAKER" + + +class ClusterOnboardType(Enum): + cluster_onboard_type_unspecified = "CLUSTER_ONBOARD_TYPE_UNSPECIFIED" + cluster_onboard_type_manual = "CLUSTER_ONBOARD_TYPE_MANUAL" + cluster_onboard_type_automatic = "CLUSTER_ONBOARD_TYPE_AUTOMATIC" + + +class ClusterRunState(Enum): + cluster_run_state_unspecified = "CLUSTER_RUN_STATE_UNSPECIFIED" + cluster_run_state_init = "CLUSTER_RUN_STATE_INIT" + cluster_run_state_provisioning_seed_server = ( + "CLUSTER_RUN_STATE_PROVISIONING_SEED_SERVER" + ) + cluster_run_state_provisioned_seed_server = ( + "CLUSTER_RUN_STATE_PROVISIONED_SEED_SERVER" + ) + cluster_run_state_unhealthy = "CLUSTER_RUN_STATE_UNHEALTHY" + cluster_run_state_provisioning_nodes = "CLUSTER_RUN_STATE_PROVISIONING_NODES" + cluster_run_state_healthy = "CLUSTER_RUN_STATE_HEALTHY" + cluster_run_state_partially_healthy = "CLUSTER_RUN_STATE_PARTIALLY_HEALTHY" + cluster_run_state_offline = "CLUSTER_RUN_STATE_OFFLINE" + + +class ClusterType(Enum): + cluster_type_unspecified = "CLUSTER_TYPE_UNSPECIFIED" + cluster_type_k3_s = "CLUSTER_TYPE_K3S" + cluster_type_tkg_attach = "CLUSTER_TYPE_TKG_ATTACH" + + +class CpuSummary(BaseModel): + utilization: float | None = Field( + default=None, alias="Utilization", description="CPU Utilization" + ) + + +class Cursor(BaseModel): + page_token: str | None = Field( + default=None, alias="pageToken", description="Page Token" + ) + order_by: list[str] | None = Field( + default=None, + alias="orderBy", + description="OrderBy helps in sorting the list response", + ) + page_num: float | None = Field( + default=None, alias="pageNum", description="Page Number" + ) + page_size: float | None = Field( + default=None, alias="pageSize", description="Defines the page size" + ) + total_pages: float | None = Field( + default=None, + alias="totalPages", + description="Total number of pages to be fetched.", + ) + + +class DNSInfo(BaseModel): + servers: list[str] = Field(..., description="Array of dns server") + domain: str = Field(..., description="domain name") + search: list[str] = Field(..., description="Array of search strings") + + +class DataSourceType(Enum): + data_source_type_unused = "DATA_SOURCE_TYPE_UNUSED" + data_source_type_app_logs = "DATA_SOURCE_TYPE_APP_LOGS" + data_source_type_events = "DATA_SOURCE_TYPE_EVENTS" + data_source_type_metrics = "DATA_SOURCE_TYPE_METRICS" + + +class DataStreamConfigReqListHttpRequestDataSourceTypeHttpRequest(Enum): + unused = "UNUSED" + app_logs = "APP_LOGS" + events = "EVENTS" + metrics = "METRICS" + + +class DeploymentType(Enum): + deployment_type_unspecified = "DEPLOYMENT_TYPE_UNSPECIFIED" + deployment_type_stand_alone = "DEPLOYMENT_TYPE_STAND_ALONE" + deployment_type_azure = "DEPLOYMENT_TYPE_AZURE" + deployment_type_k3_s = "DEPLOYMENT_TYPE_K3S" + deployment_type_aws = "DEPLOYMENT_TYPE_AWS" + deployment_type_k3_s_azure = "DEPLOYMENT_TYPE_K3S_AZURE" + deployment_type_k3_s_aws = "DEPLOYMENT_TYPE_K3S_AWS" + deployment_type_vmware_vce = "DEPLOYMENT_TYPE_VMWARE_VCE" + deployment_type_vmware_tkg_attach = "DEPLOYMENT_TYPE_VMWARE_TKG_ATTACH" + deployment_type_docker_runtime = "DEPLOYMENT_TYPE_DOCKER_RUNTIME" + + +class DeviceHWSecurityModuleStatus(Enum): + device_hw_security_module_status_unspecified = ( + "DEVICE_HW_SECURITY_MODULE_STATUS_UNSPECIFIED" + ) + device_hw_security_module_status_not_found = ( + "DEVICE_HW_SECURITY_MODULE_STATUS_NOT_FOUND" + ) + device_hw_security_module_status_disabled = ( + "DEVICE_HW_SECURITY_MODULE_STATUS_DISABLED" + ) + device_hw_security_module_status_enabled = ( + "DEVICE_HW_SECURITY_MODULE_STATUS_ENABLED" + ) + + +class DeviceInfo(BaseModel): + machine_arch: str | None = Field(default=None, alias="machineArch") + cpu_arch: str | None = Field(default=None, alias="cpuArch") + platform: str | None = None + n_cpu: int | None = Field(default=None, alias="nCpu") + mem_mb: str | None = Field(default=None, alias="memMB") + storage_mb: str | None = Field(default=None, alias="storageMB") + + +class DeviceMemorySummary(BaseModel): + device_memory_mb: float | None = Field( + default=None, + alias="deviceMemoryMB", + description="Total memory on the device.", + title="deviceMemoryMB >= allocatedForAppsMB + allocatedForEveMB", + ) + allocated_apps_mb: float | None = Field( + default=None, + alias="allocatedAppsMB", + description="Total memory allocated to app instances.", + ) + allocated_eve_mb: float | None = Field( + default=None, + alias="allocatedEveMB", + description="Total memory allocated to EVE on the device.", + ) + used_eve_mb: float | None = Field( + default=None, + alias="usedEveMB", + description="Memory currently used by EVE on the device.", + title="usedByEveMB <= allocatedForEveMB", + ) + available_for_new_apps: float | None = Field( + default=None, + alias="availableForNewApps", + description="Memory Available for new app-instances on the device.", + title="availableForNewApps = deviceMemoryMB - ( allocatedForAppsMB + allocatedForEveMB )", + ) + + +class DeviceSWStatus(Enum): + device_sw_status_unspecified = "DEVICE_SW_STATUS_UNSPECIFIED" + device_sw_status_downloading = "DEVICE_SW_STATUS_DOWNLOADING" + device_sw_status_downloaddone = "DEVICE_SW_STATUS_DOWNLOADDONE" + device_sw_status_updating = "DEVICE_SW_STATUS_UPDATING" + device_sw_status_updated = "DEVICE_SW_STATUS_UPDATED" + device_sw_status_fallback = "DEVICE_SW_STATUS_FALLBACK" + device_sw_status_failed = "DEVICE_SW_STATUS_FAILED" + + +class DeviceSWSubStatus(Enum): + device_sw_sub_status_unspecified = "DEVICE_SW_SUB_STATUS_UNSPECIFIED" + device_sw_sub_status_download_in_progress = ( + "DEVICE_SW_SUB_STATUS_DOWNLOAD_IN_PROGRESS" + ) + device_sw_sub_status_verify_in_progress = "DEVICE_SW_SUB_STATUS_VERIFY_IN_PROGRESS" + device_sw_sub_status_update_initializing = ( + "DEVICE_SW_SUB_STATUS_UPDATE_INITIALIZING" + ) + device_sw_sub_status_update_rebooting = "DEVICE_SW_SUB_STATUS_UPDATE_REBOOTING" + device_sw_sub_status_update_testing = "DEVICE_SW_SUB_STATUS_UPDATE_TESTING" + device_sw_sub_status_update_need_test_confirm = ( + "DEVICE_SW_SUB_STATUS_UPDATE_NEED_TEST_CONFIRM" + ) + device_sw_sub_status_update_deferred = "DEVICE_SW_SUB_STATUS_UPDATE_DEFERRED" + + +class EdgedeviceList(BaseModel): + module_policy_id: str | None = Field(default=None, alias="modulePolicyId") + edge_devices: list[str] | None = Field(default=None, alias="edgeDevices") + + +class EnrolledCertStatus(Enum): + enrolled_cert_status_unspecified = "ENROLLED_CERT_STATUS_UNSPECIFIED" + enrolled_cert_status_available = "ENROLLED_CERT_STATUS_AVAILABLE" + enrolled_cert_status_pending = "ENROLLED_CERT_STATUS_PENDING" + enrolled_cert_status_renewal_pending = "ENROLLED_CERT_STATUS_RENEWAL_PENDING" + enrolled_cert_status_expired = "ENROLLED_CERT_STATUS_EXPIRED" + enrolled_cert_status_revoked = "ENROLLED_CERT_STATUS_REVOKED" + enrolled_cert_status_enrollment_failed = "ENROLLED_CERT_STATUS_ENROLLMENT_FAILED" + enrolled_cert_status_renewal_failed = "ENROLLED_CERT_STATUS_RENEWAL_FAILED" + enrolled_cert_status_invalid_config = "ENROLLED_CERT_STATUS_INVALID_CONFIG" + + +class EnterpriseInfo(BaseModel): + enterprise_id: str | None = Field( + default=None, alias="enterpriseId", description="Enterprise ID." + ) + count: float | None = Field( + default=None, description="Count of the HTTP status codes." + ) + + +class Entity(Enum): + entity_unspecified = "ENTITY_UNSPECIFIED" + entity_base_os = "ENTITY_BASE_OS" + entity_system_adapter = "ENTITY_SYSTEM_ADAPTER" + entity_vault = "ENTITY_VAULT" + entity_attestation = "ENTITY_ATTESTATION" + entity_app_instance = "ENTITY_APP_INSTANCE" + entity_port = "ENTITY_PORT" + entity_network = "ENTITY_NETWORK" + entity_network_instance = "ENTITY_NETWORK_INSTANCE" + entity_content_tree = "ENTITY_CONTENT_TREE" + entity_content_blob = "ENTITY_CONTENT_BLOB" + entity_volume = "ENTITY_VOLUME" + + +class EventSource(Enum): + event_source_unspecified = "EVENT_SOURCE_UNSPECIFIED" + event_source_system = "EVENT_SOURCE_SYSTEM" + event_source_user = "EVENT_SOURCE_USER" + + +class GPSLocation(BaseModel): + latitude: float | None = Field(default=None, description="Latitude") + longitude: float | None = Field(default=None, description="Longitude") + altitude: float | None = Field( + default=None, description="Altitude from mean sea level" + ) + timestamp: dict[str, Any] | None = Field(default=None, description="UTC timestamp") + horizontal_reliability: float | None = Field( + default=None, + alias="horizontalReliability", + description="Horizontal reliability", + ) + vertical_reliability: float | None = Field( + default=None, alias="verticalReliability", description="Vertical reliability" + ) + horizontal_uncertainty: float | None = Field( + default=None, + alias="horizontalUncertainty", + description="Horizontal uncertainty", + ) + vertical_uncertainty: float | None = Field( + default=None, alias="verticalUncertainty", description="Vertical uncertainty" + ) + logical_label: str | None = Field( + default=None, + alias="logicalLabel", + description="Logical label of the adapter used to get GPS coordinates", + ) + + +class GeoLocation(BaseModel): + underlay_ip: str | None = Field( + default=None, + alias="underlayIP", + description="Single IP address, either in IPv4 or in IPv6 format", + ) + hostname: str | None = Field(default=None, description="Host name") + city: str | None = Field(default=None, description="City") + region: str | None = Field(default=None, description="Region") + country: str | None = Field( + default=None, + description="Country code consisting of 2 capital letters as per ISO 3166-1 alpha2 standard", + ) + loc: str | None = Field( + default=None, + description="Ordered pair of (latitude, longitude) separated by comma (,). Latitude is the horizontal component used for geographic positioning; it is the angle between 0° (the equator) and ±90° (north or south) at the poles measured in decimal degrees. It is the first value in an ordered pair. A negative number denotes a location south of the equator; a positive number is north. Longitude is the vertical component used for geographic positioning; it is the angle between 0° (the Prime Meridian) and ±180° (westward or eastward) measured in decimal degrees. It is the second number in an ordered pair. A negative number indicates a location west of Greenwich, England; a positive number east.", + ) + org: str | None = Field( + default=None, + description="The name of the recipient, firm, or company at this geographical location.", + ) + postal: str | None = Field( + default=None, + description="Postal code (ZIP code for USA) of the geographical location", + ) + latlong: str | None = Field( + default=None, description="Deprecated field: comma, separated lat, long" + ) + freeloc: str | None = Field( + default=None, description="Free formatted location string" + ) + + +class HttpConfig(BaseModel): + host: str = Field(..., description="The Host where Http server is running.") + port: str = Field(..., description="Port to which Http server is listening to.") + extension: str = Field(..., description="Url extension") + encrypted_secrets: dict[str, str] | None = Field( + default=None, alias="encryptedSecrets", description="encrypted secrets" + ) + crypto_key: str | None = Field( + default=None, alias="cryptoKey", description="key to decrypt serets" + ) + enable_tls: bool | None = Field( + default=None, alias="enableTLS", description="TLS enable flag" + ) + skip_verify: bool | None = Field( + default=None, alias="skipVerify", description="specify skip verify flag" + ) + http_session_token: str | None = Field( + default=None, alias="httpSessionToken", description="The http session token" + ) + cert_file: str | None = Field( + default=None, alias="certFile", description="The http client cert file path" + ) + key_file: str | None = Field( + default=None, + alias="keyFile", + description="The http client private key file path", + ) + root_cas_file: str | None = Field( + default=None, + alias="rootCasFile", + description="The http client server cert file path", + ) + + +class InstanceTransitionAction(Enum): + instance_ta_unspecified = "INSTANCE_TA_UNSPECIFIED" + instance_ta_none = "INSTANCE_TA_NONE" + instance_ta_updaterequired = "INSTANCE_TA_UPDATEREQUIRED" + instance_ta_updatewithrestart = "INSTANCE_TA_UPDATEWITHRESTART" + instance_ta_updatewithpurge = "INSTANCE_TA_UPDATEWITHPURGE" + + +class IoType(Enum): + io_type_unspecified = "IO_TYPE_UNSPECIFIED" + io_type_eth = "IO_TYPE_ETH" + io_type_usb = "IO_TYPE_USB" + io_type_com = "IO_TYPE_COM" + io_type_audio = "IO_TYPE_AUDIO" + io_type_wlan = "IO_TYPE_WLAN" + io_type_wwan = "IO_TYPE_WWAN" + io_type_hdmi = "IO_TYPE_HDMI" + io_type_lte = "IO_TYPE_LTE" + io_type_storage_nvme_device = "IO_TYPE_STORAGE_NVME_DEVICE" + io_type_storage_sata_device = "IO_TYPE_STORAGE_SATA_DEVICE" + io_type_eth_pf = "IO_TYPE_ETH_PF" + io_type_eth_vf = "IO_TYPE_ETH_VF" + io_type_usb_controller = "IO_TYPE_USB_CONTROLLER" + io_type_usb_device = "IO_TYPE_USB_DEVICE" + io_type_can = "IO_TYPE_CAN" + io_type_vcan = "IO_TYPE_VCAN" + io_type_lcan = "IO_TYPE_LCAN" + io_type_vlan = "IO_TYPE_VLAN" + io_type_other = "IO_TYPE_OTHER" + + +class LispServer(BaseModel): + name_or_ip: str = Field(..., alias="nameOrIp", description="name/IP") + credential: str = Field(..., description="lisp credential") + + +class MemorySummary(BaseModel): + total_mb: float | None = Field( + default=None, alias="TotalMB", description="Total memory for the device in MBs" + ) + used_mb: float | None = Field( + default=None, + alias="UsedMB", + description="Total memory used by the device in MBs within allocated memory", + ) + allocated_mb: float | None = Field( + default=None, alias="AllocatedMB", description="Total allocated memory in MBs" + ) + + +class NetInstEdgeNodeCluster(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, description="Id of the Edge Node Cluster" + ) + designated_node_id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + alias="designatedNodeID", + description="Id of the designated Edge Node", + ) + + +class NetworkInstanceDhcpType(Enum): + network_instance_dhcp_type_unspecified = "NETWORK_INSTANCE_DHCP_TYPE_UNSPECIFIED" + network_instance_dhcp_type_v4 = "NETWORK_INSTANCE_DHCP_TYPE_V4" + network_instance_dhcp_type_v6 = "NETWORK_INSTANCE_DHCP_TYPE_V6" + network_instance_dhcp_type_cryptoeid = "NETWORK_INSTANCE_DHCP_TYPE_CRYPTOEID" + network_instance_dhcp_type_cryptov4 = "NETWORK_INSTANCE_DHCP_TYPE_CRYPTOV4" + network_instance_dhcp_type_cryptov6 = "NETWORK_INSTANCE_DHCP_TYPE_CRYPTOV6" + + +class NetworkInstanceKind(Enum): + network_instance_kind_unspecified = "NETWORK_INSTANCE_KIND_UNSPECIFIED" + network_instance_kind_transparent = "NETWORK_INSTANCE_KIND_TRANSPARENT" + network_instance_kind_switch = "NETWORK_INSTANCE_KIND_SWITCH" + network_instance_kind_local = "NETWORK_INSTANCE_KIND_LOCAL" + network_instance_kind_cloud = "NETWORK_INSTANCE_KIND_CLOUD" + network_instance_kind_mesh = "NETWORK_INSTANCE_KIND_MESH" + network_instance_kind_honeypot = "NETWORK_INSTANCE_KIND_HONEYPOT" + + +class NetworkProxyProto(Enum): + network_proxy_proto_http = "NETWORK_PROXY_PROTO_HTTP" + network_proxy_proto_https = "NETWORK_PROXY_PROTO_HTTPS" + network_proxy_proto_socks = "NETWORK_PROXY_PROTO_SOCKS" + network_proxy_proto_ftp = "NETWORK_PROXY_PROTO_FTP" + network_proxy_proto_other = "NETWORK_PROXY_PROTO_OTHER" + + +class NtpServer(BaseModel): + server: str | None = Field(default=None, description="NTP Server IP or FQDN") + + +class ObjectRevision(BaseModel): + prev: str | None = Field(default=None, description="Previous") + curr: str = Field(..., description="Current Database version of the record") + created_at: dict[str, Any] = Field( + ..., + alias="createdAt", + description="The time, in milliseconds since the epoch, when the record was created.", + ) + created_by: str = Field(..., alias="createdBy", description="User data: Created By") + updated_at: dict[str, Any] = Field( + ..., + alias="updatedAt", + description="The time, in milliseconds since the epoch, when the record was last updated.", + ) + updated_by: str = Field(..., alias="updatedBy", description="User data: Updated By") + + +class ObjectTag(BaseModel): + key: str | None = Field(default=None, description="object tag key identifier.") + value: str | None = Field( + default=None, description="value associated for the object tag key" + ) + description: str | None = Field( + default=None, description="Description of the tag key" + ) + + +class ObjectTagsList(BaseModel): + object_tags: list[ObjectTag] | None = Field( + default=None, + alias="objectTags", + description="Details of Object tags list records.", + ) + next: Cursor | None = None + + +class ObjectType(Enum): + object_type_unspecified = "OBJECT_TYPE_UNSPECIFIED" + object_type_user = "OBJECT_TYPE_USER" + object_type_edge_node = "OBJECT_TYPE_EDGE_NODE" + object_type_edge_app = "OBJECT_TYPE_EDGE_APP" + object_type_image = "OBJECT_TYPE_IMAGE" + object_type_edge_app_instance = "OBJECT_TYPE_EDGE_APP_INSTANCE" + object_type_project = "OBJECT_TYPE_PROJECT" + object_type_network = "OBJECT_TYPE_NETWORK" + object_type_datastore = "OBJECT_TYPE_DATASTORE" + object_type_service = "OBJECT_TYPE_SERVICE" + object_type_service_instance = "OBJECT_TYPE_SERVICE_INSTANCE" + object_type_enterprise = "OBJECT_TYPE_ENTERPRISE" + object_type_role = "OBJECT_TYPE_ROLE" + object_type_credential = "OBJECT_TYPE_CREDENTIAL" + object_type_network_instance = "OBJECT_TYPE_NETWORK_INSTANCE" + object_type_volume_instance = "OBJECT_TYPE_VOLUME_INSTANCE" + object_type_realm = "OBJECT_TYPE_REALM" + object_type_authprofile = "OBJECT_TYPE_AUTHPROFILE" + object_type_policy = "OBJECT_TYPE_POLICY" + object_type_app_policy = "OBJECT_TYPE_APP_POLICY" + object_type_cluster_instance = "OBJECT_TYPE_CLUSTER_INSTANCE" + object_type_plugin = "OBJECT_TYPE_PLUGIN" + object_type_doc_policy = "OBJECT_TYPE_DOC_POLICY" + object_type_orchestrator_cluster = "OBJECT_TYPE_ORCHESTRATOR_CLUSTER" + object_type_tags = "OBJECT_TYPE_TAGS" + object_type_edge_node_interface = "OBJECT_TYPE_EDGE_NODE_INTERFACE" + object_type_deployment = "OBJECT_TYPE_DEPLOYMENT" + object_type_entitlements = "OBJECT_TYPE_ENTITLEMENTS" + object_type_data_stream = "OBJECT_TYPE_DATA_STREAM" + object_type_api_usage = "OBJECT_TYPE_API_USAGE" + object_type_app_instance_snapshot = "OBJECT_TYPE_APP_INSTANCE_SNAPSHOT" + object_type_patch_envelope = "OBJECT_TYPE_PATCH_ENVELOPE" + object_type_resource_usage_track = "OBJECT_TYPE_RESOURCE_USAGE_TRACK" + object_type_patch_envelope_reference = "OBJECT_TYPE_PATCH_ENVELOPE_REFERENCE" + object_type_dev_passthrough = "OBJECT_TYPE_DEV_PASSTHROUGH" + object_type_edge_node_cluster = "OBJECT_TYPE_EDGE_NODE_CLUSTER" + object_type_asset_group = "OBJECT_TYPE_ASSET_GROUP" + object_type_app_profile = "OBJECT_TYPE_APP_PROFILE" + object_type_profile_deployment = "OBJECT_TYPE_PROFILE_DEPLOYMENT" + object_type_zks_instance = "OBJECT_TYPE_ZKS_INSTANCE" + object_type_cluster_group = "OBJECT_TYPE_CLUSTER_GROUP" + + +class OpaqueConfigType(Enum): + opaque_config_type_unspecified = "OPAQUE_CONFIG_TYPE_UNSPECIFIED" + opaque_config_type_vpn = "OPAQUE_CONFIG_TYPE_VPN" + opaque_config_type_lisp = "OPAQUE_CONFIG_TYPE_LISP" + + +class OpenTelemetryConfig(BaseModel): + host: str = Field( + ..., + description="The hostname or IP address of the OpenTelemetry collector endpoint.", + ) + port: int = Field( + ..., description="The port on which the OpenTelemetry collector is listening." + ) + url_extension: str | None = Field( + default=None, + alias="urlExtension", + description="URL path extension for the OpenTelemetry collector endpoint.", + ) + bearer_token: str = Field( + ..., + alias="bearerToken", + description="Bearer token for authenticating with the OpenTelemetry collector.", + ) + enable_tls: bool | None = Field( + default=None, + alias="enableTLS", + description="Enable TLS for the connection to the OpenTelemetry collector.", + ) + skip_verify: bool | None = Field( + default=None, + alias="skipVerify", + description="Skip TLS certificate verification.", + ) + + +class OrchestrationProvider(Enum): + orchestrator_provider_unspecified = "ORCHESTRATOR_PROVIDER_UNSPECIFIED" + orchestrator_provider_rancher = "ORCHESTRATOR_PROVIDER_RANCHER" + + +class OrchestratorAuthenticationType(Enum): + orchestrator_authentication_type_unspecified = ( + "ORCHESTRATOR_AUTHENTICATION_TYPE_UNSPECIFIED" + ) + orchestrator_authentication_type_credentials = ( + "ORCHESTRATOR_AUTHENTICATION_TYPE_CREDENTIALS" + ) + orchestrator_authentication_type_api_token = ( + "ORCHESTRATOR_AUTHENTICATION_TYPE_API_TOKEN" + ) + + +class OrchestratorConfig(BaseModel): + orchestrator_authentication_type: OrchestratorAuthenticationType = Field( + ..., alias="orchestratorAuthenticationType" + ) + orchestrator_server_address: str = Field( + ..., + alias="orchestratorServerAddress", + description="Orchestrator server's IP address", + ) + orchestrator_port: str = Field( + ..., + alias="orchestratorPort", + description="Port on which the orchestrator server is listening", + ) + orchestrator_username: str | None = Field( + default=None, + alias="orchestratorUsername", + description="Username to login to the orchestrator server", + ) + orchestrator_password: str | None = Field( + default=None, + alias="orchestratorPassword", + description="Password to login to the orchestrator server", + ) + orchestrator_api_token: str | None = Field( + default=None, + alias="orchestratorAPIToken", + description="API token to authenticate requests to the orchestrator server", + ) + encrypted_secrets: dict[str, str] | None = Field( + default=None, alias="encryptedSecrets", description="encrypted secrets" + ) + crypto_key: str | None = Field( + default=None, alias="cryptoKey", description="key to decrypt serets" + ) + orchestrator_max_cluster_count: float | None = Field( + default=None, + alias="orchestratorMaxClusterCount", + description="maximum cluster rancher can hold", + ) + orchestrator_order: float | None = Field( + default=None, + alias="orchestratorOrder", + description="rancher configuration priority order", + ) + + +class OrchestratorObjectError(BaseModel): + description: str = Field(..., description="Description of the error") + severity: str = Field(..., description="Severity of the error") + object_name: str = Field( + ..., alias="objectName", description="Name of the orchestrator object" + ) + + +class PNACSupplicantState(Enum): + pnac_supplicant_state_unspecified = "PNAC_SUPPLICANT_STATE_UNSPECIFIED" + pnac_supplicant_state_disconnected = "PNAC_SUPPLICANT_STATE_DISCONNECTED" + pnac_supplicant_state_connecting = "PNAC_SUPPLICANT_STATE_CONNECTING" + pnac_supplicant_state_authenticating = "PNAC_SUPPLICANT_STATE_AUTHENTICATING" + pnac_supplicant_state_authenticated = "PNAC_SUPPLICANT_STATE_AUTHENTICATED" + pnac_supplicant_state_failed = "PNAC_SUPPLICANT_STATE_FAILED" + pnac_supplicant_state_held = "PNAC_SUPPLICANT_STATE_HELD" + + +class PluginIntegrationType(Enum): + plugin_integration_type_unspecified = "PLUGIN_INTEGRATION_TYPE_UNSPECIFIED" + plugin_integration_type_data = "PLUGIN_INTEGRATION_TYPE_DATA" + plugin_integration_type_cloud = "PLUGIN_INTEGRATION_TYPE_CLOUD" + plugin_integration_type_storage = "PLUGIN_INTEGRATION_TYPE_STORAGE" + plugin_integration_type_monitoring = "PLUGIN_INTEGRATION_TYPE_MONITORING" + plugin_integration_type_orchestrator = "PLUGIN_INTEGRATION_TYPE_ORCHESTRATOR" + + +class PluginStatus(Enum): + plugin_status_unspecified = "PLUGIN_STATUS_UNSPECIFIED" + plugin_status_initialized = "PLUGIN_STATUS_INITIALIZED" + plugin_status_inprogress = "PLUGIN_STATUS_INPROGRESS" + plugin_status_running = "PLUGIN_STATUS_RUNNING" + plugin_status_failed = "PLUGIN_STATUS_FAILED" + + +class PluginType(Enum): + plugin_type_unspecified = "PLUGIN_TYPE_UNSPECIFIED" + plugin_type_splunk = "PLUGIN_TYPE_SPLUNK" + plugin_type_http = "PLUGIN_TYPE_HTTP" + plugin_type_rancher = "PLUGIN_TYPE_RANCHER" + plugin_type_vmware_vco = "PLUGIN_TYPE_VMWARE_VCO" + plugin_type_vmware_tmc = "PLUGIN_TYPE_VMWARE_TMC" + plugin_type_otel = "PLUGIN_TYPE_OTEL" + + +class RadioAccessTechnology(Enum): + radio_access_technology_unspecified = "RADIO_ACCESS_TECHNOLOGY_UNSPECIFIED" + radio_access_technology_gsm = "RADIO_ACCESS_TECHNOLOGY_GSM" + radio_access_technology_umts = "RADIO_ACCESS_TECHNOLOGY_UMTS" + radio_access_technology_lte = "RADIO_ACCESS_TECHNOLOGY_LTE" + radio_access_technology_5_gnr = "RADIO_ACCESS_TECHNOLOGY_5GNR" + + +class ResponseStatusInfo(BaseModel): + response_status: float | None = Field( + default=None, alias="responseStatus", description="HTTP request status code." + ) + count: float | None = Field( + default=None, description="Count of the HTTP status codes." + ) + + +class RunState(Enum): + run_state_unspecified = "RUN_STATE_UNSPECIFIED" + run_state_online = "RUN_STATE_ONLINE" + run_state_halted = "RUN_STATE_HALTED" + run_state_init = "RUN_STATE_INIT" + run_state_rebooting = "RUN_STATE_REBOOTING" + run_state_offline = "RUN_STATE_OFFLINE" + run_state_unknown = "RUN_STATE_UNKNOWN" + run_state_unprovisioned = "RUN_STATE_UNPROVISIONED" + run_state_provisioned = "RUN_STATE_PROVISIONED" + run_state_suspect = "RUN_STATE_SUSPECT" + run_state_downloading = "RUN_STATE_DOWNLOADING" + run_state_restarting = "RUN_STATE_RESTARTING" + run_state_purging = "RUN_STATE_PURGING" + run_state_halting = "RUN_STATE_HALTING" + run_state_error = "RUN_STATE_ERROR" + run_state_verifying = "RUN_STATE_VERIFYING" + run_state_loading = "RUN_STATE_LOADING" + run_state_creating_volume = "RUN_STATE_CREATING_VOLUME" + run_state_booting = "RUN_STATE_BOOTING" + run_state_maintenance_mode = "RUN_STATE_MAINTENANCE_MODE" + run_state_start_delayed = "RUN_STATE_START_DELAYED" + run_state_baseos_updating = "RUN_STATE_BASEOS_UPDATING" + run_state_preparing_poweroff = "RUN_STATE_PREPARING_POWEROFF" + run_state_powering_off = "RUN_STATE_POWERING_OFF" + run_state_prepared_poweroff = "RUN_STATE_PREPARED_POWEROFF" + + +class SIMCard(BaseModel): + slot_number: float | None = Field( + default=None, alias="slotNumber", description="Slot number" + ) + slot_activated: bool | None = Field( + default=None, alias="slotActivated", description="Is Slot activated" + ) + iccid: str | None = Field( + default=None, description="Integrated Circuit Card Identifier" + ) + imsi: str | None = Field( + default=None, description="International Mobile Subscriber Identity" + ) + state: str | None = Field(default=None, description="Current state of the SIM card") + + +class SWState(Enum): + sw_state_unspecified = "SW_STATE_UNSPECIFIED" + sw_state_initial = "SW_STATE_INITIAL" + sw_state_download_in_progress = "SW_STATE_DOWNLOAD_IN_PROGRESS" + sw_state_downloaded = "SW_STATE_DOWNLOADED" + sw_state_verified = "SW_STATE_VERIFIED" + sw_state_installed = "SW_STATE_INSTALLED" + sw_state_booting = "SW_STATE_BOOTING" + sw_state_running = "SW_STATE_RUNNING" + sw_state_halting = "SW_STATE_HALTING" + sw_state_halted = "SW_STATE_HALTED" + sw_state_refreshing = "SW_STATE_REFRESHING" + sw_state_purging = "SW_STATE_PURGING" + sw_state_resolving_tag = "SW_STATE_RESOLVING_TAG" + sw_state_resolved_tag = "SW_STATE_RESOLVED_TAG" + sw_state_creating_volume = "SW_STATE_CREATING_VOLUME" + sw_state_created_volume = "SW_STATE_CREATED_VOLUME" + sw_state_verifying = "SW_STATE_VERIFYING" + sw_state_loading = "SW_STATE_LOADING" + sw_state_loaded = "SW_STATE_LOADED" + sw_state_awaitnetworkinstance = "SW_STATE_AWAITNETWORKINSTANCE" + + +class Severity(Enum): + severity_unspecified = "SEVERITY_UNSPECIFIED" + severity_notice = "SEVERITY_NOTICE" + severity_warning = "SEVERITY_WARNING" + severity_error = "SEVERITY_ERROR" + + +class SharedStorageSummary(BaseModel): + id: str | None = Field(default=None, alias="Id", description="Id") + name: str | None = Field(default=None, alias="Name", description="Name") + allocated_mb: float | None = Field( + default=None, alias="AllocatedMB", description="Allocated Storage in MBs" + ) + used_mb: float | None = Field( + default=None, + alias="UsedMB", + description="How much is used within the allocated total storage", + ) + + +class SnapshotState(Enum): + invalid = "INVALID" + idle = "IDLE" + creating = "CREATING" + created = "CREATED" + create_failed = "CREATE_FAILED" + rolling_back = "ROLLING_BACK" + active = "ACTIVE" + rollback_failed = "ROLLBACK_FAILED" + deleting = "DELETING" + delete_failed = "DELETE_FAILED" + deleted = "DELETED" + + +class SplunkConfig(BaseModel): + index: str | None = Field(default=None, description="The splunk index.") + hec_token: str = Field( + ..., alias="hecToken", description="The http event collector token." + ) + host: str = Field(..., description="The Host where splunk server is running.") + port: str = Field(..., description="Port to which Splunk server is listening to.") + encrypted_secrets: dict[str, str] | None = Field( + default=None, alias="encryptedSecrets", description="encrypted secrets" + ) + crypto_key: str | None = Field( + default=None, alias="cryptoKey", description="key to decrypt serets" + ) + enable_tls: bool | None = Field( + default=None, alias="enableTLS", description="TLS enable flag" + ) + skip_verify: bool | None = Field( + default=None, alias="skipVerify", description="specify skip verify flag" + ) + url_extension: str | None = Field( + default=None, alias="urlExtension", description="splunk url extension" + ) + + +class StaticDNSList(BaseModel): + hostname: str | None = Field(default=None, description="Host name") + addrs: list[str] | None = Field(default=None, description="Addresses") + + +class StorageSummary(BaseModel): + total_mb: float | None = Field( + default=None, alias="TotalMB", description="Total Storage for the device in MBs" + ) + used_mb: float | None = Field( + default=None, + alias="UsedMB", + description="How much is used within the allocated total storage", + ) + allocated_mb: float | None = Field( + default=None, + alias="AllocatedMB", + description="Total reserved for running applications + temp. images etc", + ) + shared_storage_summary: list[SharedStorageSummary] | None = Field( + default=None, alias="sharedStorageSummary", description="Shared storage summary" + ) + id: str | None = Field(default=None, alias="Id", description="Id") + name: str | None = Field(default=None, alias="Name", description="Name") + + +class Summary(BaseModel): + description: str | None = Field(default=None, description="Summary description") + total: float | None = Field(default=None, description="Total") + values: dict[str, int] | None = Field( + default=None, description="Values: Map for storing " + ) + + +class TMCClusterStatusHealth(Enum): + tmc_cluster_health_unknown = "TMC_CLUSTER_HEALTH_UNKNOWN" + tmc_cluster_health_healthy = "TMC_CLUSTER_HEALTH_HEALTHY" + tmc_cluster_health_warning = "TMC_CLUSTER_HEALTH_WARNING" + tmc_cluster_health_unhealthy = "TMC_CLUSTER_HEALTH_UNHEALTHY" + tmc_cluster_health_disconnected = "TMC_CLUSTER_HEALTH_DISCONNECTED" + tmc_cluster_health_over_limit = "TMC_CLUSTER_HEALTH_OVER_LIMIT" + + +class TMCClusterStatusStatus(Enum): + tmc_cluster_status_unknown = "TMC_CLUSTER_STATUS_UNKNOWN" + tmc_cluster_status_pending = "TMC_CLUSTER_STATUS_PENDING" + tmc_cluster_status_processing = "TMC_CLUSTER_STATUS_PROCESSING" + tmc_cluster_status_creating = "TMC_CLUSTER_STATUS_CREATING" + tmc_cluster_status_ready = "TMC_CLUSTER_STATUS_READY" + tmc_cluster_status_deleting = "TMC_CLUSTER_STATUS_DELETING" + tmc_cluster_status_error = "TMC_CLUSTER_STATUS_ERROR" + tmc_cluster_status_detaching = "TMC_CLUSTER_STATUS_DETACHING" + tmc_cluster_status_upgrading = "TMC_CLUSTER_STATUS_UPGRADING" + tmc_cluster_status_upgrade_failed = "TMC_CLUSTER_STATUS_UPGRADE_FAILED" + tmc_cluster_status_updating = "TMC_CLUSTER_STATUS_UPDATING" + tmc_cluster_status_over_limit = "TMC_CLUSTER_STATUS_OVER_LIMIT" + tmc_cluster_status_ready_to_attach = "TMC_CLUSTER_STATUS_READY_TO_ATTACH" + tmc_cluster_status_attach_complete = "TMC_CLUSTER_STATUS_ATTACH_COMPLETE" + + +class TagType(Enum): + tag_type_unspecified = "TAG_TYPE_UNSPECIFIED" + tag_type_generic = "TAG_TYPE_GENERIC" + tag_type_project = "TAG_TYPE_PROJECT" + tag_type_azure = "TAG_TYPE_AZURE" + tag_type_deployment = "TAG_TYPE_DEPLOYMENT" + + +class TransCause(Enum): + trans_cause_unspecified = "TRANS_CAUSE_UNSPECIFIED" + trans_cause_app_drive_changed = "TRANS_CAUSE_APP_DRIVE_CHANGED" + trans_cause_app_network_changed = "TRANS_CAUSE_APP_NETWORK_CHANGED" + trans_cause_app_custom_config_changed = "TRANS_CAUSE_APP_CUSTOM_CONFIG_CHANGED" + trans_cause_app_module_bundle_update = "TRANS_CAUSE_APP_MODULE_BUNDLE_UPDATE" + trans_cause_app_desc_changed = "TRANS_CAUSE_APP_DESC_CHANGED" + trans_cause_app_fixed_resources_changed = "TRANS_CAUSE_APP_FIXED_RESOURCES_CHANGED" + trans_cause_app_vnc_mode_changed = "TRANS_CAUSE_APP_VNC_MODE_CHANGED" + trans_cause_app_vm_mode_changed = "TRANS_CAUSE_APP_VM_MODE_CHANGED" + trans_cause_inter_ca_expiring = "TRANS_CAUSE_INTER_CA_EXPIRING" + trans_cause_inter_ca_expired = "TRANS_CAUSE_INTER_CA_EXPIRED" + trans_cause_device_ca_expiring = "TRANS_CAUSE_DEVICE_CA_EXPIRING" + trans_cause_device_ca_expired = "TRANS_CAUSE_DEVICE_CA_EXPIRED" + trans_cause_identity_ca_expiring = "TRANS_CAUSE_IDENTITY_CA_EXPIRING" + trans_cause_identity_ca_expired = "TRANS_CAUSE_IDENTITY_CA_EXPIRED" + trans_cause_app_compose_tar_image_changed = ( + "TRANS_CAUSE_APP_COMPOSE_TAR_IMAGE_CHANGED" + ) + trans_cause_app_compose_yaml_changed = "TRANS_CAUSE_APP_COMPOSE_YAML_CHANGED" + trans_cause_app_compose_datastore_changed = ( + "TRANS_CAUSE_APP_COMPOSE_DATASTORE_CHANGED" + ) + trans_cause_app_enable_vm_config_changed = ( + "TRANS_CAUSE_APP_ENABLE_VM_CONFIG_CHANGED" + ) + + +class UserAgentInfo(BaseModel): + user_agent: str | None = Field( + default=None, + alias="userAgent", + description="Information about the environment from where the HTTP request sent, not the browser user agent. E.g. Zcli, UI, etc.", + ) + count: float | None = Field(default=None, description="Count of the user agents.") + + +class VariableFileEncoding(Enum): + file_encoding_unspecified = "FILE_ENCODING_UNSPECIFIED" + file_encoding_base64 = "FILE_ENCODING_BASE64" + + +class VariableGroupConditionOperator(Enum): + condition_operator_unspecified = "CONDITION_OPERATOR_UNSPECIFIED" + condition_operator_equalto = "CONDITION_OPERATOR_EQUALTO" + condition_operator_notequalto = "CONDITION_OPERATOR_NOTEQUALTO" + + +class VariableOptionVal(BaseModel): + label: str | None = Field( + default=None, description="Display label of the key in User-Agent" + ) + value: str | None = Field(default=None, description="Value of the key to be used") + + +class VariableVariableFormat(Enum): + variable_format_unspecified = "VARIABLE_FORMAT_UNSPECIFIED" + variable_format_text = "VARIABLE_FORMAT_TEXT" + variable_format_number = "VARIABLE_FORMAT_NUMBER" + variable_format_file = "VARIABLE_FORMAT_FILE" + variable_format_dropdown = "VARIABLE_FORMAT_DROPDOWN" + variable_format_boolean = "VARIABLE_FORMAT_BOOLEAN" + variable_format_password = "VARIABLE_FORMAT_PASSWORD" + + +class VmBootloaderMode(Enum): + vm_bootloader_mode_unspecified = "VM_BOOTLOADER_MODE_UNSPECIFIED" + vm_bootloader_mode_legacy = "VM_BOOTLOADER_MODE_LEGACY" + vm_bootloader_mode_uefi = "VM_BOOTLOADER_MODE_UEFI" + + +class VmwareTMCConfig(BaseModel): + access_credentials: OrchestratorConfig | None = Field( + default=None, alias="accessCredentials" + ) + use_default_cluster_group: bool | None = Field( + default=None, + alias="useDefaultClusterGroup", + description="Indicates that default Cluster Group name is used to interact with VMWare Tanzu Mission Control.", + ) + use_default_workspace: bool | None = Field( + default=None, + alias="useDefaultWorkspace", + description="Indicates that default Workspace name is used to interact with VMWare Tanzu Mission Control", + ) + cluster_group_name: str | None = Field( + default=None, + alias="clusterGroupName", + description="Cluster Group name to interact with VMWare Tanzu Mission Control when UseDefaultClusterGroup flag is disabled", + ) + workspace_name: str | None = Field( + default=None, + alias="workspaceName", + description="Workspace name to interact with VMWare Tanzu Mission Control when UseDefaultWorkspaceName flag is disabled", + ) + mgmt_cluster_name: str | None = Field( + default=None, + alias="mgmtClusterName", + description="Management Cluster name to interact with VMWare Tanzu Mission Control", + ) + + +class VmwareVCOConfig(BaseModel): + access_credentials: OrchestratorConfig | None = Field( + default=None, alias="accessCredentials" + ) + vmware_vco_profile_id: float | None = Field( + default=None, + alias="VmwareVCOProfileID", + description="VCE profile ID to use while interacting with VMware Velocloud", + ) + vmware_vco_license_id: float | None = Field( + default=None, + alias="VmwareVCOLicenseID", + description="VCO License ID use to use while interacting with VMware Velocloud", + ) + + +class ZCellularControlProtocol(Enum): + z_cellular_control_protocol_unspecified = "Z_CELLULAR_CONTROL_PROTOCOL_UNSPECIFIED" + z_cellular_control_protocol_qmi = "Z_CELLULAR_CONTROL_PROTOCOL_QMI" + z_cellular_control_protocol_mbim = "Z_CELLULAR_CONTROL_PROTOCOL_MBIM" + + +class ZCellularOperatingState(Enum): + z_cellular_operating_state_unspecified = "Z_CELLULAR_OPERATING_STATE_UNSPECIFIED" + z_cellular_operating_state_offline = "Z_CELLULAR_OPERATING_STATE_OFFLINE" + z_cellular_operating_state_radio_off = "Z_CELLULAR_OPERATING_STATE_RADIO_OFF" + z_cellular_operating_state_online = "Z_CELLULAR_OPERATING_STATE_ONLINE" + z_cellular_operating_state_online_and_connected = ( + "Z_CELLULAR_OPERATING_STATE_ONLINE_AND_CONNECTED" + ) + z_cellular_operating_state_unrecognized = "Z_CELLULAR_OPERATING_STATE_UNRECOGNIZED" + + +class ZManufacturerInfo(BaseModel): + manufacturer: str | None = None + product_name: str | None = Field(default=None, alias="productName") + version: str | None = None + serial_number: str | None = Field(default=None, alias="serialNumber") + uuid: str | None = None + compatible: str | None = None + bios_vendor: str | None = Field(default=None, alias="biosVendor") + bios_version: str | None = Field(default=None, alias="biosVersion") + bios_release_date: str | None = Field(default=None, alias="biosReleaseDate") + h_sm_status: DeviceHWSecurityModuleStatus | None = Field( + default="DEVICE_HW_SECURITY_MODULE_STATUS_UNSPECIFIED", alias="hSMStatus" + ) + h_sm_info: str | None = Field(default=None, alias="hSMInfo") + endorsement_key: str | None = Field(default=None, alias="endorsementKey") + + +class ZcOpsStatus(Enum): + ops_status_unspecified = "OPS_STATUS_UNSPECIFIED" + ops_status_pending = "OPS_STATUS_PENDING" + ops_status_ongoing = "OPS_STATUS_ONGOING" + ops_status_complete = "OPS_STATUS_COMPLETE" + + +class ZcOpsType(Enum): + ops_type_unspecified = "OPS_TYPE_UNSPECIFIED" + ops_type_read = "OPS_TYPE_READ" + ops_type_delete = "OPS_TYPE_DELETE" + ops_type_create = "OPS_TYPE_CREATE" + ops_type_update = "OPS_TYPE_UPDATE" + ops_type_list = "OPS_TYPE_LIST" + + +class ZedCloudOpsCmd(BaseModel): + counter: float | None = Field(default=None, description="counter") + ops_time: dict[str, Any] | None = Field( + default=None, alias="opsTime", description="Timestamp: Operational time" + ) + + +class ZsrvErrorCode(Enum): + z_msg_error_none = "zMsgErrorNone" + z_msg_sucess = "zMsgSucess" + not_found = "NotFound" + already_exists = "AlreadyExists" + version_mismatch = "VersionMismatch" + range_error = "RangeError" + large_result = "LargeResult" + incomplete_data = "IncompleteData" + invalid_data = "InvalidData" + function_unsupported = "FunctionUnsupported" + no_memory = "NoMemory" + send_failure = "SendFailure" + timeout = "Timeout" + bad_req_body = "BadReqBody" + bad_req_param = "BadReqParam" + invalid_field_format = "InvalidFieldFormat" + url_not_found = "UrlNotFound" + api_version_not_supported = "ApiVersionNotSupported" + unauthorized = "Unauthorized" + forbidden = "Forbidden" + conflict = "Conflict" + not_modified = "NotModified" + dependency_conflict = "DependencyConflict" + json_fmt_error = "JsonFmtError" + proto_fmt_error = "ProtoFmtError" + cert_error = "CertError" + data_base_connection = "DataBaseConnection" + db_error = "DBError" + z_msg_accepted = "zMsgAccepted" + z_msg_created = "zMsgCreated" + pre_condition_failed = "PreConditionFailed" + internal_server_error = "InternalServerError" + + +class AppACEMatch(BaseModel): + type: str = Field(..., description="Type") + value: str = Field(..., description="Value") + + +class AppMapParams(BaseModel): + port: float = Field(..., description="Application port") + + +class CommonConnectivityProbeMethod(Enum): + connectivity_probe_method_unspecified = "CONNECTIVITY_PROBE_METHOD_UNSPECIFIED" + connectivity_probe_method_icmp = "CONNECTIVITY_PROBE_METHOD_ICMP" + connectivity_probe_method_tcp = "CONNECTIVITY_PROBE_METHOD_TCP" + + +class CommonNetworkConfigOrigin(Enum): + network_config_origin_unspecified = "NETWORK_CONFIG_ORIGIN_UNSPECIFIED" + network_config_origin_controller = "NETWORK_CONFIG_ORIGIN_CONTROLLER" + network_config_origin_bootstrap = "NETWORK_CONFIG_ORIGIN_BOOTSTRAP" + network_config_origin_override = "NETWORK_CONFIG_ORIGIN_OVERRIDE" + network_config_origin_lastresort = "NETWORK_CONFIG_ORIGIN_LASTRESORT" + network_config_origin_tui = "NETWORK_CONFIG_ORIGIN_TUI" + network_config_origin_loc = "NETWORK_CONFIG_ORIGIN_LOC" + network_config_origin_lps = "NETWORK_CONFIG_ORIGIN_LPS" + + +class CommonPortConfigSource(BaseModel): + origin: CommonNetworkConfigOrigin | None = "NETWORK_CONFIG_ORIGIN_UNSPECIFIED" + submitted_at: AwareDatetime | None = Field( + default=None, + alias="submittedAt", + description="Timestamp when this port’s configuration was originally submitted\nor created at its source.\n\nMeaning depends on the origin:\n- Controller, LOC, bootstrap: timestamp provided by the controller.\n- Local override.json: when the file was first loaded by EVE.\n- Last-resort: when EVE generated the fallback config.\n- LPS modifications: when the modified config was received.\n- TUI: when the user submitted the configuration.\n\nThis is different from DevicePortStatus.timePriority, which is used\nto compare and prioritize different sources of network configuration\n(and may be synthetic for some sources, e.g. year 2000 for override.json,\nepoch 0 for last-resort). By contrast, submitted_at represents when this\nport’s configuration first came into existence, regardless of when or whether\nthe device applied it.\n\nNote: this is a per-port timestamp. The underlying network config may\ncover multiple ports, but only the portion relevant to this port is\nreflected here.", + ) + + +class CommonProbeEndpoint(BaseModel): + host: str | None = Field(default=None, description="IP address or FQDN.") + port: int | None = Field( + default=None, + description="TCP port required for CONNECTIVITY_PROBE_METHOD_TCP.\nLeave empty for CONNECTIVITY_PROBE_METHOD_ICMP.", + ) + + +class DhcpIpRange(BaseModel): + start: str | None = Field(default=None, description="starting IP") + end: str | None = Field(default=None, description="ending IP") + + +class Drive(BaseModel): + imagename: str = Field(..., description="Name of Image Object used for the drive.") + maxsize: float = Field(..., description="Drive maximum size") + readonly: bool = Field( + ..., + description="Read only flag. If set, drive is mounted as readonly by app instance.", + ) + preserve: bool = Field( + ..., + description="Preserve the drive even when all app instances using it are deleted", + ) + drvtype: str = Field( + ..., + description="Type of Drive. Valid Values: UNSPECIFIED, CDROM, HDD, NET, HDD_EMPTY. HDD_EMPTY - is to allocate the empty disk of maxsizebytes specified", + ) + target: str = Field( + ..., description="type of target. Valid values: Disk, Kernel, Initrd, RamDisk" + ) + volumelabel: str | None = Field( + default=None, description="User defined volume to use for this drive " + ) + mvolname: str | None = Field( + default=None, + description="mutable Volume for this drive. Only one of imvolname and mvolname must be specified.", + ) + imvolname: str | None = Field( + default=None, + description="immutable Volume for this drive. Only one of imvolname and mvolname must be specified.", + ) + ignorepurge: bool | None = Field( + default=None, + description="don't purge this drive as part of purge command for mutable volumes", + ) + cleartext: bool | None = Field( + default=None, description="If set, don't encrypt the drive. Store in cleartext" + ) + mountpath: str | None = Field( + default=None, description="Mount Path for the drive in the App Instance" + ) + runtime_internal: bool | None = Field( + default=None, + alias="runtimeInternal", + description="If set, the drive is internal to the runtime and not externally exposed with API", + ) + + +class HvMode(Enum): + hv_pv = "HV_PV" + hv_hvm = "HV_HVM" + hv_fml = "HV_FML" + hv_nohyper = "HV_NOHYPER" + hv_legacy = "HV_LEGACY" + + +class PhyAdapter(BaseModel): + type: IoType | None = "IO_TYPE_UNSPECIFIED" + name: str | None = Field(default=None, description="Physical Adapter name") + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + + +class ProtobufAny(BaseModel): + type_url: str | None = Field(default=None, alias="typeUrl") + value: Base64Str | None = None + + +class ProtobufNullValue(Enum): + null_value = "NULL_VALUE" + + +class SpType(Enum): + sptype_invalidsrv = "SPTYPE_INVALIDSRV" + sptype_mapserver = "SPTYPE_MAPSERVER" + sptype_supportserver = "SPTYPE_SUPPORTSERVER" + + +class Vm(BaseModel): + cpus: float = Field(..., description="CPUs") + memory: float = Field(..., description="Memory") + mode: HvMode + vnc: bool = Field(..., description="VNC") + vnc_display: float | None = Field( + default=None, alias="vncDisplay", description="VNC display" + ) + cpu_pinning_enabled: bool | None = Field( + default=None, alias="cpuPinningEnabled", description="Enable CpuPinning" + ) + vmm_maxmem: int | None = Field( + default=None, + alias="vmmMaxmem", + description="Maximum amount of memory in kbytes allowed for VM monitor to occupy", + ) + bootloader_mode: VmBootloaderMode | None = Field( + default="VM_BOOTLOADER_MODE_UNSPECIFIED", alias="bootloaderMode" + ) + enable_oem_win_license_key: bool | None = Field( + default=None, + alias="enableOemWinLicenseKey", + description="Enable device which has VM to receive the Windows license embedded in the ACPI tables", + ) + disable_vtpm: bool | None = Field( + default=None, + alias="disableVTPM", + description="Disable vTPM for virtual machines (VM)", + ) + + +class APIUsageMetric(BaseModel): + endpoint: str = Field(..., description="HTTP request endpoint.") + count: float = Field( + ..., + description="Number of requests received for the end point in the specified time period.", + ) + user_agent_list: list[UserAgentInfo] | None = Field( + default=None, + alias="userAgentList", + description="List of info per user agent that accessed the end point in the specified time period.", + ) + response_status_count: list[ResponseStatusInfo] | None = Field( + default=None, + alias="responseStatusCount", + description="List of info per status code returned to the user for the endpoint in the specified time period.", + ) + enterprise_list: list[EnterpriseInfo] | None = Field( + default=None, + alias="enterpriseList", + description="List of info per enterprise id returned to the user for the endpoint in the specified time period.", + ) + + +class ActionScope(BaseModel): + type: ObjectType | None = "OBJECT_TYPE_UNSPECIFIED" + id: str | None = Field( + default=None, + description="Unique id of the type (e.g. projectId in case of project type)", + ) + + +class ClusterInstStatusSummaryMsg(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="System defined universally unique Id of the cluster instance", + ) + name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined name of the cluster instance, unique across the enterprise. Once cluster instance is created, name can’t be changed", + ) + title: ( + constr(pattern=r"^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined title of the cluster instance. Title can be changed at any time", + ) + project_id: str | None = Field( + default=None, + alias="projectId", + description="project name which the given app instance belong to", + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + cluster_policy_id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + alias="clusterPolicyId", + description="System defined universally unique Id of the cluster policy", + ) + admin_state: AdminState | None = Field( + default="ADMIN_STATE_UNSPECIFIED", alias="adminState" + ) + run_state: ClusterRunState | None = Field( + default="CLUSTER_RUN_STATE_UNSPECIFIED", alias="runState" + ) + edge_node_pool_i_ds: list[str] | None = Field( + default=None, alias="edgeNodePoolIDs", description="Array of Device IDs" + ) + server_node_i_ds: list[str] | None = Field( + default=None, alias="serverNodeIDs", description="Array of Server App Inst IDs" + ) + agent_node_i_ds: list[str] | None = Field( + default=None, alias="agentNodeIDs", description="Array of Agent App Inst IDs" + ) + nodes_job_name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="nodesJobName", + description="Name of the job object tracking ClusterNodes deployment", + ) + orchestrator_cluster_id: constr(max_length=256) | None = Field( + default=None, + alias="orchestratorClusterID", + description="Orchestrator cluster object ID", + ) + orchestrator_cluster_run_state: RunState | None = Field( + default="RUN_STATE_UNSPECIFIED", alias="orchestratorClusterRunState" + ) + orchestrator_cluster_err_msg: OrchestratorObjectError | None = Field( + default=None, alias="orchestratorClusterErrMsg" + ) + orchestrator_cluster_warn_msg: OrchestratorObjectError | None = Field( + default=None, alias="orchestratorClusterWarnMsg" + ) + project_name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="projectName", + description="project name which the given cluster instance belong to", + ) + cluster_type: ClusterType | None = Field( + default="CLUSTER_TYPE_UNSPECIFIED", alias="clusterType" + ) + + +class ClusterInstanceConfigSummary(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="System defined universally unique Id of the cluster instance", + ) + name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined name of the cluster instance, unique across the enterprise. Once cluster instance is created, name can’t be changed", + ) + title: ( + constr(pattern=r"^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined title of the cluster instance. Title can be changed at any time", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the cluster instance" + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + cluster_type: ClusterType | None = Field( + default="CLUSTER_TYPE_UNSPECIFIED", alias="clusterType" + ) + project_id: str | None = Field( + default=None, + alias="projectId", + description="project id which the given cluster instance belong to", + ) + revision: ObjectRevision | None = None + activate: str | None = Field( + default=None, description="cluster instance activation flag" + ) + cluster_policy_id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + alias="clusterPolicyId", + description="System defined universally unique Id of the cluster policy", + ) + edge_node_pool_tags: dict[str, str] | None = Field( + default=None, + alias="edgeNodePoolTags", + description="edgeNodePoolTags are name/value pairs that enables us to identify edgeNodes which are part of a ClusterInstance. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + server_app_id: str | None = Field( + default=None, + alias="serverAppID", + description="app ID of server node", + title="Cluster config details", + ) + agent_app_id: str | None = Field( + default=None, alias="agentAppID", description="app ID of for agent node" + ) + min_edge_devices: float | None = Field( + default=None, + alias="minEdgeDevices", + description="Minimum number of edge device required for the cluster instance", + ) + max_edge_devices: float | None = Field( + default=None, + alias="maxEdgeDevices", + description="Maximum number of edge device allowed in the cluster instance", + ) + min_server_nodes: float | None = Field( + default=None, + alias="minServerNodes", + description="Minimum number of server nodes required for the cluster instance", + ) + max_server_nodes: float | None = Field( + default=None, + alias="maxServerNodes", + description="Maximum number of server nodes allowed in the cluster instance", + ) + min_agent_nodes: float | None = Field( + default=None, + alias="minAgentNodes", + description="Minimum number of agent nodes required for the cluster instance", + ) + max_agent_nodes: float | None = Field( + default=None, + alias="maxAgentNodes", + description="Maximum number of agent nodes allowed in the cluster instance", + ) + call_home_url: str | None = Field( + default=None, + alias="callHomeURL", + description="CallHome URL for the cluster to fetch configuration details", + ) + cluster_onboard_type: ClusterOnboardType | None = Field( + default="CLUSTER_ONBOARD_TYPE_UNSPECIFIED", alias="clusterOnboardType" + ) + orchestration_provider: OrchestrationProvider | None = Field( + default="ORCHESTRATOR_PROVIDER_UNSPECIFIED", alias="orchestrationProvider" + ) + orchestrator_authentication_type: OrchestratorAuthenticationType | None = Field( + default="ORCHESTRATOR_AUTHENTICATION_TYPE_UNSPECIFIED", + alias="orchestratorAuthenticationType", + ) + orchestrator_server_address: str | None = Field( + default=None, + alias="orchestratorServerAddress", + description="Orchestrator server's IP address", + ) + orchestrator_port: str | None = Field( + default=None, + alias="orchestratorPort", + description="Port on which the orchestrator server is listening", + ) + db_endpoint: str | None = Field( + default=None, + alias="dbEndpoint", + description="External DataBase endpoint for the server to communicate and sync", + ) + + +class ClusterInstances(BaseModel): + summary_by_state: Summary | None = Field(default=None, alias="summaryByState") + list_: list[ClusterInstanceConfigSummary] | None = Field( + default=None, alias="list", description="cluster instance summary list response" + ) + next: Cursor | None = None + + +class ClusterNodeStatus(BaseModel): + age: int | None = None + internal_ip: str | None = Field(default=None, alias="internalIP") + conditions: str | None = None + node_type: ClusterNodeType | None = Field( + default="CLUSTER_NODE_TYPE_UNSPECIFIED", alias="nodeType" + ) + + +class DataStreamConfig(BaseModel): + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the data stream config, unique across the enterprise. Once object is created, name can’t be changed", + title="Common fields", + ) + id: ( + constr( + pattern=r"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + ) + | None + ) = Field( + default=None, + description="System defined universally unique Id of the data stream config", + ) + title: constr( + pattern=r"^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined title of the data stream config. Title can be changed at any time", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the data stream config." + ) + revision: ObjectRevision | None = None + plugin_id: constr( + pattern=r"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + ) = Field( + ..., + alias="pluginId", + description="Unique Id of the third party plugin", + title="Fields Specific to Data Stream", + ) + enabled: bool = Field(..., description="Is the data stream config enabled?") + data_source_type: DataSourceType = Field(..., alias="dataSourceType") + + +class DataStreamConfigList(BaseModel): + data_stream_list_summary: Summary | None = Field( + default=None, alias="dataStreamListSummary" + ) + list_: list[DataStreamConfig] | None = Field( + default=None, alias="list", description="Details of list records." + ) + next: Cursor | None = None + + +class DeviceEntity(BaseModel): + entity: Entity | None = "ENTITY_UNSPECIFIED" + entity_id: str | None = Field(default=None, alias="entityId") + entity_name: str | None = Field(default=None, alias="entityName") + + +class DeviceError(BaseModel): + description: str = Field(..., description="Description of the error") + severity: Severity + timestamp: dict[str, Any] = Field( + ..., description="Timestamp at which error had occurred" + ) + entities: list[DeviceEntity] = Field( + ..., description="objects referenced by the description or retry_condition" + ) + retry_condition: str | None = Field( + default=None, alias="retryCondition", description="condition for retry" + ) + + +class DeviceSWInfo(BaseModel): + activated: bool | None = None + partition_label: str | None = Field(default=None, alias="partitionLabel") + partition_device: str | None = Field(default=None, alias="partitionDevice") + partition_state: str | None = Field(default=None, alias="partitionState") + status: SWState | None = "SW_STATE_UNSPECIFIED" + short_version: str | None = Field(default=None, alias="shortVersion") + long_version: str | None = Field(default=None, alias="longVersion") + sw_error: DeviceError | None = Field(default=None, alias="swError") + download_progress: int | None = Field(default=None, alias="downloadProgress") + sw_status: DeviceSWStatus | None = Field( + default="DEVICE_SW_STATUS_UNSPECIFIED", alias="swStatus" + ) + sw_sub_status: DeviceSWSubStatus | None = Field( + default="DEVICE_SW_SUB_STATUS_UNSPECIFIED", alias="swSubStatus" + ) + sw_sub_status_str: str | None = Field(default=None, alias="swSubStatusStr") + sub_status_progress: int | None = Field(default=None, alias="subStatusProgress") + is_lts: bool | None = Field( + default=None, + alias="isLTS", + description="flag to indicate device running LTS eve version or not", + ) + + +class DhcpServerConfig(BaseModel): + subnet: str | None = Field(default=None, description="Subnet address") + mask: str | None = Field(default=None, description="Subnet Mask") + gateway: str | None = Field( + default=None, description="IP Address of Network Gateway" + ) + domain: str | None = Field(default=None, description="Network domain") + ntp: str | None = Field( + default=None, + description="IP Address of NTP Server", + title="ntp will be deprecated", + ) + dns: list[str] | None = Field( + default=None, + description="IP Addresses of DNS servers", + title="possible DNS ip address", + ) + dhcp_range: DhcpIpRange | None = Field(default=None, alias="dhcpRange") + ntp_servers: list[NtpServer] | None = Field( + default=None, alias="ntpServers", description="NTP Servers" + ) + + +class EIDRegister(BaseModel): + app_cert: Base64Str = Field(..., alias="AppCert", description="app certificate") + app_public_key: Base64Str = Field( + ..., alias="AppPublicKey", description="App public key" + ) + app_private_key: Base64Str = Field( + ..., alias="AppPrivateKey", description="App private key" + ) + uuid: str = Field(..., alias="UUID", description="UUID") + display_name: str = Field(..., alias="DisplayName", description="Display name") + lisp_instance: float = Field(..., alias="LispInstance", description="Lisp Instance") + eid: str = Field(..., alias="EID", description="EID") + eid_hash_len: float = Field(..., alias="EIDHashLen", description="EID hash length") + lisp_signature: str = Field( + ..., alias="LispSignature", description="Lisp Signature" + ) + lisp_map_servers: list[LispServer] = Field( + ..., + alias="LispMapServers", + description="Lisp Map Server", + title="time CreateTime time.Time", + ) + + +class EventQueryResponseItem(BaseModel): + user: str | None = Field(default=None, description="User name") + project: str | None = Field(default=None, description="project name") + device: str | None = Field(default=None, description="device name") + instance: str | None = Field(default=None, description="instance name") + severity: str | None = Field( + default=None, description="severity: FIXME: should be ENUM" + ) + description: str | None = Field(default=None, description="Event description") + timestamp: dict[str, Any] | None = Field( + default=None, description="event timestamp" + ) + source: EventSource | None = "EVENT_SOURCE_UNSPECIFIED" + resource: str | None = Field(default=None, description="Event resources") + event_type: str | None = Field( + default=None, alias="eventType", description="Event type" + ) + tags: list[str] | None = Field(default=None, description="Event tags") + resource_name: str | None = Field( + default=None, alias="resourceName", description="Event resources" + ) + json_data: dict[str, Any] | None = Field( + default=None, alias="jsonData", description="Event resources" + ) + cluster_instance: str | None = Field( + default=None, alias="clusterInstance", description="clusterInstance name" + ) + + +class ModemDetail(BaseModel): + manufacturer: str | None = Field(default=None, description="Modem manufacturer") + model: str | None = Field(default=None, description="Modem model") + firmware_version: str | None = Field( + default=None, alias="firmwareVersion", description="Modem firmware version" + ) + imei: str | None = Field(default=None, description="Modem IMEI") + operating_state: ZCellularOperatingState | None = Field( + default="Z_CELLULAR_OPERATING_STATE_UNSPECIFIED", alias="operatingState" + ) + control_protocol: ZCellularControlProtocol | None = Field( + default="Z_CELLULAR_CONTROL_PROTOCOL_UNSPECIFIED", alias="controlProtocol" + ) + + +class NetProxyServer(BaseModel): + proto: NetworkProxyProto | None = "NETWORK_PROXY_PROTO_HTTP" + server: str | None = Field(default=None, description="Net Proxy Server") + port: float | None = Field(default=None, description="Net Proxy Port") + + +class NetProxyStatus(BaseModel): + network_proxy: bool | None = Field( + default=None, + alias="networkProxy", + description="Use pacfile (Auto discover or manual upload)", + title="Enable, the proxy configuration coming from network", + ) + proxies: list[NetProxyServer] | None = Field( + default=None, + description="protocol level proxies", + title="protocol level proxies", + ) + exceptions: str | None = Field(default=None, description="exceptions") + pacfile: str | None = Field( + default=None, + description="proxy configuration in a pacfile", + title="proxy configuration in a pacfile", + ) + network_proxy_url: str | None = Field( + default=None, + alias="networkProxyURL", + description="Network Proxy URL", + title="Direct URL for wpad.dat download", + ) + wpad_proxy_url: str | None = Field( + default=None, alias="wpadProxyURL", description="WPAD Proxy URL" + ) + + +class NetworkProvider(BaseModel): + plmn: str | None = Field(default=None, description="PLMN code") + name: str | None = Field(default=None, description="Human-friendly name") + rat: RadioAccessTechnology | None = "RADIO_ACCESS_TECHNOLOGY_UNSPECIFIED" + roaming: bool | None = Field(default=None, description="Is Roaming ON") + connected_at: AwareDatetime | None = Field( + default=None, + alias="connectedAt", + description="Time when was the connection established", + ) + + +class PNACPortStatus(BaseModel): + enabled: bool | None = Field( + default=None, + description="Whether 802.1X authentication is enabled on this port", + ) + supplicant_state: PNACSupplicantState | None = Field( + default="PNAC_SUPPLICANT_STATE_UNSPECIFIED", alias="supplicantState" + ) + last_auth_timestamp: AwareDatetime | None = Field( + default=None, + alias="lastAuthTimestamp", + description="Timestamp of the most recent successful 802.1X authentication.", + ) + err: DeviceError | None = None + + +class PluginConfig(BaseModel): + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the third party plugin request, unique across the enterprise. Once object is created, name can’t be changed", + ) + id: ( + constr( + pattern=r"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + ) + | None + ) = Field( + default=None, + description="System defined universally unique Id of the third party plugin request", + ) + title: constr( + pattern=r"^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined title of the third party entity. Title can be changed at any time", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the third party entity." + ) + integration_type: PluginIntegrationType = Field(..., alias="integrationType") + plugin_type: PluginType = Field(..., alias="pluginType") + object_type: ObjectType | None = Field( + default="OBJECT_TYPE_UNSPECIFIED", alias="objectType" + ) + object_id: str | None = Field( + default=None, + alias="objectId", + description="objectId to which this third party integration is associated", + ) + status: PluginStatus | None = "PLUGIN_STATUS_UNSPECIFIED" + revision: ObjectRevision | None = None + status_message: constr(max_length=256) | None = Field( + default=None, + alias="statusMessage", + description="Detailed status message of the third party.", + ) + splunk_config: SplunkConfig | None = Field(default=None, alias="splunkConfig") + http_config: HttpConfig | None = Field(default=None, alias="httpConfig") + rancher_config: OrchestratorConfig | None = Field( + default=None, alias="rancherConfig" + ) + vmware_vco_config: VmwareVCOConfig | None = Field( + default=None, alias="vmwareVCOConfig" + ) + vmware_tmc_config: VmwareTMCConfig | None = Field( + default=None, alias="vmwareTMCConfig" + ) + open_telemetry_config: OpenTelemetryConfig | None = Field( + default=None, alias="openTelemetryConfig" + ) + + +class PluginShortConfig(BaseModel): + name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined name of the third party plugin request, unique across the enterprise. Once object is created, name can’t be changed", + ) + id: ( + constr( + pattern=r"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + ) + | None + ) = Field( + default=None, + description="System defined universally unique Id of the third party plugin request", + ) + title: ( + constr(pattern=r"^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined title of the third party entity. Title can be changed at any time", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the third party entity." + ) + integration_type: PluginIntegrationType | None = Field( + default="PLUGIN_INTEGRATION_TYPE_UNSPECIFIED", alias="integrationType" + ) + plugin_type: PluginType | None = Field( + default="PLUGIN_TYPE_UNSPECIFIED", alias="pluginType" + ) + object_type: ObjectType | None = Field( + default="OBJECT_TYPE_UNSPECIFIED", alias="objectType" + ) + object_id: str | None = Field( + default=None, + alias="objectId", + description="objectId to which this third party integration is associated", + ) + status: PluginStatus | None = "PLUGIN_STATUS_UNSPECIFIED" + revision: ObjectRevision | None = None + status_message: constr(max_length=256) | None = Field( + default=None, + alias="statusMessage", + description="Detailed status message of the third party.", + ) + + +class SWInfo(BaseModel): + version: str | None = Field(default=None, description="software version") + hash: str | None = Field(default=None, description="software hash") + state: SWState | None = "SW_STATE_UNSPECIFIED" + disk: str | None = Field(default=None, description="software disk") + download_progress: float | None = Field( + default=None, alias="downloadProgress", description="download progress" + ) + image_name: str | None = Field( + default=None, alias="imageName", description="image name" + ) + + +class ServicePoint(BaseModel): + type: SpType | None = "SPTYPE_INVALIDSRV" + name_or_ip: str | None = Field( + default=None, alias="NameOrIp", description="Service name/ service name" + ) + credential: str | None = Field( + default=None, alias="Credential", description="Service credentials" + ) + + +class TMCClusterStatus(BaseModel): + health: TMCClusterStatusHealth | None = "TMC_CLUSTER_HEALTH_UNKNOWN" + status: TMCClusterStatusStatus | None = "TMC_CLUSTER_STATUS_UNKNOWN" + version: str | None = Field(default=None, description="Cluster TinyTKG version") + cluster_group_name: str | None = Field( + default=None, alias="clusterGroupName", description="Cluster group name" + ) + + +class TransDetails(BaseModel): + cause: TransCause | None = "TRANS_CAUSE_UNSPECIFIED" + severity: str | None = Field( + default=None, + description="Urgency of the recommended action (ERROR - must take action immediately, WARN - must take action but not immediately, NOTICE - may take action", + ) + scope: ActionScope | None = None + + +class VariableGroupCondition(BaseModel): + name: str | None = None + value: str | None = None + operator: VariableGroupConditionOperator | None = "CONDITION_OPERATOR_UNSPECIFIED" + + +class VariableGroupVariable(BaseModel): + type: str | None = None + name: str = Field(..., description="Name of the Variable (Required)") + label: str = Field(..., description="Label for the variable (Required)") + max_length: str | None = Field( + default=None, + alias="maxLength", + description="Max length of the value of the variable(Optional. Default: 1024)", + ) + required: bool = Field( + ..., + description="This variable MUST be specified when creating an App Instance. (Optional. Default: False)", + ) + default: str | None = Field( + default=None, + description="Default value of the variable. (Optional. Default: )", + ) + process_input: str | None = Field(default=None, alias="processInput") + value: str | None = Field( + default=None, + description="User-specified value of the variable.(Required if required is true. Optional otherwise)", + ) + format: VariableVariableFormat + encode: VariableFileEncoding | None = "FILE_ENCODING_UNSPECIFIED" + options: list[VariableOptionVal] | None = Field( + default=None, + description="Key-Value pair of options. Applicable if format is VARIABLE_FORMAT_DROPDOWN", + ) + + +class ZsrvError(BaseModel): + ec: ZsrvErrorCode | None = "zMsgErrorNone" + location: str | None = Field(default=None, title="Ignore: Internal field only") + details: str | None = Field( + default=None, title="Field captures string description of details" + ) + + +class ZsrvResponse(BaseModel): + operation_type: ZcOpsType | None = Field( + default="OPS_TYPE_UNSPECIFIED", alias="operationType" + ) + operation_status: ZcOpsStatus | None = Field( + default="OPS_STATUS_UNSPECIFIED", alias="operationStatus" + ) + object_kind: str | None = Field( + default=None, + alias="objectKind", + title="zedcloud object kind on which the operation was performed", + ) + object_id: str | None = Field( + default=None, + alias="objectId", + title="Unique value identifies the object that was operated on", + ) + object_name: str | None = Field( + default=None, alias="objectName", title="name of the object" + ) + object_revision: str | None = Field( + default=None, + alias="objectRevision", + title="object revision post the operation, note Read operation\ndoesn't change the revision", + ) + object_type: ObjectType | None = Field( + default="OBJECT_TYPE_UNSPECIFIED", alias="objectType" + ) + operation_time: str | None = Field( + default=None, alias="operationTime", title="time of operation" + ) + start_time: str | None = Field( + default=None, alias="startTime", title="total time taken by operations" + ) + end_time: str | None = Field(default=None, alias="endTime") + user: str | None = Field( + default=None, title="the operation is performed on behalf of this user" + ) + http_status_code: int | None = Field( + default=None, alias="httpStatusCode", title="http response" + ) + http_status_msg: str | None = Field( + default=None, alias="httpStatusMsg", title="summary of the error in text format" + ) + job_id: str | None = Field( + default=None, alias="jobId", title="for tracking asynchronous tasks" + ) + error: list[ZsrvError] | None = Field( + default=None, + title="one or more errors will be set if the operation failed\ni.e. httpStatusCode != 2xx", + ) + + +class AppACEAction(BaseModel): + drop: bool = Field(..., description="ACE drop flag") + limit: bool = Field(..., description="ACE limit flag") + limitrate: float = Field(..., description="ACE limit rate") + limitunit: str = Field(..., description="ACE limit unit") + limitburst: float = Field(..., description="ACE limit burst") + portmap: bool = Field(..., description="application port map flag") + mapparams: AppMapParams + + +class CommonConnectivityProbe(BaseModel): + probe_method: CommonConnectivityProbeMethod | None = Field( + default="CONNECTIVITY_PROBE_METHOD_UNSPECIFIED", alias="probeMethod" + ) + probe_endpoint: CommonProbeEndpoint | None = Field( + default=None, alias="probeEndpoint" + ) + + +class GooglerpcStatus(BaseModel): + code: int | None = None + message: str | None = None + details: list[ProtobufAny] | None = None + + +class APIUsageResp(BaseModel): + enterprise_ids: list[str] | None = Field( + default=None, + alias="enterpriseIds", + description="The Enterprise ID list. If not specified, Info returned corresponds to the entire cluster. If specified, the information corresponds to the specific enterprise list.", + ) + list_: list[APIUsageMetric] | None = Field( + default=None, alias="list", description="List of the API usage metrics." + ) + result: ZsrvResponse | None = None + user_agents_in_resp: list[str] | None = Field( + default=None, + alias="userAgentsInResp", + description="List of user agents available in response.", + ) + + +class CellularStatus(BaseModel): + providers: list[NetworkProvider] | None = Field( + default=None, description="List of network providers" + ) + modem: ModemDetail | None = None + sim_cards: list[SIMCard] | None = Field( + default=None, alias="simCards", description="List of SIM Cards" + ) + + +class ClusterInstStatusListMsg(BaseModel): + list_: list[ClusterInstStatusSummaryMsg] | None = Field( + default=None, alias="list", description="cluster instance status summary" + ) + summary_by_state: Summary | None = Field(default=None, alias="summaryByState") + next: Cursor | None = None + + +class CustomConfigVariableGroup(BaseModel): + name: str | None = Field( + default=None, description="Name of the Variable Group(Required)" + ) + variables: list[VariableGroupVariable] | None = Field( + default=None, description="List of variables(Required)" + ) + required: bool | None = Field( + default=None, + description="Indicates if the variable group is required to be specified for the App Instance. (Optional. Default:False)", + ) + condition: VariableGroupCondition | None = None + + +class EventQueryResponse(BaseModel): + list_: list[EventQueryResponseItem] = Field( + ..., alias="list", description="Event Query response list" + ) + next: Cursor + summary: Summary | None = None + + +class LispConfig(BaseModel): + lispiid: float | None = Field(default=None, description="lisp id") + allocate: bool | None = Field(default=None, description="Allocate flag") + exportprivate: bool | None = Field(default=None, description="Export Private flag") + allocationprefix: Base64Str | None = Field( + default=None, description="Allocation Prefix" + ) + allocationprefixlen: float | None = Field( + default=None, description="Allocation Prefix Length" + ) + sp: list[ServicePoint] | None = Field( + default=None, description="Service Point List" + ) + + +class ManifestInfo(BaseModel): + bundle_version: str | None = Field( + default=None, + alias="bundleVersion", + description="Current version of edge application being used", + ) + next_bundle_version: str | None = Field( + default=None, + alias="nextBundleVersion", + description="Next version of edge application available", + ) + transition_action: InstanceTransitionAction | None = Field( + default="INSTANCE_TA_UNSPECIFIED", alias="transitionAction" + ) + params: dict[str, str] | None = Field( + default=None, + description="Common and Custom parameters for deciding on transition actions", + ) + details: TransDetails | None = None + enablevnc: bool | None = Field(default=None, description="Enable vnc for the app") + + +class NetInstOpaqueConfig(BaseModel): + type: OpaqueConfigType | None = "OPAQUE_CONFIG_TYPE_UNSPECIFIED" + oconfig: str | None = Field( + default=None, description="base64 encoded string of opaque config" + ) + lisp: LispConfig | None = None + + +class NetworkStatus(BaseModel): + up: bool | None = Field(default=None, description="Network Status flag") + mac_addr: str | None = Field( + default=None, alias="macAddr", description="mac Address" + ) + if_name: str | None = Field(default=None, alias="ifName", description="ifName") + ip_addrs: list[str] | None = Field( + default=None, alias="ipAddrs", description="Array of IP addresses" + ) + default_routers: list[str] | None = Field( + default=None, alias="defaultRouters", description="Default Routers" + ) + dns: DNSInfo | None = None + location: GeoLocation | None = None + uplink: bool | None = Field(default=None, description="Uplink flag") + proxy: NetProxyStatus | None = None + err_info: DeviceError | None = Field(default=None, alias="errInfo") + gps_location: GPSLocation | None = Field(default=None, alias="gpsLocation") + cellular: CellularStatus | None = None + mtu: int | None = Field(default=None, description="Network MTU") + pnac_status: PNACPortStatus | None = Field(default=None, alias="pnacStatus") + config_source: CommonPortConfigSource | None = Field( + default=None, alias="configSource" + ) + + +class PluginConfigList(BaseModel): + plugin_list_summary: Summary | None = Field(default=None, alias="pluginListSummary") + list_: list[PluginShortConfig] | None = Field( + default=None, alias="list", description="Details of Third Party list records." + ) + next: Cursor | None = None + cfg_list: list[PluginConfig] | None = Field(default=None, alias="cfgList") + + +class ProbeConfig(BaseModel): + enable_gateway_ping: bool | None = Field( + default=None, alias="enableGatewayPing", description="Enable gateway ping" + ) + ping_max_cost: float | None = Field( + default=None, alias="pingMaxCost", description="Ping max cost" + ) + prefer_lower_cost: bool | None = Field( + default=None, alias="preferLowerCost", description="Prefer lower cost" + ) + prefer_stronger_wwan_signal: bool | None = Field( + default=None, + alias="preferStrongerWwanSignal", + description="Prefer stronger WWAN signal", + ) + custom_probe_config: CommonConnectivityProbe | None = Field( + default=None, alias="customProbeConfig" + ) + + +class StaticIPRoute(BaseModel): + prefix: str | None = Field(default=None, description="IP Prefix") + gateway: str | None = Field(default=None, description="Gateway IP") + output_port: str | None = Field( + default=None, alias="outputPort", description="Output Port" + ) + probe_config: ProbeConfig | None = Field(default=None, alias="probeConfig") + + +class AppACE(BaseModel): + matches: list[AppACEMatch] = Field(..., description="app ACE match") + actions: list[AppACEAction] = Field(..., description="app ACE actions") + id: float = Field(..., description="app ACE id") + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the app ACE, unique across the enterprise. Once object is created, name can’t be changed", + ) + + +class AppInterface(BaseModel): + netname: str | None = Field( + default=None, + description="network name: will be deprecated in future, use netinstname", + ) + io: PhyAdapter | None = None + intforder: float | None = Field(default=None, description="intforder") + intfname: str = Field(..., description="intf Name") + directattach: bool | None = Field( + default=None, + description="direct attach flag", + title="comes from manifest during app create", + ) + privateip: bool | None = Field(default=None, description="Private IP flag") + acls: list[AppACE] | None = Field(default=None, description="app Acls") + ipaddr: str | None = Field( + default=None, + description="IP address", + title="if netname points static DHCP then we need to take\nstatic /32 address here", + ) + macaddr: str | None = Field( + default=None, + description="MAC address", + title="in case of p2v we might want to provide a mac-address.\napplicable only in case of DHCP=passthrough", + ) + access_vlan_id: confloat(ge=2.0, le=4093.0) | None = Field( + default=None, + alias="accessVlanId", + description="access port VLAN ID, vlan id of zero will be treated as trunk port and vlan id 1 is implicitly used by linux bridges", + ) + eidregister: EIDRegister | None = None + netinstname: str | None = Field( + default=None, + description='Network Instance name to be matched for interface assignment. Applicable only when "direct attach" flag is false', + ) + netinsttag: dict[str, str] | None = Field( + default=None, + description='Network Instance tag to be matched for interface assignment. Applicable only when "direct attach" flag is false', + ) + netinstid: str | None = Field( + default=None, + description="Network Instance id to be matched for interface assignment.", + ) + default_net_instance: bool | None = Field( + default=None, alias="defaultNetInstance", description="default instance flag" + ) + allow_to_discover: bool | None = Field( + default=None, + alias="allowToDiscover", + description="flag tells if appInstance have permission to access the network mappings from the connected netInstance", + ) + + +class AppInstStatusSummaryMsg(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="System defined universally unique Id of the app instance", + ) + name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined name of the app instance, unique across the enterprise. Once app instance is created, name can’t be changed", + ) + device_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="deviceId", + description="User defined name of the device, unique across the enterprise. Once device is created, name can’t be changed", + ) + app_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="appId", + description="User defined name of the edge app, unique across the enterprise. Once edge app is created, name can’t be changed", + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + admin_state: AdminState | None = Field( + default="ADMIN_STATE_UNSPECIFIED", alias="adminState" + ) + cluster_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="clusterID", + description="System defined universally unique clusterInstance ID, unique across the enterprise.", + ) + run_state: RunState | None = Field( + default="RUN_STATE_UNSPECIFIED", alias="runState" + ) + memory: MemorySummary | None = Field(default=None, alias="Memory") + storage: StorageSummary | None = Field(default=None, alias="Storage") + sw_state: SWState | None = Field(default="SW_STATE_UNSPECIFIED", alias="swState") + cpu: CpuSummary | None = Field(default=None, alias="Cpu") + project_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="projectId", + description="User defined name of the project, unique across the enterprise. Once project is created, name can’t be changed", + ) + title: ( + constr(pattern=r"^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined title of the app instance. Title can be changed at any time", + ) + app_type: AppType | None = Field(default="APP_TYPE_UNSPECIFIED", alias="appType") + deployment_type: DeploymentType | None = Field( + default="DEPLOYMENT_TYPE_UNSPECIFIED", alias="deploymentType" + ) + memory_summary: AppInstMemorySummary | None = Field( + default=None, alias="memorySummary" + ) + sw_info: list[SWInfo] | None = Field( + default=None, alias="swInfo", description="Software details" + ) + app_name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="appName", + description="User defined name of the edge app, unique across the enterprise. Once edge app is created, name can’t be changed", + ) + project_name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="projectName", + description="User defined name of the project, unique across the enterprise. Once project is created, name can’t be changed", + ) + device_name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="deviceName", + description="User defined name of the device, unique across the enterprise. Once device is created, name can’t be changed", + ) + net_status_list: list[NetworkStatus] | None = Field( + default=None, alias="netStatusList", description="network status list" + ) + + +class CustomConfig(BaseModel): + name: str | None = Field( + default=None, description="Name of CustomConfig (Required)" + ) + add: bool | None = Field( + default=None, + description="Add the Custom Config to App Instance (Optional. Default: False)", + ) + override: bool | None = Field( + default=None, + description="Override existing custom config from App Bundle Manifest (Optional. Default: False)", + ) + allow_storage_resize: bool | None = Field( + default=None, + alias="allowStorageResize", + description="Allow Appinstance storage to be resized after app instance is created. (Optional. Default: False)", + ) + field_delimiter: str | None = Field( + default=None, + alias="fieldDelimiter", + description="Field delimiter used in specifying variables in template. (Required)", + ) + template: str | None = Field( + default=None, description="base64 encrypted template string. (Optional)" + ) + variable_groups: list[CustomConfigVariableGroup] | None = Field( + default=None, + alias="variableGroups", + description="List of Variable groups. (Required)", + ) + + +class DeviceStatusSummaryMsg(BaseModel): + name: str | None = None + id: str | None = None + admin_state: AdminState | None = Field( + default="ADMIN_STATE_UNSPECIFIED", alias="adminState" + ) + run_state: RunState | None = Field( + default="RUN_STATE_UNSPECIFIED", alias="runState" + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + title="deprecated = 5;", + ) + net_status_list: list[NetworkStatus] | None = Field( + default=None, alias="netStatusList" + ) + sw_info: list[DeviceSWInfo] | None = Field(default=None, alias="swInfo") + minfo: ZManufacturerInfo | None = None + dinfo: DeviceInfo | None = None + memory: MemorySummary | None = Field(default=None, alias="Memory") + storage: StorageSummary | None = Field(default=None, alias="Storage") + cpu: CpuSummary | None = Field(default=None, alias="Cpu") + dev_error: list[DeviceError] | None = Field(default=None, alias="devError") + project_id: str | None = Field(default=None, alias="projectId") + title: str | None = None + cluster_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="clusterID", + description="System defined universally unique clusterInstance ID, unique across the enterprise.", + ) + memory_summary: DeviceMemorySummary | None = Field( + default=None, alias="memorySummary" + ) + debug_knob: bool | None = Field( + default=None, alias="debugKnob", title="debug knob expiry time" + ) + debug_knob_expiry_time: AwareDatetime | None = Field( + default=None, alias="debugKnobExpiryTime" + ) + project_name: str | None = Field( + default=None, + alias="projectName", + description="Project name to which device is associated with", + ) + app_inst_count: int | None = Field( + default=None, + alias="appInstCount", + description="App instance count that is actively running on the device", + ) + location: str | None = Field(default=None, description="Device location") + edgeview_active: bool | None = Field( + default=None, + alias="edgeviewActive", + description="Device edgeview session active", + ) + project_type: TagType | None = Field( + default="TAG_TYPE_UNSPECIFIED", alias="projectType" + ) + cluster_node_status: ClusterNodeStatus | None = Field( + default=None, alias="clusterNodeStatus" + ) + enrolled_certs_status: EnrolledCertStatus | None = Field( + default="ENROLLED_CERT_STATUS_UNSPECIFIED", alias="enrolledCertsStatus" + ) + + +class NetInstConfig(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="System defined universally unique Id of the network instance", + ) + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the network instance, unique across the enterprise. Once object is created, name can’t be changed", + ) + title: constr( + pattern=r"^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined title of the network instance. Title can be changed at any time", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the network instance" + ) + revision: ObjectRevision | None = None + project_id: str | None = Field( + default=None, + alias="projectId", + description="id of the project in which network instance is created", + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + cluster_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="clusterID", + description="id of the Cluster in which the network instance is configured", + ) + device_id: str = Field( + ..., + alias="deviceId", + description="id of the device on which network instance is created", + title="device on which this network is running", + ) + port: str = Field( + ..., + description="name of port mapping in the model", + title="name of port mapping in the model", + ) + port_tags: dict[str, str] | None = Field( + default=None, + alias="portTags", + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + kind: NetworkInstanceKind + dhcp: bool | None = Field( + default=None, description="Deprecated", title="dhcp - DEPRECATED" + ) + type: NetworkInstanceDhcpType | None = "NETWORK_INSTANCE_DHCP_TYPE_UNSPECIFIED" + ip: DhcpServerConfig | None = None + dns_list: list[StaticDNSList] | None = Field( + default=None, alias="dnsList", description="List of Static DNS entries" + ) + oconfig: str | None = Field(default=None, title="Deprecated") + lisp: LispConfig | None = None + opaque: NetInstOpaqueConfig | None = None + device_default: bool | None = Field( + default=None, + alias="deviceDefault", + description="flag to indicate if this is the default network instance for the device", + title="flag to indicate if this is default network", + ) + network_policy_id: str | None = Field( + default=None, + alias="networkPolicyId", + description="id of the network policy to be attached to this network instance", + ) + propagate_connected_routes: bool | None = Field( + default=None, + alias="propagateConnectedRoutes", + description="Automatically propagate connected routes", + ) + static_routes: list[StaticIPRoute] | None = Field( + default=None, alias="staticRoutes", description="List of Static IP routes" + ) + mtu: int | None = Field( + default=None, + description="Maximum transmission unit (MTU) to set for the network instance and all application interfaces connected to it", + ) + edge_node_cluster: NetInstEdgeNodeCluster | None = Field( + default=None, alias="edgeNodeCluster" + ) + forward_lldp: bool | None = Field( + default=None, + alias="forwardLldp", + description="Enables forwarding of LLDP (Link Layer Discovery Protocol) frames across this\nnetwork instance.\nLLDP is used by devices to advertise identity and capabilities to directly\nconnected neighbors, and is often required for topology discovery and network\nmanagement tools.\nWhen enabled, LLDP frames (EtherType 0x88cc) are not dropped or suppressed\nby the forwarding plane.", + ) + + +class ClusterInstStatusMsg(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="System defined universally unique Id of the cluster instance", + ) + name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined name of the cluster instance, unique across the enterprise. Once cluster instance is created, name can’t be changed", + ) + title: ( + constr(pattern=r"^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined title of the cluster instance. Title can be changed at any time", + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + cluster_type: ClusterType | None = Field( + default="CLUSTER_TYPE_UNSPECIFIED", alias="clusterType" + ) + project_id: str | None = Field( + default=None, + alias="projectId", + description="project id which the given cluster instance belong to", + ) + admin_state: AdminState | None = Field( + default="ADMIN_STATE_UNSPECIFIED", alias="adminState" + ) + run_state: ClusterRunState | None = Field( + default="CLUSTER_RUN_STATE_UNSPECIFIED", alias="runState" + ) + cluster_policy_id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + alias="clusterPolicyId", + description="System defined universally unique Id of the cluster policy", + ) + min_edge_devices: float | None = Field( + default=None, + alias="minEdgeDevices", + description="Minimum number of edge device required for the cluster instance", + ) + max_edge_devices: float | None = Field( + default=None, + alias="maxEdgeDevices", + description="Maximum number of edge device allowed in the cluster instance", + ) + min_server_nodes: float | None = Field( + default=None, + alias="minServerNodes", + description="Minimum number of server nodes required for the cluster instance", + ) + max_server_nodes: float | None = Field( + default=None, + alias="maxServerNodes", + description="Maximum number of server nodes allowed in the cluster instance", + ) + min_agent_nodes: float | None = Field( + default=None, + alias="minAgentNodes", + description="Minimum number of agent nodes required for the cluster instance", + ) + max_agent_nodes: float | None = Field( + default=None, + alias="maxAgentNodes", + description="Maximum number of agent nodes allowed in the cluster instance", + ) + edge_node_summaries: list[DeviceStatusSummaryMsg] | None = Field( + default=None, alias="edgeNodeSummaries", description="Device summaries" + ) + memory: MemorySummary | None = None + storage: StorageSummary | None = None + cpu: CpuSummary | None = None + server_node_summaries: list[AppInstStatusSummaryMsg] | None = Field( + default=None, + alias="serverNodeSummaries", + description="Cluster Server Nodes (appInstances) summaries", + ) + agent_node_summaries: list[AppInstStatusSummaryMsg] | None = Field( + default=None, + alias="agentNodeSummaries", + description="Cluster Agent Nodes (appInstances) summaries", + ) + nodes_job_name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="nodesJobName", + description="Name of the job object tracking ClusterNodes deployment", + ) + orchestrator_cluster_id: constr(max_length=256) | None = Field( + default=None, + alias="orchestratorClusterID", + description="Orchestrator cluster object ID", + ) + orchestrator_cluster_run_state: RunState | None = Field( + default="RUN_STATE_UNSPECIFIED", alias="orchestratorClusterRunState" + ) + orchestrator_cluster_err_msg: OrchestratorObjectError | None = Field( + default=None, alias="orchestratorClusterErrMsg" + ) + orchestrator_cluster_warn_msg: OrchestratorObjectError | None = Field( + default=None, alias="orchestratorClusterWarnMsg" + ) + raw_orchestrator_cluster_status: constr(max_length=256) | None = Field( + default=None, + alias="rawOrchestratorClusterStatus", + description="Raw status of Orchestrator cluster object", + ) + edge_node_job_names: list[str] | None = Field( + default=None, + alias="edgeNodeJobNames", + description="Array of job names which are tracking dynamic device addition/deletion", + ) + node_refresh_job_names: list[str] | None = Field( + default=None, + alias="nodeRefreshJobNames", + description="Array of job names which are tracking cluster nodes refresh action", + ) + nodes_job_id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + alias="nodesJobID", + description="ID of the job object tracking ClusterNodes deployment", + ) + tmc_status: TMCClusterStatus | None = Field(default=None, alias="tmcStatus") + + +class AppInstance(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="System defined universally unique Id of the app instance", + ) + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the app instance, unique across the enterprise. Once app instance is created, name can’t be changed", + ) + title: constr( + pattern=r"^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined title of the app instance. Title can be changed at any time", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the app instance" + ) + revision: ObjectRevision | None = None + project_id: str = Field( + ..., + alias="projectId", + description="project name which the given app instance belong to", + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + cluster_id: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + alias="clusterID", + description="System defined universally unique clusterInstance ID, unique across the enterprise.", + ) + app_id: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + alias="appId", + description="User defined name of the edge app, unique across the enterprise. Once app name is created, name can’t be changed", + ) + device_id: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + alias="deviceId", + description="User defined name of the device name, unique across the enterprise. Once device name is defined, name can’t be changed", + ) + activate: bool = Field(..., description="app instance activation flag") + vminfo: Vm | None = None + drives: list[Drive] | None = Field(default=None, description="drive details") + interfaces: list[AppInterface] | None = Field( + default=None, description="application interfaces" + ) + user_data: str | None = Field( + default=None, + alias="userData", + description="Deprecated: Application initiazation script in cloud-config format to be used by cloud-init", + ) + custom_config: CustomConfig | None = Field(default=None, alias="customConfig") + collect_stats_ip_addr: str | None = Field( + default=None, + alias="collectStatsIPAddr", + description="holds the static Ip of the app instance", + ) + bundleversion: str | None = Field( + default=None, description="version of bundle app is referring to" + ) + logs: AppInstanceLogs | None = None + restart: ZedCloudOpsCmd | None = None + refresh: ZedCloudOpsCmd | None = None + purge: ZedCloudOpsCmd | None = None + remote_console: bool | None = Field( + default=None, alias="remoteConsole", description="Remote console flag" + ) + encrypted_secrets: dict[str, str] | None = Field( + default=None, alias="encryptedSecrets", description="user encrypted secrets map" + ) + crypto_key: str | None = Field( + default=None, + alias="cryptoKey", + description="Crypto Key for decrypting user secret information", + ) + manifest_info: ManifestInfo | None = Field(default=None, alias="manifestInfo") + app_type: AppType | None = Field(default="APP_TYPE_UNSPECIFIED", alias="appType") + is_secret_updated: bool | None = Field( + default=None, + alias="isSecretUpdated", + description="This field tells whether user secrets has updated or not, especially the cusotom config", + ) + app_policy_id: str | None = Field( + default=None, alias="appPolicyId", description="app policy id" + ) + deployment_type: DeploymentType | None = Field( + default="DEPLOYMENT_TYPE_UNSPECIFIED", alias="deploymentType" + ) + user_defined_version: str | None = Field( + default=None, + alias="userDefinedVersion", + description="Instance version tells which edge app does this instance is running", + ) + start_delay_in_seconds: int | None = Field( + default=None, + alias="startDelayInSeconds", + description="start delay is the time in seconds EVE should wait after boot before starting the application instance", + ) + cloud_init_version: int | None = Field( + default=None, + alias="cloudInitVersion", + description="Cloud-init version that indicates whether it necessary or not for cloud-init tool to restart in a guest", + ) + allow_snapshots: bool | None = Field( + default=None, + alias="allowSnapshots", + description="Flag to determine if a snapshot creation is allowed", + ) + max_snapshots: int | None = Field( + default=None, + alias="maxSnapshots", + description="Maximum number of snapshots allowed to be created", + ) + available_snapshots: list[AppInstanceSnapshot] | None = Field( + default=None, + alias="availableSnapshots", + description="The list of available snapshots of the application instance", + ) + patch_envelope_id: str | None = Field( + default=None, alias="patchEnvelopeId", description="patch envelope id" + ) + patch_envelope_name: str | None = Field( + default=None, alias="patchEnvelopeName", description="patch envelope name" + ) + edge_node_cluster: AppInstEdgeNodeCluster | None = Field( + default=None, alias="edgeNodeCluster" + ) + docker_compose_yaml_text: str | None = Field( + default=None, + alias="dockerComposeYamlText", + description="Docker compose base64 encoded plain text", + title="internal field", + ) + docker_compose_tar_image_name: str | None = Field( + default=None, + alias="dockerComposeTarImageName", + description="Docker compose tar image name", + title="internal field", + ) + datastore_id_list: list[str] | None = Field( + default=None, + alias="datastoreIdList", + description="List of datastore ids containing private registry credentials", + title="internal field", + ) + persistent_runtime_size_bytes: str | None = Field( + default=None, + alias="PersistentRuntimeSizeBytes", + description="Persistent runtime size in bytes", + ) + + +class AppInstanceSnapshot(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="System defined universally unique Id of the app instance snapshot", + ) + name: str = Field( + ..., description="Snapshot name. Unique across the application instance" + ) + state: SnapshotState | None = "INVALID" + config: AppInstance | None = None + activate: bool | None = Field( + default=None, description="Indicates whether the snapshot should be activated" + ) + immediate: bool | None = Field( + default=None, + description="Indicates that the snapshot should be taken immediately", + ) + + +class ClusterInstance(BaseModel): + id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + description="System defined universally unique Id of the cluster instance", + ) + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the cluster instance, unique across the enterprise. Once cluster instance is created, name can’t be changed", + ) + title: constr( + pattern=r"^[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+$", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined title of the cluster instance. Title can be changed at any time", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the cluster instance" + ) + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + cluster_type: ClusterType = Field(..., alias="clusterType") + project_id: str = Field( + ..., + alias="projectId", + description="project id which the given cluster instance belong to", + ) + revision: ObjectRevision | None = None + activate: str | None = Field( + default=None, description="cluster instance activation flag" + ) + cluster_policy_id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + alias="clusterPolicyId", + description="System defined universally unique Id of the cluster policy", + ) + edge_node_pool_tags: dict[str, str] = Field( + ..., + alias="edgeNodePoolTags", + description="edgeNodePoolTags are name/value pairs that enables us to identify edgeNodes which are part of a ClusterInstance. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + server_app_inst: AppInstance = Field(..., alias="serverAppInst") + agent_app_inst: AppInstance = Field(..., alias="agentAppInst") + min_edge_devices: float = Field( + ..., + alias="minEdgeDevices", + description="Minimum number of edge device required for the cluster instance", + ) + max_edge_devices: float = Field( + ..., + alias="maxEdgeDevices", + description="Maximum number of edge device allowed in the cluster instance", + ) + min_server_nodes: float = Field( + ..., + alias="minServerNodes", + description="Minimum number of server nodes required for the cluster instance", + ) + max_server_nodes: float = Field( + ..., + alias="maxServerNodes", + description="Maximum number of server nodes allowed in the cluster instance", + ) + min_agent_nodes: float = Field( + ..., + alias="minAgentNodes", + description="Minimum number of agent nodes required for the cluster instance", + ) + max_agent_nodes: float = Field( + ..., + alias="maxAgentNodes", + description="Maximum number of agent nodes allowed in the cluster instance", + ) + call_home_url: str = Field( + ..., + alias="callHomeURL", + description="CallHome URL for the cluster to fetch configuration details", + ) + cluster_onboard_type: ClusterOnboardType = Field(..., alias="clusterOnboardType") + orchestration_provider: OrchestrationProvider | None = Field( + default="ORCHESTRATOR_PROVIDER_UNSPECIFIED", alias="orchestrationProvider" + ) + orchestrator_plugin_id: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + alias="orchestratorPluginID", + description="System defined universally unique Id of the orchestrator plugin", + ) + orchestrator_config: OrchestratorConfig | None = Field( + default=None, alias="orchestratorConfig" + ) + net_inst_config: list[NetInstConfig] | None = Field( + default=None, + alias="netInstConfig", + description="Network instance config to enforce on all devices of this cluster", + ) + orchestrator_cluster_url: constr(pattern=r"[0-9A-Za-z-]+") | None = Field( + default=None, + alias="orchestratorClusterURL", + description="Href for the third-party cluster object.", + ) + db_endpoint: str | None = Field( + default=None, + alias="dbEndpoint", + description="External DataBase endpoint for the server to communicate and sync", + ) + dev_ids: list[str] | None = Field( + default=None, + alias="devIds", + description="List of Edge Node Ids to deploy the cluster instance", + ) + + +AppInstance.model_rebuild() diff --git a/packages/zedcloud/src/zedcloud/_generated/models/storage.py b/packages/zedcloud/src/zedcloud/_generated/models/storage.py new file mode 100644 index 0000000..30d7365 --- /dev/null +++ b/packages/zedcloud/src/zedcloud/_generated/models/storage.py @@ -0,0 +1,1286 @@ +# Generated by scripts/generate_from_openapi.py from zedge_storage_service.swagger.json +# Do not edit by hand — re-run: uv run python scripts/generate_from_openapi.py + +from __future__ import annotations +from pydantic import AwareDatetime, Base64Str, BaseModel, Field, constr +from enum import Enum +from typing import Any + + +class ArtifactFilter(BaseModel): + pass + + +class ArtifactStream(BaseModel): + id: str | None = None + chunk: Base64Str | None = Field(default=None, description="artifact chunk data") + + +class Cursor(BaseModel): + page_token: str | None = Field( + default=None, alias="pageToken", description="Page Token" + ) + order_by: list[str] | None = Field( + default=None, + alias="orderBy", + description="OrderBy helps in sorting the list response", + ) + page_num: float | None = Field( + default=None, alias="pageNum", description="Page Number" + ) + page_size: float | None = Field( + default=None, alias="pageSize", description="Defines the page size" + ) + total_pages: float | None = Field( + default=None, + alias="totalPages", + description="Total number of pages to be fetched.", + ) + + +class DatastoreInfoSecrets(BaseModel): + api_key: str | None = Field( + default=None, + alias="apiKey", + description="Datastore access API key in plain-text", + ) + api_passwd: str | None = Field( + default=None, + alias="apiPasswd", + description="Datastore access API password in plain-text", + ) + + +class DatastoreStatus(Enum): + datastore_status_unspecified = "DATASTORE_STATUS_UNSPECIFIED" + datastore_status_created = "DATASTORE_STATUS_CREATED" + datastore_status_verifying = "DATASTORE_STATUS_VERIFYING" + datastore_status_active = "DATASTORE_STATUS_ACTIVE" + datastore_status_inactive = "DATASTORE_STATUS_INACTIVE" + datastore_status_failed = "DATASTORE_STATUS_FAILED" + + +class DatastoreType(Enum): + datastore_type_unspecified = "DATASTORE_TYPE_UNSPECIFIED" + datastore_type_http = "DATASTORE_TYPE_HTTP" + datastore_type_https = "DATASTORE_TYPE_HTTPS" + datastore_type_awss3 = "DATASTORE_TYPE_AWSS3" + datastore_type_sftp = "DATASTORE_TYPE_SFTP" + datastore_type_containerregistry = "DATASTORE_TYPE_CONTAINERREGISTRY" + datastore_type_azureblob = "DATASTORE_TYPE_AZUREBLOB" + datastore_type_zededas3 = "DATASTORE_TYPE_ZEDEDAS3" + datastore_type_zededablob = "DATASTORE_TYPE_ZEDEDABLOB" + datastore_type_file_storage = "DATASTORE_TYPE_FILE_STORAGE" + + +class DecsriptionCode(Enum): + description_code_unspecified = "DESCRIPTION_CODE_UNSPECIFIED" + description_code_received = "DESCRIPTION_CODE_RECEIVED" + description_code_packet_corrupt = "DESCRIPTION_CODE_PACKET_CORRUPT" + description_code_failed_to_receive = "DESCRIPTION_CODE_FAILED_TO_RECEIVE" + description_code_network_error = "DESCRIPTION_CODE_NETWORK_ERROR" + description_code_not_found = "DESCRIPTION_CODE_NOT_FOUND" + description_code_not_supported = "DESCRIPTION_CODE_NOT_SUPPORTED" + description_code_internal_error = "DESCRIPTION_CODE_INTERNAL_ERROR" + description_code_not_specified = "DESCRIPTION_CODE_NOT_SPECIFIED" + description_code_upload_done = "DESCRIPTION_CODE_UPLOAD_DONE" + description_code_already_exists = "DESCRIPTION_CODE_ALREADY_EXISTS" + description_code_invalid_params = "DESCRIPTION_CODE_INVALID_PARAMS" + + +class Description(BaseModel): + desc_message: str | None = Field( + default=None, alias="descMessage", description="description of an operation" + ) + desc_code: DecsriptionCode | None = Field( + default="DESCRIPTION_CODE_UNSPECIFIED", alias="descCode" + ) + + +class DeviceObjectUsageInfo(BaseModel): + create_time: dict[str, Any] = Field( + ..., alias="createTime", description="Timestamp at which object was created" + ) + ref_count: float = Field(..., alias="refCount", description="Object refcount") + last_ref_count_change_time: dict[str, Any] = Field( + ..., + alias="lastRefCountChangeTime", + description="Timestamp at which object refcount was last changed", + ) + + +class ECDSA(BaseModel): + curve: str | None = Field( + default=None, + description="ECDSA curve to be used while signing the certificate.", + ) + + +class Entity(Enum): + entity_unspecified = "ENTITY_UNSPECIFIED" + entity_base_os = "ENTITY_BASE_OS" + entity_system_adapter = "ENTITY_SYSTEM_ADAPTER" + entity_vault = "ENTITY_VAULT" + entity_attestation = "ENTITY_ATTESTATION" + entity_app_instance = "ENTITY_APP_INSTANCE" + entity_port = "ENTITY_PORT" + entity_network = "ENTITY_NETWORK" + entity_network_instance = "ENTITY_NETWORK_INSTANCE" + entity_content_tree = "ENTITY_CONTENT_TREE" + entity_content_blob = "ENTITY_CONTENT_BLOB" + entity_volume = "ENTITY_VOLUME" + + +class EventSource(Enum): + event_source_unspecified = "EVENT_SOURCE_UNSPECIFIED" + event_source_system = "EVENT_SOURCE_SYSTEM" + event_source_user = "EVENT_SOURCE_USER" + + +class ImageStatus(Enum): + image_status_unspecified = "IMAGE_STATUS_UNSPECIFIED" + image_status_created = "IMAGE_STATUS_CREATED" + image_status_pending = "IMAGE_STATUS_PENDING" + image_status_uploading = "IMAGE_STATUS_UPLOADING" + image_status_ready = "IMAGE_STATUS_READY" + image_status_inuse = "IMAGE_STATUS_INUSE" + image_status_archived = "IMAGE_STATUS_ARCHIVED" + image_status_max = "IMAGE_STATUS_MAX" + image_status_failed = "IMAGE_STATUS_FAILED" + image_status_uplinking = "IMAGE_STATUS_UPLINKING" + + +class ImageType(Enum): + image_type_unspecified = "IMAGE_TYPE_UNSPECIFIED" + image_type_eve = "IMAGE_TYPE_EVE" + image_type_application = "IMAGE_TYPE_APPLICATION" + image_type_eveprivate = "IMAGE_TYPE_EVEPRIVATE" + image_type_artifact = "IMAGE_TYPE_ARTIFACT" + image_type_docker_compose_tar = "IMAGE_TYPE_DOCKER_COMPOSE_TAR" + image_type_docker_runtime = "IMAGE_TYPE_DOCKER_RUNTIME" + image_type_zks_runtime = "IMAGE_TYPE_ZKS_RUNTIME" + + +class ModelArchType(Enum): + unspecified = "UNSPECIFIED" + undefined = "UNDEFINED" + amd64 = "AMD64" + arm64 = "ARM64" + + +class ObjectDetail(BaseModel): + id: str | None = None + name: str | None = None + + +class ObjectRevision(BaseModel): + prev: str | None = Field(default=None, description="Previous") + curr: str = Field(..., description="Current Database version of the record") + created_at: dict[str, Any] = Field( + ..., + alias="createdAt", + description="The time, in milliseconds since the epoch, when the record was created.", + ) + created_by: str = Field(..., alias="createdBy", description="User data: Created By") + updated_at: dict[str, Any] = Field( + ..., + alias="updatedAt", + description="The time, in milliseconds since the epoch, when the record was last updated.", + ) + updated_by: str = Field(..., alias="updatedBy", description="User data: Updated By") + + +class ObjectType(Enum): + object_type_unspecified = "OBJECT_TYPE_UNSPECIFIED" + object_type_user = "OBJECT_TYPE_USER" + object_type_edge_node = "OBJECT_TYPE_EDGE_NODE" + object_type_edge_app = "OBJECT_TYPE_EDGE_APP" + object_type_image = "OBJECT_TYPE_IMAGE" + object_type_edge_app_instance = "OBJECT_TYPE_EDGE_APP_INSTANCE" + object_type_project = "OBJECT_TYPE_PROJECT" + object_type_network = "OBJECT_TYPE_NETWORK" + object_type_datastore = "OBJECT_TYPE_DATASTORE" + object_type_service = "OBJECT_TYPE_SERVICE" + object_type_service_instance = "OBJECT_TYPE_SERVICE_INSTANCE" + object_type_enterprise = "OBJECT_TYPE_ENTERPRISE" + object_type_role = "OBJECT_TYPE_ROLE" + object_type_credential = "OBJECT_TYPE_CREDENTIAL" + object_type_network_instance = "OBJECT_TYPE_NETWORK_INSTANCE" + object_type_volume_instance = "OBJECT_TYPE_VOLUME_INSTANCE" + object_type_realm = "OBJECT_TYPE_REALM" + object_type_authprofile = "OBJECT_TYPE_AUTHPROFILE" + object_type_policy = "OBJECT_TYPE_POLICY" + object_type_app_policy = "OBJECT_TYPE_APP_POLICY" + object_type_cluster_instance = "OBJECT_TYPE_CLUSTER_INSTANCE" + object_type_plugin = "OBJECT_TYPE_PLUGIN" + object_type_doc_policy = "OBJECT_TYPE_DOC_POLICY" + object_type_orchestrator_cluster = "OBJECT_TYPE_ORCHESTRATOR_CLUSTER" + object_type_tags = "OBJECT_TYPE_TAGS" + object_type_edge_node_interface = "OBJECT_TYPE_EDGE_NODE_INTERFACE" + object_type_deployment = "OBJECT_TYPE_DEPLOYMENT" + object_type_entitlements = "OBJECT_TYPE_ENTITLEMENTS" + object_type_data_stream = "OBJECT_TYPE_DATA_STREAM" + object_type_api_usage = "OBJECT_TYPE_API_USAGE" + object_type_app_instance_snapshot = "OBJECT_TYPE_APP_INSTANCE_SNAPSHOT" + object_type_patch_envelope = "OBJECT_TYPE_PATCH_ENVELOPE" + object_type_resource_usage_track = "OBJECT_TYPE_RESOURCE_USAGE_TRACK" + object_type_patch_envelope_reference = "OBJECT_TYPE_PATCH_ENVELOPE_REFERENCE" + object_type_dev_passthrough = "OBJECT_TYPE_DEV_PASSTHROUGH" + object_type_edge_node_cluster = "OBJECT_TYPE_EDGE_NODE_CLUSTER" + object_type_asset_group = "OBJECT_TYPE_ASSET_GROUP" + object_type_app_profile = "OBJECT_TYPE_APP_PROFILE" + object_type_profile_deployment = "OBJECT_TYPE_PROFILE_DEPLOYMENT" + object_type_zks_instance = "OBJECT_TYPE_ZKS_INSTANCE" + object_type_cluster_group = "OBJECT_TYPE_CLUSTER_GROUP" + + +class Origin(Enum): + origin_unspecified = "ORIGIN_UNSPECIFIED" + origin_imported = "ORIGIN_IMPORTED" + origin_local = "ORIGIN_LOCAL" + origin_global = "ORIGIN_GLOBAL" + origin_app_profile_local = "ORIGIN_APP_PROFILE_LOCAL" + + +class RSA(BaseModel): + rsa_bits: str | None = Field( + default=None, alias="rsaBits", description="RSA Encryption Key bit size." + ) + + +class RunState(Enum): + run_state_unspecified = "RUN_STATE_UNSPECIFIED" + run_state_online = "RUN_STATE_ONLINE" + run_state_halted = "RUN_STATE_HALTED" + run_state_init = "RUN_STATE_INIT" + run_state_rebooting = "RUN_STATE_REBOOTING" + run_state_offline = "RUN_STATE_OFFLINE" + run_state_unknown = "RUN_STATE_UNKNOWN" + run_state_unprovisioned = "RUN_STATE_UNPROVISIONED" + run_state_provisioned = "RUN_STATE_PROVISIONED" + run_state_suspect = "RUN_STATE_SUSPECT" + run_state_downloading = "RUN_STATE_DOWNLOADING" + run_state_restarting = "RUN_STATE_RESTARTING" + run_state_purging = "RUN_STATE_PURGING" + run_state_halting = "RUN_STATE_HALTING" + run_state_error = "RUN_STATE_ERROR" + run_state_verifying = "RUN_STATE_VERIFYING" + run_state_loading = "RUN_STATE_LOADING" + run_state_creating_volume = "RUN_STATE_CREATING_VOLUME" + run_state_booting = "RUN_STATE_BOOTING" + run_state_maintenance_mode = "RUN_STATE_MAINTENANCE_MODE" + run_state_start_delayed = "RUN_STATE_START_DELAYED" + run_state_baseos_updating = "RUN_STATE_BASEOS_UPDATING" + run_state_preparing_poweroff = "RUN_STATE_PREPARING_POWEROFF" + run_state_powering_off = "RUN_STATE_POWERING_OFF" + run_state_prepared_poweroff = "RUN_STATE_PREPARED_POWEROFF" + + +class RunStateConfigHttpRequestRunStateHttpRequest(Enum): + unspecified = "UNSPECIFIED" + online = "ONLINE" + halted = "HALTED" + init = "INIT" + rebooting = "REBOOTING" + offline = "OFFLINE" + unknown = "UNKNOWN" + unprovisioned = "UNPROVISIONED" + provisioned = "PROVISIONED" + suspect = "SUSPECT" + downloading = "DOWNLOADING" + restarting = "RESTARTING" + purging = "PURGING" + halting = "HALTING" + error = "ERROR" + verifying = "VERIFYING" + loading = "LOADING" + creating_volume = "CREATING_VOLUME" + booting = "BOOTING" + maintenance_mode = "MAINTENANCE_MODE" + start_delayed = "START_DELAYED" + baseos_updating = "BASEOS_UPDATING" + preparing_poweroff = "PREPARING_POWEROFF" + powering_off = "POWERING_OFF" + prepared_poweroff = "PREPARED_POWEROFF" + + +class SANValues(BaseModel): + hosts: list[str] | None = Field( + default=None, description="List of permitted hosts." + ) + emaild_ids: list[str] | None = Field( + default=None, + alias="emaildIds", + description="List of permitted email addresses.", + ) + uris: list[str] | None = Field(default=None, description="List of permitted URIs.") + ips: list[str] | None = Field( + default=None, description="List of permitted IP addresses." + ) + dns: list[str] | None = Field( + default=None, description="List of permitted DNS names." + ) + upns: list[str] | None = Field( + default=None, description="List of permitted User principal names." + ) + + +class SWState(Enum): + sw_state_unspecified = "SW_STATE_UNSPECIFIED" + sw_state_initial = "SW_STATE_INITIAL" + sw_state_download_in_progress = "SW_STATE_DOWNLOAD_IN_PROGRESS" + sw_state_downloaded = "SW_STATE_DOWNLOADED" + sw_state_verified = "SW_STATE_VERIFIED" + sw_state_installed = "SW_STATE_INSTALLED" + sw_state_booting = "SW_STATE_BOOTING" + sw_state_running = "SW_STATE_RUNNING" + sw_state_halting = "SW_STATE_HALTING" + sw_state_halted = "SW_STATE_HALTED" + sw_state_refreshing = "SW_STATE_REFRESHING" + sw_state_purging = "SW_STATE_PURGING" + sw_state_resolving_tag = "SW_STATE_RESOLVING_TAG" + sw_state_resolved_tag = "SW_STATE_RESOLVED_TAG" + sw_state_creating_volume = "SW_STATE_CREATING_VOLUME" + sw_state_created_volume = "SW_STATE_CREATED_VOLUME" + sw_state_verifying = "SW_STATE_VERIFYING" + sw_state_loading = "SW_STATE_LOADING" + sw_state_loaded = "SW_STATE_LOADED" + sw_state_awaitnetworkinstance = "SW_STATE_AWAITNETWORKINSTANCE" + + +class Severity(Enum): + severity_unspecified = "SEVERITY_UNSPECIFIED" + severity_notice = "SEVERITY_NOTICE" + severity_warning = "SEVERITY_WARNING" + severity_error = "SEVERITY_ERROR" + + +class StatusCode(Enum): + status_code_unspecified = "STATUS_CODE_UNSPECIFIED" + status_code_success = "STATUS_CODE_SUCCESS" + status_code_failure = "STATUS_CODE_FAILURE" + status_code_partial_success = "STATUS_CODE_PARTIAL_SUCCESS" + + +class Subject(BaseModel): + common_name: str | None = Field( + default=None, alias="commonName", description="Certificate common name." + ) + country: list[str] | None = Field(default=None, description="List of countries.") + organization: list[str] | None = Field( + default=None, description="List of organization." + ) + organizational_unit: list[str] | None = Field( + default=None, + alias="organizationalUnit", + description="List of Organizational Unit.", + ) + locality: list[str] | None = Field(default=None, description="List of locallity.") + postal_code: list[str] | None = Field( + default=None, alias="postalCode", description="List of Postal codes." + ) + province: list[str] | None = Field( + default=None, description="List of List of Prvince." + ) + serial_number: str | None = Field( + default=None, alias="serialNumber", description="Subject cerial number" + ) + + +class Summary(BaseModel): + description: str | None = Field(default=None, description="Summary description") + total: float | None = Field(default=None, description="Total") + values: dict[str, int] | None = Field( + default=None, description="Values: Map for storing " + ) + + +class VolInstEdgeNodeCluster(BaseModel): + id: str | None = Field(default=None, description="edge node cluster ID") + designated_node_id: str | None = Field( + default=None, alias="designatedNodeID", description="designated node ID" + ) + + +class VolInstResource(BaseModel): + cur_size_bytes: str | None = Field(default=None, alias="curSizeBytes") + max_size_bytes: str | None = Field(default=None, alias="maxSizeBytes") + + +class VolumeInstanceAccessMode(Enum): + volume_instance_access_mode_invalid = "VOLUME_INSTANCE_ACCESS_MODE_INVALID" + volume_instance_access_mode_readwrite = "VOLUME_INSTANCE_ACCESS_MODE_READWRITE" + volume_instance_access_mode_readonly = "VOLUME_INSTANCE_ACCESS_MODE_READONLY" + volume_instance_access_mode_multiread_singlewrite = ( + "VOLUME_INSTANCE_ACCESS_MODE_MULTIREAD_SINGLEWRITE" + ) + + +class VolumeInstanceConfigHttpRequestVolumeInstanceTypeHttpRequest(Enum): + unspecified = "UNSPECIFIED" + emptydir = "EMPTYDIR" + blockstorage = "BLOCKSTORAGE" + hostfs = "HOSTFS" + tmpfs = "TMPFS" + secret = "SECRET" + nfs = "NFS" + aws_block_storage = "AWS_BLOCK_STORAGE" + content_tree = "CONTENT_TREE" + + +class VolumeInstanceType(Enum): + volume_instance_type_unspecified = "VOLUME_INSTANCE_TYPE_UNSPECIFIED" + volume_instance_type_emptydir = "VOLUME_INSTANCE_TYPE_EMPTYDIR" + volume_instance_type_blockstorage = "VOLUME_INSTANCE_TYPE_BLOCKSTORAGE" + volume_instance_type_hostfs = "VOLUME_INSTANCE_TYPE_HOSTFS" + volume_instance_type_tmpfs = "VOLUME_INSTANCE_TYPE_TMPFS" + volume_instance_type_secret = "VOLUME_INSTANCE_TYPE_SECRET" + volume_instance_type_nfs = "VOLUME_INSTANCE_TYPE_NFS" + volume_instance_type_aws_block_storage = "VOLUME_INSTANCE_TYPE_AWS_BLOCK_STORAGE" + volume_instance_type_content_tree = "VOLUME_INSTANCE_TYPE_CONTENT_TREE" + + +class ZcOpsStatus(Enum): + ops_status_unspecified = "OPS_STATUS_UNSPECIFIED" + ops_status_pending = "OPS_STATUS_PENDING" + ops_status_ongoing = "OPS_STATUS_ONGOING" + ops_status_complete = "OPS_STATUS_COMPLETE" + + +class ZcOpsType(Enum): + ops_type_unspecified = "OPS_TYPE_UNSPECIFIED" + ops_type_read = "OPS_TYPE_READ" + ops_type_delete = "OPS_TYPE_DELETE" + ops_type_create = "OPS_TYPE_CREATE" + ops_type_update = "OPS_TYPE_UPDATE" + ops_type_list = "OPS_TYPE_LIST" + + +class ZedCloudOpsCmd(BaseModel): + counter: float | None = Field(default=None, description="counter") + ops_time: dict[str, Any] | None = Field( + default=None, alias="opsTime", description="Timestamp: Operational time" + ) + + +class ZsrvErrorCode(Enum): + z_msg_error_none = "zMsgErrorNone" + z_msg_sucess = "zMsgSucess" + not_found = "NotFound" + already_exists = "AlreadyExists" + version_mismatch = "VersionMismatch" + range_error = "RangeError" + large_result = "LargeResult" + incomplete_data = "IncompleteData" + invalid_data = "InvalidData" + function_unsupported = "FunctionUnsupported" + no_memory = "NoMemory" + send_failure = "SendFailure" + timeout = "Timeout" + bad_req_body = "BadReqBody" + bad_req_param = "BadReqParam" + invalid_field_format = "InvalidFieldFormat" + url_not_found = "UrlNotFound" + api_version_not_supported = "ApiVersionNotSupported" + unauthorized = "Unauthorized" + forbidden = "Forbidden" + conflict = "Conflict" + not_modified = "NotModified" + dependency_conflict = "DependencyConflict" + json_fmt_error = "JsonFmtError" + proto_fmt_error = "ProtoFmtError" + cert_error = "CertError" + data_base_connection = "DataBaseConnection" + db_error = "DBError" + z_msg_accepted = "zMsgAccepted" + z_msg_created = "zMsgCreated" + pre_condition_failed = "PreConditionFailed" + internal_server_error = "InternalServerError" + + +class ConfigFormat(Enum): + fmt_unknown = "FmtUnknown" + raw = "RAW" + qcow = "QCOW" + qcow2 = "QCOW2" + vhd = "VHD" + vmdk = "VMDK" + ova = "OVA" + vhdx = "VHDX" + container = "CONTAINER" + iso = "ISO" + pvc = "PVC" + + +class InfoStorageHealthStatus(Enum): + storage_health_status_unspecified = "STORAGE_HEALTH_STATUS_UNSPECIFIED" + storage_health_status_healthy = "STORAGE_HEALTH_STATUS_HEALTHY" + storage_health_status_degraded_2_replica_available_replicating = ( + "STORAGE_HEALTH_STATUS_DEGRADED_2_REPLICA_AVAILABLE_REPLICATING" + ) + storage_health_status_degraded_2_replica_available_not_replicating = ( + "STORAGE_HEALTH_STATUS_DEGRADED_2_REPLICA_AVAILABLE_NOT_REPLICATING" + ) + storage_health_status_degraded_1_replica_available_replicating = ( + "STORAGE_HEALTH_STATUS_DEGRADED_1_REPLICA_AVAILABLE_REPLICATING" + ) + storage_health_status_degraded_1_replica_available_not_replicating = ( + "STORAGE_HEALTH_STATUS_DEGRADED_1_REPLICA_AVAILABLE_NOT_REPLICATING" + ) + storage_health_status_failed = "STORAGE_HEALTH_STATUS_FAILED" + + +class InfoStorageVolumePVCStatus(Enum): + storage_volume_pvc_status_unspecified = "STORAGE_VOLUME_PVC_STATUS_UNSPECIFIED" + storage_volume_pvc_status_bound = "STORAGE_VOLUME_PVC_STATUS_BOUND" + storage_volume_pvc_status_pending = "STORAGE_VOLUME_PVC_STATUS_PENDING" + storage_volume_pvc_status_available = "STORAGE_VOLUME_PVC_STATUS_AVAILABLE" + storage_volume_pvc_status_released = "STORAGE_VOLUME_PVC_STATUS_RELEASED" + storage_volume_pvc_status_failed = "STORAGE_VOLUME_PVC_STATUS_FAILED" + + +class InfoStorageVolumeReplicaStatus(Enum): + storage_volume_replica_status_unspecified = ( + "STORAGE_VOLUME_REPLICA_STATUS_UNSPECIFIED" + ) + storage_volume_replica_status_rebuilding = ( + "STORAGE_VOLUME_REPLICA_STATUS_REBUILDING" + ) + storage_volume_replica_status_online = "STORAGE_VOLUME_REPLICA_STATUS_ONLINE" + storage_volume_replica_status_failed = "STORAGE_VOLUME_REPLICA_STATUS_FAILED" + storage_volume_replica_status_offline = "STORAGE_VOLUME_REPLICA_STATUS_OFFLINE" + storage_volume_replica_status_starting = "STORAGE_VOLUME_REPLICA_STATUS_STARTING" + storage_volume_replica_status_stopping = "STORAGE_VOLUME_REPLICA_STATUS_STOPPING" + + +class InfoStorageVolumeRobustness(Enum): + storage_volume_robustness_unspecified = "STORAGE_VOLUME_ROBUSTNESS_UNSPECIFIED" + storage_volume_robustness_healthy = "STORAGE_VOLUME_ROBUSTNESS_HEALTHY" + storage_volume_robustness_degraded = "STORAGE_VOLUME_ROBUSTNESS_DEGRADED" + storage_volume_robustness_faulted = "STORAGE_VOLUME_ROBUSTNESS_FAULTED" + + +class InfoStorageVolumeState(Enum): + storage_volume_state_unspecified = "STORAGE_VOLUME_STATE_UNSPECIFIED" + storage_volume_state_creating = "STORAGE_VOLUME_STATE_CREATING" + storage_volume_state_attached = "STORAGE_VOLUME_STATE_ATTACHED" + storage_volume_state_detached = "STORAGE_VOLUME_STATE_DETACHED" + storage_volume_state_attaching = "STORAGE_VOLUME_STATE_ATTACHING" + storage_volume_state_detaching = "STORAGE_VOLUME_STATE_DETACHING" + storage_volume_state_deleting = "STORAGE_VOLUME_STATE_DELETING" + + +class ProtobufAny(BaseModel): + type_url: str | None = Field(default=None, alias="typeUrl") + value: Base64Str | None = None + + +class ProtobufNullValue(Enum): + null_value = "NULL_VALUE" + + +class Certificate(BaseModel): + cert: str | None = Field( + default=None, + description="base64 string of the parent certificate", + title="certificate details", + ) + pvt_key: str | None = Field( + default=None, alias="pvtKey", description="base64 string of the parent pvt key" + ) + public_key: str | None = Field( + default=None, alias="publicKey", description="base63 string of the public key" + ) + pass_phrase: str | None = Field( + default=None, + alias="passPhrase", + description="pass phase for the pvt key, this has to be filled if pvt key is encrypted with a pass phrase", + ) + exportable: bool | None = Field( + default=None, description="Indicates if the private key can be exported." + ) + reuse_key: bool | None = Field( + default=None, + alias="reuseKey", + description="Indicates if the same key pair will be used on certificate renewal.", + ) + encrypted_secrets: dict[str, str] | None = Field( + default=None, + alias="encryptedSecrets", + description="user encrypted secrets map", + title="secrets encryption", + ) + crypto_key: str | None = Field( + default=None, + alias="cryptoKey", + description="Crypto Key for decrypting user secret information", + ) + public_key_algorithm: str | None = Field( + default=None, + alias="publicKeyAlgorithm", + description="Public key algorithm.", + title="encryption algorithm", + ) + rsa_ecryption: RSA | None = Field(default=None, alias="rsaEcryption") + ecdsa_encryption: ECDSA | None = Field(default=None, alias="ecdsaEncryption") + valid_from: AwareDatetime | None = Field( + default=None, + alias="validFrom", + description="Certificate validatity start time", + title="certificate validity", + ) + valid_till: AwareDatetime | None = Field( + default=None, alias="validTill", description="Certificate validatity start time" + ) + san_values: SANValues | None = Field(default=None, alias="sanValues") + subject: Subject | None = None + issuer: Subject | None = None + serial_number: str | None = Field( + default=None, + alias="serialNumber", + description="Unique identifier for each Certificate generated by an Certificate Issuer. ", + ) + basic_contraints_valid: bool | None = Field( + default=None, + alias="basicContraintsValid", + description="This fields tells the basic constraints like isCA are correct.", + ) + key_usage: int | None = Field( + default=None, + alias="keyUsage", + description="Key usage extensions define the purpose of the public key contained in a certificate.", + ) + extended_key_usage: list[str] | None = Field( + default=None, + alias="extendedKeyUsage", + description="Sequence of extended key usages.", + ) + signature_algorithm: str | None = Field(default=None, alias="signatureAlgorithm") + + +class CertificateChain(BaseModel): + certificates: list[Certificate] | None = Field( + default=None, + description="List of Certificate object holds the details of certificate like cert block, encryption type, validity, subject etc", + ) + + +class DatastoreInfo(BaseModel): + id: ( + constr( + pattern=r"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + ) + | None + ) = Field( + default=None, + description="System defined universally unique Id of the datastore.", + ) + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the datastore, unique across the enterprise. Once datastore is created, name can’t be changed.", + ) + title: constr( + pattern=r"[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined title of the datastore. Title can be changed at any time.", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the datastore." + ) + revision: ObjectRevision | None = None + enterprise_id: str | None = Field(default=None, alias="enterpriseId") + ds_type: DatastoreType = Field(..., alias="dsType") + ds_fqdn: str = Field( + ..., alias="dsFQDN", description="Datastore Fully Qualified Domain Name" + ) + ds_path: str = Field( + ..., alias="dsPath", description="Datastore relative path w.r.t. Datastore root" + ) + api_key: str | None = Field(default=None, alias="apiKey") + region: str | None = Field( + default=None, + description="Datastore region - valid for AWS S3 and Azure BlobStorage", + ) + ds_status: DatastoreStatus | None = Field( + default="DATASTORE_STATUS_UNSPECIFIED", alias="dsStatus" + ) + ds_err: str | None = Field( + default=None, + alias="dsErr", + description="Datastore validation detailed error/status message", + ) + secret: DatastoreInfoSecrets | None = None + encrypted_secrets: dict[str, str] | None = Field( + default=None, + alias="encryptedSecrets", + description="Internal - Encrypted sensitive data", + ) + crypto_key: str | None = Field( + default=None, alias="cryptoKey", description="Internal - Encryption Key context" + ) + origin_type: Origin | None = Field(default="ORIGIN_UNSPECIFIED", alias="originType") + certificate_chain: CertificateChain | None = Field( + default=None, alias="certificateChain" + ) + need_clear_text: bool | None = Field( + default=None, + alias="needClearText", + description="knob for sending creds in clear text", + ) + project_access_list: list[str] | None = Field( + default=None, + alias="projectAccessList", + description="project access list of the datastore", + ) + is_managed: bool | None = Field( + default=None, + alias="isManaged", + description="Managed datastore or not. Managed datastores are created and managed by ZEDEDA.", + ) + + +class DatastoreProjectList(BaseModel): + project_details: list[ObjectDetail] | None = Field( + default=None, + alias="projectDetails", + description="List of projects which are associated with the given datastore", + ) + total_count: int | None = Field( + default=None, alias="totalCount", description="total number of records" + ) + next: Cursor | None = None + + +class Datastores(BaseModel): + summary_by_type: Summary | None = Field(default=None, alias="summaryByType") + list_: list[DatastoreInfo] | None = Field( + default=None, alias="list", description="List of filtered Datastore records" + ) + summary_by_category: Summary | None = Field(default=None, alias="summaryByCategory") + summary_by_origin: Summary | None = Field(default=None, alias="summaryByOrigin") + next: Cursor | None = None + + +class DeviceEntity(BaseModel): + entity: Entity | None = "ENTITY_UNSPECIFIED" + entity_id: str | None = Field(default=None, alias="entityId") + entity_name: str | None = Field(default=None, alias="entityName") + + +class DeviceError(BaseModel): + description: str = Field(..., description="Description of the error") + severity: Severity + timestamp: dict[str, Any] = Field( + ..., description="Timestamp at which error had occurred" + ) + entities: list[DeviceEntity] = Field( + ..., description="objects referenced by the description or retry_condition" + ) + retry_condition: str | None = Field( + default=None, alias="retryCondition", description="condition for retry" + ) + + +class EventQueryResponseItem(BaseModel): + user: str | None = Field(default=None, description="User name") + project: str | None = Field(default=None, description="project name") + device: str | None = Field(default=None, description="device name") + instance: str | None = Field(default=None, description="instance name") + severity: str | None = Field( + default=None, description="severity: FIXME: should be ENUM" + ) + description: str | None = Field(default=None, description="Event description") + timestamp: dict[str, Any] | None = Field( + default=None, description="event timestamp" + ) + source: EventSource | None = "EVENT_SOURCE_UNSPECIFIED" + resource: str | None = Field(default=None, description="Event resources") + event_type: str | None = Field( + default=None, alias="eventType", description="Event type" + ) + tags: list[str] | None = Field(default=None, description="Event tags") + resource_name: str | None = Field( + default=None, alias="resourceName", description="Event resources" + ) + json_data: dict[str, Any] | None = Field( + default=None, alias="jsonData", description="Event resources" + ) + cluster_instance: str | None = Field( + default=None, alias="clusterInstance", description="clusterInstance name" + ) + + +class ImageConfig(BaseModel): + id: ( + constr( + pattern=r"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + ) + | None + ) = Field( + default=None, description="System defined universally unique Id of the image." + ) + name: constr( + pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined name of the image, unique across the enterprise. Once image is created, name can’t be changed.", + ) + title: constr( + pattern=r"[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+", min_length=3, max_length=256 + ) = Field( + ..., + description="User defined title of the image. Title can be changed at any time.", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the image." + ) + revision: ObjectRevision | None = None + image_format: ConfigFormat = Field(..., alias="imageFormat") + image_rel_url: str | None = Field( + default=None, + alias="imageRelUrl", + description="Image relative path w.r.t. Datastore", + ) + image_sha256: str | None = Field( + default=None, alias="imageSha256", description="Image checksum in SHA256 format" + ) + image_version: str | None = Field( + default=None, alias="imageVersion", description="system defined info" + ) + image_arch: ModelArchType = Field(..., alias="imageArch") + image_status: ImageStatus | None = Field( + default="IMAGE_STATUS_UNSPECIFIED", alias="imageStatus" + ) + image_type: ImageType = Field(..., alias="imageType") + datastore_id: constr( + pattern=r"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + ) = Field( + ..., + alias="datastoreId", + description="Datastore Id where image binary is located.", + title="datastoreId will be deprecated", + ) + image_size_bytes: str | None = Field( + default=None, alias="imageSizeBytes", description="Image size in KBytes." + ) + image_error: str | None = Field( + default=None, + alias="imageError", + description="Image upload/uplink detailed error/status message", + ) + image_local: str | None = Field( + default=None, alias="imageLocal", description="Internal image location." + ) + origin_type: Origin | None = Field(default="ORIGIN_UNSPECIFIED", alias="originType") + project_access_list: list[str] | None = Field( + default=None, + alias="projectAccessList", + description="project access list of the image", + ) + datastore_id_list: list[str] | None = Field( + default=None, + alias="datastoreIdList", + description="datastore Id list where image binary is located.", + ) + is_lts: bool | None = Field( + default=None, + alias="isLTS", + description="flag to indicate eve image is LTS or not", + ) + + +class ImageProjectList(BaseModel): + project_details: list[ObjectDetail] | None = Field( + default=None, + alias="projectDetails", + description="List of projects which are are common among given list of images", + ) + total_count: int | None = Field( + default=None, alias="totalCount", description="total number of records" + ) + next: Cursor | None = None + + +class Images(BaseModel): + terse: Summary | None = None + summary_by_image_status: Summary | None = Field( + default=None, alias="summaryByImageStatus" + ) + summary_by_image_arch: Summary | None = Field( + default=None, alias="summaryByImageArch" + ) + summary_by_image_type: Summary | None = Field( + default=None, alias="summaryByImageType" + ) + summary_by_image_format: Summary | None = Field( + default=None, alias="summaryByImageFormat" + ) + summary_by_origin: Summary | None = Field(default=None, alias="summaryByOrigin") + list_: list[ImageConfig] | None = Field( + default=None, alias="list", description="List of filtered Image records" + ) + next: Cursor | None = None + + +class Status(BaseModel): + code: StatusCode | None = "STATUS_CODE_UNSPECIFIED" + description: Description | None = None + + +class VolInstConfig(BaseModel): + id: ( + constr( + pattern=r"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + ) + | None + ) = Field( + default=None, + description="System defined universally unique Id of the volume instance.", + ) + name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined name of the volume instance, unique across the enterprise. Once object is created, name can’t be changed.", + ) + title: ( + constr(pattern=r"[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined title of the volume instance. Title can be changed at any time.", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the volume instance." + ) + revision: ObjectRevision | None = None + project_id: str | None = Field( + default=None, + alias="projectId", + description="id of the project in which the volume instance is created", + ) + type: VolumeInstanceType | None = "VOLUME_INSTANCE_TYPE_UNSPECIFIED" + device_id: str | None = Field( + default=None, + alias="deviceId", + description="id of the device on which volume instance is created", + ) + multiattach: bool | None = Field( + default=None, + description="flag to enable the volume to be attached to multiple app instances", + ) + cleartext: bool | None = Field( + default=None, + description="flag to keep the contents of the volume unencrypted (in clear text)", + ) + accessmode: VolumeInstanceAccessMode | None = "VOLUME_INSTANCE_ACCESS_MODE_INVALID" + size_bytes: int | None = Field( + default=None, alias="sizeBytes", description="size of volume" + ) + image: str | None = Field(default=None, description="name of the image") + implicit: bool | None = Field( + default=None, description="flag to create implicit volumes" + ) + content_tree_id: str | None = Field( + default=None, alias="contentTreeId", description="content tree ID" + ) + label: str | None = Field(default=None, description="label") + purge: ZedCloudOpsCmd | None = None + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + patchartifactvolume: str | None = Field( + default=None, + description="flag to indicate whether volume instance is created for patch envelope external artifact", + ) + edge_node_cluster: VolInstEdgeNodeCluster | None = Field( + default=None, alias="edgeNodeCluster" + ) + + +class VolInstConfigUpdateHttpRequest(BaseModel): + id: ( + constr( + pattern=r"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + ) + | None + ) = Field( + default=None, + description="System defined universally unique Id of the volume instance.", + ) + name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined name of the volume instance, unique across the enterprise. Once object is created, name can’t be changed.", + ) + title: ( + constr(pattern=r"[a-zA-Z0-9]+[a-zA-Z0-9!-~ ]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined title of the volume instance. Title can be changed at any time.", + ) + description: constr(max_length=256) | None = Field( + default=None, description="Detailed description of the volume instance." + ) + revision: ObjectRevision | None = None + project_id: str | None = Field( + default=None, + alias="projectId", + description="id of the project in which the volume instance is created", + ) + type: VolumeInstanceType | None = "VOLUME_INSTANCE_TYPE_UNSPECIFIED" + device_id: str | None = Field( + default=None, + alias="deviceId", + description="id of the device on which volume instance is created", + ) + multiattach: bool | None = Field( + default=None, + description="flag to enable the volume to be attached to multiple app instances", + ) + cleartext: bool | None = Field( + default=None, + description="flag to keep the contents of the volume unencrypted (in clear text)", + ) + accessmode: VolumeInstanceAccessMode | None = "VOLUME_INSTANCE_ACCESS_MODE_INVALID" + size_bytes: int | None = Field( + default=None, alias="sizeBytes", description="size of volume" + ) + image: str | None = Field(default=None, description="name of the image") + implicit: bool | None = Field( + default=None, description="flag to create implicit volumes" + ) + content_tree_id: str | None = Field( + default=None, alias="contentTreeId", description="content tree ID" + ) + label: str | None = Field(default=None, description="label") + purge: ZedCloudOpsCmd | None = None + tags: dict[str, str] | None = Field( + default=None, + description="Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.", + ) + patchartifactvolume: str | None = Field( + default=None, + description="flag to indicate whether volume instance is created for patch envelope external artifact", + ) + edge_node_cluster: VolInstEdgeNodeCluster | None = Field( + default=None, alias="edgeNodeCluster" + ) + + +class VolInstShortConfig(BaseModel): + id: str | None = None + name: str | None = None + type: VolumeInstanceType | None = "VOLUME_INSTANCE_TYPE_UNSPECIFIED" + device_id: str | None = Field(default=None, alias="deviceId") + project_id: str | None = Field(default=None, alias="projectId") + + +class VolumeInstanceReplicaStatus(BaseModel): + node_name: str | None = Field(default=None, alias="nodeName") + rebuild_progress_percentage: int | None = Field( + default=None, alias="rebuildProgressPercentage" + ) + status: InfoStorageVolumeReplicaStatus | None = ( + "STORAGE_VOLUME_REPLICA_STATUS_UNSPECIFIED" + ) + + +class ZsrvError(BaseModel): + ec: ZsrvErrorCode | None = "zMsgErrorNone" + location: str | None = Field(default=None, title="Ignore: Internal field only") + details: str | None = Field( + default=None, title="Field captures string description of details" + ) + + +class ZsrvResponse(BaseModel): + operation_type: ZcOpsType | None = Field( + default="OPS_TYPE_UNSPECIFIED", alias="operationType" + ) + operation_status: ZcOpsStatus | None = Field( + default="OPS_STATUS_UNSPECIFIED", alias="operationStatus" + ) + object_kind: str | None = Field( + default=None, + alias="objectKind", + title="zedcloud object kind on which the operation was performed", + ) + object_id: str | None = Field( + default=None, + alias="objectId", + title="Unique value identifies the object that was operated on", + ) + object_name: str | None = Field( + default=None, alias="objectName", title="name of the object" + ) + object_revision: str | None = Field( + default=None, + alias="objectRevision", + title="object revision post the operation, note Read operation\ndoesn't change the revision", + ) + object_type: ObjectType | None = Field( + default="OBJECT_TYPE_UNSPECIFIED", alias="objectType" + ) + operation_time: str | None = Field( + default=None, alias="operationTime", title="time of operation" + ) + start_time: str | None = Field( + default=None, alias="startTime", title="total time taken by operations" + ) + end_time: str | None = Field(default=None, alias="endTime") + user: str | None = Field( + default=None, title="the operation is performed on behalf of this user" + ) + http_status_code: int | None = Field( + default=None, alias="httpStatusCode", title="http response" + ) + http_status_msg: str | None = Field( + default=None, alias="httpStatusMsg", title="summary of the error in text format" + ) + job_id: str | None = Field( + default=None, alias="jobId", title="for tracking asynchronous tasks" + ) + error: list[ZsrvError] | None = Field( + default=None, + title="one or more errors will be set if the operation failed\ni.e. httpStatusCode != 2xx", + ) + + +class GooglerpcStatus(BaseModel): + code: int | None = None + message: str | None = None + details: list[ProtobufAny] | None = None + + +class Artifact(BaseModel): + id: constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+a") | None = Field( + default=None, description="system generated unique id for an artifact" + ) + name: ( + constr(pattern=r"[a-zA-Z0-9][a-zA-Z0-9_.-]+", min_length=3, max_length=256) + | None + ) = Field( + default=None, + description="User defined name of the artifact, unique across the enterprise. Once object is created, name can’t be changed", + ) + status: Status | None = None + signed_url: str | None = Field( + default=None, + alias="signedUrl", + description="generated signed url for an artifact", + ) + ttl: float | None = Field(default=None, description="TTL for the URL") + + +class ArtifactList(BaseModel): + summary: Summary | None = None + list_: list[Artifact] | None = Field( + default=None, alias="list", description="Artifact Key list" + ) + next: Cursor | None = None + + +class BlobInfo(BaseModel): + sha256: str | None = None + resource: VolInstResource | None = None + usage: DeviceObjectUsageInfo | None = None + state: SWState | None = Field(default="SW_STATE_UNSPECIFIED", alias="State") + progress_percentage: int | None = Field(default=None, alias="progressPercentage") + err_info: DeviceError | None = Field(default=None, alias="errInfo") + + +class ClusterVolInstanceStatus(BaseModel): + state: InfoStorageVolumeState | None = "STORAGE_VOLUME_STATE_UNSPECIFIED" + replicas: list[VolumeInstanceReplicaStatus] | None = None + attachment_state: InfoStorageVolumePVCStatus | None = Field( + default="STORAGE_VOLUME_PVC_STATUS_UNSPECIFIED", alias="attachmentState" + ) + creation_time: AwareDatetime | None = Field(default=None, alias="creationTime") + size: str | None = None + actual_size: str | None = Field(default=None, alias="actualSize") + robustness: InfoStorageVolumeRobustness | None = ( + "STORAGE_VOLUME_ROBUSTNESS_UNSPECIFIED" + ) + robustness_substate: InfoStorageHealthStatus | None = Field( + default="STORAGE_HEALTH_STATUS_UNSPECIFIED", alias="robustnessSubstate" + ) + + +class EventQueryResponse(BaseModel): + list_: list[EventQueryResponseItem] = Field( + ..., alias="list", description="Event Query response list" + ) + next: Cursor + summary: Summary | None = None + + +class VolInstList(BaseModel): + list_: list[VolInstShortConfig] | None = Field(default=None, alias="list") + cfg_list: list[VolInstConfig] | None = Field(default=None, alias="cfgList") + summary_by_type: Summary | None = Field(default=None, alias="summaryByType") + next: Cursor | None = None + + +class VolInstStatusMsg(BaseModel): + id: str | None = None + name: str | None = None + device_id: str | None = Field( + default=None, alias="deviceId", title="device on which this volume is located" + ) + run_state: RunState | None = Field( + default="RUN_STATE_UNSPECIFIED", alias="runState" + ) + project_id: str | None = Field(default=None, alias="projectId") + progress_percentage: int | None = Field(default=None, alias="progressPercentage") + usage: DeviceObjectUsageInfo | None = None + resource: VolInstResource | None = None + sha256: str | None = None + type: VolumeInstanceType | None = "VOLUME_INSTANCE_TYPE_UNSPECIFIED" + device_state: SWState | None = Field( + default="SW_STATE_UNSPECIFIED", alias="deviceState" + ) + blobs: list[BlobInfo] | None = None + err_info: list[DeviceError] | None = Field(default=None, alias="errInfo") + raw_status: str | None = Field(default=None, alias="rawStatus") + cluster_vol_instance_status: ClusterVolInstanceStatus | None = Field( + default=None, alias="clusterVolInstanceStatus" + ) + + +class VolInstStatusSummaryMsg(BaseModel): + id: str | None = None + name: str | None = None + device_id: str | None = Field(default=None, alias="deviceId") + run_state: RunState | None = Field( + default="RUN_STATE_UNSPECIFIED", alias="runState" + ) + create_time: AwareDatetime | None = Field(default=None, alias="createTime") + project_id: str | None = Field(default=None, alias="projectId") + type: VolumeInstanceType | None = "VOLUME_INSTANCE_TYPE_UNSPECIFIED" + device_state: SWState | None = Field( + default="SW_STATE_UNSPECIFIED", alias="deviceState" + ) + progress_percentage: int | None = Field(default=None, alias="progressPercentage") + device_name: str | None = Field(default=None, alias="deviceName") + project_name: str | None = Field(default=None, alias="projectName") + edge_node_cluster_id: str | None = Field(default=None, alias="edgeNodeClusterID") + cluster_vol_instance_status: ClusterVolInstanceStatus | None = Field( + default=None, alias="clusterVolInstanceStatus" + ) + + +class VolInstStatusListMsg(BaseModel): + list_: list[VolInstStatusSummaryMsg] | None = Field(default=None, alias="list") + summary_by_state: Summary | None = Field(default=None, alias="summaryByState") + summary_by_type: Summary | None = Field(default=None, alias="summaryByType") + total_count: int | None = Field(default=None, alias="totalCount") + next: Cursor | None = None diff --git a/packages/zedcloud/src/zedcloud/_generated/services/__init__.py b/packages/zedcloud/src/zedcloud/_generated/services/__init__.py new file mode 100644 index 0000000..b912c2a --- /dev/null +++ b/packages/zedcloud/src/zedcloud/_generated/services/__init__.py @@ -0,0 +1 @@ +"""Generated service wrappers per Zedcloud service.""" diff --git a/packages/zedcloud/src/zedcloud/_generated/services/app_profiles.py b/packages/zedcloud/src/zedcloud/_generated/services/app_profiles.py new file mode 100644 index 0000000..0d0ae54 --- /dev/null +++ b/packages/zedcloud/src/zedcloud/_generated/services/app_profiles.py @@ -0,0 +1,442 @@ +# Generated by scripts/generate_from_openapi.py — namespace "app_profiles" +# Do not edit by hand. + +from __future__ import annotations + +from typing import Any + +from zedcloud.services.base import BaseService +from zedcloud._generated.models.app_profiles import ( + AppProfile, + AppProfileRead, + AppProfileVersionListResp, + AppProfiles, + AssetGroup, + AssetGroupList, + AssetGroupRead, + ProfileDeployment, + ProfileDeploymentList, + ProfileDeploymentResourceDetailedStatusResp, + ZsrvResponse, +) + + +class AppProfilesService(BaseService): + """Auto-generated client for ZEDEDA App Profiles Service.""" + + def query_app_profiles( + self, + summary: bool | None = None, + filter_name_pattern: str | None = None, + filter_id: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + fields: list[str] | None = None, + request_id: str | None = None, + ) -> AppProfiles: + """Query app profiles + + ``GET /v1/appprofiles`` + operationId: ``AppProfileService_QueryAppProfiles`` + """ + path = "/v1/appprofiles" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if filter_name_pattern is not None: + params["filter.namePattern"] = filter_name_pattern + if filter_id is not None: + params["filter.id"] = filter_id + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if fields is not None: + params["fields"] = fields + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AppProfiles) + + def create_app_profile(self, body: AppProfile | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Create app profile + + ``POST /v1/appprofiles`` + operationId: ``AppProfileService_CreateAppProfile`` + """ + path = "/v1/appprofiles" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_app_profile(self, id: str, request_id: str | None = None) -> AppProfileRead: + """Get app profile + + ``GET /v1/appprofiles/id/{id}`` + operationId: ``AppProfileService_GetAppProfile`` + """ + path = f"/v1/appprofiles/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AppProfileRead) + + def delete_app_profile(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Delete app profile + + ``DELETE /v1/appprofiles/id/{id}`` + operationId: ``AppProfileService_DeleteAppProfile`` + """ + path = f"/v1/appprofiles/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def update_app_profile(self, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """Update app profile + + ``PUT /v1/appprofiles/id/{id}`` + operationId: ``AppProfileService_UpdateAppProfile`` + """ + path = f"/v1/appprofiles/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def query_app_profile_revision_by_id( + self, + id: str, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + name: str | None = None, + request_id: str | None = None, + ) -> AppProfileVersionListResp: + """Query app profile versions by app profile id + + ``GET /v1/appprofiles/id/{id}/version`` + operationId: ``AppProfileService_QueryAppProfileRevisionById`` + """ + path = f"/v1/appprofiles/id/{id}/version" + params: dict[str, Any] = {} + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if name is not None: + params["name"] = name + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AppProfileVersionListResp) + + def get_app_profile_by_name(self, name: str, request_id: str | None = None) -> AppProfileRead: + """Get app profile by name + + ``GET /v1/appprofiles/name/{name}`` + operationId: ``AppProfileService_GetAppProfileByName`` + """ + path = f"/v1/appprofiles/name/{name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AppProfileRead) + + def query_app_profile_revision_by_name( + self, + name: str, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + id: str | None = None, + request_id: str | None = None, + ) -> AppProfileVersionListResp: + """Query app profile versions by app profile name + + ``GET /v1/appprofiles/name/{name}/version`` + operationId: ``AppProfileService_QueryAppProfileRevisionByName`` + """ + path = f"/v1/appprofiles/name/{name}/version" + params: dict[str, Any] = {} + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if id is not None: + params["id"] = id + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AppProfileVersionListResp) + + def query_asset_groups( + self, + project_name_pattern: str | None = None, + name_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + summary: bool | None = None, + request_id: str | None = None, + ) -> AssetGroupList: + """Query asset groups + + ``GET /v1/assetgroups`` + operationId: ``AssetGroupService_QueryAssetGroups`` + """ + path = "/v1/assetgroups" + params: dict[str, Any] = {} + if project_name_pattern is not None: + params["projectNamePattern"] = project_name_pattern + if name_pattern is not None: + params["namePattern"] = name_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if summary is not None: + params["summary"] = summary + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AssetGroupList) + + def create_asset_group(self, body: AssetGroup | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Create asset group + + ``POST /v1/assetgroups`` + operationId: ``AssetGroupService_CreateAssetGroup`` + """ + path = "/v1/assetgroups" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_asset_group(self, id: str, request_id: str | None = None) -> AssetGroupRead: + """Get asset group + + ``GET /v1/assetgroups/id/{id}`` + operationId: ``AssetGroupService_GetAssetGroup`` + """ + path = f"/v1/assetgroups/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AssetGroupRead) + + def delete_asset_group(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Delete asset group + + ``DELETE /v1/assetgroups/id/{id}`` + operationId: ``AssetGroupService_DeleteAssetGroup`` + """ + path = f"/v1/assetgroups/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def update_asset_group(self, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """Update asset group + + ``PUT /v1/assetgroups/id/{id}`` + operationId: ``AssetGroupService_UpdateAssetGroup`` + """ + path = f"/v1/assetgroups/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_asset_group_by_name(self, name: str, request_id: str | None = None) -> AssetGroupRead: + """Get asset group by name + + ``GET /v1/assetgroups/name/{name}`` + operationId: ``AssetGroupService_GetAssetGroupByName`` + """ + path = f"/v1/assetgroups/name/{name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AssetGroupRead) + + def query_profile_deployments( + self, + filter_profile_deployment_id: str | None = None, + filter_name_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> ProfileDeploymentList: + """Query profile deployments + + ``GET /v1/profiledeployments`` + operationId: ``ProfileDeploymentService_QueryProfileDeployments`` + """ + path = "/v1/profiledeployments" + params: dict[str, Any] = {} + if filter_profile_deployment_id is not None: + params["filter.profileDeploymentId"] = filter_profile_deployment_id + if filter_name_pattern is not None: + params["filter.namePattern"] = filter_name_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ProfileDeploymentList) + + def create_profile_deployment(self, body: ProfileDeployment | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Create profile deployment + + ``POST /v1/profiledeployments`` + operationId: ``ProfileDeploymentService_CreateProfileDeployment`` + """ + path = "/v1/profiledeployments" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_profile_deployment(self, id: str, request_id: str | None = None) -> ProfileDeployment: + """Get profile deployment + + ``GET /v1/profiledeployments/id/{id}`` + operationId: ``ProfileDeploymentService_GetProfileDeployment`` + """ + path = f"/v1/profiledeployments/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ProfileDeployment) + + def delete_profile_deployment(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Delete profile deployment + + ``DELETE /v1/profiledeployments/id/{id}`` + operationId: ``ProfileDeploymentService_DeleteProfileDeployment`` + """ + path = f"/v1/profiledeployments/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def update_profile_deployment(self, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """Update profile deployment + + ``PUT /v1/profiledeployments/id/{id}`` + operationId: ``ProfileDeploymentService_UpdateProfileDeployment`` + """ + path = f"/v1/profiledeployments/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def query_profile_deployment_resource_status( + self, + id: str, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> ProfileDeploymentResourceDetailedStatusResp: + """Query profile deployments resource status + + ``GET /v1/profiledeployments/id/{id}/resourcestatus`` + operationId: ``ProfileDeploymentService_QueryProfileDeploymentResourceStatus`` + """ + path = f"/v1/profiledeployments/id/{id}/resourcestatus" + params: dict[str, Any] = {} + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ProfileDeploymentResourceDetailedStatusResp) + + def get_profile_deployment_by_name(self, name: str, request_id: str | None = None) -> ProfileDeployment: + """Get profile deployment by name + + ``GET /v1/profiledeployments/name/{name}`` + operationId: ``ProfileDeploymentService_GetProfileDeploymentByName`` + """ + path = f"/v1/profiledeployments/name/{name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ProfileDeployment) diff --git a/packages/zedcloud/src/zedcloud/_generated/services/apps.py b/packages/zedcloud/src/zedcloud/_generated/services/apps.py new file mode 100644 index 0000000..1ff286c --- /dev/null +++ b/packages/zedcloud/src/zedcloud/_generated/services/apps.py @@ -0,0 +1,2209 @@ +# Generated by scripts/generate_from_openapi.py — namespace "apps" +# Do not edit by hand. + +from __future__ import annotations + +from typing import Any + +from zedcloud.services.base import BaseService +from zedcloud._generated.models.apps import ( + App, + AppHttpRequest, + AppInstConfigStatusList, + AppInstSnapshotsList, + AppInstStatusListMsg, + AppInstStatusMsg, + AppInstance, + AppInstanceLogsResponse, + AppInstanceSnapshot, + AppInstanceSnapshotState, + AppInstanceUpdateHttpRequest, + AppInstances, + AppProjectList, + AppPublicApps, + Apps, + ClassificationResponse, + EventQueryResponse, + MetricQueryResponse, + ObjectTagsList, + OpaqueAppInstanceStatus, + PatchEnvelope, + PatchEnvelopeList, + PatchReferenceUpdateConfig, + PatchStatusListMsg, + TopTalkersResponse, + ZsrvResponse, +) + + +class AppsService(BaseService): + """Auto-generated client for ZEDEDA Edge Application Service.""" + + def query_beta_edge_application_bundles( + self, + name_pattern: str | None = None, + origin_type: int | None = None, + category: str | None = None, + summary: bool | None = None, + app_type: str | None = None, + deployment_type: str | None = None, + app_category: list[str] | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + title_pattern: str | None = None, + match_any_tag: bool | None = None, + request_id: str | None = None, + ) -> AppPublicApps: + """Query edge application bundles + + ``GET /beta/apps`` + operationId: ``EdgeApplicationConfiguration_QueryBetaEdgeApplicationBundles`` + """ + path = "/beta/apps" + params: dict[str, Any] = {} + if name_pattern is not None: + params["namePattern"] = name_pattern + if origin_type is not None: + params["originType"] = origin_type + if category is not None: + params["category"] = category + if summary is not None: + params["summary"] = summary + if app_type is not None: + params["appType"] = app_type + if deployment_type is not None: + params["deploymentType"] = deployment_type + if app_category is not None: + params["appCategory"] = app_category + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if title_pattern is not None: + params["titlePattern"] = title_pattern + if match_any_tag is not None: + params["matchAnyTag"] = match_any_tag + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AppPublicApps) + + def query_edge_application_bundles( + self, + name_pattern: str | None = None, + origin_type: int | None = None, + category: str | None = None, + summary: bool | None = None, + app_type: str | None = None, + deployment_type: str | None = None, + app_category: list[str] | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + title_pattern: str | None = None, + match_any_tag: bool | None = None, + request_id: str | None = None, + ) -> Apps: + """Query edge application bundles + + ``GET /v1/apps`` + operationId: ``EdgeApplicationConfiguration_QueryEdgeApplicationBundles`` + """ + path = "/v1/apps" + params: dict[str, Any] = {} + if name_pattern is not None: + params["namePattern"] = name_pattern + if origin_type is not None: + params["originType"] = origin_type + if category is not None: + params["category"] = category + if summary is not None: + params["summary"] = summary + if app_type is not None: + params["appType"] = app_type + if deployment_type is not None: + params["deploymentType"] = deployment_type + if app_category is not None: + params["appCategory"] = app_category + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if title_pattern is not None: + params["titlePattern"] = title_pattern + if match_any_tag is not None: + params["matchAnyTag"] = match_any_tag + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=Apps) + + def create_edge_application_bundle(self, body: App | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Create edge application bundle + + ``POST /v1/apps`` + operationId: ``EdgeApplicationConfiguration_CreateEdgeApplicationBundle`` + """ + path = "/v1/apps" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def query_global_edge_application_bundles( + self, + name_pattern: str | None = None, + origin_type: int | None = None, + category: str | None = None, + summary: bool | None = None, + app_type: str | None = None, + deployment_type: str | None = None, + app_category: list[str] | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + title_pattern: str | None = None, + match_any_tag: bool | None = None, + request_id: str | None = None, + ) -> Apps: + """Query global edge application bundles + + ``GET /v1/apps/global`` + operationId: ``EdgeApplicationConfiguration_QueryGlobalEdgeApplicationBundles`` + """ + path = "/v1/apps/global" + params: dict[str, Any] = {} + if name_pattern is not None: + params["namePattern"] = name_pattern + if origin_type is not None: + params["originType"] = origin_type + if category is not None: + params["category"] = category + if summary is not None: + params["summary"] = summary + if app_type is not None: + params["appType"] = app_type + if deployment_type is not None: + params["deploymentType"] = deployment_type + if app_category is not None: + params["appCategory"] = app_category + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if title_pattern is not None: + params["titlePattern"] = title_pattern + if match_any_tag is not None: + params["matchAnyTag"] = match_any_tag + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=Apps) + + def get_global_edge_application_bundle(self, id: str, request_id: str | None = None) -> App: + """Get global edge application bundle + + ``GET /v1/apps/global/id/{id}`` + operationId: ``EdgeApplicationConfiguration_GetGlobalEdgeApplicationBundle`` + """ + path = f"/v1/apps/global/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=App) + + def get_global_edge_application_bundle_by_name(self, name: str, request_id: str | None = None) -> App: + """Get global edge application bundle + + ``GET /v1/apps/global/name/{name}`` + operationId: ``EdgeApplicationConfiguration_GetGlobalEdgeApplicationBundleByName`` + """ + path = f"/v1/apps/global/name/{name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=App) + + def get_edge_application_bundle(self, id: str, request_id: str | None = None) -> App: + """Get edge application bundle + + ``GET /v1/apps/id/{id}`` + operationId: ``EdgeApplicationConfiguration_GetEdgeApplicationBundle`` + """ + path = f"/v1/apps/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=App) + + def delete_edge_application_bundle(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Delete edge application bundle + + ``DELETE /v1/apps/id/{id}`` + operationId: ``EdgeApplicationConfiguration_DeleteEdgeApplicationBundle`` + """ + path = f"/v1/apps/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def update_edge_application_bundle(self, id: str, body: AppHttpRequest | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Update edge application bundle + + ``PUT /v1/apps/id/{id}`` + operationId: ``EdgeApplicationConfiguration_UpdateEdgeApplicationBundle`` + """ + path = f"/v1/apps/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def query_edge_application_bundle_project_list( + self, + id: str, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> AppProjectList: + """Query the project access list of an edge application bundle + + ``GET /v1/apps/id/{id}/projects`` + operationId: ``EdgeApplicationConfiguration_QueryEdgeApplicationBundleProjectList`` + """ + path = f"/v1/apps/id/{id}/projects" + params: dict[str, Any] = {} + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AppProjectList) + + def query_edge_application_instances( + self, + project: str | None = None, + bundle: str | None = None, + device: str | None = None, + name_pattern: str | None = None, + app_type: int | None = None, + deployment_type: str | None = None, + project_name_pattern: str | None = None, + device_name_pattern: str | None = None, + summary: bool | None = None, + title_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + fields: list[str] | None = None, + request_id: str | None = None, + ) -> AppInstances: + """Query edge application instances + + ``GET /v1/apps/instances`` + operationId: ``EdgeApplicationInstanceConfiguration_QueryEdgeApplicationInstances`` + """ + path = "/v1/apps/instances" + params: dict[str, Any] = {} + if project is not None: + params["project"] = project + if bundle is not None: + params["bundle"] = bundle + if device is not None: + params["device"] = device + if name_pattern is not None: + params["namePattern"] = name_pattern + if app_type is not None: + params["appType"] = app_type + if deployment_type is not None: + params["deploymentType"] = deployment_type + if project_name_pattern is not None: + params["projectNamePattern"] = project_name_pattern + if device_name_pattern is not None: + params["deviceNamePattern"] = device_name_pattern + if summary is not None: + params["summary"] = summary + if title_pattern is not None: + params["titlePattern"] = title_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if fields is not None: + params["fields"] = fields + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AppInstances) + + def create_edge_application_instance(self, body: AppInstance | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Create edge application instance + + ``POST /v1/apps/instances`` + operationId: ``EdgeApplicationInstanceConfiguration_CreateEdgeApplicationInstance`` + """ + path = "/v1/apps/instances" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_app_instance_snapshot(self, app_instance_id: str, name: str, request_id: str | None = None) -> AppInstanceSnapshot: + """Query Application instance snapshot + + ``GET /v1/apps/instances/id/{appInstanceId}/snapshot/name/{name}`` + operationId: ``EdgeApplicationInstanceStatus_GetAppInstanceSnapshot`` + """ + path = f"/v1/apps/instances/id/{app_instance_id}/snapshot/name/{name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AppInstanceSnapshot) + + def edge_application_instance_status__delete_app_instance_snapshot(self, app_instance_id: str, name: str, request_id: str | None = None) -> ZsrvResponse: + """Delete Application instance snapshot + + ``DELETE /v1/apps/instances/id/{appInstanceId}/snapshot/name/{name}`` + operationId: ``EdgeApplicationInstanceStatus_DeleteAppInstanceSnapshot`` + """ + path = f"/v1/apps/instances/id/{app_instance_id}/snapshot/name/{name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def get_edge_application_instance(self, id: str, request_id: str | None = None) -> AppInstance: + """Get edge application instance + + ``GET /v1/apps/instances/id/{id}`` + operationId: ``EdgeApplicationInstanceConfiguration_GetEdgeApplicationInstance`` + """ + path = f"/v1/apps/instances/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AppInstance) + + def delete_edge_application_instance(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Delete edge application instance + + ``DELETE /v1/apps/instances/id/{id}`` + operationId: ``EdgeApplicationInstanceConfiguration_DeleteEdgeApplicationInstance`` + """ + path = f"/v1/apps/instances/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def update_edge_application_instance( + self, + id: str, + body: AppInstanceUpdateHttpRequest | dict[str, Any], + request_id: str | None = None, + ) -> ZsrvResponse: + """Update edge application instance + + ``PUT /v1/apps/instances/id/{id}`` + operationId: ``EdgeApplicationInstanceConfiguration_UpdateEdgeApplicationInstance`` + """ + path = f"/v1/apps/instances/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def activate_edge_application_instance(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Activate edge application instance + + ``PUT /v1/apps/instances/id/{id}/activate`` + operationId: ``EdgeApplicationInstanceConfiguration_ActivateEdgeApplicationInstance`` + """ + path = f"/v1/apps/instances/id/{id}/activate" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def connect_to_edge_application_instance(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Connect to edge application instance console + + ``PUT /v1/apps/instances/id/{id}/console/remote`` + operationId: ``EdgeApplicationInstanceConfiguration_ConnectToEdgeApplicationInstance`` + """ + path = f"/v1/apps/instances/id/{id}/console/remote" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def de_activate_edge_application_instance(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Deactivate edge application instance + + ``PUT /v1/apps/instances/id/{id}/deactivate`` + operationId: ``EdgeApplicationInstanceConfiguration_DeActivateEdgeApplicationInstance`` + """ + path = f"/v1/apps/instances/id/{id}/deactivate" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def get_edge_application_instance_traffic_flows( + self, + id: str, + name: str | None = None, + start_time: str | None = None, + end_time: str | None = None, + levels: list[str] | None = None, + enterprise_id: str | None = None, + metric: int | None = None, + direction: int | None = None, + aclid: int | None = None, + action: str | None = None, + proto: int | None = None, + remoteip: str | None = None, + remoteport: int | None = None, + fqdn: str | None = None, + request_id: str | None = None, + ) -> ClassificationResponse: + """Get edge application instance network traffic flow log + + ``GET /v1/apps/instances/id/{id}/flowlog/classification`` + operationId: ``EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceTrafficFlows`` + """ + path = f"/v1/apps/instances/id/{id}/flowlog/classification" + params: dict[str, Any] = {} + if name is not None: + params["name"] = name + if start_time is not None: + params["startTime"] = start_time + if end_time is not None: + params["endTime"] = end_time + if levels is not None: + params["levels"] = levels + if enterprise_id is not None: + params["enterpriseId"] = enterprise_id + if metric is not None: + params["metric"] = metric + if direction is not None: + params["direction"] = direction + if aclid is not None: + params["aclid"] = aclid + if action is not None: + params["action"] = action + if proto is not None: + params["proto"] = proto + if remoteip is not None: + params["remoteip"] = remoteip + if remoteport is not None: + params["remoteport"] = remoteport + if fqdn is not None: + params["fqdn"] = fqdn + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ClassificationResponse) + + def get_edge_application_instance_top_talkers( + self, + id: str, + name: str | None = None, + start_time: str | None = None, + end_time: str | None = None, + metric_type: str | None = None, + enterprise_id: str | None = None, + cursor_page_token: str | None = None, + cursor_order_by: list[str] | None = None, + cursor_page_num: float | None = None, + cursor_page_size: float | None = None, + cursor_total_pages: float | None = None, + request_id: str | None = None, + ) -> TopTalkersResponse: + """Get edge application instance top talkers of the network traffic flows + + ``GET /v1/apps/instances/id/{id}/flowlog/toptalkers`` + operationId: ``EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceTopTalkers`` + """ + path = f"/v1/apps/instances/id/{id}/flowlog/toptalkers" + params: dict[str, Any] = {} + if name is not None: + params["name"] = name + if start_time is not None: + params["startTime"] = start_time + if end_time is not None: + params["endTime"] = end_time + if metric_type is not None: + params["metricType"] = metric_type + if enterprise_id is not None: + params["enterpriseId"] = enterprise_id + if cursor_page_token is not None: + params["Cursor.pageToken"] = cursor_page_token + if cursor_order_by is not None: + params["Cursor.orderBy"] = cursor_order_by + if cursor_page_num is not None: + params["Cursor.pageNum"] = cursor_page_num + if cursor_page_size is not None: + params["Cursor.pageSize"] = cursor_page_size + if cursor_total_pages is not None: + params["Cursor.totalPages"] = cursor_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=TopTalkersResponse) + + def get_edge_application_instance_logs( + self, + id: str, + start_time: str | None = None, + end_time: str | None = None, + interval: str | None = None, + cursor_page_token: str | None = None, + cursor_order_by: list[str] | None = None, + cursor_page_num: float | None = None, + cursor_page_size: float | None = None, + cursor_total_pages: float | None = None, + request_id: str | None = None, + ) -> AppInstanceLogsResponse: + """Get edge application instance log + + ``GET /v1/apps/instances/id/{id}/logs`` + operationId: ``EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceLogs`` + """ + path = f"/v1/apps/instances/id/{id}/logs" + params: dict[str, Any] = {} + if start_time is not None: + params["startTime"] = start_time + if end_time is not None: + params["endTime"] = end_time + if interval is not None: + params["interval"] = interval + if cursor_page_token is not None: + params["Cursor.pageToken"] = cursor_page_token + if cursor_order_by is not None: + params["Cursor.orderBy"] = cursor_order_by + if cursor_page_num is not None: + params["Cursor.pageNum"] = cursor_page_num + if cursor_page_size is not None: + params["Cursor.pageSize"] = cursor_page_size + if cursor_total_pages is not None: + params["Cursor.totalPages"] = cursor_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AppInstanceLogsResponse) + + def get_edge_application_instance_opaque_status_by_id(self, id: str, request_id: str | None = None) -> OpaqueAppInstanceStatus: + """Get patch envelope opaque status as base64 encoded string + + ``GET /v1/apps/instances/id/{id}/opaque-status`` + operationId: ``EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceOpaqueStatusById`` + """ + path = f"/v1/apps/instances/id/{id}/opaque-status" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=OpaqueAppInstanceStatus) + + def refresh_edge_application_instance(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Refresh edge application instance + + ``PUT /v1/apps/instances/id/{id}/refresh`` + operationId: ``EdgeApplicationInstanceConfiguration_RefreshEdgeApplicationInstance`` + """ + path = f"/v1/apps/instances/id/{id}/refresh" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def refresh_purge_edge_application_instance(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Refresh and purge edge application instance + + ``PUT /v1/apps/instances/id/{id}/refresh/purge`` + operationId: ``EdgeApplicationInstanceConfiguration_RefreshPurgeEdgeApplicationInstance`` + """ + path = f"/v1/apps/instances/id/{id}/refresh/purge" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def restart_edge_application_instance(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Restart edge application instance + + ``PUT /v1/apps/instances/id/{id}/restart`` + operationId: ``EdgeApplicationInstanceConfiguration_RestartEdgeApplicationInstance`` + """ + path = f"/v1/apps/instances/id/{id}/restart" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def get_app_instance_snapshots(self, id: str, request_id: str | None = None) -> AppInstSnapshotsList: + """Query Application instance snapshots + + ``GET /v1/apps/instances/id/{id}/snapshots`` + operationId: ``EdgeApplicationInstanceStatus_GetAppInstanceSnapshots`` + """ + path = f"/v1/apps/instances/id/{id}/snapshots" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AppInstSnapshotsList) + + def get_edge_application_instance_status(self, id: str, request_id: str | None = None) -> AppInstStatusMsg: + """Get edge application instance status + + ``GET /v1/apps/instances/id/{id}/status`` + operationId: ``EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceStatus`` + """ + path = f"/v1/apps/instances/id/{id}/status" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AppInstStatusMsg) + + def get_edge_application_instance_events( + self, + objid: str, + start_time: str | None = None, + end_time: str | None = None, + severity: str | None = None, + resource: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> EventQueryResponse: + """Get edge application instance events by id + + ``GET /v1/apps/instances/id/{objid}/events`` + operationId: ``EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceEvents`` + """ + path = f"/v1/apps/instances/id/{objid}/events" + params: dict[str, Any] = {} + if start_time is not None: + params["startTime"] = start_time + if end_time is not None: + params["endTime"] = end_time + if severity is not None: + params["severity"] = severity + if resource is not None: + params["resource"] = resource + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=EventQueryResponse) + + def get_edge_application_instance_resource_metrics_by_id( + self, + objid: str, + m_type: str, + start_time: str | None = None, + end_time: str | None = None, + interval: str | None = None, + request_id: str | None = None, + ) -> MetricQueryResponse: + """Get edge application instance resource usage timeline + + ``GET /v1/apps/instances/id/{objid}/timeSeries/{mType}`` + operationId: ``EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceResourceMetricsById`` + """ + path = f"/v1/apps/instances/id/{objid}/timeSeries/{m_type}" + params: dict[str, Any] = {} + if start_time is not None: + params["startTime"] = start_time + if end_time is not None: + params["endTime"] = end_time + if interval is not None: + params["interval"] = interval + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=MetricQueryResponse) + + def get_edge_application_instance_by_name(self, name: str, request_id: str | None = None) -> AppInstance: + """Get edge application instance + + ``GET /v1/apps/instances/name/{name}`` + operationId: ``EdgeApplicationInstanceConfiguration_GetEdgeApplicationInstanceByName`` + """ + path = f"/v1/apps/instances/name/{name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AppInstance) + + def get_edge_application_instance_traffic_flows2( + self, + name: str, + id: str | None = None, + start_time: str | None = None, + end_time: str | None = None, + levels: list[str] | None = None, + enterprise_id: str | None = None, + metric: int | None = None, + direction: int | None = None, + aclid: int | None = None, + action: str | None = None, + proto: int | None = None, + remoteip: str | None = None, + remoteport: int | None = None, + fqdn: str | None = None, + request_id: str | None = None, + ) -> ClassificationResponse: + """Get edge application instance network traffic flow log + + ``GET /v1/apps/instances/name/{name}/flowlog/classification`` + operationId: ``EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceTrafficFlows2`` + """ + path = f"/v1/apps/instances/name/{name}/flowlog/classification" + params: dict[str, Any] = {} + if id is not None: + params["id"] = id + if start_time is not None: + params["startTime"] = start_time + if end_time is not None: + params["endTime"] = end_time + if levels is not None: + params["levels"] = levels + if enterprise_id is not None: + params["enterpriseId"] = enterprise_id + if metric is not None: + params["metric"] = metric + if direction is not None: + params["direction"] = direction + if aclid is not None: + params["aclid"] = aclid + if action is not None: + params["action"] = action + if proto is not None: + params["proto"] = proto + if remoteip is not None: + params["remoteip"] = remoteip + if remoteport is not None: + params["remoteport"] = remoteport + if fqdn is not None: + params["fqdn"] = fqdn + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ClassificationResponse) + + def get_edge_application_instance_top_talkers2( + self, + name: str, + id: str | None = None, + start_time: str | None = None, + end_time: str | None = None, + metric_type: str | None = None, + enterprise_id: str | None = None, + cursor_page_token: str | None = None, + cursor_order_by: list[str] | None = None, + cursor_page_num: float | None = None, + cursor_page_size: float | None = None, + cursor_total_pages: float | None = None, + request_id: str | None = None, + ) -> TopTalkersResponse: + """Get edge application instance top talkers of the network traffic flows + + ``GET /v1/apps/instances/name/{name}/flowlog/toptalkers`` + operationId: ``EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceTopTalkers2`` + """ + path = f"/v1/apps/instances/name/{name}/flowlog/toptalkers" + params: dict[str, Any] = {} + if id is not None: + params["id"] = id + if start_time is not None: + params["startTime"] = start_time + if end_time is not None: + params["endTime"] = end_time + if metric_type is not None: + params["metricType"] = metric_type + if enterprise_id is not None: + params["enterpriseId"] = enterprise_id + if cursor_page_token is not None: + params["Cursor.pageToken"] = cursor_page_token + if cursor_order_by is not None: + params["Cursor.orderBy"] = cursor_order_by + if cursor_page_num is not None: + params["Cursor.pageNum"] = cursor_page_num + if cursor_page_size is not None: + params["Cursor.pageSize"] = cursor_page_size + if cursor_total_pages is not None: + params["Cursor.totalPages"] = cursor_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=TopTalkersResponse) + + def get_edge_application_instance_opaque_status_by_name(self, name: str, request_id: str | None = None) -> OpaqueAppInstanceStatus: + """Get patch envelope opaque status as base64 encoded string + + ``GET /v1/apps/instances/name/{name}/opaque-status`` + operationId: ``EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceOpaqueStatusByName`` + """ + path = f"/v1/apps/instances/name/{name}/opaque-status" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=OpaqueAppInstanceStatus) + + def get_edge_application_instance_status_by_name(self, name: str, request_id: str | None = None) -> AppInstStatusMsg: + """Get edge application instance status + + ``GET /v1/apps/instances/name/{name}/status`` + operationId: ``EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceStatusByName`` + """ + path = f"/v1/apps/instances/name/{name}/status" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AppInstStatusMsg) + + def get_edge_application_instance_events_by_name( + self, + objname: str, + start_time: str | None = None, + end_time: str | None = None, + severity: str | None = None, + resource: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> EventQueryResponse: + """Get edge application instance events by name + + ``GET /v1/apps/instances/name/{objname}/events`` + operationId: ``EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceEventsByName`` + """ + path = f"/v1/apps/instances/name/{objname}/events" + params: dict[str, Any] = {} + if start_time is not None: + params["startTime"] = start_time + if end_time is not None: + params["endTime"] = end_time + if severity is not None: + params["severity"] = severity + if resource is not None: + params["resource"] = resource + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=EventQueryResponse) + + def get_edge_application_instance_resource_metrics_by_name( + self, + objname: str, + m_type: str, + start_time: str | None = None, + end_time: str | None = None, + interval: str | None = None, + request_id: str | None = None, + ) -> MetricQueryResponse: + """Get edge application instance resource usage timeline + + ``GET /v1/apps/instances/name/{objname}/timeSeries/{mType}`` + operationId: ``EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceResourceMetricsByName`` + """ + path = f"/v1/apps/instances/name/{objname}/timeSeries/{m_type}" + params: dict[str, Any] = {} + if start_time is not None: + params["startTime"] = start_time + if end_time is not None: + params["endTime"] = end_time + if interval is not None: + params["interval"] = interval + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=MetricQueryResponse) + + def update_patch_envelope_referenceto_app_instance(self, body: PatchReferenceUpdateConfig | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Patch envelope reference update + + ``POST /v1/apps/instances/patch-reference-update`` + operationId: ``EdgeApplicationInstanceConfiguration_UpdatePatchEnvelopeReferencetoAppInstance`` + """ + path = "/v1/apps/instances/patch-reference-update" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_app_instance_snapshot_by_id(self, id: str, request_id: str | None = None) -> AppInstanceSnapshot: + """Query Application instance snapshot + + ``GET /v1/apps/instances/snapshot/id/{id}`` + operationId: ``EdgeApplicationInstanceStatus_GetAppInstanceSnapshotByID`` + """ + path = f"/v1/apps/instances/snapshot/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AppInstanceSnapshot) + + def get_app_instance_snapshot_state(self, id: str, request_id: str | None = None) -> AppInstanceSnapshotState: + """Query Application instance snapshot state + + ``GET /v1/apps/instances/snapshot/id/{id}/state`` + operationId: ``EdgeApplicationInstanceStatus_GetAppInstanceSnapshotState`` + """ + path = f"/v1/apps/instances/snapshot/id/{id}/state" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AppInstanceSnapshotState) + + def query_edge_application_instance_status( + self, + summary: bool | None = None, + app_name: str | None = None, + run_state: str | None = None, + device_name: str | None = None, + project_name: str | None = None, + name_pattern: str | None = None, + type: int | None = None, + tags: str | None = None, + project_name_pattern: str | None = None, + device_name_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + fields: list[str] | None = None, + patch_envelope_name_pattern: str | None = None, + patch_envelope_reference: str | None = None, + title_pattern: str | None = None, + edge_node_cluster_id: str | None = None, + request_id: str | None = None, + ) -> AppInstStatusListMsg: + """Query status of edge application instances + + ``GET /v1/apps/instances/status`` + operationId: ``EdgeApplicationInstanceStatus_QueryEdgeApplicationInstanceStatus`` + """ + path = "/v1/apps/instances/status" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if app_name is not None: + params["appName"] = app_name + if run_state is not None: + params["runState"] = run_state + if device_name is not None: + params["deviceName"] = device_name + if project_name is not None: + params["projectName"] = project_name + if name_pattern is not None: + params["namePattern"] = name_pattern + if type is not None: + params["type"] = type + if tags is not None: + params["tags"] = tags + if project_name_pattern is not None: + params["projectNamePattern"] = project_name_pattern + if device_name_pattern is not None: + params["deviceNamePattern"] = device_name_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if fields is not None: + params["fields"] = fields + if patch_envelope_name_pattern is not None: + params["patchEnvelopeNamePattern"] = patch_envelope_name_pattern + if patch_envelope_reference is not None: + params["patchEnvelopeReference"] = patch_envelope_reference + if title_pattern is not None: + params["titlePattern"] = title_pattern + if edge_node_cluster_id is not None: + params["edgeNodeClusterID"] = edge_node_cluster_id + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AppInstStatusListMsg) + + def query_edge_application_instance_status_config( + self, + summary: bool | None = None, + app_name: str | None = None, + run_state: str | None = None, + device_name: str | None = None, + project_name: str | None = None, + name_pattern: str | None = None, + type: int | None = None, + tags: str | None = None, + project_name_pattern: str | None = None, + device_name_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + fields: list[str] | None = None, + patch_envelope_name_pattern: str | None = None, + patch_envelope_reference: str | None = None, + title_pattern: str | None = None, + edge_node_cluster_id: str | None = None, + request_id: str | None = None, + ) -> AppInstConfigStatusList: + """Query status and config of edge application instances + + ``GET /v1/apps/instances/status-config`` + operationId: ``EdgeApplicationInstanceStatus_QueryEdgeApplicationInstanceStatusConfig`` + """ + path = "/v1/apps/instances/status-config" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if app_name is not None: + params["appName"] = app_name + if run_state is not None: + params["runState"] = run_state + if device_name is not None: + params["deviceName"] = device_name + if project_name is not None: + params["projectName"] = project_name + if name_pattern is not None: + params["namePattern"] = name_pattern + if type is not None: + params["type"] = type + if tags is not None: + params["tags"] = tags + if project_name_pattern is not None: + params["projectNamePattern"] = project_name_pattern + if device_name_pattern is not None: + params["deviceNamePattern"] = device_name_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if fields is not None: + params["fields"] = fields + if patch_envelope_name_pattern is not None: + params["patchEnvelopeNamePattern"] = patch_envelope_name_pattern + if patch_envelope_reference is not None: + params["patchEnvelopeReference"] = patch_envelope_reference + if title_pattern is not None: + params["titlePattern"] = title_pattern + if edge_node_cluster_id is not None: + params["edgeNodeClusterID"] = edge_node_cluster_id + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AppInstConfigStatusList) + + def get_application_interface_tags( + self, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> ObjectTagsList: + """Query Application instance tags + + ``GET /v1/apps/instances/tags`` + operationId: ``EdgeApplicationInstanceStatus_GetApplicationInterfaceTags`` + """ + path = "/v1/apps/instances/tags" + params: dict[str, Any] = {} + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ObjectTagsList) + + def get_edge_application_bundle_by_name(self, name: str, request_id: str | None = None) -> App: + """Get edge application bundle + + ``GET /v1/apps/name/{name}`` + operationId: ``EdgeApplicationConfiguration_GetEdgeApplicationBundleByName`` + """ + path = f"/v1/apps/name/{name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=App) + + def get_patch_envelope( + self, + project_name_pattern: str | None = None, + name_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + summary: bool | None = None, + request_id: str | None = None, + ) -> PatchEnvelopeList: + """Get all the patch envelopes + + ``GET /v1/patch-envelope`` + operationId: ``PatchEnvelopeConfiguration_GetPatchEnvelope`` + """ + path = "/v1/patch-envelope" + params: dict[str, Any] = {} + if project_name_pattern is not None: + params["projectNamePattern"] = project_name_pattern + if name_pattern is not None: + params["namePattern"] = name_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if summary is not None: + params["summary"] = summary + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=PatchEnvelopeList) + + def create_patch_envelope(self, body: PatchEnvelope | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Create patch envelope + + ``POST /v1/patch-envelope`` + operationId: ``PatchEnvelopeConfiguration_CreatePatchEnvelope`` + """ + path = "/v1/patch-envelope" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_patch_envelope_by_id(self, id: str, request_id: str | None = None) -> PatchEnvelope: + """Get patch envelope by id + + ``GET /v1/patch-envelope/id/{id}`` + operationId: ``PatchEnvelopeConfiguration_GetPatchEnvelopeById`` + """ + path = f"/v1/patch-envelope/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=PatchEnvelope) + + def patch_envelope_configuration__delete_app_instance_snapshot(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Delete patch envelope + + ``DELETE /v1/patch-envelope/id/{id}`` + operationId: ``PatchEnvelopeConfiguration_DeleteAppInstanceSnapshot`` + """ + path = f"/v1/patch-envelope/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def update_patch_envelope(self, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """Update patch envelope + + ``PUT /v1/patch-envelope/id/{id}`` + operationId: ``PatchEnvelopeConfiguration_UpdatePatchEnvelope`` + """ + path = f"/v1/patch-envelope/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_patch_envelope_by_name(self, name: str, request_id: str | None = None) -> PatchEnvelope: + """Get patch envelope by name + + ``GET /v1/patch-envelope/name/{name}`` + operationId: ``PatchEnvelopeConfiguration_GetPatchEnvelopeByName`` + """ + path = f"/v1/patch-envelope/name/{name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=PatchEnvelope) + + def get_patch_envelope_status( + self, + summary: bool | None = None, + filter_device_name: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + fields: list[str] | None = None, + request_id: str | None = None, + ) -> PatchStatusListMsg: + """Get patch envelope status + + ``GET /v1/patch-envelope/status`` + operationId: ``PatchEnvelopeConfiguration_GetPatchEnvelopeStatus`` + """ + path = "/v1/patch-envelope/status" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if filter_device_name is not None: + params["filter.deviceName"] = filter_device_name + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if fields is not None: + params["fields"] = fields + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=PatchStatusListMsg) + + def query_edge_application_instances_v2( + self, + project: str | None = None, + bundle: str | None = None, + device: str | None = None, + name_pattern: str | None = None, + app_type: int | None = None, + deployment_type: str | None = None, + project_name_pattern: str | None = None, + device_name_pattern: str | None = None, + summary: bool | None = None, + title_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + fields: list[str] | None = None, + request_id: str | None = None, + ) -> AppInstances: + """Query edge application instances + + ``GET /v2/apps/instances`` + operationId: ``EdgeApplicationInstanceConfiguration_QueryEdgeApplicationInstancesV2`` + """ + path = "/v2/apps/instances" + params: dict[str, Any] = {} + if project is not None: + params["project"] = project + if bundle is not None: + params["bundle"] = bundle + if device is not None: + params["device"] = device + if name_pattern is not None: + params["namePattern"] = name_pattern + if app_type is not None: + params["appType"] = app_type + if deployment_type is not None: + params["deploymentType"] = deployment_type + if project_name_pattern is not None: + params["projectNamePattern"] = project_name_pattern + if device_name_pattern is not None: + params["deviceNamePattern"] = device_name_pattern + if summary is not None: + params["summary"] = summary + if title_pattern is not None: + params["titlePattern"] = title_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if fields is not None: + params["fields"] = fields + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AppInstances) + + def create_edge_application_instance_v2(self, body: AppInstance | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Create edge application instance + + ``POST /v2/apps/instances`` + operationId: ``EdgeApplicationInstanceConfiguration_CreateEdgeApplicationInstanceV2`` + """ + path = "/v2/apps/instances" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_edge_application_instance_v2(self, id: str, request_id: str | None = None) -> AppInstance: + """Get edge application instance + + ``GET /v2/apps/instances/id/{id}`` + operationId: ``EdgeApplicationInstanceConfiguration_GetEdgeApplicationInstanceV2`` + """ + path = f"/v2/apps/instances/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AppInstance) + + def delete_edge_application_instance_v2(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Delete edge application instance + + ``DELETE /v2/apps/instances/id/{id}`` + operationId: ``EdgeApplicationInstanceConfiguration_DeleteEdgeApplicationInstanceV2`` + """ + path = f"/v2/apps/instances/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def update_edge_application_instance_v2(self, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """Update edge application instance + + ``PUT /v2/apps/instances/id/{id}`` + operationId: ``EdgeApplicationInstanceConfiguration_UpdateEdgeApplicationInstanceV2`` + """ + path = f"/v2/apps/instances/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def activate_edge_application_instance_v2(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Activate edge application instance + + ``PUT /v2/apps/instances/id/{id}/activate`` + operationId: ``EdgeApplicationInstanceConfiguration_ActivateEdgeApplicationInstanceV2`` + """ + path = f"/v2/apps/instances/id/{id}/activate" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def connect_to_edge_application_instance_v2(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Connect to edge application instance console + + ``PUT /v2/apps/instances/id/{id}/console/remote`` + operationId: ``EdgeApplicationInstanceConfiguration_ConnectToEdgeApplicationInstanceV2`` + """ + path = f"/v2/apps/instances/id/{id}/console/remote" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def de_activate_edge_application_instance_v2(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Deactivate edge application instance + + ``PUT /v2/apps/instances/id/{id}/deactivate`` + operationId: ``EdgeApplicationInstanceConfiguration_DeActivateEdgeApplicationInstanceV2`` + """ + path = f"/v2/apps/instances/id/{id}/deactivate" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def get_edge_application_instance_traffic_flows_v2( + self, + id: str, + name: str | None = None, + start_time: str | None = None, + end_time: str | None = None, + levels: list[str] | None = None, + enterprise_id: str | None = None, + metric: int | None = None, + direction: int | None = None, + aclid: int | None = None, + action: str | None = None, + proto: int | None = None, + remoteip: str | None = None, + remoteport: int | None = None, + fqdn: str | None = None, + request_id: str | None = None, + ) -> ClassificationResponse: + """Get edge application instance network traffic flow log + + ``GET /v2/apps/instances/id/{id}/flowlog/classification`` + operationId: ``EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceTrafficFlowsV2`` + """ + path = f"/v2/apps/instances/id/{id}/flowlog/classification" + params: dict[str, Any] = {} + if name is not None: + params["name"] = name + if start_time is not None: + params["startTime"] = start_time + if end_time is not None: + params["endTime"] = end_time + if levels is not None: + params["levels"] = levels + if enterprise_id is not None: + params["enterpriseId"] = enterprise_id + if metric is not None: + params["metric"] = metric + if direction is not None: + params["direction"] = direction + if aclid is not None: + params["aclid"] = aclid + if action is not None: + params["action"] = action + if proto is not None: + params["proto"] = proto + if remoteip is not None: + params["remoteip"] = remoteip + if remoteport is not None: + params["remoteport"] = remoteport + if fqdn is not None: + params["fqdn"] = fqdn + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ClassificationResponse) + + def get_edge_application_instance_top_talkers_v2( + self, + id: str, + name: str | None = None, + start_time: str | None = None, + end_time: str | None = None, + metric_type: str | None = None, + enterprise_id: str | None = None, + cursor_page_token: str | None = None, + cursor_order_by: list[str] | None = None, + cursor_page_num: float | None = None, + cursor_page_size: float | None = None, + cursor_total_pages: float | None = None, + request_id: str | None = None, + ) -> TopTalkersResponse: + """Get edge application instance top talkers of the network traffic flows + + ``GET /v2/apps/instances/id/{id}/flowlog/toptalkers`` + operationId: ``EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceTopTalkersV2`` + """ + path = f"/v2/apps/instances/id/{id}/flowlog/toptalkers" + params: dict[str, Any] = {} + if name is not None: + params["name"] = name + if start_time is not None: + params["startTime"] = start_time + if end_time is not None: + params["endTime"] = end_time + if metric_type is not None: + params["metricType"] = metric_type + if enterprise_id is not None: + params["enterpriseId"] = enterprise_id + if cursor_page_token is not None: + params["Cursor.pageToken"] = cursor_page_token + if cursor_order_by is not None: + params["Cursor.orderBy"] = cursor_order_by + if cursor_page_num is not None: + params["Cursor.pageNum"] = cursor_page_num + if cursor_page_size is not None: + params["Cursor.pageSize"] = cursor_page_size + if cursor_total_pages is not None: + params["Cursor.totalPages"] = cursor_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=TopTalkersResponse) + + def get_edge_application_instance_logs_v2( + self, + id: str, + start_time: str | None = None, + end_time: str | None = None, + interval: str | None = None, + cursor_page_token: str | None = None, + cursor_order_by: list[str] | None = None, + cursor_page_num: float | None = None, + cursor_page_size: float | None = None, + cursor_total_pages: float | None = None, + request_id: str | None = None, + ) -> AppInstanceLogsResponse: + """Get edge application instance log + + ``GET /v2/apps/instances/id/{id}/logs`` + operationId: ``EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceLogsV2`` + """ + path = f"/v2/apps/instances/id/{id}/logs" + params: dict[str, Any] = {} + if start_time is not None: + params["startTime"] = start_time + if end_time is not None: + params["endTime"] = end_time + if interval is not None: + params["interval"] = interval + if cursor_page_token is not None: + params["Cursor.pageToken"] = cursor_page_token + if cursor_order_by is not None: + params["Cursor.orderBy"] = cursor_order_by + if cursor_page_num is not None: + params["Cursor.pageNum"] = cursor_page_num + if cursor_page_size is not None: + params["Cursor.pageSize"] = cursor_page_size + if cursor_total_pages is not None: + params["Cursor.totalPages"] = cursor_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AppInstanceLogsResponse) + + def get_edge_application_instance_opaque_status_by_id_v2(self, id: str, request_id: str | None = None) -> OpaqueAppInstanceStatus: + """Get patch envelope opaque status as base64 encoded string + + ``GET /v2/apps/instances/id/{id}/opaque-status`` + operationId: ``EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceOpaqueStatusByIdV2`` + """ + path = f"/v2/apps/instances/id/{id}/opaque-status" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=OpaqueAppInstanceStatus) + + def refresh_edge_application_instance_v2(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Refresh edge application instance + + ``PUT /v2/apps/instances/id/{id}/refresh`` + operationId: ``EdgeApplicationInstanceConfiguration_RefreshEdgeApplicationInstanceV2`` + """ + path = f"/v2/apps/instances/id/{id}/refresh" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def refresh_purge_edge_application_instance_v2(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Refresh and purge edge application instance + + ``PUT /v2/apps/instances/id/{id}/refresh/purge`` + operationId: ``EdgeApplicationInstanceConfiguration_RefreshPurgeEdgeApplicationInstanceV2`` + """ + path = f"/v2/apps/instances/id/{id}/refresh/purge" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def restart_edge_application_instance_v2(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Restart edge application instance + + ``PUT /v2/apps/instances/id/{id}/restart`` + operationId: ``EdgeApplicationInstanceConfiguration_RestartEdgeApplicationInstanceV2`` + """ + path = f"/v2/apps/instances/id/{id}/restart" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def get_edge_application_instance_status_v2(self, id: str, request_id: str | None = None) -> AppInstStatusMsg: + """Get edge application instance status + + ``GET /v2/apps/instances/id/{id}/status`` + operationId: ``EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceStatusV2`` + """ + path = f"/v2/apps/instances/id/{id}/status" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AppInstStatusMsg) + + def get_edge_application_instance_events_v2( + self, + objid: str, + start_time: str | None = None, + end_time: str | None = None, + severity: str | None = None, + resource: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> EventQueryResponse: + """Get edge application instance events by id + + ``GET /v2/apps/instances/id/{objid}/events`` + operationId: ``EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceEventsV2`` + """ + path = f"/v2/apps/instances/id/{objid}/events" + params: dict[str, Any] = {} + if start_time is not None: + params["startTime"] = start_time + if end_time is not None: + params["endTime"] = end_time + if severity is not None: + params["severity"] = severity + if resource is not None: + params["resource"] = resource + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=EventQueryResponse) + + def get_edge_application_instance_resource_metrics_by_id_v2( + self, + objid: str, + m_type: str, + start_time: str | None = None, + end_time: str | None = None, + interval: str | None = None, + request_id: str | None = None, + ) -> MetricQueryResponse: + """Get edge application instance resource usage timeline + + ``GET /v2/apps/instances/id/{objid}/timeSeries/{mType}`` + operationId: ``EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceResourceMetricsByIdV2`` + """ + path = f"/v2/apps/instances/id/{objid}/timeSeries/{m_type}" + params: dict[str, Any] = {} + if start_time is not None: + params["startTime"] = start_time + if end_time is not None: + params["endTime"] = end_time + if interval is not None: + params["interval"] = interval + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=MetricQueryResponse) + + def get_edge_application_instance_by_name_v2(self, name: str, request_id: str | None = None) -> AppInstance: + """Get edge application instance + + ``GET /v2/apps/instances/name/{name}`` + operationId: ``EdgeApplicationInstanceConfiguration_GetEdgeApplicationInstanceByNameV2`` + """ + path = f"/v2/apps/instances/name/{name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AppInstance) + + def get_edge_application_instance_traffic_flows_v22( + self, + name: str, + id: str | None = None, + start_time: str | None = None, + end_time: str | None = None, + levels: list[str] | None = None, + enterprise_id: str | None = None, + metric: int | None = None, + direction: int | None = None, + aclid: int | None = None, + action: str | None = None, + proto: int | None = None, + remoteip: str | None = None, + remoteport: int | None = None, + fqdn: str | None = None, + request_id: str | None = None, + ) -> ClassificationResponse: + """Get edge application instance network traffic flow log + + ``GET /v2/apps/instances/name/{name}/flowlog/classification`` + operationId: ``EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceTrafficFlowsV22`` + """ + path = f"/v2/apps/instances/name/{name}/flowlog/classification" + params: dict[str, Any] = {} + if id is not None: + params["id"] = id + if start_time is not None: + params["startTime"] = start_time + if end_time is not None: + params["endTime"] = end_time + if levels is not None: + params["levels"] = levels + if enterprise_id is not None: + params["enterpriseId"] = enterprise_id + if metric is not None: + params["metric"] = metric + if direction is not None: + params["direction"] = direction + if aclid is not None: + params["aclid"] = aclid + if action is not None: + params["action"] = action + if proto is not None: + params["proto"] = proto + if remoteip is not None: + params["remoteip"] = remoteip + if remoteport is not None: + params["remoteport"] = remoteport + if fqdn is not None: + params["fqdn"] = fqdn + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ClassificationResponse) + + def get_edge_application_instance_top_talkers_v22( + self, + name: str, + id: str | None = None, + start_time: str | None = None, + end_time: str | None = None, + metric_type: str | None = None, + enterprise_id: str | None = None, + cursor_page_token: str | None = None, + cursor_order_by: list[str] | None = None, + cursor_page_num: float | None = None, + cursor_page_size: float | None = None, + cursor_total_pages: float | None = None, + request_id: str | None = None, + ) -> TopTalkersResponse: + """Get edge application instance top talkers of the network traffic flows + + ``GET /v2/apps/instances/name/{name}/flowlog/toptalkers`` + operationId: ``EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceTopTalkersV22`` + """ + path = f"/v2/apps/instances/name/{name}/flowlog/toptalkers" + params: dict[str, Any] = {} + if id is not None: + params["id"] = id + if start_time is not None: + params["startTime"] = start_time + if end_time is not None: + params["endTime"] = end_time + if metric_type is not None: + params["metricType"] = metric_type + if enterprise_id is not None: + params["enterpriseId"] = enterprise_id + if cursor_page_token is not None: + params["Cursor.pageToken"] = cursor_page_token + if cursor_order_by is not None: + params["Cursor.orderBy"] = cursor_order_by + if cursor_page_num is not None: + params["Cursor.pageNum"] = cursor_page_num + if cursor_page_size is not None: + params["Cursor.pageSize"] = cursor_page_size + if cursor_total_pages is not None: + params["Cursor.totalPages"] = cursor_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=TopTalkersResponse) + + def get_edge_application_instance_opaque_status_by_name_v2(self, name: str, request_id: str | None = None) -> OpaqueAppInstanceStatus: + """Get patch envelope opaque status as base64 encoded string + + ``GET /v2/apps/instances/name/{name}/opaque-status`` + operationId: ``EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceOpaqueStatusByNameV2`` + """ + path = f"/v2/apps/instances/name/{name}/opaque-status" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=OpaqueAppInstanceStatus) + + def get_edge_application_instance_status_by_name_v2(self, name: str, request_id: str | None = None) -> AppInstStatusMsg: + """Get edge application instance status + + ``GET /v2/apps/instances/name/{name}/status`` + operationId: ``EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceStatusByNameV2`` + """ + path = f"/v2/apps/instances/name/{name}/status" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AppInstStatusMsg) + + def get_edge_application_instance_events_by_name_v2( + self, + objname: str, + start_time: str | None = None, + end_time: str | None = None, + severity: str | None = None, + resource: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> EventQueryResponse: + """Get edge application instance events by name + + ``GET /v2/apps/instances/name/{objname}/events`` + operationId: ``EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceEventsByNameV2`` + """ + path = f"/v2/apps/instances/name/{objname}/events" + params: dict[str, Any] = {} + if start_time is not None: + params["startTime"] = start_time + if end_time is not None: + params["endTime"] = end_time + if severity is not None: + params["severity"] = severity + if resource is not None: + params["resource"] = resource + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=EventQueryResponse) + + def get_edge_application_instance_resource_metrics_by_name_v2( + self, + objname: str, + m_type: str, + start_time: str | None = None, + end_time: str | None = None, + interval: str | None = None, + request_id: str | None = None, + ) -> MetricQueryResponse: + """Get edge application instance resource usage timeline + + ``GET /v2/apps/instances/name/{objname}/timeSeries/{mType}`` + operationId: ``EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceResourceMetricsByNameV2`` + """ + path = f"/v2/apps/instances/name/{objname}/timeSeries/{m_type}" + params: dict[str, Any] = {} + if start_time is not None: + params["startTime"] = start_time + if end_time is not None: + params["endTime"] = end_time + if interval is not None: + params["interval"] = interval + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=MetricQueryResponse) + + def update_patch_envelope_referenceto_app_instance_v2(self, body: PatchReferenceUpdateConfig | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Patch envelope reference update + + ``POST /v2/apps/instances/patch-reference-update`` + operationId: ``EdgeApplicationInstanceConfiguration_UpdatePatchEnvelopeReferencetoAppInstanceV2`` + """ + path = "/v2/apps/instances/patch-reference-update" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def query_edge_application_instance_status_v2( + self, + summary: bool | None = None, + app_name: str | None = None, + run_state: str | None = None, + device_name: str | None = None, + project_name: str | None = None, + name_pattern: str | None = None, + type: int | None = None, + tags: str | None = None, + project_name_pattern: str | None = None, + device_name_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + fields: list[str] | None = None, + patch_envelope_name_pattern: str | None = None, + patch_envelope_reference: str | None = None, + title_pattern: str | None = None, + edge_node_cluster_id: str | None = None, + request_id: str | None = None, + ) -> AppInstStatusListMsg: + """Query status of edge application instances + + ``GET /v2/apps/instances/status`` + operationId: ``EdgeApplicationInstanceStatus_QueryEdgeApplicationInstanceStatusV2`` + """ + path = "/v2/apps/instances/status" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if app_name is not None: + params["appName"] = app_name + if run_state is not None: + params["runState"] = run_state + if device_name is not None: + params["deviceName"] = device_name + if project_name is not None: + params["projectName"] = project_name + if name_pattern is not None: + params["namePattern"] = name_pattern + if type is not None: + params["type"] = type + if tags is not None: + params["tags"] = tags + if project_name_pattern is not None: + params["projectNamePattern"] = project_name_pattern + if device_name_pattern is not None: + params["deviceNamePattern"] = device_name_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if fields is not None: + params["fields"] = fields + if patch_envelope_name_pattern is not None: + params["patchEnvelopeNamePattern"] = patch_envelope_name_pattern + if patch_envelope_reference is not None: + params["patchEnvelopeReference"] = patch_envelope_reference + if title_pattern is not None: + params["titlePattern"] = title_pattern + if edge_node_cluster_id is not None: + params["edgeNodeClusterID"] = edge_node_cluster_id + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AppInstStatusListMsg) + + def query_edge_application_instance_status_config_v2( + self, + summary: bool | None = None, + app_name: str | None = None, + run_state: str | None = None, + device_name: str | None = None, + project_name: str | None = None, + name_pattern: str | None = None, + type: int | None = None, + tags: str | None = None, + project_name_pattern: str | None = None, + device_name_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + fields: list[str] | None = None, + patch_envelope_name_pattern: str | None = None, + patch_envelope_reference: str | None = None, + title_pattern: str | None = None, + edge_node_cluster_id: str | None = None, + request_id: str | None = None, + ) -> AppInstConfigStatusList: + """Query status and config of edge application instances + + ``GET /v2/apps/instances/status-config`` + operationId: ``EdgeApplicationInstanceStatus_QueryEdgeApplicationInstanceStatusConfigV2`` + """ + path = "/v2/apps/instances/status-config" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if app_name is not None: + params["appName"] = app_name + if run_state is not None: + params["runState"] = run_state + if device_name is not None: + params["deviceName"] = device_name + if project_name is not None: + params["projectName"] = project_name + if name_pattern is not None: + params["namePattern"] = name_pattern + if type is not None: + params["type"] = type + if tags is not None: + params["tags"] = tags + if project_name_pattern is not None: + params["projectNamePattern"] = project_name_pattern + if device_name_pattern is not None: + params["deviceNamePattern"] = device_name_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if fields is not None: + params["fields"] = fields + if patch_envelope_name_pattern is not None: + params["patchEnvelopeNamePattern"] = patch_envelope_name_pattern + if patch_envelope_reference is not None: + params["patchEnvelopeReference"] = patch_envelope_reference + if title_pattern is not None: + params["titlePattern"] = title_pattern + if edge_node_cluster_id is not None: + params["edgeNodeClusterID"] = edge_node_cluster_id + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AppInstConfigStatusList) diff --git a/packages/zedcloud/src/zedcloud/_generated/services/diag.py b/packages/zedcloud/src/zedcloud/_generated/services/diag.py new file mode 100644 index 0000000..20266f9 --- /dev/null +++ b/packages/zedcloud/src/zedcloud/_generated/services/diag.py @@ -0,0 +1,391 @@ +# Generated by scripts/generate_from_openapi.py — namespace "diag" +# Do not edit by hand. + +from __future__ import annotations + +from typing import Any + +from zedcloud.services.base import BaseService +from zedcloud._generated.models.diag import ( + CloudVersionResp, + ConfigServiceResp, + EventQueryResponse, + EventTopUsersResp, + HealthServiceResp, + HelloName, + HelloResp, + MetricQueryResponse, + PingMsgSendResp, + PolicyDocVersion, + PolicyDocVersionResp, + ZsrvResponse, +) + + +class DiagService(BaseService): + """Auto-generated client for ZEDEDA Diagnostics Service.""" + + def get_cluster_health_report(self, request_id: str | None = None) -> HealthServiceResp: + """Get Cloud services health report + + ``GET /v1/cloud/healthreport`` + operationId: ``CloudDiagnostics_GetClusterHealthReport`` + """ + path = "/v1/cloud/healthreport" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=HealthServiceResp) + + def check_cluster_health(self, ping_id: str | None = None, request_id: str | None = None) -> PingMsgSendResp: + """Check Cloud reachability + + ``GET /v1/cloud/ping`` + operationId: ``CloudDiagnostics_checkClusterHealth`` + """ + path = "/v1/cloud/ping" + params: dict[str, Any] = {} + if ping_id is not None: + params["pingId"] = ping_id + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=PingMsgSendResp) + + def check_cluster_health2(self, ping_id: str, request_id: str | None = None) -> PingMsgSendResp: + """Check Cloud reachability + + ``GET /v1/cloud/ping/id/{pingId}`` + operationId: ``CloudDiagnostics_checkClusterHealth2`` + """ + path = f"/v1/cloud/ping/id/{ping_id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=PingMsgSendResp) + + def query_cloud_policies(self, all: bool | None = None, request_id: str | None = None) -> PolicyDocVersionResp: + """Query Cloud policies + + ``GET /v1/cloud/policies`` + operationId: ``CloudDiagnostics_QueryCloudPolicies`` + """ + path = "/v1/cloud/policies" + params: dict[str, Any] = {} + if all is not None: + params["all"] = all + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=PolicyDocVersionResp) + + def create_cloud_policy_document(self, body: PolicyDocVersion | dict[str, Any], request_id: str | None = None) -> PolicyDocVersionResp: + """Create Cloud policy document + + ``POST /v1/cloud/policies`` + operationId: ``CloudDiagnostics_CreateCloudPolicyDocument`` + """ + path = "/v1/cloud/policies" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=PolicyDocVersionResp) + + def get_cloud_policy_document(self, id: str, request_id: str | None = None) -> PolicyDocVersionResp: + """Get Cloud policy document + + ``GET /v1/cloud/policies/id/{id}`` + operationId: ``CloudDiagnostics_GetCloudPolicyDocument`` + """ + path = f"/v1/cloud/policies/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=PolicyDocVersionResp) + + def delete_cloud_policy_document(self, id: str, request_id: str | None = None) -> PolicyDocVersionResp: + """Delete Cloud policy specific version + + ``DELETE /v1/cloud/policies/id/{id}`` + operationId: ``CloudDiagnostics_DeleteCloudPolicyDocument`` + """ + path = f"/v1/cloud/policies/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=PolicyDocVersionResp) + + def mark_cloud_policy_latest(self, body: PolicyDocVersion | dict[str, Any], request_id: str | None = None) -> PolicyDocVersionResp: + """Update Cloud policy specific version + + ``PUT /v1/cloud/policies/latest`` + operationId: ``CloudDiagnostics_MarkCloudPolicyLatest`` + """ + path = "/v1/cloud/policies/latest" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=PolicyDocVersionResp) + + def get_cluster_version(self, request_id: str | None = None) -> CloudVersionResp: + """Get Cloud controller software version + + ``GET /v1/cloud/version`` + operationId: ``CloudDiagnostics_GetClusterVersion`` + """ + path = "/v1/cloud/version" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=CloudVersionResp) + + def get_device_twin_config(self, id: str, request_id: str | None = None) -> ConfigServiceResp: + """Get current Device twin configuration + + ``GET /v1/devices/id/{id}/config`` + operationId: ``EdgeDiagnostics_GetDeviceTwinConfig`` + """ + path = f"/v1/devices/id/{id}/config" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ConfigServiceResp) + + def regen_device_config(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Re-generate device configuration + + ``PUT /v1/devices/id/{id}/config`` + operationId: ``EdgeDiagnostics_RegenDeviceConfig`` + """ + path = f"/v1/devices/id/{id}/config" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def get_device_twin_bootstrap_config(self, id: str, request_id: str | None = None) -> ConfigServiceResp: + """Get bootstrap Device twin configuration + + ``GET /v1/devices/id/{id}/config/bootstrap`` + operationId: ``EdgeDiagnostics_GetDeviceTwinBootstrapConfig`` + """ + path = f"/v1/devices/id/{id}/config/bootstrap" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ConfigServiceResp) + + def get_device_twin_next_config(self, id: str, request_id: str | None = None) -> ConfigServiceResp: + """Get next Device twin configuration + + ``GET /v1/devices/id/{id}/config/next`` + operationId: ``EdgeDiagnostics_GetDeviceTwinNextConfig`` + """ + path = f"/v1/devices/id/{id}/config/next" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ConfigServiceResp) + + def get_device_twin_offline_next_config(self, id: str, request_id: str | None = None) -> ConfigServiceResp: + """Get offline Device twin configuration + + ``GET /v1/devices/id/{id}/config/offline`` + operationId: ``EdgeDiagnostics_GetDeviceTwinOfflineNextConfig`` + """ + path = f"/v1/devices/id/{id}/config/offline" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ConfigServiceResp) + + def get_device_twin_config_by_name(self, name: str, request_id: str | None = None) -> ConfigServiceResp: + """Get current Device twin configuration + + ``GET /v1/devices/name/{name}/config`` + operationId: ``EdgeDiagnostics_GetDeviceTwinConfigByName`` + """ + path = f"/v1/devices/name/{name}/config" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ConfigServiceResp) + + def get_device_twin_bootstrap_config_by_name(self, name: str, request_id: str | None = None) -> ConfigServiceResp: + """Get bootstrap Device twin configuration + + ``GET /v1/devices/name/{name}/config/bootstrap`` + operationId: ``EdgeDiagnostics_GetDeviceTwinBootstrapConfigByName`` + """ + path = f"/v1/devices/name/{name}/config/bootstrap" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ConfigServiceResp) + + def get_device_twin_next_config_by_name(self, name: str, request_id: str | None = None) -> ConfigServiceResp: + """Get next Device twin configuration + + ``GET /v1/devices/name/{name}/config/next`` + operationId: ``EdgeDiagnostics_GetDeviceTwinNextConfigByName`` + """ + path = f"/v1/devices/name/{name}/config/next" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ConfigServiceResp) + + def get_device_twin_offline_config_by_name(self, name: str, request_id: str | None = None) -> ConfigServiceResp: + """Get offline Device twin configuration + + ``GET /v1/devices/name/{name}/config/offline`` + operationId: ``EdgeDiagnostics_GetDeviceTwinOfflineConfigByName`` + """ + path = f"/v1/devices/name/{name}/config/offline" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ConfigServiceResp) + + def get_events_timeline( + self, + objname: str | None = None, + objid: str | None = None, + objtype: str | None = None, + request_id: str | None = None, + ) -> EventQueryResponse: + """Get events timeline + + ``GET /v1/events`` + operationId: ``EdgeDiagnostics_GetEventsTimeline`` + """ + path = "/v1/events" + params: dict[str, Any] = {} + if objname is not None: + params["objname"] = objname + if objid is not None: + params["objid"] = objid + if objtype is not None: + params["objtype"] = objtype + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=EventQueryResponse) + + def get_resource_metrics_timeline( + self, + m_type: str, + objtype: str | None = None, + objname: str | None = None, + start_time: str | None = None, + end_time: str | None = None, + interval: str | None = None, + enterprise_id: str | None = None, + objid: str | None = None, + request_id: str | None = None, + ) -> MetricQueryResponse: + """Get resource usage timeline + + ``GET /v1/events/timeSeries/{mType}`` + operationId: ``EdgeDiagnostics_GetResourceMetricsTimeline`` + """ + path = f"/v1/events/timeSeries/{m_type}" + params: dict[str, Any] = {} + if objtype is not None: + params["objtype"] = objtype + if objname is not None: + params["objname"] = objname + if start_time is not None: + params["startTime"] = start_time + if end_time is not None: + params["endTime"] = end_time + if interval is not None: + params["interval"] = interval + if enterprise_id is not None: + params["enterpriseId"] = enterprise_id + if objid is not None: + params["objid"] = objid + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=MetricQueryResponse) + + def get_top_users2(self, request_id: str | None = None) -> EventTopUsersResp: + """Get top users + + ``GET /v1/events/topUsers`` + operationId: ``EdgeDiagnostics_GetTopUsers2`` + """ + path = "/v1/events/topUsers" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=EventTopUsersResp) + + def check_microservice_health(self, body: HelloName | dict[str, Any], request_id: str | None = None) -> HelloResp: + """Check Cloud services health + + ``POST /v1/hello`` + operationId: ``CloudDiagnostics_checkMicroserviceHealth`` + """ + path = "/v1/hello" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=HelloResp) + + def get_resource_metrics_timeline2( + self, + m_type: str, + objtype: str | None = None, + objname: str | None = None, + start_time: str | None = None, + end_time: str | None = None, + interval: str | None = None, + enterprise_id: str | None = None, + objid: str | None = None, + request_id: str | None = None, + ) -> MetricQueryResponse: + """Get resource usage timeline + + ``GET /v1/timeSeries/{mType}`` + operationId: ``EdgeDiagnostics_GetResourceMetricsTimeline2`` + """ + path = f"/v1/timeSeries/{m_type}" + params: dict[str, Any] = {} + if objtype is not None: + params["objtype"] = objtype + if objname is not None: + params["objname"] = objname + if start_time is not None: + params["startTime"] = start_time + if end_time is not None: + params["endTime"] = end_time + if interval is not None: + params["interval"] = interval + if enterprise_id is not None: + params["enterpriseId"] = enterprise_id + if objid is not None: + params["objid"] = objid + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=MetricQueryResponse) diff --git a/packages/zedcloud/src/zedcloud/_generated/services/iam.py b/packages/zedcloud/src/zedcloud/_generated/services/iam.py new file mode 100644 index 0000000..a69a55f --- /dev/null +++ b/packages/zedcloud/src/zedcloud/_generated/services/iam.py @@ -0,0 +1,1327 @@ +# Generated by scripts/generate_from_openapi.py — namespace "iam" +# Do not edit by hand. + +from __future__ import annotations + +from typing import Any + +from zedcloud.services.base import BaseService +from zedcloud._generated.models.iam import ( + AAAFrontendGenerateTokenResponse, + AAAFrontendLoginModeRequest, + AAAFrontendLoginModeResponse, + AAAFrontendLoginResponse, + AAAFrontendLoginWithOauthRequest, + AAAFrontendLoginWithPasswordRequest, + AAAFrontendLogoutRequest, + AAAFrontendLogoutResponse, + AAAFrontendOAUTHCallbackRequest, + AAAFrontendRefreshResponse, + AAAFrontendSessionDetailsResponse, + AAARequestAdminUserSignup, + AAARequestEnterpriseSignup, + AAARequestLoginForgotPassword, + AAAResponse, + AAASuccessResponseQueryAllSessionDetails, + AppInstReport, + AuthorizationProfile, + Credential, + CrudResponse, + CrudResponseRead, + DetailedUser, + DeviceReport, + DocPolicy, + Enterprise, + Entitlement, + PluginReport, + ProjectReport, + Realm, + Role, + UserReport, + ZsrvResponse, +) + + +class IamService(BaseService): + """Auto-generated client for ZEDEDA IAM Service.""" + + def query_auth_profiles( + self, + summary: bool | None = None, + sfdc_id: str | None = None, + hubspot_id: str | None = None, + project: str | None = None, + name_pattern: str | None = None, + all: bool | None = None, + role_name: str | None = None, + size: str | None = None, + email_pattern: str | None = None, + title_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> CrudResponse: + """Query AAA profiles + + ``GET /v1/authorization/profiles`` + operationId: ``IdentityAccessManagement_QueryAuthProfiles`` + """ + path = "/v1/authorization/profiles" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if sfdc_id is not None: + params["SfdcId"] = sfdc_id + if hubspot_id is not None: + params["HubspotId"] = hubspot_id + if project is not None: + params["project"] = project + if name_pattern is not None: + params["namePattern"] = name_pattern + if all is not None: + params["all"] = all + if role_name is not None: + params["roleName"] = role_name + if size is not None: + params["size"] = size + if email_pattern is not None: + params["emailPattern"] = email_pattern + if title_pattern is not None: + params["titlePattern"] = title_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=CrudResponse) + + def create_auth_profile(self, body: AuthorizationProfile | dict[str, Any], request_id: str | None = None) -> CrudResponse: + """Create AAA profile + + ``POST /v1/authorization/profiles`` + operationId: ``IdentityAccessManagement_CreateAuthProfile`` + """ + path = "/v1/authorization/profiles" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=CrudResponse) + + def get_auth_profile(self, id: str, request_id: str | None = None) -> CrudResponseRead: + """Get AAA profile + + ``GET /v1/authorization/profiles/id/{id}`` + operationId: ``IdentityAccessManagement_GetAuthProfile`` + """ + path = f"/v1/authorization/profiles/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=CrudResponseRead) + + def delete_auth_profile(self, id: str, request_id: str | None = None) -> CrudResponse: + """Delete AAA profile + + ``DELETE /v1/authorization/profiles/id/{id}`` + operationId: ``IdentityAccessManagement_DeleteAuthProfile`` + """ + path = f"/v1/authorization/profiles/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=CrudResponse) + + def update_auth_profile(self, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> CrudResponse: + """Update AAA profile + + ``PUT /v1/authorization/profiles/id/{id}`` + operationId: ``IdentityAccessManagement_UpdateAuthProfile`` + """ + path = f"/v1/authorization/profiles/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=CrudResponse) + + def get_auth_profile_by_name(self, name: str, request_id: str | None = None) -> CrudResponseRead: + """Get AAA profile + + ``GET /v1/authorization/profiles/name/{name}`` + operationId: ``IdentityAccessManagement_GetAuthProfileByName`` + """ + path = f"/v1/authorization/profiles/name/{name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=CrudResponseRead) + + def query_doc_policy( + self, + summary: bool | None = None, + sfdc_id: str | None = None, + hubspot_id: str | None = None, + project: str | None = None, + name_pattern: str | None = None, + all: bool | None = None, + role_name: str | None = None, + size: str | None = None, + email_pattern: str | None = None, + title_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> CrudResponse: + """Query document policy + + ``GET /v1/cloud/policies`` + operationId: ``IdentityAccessManagement_QueryDocPolicy`` + """ + path = "/v1/cloud/policies" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if sfdc_id is not None: + params["SfdcId"] = sfdc_id + if hubspot_id is not None: + params["HubspotId"] = hubspot_id + if project is not None: + params["project"] = project + if name_pattern is not None: + params["namePattern"] = name_pattern + if all is not None: + params["all"] = all + if role_name is not None: + params["roleName"] = role_name + if size is not None: + params["size"] = size + if email_pattern is not None: + params["emailPattern"] = email_pattern + if title_pattern is not None: + params["titlePattern"] = title_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=CrudResponse) + + def create_doc_policy(self, body: DocPolicy | dict[str, Any], request_id: str | None = None) -> CrudResponse: + """Create document policy + + ``POST /v1/cloud/policies`` + operationId: ``IdentityAccessManagement_CreateDocPolicy`` + """ + path = "/v1/cloud/policies" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=CrudResponse) + + def get_doc_policy(self, id: str, request_id: str | None = None) -> CrudResponseRead: + """Get document policy by id + + ``GET /v1/cloud/policies/id/{id}`` + operationId: ``IdentityAccessManagement_GetDocPolicy`` + """ + path = f"/v1/cloud/policies/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=CrudResponseRead) + + def delete_doc_policy(self, id: str, request_id: str | None = None) -> CrudResponse: + """Deletes document policy by id + + ``DELETE /v1/cloud/policies/id/{id}`` + operationId: ``IdentityAccessManagement_DeleteDocPolicy`` + """ + path = f"/v1/cloud/policies/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=CrudResponse) + + def update_doc_policy_latest(self, body: DocPolicy | dict[str, Any], request_id: str | None = None) -> CrudResponse: + """Mark document policy as latest + + ``PUT /v1/cloud/policies/latest`` + operationId: ``IdentityAccessManagement_UpdateDocPolicyLatest`` + """ + path = "/v1/cloud/policies/latest" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=CrudResponse) + + def create_credential(self, body: Credential | dict[str, Any], request_id: str | None = None) -> CrudResponse: + """Create IAM credential + + ``POST /v1/credentials`` + operationId: ``IdentityAccessManagement_CreateCredential`` + """ + path = "/v1/credentials" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=CrudResponse) + + def update_credential(self, body: Credential | dict[str, Any], request_id: str | None = None) -> CrudResponse: + """Update IAM credential + + ``PUT /v1/credentials`` + operationId: ``IdentityAccessManagement_UpdateCredential`` + """ + path = "/v1/credentials" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=CrudResponse) + + def delete_credential(self, id: str, request_id: str | None = None) -> CrudResponse: + """Delete IAM credential + + ``DELETE /v1/credentials/id/{id}`` + operationId: ``IdentityAccessManagement_DeleteCredential`` + """ + path = f"/v1/credentials/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=CrudResponse) + + def update_credential_self(self, body: Credential | dict[str, Any], request_id: str | None = None) -> CrudResponse: + """Update IAM credential + + ``PUT /v1/credentials/self`` + operationId: ``IdentityAccessManagement_UpdateCredentialSelf`` + """ + path = "/v1/credentials/self" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=CrudResponse) + + def query_enterprises( + self, + summary: bool | None = None, + sfdc_id: str | None = None, + hubspot_id: str | None = None, + project: str | None = None, + name_pattern: str | None = None, + all: bool | None = None, + role_name: str | None = None, + size: str | None = None, + email_pattern: str | None = None, + title_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> CrudResponse: + """Query IAM Enterprises + + ``GET /v1/enterprises`` + operationId: ``IdentityAccessManagement_QueryEnterprises`` + """ + path = "/v1/enterprises" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if sfdc_id is not None: + params["SfdcId"] = sfdc_id + if hubspot_id is not None: + params["HubspotId"] = hubspot_id + if project is not None: + params["project"] = project + if name_pattern is not None: + params["namePattern"] = name_pattern + if all is not None: + params["all"] = all + if role_name is not None: + params["roleName"] = role_name + if size is not None: + params["size"] = size + if email_pattern is not None: + params["emailPattern"] = email_pattern + if title_pattern is not None: + params["titlePattern"] = title_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=CrudResponse) + + def create_enterprise(self, body: Enterprise | dict[str, Any], request_id: str | None = None) -> CrudResponse: + """Create IAM Enterprise + + ``POST /v1/enterprises`` + operationId: ``IdentityAccessManagement_CreateEnterprise`` + """ + path = "/v1/enterprises" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=CrudResponse) + + def get_enterprise(self, id: str, request_id: str | None = None) -> CrudResponseRead: + """Get enterprise + + ``GET /v1/enterprises/id/{id}`` + operationId: ``IdentityAccessManagement_GetEnterprise`` + """ + path = f"/v1/enterprises/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=CrudResponseRead) + + def delete_enterprise(self, id: str, request_id: str | None = None) -> CrudResponse: + """Delete IAM role + + ``DELETE /v1/enterprises/id/{id}`` + operationId: ``IdentityAccessManagement_DeleteEnterprise`` + """ + path = f"/v1/enterprises/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=CrudResponse) + + def update_enterprise2(self, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> CrudResponse: + """Update enterprise + + ``PUT /v1/enterprises/id/{id}`` + operationId: ``IdentityAccessManagement_UpdateEnterprise2`` + """ + path = f"/v1/enterprises/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=CrudResponse) + + def get_enterprise_by_name(self, name: str, request_id: str | None = None) -> CrudResponseRead: + """Get enterprise + + ``GET /v1/enterprises/name/{name}`` + operationId: ``IdentityAccessManagement_GetEnterpriseByName`` + """ + path = f"/v1/enterprises/name/{name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=CrudResponseRead) + + def get_enterprise_self(self, request_id: str | None = None) -> CrudResponseRead: + """Get own enterprise + + ``GET /v1/enterprises/self`` + operationId: ``IdentityAccessManagement_GetEnterpriseSelf`` + """ + path = "/v1/enterprises/self" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=CrudResponseRead) + + def update_enterprise(self, body: Enterprise | dict[str, Any], request_id: str | None = None) -> CrudResponse: + """Update enterprise + + ``PUT /v1/enterprises/self`` + operationId: ``IdentityAccessManagement_UpdateEnterprise`` + """ + path = "/v1/enterprises/self" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=CrudResponse) + + def get_enterprise_entitlement_data(self, tenant_id: str | None = None, request_id: str | None = None) -> Entitlement: + """Get entitlement data for a enterprise + + ``GET /v1/entitlements`` + operationId: ``EnterpriseEntitlementsReport_GetEnterpriseEntitlementData`` + """ + path = "/v1/entitlements" + params: dict[str, Any] = {} + if tenant_id is not None: + params["tenantId"] = tenant_id + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=Entitlement) + + def create_enterprise_entitlement_data(self, body: Entitlement | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Set entitlement data for a enterprise + + ``PUT /v1/entitlements`` + operationId: ``EnterpriseEntitlementsReport_CreateEnterpriseEntitlementData`` + """ + path = "/v1/entitlements" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_allowed_enterprises_for_entitlements( + self, + summary: bool | None = None, + sfdc_id: str | None = None, + hubspot_id: str | None = None, + project: str | None = None, + name_pattern: str | None = None, + all: bool | None = None, + role_name: str | None = None, + size: str | None = None, + email_pattern: str | None = None, + title_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> CrudResponse: + """Get the list of enterprises of which the logged user can view/edit entitlements + + ``GET /v1/entitlements/allowedenterprises`` + operationId: ``EnterpriseEntitlementsReport_GetAllowedEnterprisesForEntitlements`` + """ + path = "/v1/entitlements/allowedenterprises" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if sfdc_id is not None: + params["SfdcId"] = sfdc_id + if hubspot_id is not None: + params["HubspotId"] = hubspot_id + if project is not None: + params["project"] = project + if name_pattern is not None: + params["namePattern"] = name_pattern + if all is not None: + params["all"] = all + if role_name is not None: + params["roleName"] = role_name + if size is not None: + params["size"] = size + if email_pattern is not None: + params["emailPattern"] = email_pattern + if title_pattern is not None: + params["titlePattern"] = title_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=CrudResponse) + + def login( + self, + body: AAAFrontendLoginWithPasswordRequest | dict[str, Any], + request_id: str | None = None, + ) -> AAAFrontendLoginResponse: + """Login locally + + ``POST /v1/login`` + operationId: ``IdentityAccessManagement_Login`` + """ + path = "/v1/login" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=AAAFrontendLoginResponse) + + def login_external( + self, + body: AAAFrontendLoginWithOauthRequest | dict[str, Any], + request_id: str | None = None, + ) -> AAAFrontendLoginResponse: + """Login externally + + ``POST /v1/login/external`` + operationId: ``IdentityAccessManagement_LoginExternal`` + """ + path = "/v1/login/external" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=AAAFrontendLoginResponse) + + def login_forgot_password(self, body: AAARequestLoginForgotPassword | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Reset forgotten password + + ``POST /v1/login/forgot`` + operationId: ``IdentityAccessManagement_LoginForgotPassword`` + """ + path = "/v1/login/forgot" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def login_mode(self, body: AAAFrontendLoginModeRequest | dict[str, Any], request_id: str | None = None) -> AAAFrontendLoginModeResponse: + """Get AAA mode of the user + + ``POST /v1/login/mode`` + operationId: ``IdentityAccessManagement_LoginMode`` + """ + path = "/v1/login/mode" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=AAAFrontendLoginModeResponse) + + def login_external_o_auth2_callback( + self, + body: AAAFrontendOAUTHCallbackRequest | dict[str, Any], + request_id: str | None = None, + ) -> AAAFrontendLoginResponse: + """Login callback + + ``POST /v1/login/oauth/callback`` + operationId: ``IdentityAccessManagement_LoginExternalOAuth2Callback`` + """ + path = "/v1/login/oauth/callback" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=AAAFrontendLoginResponse) + + def signup_enterprise(self, body: AAARequestEnterpriseSignup | dict[str, Any], request_id: str | None = None) -> AAAResponse: + """Sign up for a new enterprise account + + ``POST /v1/login/signup/enterprise`` + operationId: ``IdentityAccessManagement_SignupEnterprise`` + """ + path = "/v1/login/signup/enterprise" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=AAAResponse) + + def signup_user(self, body: AAARequestAdminUserSignup | dict[str, Any], request_id: str | None = None) -> AAAResponse: + """Get enterprise + + ``POST /v1/login/signup/user`` + operationId: ``IdentityAccessManagement_SignupUser`` + """ + path = "/v1/login/signup/user" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=AAAResponse) + + def logout(self, body: AAAFrontendLogoutRequest | dict[str, Any], request_id: str | None = None) -> AAAFrontendLogoutResponse: + """Logout + + ``POST /v1/logout`` + operationId: ``IdentityAccessManagement_Logout`` + """ + path = "/v1/logout" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=AAAFrontendLogoutResponse) + + def query_realms( + self, + summary: bool | None = None, + sfdc_id: str | None = None, + hubspot_id: str | None = None, + project: str | None = None, + name_pattern: str | None = None, + all: bool | None = None, + role_name: str | None = None, + size: str | None = None, + email_pattern: str | None = None, + title_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> CrudResponse: + """Query all realms + + ``GET /v1/realms`` + operationId: ``IdentityAccessManagement_QueryRealms`` + """ + path = "/v1/realms" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if sfdc_id is not None: + params["SfdcId"] = sfdc_id + if hubspot_id is not None: + params["HubspotId"] = hubspot_id + if project is not None: + params["project"] = project + if name_pattern is not None: + params["namePattern"] = name_pattern + if all is not None: + params["all"] = all + if role_name is not None: + params["roleName"] = role_name + if size is not None: + params["size"] = size + if email_pattern is not None: + params["emailPattern"] = email_pattern + if title_pattern is not None: + params["titlePattern"] = title_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=CrudResponse) + + def create_realm(self, body: Realm | dict[str, Any], request_id: str | None = None) -> CrudResponse: + """Create a realm for an enterprise + + ``POST /v1/realms`` + operationId: ``IdentityAccessManagement_CreateRealm`` + """ + path = "/v1/realms" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=CrudResponse) + + def get_realm(self, id: str, request_id: str | None = None) -> CrudResponseRead: + """Get a realm + + ``GET /v1/realms/id/{id}`` + operationId: ``IdentityAccessManagement_GetRealm`` + """ + path = f"/v1/realms/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=CrudResponseRead) + + def delete_realm(self, id: str, request_id: str | None = None) -> CrudResponse: + """Delete a realm + + ``DELETE /v1/realms/id/{id}`` + operationId: ``IdentityAccessManagement_DeleteRealm`` + """ + path = f"/v1/realms/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=CrudResponse) + + def update_realm(self, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> CrudResponse: + """Update a realm + + ``PUT /v1/realms/id/{id}`` + operationId: ``IdentityAccessManagement_UpdateRealm`` + """ + path = f"/v1/realms/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=CrudResponse) + + def get_realm_by_name(self, name: str, request_id: str | None = None) -> CrudResponseRead: + """Get IAM realm + + ``GET /v1/realms/name/{name}`` + operationId: ``IdentityAccessManagement_GetRealmByName`` + """ + path = f"/v1/realms/name/{name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=CrudResponseRead) + + def get_allowed_enterprises( + self, + summary: bool | None = None, + sfdc_id: str | None = None, + hubspot_id: str | None = None, + project: str | None = None, + name_pattern: str | None = None, + all: bool | None = None, + role_name: str | None = None, + size: str | None = None, + email_pattern: str | None = None, + title_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> CrudResponse: + """Get the list of enterprises of which the logged user can query reports + + ``GET /v1/reports/allowedenterprises`` + operationId: ``EnterpriseEntitlementsReport_GetAllowedEnterprises`` + """ + path = "/v1/reports/allowedenterprises" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if sfdc_id is not None: + params["SfdcId"] = sfdc_id + if hubspot_id is not None: + params["HubspotId"] = hubspot_id + if project is not None: + params["project"] = project + if name_pattern is not None: + params["namePattern"] = name_pattern + if all is not None: + params["all"] = all + if role_name is not None: + params["roleName"] = role_name + if size is not None: + params["size"] = size + if email_pattern is not None: + params["emailPattern"] = email_pattern + if title_pattern is not None: + params["titlePattern"] = title_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=CrudResponse) + + def get_app_inst_report(self, tenant_id: str | None = None, request_id: str | None = None) -> AppInstReport: + """Get appInst report + + ``GET /v1/reports/apps/instance`` + operationId: ``EnterpriseEntitlementsReport_GetAppInstReport`` + """ + path = "/v1/reports/apps/instance" + params: dict[str, Any] = {} + if tenant_id is not None: + params["tenantId"] = tenant_id + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AppInstReport) + + def get_device_report(self, tenant_id: str | None = None, request_id: str | None = None) -> DeviceReport: + """Get device report + + ``GET /v1/reports/device`` + operationId: ``EnterpriseEntitlementsReport_GetDeviceReport`` + """ + path = "/v1/reports/device" + params: dict[str, Any] = {} + if tenant_id is not None: + params["tenantId"] = tenant_id + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=DeviceReport) + + def get_plugin_report(self, tenant_id: str | None = None, request_id: str | None = None) -> PluginReport: + """Get plugin report + + ``GET /v1/reports/plugin`` + operationId: ``EnterpriseEntitlementsReport_GetPluginReport`` + """ + path = "/v1/reports/plugin" + params: dict[str, Any] = {} + if tenant_id is not None: + params["tenantId"] = tenant_id + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=PluginReport) + + def get_project_report(self, tenant_id: str | None = None, request_id: str | None = None) -> ProjectReport: + """Get project report + + ``GET /v1/reports/project`` + operationId: ``EnterpriseEntitlementsReport_GetProjectReport`` + """ + path = "/v1/reports/project" + params: dict[str, Any] = {} + if tenant_id is not None: + params["tenantId"] = tenant_id + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ProjectReport) + + def get_user_report(self, tenant_id: str | None = None, request_id: str | None = None) -> UserReport: + """Get user report + + ``GET /v1/reports/user`` + operationId: ``EnterpriseEntitlementsReport_GetUserReport`` + """ + path = "/v1/reports/user" + params: dict[str, Any] = {} + if tenant_id is not None: + params["tenantId"] = tenant_id + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=UserReport) + + def query_roles( + self, + summary: bool | None = None, + sfdc_id: str | None = None, + hubspot_id: str | None = None, + project: str | None = None, + name_pattern: str | None = None, + all: bool | None = None, + role_name: str | None = None, + size: str | None = None, + email_pattern: str | None = None, + title_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> CrudResponse: + """Query IAM Roles + + ``GET /v1/roles`` + operationId: ``IdentityAccessManagement_QueryRoles`` + """ + path = "/v1/roles" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if sfdc_id is not None: + params["SfdcId"] = sfdc_id + if hubspot_id is not None: + params["HubspotId"] = hubspot_id + if project is not None: + params["project"] = project + if name_pattern is not None: + params["namePattern"] = name_pattern + if all is not None: + params["all"] = all + if role_name is not None: + params["roleName"] = role_name + if size is not None: + params["size"] = size + if email_pattern is not None: + params["emailPattern"] = email_pattern + if title_pattern is not None: + params["titlePattern"] = title_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=CrudResponse) + + def create_role(self, body: Role | dict[str, Any], request_id: str | None = None) -> CrudResponse: + """Create IAM role + + ``POST /v1/roles`` + operationId: ``IdentityAccessManagement_CreateRole`` + """ + path = "/v1/roles" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=CrudResponse) + + def get_role(self, id: str, request_id: str | None = None) -> CrudResponseRead: + """Get IAM role + + ``GET /v1/roles/id/{id}`` + operationId: ``IdentityAccessManagement_GetRole`` + """ + path = f"/v1/roles/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=CrudResponseRead) + + def delete_role(self, id: str, request_id: str | None = None) -> CrudResponse: + """Delete IAM role + + ``DELETE /v1/roles/id/{id}`` + operationId: ``IdentityAccessManagement_DeleteRole`` + """ + path = f"/v1/roles/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=CrudResponse) + + def update_role(self, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> CrudResponse: + """Update IAM role + + ``PUT /v1/roles/id/{id}`` + operationId: ``IdentityAccessManagement_UpdateRole`` + """ + path = f"/v1/roles/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=CrudResponse) + + def get_role_by_name(self, name: str, request_id: str | None = None) -> CrudResponseRead: + """Get IAM role + + ``GET /v1/roles/name/{name}`` + operationId: ``IdentityAccessManagement_GetRoleByName`` + """ + path = f"/v1/roles/name/{name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=CrudResponseRead) + + def get_role_self(self, request_id: str | None = None) -> CrudResponseRead: + """Get own IAM role + + ``GET /v1/roles/self`` + operationId: ``IdentityAccessManagement_GetRoleSelf`` + """ + path = "/v1/roles/self" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=CrudResponseRead) + + def query_user_sessions(self, request_id: str | None = None) -> AAASuccessResponseQueryAllSessionDetails: + """Query user sessions + + ``GET /v1/sessions`` + operationId: ``IdentityAccessManagement_QueryUserSessions`` + """ + path = "/v1/sessions" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AAASuccessResponseQueryAllSessionDetails) + + def refresh_user_session(self, request_id: str | None = None) -> AAAFrontendRefreshResponse: + """Refresh current user session + + ``PUT /v1/sessions/refresh`` + operationId: ``IdentityAccessManagement_RefreshUserSession`` + """ + path = "/v1/sessions/refresh" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, response_model=AAAFrontendRefreshResponse) + + def get_user_session_self(self, request_id: str | None = None) -> AAAFrontendSessionDetailsResponse: + """Get current user session + + ``GET /v1/sessions/self`` + operationId: ``IdentityAccessManagement_GetUserSessionSelf`` + """ + path = "/v1/sessions/self" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AAAFrontendSessionDetailsResponse) + + def get_user_session2(self, session_token_base64: str | None = None, request_id: str | None = None) -> AAAFrontendSessionDetailsResponse: + """Get user session + + ``GET /v1/sessions/token`` + operationId: ``IdentityAccessManagement_GetUserSession2`` + """ + path = "/v1/sessions/token" + params: dict[str, Any] = {} + if session_token_base64 is not None: + params["sessionToken.base64"] = session_token_base64 + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AAAFrontendSessionDetailsResponse) + + def create_user_session_self(self, request_id: str | None = None) -> AAAFrontendGenerateTokenResponse: + """Generate a new session token + + ``POST /v1/sessions/token/self`` + operationId: ``IdentityAccessManagement_CreateUserSessionSelf`` + """ + path = "/v1/sessions/token/self" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, response_model=AAAFrontendGenerateTokenResponse) + + def get_user_session(self, session_token_base64: str, request_id: str | None = None) -> AAAFrontendSessionDetailsResponse: + """Get user session + + ``GET /v1/sessions/token/{sessionToken.base64}`` + operationId: ``IdentityAccessManagement_GetUserSession`` + """ + path = f"/v1/sessions/token/{session_token_base64}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=AAAFrontendSessionDetailsResponse) + + def query_users( + self, + summary: bool | None = None, + sfdc_id: str | None = None, + hubspot_id: str | None = None, + project: str | None = None, + name_pattern: str | None = None, + all: bool | None = None, + role_name: str | None = None, + size: str | None = None, + email_pattern: str | None = None, + title_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> CrudResponse: + """Query IAM users + + ``GET /v1/users`` + operationId: ``IdentityAccessManagement_QueryUsers`` + """ + path = "/v1/users" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if sfdc_id is not None: + params["SfdcId"] = sfdc_id + if hubspot_id is not None: + params["HubspotId"] = hubspot_id + if project is not None: + params["project"] = project + if name_pattern is not None: + params["namePattern"] = name_pattern + if all is not None: + params["all"] = all + if role_name is not None: + params["roleName"] = role_name + if size is not None: + params["size"] = size + if email_pattern is not None: + params["emailPattern"] = email_pattern + if title_pattern is not None: + params["titlePattern"] = title_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=CrudResponse) + + def create_user(self, body: DetailedUser | dict[str, Any], request_id: str | None = None) -> CrudResponse: + """Create IAM user + + ``POST /v1/users`` + operationId: ``IdentityAccessManagement_CreateUser`` + """ + path = "/v1/users" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=CrudResponse) + + def get_user(self, id: str, request_id: str | None = None) -> CrudResponseRead: + """Get IAM user + + ``GET /v1/users/id/{id}`` + operationId: ``IdentityAccessManagement_GetUser`` + """ + path = f"/v1/users/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=CrudResponseRead) + + def delete_user(self, id: str, request_id: str | None = None) -> CrudResponse: + """Delete IAM user + + ``DELETE /v1/users/id/{id}`` + operationId: ``IdentityAccessManagement_DeleteUser`` + """ + path = f"/v1/users/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=CrudResponse) + + def update_user2(self, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> CrudResponse: + """Update IAM user + + ``PUT /v1/users/id/{id}`` + operationId: ``IdentityAccessManagement_UpdateUser2`` + """ + path = f"/v1/users/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=CrudResponse) + + def get_user_by_name(self, name: str, request_id: str | None = None) -> CrudResponseRead: + """Get IAM user + + ``GET /v1/users/name/{name}`` + operationId: ``IdentityAccessManagement_GetUserByName`` + """ + path = f"/v1/users/name/{name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=CrudResponseRead) + + def get_user_self(self, request_id: str | None = None) -> CrudResponseRead: + """Get own IAM user + + ``GET /v1/users/self`` + operationId: ``IdentityAccessManagement_GetUserSelf`` + """ + path = "/v1/users/self" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=CrudResponseRead) + + def update_user(self, body: DetailedUser | dict[str, Any], request_id: str | None = None) -> CrudResponse: + """Update IAM user + + ``PUT /v1/users/self`` + operationId: ``IdentityAccessManagement_UpdateUser`` + """ + path = "/v1/users/self" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=CrudResponse) diff --git a/packages/zedcloud/src/zedcloud/_generated/services/jobs.py b/packages/zedcloud/src/zedcloud/_generated/services/jobs.py new file mode 100644 index 0000000..be36f23 --- /dev/null +++ b/packages/zedcloud/src/zedcloud/_generated/services/jobs.py @@ -0,0 +1,269 @@ +# Generated by scripts/generate_from_openapi.py — namespace "jobs" +# Do not edit by hand. + +from __future__ import annotations + +from typing import Any + +from zedcloud.services.base import BaseService +from zedcloud._generated.models.jobs import ( + BulkConfig, + JobConfig, + JobConfigList, + ZsrvResponse, +) + + +class JobsService(BaseService): + """Auto-generated client for ZEDEDA Job Service.""" + + def query_jobs( + self, + summary: bool | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + job_status: int | None = None, + project_name: str | None = None, + name_pattern: str | None = None, + request_id: str | None = None, + ) -> JobConfigList: + """Query asynchronous job requests + + ``GET /v1/jobs`` + operationId: ``BulkJobOps_QueryJobs`` + """ + path = "/v1/jobs" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if job_status is not None: + params["jobStatus"] = job_status + if project_name is not None: + params["projectName"] = project_name + if name_pattern is not None: + params["namePattern"] = name_pattern + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=JobConfigList) + + def create_job(self, body: JobConfig | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Create asynchronous job request + + ``POST /v1/jobs`` + operationId: ``BulkJobOps_CreateJob`` + """ + path = "/v1/jobs" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def bulk_import_edge_applications(self, body: BulkConfig | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Update job request to import edge application bundles + + ``PUT /v1/jobs/apps/bundles/import`` + operationId: ``BulkJobOps_BulkImportEdgeApplications`` + """ + path = "/v1/jobs/apps/bundles/import" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def bulk_create_edge_application_instances(self, body: BulkConfig | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Update job request to create edge application instances + + ``PUT /v1/jobs/apps/instances/create`` + operationId: ``BulkJobOps_BulkCreateEdgeApplicationInstances`` + """ + path = "/v1/jobs/apps/instances/create" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def bulk_refresh_edge_application_instances(self, body: BulkConfig | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Update job request to refresh edge application instances + + ``PUT /v1/jobs/apps/instances/refresh`` + operationId: ``BulkJobOps_BulkRefreshEdgeApplicationInstances`` + """ + path = "/v1/jobs/apps/instances/refresh" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def bulk_refresh_and_purge_edge_application_instances(self, body: BulkConfig | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Update job request to refresh and purge edge application instances + + ``PUT /v1/jobs/apps/instances/refresh/purge`` + operationId: ``BulkJobOps_BulkRefreshAndPurgeEdgeApplicationInstances`` + """ + path = "/v1/jobs/apps/instances/refresh/purge" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def bulk_update_edge_node_base_os(self, body: BulkConfig | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Update job request to update EVE image on edge nodes + + ``PUT /v1/jobs/devices/baseos/upgrade`` + operationId: ``BulkJobOps_BulkUpdateEdgeNodeBaseOS`` + """ + path = "/v1/jobs/devices/baseos/upgrade" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def bulk_update_edge_node_base_os_retry(self, body: BulkConfig | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Update job request to retry update EVE image on edge nodes + + ``PUT /v1/jobs/devices/baseos/upgrade/retry`` + operationId: ``BulkJobOps_BulkUpdateEdgeNodeBaseOSRetry`` + """ + path = "/v1/jobs/devices/baseos/upgrade/retry" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def bulk_update_edge_node_base_os_deployment_tag(self, body: BulkConfig | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Update job request to update Deployment tag on edge nodes in bulk. + + ``PUT /v1/jobs/devices/deployment/tags`` + operationId: ``BulkJobOps_BulkUpdateEdgeNodeBaseOSDeploymentTag`` + """ + path = "/v1/jobs/devices/deployment/tags" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def bulk_update_edge_node_base_os_project(self, body: BulkConfig | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Update job request to update EVE image project and target on edge nodes + + ``PUT /v1/jobs/devices/project/target`` + operationId: ``BulkJobOps_BulkUpdateEdgeNodeBaseOSProject`` + """ + path = "/v1/jobs/devices/project/target" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def bulk_update_edge_node_base_os_tag(self, body: BulkConfig | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Update job request to update EVE image tag on edge nodes + + ``PUT /v1/jobs/devices/tags`` + operationId: ``BulkJobOps_BulkUpdateEdgeNodeBaseOSTag`` + """ + path = "/v1/jobs/devices/tags" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_job_by_id(self, id: str, request_id: str | None = None) -> JobConfig: + """Get asynchronous job request + + ``GET /v1/jobs/id/{id}`` + operationId: ``BulkJobOps_GetJobById`` + """ + path = f"/v1/jobs/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=JobConfig) + + def update_job(self, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """Update asynchronous job request + + ``PUT /v1/jobs/id/{id}`` + operationId: ``BulkJobOps_UpdateJob`` + """ + path = f"/v1/jobs/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_job(self, id: str, object_type: str, request_id: str | None = None) -> JobConfig: + """Get asynchronous job request + + ``GET /v1/jobs/id/{id}/objectType/{objectType}`` + operationId: ``BulkJobOps_GetJob`` + """ + path = f"/v1/jobs/id/{id}/objectType/{object_type}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=JobConfig) + + def delete_job(self, id: str, object_type: str, request_id: str | None = None) -> ZsrvResponse: + """Delete asynchronous job request + + ``DELETE /v1/jobs/id/{id}/objectType/{objectType}`` + operationId: ``BulkJobOps_DeleteJob`` + """ + path = f"/v1/jobs/id/{id}/objectType/{object_type}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def bulk_import_hardware_models(self, body: BulkConfig | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Update job request to import hardware models + + ``PUT /v1/jobs/models/import`` + operationId: ``BulkJobOps_BulkImportHardwareModels`` + """ + path = "/v1/jobs/models/import" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_job_by_name(self, name: str, object_type: str, request_id: str | None = None) -> JobConfig: + """Get asynchronous job request + + ``GET /v1/jobs/name/{name}/objectType/{objectType}`` + operationId: ``BulkJobOps_GetJobByName`` + """ + path = f"/v1/jobs/name/{name}/objectType/{object_type}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=JobConfig) diff --git a/packages/zedcloud/src/zedcloud/_generated/services/k8s.py b/packages/zedcloud/src/zedcloud/_generated/services/k8s.py new file mode 100644 index 0000000..77c32bc --- /dev/null +++ b/packages/zedcloud/src/zedcloud/_generated/services/k8s.py @@ -0,0 +1,817 @@ +# Generated by scripts/generate_from_openapi.py — namespace "k8s" +# Do not edit by hand. + +from __future__ import annotations + +from typing import Any + +from zedcloud.services.base import BaseService +from zedcloud._generated.models.k8s import ( + ClusterGroup, + ClusterGroupManifestOutput, + ClusterGroupStatusListResp, + DeploymentGetResponse, + DeploymentListResponse, + DeploymentRequest, + GitRepoCreateRequest, + GitRepoGetResponse, + GitRepoListResponse, + HelmChartInfoResponse, + HelmChartListResponse, + PrivateRepoCreateRequest, + PrivateRepoGetByIdResponse, + PrivateRepoListResponse, + SecretCreateRequest, + SecretInfoResponse, + SecretListResponse, + SnapshotListResponse, + SnapshotOperationResponse, + ZksInstance, + ZksInstanceBulkUpdate, + ZksInstanceK3sBulkUpgrade, + ZksInstanceMetrics, + ZksInstanceRegistrationInfo, + ZksInstanceStatusListResp, + ZksInstancesList, + ZksK3sVersionList, + ZsrvResponse, +) + + +class K8sService(BaseService): + """Auto-generated client for ZEDEDA Kubernetes Service.""" + + def list_deployments(self, request_id: str | None = None) -> DeploymentListResponse: + """List all deployments + + ``GET /v1/cluster/instances/kubernetes/deployments`` + operationId: ``KubernetesDeployments_ListDeployments`` + """ + path = "/v1/cluster/instances/kubernetes/deployments" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=DeploymentListResponse) + + def create_deployment(self, body: DeploymentRequest | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Create a new Kubernetes deployment + + ``POST /v1/cluster/instances/kubernetes/deployments`` + operationId: ``KubernetesDeployments_CreateDeployment`` + """ + path = "/v1/cluster/instances/kubernetes/deployments" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_deployment(self, deployment_id: str, request_id: str | None = None) -> DeploymentGetResponse: + """Get deployment by ID + + ``GET /v1/cluster/instances/kubernetes/deployments/id/{deploymentId}`` + operationId: ``KubernetesDeployments_GetDeployment`` + """ + path = f"/v1/cluster/instances/kubernetes/deployments/id/{deployment_id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=DeploymentGetResponse) + + def delete_deployment(self, deployment_id: str, request_id: str | None = None) -> ZsrvResponse: + """Delete a deployment + + ``DELETE /v1/cluster/instances/kubernetes/deployments/id/{deploymentId}`` + operationId: ``KubernetesDeployments_DeleteDeployment`` + """ + path = f"/v1/cluster/instances/kubernetes/deployments/id/{deployment_id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def update_deployment( + self, + deployment_id: str, + body: DeploymentRequest | dict[str, Any], + request_id: str | None = None, + ) -> ZsrvResponse: + """Update a deployment + + ``PUT /v1/cluster/instances/kubernetes/deployments/id/{deploymentId}`` + operationId: ``KubernetesDeployments_UpdateDeployment`` + """ + path = f"/v1/cluster/instances/kubernetes/deployments/id/{deployment_id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def list_git_repos(self, request_id: str | None = None) -> GitRepoListResponse: + """List all GitRepo configurations + + ``GET /v1/cluster/instances/kubernetes/gitrepos`` + operationId: ``KubernetesGitOps_ListGitRepos`` + """ + path = "/v1/cluster/instances/kubernetes/gitrepos" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=GitRepoListResponse) + + def create_git_repo(self, body: GitRepoCreateRequest | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Create a new GitRepo configuration + + ``POST /v1/cluster/instances/kubernetes/gitrepos`` + operationId: ``KubernetesGitOps_CreateGitRepo`` + """ + path = "/v1/cluster/instances/kubernetes/gitrepos" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_git_repo(self, gitrepo_id: str, request_id: str | None = None) -> GitRepoGetResponse: + """Get GitRepo configuration by ID + + ``GET /v1/cluster/instances/kubernetes/gitrepos/id/{gitrepoId}`` + operationId: ``KubernetesGitOps_GetGitRepo`` + """ + path = f"/v1/cluster/instances/kubernetes/gitrepos/id/{gitrepo_id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=GitRepoGetResponse) + + def delete_git_repo(self, gitrepo_id: str, request_id: str | None = None) -> ZsrvResponse: + """Delete GitRepo configuration + + ``DELETE /v1/cluster/instances/kubernetes/gitrepos/id/{gitrepoId}`` + operationId: ``KubernetesGitOps_DeleteGitRepo`` + """ + path = f"/v1/cluster/instances/kubernetes/gitrepos/id/{gitrepo_id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def update_git_repo(self, gitrepo_id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """Update GitRepo configuration + + ``PUT /v1/cluster/instances/kubernetes/gitrepos/id/{gitrepoId}`` + operationId: ``KubernetesGitOps_UpdateGitRepo`` + """ + path = f"/v1/cluster/instances/kubernetes/gitrepos/id/{gitrepo_id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def list_helm_charts(self, request_id: str | None = None) -> HelmChartListResponse: + """List Helm Charts + + ``GET /v1/cluster/instances/kubernetes/helm/charts`` + operationId: ``HelmChartManagement_ListHelmCharts`` + """ + path = "/v1/cluster/instances/kubernetes/helm/charts" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=HelmChartListResponse) + + def create_helm_chart(self, request_id: str | None = None) -> ZsrvResponse: + """Create Helm Chart + + ``POST /v1/cluster/instances/kubernetes/helm/charts`` + operationId: ``HelmChartManagement_CreateHelmChart`` + """ + path = "/v1/cluster/instances/kubernetes/helm/charts" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def delete_helm_chart(self, chart_name: str, request_id: str | None = None) -> ZsrvResponse: + """Delete Helm Chart + + ``DELETE /v1/cluster/instances/kubernetes/helm/charts/name/{chartName}`` + operationId: ``HelmChartManagement_DeleteHelmChart`` + """ + path = f"/v1/cluster/instances/kubernetes/helm/charts/name/{chart_name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def get_helm_chart( + self, + chart_name: str, + chart_version: str, + repo_identifier: str | None = None, + request_id: str | None = None, + ) -> HelmChartInfoResponse: + """Get Helm Chart + + ``GET /v1/cluster/instances/kubernetes/helm/charts/name/{chartName}/version/{chartVersion}`` + operationId: ``HelmChartManagement_GetHelmChart`` + """ + path = f"/v1/cluster/instances/kubernetes/helm/charts/name/{chart_name}/version/{chart_version}" + params: dict[str, Any] = {} + if repo_identifier is not None: + params["repoIdentifier"] = repo_identifier + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=HelmChartInfoResponse) + + def update_helm_chart(self, chart_name: str, chart_version: str, request_id: str | None = None) -> ZsrvResponse: + """Update Helm Chart + + ``PUT /v1/cluster/instances/kubernetes/helm/charts/name/{chartName}/version/{chartVersion}`` + operationId: ``HelmChartManagement_UpdateHelmChart`` + """ + path = f"/v1/cluster/instances/kubernetes/helm/charts/name/{chart_name}/version/{chart_version}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def list_private_repos(self, request_id: str | None = None) -> PrivateRepoListResponse: + """List all private Helm repositories + + ``GET /v1/cluster/instances/kubernetes/helm/repository`` + operationId: ``PrivateHelmRepositories_ListPrivateRepos`` + """ + path = "/v1/cluster/instances/kubernetes/helm/repository" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=PrivateRepoListResponse) + + def create_private_repo(self, body: PrivateRepoCreateRequest | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Create a new private Helm repository + + ``POST /v1/cluster/instances/kubernetes/helm/repository`` + operationId: ``PrivateHelmRepositories_CreatePrivateRepo`` + """ + path = "/v1/cluster/instances/kubernetes/helm/repository" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def update_private_repo(self, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """Update private Helm repository + + ``PUT /v1/cluster/instances/kubernetes/helm/repository/id/{id}`` + operationId: ``PrivateHelmRepositories_UpdatePrivateRepo`` + """ + path = f"/v1/cluster/instances/kubernetes/helm/repository/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_private_repo(self, private_repo_id: str, request_id: str | None = None) -> PrivateRepoGetByIdResponse: + """Get private Helm repository by ID + + ``GET /v1/cluster/instances/kubernetes/helm/repository/id/{privateRepoId}`` + operationId: ``PrivateHelmRepositories_GetPrivateRepo`` + """ + path = f"/v1/cluster/instances/kubernetes/helm/repository/id/{private_repo_id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=PrivateRepoGetByIdResponse) + + def delete_private_repo(self, private_repo_id: str, request_id: str | None = None) -> ZsrvResponse: + """Delete private Helm repository + + ``DELETE /v1/cluster/instances/kubernetes/helm/repository/id/{privateRepoId}`` + operationId: ``PrivateHelmRepositories_DeletePrivateRepo`` + """ + path = f"/v1/cluster/instances/kubernetes/helm/repository/id/{private_repo_id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def get_private_repo_charts(self, private_repo_id: str, request_id: str | None = None) -> HelmChartListResponse: + """Get Helm charts from private repository + + ``GET /v1/cluster/instances/kubernetes/helm/repository/id/{privateRepoId}/charts`` + operationId: ``PrivateHelmRepositories_GetPrivateRepoCharts`` + """ + path = f"/v1/cluster/instances/kubernetes/helm/repository/id/{private_repo_id}/charts" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=HelmChartListResponse) + + def list_secrets(self, request_id: str | None = None) -> SecretListResponse: + """List all Kubernetes secrets + + ``GET /v1/cluster/instances/kubernetes/secrets`` + operationId: ``KubernetesSecrets_ListSecrets`` + """ + path = "/v1/cluster/instances/kubernetes/secrets" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=SecretListResponse) + + def create_secret(self, body: SecretCreateRequest | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Create a new Kubernetes secret + + ``POST /v1/cluster/instances/kubernetes/secrets`` + operationId: ``KubernetesSecrets_CreateSecret`` + """ + path = "/v1/cluster/instances/kubernetes/secrets" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_secret(self, secret_id: str, request_id: str | None = None) -> SecretInfoResponse: + """Get Kubernetes secret by ID + + ``GET /v1/cluster/instances/kubernetes/secrets/id/{secretId}`` + operationId: ``KubernetesSecrets_GetSecret`` + """ + path = f"/v1/cluster/instances/kubernetes/secrets/id/{secret_id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=SecretInfoResponse) + + def get_snapshot_operation(self, operation_id: str, request_id: str | None = None) -> SnapshotOperationResponse: + """Get snapshot operation status + + ``GET /v1/cluster/instances/kubernetes/snapshots/operations/{operationId}`` + operationId: ``KubernetesSnapshots_GetSnapshotOperation`` + """ + path = f"/v1/cluster/instances/kubernetes/snapshots/operations/{operation_id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=SnapshotOperationResponse) + + def list_snapshots(self, cluster_id: str, request_id: str | None = None) -> SnapshotListResponse: + """List etcd snapshots + + ``GET /v1/cluster/instances/kubernetes/snapshots/{clusterId}`` + operationId: ``KubernetesSnapshots_ListSnapshots`` + """ + path = f"/v1/cluster/instances/kubernetes/snapshots/{cluster_id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=SnapshotListResponse) + + def create_snapshot(self, cluster_id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> SnapshotOperationResponse: + """Create an etcd snapshot + + ``POST /v1/cluster/instances/kubernetes/snapshots/{clusterId}/create`` + operationId: ``KubernetesSnapshots_CreateSnapshot`` + """ + path = f"/v1/cluster/instances/kubernetes/snapshots/{cluster_id}/create" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=SnapshotOperationResponse) + + def delete_snapshot(self, cluster_id: str, name: str, request_id: str | None = None) -> SnapshotOperationResponse: + """Delete an etcd snapshot + + ``DELETE /v1/cluster/instances/kubernetes/snapshots/{clusterId}/{name}`` + operationId: ``KubernetesSnapshots_DeleteSnapshot`` + """ + path = f"/v1/cluster/instances/kubernetes/snapshots/{cluster_id}/{name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=SnapshotOperationResponse) + + def restore_snapshot( + self, + cluster_id: str, + name: str, + body: dict[str, Any] | Any, + request_id: str | None = None, + ) -> SnapshotOperationResponse: + """Restore an etcd snapshot + + ``POST /v1/cluster/instances/kubernetes/snapshots/{clusterId}/{name}/restore`` + operationId: ``KubernetesSnapshots_RestoreSnapshot`` + """ + path = f"/v1/cluster/instances/kubernetes/snapshots/{cluster_id}/{name}/restore" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=SnapshotOperationResponse) + + def cluster_shell(self, cluster_id: str, command: str | None = None, request_id: str | None = None) -> Any: + """Open cluster-shell WebSocket + + ``GET /v1/cluster/instances/kubernetes/{clusterId}/cluster-shell`` + operationId: ``KubernetesDashboard_ClusterShell`` + """ + path = f"/v1/cluster/instances/kubernetes/{cluster_id}/cluster-shell" + params: dict[str, Any] = {} + if command is not None: + params["command"] = command + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=None) + + def get_dashboard_kubeconfig(self, cluster_id: str, request_id: str | None = None) -> Any: + """Download dashboard kubeconfig + + ``GET /v1/cluster/instances/kubernetes/{clusterId}/kubeconfig`` + operationId: ``KubernetesDashboard_GetDashboardKubeconfig`` + """ + path = f"/v1/cluster/instances/kubernetes/{cluster_id}/kubeconfig" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=None) + + def proxy_kubernetes_request(self, cluster_id: str, path: str, request_id: str | None = None) -> Any: + """Proxy Kubernetes API request + + ``GET /v1/cluster/instances/kubernetes/{clusterId}/proxy/{path}`` + operationId: ``KubernetesDashboard_ProxyKubernetesRequest`` + """ + path = f"/v1/cluster/instances/kubernetes/{cluster_id}/proxy/{path}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=None) + + def proxy_kubernetes_request5(self, cluster_id: str, path: str, request_id: str | None = None) -> Any: + """Proxy Kubernetes API request + + ``DELETE /v1/cluster/instances/kubernetes/{clusterId}/proxy/{path}`` + operationId: ``KubernetesDashboard_ProxyKubernetesRequest5`` + """ + path = f"/v1/cluster/instances/kubernetes/{cluster_id}/proxy/{path}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=None) + + def proxy_kubernetes_request2(self, cluster_id: str, path: str, request_id: str | None = None) -> Any: + """Proxy Kubernetes API request + + ``POST /v1/cluster/instances/kubernetes/{clusterId}/proxy/{path}`` + operationId: ``KubernetesDashboard_ProxyKubernetesRequest2`` + """ + path = f"/v1/cluster/instances/kubernetes/{cluster_id}/proxy/{path}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, response_model=None) + + def proxy_kubernetes_request3(self, cluster_id: str, path: str, request_id: str | None = None) -> Any: + """Proxy Kubernetes API request + + ``PUT /v1/cluster/instances/kubernetes/{clusterId}/proxy/{path}`` + operationId: ``KubernetesDashboard_ProxyKubernetesRequest3`` + """ + path = f"/v1/cluster/instances/kubernetes/{cluster_id}/proxy/{path}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, response_model=None) + + def proxy_kubernetes_request4(self, cluster_id: str, path: str, request_id: str | None = None) -> Any: + """Proxy Kubernetes API request + + ``PATCH /v1/cluster/instances/kubernetes/{clusterId}/proxy/{path}`` + operationId: ``KubernetesDashboard_ProxyKubernetesRequest4`` + """ + path = f"/v1/cluster/instances/kubernetes/{cluster_id}/proxy/{path}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PATCH", path, params=params or None, headers=headers or None, response_model=None) + + def create_cluster_group(self, body: ClusterGroup | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Create a new cluster group + + ``POST /v1/zks/cluster/groups`` + operationId: ``ClusterGroups_CreateClusterGroup`` + """ + path = "/v1/zks/cluster/groups" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def delete_cluster_group(self, cluster_group_id: str, request_id: str | None = None) -> ZsrvResponse: + """Delete cluster group + + ``DELETE /v1/zks/cluster/groups/id/{clusterGroupId}`` + operationId: ``ClusterGroups_DeleteClusterGroup`` + """ + path = f"/v1/zks/cluster/groups/id/{cluster_group_id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def update_cluster_group(self, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """Update cluster group + + ``PUT /v1/zks/cluster/groups/id/{id}`` + operationId: ``ClusterGroups_UpdateClusterGroup`` + """ + path = f"/v1/zks/cluster/groups/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_cluster_group_manifest(self, request_id: str | None = None) -> ClusterGroupManifestOutput: + """Get cluster group manifest + + ``GET /v1/zks/cluster/groups/manifest`` + operationId: ``ClusterGroups_GetClusterGroupManifest`` + """ + path = "/v1/zks/cluster/groups/manifest" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ClusterGroupManifestOutput) + + def get_cluster_groups_status(self, request_id: str | None = None) -> ClusterGroupStatusListResp: + """Get cluster groups status + + ``GET /v1/zks/cluster/groups/status`` + operationId: ``ClusterGroups_GetClusterGroupsStatus`` + """ + path = "/v1/zks/cluster/groups/status" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ClusterGroupStatusListResp) + + def list_zks_instances(self, request_id: str | None = None) -> ZksInstancesList: + """List all ZKS instances + + ``GET /v1/zks/instances`` + operationId: ``ZKSClusterInstances_ListZKSInstances`` + """ + path = "/v1/zks/instances" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ZksInstancesList) + + def create_zks_instance(self, body: ZksInstance | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Create a new ZKS instance + + ``POST /v1/zks/instances`` + operationId: ``ZKSClusterInstances_CreateZKSInstance`` + """ + path = "/v1/zks/instances" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def bulk_update_zks_instances(self, body: ZksInstanceBulkUpdate | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Bulk update ZKS instances + + ``PUT /v1/zks/instances`` + operationId: ``ZKSClusterInstances_BulkUpdateZKSInstances`` + """ + path = "/v1/zks/instances" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def update_zks_instance(self, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """Update ZKS instance + + ``PUT /v1/zks/instances/id/{id}`` + operationId: ``ZKSClusterInstances_UpdateZKSInstance`` + """ + path = f"/v1/zks/instances/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_zks_instance(self, zks_id: str, request_id: str | None = None) -> ZksInstance: + """Get ZKS instance by ID + + ``GET /v1/zks/instances/id/{zksId}`` + operationId: ``ZKSClusterInstances_GetZKSInstance`` + """ + path = f"/v1/zks/instances/id/{zks_id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ZksInstance) + + def delete_zks_instance(self, zks_id: str, request_id: str | None = None) -> ZsrvResponse: + """Delete ZKS instance + + ``DELETE /v1/zks/instances/id/{zksId}`` + operationId: ``ZKSClusterInstances_DeleteZKSInstance`` + """ + path = f"/v1/zks/instances/id/{zks_id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def get_zks_instance_metrics(self, zks_id: str, request_id: str | None = None) -> ZksInstanceMetrics: + """Get ZKS instance metrics by ID + + ``GET /v1/zks/instances/id/{zksId}/metrics`` + operationId: ``ZKSClusterInstances_GetZKSInstanceMetrics`` + """ + path = f"/v1/zks/instances/id/{zks_id}/metrics" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ZksInstanceMetrics) + + def update_zks_instance_nodes(self, zks_id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """Update ZKS instance nodes + + ``PUT /v1/zks/instances/id/{zksId}/nodes`` + operationId: ``ZKSClusterInstances_UpdateZKSInstanceNodes`` + """ + path = f"/v1/zks/instances/id/{zks_id}/nodes" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_zks_instance_registration_commands(self, zks_id: str, request_id: str | None = None) -> ZksInstanceRegistrationInfo: + """Get registration commands by ID + + ``GET /v1/zks/instances/id/{zksId}/registration-commands`` + operationId: ``ZKSClusterInstances_GetZKSInstanceRegistrationCommands`` + """ + path = f"/v1/zks/instances/id/{zks_id}/registration-commands" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ZksInstanceRegistrationInfo) + + def upgrade_zks_instance(self, zks_id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """Upgrade ZKS instance + + ``PUT /v1/zks/instances/id/{zksId}/upgrade`` + operationId: ``ZKSClusterInstances_UpgradeZKSInstance`` + """ + path = f"/v1/zks/instances/id/{zks_id}/upgrade" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def import_zks_instance(self, body: ZksInstance | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Import an existing ZKS instance + + ``POST /v1/zks/instances/import`` + operationId: ``ZKSClusterInstances_ImportZKSInstance`` + """ + path = "/v1/zks/instances/import" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def bulk_upgrade_k3s(self, body: ZksInstanceK3sBulkUpgrade | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Bulk upgrade K3s version + + ``PUT /v1/zks/instances/k3s-upgrade`` + operationId: ``ZKSClusterInstances_BulkUpgradeK3s`` + """ + path = "/v1/zks/instances/k3s-upgrade" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_k3s_versions(self, request_id: str | None = None) -> ZksK3sVersionList: + """Get available K3s versions + + ``GET /v1/zks/instances/k3s-versions`` + operationId: ``ZKSClusterInstances_GetK3sVersions`` + """ + path = "/v1/zks/instances/k3s-versions" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ZksK3sVersionList) + + def get_zks_instance_by_name(self, zks_name: str, request_id: str | None = None) -> ZksInstance: + """Get ZKS instance by name + + ``GET /v1/zks/instances/name/{zksName}`` + operationId: ``ZKSClusterInstances_GetZKSInstanceByName`` + """ + path = f"/v1/zks/instances/name/{zks_name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ZksInstance) + + def get_zks_instance_metrics_by_name(self, zks_name: str, request_id: str | None = None) -> ZksInstanceMetrics: + """Get ZKS instance metrics by name + + ``GET /v1/zks/instances/name/{zksName}/metrics`` + operationId: ``ZKSClusterInstances_GetZKSInstanceMetricsByName`` + """ + path = f"/v1/zks/instances/name/{zks_name}/metrics" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ZksInstanceMetrics) + + def get_zks_instance_registration_commands_by_name(self, zks_name: str, request_id: str | None = None) -> ZksInstanceRegistrationInfo: + """Get registration commands by name + + ``GET /v1/zks/instances/name/{zksName}/registration-commands`` + operationId: ``ZKSClusterInstances_GetZKSInstanceRegistrationCommandsByName`` + """ + path = f"/v1/zks/instances/name/{zks_name}/registration-commands" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ZksInstanceRegistrationInfo) + + def get_zks_instances_status(self, request_id: str | None = None) -> ZksInstanceStatusListResp: + """Get ZKS instances status + + ``GET /v1/zks/instances/status`` + operationId: ``ZKSClusterInstances_GetZKSInstancesStatus`` + """ + path = "/v1/zks/instances/status" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ZksInstanceStatusListResp) diff --git a/packages/zedcloud/src/zedcloud/_generated/services/networks.py b/packages/zedcloud/src/zedcloud/_generated/services/networks.py new file mode 100644 index 0000000..b6c7943 --- /dev/null +++ b/packages/zedcloud/src/zedcloud/_generated/services/networks.py @@ -0,0 +1,477 @@ +# Generated by scripts/generate_from_openapi.py — namespace "networks" +# Do not edit by hand. + +from __future__ import annotations + +from typing import Any + +from zedcloud.services.base import BaseService +from zedcloud._generated.models.networks import ( + NetConfig, + NetConfigForUpdateHttpRequest, + NetConfigList, + NetInstConfig, + NetInstConfigStatusList, + NetInstConfigUpdateHttpRequest, + NetInstList, + NetInstStatusListMsg, + NetInstStatusMsg, + NetworkDeviceList, + ObjectTagsList, + ZsrvResponse, +) + + +class NetworksService(BaseService): + """Auto-generated client for ZEDEDA Edge Network Service.""" + + def query_edge_network_instances( + self, + device_name: str | None = None, + project_name: str | None = None, + name_pattern: str | None = None, + tags: str | None = None, + device_name_pattern: str | None = None, + project_name_pattern: str | None = None, + summary: bool | None = None, + title_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + fields: list[str] | None = None, + request_id: str | None = None, + ) -> NetInstList: + """Query edge network instances + + ``GET /v1/netinsts`` + operationId: ``EdgeNetworkInstanceConfiguration_QueryEdgeNetworkInstances`` + """ + path = "/v1/netinsts" + params: dict[str, Any] = {} + if device_name is not None: + params["deviceName"] = device_name + if project_name is not None: + params["projectName"] = project_name + if name_pattern is not None: + params["namePattern"] = name_pattern + if tags is not None: + params["tags"] = tags + if device_name_pattern is not None: + params["deviceNamePattern"] = device_name_pattern + if project_name_pattern is not None: + params["projectNamePattern"] = project_name_pattern + if summary is not None: + params["summary"] = summary + if title_pattern is not None: + params["titlePattern"] = title_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if fields is not None: + params["fields"] = fields + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=NetInstList) + + def create_edge_network_instance(self, body: NetInstConfig | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Create edge network instance + + ``POST /v1/netinsts`` + operationId: ``EdgeNetworkInstanceConfiguration_CreateEdgeNetworkInstance`` + """ + path = "/v1/netinsts" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_edge_network_instance(self, id: str, request_id: str | None = None) -> NetInstConfig: + """Get edge network instance + + ``GET /v1/netinsts/id/{id}`` + operationId: ``EdgeNetworkInstanceConfiguration_GetEdgeNetworkInstance`` + """ + path = f"/v1/netinsts/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=NetInstConfig) + + def delete_edge_network_instance(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Delete edge network instance + + ``DELETE /v1/netinsts/id/{id}`` + operationId: ``EdgeNetworkInstanceConfiguration_DeleteEdgeNetworkInstance`` + """ + path = f"/v1/netinsts/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def update_edge_network_instance( + self, + id: str, + body: NetInstConfigUpdateHttpRequest | dict[str, Any], + request_id: str | None = None, + ) -> ZsrvResponse: + """Update edge network instance + + ``PUT /v1/netinsts/id/{id}`` + operationId: ``EdgeNetworkInstanceConfiguration_UpdateEdgeNetworkInstance`` + """ + path = f"/v1/netinsts/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_edge_network_instance_status(self, id: str, request_id: str | None = None) -> NetInstStatusMsg: + """Get edge network instance status + + ``GET /v1/netinsts/id/{id}/status`` + operationId: ``EdgeNetworkInstanceStatus_GetEdgeNetworkInstanceStatus`` + """ + path = f"/v1/netinsts/id/{id}/status" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=NetInstStatusMsg) + + def get_edge_network_instance_by_name(self, name: str, request_id: str | None = None) -> NetInstConfig: + """Get edge network instance + + ``GET /v1/netinsts/name/{name}`` + operationId: ``EdgeNetworkInstanceConfiguration_GetEdgeNetworkInstanceByName`` + """ + path = f"/v1/netinsts/name/{name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=NetInstConfig) + + def get_edge_network_instance_status_by_name(self, name: str, request_id: str | None = None) -> NetInstStatusMsg: + """Get edge network instance status + + ``GET /v1/netinsts/name/{name}/status`` + operationId: ``EdgeNetworkInstanceStatus_GetEdgeNetworkInstanceStatusByName`` + """ + path = f"/v1/netinsts/name/{name}/status" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=NetInstStatusMsg) + + def query_edge_network_instance_status( + self, + device_name: str | None = None, + project_name: str | None = None, + name_pattern: str | None = None, + tags: str | None = None, + run_state: str | None = None, + device_name_pattern: str | None = None, + project_name_pattern: str | None = None, + type: int | None = None, + kind: int | None = None, + summary: bool | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + fields: list[str] | None = None, + request_id: str | None = None, + ) -> NetInstStatusListMsg: + """Query status of edge network instances + + ``GET /v1/netinsts/status`` + operationId: ``EdgeNetworkInstanceStatus_QueryEdgeNetworkInstanceStatus`` + """ + path = "/v1/netinsts/status" + params: dict[str, Any] = {} + if device_name is not None: + params["deviceName"] = device_name + if project_name is not None: + params["projectName"] = project_name + if name_pattern is not None: + params["namePattern"] = name_pattern + if tags is not None: + params["tags"] = tags + if run_state is not None: + params["runState"] = run_state + if device_name_pattern is not None: + params["deviceNamePattern"] = device_name_pattern + if project_name_pattern is not None: + params["projectNamePattern"] = project_name_pattern + if type is not None: + params["type"] = type + if kind is not None: + params["kind"] = kind + if summary is not None: + params["summary"] = summary + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if fields is not None: + params["fields"] = fields + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=NetInstStatusListMsg) + + def query_edge_network_instance_status_config( + self, + device_name: str | None = None, + project_name: str | None = None, + name_pattern: str | None = None, + tags: str | None = None, + run_state: str | None = None, + device_name_pattern: str | None = None, + project_name_pattern: str | None = None, + type: int | None = None, + kind: int | None = None, + summary: bool | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + fields: list[str] | None = None, + request_id: str | None = None, + ) -> NetInstConfigStatusList: + """Query status and config of edge network instances + + ``GET /v1/netinsts/status-config`` + operationId: ``EdgeNetworkInstanceStatus_QueryEdgeNetworkInstanceStatusConfig`` + """ + path = "/v1/netinsts/status-config" + params: dict[str, Any] = {} + if device_name is not None: + params["deviceName"] = device_name + if project_name is not None: + params["projectName"] = project_name + if name_pattern is not None: + params["namePattern"] = name_pattern + if tags is not None: + params["tags"] = tags + if run_state is not None: + params["runState"] = run_state + if device_name_pattern is not None: + params["deviceNamePattern"] = device_name_pattern + if project_name_pattern is not None: + params["projectNamePattern"] = project_name_pattern + if type is not None: + params["type"] = type + if kind is not None: + params["kind"] = kind + if summary is not None: + params["summary"] = summary + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if fields is not None: + params["fields"] = fields + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=NetInstConfigStatusList) + + def get_network_instance_interface_tags( + self, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> ObjectTagsList: + """Query Network instance tags + + ``GET /v1/netinsts/tags`` + operationId: ``EdgeNetworkInstanceStatus_GetNetworkInstanceInterfaceTags`` + """ + path = "/v1/netinsts/tags" + params: dict[str, Any] = {} + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ObjectTagsList) + + def query_edge_networks( + self, + project_name: str | None = None, + name_pattern: str | None = None, + project_name_pattern: str | None = None, + dist: int | None = None, + kind: int | None = None, + summary: bool | None = None, + default_network: bool | None = None, + title_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> NetConfigList: + """Query edge networks + + ``GET /v1/networks`` + operationId: ``EdgeNetworkConfiguration_QueryEdgeNetworks`` + """ + path = "/v1/networks" + params: dict[str, Any] = {} + if project_name is not None: + params["projectName"] = project_name + if name_pattern is not None: + params["namePattern"] = name_pattern + if project_name_pattern is not None: + params["projectNamePattern"] = project_name_pattern + if dist is not None: + params["dist"] = dist + if kind is not None: + params["kind"] = kind + if summary is not None: + params["summary"] = summary + if default_network is not None: + params["defaultNetwork"] = default_network + if title_pattern is not None: + params["titlePattern"] = title_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=NetConfigList) + + def create_edge_network(self, body: NetConfig | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Create edge network + + ``POST /v1/networks`` + operationId: ``EdgeNetworkConfiguration_CreateEdgeNetwork`` + """ + path = "/v1/networks" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_edge_network(self, id: str, request_id: str | None = None) -> NetConfig: + """Get edge network + + ``GET /v1/networks/id/{id}`` + operationId: ``EdgeNetworkConfiguration_GetEdgeNetwork`` + """ + path = f"/v1/networks/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=NetConfig) + + def delete_edge_network(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Delete edge network + + ``DELETE /v1/networks/id/{id}`` + operationId: ``EdgeNetworkConfiguration_DeleteEdgeNetwork`` + """ + path = f"/v1/networks/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def update_edge_network( + self, + id: str, + body: NetConfigForUpdateHttpRequest | dict[str, Any], + request_id: str | None = None, + ) -> ZsrvResponse: + """Update edge network + + ``PUT /v1/networks/id/{id}`` + operationId: ``EdgeNetworkConfiguration_UpdateEdgeNetwork`` + """ + path = f"/v1/networks/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_edge_network_devices_by_id(self, id: str, request_id: str | None = None) -> NetworkDeviceList: + """Get edge network devices by id + + ``GET /v1/networks/id/{id}/devices`` + operationId: ``EdgeNetworkConfiguration_GetEdgeNetworkDevicesById`` + """ + path = f"/v1/networks/id/{id}/devices" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=NetworkDeviceList) + + def get_edge_network_by_name(self, name: str, request_id: str | None = None) -> NetConfig: + """Get edge network + + ``GET /v1/networks/name/{name}`` + operationId: ``EdgeNetworkConfiguration_GetEdgeNetworkByName`` + """ + path = f"/v1/networks/name/{name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=NetConfig) diff --git a/packages/zedcloud/src/zedcloud/_generated/services/node_clusters.py b/packages/zedcloud/src/zedcloud/_generated/services/node_clusters.py new file mode 100644 index 0000000..df47632 --- /dev/null +++ b/packages/zedcloud/src/zedcloud/_generated/services/node_clusters.py @@ -0,0 +1,259 @@ +# Generated by scripts/generate_from_openapi.py — namespace "node_clusters" +# Do not edit by hand. + +from __future__ import annotations + +from typing import Any + +from zedcloud.services.base import BaseService +from zedcloud._generated.models.node_clusters import ( + BaseOSImage, + EdgeNodeCluster, + EdgeNodeClusterConfigSummary, + EdgeNodeClusterInterfacePorts, + EdgeNodeClusterProjects, + EdgeNodeClusterRawInfo, + EdgeNodeClusterStatus, + EdgeNodeClusterUpgradeStatusResp, + EdgeNodeClusters, + ZsrvResponse, +) + + +class NodeClustersService(BaseService): + """Auto-generated client for ZEDEDA Edge-Node Cluster Service.""" + + def query_clusters( + self, + filter_project_name: str | None = None, + filter_project_name_pattern: str | None = None, + filter_name_pattern: str | None = None, + filter_include_zks: str | None = None, + filter_title_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> EdgeNodeClusters: + """Query Edge-Node Clusters. + + ``GET /v1/cluster`` + operationId: ``EdgeNodeClusterConfiguration_QueryClusters`` + """ + path = "/v1/cluster" + params: dict[str, Any] = {} + if filter_project_name is not None: + params["filter.projectName"] = filter_project_name + if filter_project_name_pattern is not None: + params["filter.projectNamePattern"] = filter_project_name_pattern + if filter_name_pattern is not None: + params["filter.namePattern"] = filter_name_pattern + if filter_include_zks is not None: + params["filter.includeZks"] = filter_include_zks + if filter_title_pattern is not None: + params["filter.titlePattern"] = filter_title_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=EdgeNodeClusters) + + def create_cluster(self, body: EdgeNodeCluster | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Create Edge-Node Cluster. + + ``POST /v1/cluster`` + operationId: ``EdgeNodeClusterConfiguration_CreateCluster`` + """ + path = "/v1/cluster" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_available_projects_for_cluster( + self, + filter_project_name: str | None = None, + filter_project_name_pattern: str | None = None, + filter_name_pattern: str | None = None, + filter_include_zks: str | None = None, + filter_title_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> EdgeNodeClusterProjects: + """Get Edge-Node Cluster Available Projects. + + ``GET /v1/cluster/available/projects`` + operationId: ``EdgeNodeClusterConfiguration_GetAvailableProjectsForCluster`` + """ + path = "/v1/cluster/available/projects" + params: dict[str, Any] = {} + if filter_project_name is not None: + params["filter.projectName"] = filter_project_name + if filter_project_name_pattern is not None: + params["filter.projectNamePattern"] = filter_project_name_pattern + if filter_name_pattern is not None: + params["filter.namePattern"] = filter_name_pattern + if filter_include_zks is not None: + params["filter.includeZks"] = filter_include_zks + if filter_title_pattern is not None: + params["filter.titlePattern"] = filter_title_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=EdgeNodeClusterProjects) + + def get_cluster(self, id: str, request_id: str | None = None) -> EdgeNodeClusterConfigSummary: + """Get Edge-Node Cluster. + + ``GET /v1/cluster/id/{id}`` + operationId: ``EdgeNodeClusterConfiguration_GetCluster`` + """ + path = f"/v1/cluster/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=EdgeNodeClusterConfigSummary) + + def delete_cluster(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Delete Edge-Node Cluster. + + ``DELETE /v1/cluster/id/{id}`` + operationId: ``EdgeNodeClusterConfiguration_DeleteCluster`` + """ + path = f"/v1/cluster/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def update_cluster(self, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """Update Edge-Node Cluster. + + ``PUT /v1/cluster/id/{id}`` + operationId: ``EdgeNodeClusterConfiguration_UpdateCluster`` + """ + path = f"/v1/cluster/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_cluster_ports(self, id: str, request_id: str | None = None) -> EdgeNodeClusterInterfacePorts: + """Get Edge-Node Cluster Interface Ports. + + ``GET /v1/cluster/id/{id}/ports`` + operationId: ``EdgeNodeClusterConfiguration_GetClusterPorts`` + """ + path = f"/v1/cluster/id/{id}/ports" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=EdgeNodeClusterInterfacePorts) + + def get_cluster_raw_status(self, id: str, request_id: str | None = None) -> EdgeNodeClusterRawInfo: + """Get Edge-Node Cluster raw status. + + ``GET /v1/cluster/id/{id}/raw/status`` + operationId: ``ClusterStatus_GetClusterRawStatus`` + """ + path = f"/v1/cluster/id/{id}/raw/status" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=EdgeNodeClusterRawInfo) + + def get_cluster_status(self, id: str, request_id: str | None = None) -> EdgeNodeClusterStatus: + """Get Edge-Node Cluster status. + + ``GET /v1/cluster/id/{id}/status`` + operationId: ``ClusterStatus_GetClusterStatus`` + """ + path = f"/v1/cluster/id/{id}/status" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=EdgeNodeClusterStatus) + + def upgrade_cluster(self, id: str, body: BaseOSImage | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Upgrade Edge-Node Cluster. + + ``PUT /v1/cluster/id/{id}/upgrade`` + operationId: ``EdgeNodeClusterConfiguration_UpgradeCluster`` + """ + path = f"/v1/cluster/id/{id}/upgrade" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_cluster_upgrade_status(self, id: str, request_id: str | None = None) -> EdgeNodeClusterUpgradeStatusResp: + """Get Edge-Node Cluster upgrade status. + + ``GET /v1/cluster/id/{id}/upgrade/status`` + operationId: ``ClusterStatus_GetClusterUpgradeStatus`` + """ + path = f"/v1/cluster/id/{id}/upgrade/status" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=EdgeNodeClusterUpgradeStatusResp) + + def get_cluster_by_name(self, name: str, request_id: str | None = None) -> EdgeNodeClusterConfigSummary: + """Get Edge-Node Cluster. + + ``GET /v1/cluster/name/{name}`` + operationId: ``EdgeNodeClusterConfiguration_GetClusterByName`` + """ + path = f"/v1/cluster/name/{name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=EdgeNodeClusterConfigSummary) + + def get_cluster_by_node_id(self, id: str, request_id: str | None = None) -> EdgeNodeClusterConfigSummary: + """Get Edge-Node Cluster. + + ``GET /v1/cluster/node/id/{id}`` + operationId: ``EdgeNodeClusterConfiguration_GetClusterByNodeId`` + """ + path = f"/v1/cluster/node/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=EdgeNodeClusterConfigSummary) diff --git a/packages/zedcloud/src/zedcloud/_generated/services/nodes.py b/packages/zedcloud/src/zedcloud/_generated/services/nodes.py new file mode 100644 index 0000000..ed9f570 --- /dev/null +++ b/packages/zedcloud/src/zedcloud/_generated/services/nodes.py @@ -0,0 +1,2062 @@ +# Generated by scripts/generate_from_openapi.py — namespace "nodes" +# Do not edit by hand. + +from __future__ import annotations + +from typing import Any + +from zedcloud.services.base import BaseService +from zedcloud._generated.models.nodes import ( + CEPCommonSCEPProfile, + CEPCommonSCEPProfiles, + Deployment, + Deployments, + DeviceConfig, + DeviceConfigList, + DeviceInfoMsg, + DeviceLocations, + DeviceRawMetrics, + DeviceSingleUseImageDownloadLinkResp, + DeviceSingleUseImageResp, + DeviceStatusConfigList, + DeviceStatusListMsg, + DeviceStatusMsg, + EventQueryResponse, + MetricQueryResponse, + ObjectTagsList, + PCRTemplatesInfo, + PCRTemplatesReq, + SysBrand, + SysBrands, + SysModel, + SysModels, + Tag, + TagStatusListMsg, + TagStatusMsg, + TagUpdateHttpRequest, + Tags, + TagsConfigStatus, + ZsrvResponse, +) + + +class NodesService(BaseService): + """Auto-generated client for ZEDEDA Edge Node Service.""" + + def query_hardware_brands( + self, + summary: bool | None = None, + name_pattern: str | None = None, + origin_type: str | None = None, + title_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> SysBrands: + """Query hardware brands + + ``GET /v1/brands`` + operationId: ``HardwareModel_QueryHardwareBrands`` + """ + path = "/v1/brands" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if name_pattern is not None: + params["namePattern"] = name_pattern + if origin_type is not None: + params["originType"] = origin_type + if title_pattern is not None: + params["titlePattern"] = title_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=SysBrands) + + def create_hardware_brand(self, body: SysBrand | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Create hardware brand + + ``POST /v1/brands`` + operationId: ``HardwareModel_CreateHardwareBrand`` + """ + path = "/v1/brands" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def query_global_hardware_brands( + self, + summary: bool | None = None, + name_pattern: str | None = None, + origin_type: str | None = None, + title_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> SysBrands: + """Query global hardware brands + + ``GET /v1/brands/global`` + operationId: ``HardwareModel_QueryGlobalHardwareBrands`` + """ + path = "/v1/brands/global" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if name_pattern is not None: + params["namePattern"] = name_pattern + if origin_type is not None: + params["originType"] = origin_type + if title_pattern is not None: + params["titlePattern"] = title_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=SysBrands) + + def get_global_hardware_brand(self, id: str, enterprise_id: str | None = None, request_id: str | None = None) -> SysBrand: + """Get global hardware brand + + ``GET /v1/brands/global/id/{id}`` + operationId: ``HardwareModel_GetGlobalHardwareBrand`` + """ + path = f"/v1/brands/global/id/{id}" + params: dict[str, Any] = {} + if enterprise_id is not None: + params["enterpriseId"] = enterprise_id + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=SysBrand) + + def get_global_hardware_brand_by_name(self, name: str, enterprise_id: str | None = None, request_id: str | None = None) -> SysBrand: + """Get global hardware brand + + ``GET /v1/brands/global/name/{name}`` + operationId: ``HardwareModel_GetGlobalHardwareBrandByName`` + """ + path = f"/v1/brands/global/name/{name}" + params: dict[str, Any] = {} + if enterprise_id is not None: + params["enterpriseId"] = enterprise_id + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=SysBrand) + + def get_hardware_brand(self, id: str, enterprise_id: str | None = None, request_id: str | None = None) -> SysBrand: + """Get hardware brand + + ``GET /v1/brands/id/{id}`` + operationId: ``HardwareModel_GetHardwareBrand`` + """ + path = f"/v1/brands/id/{id}" + params: dict[str, Any] = {} + if enterprise_id is not None: + params["enterpriseId"] = enterprise_id + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=SysBrand) + + def delete_hardware_brand(self, id: str, enterprise_id: str | None = None, request_id: str | None = None) -> ZsrvResponse: + """Delete hardware brand + + ``DELETE /v1/brands/id/{id}`` + operationId: ``HardwareModel_DeleteHardwareBrand`` + """ + path = f"/v1/brands/id/{id}" + params: dict[str, Any] = {} + if enterprise_id is not None: + params["enterpriseId"] = enterprise_id + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def update_hardware_brand(self, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """Update hardware brand + + ``PUT /v1/brands/id/{id}`` + operationId: ``HardwareModel_UpdateHardwareBrand`` + """ + path = f"/v1/brands/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_hardware_brand_by_name(self, name: str, enterprise_id: str | None = None, request_id: str | None = None) -> SysBrand: + """Get hardware brand + + ``GET /v1/brands/name/{name}`` + operationId: ``HardwareModel_GetHardwareBrandByName`` + """ + path = f"/v1/brands/name/{name}" + params: dict[str, Any] = {} + if enterprise_id is not None: + params["enterpriseId"] = enterprise_id + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=SysBrand) + + def query_ce_ps( + self, + name_pattern: str | None = None, + summary: bool | None = None, + show_projects_list: bool | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> CEPCommonSCEPProfiles: + """List certificate enrollment profiles + + ``GET /v1/ceps`` + operationId: ``CertificateEnrollmentProfileConfiguration_QueryCEPs`` + """ + path = "/v1/ceps" + params: dict[str, Any] = {} + if name_pattern is not None: + params["namePattern"] = name_pattern + if summary is not None: + params["summary"] = summary + if show_projects_list is not None: + params["showProjectsList"] = show_projects_list + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=CEPCommonSCEPProfiles) + + def create_cep(self, body: CEPCommonSCEPProfile | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Create a certificate enrollment profile + + ``POST /v1/ceps`` + operationId: ``CertificateEnrollmentProfileConfiguration_CreateCEP`` + """ + path = "/v1/ceps" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_cep_by_id(self, id: str, show_projects_list: bool | None = None, request_id: str | None = None) -> CEPCommonSCEPProfile: + """Get certificate enrollment profile by ID + + ``GET /v1/ceps/id/{id}`` + operationId: ``CertificateEnrollmentProfileConfiguration_GetCEPById`` + """ + path = f"/v1/ceps/id/{id}" + params: dict[str, Any] = {} + if show_projects_list is not None: + params["showProjectsList"] = show_projects_list + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=CEPCommonSCEPProfile) + + def delete_cep(self, id: str, show_projects_list: bool | None = None, request_id: str | None = None) -> ZsrvResponse: + """Delete a certificate enrollment profile + + ``DELETE /v1/ceps/id/{id}`` + operationId: ``CertificateEnrollmentProfileConfiguration_DeleteCEP`` + """ + path = f"/v1/ceps/id/{id}" + params: dict[str, Any] = {} + if show_projects_list is not None: + params["showProjectsList"] = show_projects_list + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def update_cep(self, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """Update a certificate enrollment profile + + ``PUT /v1/ceps/id/{id}`` + operationId: ``CertificateEnrollmentProfileConfiguration_UpdateCEP`` + """ + path = f"/v1/ceps/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_cep_by_name(self, name: str, request_id: str | None = None) -> CEPCommonSCEPProfile: + """Get certificate enrollment profile by name + + ``GET /v1/ceps/name/{name}`` + operationId: ``CertificateEnrollmentProfileConfiguration_GetCEPByName`` + """ + path = f"/v1/ceps/name/{name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=CEPCommonSCEPProfile) + + def query_edge_nodes( + self, + summary: bool | None = None, + name_pattern: str | None = None, + project_name: str | None = None, + project_name_pattern: str | None = None, + admin_state: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + fields: list[str] | None = None, + cluster_name: str | None = None, + cluster_name_pattern: str | None = None, + created_by_pattern: str | None = None, + title_pattern: str | None = None, + request_id: str | None = None, + ) -> DeviceConfigList: + """Query edge nodes + + ``GET /v1/devices`` + operationId: ``EdgeNodeConfiguration_QueryEdgeNodes`` + """ + path = "/v1/devices" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if name_pattern is not None: + params["namePattern"] = name_pattern + if project_name is not None: + params["projectName"] = project_name + if project_name_pattern is not None: + params["projectNamePattern"] = project_name_pattern + if admin_state is not None: + params["adminState"] = admin_state + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if fields is not None: + params["fields"] = fields + if cluster_name is not None: + params["clusterName"] = cluster_name + if cluster_name_pattern is not None: + params["clusterNamePattern"] = cluster_name_pattern + if created_by_pattern is not None: + params["createdByPattern"] = created_by_pattern + if title_pattern is not None: + params["titlePattern"] = title_pattern + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=DeviceConfigList) + + def create_edge_node(self, body: DeviceConfig | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Create edge node + + ``POST /v1/devices`` + operationId: ``EdgeNodeConfiguration_CreateEdgeNode`` + """ + path = "/v1/devices" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_edge_node(self, id: str, request_id: str | None = None) -> DeviceConfig: + """Get edge node + + ``GET /v1/devices/id/{id}`` + operationId: ``EdgeNodeConfiguration_GetEdgeNode`` + """ + path = f"/v1/devices/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=DeviceConfig) + + def edge_node_configuration__delete_edge_node(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Delete edge node + + ``DELETE /v1/devices/id/{id}`` + operationId: ``EdgeNodeConfiguration_DeleteEdgeNode`` + """ + path = f"/v1/devices/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def update_edge_node(self, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """Update edge node + + ``PUT /v1/devices/id/{id}`` + operationId: ``EdgeNodeConfiguration_UpdateEdgeNode`` + """ + path = f"/v1/devices/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def activate_edge_node(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Activate edge node. + + ``PUT /v1/devices/id/{id}/activate`` + operationId: ``EdgeNodeConfiguration_ActivateEdgeNode`` + """ + path = f"/v1/devices/id/{id}/activate" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def update_edge_node_base_os(self, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """update EVE image on edge node + + ``PUT /v1/devices/id/{id}/apply`` + operationId: ``EdgeNodeConfiguration_UpdateEdgeNodeBaseOS`` + """ + path = f"/v1/devices/id/{id}/apply" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_edge_node_attestation(self, id: str, request_id: str | None = None) -> DeviceConfig: + """Get edge node PCR attestation + + ``GET /v1/devices/id/{id}/attestation`` + operationId: ``EdgeNodeConfiguration_GetEdgeNodeAttestation`` + """ + path = f"/v1/devices/id/{id}/attestation" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=DeviceConfig) + + def base_os_upgrade_retry_edge_node(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Retry baseos upgrade on the edge node. + + ``PUT /v1/devices/id/{id}/baseos/upgrade/retry`` + operationId: ``EdgeNodeConfiguration_BaseOsUpgradeRetryEdgeNode`` + """ + path = f"/v1/devices/id/{id}/baseos/upgrade/retry" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def de_activate_edge_node(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Deactivate edge node. + + ``PUT /v1/devices/id/{id}/deactivate`` + operationId: ``EdgeNodeConfiguration_DeActivateEdgeNode`` + """ + path = f"/v1/devices/id/{id}/deactivate" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def stop_debug_edge_node(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Stop debug mode on the edge node. + + ``PUT /v1/devices/id/{id}/debug/disable`` + operationId: ``EdgeNodeConfiguration_StopDebugEdgeNode`` + """ + path = f"/v1/devices/id/{id}/debug/disable" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def start_debug_edge_node(self, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """Start debug mode on the edge node. + + ``PUT /v1/devices/id/{id}/debug/enable`` + operationId: ``EdgeNodeConfiguration_StartDebugEdgeNode`` + """ + path = f"/v1/devices/id/{id}/debug/enable" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_edgeview_client_script(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Get edgeview client script of the edge node. + + ``GET /v1/devices/id/{id}/edgeview/clientscript`` + operationId: ``EdgeNodeConfiguration_GetEdgeviewClientScript`` + """ + path = f"/v1/devices/id/{id}/edgeview/clientscript" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def stop_edgeview_edge_node(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Stop edgeview on the edge node. + + ``PUT /v1/devices/id/{id}/edgeview/disable`` + operationId: ``EdgeNodeConfiguration_StopEdgeviewEdgeNode`` + """ + path = f"/v1/devices/id/{id}/edgeview/disable" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def start_edgeview_edge_node(self, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """Start edgeview on the edge node. + + ``PUT /v1/devices/id/{id}/edgeview/enable`` + operationId: ``EdgeNodeConfiguration_StartEdgeviewEdgeNode`` + """ + path = f"/v1/devices/id/{id}/edgeview/enable" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def offboard(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Offoard the edge-ndoe + + ``PUT /v1/devices/id/{id}/offboard`` + operationId: ``EdgeNodeConfiguration_Offboard`` + """ + path = f"/v1/devices/id/{id}/offboard" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def get_edge_node_onboarding(self, id: str, request_id: str | None = None) -> DeviceConfig: + """Get edge node onboarding certificate + + ``GET /v1/devices/id/{id}/onboarding`` + operationId: ``EdgeNodeConfiguration_GetEdgeNodeOnboarding`` + """ + path = f"/v1/devices/id/{id}/onboarding" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=DeviceConfig) + + def prepare_power_off(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Shutdown applications on edge node. + + ``PUT /v1/devices/id/{id}/preparepoweroff`` + operationId: ``EdgeNodeConfiguration_PreparePowerOff`` + """ + path = f"/v1/devices/id/{id}/preparepoweroff" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def update_edge_node_base_os2(self, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """update EVE image on edge node + + ``PUT /v1/devices/id/{id}/publish`` + operationId: ``EdgeNodeConfiguration_UpdateEdgeNodeBaseOS2`` + """ + path = f"/v1/devices/id/{id}/publish" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def reboot(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Reboot edge node. + + ``PUT /v1/devices/id/{id}/reboot`` + operationId: ``EdgeNodeConfiguration_Reboot`` + """ + path = f"/v1/devices/id/{id}/reboot" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def get_edge_node_status(self, id: str, request_id: str | None = None) -> DeviceStatusMsg: + """Get edge node status + + ``GET /v1/devices/id/{id}/status`` + operationId: ``EdgeNodeStatus_GetEdgeNodeStatus`` + """ + path = f"/v1/devices/id/{id}/status" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=DeviceStatusMsg) + + def get_edge_node_edgeview_status(self, id: str, request_id: str | None = None) -> DeviceRawMetrics: + """Get edge node edgeview status + + ``GET /v1/devices/id/{id}/status/edgeview`` + operationId: ``EdgeNodeStatus_GetEdgeNodeEdgeviewStatus`` + """ + path = f"/v1/devices/id/{id}/status/edgeview" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=DeviceRawMetrics) + + def get_edge_node_info(self, id: str, request_id: str | None = None) -> DeviceInfoMsg: + """Get edge node info + + ``GET /v1/devices/id/{id}/status/info`` + operationId: ``EdgeNodeStatus_GetEdgeNodeInfo`` + """ + path = f"/v1/devices/id/{id}/status/info" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=DeviceInfoMsg) + + def get_edge_node_raw_status(self, id: str, request_id: str | None = None) -> DeviceRawMetrics: + """Get edge node raw status + + ``GET /v1/devices/id/{id}/status/metrics/raw`` + operationId: ``EdgeNodeStatus_GetEdgeNodeRawStatus`` + """ + path = f"/v1/devices/id/{id}/status/metrics/raw" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=DeviceRawMetrics) + + def get_edge_node_single_use_eve_image(self, id: str, request_id: str | None = None) -> DeviceSingleUseImageResp: + """Get edge node single-use EVE image details + + ``GET /v1/devices/id/{id}/suimage`` + operationId: ``EdgeNodeConfiguration_GetEdgeNodeSingleUseEVEImage`` + """ + path = f"/v1/devices/id/{id}/suimage" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=DeviceSingleUseImageResp) + + def create_edge_node_single_use_eve_image(self, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """Create edge node single-use EVE image + + ``POST /v1/devices/id/{id}/suimage`` + operationId: ``EdgeNodeConfiguration_CreateEdgeNodeSingleUseEVEImage`` + """ + path = f"/v1/devices/id/{id}/suimage" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_edge_node_single_use_eve_image_download_link(self, id: str, request_id: str | None = None) -> DeviceSingleUseImageDownloadLinkResp: + """Get edge node single-use EVE image download link + + ``GET /v1/devices/id/{id}/suimage/link`` + operationId: ``EdgeNodeConfiguration_GetEdgeNodeSingleUseEVEImageDownloadLink`` + """ + path = f"/v1/devices/id/{id}/suimage/link" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=DeviceSingleUseImageDownloadLinkResp) + + def update_edge_node_base_os3(self, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """update EVE image on edge node + + ``PUT /v1/devices/id/{id}/unpublish`` + operationId: ``EdgeNodeConfiguration_UpdateEdgeNodeBaseOS3`` + """ + path = f"/v1/devices/id/{id}/unpublish" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_edge_node_events( + self, + objid: str, + start_time: str | None = None, + end_time: str | None = None, + severity: str | None = None, + resource: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> EventQueryResponse: + """Get edge node events by id + + ``GET /v1/devices/id/{objid}/events`` + operationId: ``EdgeNodeStatus_GetEdgeNodeEvents`` + """ + path = f"/v1/devices/id/{objid}/events" + params: dict[str, Any] = {} + if start_time is not None: + params["startTime"] = start_time + if end_time is not None: + params["endTime"] = end_time + if severity is not None: + params["severity"] = severity + if resource is not None: + params["resource"] = resource + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=EventQueryResponse) + + def get_edge_node_resource_metrics_by_id( + self, + objid: str, + m_type: str, + start_time: str | None = None, + end_time: str | None = None, + interval: str | None = None, + request_id: str | None = None, + ) -> MetricQueryResponse: + """Get edge node resource usage timeline + + ``GET /v1/devices/id/{objid}/timeSeries/{mType}`` + operationId: ``EdgeNodeStatus_GetEdgeNodeResourceMetricsById`` + """ + path = f"/v1/devices/id/{objid}/timeSeries/{m_type}" + params: dict[str, Any] = {} + if start_time is not None: + params["startTime"] = start_time + if end_time is not None: + params["endTime"] = end_time + if interval is not None: + params["interval"] = interval + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=MetricQueryResponse) + + def get_device_interface_tags( + self, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> ObjectTagsList: + """Query device interface tags + + ``GET /v1/devices/interfaces/tags`` + operationId: ``EdgeNodeConfiguration_GetDeviceInterfaceTags`` + """ + path = "/v1/devices/interfaces/tags" + params: dict[str, Any] = {} + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ObjectTagsList) + + def get_edge_node_by_name(self, name: str, request_id: str | None = None) -> DeviceConfig: + """Get edge node by name + + ``GET /v1/devices/name/{name}`` + operationId: ``EdgeNodeConfiguration_GetEdgeNodeByName`` + """ + path = f"/v1/devices/name/{name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=DeviceConfig) + + def get_edge_node_status_by_name(self, name: str, request_id: str | None = None) -> DeviceStatusMsg: + """Get edge node status + + ``GET /v1/devices/name/{name}/status`` + operationId: ``EdgeNodeStatus_GetEdgeNodeStatusByName`` + """ + path = f"/v1/devices/name/{name}/status" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=DeviceStatusMsg) + + def get_edge_node_edgeview_status_by_name(self, name: str, request_id: str | None = None) -> DeviceRawMetrics: + """Get edge node edgeview status by edge node name + + ``GET /v1/devices/name/{name}/status/edgeview`` + operationId: ``EdgeNodeStatus_GetEdgeNodeEdgeviewStatusByName`` + """ + path = f"/v1/devices/name/{name}/status/edgeview" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=DeviceRawMetrics) + + def get_edge_node_info_by_name(self, name: str, request_id: str | None = None) -> DeviceInfoMsg: + """Get edge node info + + ``GET /v1/devices/name/{name}/status/info`` + operationId: ``EdgeNodeStatus_GetEdgeNodeInfoByName`` + """ + path = f"/v1/devices/name/{name}/status/info" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=DeviceInfoMsg) + + def get_edge_node_raw_status_by_name(self, name: str, request_id: str | None = None) -> DeviceRawMetrics: + """Get edge node raw status + + ``GET /v1/devices/name/{name}/status/metrics/raw`` + operationId: ``EdgeNodeStatus_GetEdgeNodeRawStatusByName`` + """ + path = f"/v1/devices/name/{name}/status/metrics/raw" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=DeviceRawMetrics) + + def get_edge_node_events_by_name( + self, + objname: str, + start_time: str | None = None, + end_time: str | None = None, + severity: str | None = None, + resource: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> EventQueryResponse: + """Get edge node events by id + + ``GET /v1/devices/name/{objname}/events`` + operationId: ``EdgeNodeStatus_GetEdgeNodeEventsByName`` + """ + path = f"/v1/devices/name/{objname}/events" + params: dict[str, Any] = {} + if start_time is not None: + params["startTime"] = start_time + if end_time is not None: + params["endTime"] = end_time + if severity is not None: + params["severity"] = severity + if resource is not None: + params["resource"] = resource + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=EventQueryResponse) + + def get_edge_node_resource_metrics_by_name( + self, + objname: str, + m_type: str, + start_time: str | None = None, + end_time: str | None = None, + interval: str | None = None, + request_id: str | None = None, + ) -> MetricQueryResponse: + """Get edge node resource usage timeline + + ``GET /v1/devices/name/{objname}/timeSeries/{mType}`` + operationId: ``EdgeNodeStatus_GetEdgeNodeResourceMetricsByName`` + """ + path = f"/v1/devices/name/{objname}/timeSeries/{m_type}" + params: dict[str, Any] = {} + if start_time is not None: + params["startTime"] = start_time + if end_time is not None: + params["endTime"] = end_time + if interval is not None: + params["interval"] = interval + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=MetricQueryResponse) + + def get_edge_node_by_serial(self, serialno: str, request_id: str | None = None) -> DeviceConfig: + """Get edge node by serial number + + ``GET /v1/devices/serial/{serialno}`` + operationId: ``EdgeNodeConfiguration_GetEdgeNodeBySerial`` + """ + path = f"/v1/devices/serial/{serialno}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=DeviceConfig) + + def query_edge_node_status( + self, + summary: bool | None = None, + run_state: str | None = None, + project_name: str | None = None, + load: str | None = None, + name_pattern: str | None = None, + tags: str | None = None, + project_name_pattern: str | None = None, + device_name: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + fields: list[str] | None = None, + admin_state: str | None = None, + eve_lts_support_type: str | None = None, + include_interfaces: bool | None = None, + title_pattern: str | None = None, + request_id: str | None = None, + ) -> DeviceStatusListMsg: + """Query status of edge nodes + + ``GET /v1/devices/status`` + operationId: ``EdgeNodeStatus_QueryEdgeNodeStatus`` + """ + path = "/v1/devices/status" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if run_state is not None: + params["runState"] = run_state + if project_name is not None: + params["projectName"] = project_name + if load is not None: + params["load"] = load + if name_pattern is not None: + params["namePattern"] = name_pattern + if tags is not None: + params["tags"] = tags + if project_name_pattern is not None: + params["projectNamePattern"] = project_name_pattern + if device_name is not None: + params["deviceName"] = device_name + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if fields is not None: + params["fields"] = fields + if admin_state is not None: + params["adminState"] = admin_state + if eve_lts_support_type is not None: + params["eveLtsSupportType"] = eve_lts_support_type + if include_interfaces is not None: + params["includeInterfaces"] = include_interfaces + if title_pattern is not None: + params["titlePattern"] = title_pattern + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=DeviceStatusListMsg) + + def get_device_status_config( + self, + summary: bool | None = None, + run_state: str | None = None, + project_name: str | None = None, + load: str | None = None, + name_pattern: str | None = None, + tags: str | None = None, + project_name_pattern: str | None = None, + device_name: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + fields: list[str] | None = None, + admin_state: str | None = None, + eve_lts_support_type: str | None = None, + include_interfaces: bool | None = None, + title_pattern: str | None = None, + request_id: str | None = None, + ) -> DeviceStatusConfigList: + """Query device status and config + + ``GET /v1/devices/status-config`` + operationId: ``HardwareModel_GetDeviceStatusConfig`` + """ + path = "/v1/devices/status-config" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if run_state is not None: + params["runState"] = run_state + if project_name is not None: + params["projectName"] = project_name + if load is not None: + params["load"] = load + if name_pattern is not None: + params["namePattern"] = name_pattern + if tags is not None: + params["tags"] = tags + if project_name_pattern is not None: + params["projectNamePattern"] = project_name_pattern + if device_name is not None: + params["deviceName"] = device_name + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if fields is not None: + params["fields"] = fields + if admin_state is not None: + params["adminState"] = admin_state + if eve_lts_support_type is not None: + params["eveLtsSupportType"] = eve_lts_support_type + if include_interfaces is not None: + params["includeInterfaces"] = include_interfaces + if title_pattern is not None: + params["titlePattern"] = title_pattern + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=DeviceStatusConfigList) + + def get_device_status_location( + self, + summary: bool | None = None, + run_state: str | None = None, + project_name: str | None = None, + load: str | None = None, + name_pattern: str | None = None, + tags: str | None = None, + project_name_pattern: str | None = None, + device_name: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + fields: list[str] | None = None, + admin_state: str | None = None, + eve_lts_support_type: str | None = None, + include_interfaces: bool | None = None, + title_pattern: str | None = None, + request_id: str | None = None, + ) -> DeviceLocations: + """Query device status location + + ``GET /v1/devices/status/locations`` + operationId: ``HardwareModel_GetDeviceStatusLocation`` + """ + path = "/v1/devices/status/locations" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if run_state is not None: + params["runState"] = run_state + if project_name is not None: + params["projectName"] = project_name + if load is not None: + params["load"] = load + if name_pattern is not None: + params["namePattern"] = name_pattern + if tags is not None: + params["tags"] = tags + if project_name_pattern is not None: + params["projectNamePattern"] = project_name_pattern + if device_name is not None: + params["deviceName"] = device_name + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if fields is not None: + params["fields"] = fields + if admin_state is not None: + params["adminState"] = admin_state + if eve_lts_support_type is not None: + params["eveLtsSupportType"] = eve_lts_support_type + if include_interfaces is not None: + params["includeInterfaces"] = include_interfaces + if title_pattern is not None: + params["titlePattern"] = title_pattern + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=DeviceLocations) + + def get_device_tags( + self, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> ObjectTagsList: + """Query device object tag key-values + + ``GET /v1/devices/tags`` + operationId: ``HardwareModel_GetDeviceTags`` + """ + path = "/v1/devices/tags" + params: dict[str, Any] = {} + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ObjectTagsList) + + def update_pcr_template(self, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """Update pcr template + + ``PUT /v1/pcrtemplate/id/{id}`` + operationId: ``HardwareModel_UpdatePCRTemplate`` + """ + path = f"/v1/pcrtemplate/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_pcr_template_by_id(self, id: str, model_id: str | None = None, request_id: str | None = None) -> PCRTemplatesInfo: + """Query pcr template + + ``GET /v1/pcrtemplates/id/{id}`` + operationId: ``HardwareModel_GetPCRTemplateById`` + """ + path = f"/v1/pcrtemplates/id/{id}" + params: dict[str, Any] = {} + if model_id is not None: + params["modelId"] = model_id + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=PCRTemplatesInfo) + + def hardware_model__delete_edge_node(self, id: str, model_id: str | None = None, request_id: str | None = None) -> ZsrvResponse: + """Delete pcr template + + ``DELETE /v1/pcrtemplates/id/{id}`` + operationId: ``HardwareModel_DeleteEdgeNode`` + """ + path = f"/v1/pcrtemplates/id/{id}" + params: dict[str, Any] = {} + if model_id is not None: + params["modelId"] = model_id + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def query_resource_groups( + self, + summary: bool | None = None, + name_pattern: str | None = None, + type: str | None = None, + tags: str | None = None, + title_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + fields: list[str] | None = None, + request_id: str | None = None, + ) -> Tags: + """Query resource groups + + ``GET /v1/projects`` + operationId: ``ResourceGroup_QueryResourceGroups`` + """ + path = "/v1/projects" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if name_pattern is not None: + params["namePattern"] = name_pattern + if type is not None: + params["type"] = type + if tags is not None: + params["tags"] = tags + if title_pattern is not None: + params["titlePattern"] = title_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if fields is not None: + params["fields"] = fields + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=Tags) + + def create_resource_group(self, body: Tag | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Create resource group + + ``POST /v1/projects`` + operationId: ``ResourceGroup_CreateResourceGroup`` + """ + path = "/v1/projects" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_resource_group(self, id: str, request_id: str | None = None) -> Tag: + """Get resource group + + ``GET /v1/projects/id/{id}`` + operationId: ``ResourceGroup_GetResourceGroup`` + """ + path = f"/v1/projects/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=Tag) + + def delete_resource_group(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Delete resource group + + ``DELETE /v1/projects/id/{id}`` + operationId: ``ResourceGroup_DeleteResourceGroup`` + """ + path = f"/v1/projects/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def update_resource_group(self, id: str, body: TagUpdateHttpRequest | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Update resource group + + ``PUT /v1/projects/id/{id}`` + operationId: ``ResourceGroup_UpdateResourceGroup`` + """ + path = f"/v1/projects/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_resource_group_status_by_id(self, id: str, request_id: str | None = None) -> TagStatusMsg: + """Get resource group status + + ``GET /v1/projects/id/{id}/status`` + operationId: ``ResourceGroupStatus_GetResourceGroupStatusById`` + """ + path = f"/v1/projects/id/{id}/status" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=TagStatusMsg) + + def get_resource_group_events( + self, + objid: str, + start_time: str | None = None, + end_time: str | None = None, + severity: str | None = None, + resource: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> EventQueryResponse: + """Get resource group events by id + + ``GET /v1/projects/id/{objid}/events`` + operationId: ``ResourceGroup_GetResourceGroupEvents`` + """ + path = f"/v1/projects/id/{objid}/events" + params: dict[str, Any] = {} + if start_time is not None: + params["startTime"] = start_time + if end_time is not None: + params["endTime"] = end_time + if severity is not None: + params["severity"] = severity + if resource is not None: + params["resource"] = resource + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=EventQueryResponse) + + def get_resource_group_resource_metrics_by_id( + self, + objid: str, + m_type: str, + start_time: str | None = None, + end_time: str | None = None, + interval: str | None = None, + request_id: str | None = None, + ) -> MetricQueryResponse: + """Get resource group resource usage timeline + + ``GET /v1/projects/id/{objid}/timeSeries/{mType}`` + operationId: ``ResourceGroup_GetResourceGroupResourceMetricsById`` + """ + path = f"/v1/projects/id/{objid}/timeSeries/{m_type}" + params: dict[str, Any] = {} + if start_time is not None: + params["startTime"] = start_time + if end_time is not None: + params["endTime"] = end_time + if interval is not None: + params["interval"] = interval + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=MetricQueryResponse) + + def get_resource_group_by_name(self, name: str, request_id: str | None = None) -> Tag: + """Get resource group + + ``GET /v1/projects/name/{name}`` + operationId: ``ResourceGroup_GetResourceGroupByName`` + """ + path = f"/v1/projects/name/{name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=Tag) + + def get_resource_group_status_by_name(self, name: str, request_id: str | None = None) -> TagStatusMsg: + """Get resource group status + + ``GET /v1/projects/name/{name}/status`` + operationId: ``ResourceGroupStatus_GetResourceGroupStatusByName`` + """ + path = f"/v1/projects/name/{name}/status" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=TagStatusMsg) + + def get_resource_group_events_by_name( + self, + objname: str, + start_time: str | None = None, + end_time: str | None = None, + severity: str | None = None, + resource: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> EventQueryResponse: + """Get resource group events by name + + ``GET /v1/projects/name/{objname}/events`` + operationId: ``ResourceGroup_GetResourceGroupEventsByName`` + """ + path = f"/v1/projects/name/{objname}/events" + params: dict[str, Any] = {} + if start_time is not None: + params["startTime"] = start_time + if end_time is not None: + params["endTime"] = end_time + if severity is not None: + params["severity"] = severity + if resource is not None: + params["resource"] = resource + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=EventQueryResponse) + + def get_resource_group_resource_metrics_by_name( + self, + objname: str, + m_type: str, + start_time: str | None = None, + end_time: str | None = None, + interval: str | None = None, + request_id: str | None = None, + ) -> MetricQueryResponse: + """Get resource group resource usage timeline + + ``GET /v1/projects/name/{objname}/timeSeries/{mType}`` + operationId: ``ResourceGroup_GetResourceGroupResourceMetricsByName`` + """ + path = f"/v1/projects/name/{objname}/timeSeries/{m_type}" + params: dict[str, Any] = {} + if start_time is not None: + params["startTime"] = start_time + if end_time is not None: + params["endTime"] = end_time + if interval is not None: + params["interval"] = interval + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=MetricQueryResponse) + + def query_resource_group_status( + self, + summary: bool | None = None, + name_pattern: str | None = None, + status: int | None = None, + type: str | None = None, + tags: str | None = None, + title_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + fields: list[str] | None = None, + request_id: str | None = None, + ) -> TagStatusListMsg: + """Query resource groups status + + ``GET /v1/projects/status`` + operationId: ``ResourceGroupStatus_QueryResourceGroupStatus`` + """ + path = "/v1/projects/status" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if name_pattern is not None: + params["namePattern"] = name_pattern + if status is not None: + params["status"] = status + if type is not None: + params["type"] = type + if tags is not None: + params["tags"] = tags + if title_pattern is not None: + params["titlePattern"] = title_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if fields is not None: + params["fields"] = fields + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=TagStatusListMsg) + + def query_resource_group_status_config( + self, + summary: bool | None = None, + name_pattern: str | None = None, + status: int | None = None, + type: str | None = None, + tags: str | None = None, + title_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + fields: list[str] | None = None, + request_id: str | None = None, + ) -> TagsConfigStatus: + """Query resource groups status and config + + ``GET /v1/projects/status-config`` + operationId: ``ResourceGroupStatus_QueryResourceGroupStatusConfig`` + """ + path = "/v1/projects/status-config" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if name_pattern is not None: + params["namePattern"] = name_pattern + if status is not None: + params["status"] = status + if type is not None: + params["type"] = type + if tags is not None: + params["tags"] = tags + if title_pattern is not None: + params["titlePattern"] = title_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if fields is not None: + params["fields"] = fields + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=TagsConfigStatus) + + def get_resource_group_tags( + self, + filter_obj_id: str | None = None, + filter_obj_name: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> ObjectTagsList: + """Query resource group tag key-values + + ``GET /v1/projects/tags`` + operationId: ``ResourceGroup_GetResourceGroupTags`` + """ + path = "/v1/projects/tags" + params: dict[str, Any] = {} + if filter_obj_id is not None: + params["filter.objId"] = filter_obj_id + if filter_obj_name is not None: + params["filter.objName"] = filter_obj_name + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ObjectTagsList) + + def query_hardware_models( + self, + summary: bool | None = None, + name_pattern: str | None = None, + brand_id: list[str] | None = None, + origin_type: str | None = None, + include_global: bool | None = None, + title_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> SysModels: + """Query hardware models + + ``GET /v1/sysmodels`` + operationId: ``HardwareModel_QueryHardwareModels`` + """ + path = "/v1/sysmodels" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if name_pattern is not None: + params["namePattern"] = name_pattern + if brand_id is not None: + params["brandId"] = brand_id + if origin_type is not None: + params["originType"] = origin_type + if include_global is not None: + params["includeGlobal"] = include_global + if title_pattern is not None: + params["titlePattern"] = title_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=SysModels) + + def create_hardware_model(self, body: SysModel | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Create hardware model + + ``POST /v1/sysmodels`` + operationId: ``HardwareModel_CreateHardwareModel`` + """ + path = "/v1/sysmodels" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def query_global_hardware_models( + self, + summary: bool | None = None, + name_pattern: str | None = None, + brand_id: list[str] | None = None, + origin_type: str | None = None, + include_global: bool | None = None, + title_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> SysModels: + """Query global hardware models + + ``GET /v1/sysmodels/global`` + operationId: ``HardwareModel_QueryGlobalHardwareModels`` + """ + path = "/v1/sysmodels/global" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if name_pattern is not None: + params["namePattern"] = name_pattern + if brand_id is not None: + params["brandId"] = brand_id + if origin_type is not None: + params["originType"] = origin_type + if include_global is not None: + params["includeGlobal"] = include_global + if title_pattern is not None: + params["titlePattern"] = title_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=SysModels) + + def get_global_hardware_model(self, id: str, request_id: str | None = None) -> SysModel: + """Get global hardware model + + ``GET /v1/sysmodels/global/id/{id}`` + operationId: ``HardwareModel_GetGlobalHardwareModel`` + """ + path = f"/v1/sysmodels/global/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=SysModel) + + def get_global_hardware_model_by_name(self, name: str, request_id: str | None = None) -> SysModel: + """Get global hardware model + + ``GET /v1/sysmodels/global/name/{name}`` + operationId: ``HardwareModel_GetGlobalHardwareModelByName`` + """ + path = f"/v1/sysmodels/global/name/{name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=SysModel) + + def get_hardware_model(self, id: str, request_id: str | None = None) -> SysModel: + """Get hardware model + + ``GET /v1/sysmodels/id/{id}`` + operationId: ``HardwareModel_GetHardwareModel`` + """ + path = f"/v1/sysmodels/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=SysModel) + + def delete_hardware_model(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Delete hardware model + + ``DELETE /v1/sysmodels/id/{id}`` + operationId: ``HardwareModel_DeleteHardwareModel`` + """ + path = f"/v1/sysmodels/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def update_hardware_model(self, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """Update hardware model + + ``PUT /v1/sysmodels/id/{id}`` + operationId: ``HardwareModel_UpdateHardwareModel`` + """ + path = f"/v1/sysmodels/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def import_hardware_model(self, id: str, request_id: str | None = None) -> SysModel: + """Import hardware model to local enterprise if it is not already imported and return imported model information. + + ``PUT /v1/sysmodels/id/{id}/import`` + operationId: ``HardwareModel_ImportHardwareModel`` + """ + path = f"/v1/sysmodels/id/{id}/import" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, response_model=SysModel) + + def get_pcr_templates( + self, + id: str, + name: str | None = None, + eve_image_version: str | None = None, + name_pattern: str | None = None, + eve_image_version_pattern: str | None = None, + request_id: str | None = None, + ) -> PCRTemplatesInfo: + """Query pcr templates + + ``GET /v1/sysmodels/id/{id}/pcrtemplates`` + operationId: ``HardwareModel_GetPCRTemplates`` + """ + path = f"/v1/sysmodels/id/{id}/pcrtemplates" + params: dict[str, Any] = {} + if name is not None: + params["name"] = name + if eve_image_version is not None: + params["eveImageVersion"] = eve_image_version + if name_pattern is not None: + params["namePattern"] = name_pattern + if eve_image_version_pattern is not None: + params["eveImageVersionPattern"] = eve_image_version_pattern + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=PCRTemplatesInfo) + + def create_pcr_templates(self, id: str, body: PCRTemplatesReq | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Create pcr templates + + ``POST /v1/sysmodels/id/{id}/pcrtemplates`` + operationId: ``HardwareModel_CreatePCRTemplates`` + """ + path = f"/v1/sysmodels/id/{id}/pcrtemplates" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_pcr_template_by_name(self, model_id: str, name: str, request_id: str | None = None) -> PCRTemplatesInfo: + """Query pcr template + + ``GET /v1/sysmodels/id/{modelId}/pcrtemplates/name/{name}`` + operationId: ``HardwareModel_GetPCRTemplateByName`` + """ + path = f"/v1/sysmodels/id/{model_id}/pcrtemplates/name/{name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=PCRTemplatesInfo) + + def get_hardware_model_by_name(self, name: str, request_id: str | None = None) -> SysModel: + """Get hardware model + + ``GET /v1/sysmodels/name/{name}`` + operationId: ``HardwareModel_GetHardwareModelByName`` + """ + path = f"/v1/sysmodels/name/{name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=SysModel) + + def create_resource_group_v2(self, body: Tag | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Create resource group + + ``POST /v2/projects`` + operationId: ``ResourceGroup_CreateResourceGroupV2`` + """ + path = "/v2/projects" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_deployment_listby_idv2(self, project_id: str, title_pattern: str | None = None, request_id: str | None = None) -> Deployments: + """Get deployment list in a project by ID + + ``GET /v2/projects/id/{projectId}/deployments`` + operationId: ``ResourceGroup_GetDeploymentListbyIdv2`` + """ + path = f"/v2/projects/id/{project_id}/deployments" + params: dict[str, Any] = {} + if title_pattern is not None: + params["titlePattern"] = title_pattern + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=Deployments) + + def delete_resource_group_all_v2(self, project_id: str, title_pattern: str | None = None, request_id: str | None = None) -> ZsrvResponse: + """Delete all deployments in a project + + ``DELETE /v2/projects/id/{projectId}/deployments`` + operationId: ``ResourceGroup_DeleteResourceGroupAllV2`` + """ + path = f"/v2/projects/id/{project_id}/deployments" + params: dict[str, Any] = {} + if title_pattern is not None: + params["titlePattern"] = title_pattern + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def create_deployment(self, project_id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """Create deployment for a project + + ``POST /v2/projects/id/{projectId}/deployments`` + operationId: ``ResourceGroup_CreateDeployment`` + """ + path = f"/v2/projects/id/{project_id}/deployments" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_deployment_by_id_v2(self, project_id: str, id: str, request_id: str | None = None) -> Deployment: + """Get specific deployment status in a project by project ID and deployment ID + + ``GET /v2/projects/id/{projectId}/deployments/id/{id}`` + operationId: ``ResourceGroup_GetDeploymentByIdV2`` + """ + path = f"/v2/projects/id/{project_id}/deployments/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=Deployment) + + def delete_resource_group_v2(self, project_id: str, id: str, request_id: str | None = None) -> ZsrvResponse: + """Delete deployment in a project + + ``DELETE /v2/projects/id/{projectId}/deployments/id/{id}`` + operationId: ``ResourceGroup_DeleteResourceGroupV2`` + """ + path = f"/v2/projects/id/{project_id}/deployments/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def update_resource_group_v2(self, project_id: str, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """Update deployment in a project + + ``PUT /v2/projects/id/{projectId}/deployments/id/{id}`` + operationId: ``ResourceGroup_UpdateResourceGroupV2`` + """ + path = f"/v2/projects/id/{project_id}/deployments/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) diff --git a/packages/zedcloud/src/zedcloud/_generated/services/orchestration.py b/packages/zedcloud/src/zedcloud/_generated/services/orchestration.py new file mode 100644 index 0000000..db51d7d --- /dev/null +++ b/packages/zedcloud/src/zedcloud/_generated/services/orchestration.py @@ -0,0 +1,752 @@ +# Generated by scripts/generate_from_openapi.py — namespace "orchestration" +# Do not edit by hand. + +from __future__ import annotations + +from typing import Any + +from zedcloud.services.base import BaseService +from zedcloud._generated.models.orchestration import ( + APIUsageResp, + ClusterInstStatusListMsg, + ClusterInstStatusMsg, + ClusterInstance, + ClusterInstances, + DataStreamConfig, + DataStreamConfigList, + EdgedeviceList, + EventQueryResponse, + ObjectTagsList, + PluginConfig, + PluginConfigList, + ZsrvResponse, +) + + +class OrchestrationService(BaseService): + """Auto-generated client for ZEDEDA Orchestrator Service.""" + + def query_api_usage( + self, + enterprise_i_ds: list[str] | None = None, + user_agents: list[str] | None = None, + request_id: str | None = None, + ) -> APIUsageResp: + """Get API usage statistics + + ``GET /v1/apiusage`` + operationId: ``APIUsageTracking_QueryAPIUsage`` + """ + path = "/v1/apiusage" + params: dict[str, Any] = {} + if enterprise_i_ds is not None: + params["enterpriseIDs"] = enterprise_i_ds + if user_agents is not None: + params["userAgents"] = user_agents + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=APIUsageResp) + + def delete_deployment_policy(self, policy_id: str, deployment_id: str | None = None, request_id: str | None = None) -> ZsrvResponse: + """Delete a deployment policy. + + ``DELETE /v1/azure/deployment/policyid/{policyId}`` + operationId: ``AzureDeployments_DeleteDeploymentPolicy`` + """ + path = f"/v1/azure/deployment/policyid/{policy_id}" + params: dict[str, Any] = {} + if deployment_id is not None: + params["deploymentId"] = deployment_id + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def get_module_policy(self, module_policy_id: str, request_id: str | None = None) -> EdgedeviceList: + """Get a azure module policy by id. + + ``GET /v1/azure/edgedevice/modulepolicyid/{modulePolicyId}`` + operationId: ``AzureDeployments_GetModulePolicy`` + """ + path = f"/v1/azure/edgedevice/modulepolicyid/{module_policy_id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=EdgedeviceList) + + def query_cluster_instances( + self, + summary: bool | None = None, + project: str | None = None, + name_pattern: str | None = None, + project_name_pattern: str | None = None, + cluster_type: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + fields: list[str] | None = None, + request_id: str | None = None, + ) -> ClusterInstances: + """Query Cluster Instance. + + ``GET /v1/cluster/instances`` + operationId: ``ClusterInstanceConfiguration_QueryClusterInstances`` + """ + path = "/v1/cluster/instances" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if project is not None: + params["project"] = project + if name_pattern is not None: + params["namePattern"] = name_pattern + if project_name_pattern is not None: + params["projectNamePattern"] = project_name_pattern + if cluster_type is not None: + params["clusterType"] = cluster_type + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if fields is not None: + params["fields"] = fields + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ClusterInstances) + + def create_cluster_instance(self, body: ClusterInstance | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Create Cluster Instance. + + ``POST /v1/cluster/instances`` + operationId: ``ClusterInstanceConfiguration_CreateClusterInstance`` + """ + path = "/v1/cluster/instances" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_cluster_instance(self, id: str, request_id: str | None = None) -> ClusterInstance: + """Get Cluster Instance. + + ``GET /v1/cluster/instances/id/{id}`` + operationId: ``ClusterInstanceConfiguration_GetClusterInstance`` + """ + path = f"/v1/cluster/instances/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ClusterInstance) + + def delete_cluster_instance(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Delete Cluster Instance. + + ``DELETE /v1/cluster/instances/id/{id}`` + operationId: ``ClusterInstanceConfiguration_DeleteClusterInstance`` + """ + path = f"/v1/cluster/instances/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def update_cluster_instance(self, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """Update Cluster Instance. + + ``PUT /v1/cluster/instances/id/{id}`` + operationId: ``ClusterInstanceConfiguration_UpdateClusterInstance`` + """ + path = f"/v1/cluster/instances/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def activate_cluster_instance(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Activate Cluster Instance. + + ``PUT /v1/cluster/instances/id/{id}/activate`` + operationId: ``ClusterInstanceConfiguration_ActivateClusterInstance`` + """ + path = f"/v1/cluster/instances/id/{id}/activate" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def deactivate_cluster_instance(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Deactivate Cluster Instance. + + ``PUT /v1/cluster/instances/id/{id}/deactivate`` + operationId: ``ClusterInstanceConfiguration_DeactivateClusterInstance`` + """ + path = f"/v1/cluster/instances/id/{id}/deactivate" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def refresh_cluster_instance(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Refresh cluster instance + + ``PUT /v1/cluster/instances/id/{id}/refresh`` + operationId: ``ClusterInstanceConfiguration_RefreshClusterInstance`` + """ + path = f"/v1/cluster/instances/id/{id}/refresh" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def refresh_purge_cluster_instance(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Refresh and purge cluster instance + + ``PUT /v1/cluster/instances/id/{id}/refresh/purge`` + operationId: ``ClusterInstanceConfiguration_RefreshPurgeClusterInstance`` + """ + path = f"/v1/cluster/instances/id/{id}/refresh/purge" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def restart_cluster_instance(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Restart cluster instance + + ``PUT /v1/cluster/instances/id/{id}/restart`` + operationId: ``ClusterInstanceConfiguration_RestartClusterInstance`` + """ + path = f"/v1/cluster/instances/id/{id}/restart" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def get_cluster_instance_status(self, id: str, request_id: str | None = None) -> ClusterInstStatusMsg: + """Get Cluster Instance status. + + ``GET /v1/cluster/instances/id/{id}/status`` + operationId: ``ClusterInstanceStatus_GetClusterInstanceStatus`` + """ + path = f"/v1/cluster/instances/id/{id}/status" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ClusterInstStatusMsg) + + def get_cluster_instance_kubeconfig_by_id(self, id: str, request_id: str | None = None) -> ClusterInstStatusMsg: + """Get Cluster Instances kubeconfig by id. + + ``GET /v1/cluster/instances/id/{id}/status/kubeconfig`` + operationId: ``ClusterInstanceStatus_GetClusterInstanceKubeconfigById`` + """ + path = f"/v1/cluster/instances/id/{id}/status/kubeconfig" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ClusterInstStatusMsg) + + def download_cluster_instance_kubeconfig_by_id(self, id: str, request_id: str | None = None) -> ClusterInstStatusMsg: + """Download Cluster Instances kubeconfig by id. + + ``GET /v1/cluster/instances/id/{id}/status/kubeconfig/download`` + operationId: ``ClusterInstanceStatus_DownloadClusterInstanceKubeconfigById`` + """ + path = f"/v1/cluster/instances/id/{id}/status/kubeconfig/download" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ClusterInstStatusMsg) + + def get_cluster_instance_events( + self, + objid: str, + start_time: str | None = None, + end_time: str | None = None, + severity: str | None = None, + resource: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> EventQueryResponse: + """Get Cluster Instances events by id. + + ``GET /v1/cluster/instances/id/{objid}/events`` + operationId: ``ClusterInstanceStatus_GetClusterInstanceEvents`` + """ + path = f"/v1/cluster/instances/id/{objid}/events" + params: dict[str, Any] = {} + if start_time is not None: + params["startTime"] = start_time + if end_time is not None: + params["endTime"] = end_time + if severity is not None: + params["severity"] = severity + if resource is not None: + params["resource"] = resource + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=EventQueryResponse) + + def get_cluster_instance_by_name(self, name: str, request_id: str | None = None) -> ClusterInstance: + """Get Cluster Instance. + + ``GET /v1/cluster/instances/name/{name}`` + operationId: ``ClusterInstanceConfiguration_GetClusterInstanceByName`` + """ + path = f"/v1/cluster/instances/name/{name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ClusterInstance) + + def get_cluster_instance_status_by_name(self, name: str, request_id: str | None = None) -> ClusterInstStatusMsg: + """Get Cluster Instance status. + + ``GET /v1/cluster/instances/name/{name}/status`` + operationId: ``ClusterInstanceStatus_GetClusterInstanceStatusByName`` + """ + path = f"/v1/cluster/instances/name/{name}/status" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ClusterInstStatusMsg) + + def get_cluster_instance_kubeconfig_by_name(self, name: str, request_id: str | None = None) -> ClusterInstStatusMsg: + """Get Cluster Instances kubeconfig by name. + + ``GET /v1/cluster/instances/name/{name}/status/kubeconfig`` + operationId: ``ClusterInstanceStatus_GetClusterInstanceKubeconfigByName`` + """ + path = f"/v1/cluster/instances/name/{name}/status/kubeconfig" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ClusterInstStatusMsg) + + def download_cluster_instance_kubeconfig_by_name(self, name: str, request_id: str | None = None) -> ClusterInstStatusMsg: + """Download Cluster Instances kubeconfig by name. + + ``GET /v1/cluster/instances/name/{name}/status/kubeconfig/download`` + operationId: ``ClusterInstanceStatus_DownloadClusterInstanceKubeconfigByName`` + """ + path = f"/v1/cluster/instances/name/{name}/status/kubeconfig/download" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ClusterInstStatusMsg) + + def get_cluster_instance_events_by_name( + self, + objname: str, + start_time: str | None = None, + end_time: str | None = None, + severity: str | None = None, + resource: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> EventQueryResponse: + """Get Cluster Instances events by name. + + ``GET /v1/cluster/instances/name/{objname}/events`` + operationId: ``ClusterInstanceStatus_GetClusterInstanceEventsByName`` + """ + path = f"/v1/cluster/instances/name/{objname}/events" + params: dict[str, Any] = {} + if start_time is not None: + params["startTime"] = start_time + if end_time is not None: + params["endTime"] = end_time + if severity is not None: + params["severity"] = severity + if resource is not None: + params["resource"] = resource + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=EventQueryResponse) + + def query_cluster_instance_status( + self, + summary: bool | None = None, + name_pattern: str | None = None, + project: str | None = None, + project_name_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + fields: list[str] | None = None, + request_id: str | None = None, + ) -> ClusterInstStatusListMsg: + """Query status of Cluster Instances. + + ``GET /v1/cluster/instances/status`` + operationId: ``ClusterInstanceStatus_QueryClusterInstanceStatus`` + """ + path = "/v1/cluster/instances/status" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if name_pattern is not None: + params["namePattern"] = name_pattern + if project is not None: + params["project"] = project + if project_name_pattern is not None: + params["projectNamePattern"] = project_name_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if fields is not None: + params["fields"] = fields + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ClusterInstStatusListMsg) + + def query_cluster_instance_status_config( + self, + summary: bool | None = None, + name_pattern: str | None = None, + project: str | None = None, + project_name_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + fields: list[str] | None = None, + request_id: str | None = None, + ) -> ClusterInstStatusListMsg: + """Query status and config of Cluster Instances. + + ``GET /v1/cluster/instances/status-config`` + operationId: ``ClusterInstanceStatus_QueryClusterInstanceStatusConfig`` + """ + path = "/v1/cluster/instances/status-config" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if name_pattern is not None: + params["namePattern"] = name_pattern + if project is not None: + params["project"] = project + if project_name_pattern is not None: + params["projectNamePattern"] = project_name_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if fields is not None: + params["fields"] = fields + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ClusterInstStatusListMsg) + + def getcluster_instance_tags( + self, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> ObjectTagsList: + """Query cluster instance tags + + ``GET /v1/cluster/instances/tags`` + operationId: ``AzureDeployments_GetclusterInstanceTags`` + """ + path = "/v1/cluster/instances/tags" + params: dict[str, Any] = {} + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ObjectTagsList) + + def query_data_streams( + self, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + name_pattern: str | None = None, + type: str | None = None, + request_id: str | None = None, + ) -> DataStreamConfigList: + """Get data stream config list. + + ``GET /v1/datastreams`` + operationId: ``DataStreamConfigs_QueryDataStreams`` + """ + path = "/v1/datastreams" + params: dict[str, Any] = {} + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if name_pattern is not None: + params["namePattern"] = name_pattern + if type is not None: + params["type"] = type + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=DataStreamConfigList) + + def create_data_stream(self, body: DataStreamConfig | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Create data stream config. + + ``POST /v1/datastreams`` + operationId: ``DataStreamConfigs_CreateDataStream`` + """ + path = "/v1/datastreams" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_data_stream_by_id(self, id: str, request_id: str | None = None) -> DataStreamConfig: + """Get a data stream config by Id. + + ``GET /v1/datastreams/id/{id}`` + operationId: ``DataStreamConfigs_GetDataStreamById`` + """ + path = f"/v1/datastreams/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=DataStreamConfig) + + def delete_data_stream(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Delete a data stream config. + + ``DELETE /v1/datastreams/id/{id}`` + operationId: ``DataStreamConfigs_DeleteDataStream`` + """ + path = f"/v1/datastreams/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def update_data_stream(self, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """Update a data stream config. + + ``PUT /v1/datastreams/id/{id}`` + operationId: ``DataStreamConfigs_UpdateDataStream`` + """ + path = f"/v1/datastreams/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_data_stream_by_name(self, name: str, request_id: str | None = None) -> DataStreamConfig: + """Get a data stream config by name. + + ``GET /v1/datastreams/name/{name}`` + operationId: ``DataStreamConfigs_GetDataStreamByName`` + """ + path = f"/v1/datastreams/name/{name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=DataStreamConfig) + + def query_plugins( + self, + summary: bool | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + name_pattern: str | None = None, + integration_type: int | None = None, + request_id: str | None = None, + ) -> PluginConfigList: + """Get third party plugins list. + + ``GET /v1/plugins`` + operationId: ``ThirdPartyPluginManagement_QueryPlugins`` + """ + path = "/v1/plugins" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if name_pattern is not None: + params["namePattern"] = name_pattern + if integration_type is not None: + params["integrationType"] = integration_type + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=PluginConfigList) + + def create_plugin(self, body: PluginConfig | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Create third party plugin. + + ``POST /v1/plugins`` + operationId: ``ThirdPartyPluginManagement_CreatePlugin`` + """ + path = "/v1/plugins" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_plugin_by_id(self, id: str, request_id: str | None = None) -> PluginConfig: + """Get a third party plugin by Id. + + ``GET /v1/plugins/id/{id}`` + operationId: ``ThirdPartyPluginManagement_GetPluginById`` + """ + path = f"/v1/plugins/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=PluginConfig) + + def delete_plugin(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Delete a third party plugin. + + ``DELETE /v1/plugins/id/{id}`` + operationId: ``ThirdPartyPluginManagement_DeletePlugin`` + """ + path = f"/v1/plugins/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def update_plugin(self, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """Update a third party plugin. + + ``PUT /v1/plugins/id/{id}`` + operationId: ``ThirdPartyPluginManagement_UpdatePlugin`` + """ + path = f"/v1/plugins/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_plugin_by_name(self, name: str, request_id: str | None = None) -> PluginConfig: + """Get a third party plugin by name. + + ``GET /v1/plugins/name/{name}`` + operationId: ``ThirdPartyPluginManagement_GetPluginByName`` + """ + path = f"/v1/plugins/name/{name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=PluginConfig) diff --git a/packages/zedcloud/src/zedcloud/_generated/services/storage.py b/packages/zedcloud/src/zedcloud/_generated/services/storage.py new file mode 100644 index 0000000..6040dfc --- /dev/null +++ b/packages/zedcloud/src/zedcloud/_generated/services/storage.py @@ -0,0 +1,946 @@ +# Generated by scripts/generate_from_openapi.py — namespace "storage" +# Do not edit by hand. + +from __future__ import annotations + +from typing import Any + +from zedcloud.services.base import BaseService +from zedcloud._generated.models.storage import ( + Artifact, + ArtifactList, + DatastoreInfo, + DatastoreProjectList, + Datastores, + EventQueryResponse, + ImageConfig, + ImageProjectList, + Images, + VolInstConfig, + VolInstConfigUpdateHttpRequest, + VolInstList, + VolInstStatusListMsg, + VolInstStatusMsg, + ZsrvResponse, +) + + +class StorageService(BaseService): + """Auto-generated client for ZEDEDA Storage Service.""" + + def query_images( + self, + summary: bool | None = None, + image_type: str | None = None, + image_status: str | None = None, + datastore_id: str | None = None, + image_arch: str | None = None, + name_pattern: str | None = None, + origin_type: int | None = None, + title_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> Images: + """Query edge application images + + ``GET /v1/apps/images`` + operationId: ``ImageConfiguration_QueryImages`` + """ + path = "/v1/apps/images" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if image_type is not None: + params["imageType"] = image_type + if image_status is not None: + params["imageStatus"] = image_status + if datastore_id is not None: + params["datastoreId"] = datastore_id + if image_arch is not None: + params["imageArch"] = image_arch + if name_pattern is not None: + params["namePattern"] = name_pattern + if origin_type is not None: + params["originType"] = origin_type + if title_pattern is not None: + params["titlePattern"] = title_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=Images) + + def create_image(self, body: ImageConfig | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Create edge application image + + ``POST /v1/apps/images`` + operationId: ``ImageConfiguration_CreateImage`` + """ + path = "/v1/apps/images" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def query_latest_image_versions( + self, + name_pattern: str | None = None, + fields: list[str] | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> Images: + """Query latest version of EVE image for each hardware architecture + + ``GET /v1/apps/images/baseos/latest`` + operationId: ``ImageConfiguration_QueryLatestImageVersions`` + """ + path = "/v1/apps/images/baseos/latest" + params: dict[str, Any] = {} + if name_pattern is not None: + params["namePattern"] = name_pattern + if fields is not None: + params["fields"] = fields + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=Images) + + def delete_latest_image(self, id: str | None = None, request_id: str | None = None) -> ZsrvResponse: + """Delete edge application image + + ``DELETE /v1/apps/images/baseos/latest`` + operationId: ``ImageConfiguration_DeleteLatestImage`` + """ + path = "/v1/apps/images/baseos/latest" + params: dict[str, Any] = {} + if id is not None: + params["id"] = id + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def mark_eve_image_latest(self, body: ImageConfig | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Mark Eve image as latest + + ``PUT /v1/apps/images/baseos/latest`` + operationId: ``ImageConfiguration_MarkEveImageLatest`` + """ + path = "/v1/apps/images/baseos/latest" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_latest_image_version(self, image_arch: str, request_id: str | None = None) -> ImageConfig: + """Get latest version of EVE image + + ``GET /v1/apps/images/baseos/latest/hwclass/{imageArch}`` + operationId: ``ImageConfiguration_GetLatestImageVersion`` + """ + path = f"/v1/apps/images/baseos/latest/hwclass/{image_arch}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ImageConfig) + + def mark_eve_image_latest2(self, image_arch: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """Mark Eve image as latest + + ``PUT /v1/apps/images/baseos/latest/hwclass/{imageArch}`` + operationId: ``ImageConfiguration_MarkEveImageLatest2`` + """ + path = f"/v1/apps/images/baseos/latest/hwclass/{image_arch}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_image(self, id: str, request_id: str | None = None) -> ImageConfig: + """Get edge application image + + ``GET /v1/apps/images/id/{id}`` + operationId: ``ImageConfiguration_GetImage`` + """ + path = f"/v1/apps/images/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ImageConfig) + + def delete_image(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Delete edge application image + + ``DELETE /v1/apps/images/id/{id}`` + operationId: ``ImageConfiguration_DeleteImage`` + """ + path = f"/v1/apps/images/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def update_image(self, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """Update edge application image + + ``PUT /v1/apps/images/id/{id}`` + operationId: ``ImageConfiguration_UpdateImage`` + """ + path = f"/v1/apps/images/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def uplink_image(self, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """Uplinks edge application image + + ``PUT /v1/apps/images/id/{id}/uplink`` + operationId: ``ImageConfiguration_UplinkImage`` + """ + path = f"/v1/apps/images/id/{id}/uplink" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_image_by_name(self, name: str, request_id: str | None = None) -> ImageConfig: + """Get edge application image + + ``GET /v1/apps/images/name/{name}`` + operationId: ``ImageConfiguration_GetImageByName`` + """ + path = f"/v1/apps/images/name/{name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ImageConfig) + + def upload_image_chunked( + self, + name: str, + body: dict[str, Any] | Any, + content_range: str, + request_id: str | None = None, + ) -> ZsrvResponse: + """Uploads edge application image binary file + + ``PUT /v1/apps/images/name/{name}/upload/chunked`` + operationId: ``ImageConfiguration_UploadImageChunked`` + """ + path = f"/v1/apps/images/name/{name}/upload/chunked" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + if content_range is not None: + headers["Content-Range"] = content_range + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def upload_image_file(self, name: str, request_id: str | None = None) -> ZsrvResponse: + """Uploads edge application image binary file + + ``PUT /v1/apps/images/name/{name}/upload/file`` + operationId: ``ImageConfiguration_UploadImageFile`` + """ + path = f"/v1/apps/images/name/{name}/upload/file" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def query_image_project_list( + self, + ids: list[str] | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> ImageProjectList: + """Query common project access list among a list of images + + ``GET /v1/apps/images/projects`` + operationId: ``ImageConfiguration_QueryImageProjectList`` + """ + path = "/v1/apps/images/projects" + params: dict[str, Any] = {} + if ids is not None: + params["ids"] = ids + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ImageProjectList) + + def query_artifacts( + self, + summary: bool | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> ArtifactList: + """Query artifact files + + ``GET /v1/artifacts`` + operationId: ``ArtifactManager_QueryArtifacts`` + """ + path = "/v1/artifacts" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=ArtifactList) + + def create_artifact(self, body: Artifact | dict[str, Any], request_id: str | None = None) -> Artifact: + """Create artifact file in the file storage + + ``POST /v1/artifacts`` + operationId: ``ArtifactManager_CreateArtifact`` + """ + path = "/v1/artifacts" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=Artifact) + + def get_artifact_stream(self, id: str, request_id: str | None = None) -> Any: + """Download artifact file chunk by chunk + + ``GET /v1/artifacts/id/{id}`` + operationId: ``ArtifactManager_GetArtifactStream`` + """ + path = f"/v1/artifacts/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=None) + + def delete_artifact(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Delete artifact file form the datastore + + ``DELETE /v1/artifacts/id/{id}`` + operationId: ``ArtifactManager_DeleteArtifact`` + """ + path = f"/v1/artifacts/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def upload_artifact( + self, + id: str, + body: dict[str, Any] | Any, + content_range: str, + request_id: str | None = None, + ) -> ZsrvResponse: + """Uploads the given chunk into the specified multiplePart file + + ``PUT /v1/artifacts/id/{id}/upload/chunked`` + operationId: ``ArtifactManager_UploadArtifact`` + """ + path = f"/v1/artifacts/id/{id}/upload/chunked" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + if content_range is not None: + headers["Content-Range"] = content_range + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_artifact_signed_url(self, id: str, request_id: str | None = None) -> Artifact: + """Generates the signedUrl for accessing the resource + + ``GET /v1/artifacts/id/{id}/url`` + operationId: ``ArtifactManager_GetArtifactSignedUrl`` + """ + path = f"/v1/artifacts/id/{id}/url" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=Artifact) + + def query_datastores( + self, + summary: bool | None = None, + name_pattern: str | None = None, + ds_type: int | None = None, + origin_type: int | None = None, + title_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> Datastores: + """Query datastores + + ``GET /v1/datastores`` + operationId: ``DatastoreConfiguration_QueryDatastores`` + """ + path = "/v1/datastores" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if name_pattern is not None: + params["namePattern"] = name_pattern + if ds_type is not None: + params["dsType"] = ds_type + if origin_type is not None: + params["originType"] = origin_type + if title_pattern is not None: + params["titlePattern"] = title_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=Datastores) + + def create_datastore(self, body: DatastoreInfo | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Create Datastore + + ``POST /v1/datastores`` + operationId: ``DatastoreConfiguration_CreateDatastore`` + """ + path = "/v1/datastores" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_datastore(self, id: str, request_id: str | None = None) -> DatastoreInfo: + """Get datastore + + ``GET /v1/datastores/id/{id}`` + operationId: ``DatastoreConfiguration_GetDatastore`` + """ + path = f"/v1/datastores/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=DatastoreInfo) + + def delete_datastore(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Delete datastore + + ``DELETE /v1/datastores/id/{id}`` + operationId: ``DatastoreConfiguration_DeleteDatastore`` + """ + path = f"/v1/datastores/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def update_datastore(self, id: str, body: dict[str, Any] | Any, request_id: str | None = None) -> ZsrvResponse: + """Update datastore + + ``PUT /v1/datastores/id/{id}`` + operationId: ``DatastoreConfiguration_UpdateDatastore`` + """ + path = f"/v1/datastores/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_datastore_by_name(self, name: str, request_id: str | None = None) -> DatastoreInfo: + """Get datastore + + ``GET /v1/datastores/name/{name}`` + operationId: ``DatastoreConfiguration_GetDatastoreByName`` + """ + path = f"/v1/datastores/name/{name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=DatastoreInfo) + + def query_datastore_project_list( + self, + ids: list[str] | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> DatastoreProjectList: + """Query the project access list among a list of datastore + + ``GET /v1/datastores/projects`` + operationId: ``DatastoreConfiguration_QueryDatastoreProjectList`` + """ + path = "/v1/datastores/projects" + params: dict[str, Any] = {} + if ids is not None: + params["ids"] = ids + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=DatastoreProjectList) + + def query_volume_instances( + self, + summary: bool | None = None, + device_name: str | None = None, + project_name: str | None = None, + name_pattern: str | None = None, + label_name: str | None = None, + app_inst_name: str | None = None, + device_name_pattern: str | None = None, + project_name_pattern: str | None = None, + title_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + fields: list[str] | None = None, + request_id: str | None = None, + ) -> VolInstList: + """Query edge volume instances + + ``GET /v1/volumes/instances`` + operationId: ``VolumeInstanceConfiguration_QueryVolumeInstances`` + """ + path = "/v1/volumes/instances" + params: dict[str, Any] = {} + if summary is not None: + params["summary"] = summary + if device_name is not None: + params["deviceName"] = device_name + if project_name is not None: + params["projectName"] = project_name + if name_pattern is not None: + params["namePattern"] = name_pattern + if label_name is not None: + params["labelName"] = label_name + if app_inst_name is not None: + params["appInstName"] = app_inst_name + if device_name_pattern is not None: + params["deviceNamePattern"] = device_name_pattern + if project_name_pattern is not None: + params["projectNamePattern"] = project_name_pattern + if title_pattern is not None: + params["titlePattern"] = title_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if fields is not None: + params["fields"] = fields + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=VolInstList) + + def create_volume_instance(self, body: VolInstConfig | dict[str, Any], request_id: str | None = None) -> ZsrvResponse: + """Create edge volume instance + + ``POST /v1/volumes/instances`` + operationId: ``VolumeInstanceConfiguration_CreateVolumeInstance`` + """ + path = "/v1/volumes/instances" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("POST", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_volume_instance(self, id: str, request_id: str | None = None) -> VolInstConfig: + """Get edge volume instance + + ``GET /v1/volumes/instances/id/{id}`` + operationId: ``VolumeInstanceConfiguration_GetVolumeInstance`` + """ + path = f"/v1/volumes/instances/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=VolInstConfig) + + def delete_volume_instance(self, id: str, request_id: str | None = None) -> ZsrvResponse: + """Delete volume instance + + ``DELETE /v1/volumes/instances/id/{id}`` + operationId: ``VolumeInstanceConfiguration_DeleteVolumeInstance`` + """ + path = f"/v1/volumes/instances/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("DELETE", path, params=params or None, headers=headers or None, response_model=ZsrvResponse) + + def update_volume_instance( + self, + id: str, + body: VolInstConfigUpdateHttpRequest | dict[str, Any], + request_id: str | None = None, + ) -> ZsrvResponse: + """Update edge volume instance + + ``PUT /v1/volumes/instances/id/{id}`` + operationId: ``VolumeInstanceConfiguration_UpdateVolumeInstance`` + """ + path = f"/v1/volumes/instances/id/{id}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("PUT", path, params=params or None, headers=headers or None, json_body=body, response_model=ZsrvResponse) + + def get_volume_instance_status(self, id: str, request_id: str | None = None) -> VolInstStatusMsg: + """Get edge volume instance status + + ``GET /v1/volumes/instances/id/{id}/status`` + operationId: ``VolumeInstanceStatus_GetVolumeInstanceStatus`` + """ + path = f"/v1/volumes/instances/id/{id}/status" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=VolInstStatusMsg) + + def get_volume_instance_events( + self, + objid: str, + start_time: str | None = None, + end_time: str | None = None, + severity: str | None = None, + resource: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> EventQueryResponse: + """Get edge volume instance events by id + + ``GET /v1/volumes/instances/id/{objid}/events`` + operationId: ``VolumeInstanceStatus_GetVolumeInstanceEvents`` + """ + path = f"/v1/volumes/instances/id/{objid}/events" + params: dict[str, Any] = {} + if start_time is not None: + params["startTime"] = start_time + if end_time is not None: + params["endTime"] = end_time + if severity is not None: + params["severity"] = severity + if resource is not None: + params["resource"] = resource + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=EventQueryResponse) + + def get_volume_instance_by_name(self, name: str, request_id: str | None = None) -> VolInstConfig: + """Get edge volume instance + + ``GET /v1/volumes/instances/name/{name}`` + operationId: ``VolumeInstanceConfiguration_GetVolumeInstanceByName`` + """ + path = f"/v1/volumes/instances/name/{name}" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=VolInstConfig) + + def get_volume_instance_status_by_name(self, name: str, request_id: str | None = None) -> VolInstStatusMsg: + """Get edge volume instance status + + ``GET /v1/volumes/instances/name/{name}/status`` + operationId: ``VolumeInstanceStatus_GetVolumeInstanceStatusByName`` + """ + path = f"/v1/volumes/instances/name/{name}/status" + params: dict[str, Any] = {} + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=VolInstStatusMsg) + + def get_volume_instance_events_by_name( + self, + objname: str, + start_time: str | None = None, + end_time: str | None = None, + severity: str | None = None, + resource: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + request_id: str | None = None, + ) -> EventQueryResponse: + """Get edge volume instance events by name + + ``GET /v1/volumes/instances/name/{objname}/events`` + operationId: ``VolumeInstanceStatus_GetVolumeInstanceEventsByName`` + """ + path = f"/v1/volumes/instances/name/{objname}/events" + params: dict[str, Any] = {} + if start_time is not None: + params["startTime"] = start_time + if end_time is not None: + params["endTime"] = end_time + if severity is not None: + params["severity"] = severity + if resource is not None: + params["resource"] = resource + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=EventQueryResponse) + + def query_volume_instance_status( + self, + device_name: str | None = None, + project_name: str | None = None, + name_pattern: str | None = None, + run_state: str | None = None, + type: str | None = None, + image_name: str | None = None, + app_inst_name: str | None = None, + device_name_pattern: str | None = None, + project_name_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + summary: bool | None = None, + fields: list[str] | None = None, + request_id: str | None = None, + ) -> VolInstStatusListMsg: + """Query status of edge volume instances + + ``GET /v1/volumes/instances/status`` + operationId: ``VolumeInstanceStatus_QueryVolumeInstanceStatus`` + """ + path = "/v1/volumes/instances/status" + params: dict[str, Any] = {} + if device_name is not None: + params["deviceName"] = device_name + if project_name is not None: + params["projectName"] = project_name + if name_pattern is not None: + params["namePattern"] = name_pattern + if run_state is not None: + params["runState"] = run_state + if type is not None: + params["type"] = type + if image_name is not None: + params["imageName"] = image_name + if app_inst_name is not None: + params["appInstName"] = app_inst_name + if device_name_pattern is not None: + params["deviceNamePattern"] = device_name_pattern + if project_name_pattern is not None: + params["projectNamePattern"] = project_name_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if summary is not None: + params["summary"] = summary + if fields is not None: + params["fields"] = fields + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=VolInstStatusListMsg) + + def query_volume_instance_status_config( + self, + device_name: str | None = None, + project_name: str | None = None, + name_pattern: str | None = None, + run_state: str | None = None, + type: str | None = None, + image_name: str | None = None, + app_inst_name: str | None = None, + device_name_pattern: str | None = None, + project_name_pattern: str | None = None, + next_page_token: str | None = None, + next_order_by: list[str] | None = None, + next_page_num: float | None = None, + next_page_size: float | None = None, + next_total_pages: float | None = None, + summary: bool | None = None, + fields: list[str] | None = None, + request_id: str | None = None, + ) -> VolInstStatusListMsg: + """Query status and config of edge volume instances + + ``GET /v1/volumes/instances/status-config`` + operationId: ``VolumeInstanceStatus_QueryVolumeInstanceStatusConfig`` + """ + path = "/v1/volumes/instances/status-config" + params: dict[str, Any] = {} + if device_name is not None: + params["deviceName"] = device_name + if project_name is not None: + params["projectName"] = project_name + if name_pattern is not None: + params["namePattern"] = name_pattern + if run_state is not None: + params["runState"] = run_state + if type is not None: + params["type"] = type + if image_name is not None: + params["imageName"] = image_name + if app_inst_name is not None: + params["appInstName"] = app_inst_name + if device_name_pattern is not None: + params["deviceNamePattern"] = device_name_pattern + if project_name_pattern is not None: + params["projectNamePattern"] = project_name_pattern + if next_page_token is not None: + params["next.pageToken"] = next_page_token + if next_order_by is not None: + params["next.orderBy"] = next_order_by + if next_page_num is not None: + params["next.pageNum"] = next_page_num + if next_page_size is not None: + params["next.pageSize"] = next_page_size + if next_total_pages is not None: + params["next.totalPages"] = next_total_pages + if summary is not None: + params["summary"] = summary + if fields is not None: + params["fields"] = fields + headers: dict[str, str] = {} + if request_id is not None: + headers["X-Request-Id"] = request_id + return self._request("GET", path, params=params or None, headers=headers or None, response_model=VolInstStatusListMsg) diff --git a/packages/zedcloud/src/zedcloud/auth.py b/packages/zedcloud/src/zedcloud/auth.py new file mode 100644 index 0000000..67cc450 --- /dev/null +++ b/packages/zedcloud/src/zedcloud/auth.py @@ -0,0 +1,25 @@ +"""Authentication helpers for Zedcloud APIs.""" + +from __future__ import annotations + +from zedcloud.config import ZedcloudConfig + + +def bearer_headers(config: ZedcloudConfig) -> dict[str, str]: + """Headers for BearerToken-secured services (majority of Zedcloud APIs).""" + return { + "Authorization": f"Bearer {config.token}", + "Accept": "application/json", + "Content-Type": "application/json", + } + + +def api_key_headers(config: ZedcloudConfig) -> dict[str, str]: + """Headers for ApiKeyAuth-secured services (Kubernetes / ZKS). + + Sends both ``X-API-KEY`` and ``Authorization: Bearer`` so callers can use + either credential style against the same client instance. + """ + headers = bearer_headers(config) + headers["X-API-KEY"] = config.effective_api_key + return headers diff --git a/packages/zedcloud/src/zedcloud/client.py b/packages/zedcloud/src/zedcloud/client.py new file mode 100644 index 0000000..8c752da --- /dev/null +++ b/packages/zedcloud/src/zedcloud/client.py @@ -0,0 +1,137 @@ +"""High-level Zedcloud API client.""" + +from __future__ import annotations + +from types import TracebackType +from typing import Self + +import httpx + +from zedcloud.auth import api_key_headers, bearer_headers +from zedcloud.config import ZedcloudConfig +from zedcloud.http import HttpTransport +from zedcloud.services.app_profiles import AppProfilesService +from zedcloud.services.apps import AppsService +from zedcloud.services.diag import DiagService +from zedcloud.services.iam import IamService +from zedcloud.services.jobs import JobsService +from zedcloud.services.k8s import K8sService +from zedcloud.services.networks import NetworksService +from zedcloud.services.node_clusters import NodeClustersService +from zedcloud.services.nodes import NodesService +from zedcloud.services.orchestration import OrchestrationService +from zedcloud.services.storage import StorageService + + +class ZedcloudClient: + """Synchronous client for ZEDEDA Zedcloud REST APIs. + + Service namespaces mirror the OpenAPI specs committed under ``openapi/``: + + * ``apps`` — Edge Application + * ``nodes`` — Edge Node + * ``networks`` — Edge Network + * ``iam`` — Identity & Access Management + * ``k8s`` — Kubernetes / ZKS (ApiKeyAuth) + * ``storage`` — Images / datastores / volumes + * ``jobs`` — Asynchronous bulk jobs + * ``orchestration`` — Cluster orchestration + * ``diag`` — Diagnostics + * ``app_profiles`` — App profiles / asset groups + * ``node_clusters`` — Edge-node clusters + + Example:: + + from zedcloud import ZedcloudClient + + with ZedcloudClient.from_env() as client: + apps = client.apps.query_edge_application_bundles(next_page_size=10) + print(len(apps.list or [])) + """ + + def __init__( + self, + base_url: str | None = None, + token: str | None = None, + *, + api_key: str | None = None, + timeout: float | None = None, + max_retries: int | None = None, + config: ZedcloudConfig | None = None, + http_client: httpx.Client | None = None, + ) -> None: + if config is None: + config = ZedcloudConfig.from_env( + base_url=base_url, + token=token, + api_key=api_key, + timeout=timeout, + max_retries=max_retries, + ) + elif base_url or token or api_key is not None: + msg = "Pass either config= or base_url/token kwargs, not both" + raise ValueError(msg) + self.config = config + + shared_client = http_client or httpx.Client(timeout=config.timeout) + self._owns_http_client = http_client is None + self._http_client = shared_client + + bearer = HttpTransport( + api_root=config.api_root, + default_headers=bearer_headers(config), + timeout=config.timeout, + max_retries=config.max_retries, + retry_backoff=config.retry_backoff, + client=shared_client, + ) + # Kubernetes service uses ApiKeyAuth; keep a dedicated transport. + api_key_transport = HttpTransport( + api_root=config.api_root, + default_headers=api_key_headers(config), + timeout=config.timeout, + max_retries=config.max_retries, + retry_backoff=config.retry_backoff, + client=shared_client, + ) + # Prevent nested transports from closing the shared httpx client. + bearer._owns_client = False + api_key_transport._owns_client = False + self._bearer = bearer + self._api_key = api_key_transport + + self.apps = AppsService(bearer) + self.nodes = NodesService(bearer) + self.networks = NetworksService(bearer) + self.iam = IamService(bearer) + self.storage = StorageService(bearer) + self.jobs = JobsService(bearer) + self.orchestration = OrchestrationService(bearer) + self.diag = DiagService(bearer) + self.app_profiles = AppProfilesService(bearer) + self.node_clusters = NodeClustersService(bearer) + self.k8s = K8sService(api_key_transport) + + @classmethod + def from_env(cls, **kwargs: object) -> ZedcloudClient: + """Construct a client using ``ZEDCLOUD_BASE_URL`` / ``ZEDCLOUD_TOKEN``.""" + return cls(**kwargs) # type: ignore[arg-type] + + def close(self) -> None: + """Close the underlying HTTP client.""" + if self._owns_http_client: + self._http_client.close() + + def __enter__(self) -> Self: + return self + + def __exit__( + self, + exc_type: type[BaseException] | None, + exc: BaseException | None, + tb: TracebackType | None, + ) -> None: + self.close() + + def __repr__(self) -> str: + return f"ZedcloudClient(base_url={self.config.base_url!r})" diff --git a/packages/zedcloud/src/zedcloud/config.py b/packages/zedcloud/src/zedcloud/config.py new file mode 100644 index 0000000..4f85ce5 --- /dev/null +++ b/packages/zedcloud/src/zedcloud/config.py @@ -0,0 +1,76 @@ +"""Configuration for the Zedcloud SDK.""" + +from __future__ import annotations + +import os +from dataclasses import dataclass + + +@dataclass(frozen=True, slots=True) +class ZedcloudConfig: + """Connection settings for a Zedcloud tenant. + + Attributes: + base_url: Tenant control-plane URL, e.g. ``https://zedcontrol.zededa.net``. + Paths are rooted at ``/api`` (OpenAPI ``basePath``). + token: Session / API token used for ``Authorization: Bearer …``. + api_key: Optional value for ``X-API-KEY`` (Kubernetes / ZKS service). + Defaults to ``token`` when unset. + timeout: Default request timeout in seconds. + max_retries: Retries for 429 / 5xx responses. + retry_backoff: Initial backoff seconds (doubles each retry). + """ + + base_url: str + token: str + api_key: str | None = None + timeout: float = 30.0 + max_retries: int = 3 + retry_backoff: float = 0.5 + + @classmethod + def from_env( + cls, + *, + base_url: str | None = None, + token: str | None = None, + api_key: str | None = None, + timeout: float | None = None, + max_retries: int | None = None, + ) -> ZedcloudConfig: + """Build config from explicit args with ``ZEDCLOUD_*`` env fallbacks.""" + resolved_base = base_url or os.environ.get("ZEDCLOUD_BASE_URL") + resolved_token = token or os.environ.get("ZEDCLOUD_TOKEN") + if not resolved_base: + msg = "ZEDCLOUD_BASE_URL is required (arg or environment)" + raise ValueError(msg) + if not resolved_token: + msg = "ZEDCLOUD_TOKEN is required (arg or environment)" + raise ValueError(msg) + resolved_api_key = api_key if api_key is not None else os.environ.get("ZEDCLOUD_API_KEY") + return cls( + base_url=resolved_base.rstrip("/"), + token=resolved_token, + api_key=resolved_api_key, + timeout=timeout + if timeout is not None + else float(os.environ.get("ZEDCLOUD_TIMEOUT", "30")), + max_retries=( + max_retries + if max_retries is not None + else int(os.environ.get("ZEDCLOUD_MAX_RETRIES", "3")) + ), + ) + + @property + def effective_api_key(self) -> str: + """API key for ``X-API-KEY`` header (falls back to bearer token).""" + return self.api_key or self.token + + @property + def api_root(self) -> str: + """HTTP origin + OpenAPI base path (``/api``).""" + base = self.base_url.rstrip("/") + if base.endswith("/api"): + return base + return f"{base}/api" diff --git a/packages/zedcloud/src/zedcloud/errors.py b/packages/zedcloud/src/zedcloud/errors.py new file mode 100644 index 0000000..b109887 --- /dev/null +++ b/packages/zedcloud/src/zedcloud/errors.py @@ -0,0 +1,82 @@ +"""Structured API errors raised by the Zedcloud SDK.""" + +from __future__ import annotations + +from typing import Any + + +class ApiError(Exception): + """Base error for unsuccessful Zedcloud HTTP responses.""" + + def __init__( + self, + message: str, + *, + status_code: int | None = None, + method: str | None = None, + url: str | None = None, + body: Any = None, + request_id: str | None = None, + ) -> None: + super().__init__(message) + self.status_code = status_code + self.method = method + self.url = url + self.body = body + self.request_id = request_id + + def __repr__(self) -> str: + return ( + f"{type(self).__name__}(status_code={self.status_code!r}, " + f"method={self.method!r}, url={self.url!r}, message={str(self)!r})" + ) + + +class AuthError(ApiError): + """401 / 403 — missing or insufficient credentials.""" + + +class NotFoundError(ApiError): + """404 — resource not found.""" + + +class ConflictError(ApiError): + """409 — resource conflict.""" + + +class RateLimitError(ApiError): + """429 — rate limited (retries may already have been exhausted).""" + + +class ServerError(ApiError): + """5xx — upstream server error after retries.""" + + +def error_for_status( + status_code: int, + message: str, + *, + method: str | None = None, + url: str | None = None, + body: Any = None, + request_id: str | None = None, +) -> ApiError: + """Map an HTTP status code to a concrete :class:`ApiError` subclass.""" + kwargs: dict[str, Any] = { + "status_code": status_code, + "method": method, + "url": url, + "body": body, + "request_id": request_id, + } + if status_code in {401, 403}: + return AuthError(message, **kwargs) + if status_code == 404: + return NotFoundError(message, **kwargs) + if status_code == 409: + return ConflictError(message, **kwargs) + if status_code == 429: + return RateLimitError(message, **kwargs) + if status_code >= 500: + return ServerError(message, **kwargs) + return ApiError(message, **kwargs) diff --git a/packages/zedcloud/src/zedcloud/http.py b/packages/zedcloud/src/zedcloud/http.py new file mode 100644 index 0000000..8abede0 --- /dev/null +++ b/packages/zedcloud/src/zedcloud/http.py @@ -0,0 +1,170 @@ +"""HTTP transport with retries for Zedcloud APIs.""" + +from __future__ import annotations + +import json +import time +from collections.abc import Mapping, MutableMapping +from typing import Any, TypeVar + +import httpx +from pydantic import BaseModel + +from zedcloud.errors import ApiError, error_for_status + +T = TypeVar("T", bound=BaseModel) + +RETRYABLE_STATUS = frozenset({429, 500, 502, 503, 504}) + + +class HttpTransport: + """Thin httpx wrapper with auth headers, retries, and typed decoding.""" + + def __init__( + self, + *, + api_root: str, + default_headers: Mapping[str, str], + timeout: float = 30.0, + max_retries: int = 3, + retry_backoff: float = 0.5, + client: httpx.Client | None = None, + ) -> None: + self.api_root = api_root.rstrip("/") + self._default_headers = dict(default_headers) + self.timeout = timeout + self.max_retries = max_retries + self.retry_backoff = retry_backoff + self._client = client or httpx.Client(timeout=timeout) + self._owns_client = client is None + + def close(self) -> None: + if self._owns_client: + self._client.close() + + def request( + self, + method: str, + path: str, + *, + params: Mapping[str, Any] | None = None, + json_body: Any = None, + headers: Mapping[str, str] | None = None, + response_model: type[T] | None = None, + extra_headers: Mapping[str, str] | None = None, + ) -> T | Any: + """Perform an HTTP request relative to the OpenAPI ``/api`` root. + + ``path`` must be the swagger path (e.g. ``/v1/apps``), not including + ``/api``. + """ + url = f"{self.api_root}{path if path.startswith('/') else '/' + path}" + merged: MutableMapping[str, str] = dict(self._default_headers) + if extra_headers: + merged.update({k: v for k, v in extra_headers.items() if v is not None}) + if headers: + merged.update({k: v for k, v in headers.items() if v is not None}) + + body: Any = json_body + if isinstance(json_body, BaseModel): + body = json_body.model_dump(mode="json", by_alias=True, exclude_none=True) + + query = _normalize_params(params) + attempt = 0 + while True: + response = self._client.request( + method.upper(), + url, + params=query, + json=body, + headers=merged, + timeout=self.timeout, + ) + if response.status_code in RETRYABLE_STATUS and attempt < self.max_retries: + retry_after = response.headers.get("Retry-After") + if retry_after and retry_after.isdigit(): + delay = float(retry_after) + else: + delay = self.retry_backoff * (2**attempt) + time.sleep(delay) + attempt += 1 + continue + return self._decode( + response, method=method.upper(), url=url, response_model=response_model + ) + + def _decode( + self, + response: httpx.Response, + *, + method: str, + url: str, + response_model: type[T] | None, + ) -> T | Any: + request_id = response.headers.get("X-Request-Id") or response.headers.get("x-request-id") + if response.status_code >= 400: + parsed = _safe_json(response) + message = _error_message(parsed, response) + raise error_for_status( + response.status_code, + message, + method=method, + url=str(response.request.url) if response.request else url, + body=parsed, + request_id=request_id, + ) + if response.status_code == 204 or not response.content: + if response_model is not None: + return response_model.model_validate({}) + return None + try: + data = response.json() + except json.JSONDecodeError as exc: + raise ApiError( + f"Non-JSON response ({response.status_code})", + status_code=response.status_code, + method=method, + url=str(response.request.url) if response.request else url, + body=response.text, + request_id=request_id, + ) from exc + if response_model is None: + return data + return response_model.model_validate(data) + + +def _normalize_params(params: Mapping[str, Any] | None) -> dict[str, Any] | None: + if not params: + return None + out: dict[str, Any] = {} + for key, value in params.items(): + if value is None: + continue + if isinstance(value, bool): + out[key] = "true" if value else "false" + elif isinstance(value, (list, tuple)): + out[key] = list(value) + else: + out[key] = value + return out or None + + +def _safe_json(response: httpx.Response) -> Any: + try: + return response.json() + except Exception: + return response.text + + +def _error_message(parsed: Any, response: httpx.Response) -> str: + if isinstance(parsed, dict): + for key in ("message", "error", "errorMessage", "detail", "title"): + value = parsed.get(key) + if isinstance(value, str) and value: + return value + # google.rpc.Status style + if isinstance(parsed.get("message"), str): + return parsed["message"] + if isinstance(parsed, str) and parsed.strip(): + return parsed.strip()[:500] + return f"HTTP {response.status_code}" diff --git a/packages/zedcloud/src/zedcloud/pagination.py b/packages/zedcloud/src/zedcloud/pagination.py new file mode 100644 index 0000000..a6d66db --- /dev/null +++ b/packages/zedcloud/src/zedcloud/pagination.py @@ -0,0 +1,102 @@ +"""Pagination helpers for Zedcloud list endpoints. + +Most list operations accept ``next.pageToken`` / ``next.pageNum`` / +``next.pageSize`` query parameters and return a ``next`` :class:`Cursor` +alongside a ``list`` array. +""" + +from __future__ import annotations + +from collections.abc import Callable, Iterator +from typing import Any, TypeVar + +T = TypeVar("T") + + +def iter_pages( + fetch_page: Callable[..., Any], + *, + page_size: int | float = 50, + max_pages: int | None = None, + item_attr: str = "list", + cursor_attr: str = "next", + **filters: Any, +) -> Iterator[Any]: + """Yield items across pages for a Zedcloud list/query callable. + + ``fetch_page`` must accept ``next_page_token``, ``next_page_num``, and + ``next_page_size`` keyword arguments (as generated service methods do). + """ + page_token: str | None = None + page_num = 1 + pages = 0 + while True: + response = fetch_page( + next_page_token=page_token, + next_page_num=page_num, + next_page_size=page_size, + **filters, + ) + items = _get_attr(response, item_attr) or [] + yield from items + pages += 1 + if max_pages is not None and pages >= max_pages: + break + cursor = _get_attr(response, cursor_attr) + next_token = _get_attr(cursor, "page_token") if cursor is not None else None + if not next_token and not items: + break + if not next_token: + # Fall back to page-number walking when token is absent. + total_pages = _get_attr(cursor, "total_pages") if cursor is not None else None + if total_pages is not None and page_num >= int(total_pages): + break + if len(items) < page_size: + break + page_num += 1 + page_token = None + continue + page_token = str(next_token) + page_num += 1 + + +def collect_all( + fetch_page: Callable[..., Any], + *, + page_size: int | float = 50, + max_pages: int | None = None, + item_attr: str = "list", + cursor_attr: str = "next", + **filters: Any, +) -> list[Any]: + """Materialize all pages from :func:`iter_pages` into a list.""" + return list( + iter_pages( + fetch_page, + page_size=page_size, + max_pages=max_pages, + item_attr=item_attr, + cursor_attr=cursor_attr, + **filters, + ) + ) + + +def _get_attr(obj: Any, name: str) -> Any: + if obj is None: + return None + if isinstance(obj, dict): + if name in obj: + return obj[name] + camel = _to_camel(name) + return obj.get(camel) + # Generated models rename reserved field ``list`` → ``list_`` (alias ``list``). + for candidate in (name, f"{name}_" if not name.endswith("_") else name.rstrip("_")): + if hasattr(obj, candidate): + return getattr(obj, candidate) + return None + + +def _to_camel(name: str) -> str: + parts = name.split("_") + return parts[0] + "".join(p.title() for p in parts[1:]) diff --git a/packages/zedcloud/src/zedcloud/py.typed b/packages/zedcloud/src/zedcloud/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/packages/zedcloud/src/zedcloud/services/__init__.py b/packages/zedcloud/src/zedcloud/services/__init__.py new file mode 100644 index 0000000..a59ffe0 --- /dev/null +++ b/packages/zedcloud/src/zedcloud/services/__init__.py @@ -0,0 +1,27 @@ +"""Service namespaces attached to :class:`~zedcloud.client.ZedcloudClient`.""" + +from zedcloud._generated.services.app_profiles import AppProfilesService +from zedcloud._generated.services.apps import AppsService +from zedcloud._generated.services.diag import DiagService +from zedcloud._generated.services.iam import IamService +from zedcloud._generated.services.jobs import JobsService +from zedcloud._generated.services.k8s import K8sService +from zedcloud._generated.services.networks import NetworksService +from zedcloud._generated.services.node_clusters import NodeClustersService +from zedcloud._generated.services.nodes import NodesService +from zedcloud._generated.services.orchestration import OrchestrationService +from zedcloud._generated.services.storage import StorageService + +__all__ = [ + "AppProfilesService", + "AppsService", + "DiagService", + "IamService", + "JobsService", + "K8sService", + "NetworksService", + "NodeClustersService", + "NodesService", + "OrchestrationService", + "StorageService", +] diff --git a/packages/zedcloud/src/zedcloud/services/app_profiles.py b/packages/zedcloud/src/zedcloud/services/app_profiles.py new file mode 100644 index 0000000..51f1b39 --- /dev/null +++ b/packages/zedcloud/src/zedcloud/services/app_profiles.py @@ -0,0 +1,5 @@ +"""Re-export generated App Profiles service.""" + +from zedcloud._generated.services.app_profiles import AppProfilesService + +__all__ = ["AppProfilesService"] diff --git a/packages/zedcloud/src/zedcloud/services/apps.py b/packages/zedcloud/src/zedcloud/services/apps.py new file mode 100644 index 0000000..e4972e8 --- /dev/null +++ b/packages/zedcloud/src/zedcloud/services/apps.py @@ -0,0 +1,5 @@ +"""Re-export generated Edge Application service.""" + +from zedcloud._generated.services.apps import AppsService + +__all__ = ["AppsService"] diff --git a/packages/zedcloud/src/zedcloud/services/base.py b/packages/zedcloud/src/zedcloud/services/base.py new file mode 100644 index 0000000..5df8b66 --- /dev/null +++ b/packages/zedcloud/src/zedcloud/services/base.py @@ -0,0 +1,38 @@ +"""Service base class shared by generated API namespaces.""" + +from __future__ import annotations + +from collections.abc import Mapping +from typing import Any, TypeVar + +from pydantic import BaseModel + +from zedcloud.http import HttpTransport + +T = TypeVar("T", bound=BaseModel) + + +class BaseService: + """Namespace bound to a shared :class:`~zedcloud.http.HttpTransport`.""" + + def __init__(self, transport: HttpTransport) -> None: + self._transport = transport + + def _request( + self, + method: str, + path: str, + *, + params: Mapping[str, Any] | None = None, + json_body: Any = None, + headers: Mapping[str, str] | None = None, + response_model: type[T] | None = None, + ) -> T | Any: + return self._transport.request( + method, + path, + params=params, + json_body=json_body, + headers=headers, + response_model=response_model, + ) diff --git a/packages/zedcloud/src/zedcloud/services/diag.py b/packages/zedcloud/src/zedcloud/services/diag.py new file mode 100644 index 0000000..ac7dd4c --- /dev/null +++ b/packages/zedcloud/src/zedcloud/services/diag.py @@ -0,0 +1,5 @@ +"""Re-export generated Diagnostics service.""" + +from zedcloud._generated.services.diag import DiagService + +__all__ = ["DiagService"] diff --git a/packages/zedcloud/src/zedcloud/services/iam.py b/packages/zedcloud/src/zedcloud/services/iam.py new file mode 100644 index 0000000..f82d564 --- /dev/null +++ b/packages/zedcloud/src/zedcloud/services/iam.py @@ -0,0 +1,5 @@ +"""Re-export generated IAM service.""" + +from zedcloud._generated.services.iam import IamService + +__all__ = ["IamService"] diff --git a/packages/zedcloud/src/zedcloud/services/jobs.py b/packages/zedcloud/src/zedcloud/services/jobs.py new file mode 100644 index 0000000..fe6a36f --- /dev/null +++ b/packages/zedcloud/src/zedcloud/services/jobs.py @@ -0,0 +1,5 @@ +"""Re-export generated Jobs service.""" + +from zedcloud._generated.services.jobs import JobsService + +__all__ = ["JobsService"] diff --git a/packages/zedcloud/src/zedcloud/services/k8s.py b/packages/zedcloud/src/zedcloud/services/k8s.py new file mode 100644 index 0000000..2092966 --- /dev/null +++ b/packages/zedcloud/src/zedcloud/services/k8s.py @@ -0,0 +1,5 @@ +"""Re-export generated Kubernetes / ZKS service.""" + +from zedcloud._generated.services.k8s import K8sService + +__all__ = ["K8sService"] diff --git a/packages/zedcloud/src/zedcloud/services/networks.py b/packages/zedcloud/src/zedcloud/services/networks.py new file mode 100644 index 0000000..55ade7b --- /dev/null +++ b/packages/zedcloud/src/zedcloud/services/networks.py @@ -0,0 +1,5 @@ +"""Re-export generated Edge Network service.""" + +from zedcloud._generated.services.networks import NetworksService + +__all__ = ["NetworksService"] diff --git a/packages/zedcloud/src/zedcloud/services/node_clusters.py b/packages/zedcloud/src/zedcloud/services/node_clusters.py new file mode 100644 index 0000000..5295653 --- /dev/null +++ b/packages/zedcloud/src/zedcloud/services/node_clusters.py @@ -0,0 +1,5 @@ +"""Re-export generated Edge-Node Cluster service.""" + +from zedcloud._generated.services.node_clusters import NodeClustersService + +__all__ = ["NodeClustersService"] diff --git a/packages/zedcloud/src/zedcloud/services/nodes.py b/packages/zedcloud/src/zedcloud/services/nodes.py new file mode 100644 index 0000000..98f1776 --- /dev/null +++ b/packages/zedcloud/src/zedcloud/services/nodes.py @@ -0,0 +1,5 @@ +"""Re-export generated Edge Node service.""" + +from zedcloud._generated.services.nodes import NodesService + +__all__ = ["NodesService"] diff --git a/packages/zedcloud/src/zedcloud/services/orchestration.py b/packages/zedcloud/src/zedcloud/services/orchestration.py new file mode 100644 index 0000000..8401cbf --- /dev/null +++ b/packages/zedcloud/src/zedcloud/services/orchestration.py @@ -0,0 +1,5 @@ +"""Re-export generated Orchestration service.""" + +from zedcloud._generated.services.orchestration import OrchestrationService + +__all__ = ["OrchestrationService"] diff --git a/packages/zedcloud/src/zedcloud/services/storage.py b/packages/zedcloud/src/zedcloud/services/storage.py new file mode 100644 index 0000000..2cf107c --- /dev/null +++ b/packages/zedcloud/src/zedcloud/services/storage.py @@ -0,0 +1,5 @@ +"""Re-export generated Storage service.""" + +from zedcloud._generated.services.storage import StorageService + +__all__ = ["StorageService"] diff --git a/packages/zedcloud/tests/test_client.py b/packages/zedcloud/tests/test_client.py new file mode 100644 index 0000000..710e170 --- /dev/null +++ b/packages/zedcloud/tests/test_client.py @@ -0,0 +1,127 @@ +"""Unit tests for ZedcloudClient critical paths (httpx mocked via respx).""" + +from __future__ import annotations + +import httpx +import pytest +import respx +from zedcloud.pagination import collect_all + +from zedcloud import AuthError, NotFoundError, ZedcloudClient + + +def _app_summary(app_id: str, name: str) -> dict: + return {"id": app_id, "name": name, "originType": "ORIGIN_LOCAL"} + + +@pytest.fixture +def client() -> ZedcloudClient: + return ZedcloudClient( + base_url="https://zedcontrol.example.test", + token="test-token", + max_retries=0, + ) + + +@respx.mock +def test_list_apps_success(client: ZedcloudClient) -> None: + route = respx.get("https://zedcontrol.example.test/api/v1/apps").mock( + return_value=httpx.Response( + 200, + json={ + "list": [_app_summary("app-1", "demo")], + "next": {"pageToken": "", "pageNum": 1, "pageSize": 10, "totalPages": 1}, + }, + ) + ) + result = client.apps.query_edge_application_bundles(next_page_size=10) + assert route.called + assert route.calls[0].request.headers["Authorization"] == "Bearer test-token" + items = result.list_ + assert items is not None + assert items[0].id == "app-1" + assert items[0].name == "demo" + + +@respx.mock +def test_get_node_not_found(client: ZedcloudClient) -> None: + respx.get("https://zedcontrol.example.test/api/v1/devices/id/missing").mock( + return_value=httpx.Response(404, json={"message": "device not found"}) + ) + with pytest.raises(NotFoundError) as exc: + client.nodes.get_edge_node("missing") + assert exc.value.status_code == 404 + + +@respx.mock +def test_auth_error(client: ZedcloudClient) -> None: + respx.get("https://zedcontrol.example.test/api/v1/devices").mock( + return_value=httpx.Response(401, json={"message": "unauthorized"}) + ) + with pytest.raises(AuthError): + client.nodes.query_edge_nodes() + + +@respx.mock +def test_k8s_sends_api_key_header(client: ZedcloudClient) -> None: + route = respx.get("https://zedcontrol.example.test/api/v1/zks/instances").mock( + return_value=httpx.Response(200, json={"list": [], "next": {}}) + ) + client.k8s.list_zks_instances() + assert route.called + headers = route.calls[0].request.headers + assert headers["X-API-KEY"] == "test-token" + assert headers["Authorization"] == "Bearer test-token" + + +@respx.mock +def test_retries_on_429() -> None: + client = ZedcloudClient( + base_url="https://zedcontrol.example.test", + token="test-token", + max_retries=2, + timeout=5, + ) + # Override backoff to be instant + client._bearer.retry_backoff = 0 + route = respx.get("https://zedcontrol.example.test/api/v1/apps").mock( + side_effect=[ + httpx.Response(429, json={"message": "slow down"}), + httpx.Response(200, json={"list": [], "next": {}}), + ] + ) + result = client.apps.query_edge_application_bundles() + assert route.call_count == 2 + assert not result.list_ + client.close() + + +@respx.mock +def test_pagination_helper(client: ZedcloudClient) -> None: + respx.get("https://zedcontrol.example.test/api/v1/apps").mock( + side_effect=[ + httpx.Response( + 200, + json={ + "list": [_app_summary("a1", "one")], + "next": {"pageToken": "tok-2", "pageNum": 1, "pageSize": 1, "totalPages": 2}, + }, + ), + httpx.Response( + 200, + json={ + "list": [_app_summary("a2", "two")], + "next": {"pageToken": "", "pageNum": 2, "pageSize": 1, "totalPages": 2}, + }, + ), + ] + ) + items = collect_all(client.apps.query_edge_application_bundles, page_size=1) + assert [i.id for i in items] == ["a1", "a2"] + + +def test_config_requires_env(monkeypatch: pytest.MonkeyPatch) -> None: + monkeypatch.delenv("ZEDCLOUD_BASE_URL", raising=False) + monkeypatch.delenv("ZEDCLOUD_TOKEN", raising=False) + with pytest.raises(ValueError, match="ZEDCLOUD_BASE_URL"): + ZedcloudClient.from_env() diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..61be314 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,68 @@ +[project] +name = "zedcloud-sdk" +version = "0.1.0" +description = "ZEDEDA Zedcloud Python SDK, automation framework, and MCP server" +readme = "README.md" +requires-python = ">=3.10" +license = { text = "MIT" } +authors = [{ name = "vignesh-zededa" }] +dependencies = [] + +[tool.uv] +package = false + +[tool.uv.workspace] +members = [ + "packages/zedcloud", + "packages/zedcloud-automation", + "packages/zedcloud-mcp", +] + +[dependency-groups] +dev = [ + "datamodel-code-generator>=0.26.0", + "httpx>=0.27.0", + "pytest>=8.0.0", + "pytest-asyncio>=0.23.0", + "respx>=0.21.0", + "ruff>=0.6.0", + "zedcloud", + "zedcloud-automation", + "zedcloud-mcp", +] + +[tool.uv.sources] +zedcloud = { workspace = true } +zedcloud-automation = { workspace = true } +zedcloud-mcp = { workspace = true } + +[tool.pytest.ini_options] +minversion = "8.0" +addopts = "--import-mode=importlib" +testpaths = [ + "packages/zedcloud/tests", + "packages/zedcloud-automation/tests", + "packages/zedcloud-mcp/tests", +] +markers = [ + "smoke: read-only smoke checks against a live Zedcloud tenant", + "integration: integration tests that may create/modify resources", + "needs_cloud: requires ZEDCLOUD_BASE_URL and ZEDCLOUD_TOKEN", +] +asyncio_mode = "auto" +filterwarnings = ["ignore::DeprecationWarning"] + +[tool.ruff] +target-version = "py310" +line-length = 100 +src = ["packages"] +extend-exclude = ["packages/zedcloud/src/zedcloud/_generated"] + +[tool.ruff.lint] +select = ["E", "F", "I", "UP", "B", "SIM"] +ignore = [ + "E501", # generated OpenAPI models can exceed line length +] + +[tool.ruff.lint.per-file-ignores] +"packages/zedcloud/src/zedcloud/_generated/**" = ["E", "F", "I", "UP", "B", "SIM"] diff --git a/scripts/generate_from_openapi.py b/scripts/generate_from_openapi.py new file mode 100755 index 0000000..3a8a698 --- /dev/null +++ b/scripts/generate_from_openapi.py @@ -0,0 +1,560 @@ +#!/usr/bin/env python3 +"""Regenerate Zedcloud SDK models and service wrappers from OpenAPI swagger specs. + +Usage: + uv run python scripts/generate_from_openapi.py + make generate + +Reads ``openapi/*.swagger.json`` (OpenAPI 2.0) and writes: + +* ``packages/zedcloud/src/zedcloud/_generated/models/.py`` +* ``packages/zedcloud/src/zedcloud/_generated/services/.py`` +""" + +from __future__ import annotations + +import json +import keyword +import re +import shutil +import subprocess +import sys +import tempfile +from collections import Counter, defaultdict +from pathlib import Path +from typing import Any + +ROOT = Path(__file__).resolve().parents[1] +OPENAPI_DIR = ROOT / "openapi" +OUT_ROOT = ROOT / "packages" / "zedcloud" / "src" / "zedcloud" / "_generated" +MODELS_DIR = OUT_ROOT / "models" +SERVICES_DIR = OUT_ROOT / "services" + +SERVICE_MAP: dict[str, tuple[str, str]] = { + # swagger stem -> (python namespace, ServiceClassName) + "zedge_app_service": ("apps", "AppsService"), + "zedge_node_service": ("nodes", "NodesService"), + "zedge_user_service": ("iam", "IamService"), + "zedge_orchestration_service": ("orchestration", "OrchestrationService"), + "zedge_kubernetes_service": ("k8s", "K8sService"), + "zedge_storage_service": ("storage", "StorageService"), + "zedge_diag_service": ("diag", "DiagService"), + "zedge_app_profile_service": ("app_profiles", "AppProfilesService"), + "zedge_network_service": ("networks", "NetworksService"), + "zedge_job_service": ("jobs", "JobsService"), + "zedge_node_cluster_service": ("node_clusters", "NodeClustersService"), +} + +HTTP_METHODS = frozenset({"get", "post", "put", "patch", "delete", "head"}) + + +def main() -> int: + if not OPENAPI_DIR.is_dir(): + print(f"error: openapi directory missing: {OPENAPI_DIR}", file=sys.stderr) + return 1 + + specs = sorted(OPENAPI_DIR.glob("*.swagger.json")) + if not specs: + print(f"error: no swagger files in {OPENAPI_DIR}", file=sys.stderr) + return 1 + + if OUT_ROOT.exists(): + shutil.rmtree(OUT_ROOT) + MODELS_DIR.mkdir(parents=True) + SERVICES_DIR.mkdir(parents=True) + + (OUT_ROOT / "__init__.py").write_text( + '"""Auto-generated from openapi/*.swagger.json — do not edit by hand."""\n' + ) + (MODELS_DIR / "__init__.py").write_text( + '"""Generated Pydantic models per Zedcloud service."""\n' + ) + (SERVICES_DIR / "__init__.py").write_text( + '"""Generated service wrappers per Zedcloud service."""\n' + ) + + for spec_path in specs: + stem = spec_path.name.replace(".swagger.json", "") + if stem not in SERVICE_MAP: + print(f"warning: skipping unmapped spec {spec_path.name}", file=sys.stderr) + continue + ns, class_name = SERVICE_MAP[stem] + print(f"generating {ns} from {spec_path.name} …") + swagger = json.loads(spec_path.read_text()) + generate_models(swagger, ns, spec_path.name) + generate_service(swagger, ns, class_name) + + write_models_all() + print(f"done → {OUT_ROOT.relative_to(ROOT)}") + return 0 + + +def swagger_to_oa3_schemas(swagger: dict[str, Any]) -> dict[str, Any]: + """Convert Swagger 2.0 ``definitions`` into an OpenAPI 3 schemas-only document.""" + definitions = swagger.get("definitions") or {} + schemas = json.loads(json.dumps(definitions)) # deep copy + _rewrite_refs(schemas) + _sanitize_patterns(schemas) + return { + "openapi": "3.0.3", + "info": swagger.get("info") or {"title": "zedcloud", "version": "1.0"}, + "paths": {}, + "components": {"schemas": schemas}, + } + + +def _sanitize_patterns(obj: Any) -> None: + """Drop or repair invalid JSON Schema ``pattern`` values (broken UUID regexes).""" + if isinstance(obj, dict): + pattern = obj.get("pattern") + if isinstance(pattern, str): + fixed = _fix_regex_pattern(pattern) + if fixed is None: + obj.pop("pattern", None) + elif fixed != pattern: + obj["pattern"] = fixed + for value in obj.values(): + _sanitize_patterns(value) + elif isinstance(obj, list): + for item in obj: + _sanitize_patterns(item) + + +def _fix_regex_pattern(pattern: str) -> str | None: + # Common swagger truncation: UUID pattern missing the final '}' + if pattern.endswith("{12"): + pattern = pattern + "}" + try: + re.compile(pattern) + except re.error: + return None + return pattern + + +def _rewrite_refs(obj: Any) -> None: + if isinstance(obj, dict): + # Property-level ``required: ["true"]`` is invalid JSON Schema — drop it. + if ( + "required" in obj + and isinstance(obj["required"], list) + and (obj["required"] == ["true"] or obj["required"] == [True]) + ): + obj.pop("required", None) + # Swagger often emits ``type`` / other keywords alongside ``$ref``. + # Keep a pure reference so generators resolve enums (e.g. Origin). + if "$ref" in obj and isinstance(obj["$ref"], str): + ref = obj["$ref"] + if ref.startswith("#/definitions/"): + ref = "#/components/schemas/" + ref.rsplit("/", 1)[-1] + obj.clear() + obj["$ref"] = ref + # Do not recurse into $ref-only dicts. + continue_children = False + else: + continue_children = True + if continue_children: + for value in list(obj.values()): + _rewrite_refs(value) + return + if isinstance(obj, list): + for item in obj: + _rewrite_refs(item) + + +def generate_models(swagger: dict[str, Any], ns: str, source_name: str) -> None: + oa3 = swagger_to_oa3_schemas(swagger) + with tempfile.TemporaryDirectory() as tmp: + tmp_path = Path(tmp) + input_path = tmp_path / f"{ns}.oa3.json" + output_path = tmp_path / f"{ns}.py" + input_path.write_text(json.dumps(oa3)) + cmd = [ + sys.executable, + "-m", + "datamodel_code_generator", + "--input", + str(input_path), + "--input-file-type", + "openapi", + "--output", + str(output_path), + "--output-model-type", + "pydantic_v2.BaseModel", + "--use-standard-collections", + "--use-union-operator", + "--target-python-version", + "3.10", + "--snake-case-field", + "--use-default-kwarg", + "--collapse-root-models", + "--formatters", + "ruff-format", + ] + result = subprocess.run(cmd, capture_output=True, text=True, check=False) + if result.returncode != 0: + print(result.stdout, file=sys.stderr) + print(result.stderr, file=sys.stderr) + raise SystemExit(f"datamodel-code-generator failed for {ns}") + body = output_path.read_text() + # Soften noisy FutureWarnings by pinning a header. + header = ( + f"# Generated by scripts/generate_from_openapi.py from {source_name}\n" + f"# Do not edit by hand — re-run: uv run python scripts/generate_from_openapi.py\n\n" + ) + # Strip the default datamodel header timestamp block's first comment lines if present + if body.startswith("# generated by datamodel-codegen:"): + lines = body.splitlines(keepends=True) + # keep everything after the blank line following the header comments + idx = 0 + while idx < len(lines) and (lines[idx].startswith("#") or lines[idx].strip() == ""): + idx += 1 + body = "".join(lines[idx:]) + dest = MODELS_DIR / f"{ns}.py" + dest.write_text(header + body) + + +def camel_to_snake(name: str) -> str: + s1 = re.sub(r"(.)([A-Z][a-z]+)", r"\1_\2", name) + return re.sub(r"([a-z0-9])([A-Z])", r"\1_\2", s1).lower() + + +def operation_method_name(operation_id: str) -> str: + rest = operation_id.split("_", 1)[1] if "_" in operation_id else operation_id + return camel_to_snake(rest) + + +def safe_ident(name: str) -> str: + cleaned = re.sub(r"[^0-9a-zA-Z_]", "_", name) + if cleaned and cleaned[0].isdigit(): + cleaned = f"p_{cleaned}" + if not cleaned: + cleaned = "param" + if keyword.iskeyword(cleaned): + cleaned = f"{cleaned}_" + return cleaned + + +def param_py_name(swagger_name: str) -> str: + # next.pageToken -> next_page_token; X-Request-Id -> request_id + if swagger_name.lower() in {"x-request-id", "x_request_id"}: + return "request_id" + if swagger_name.lower() in {"content-range", "content_range"}: + return "content_range" + # Normalize separators before camel→snake so "Content-Range" → content_range + normalized = swagger_name.replace(".", "_").replace("-", "_") + return safe_ident(camel_to_snake(normalized)) + + +def schema_ref_name(schema: dict[str, Any] | None) -> str | None: + if not schema: + return None + ref = schema.get("$ref") + if isinstance(ref, str) and ref.startswith("#/definitions/"): + return python_model_name(ref.rsplit("/", 1)[-1]) + # inline + if schema.get("type") == "array": + return None + return None + + +def python_model_name(definition_name: str) -> str: + """Match datamodel-code-generator class naming (underscores stripped).""" + return definition_name.replace("_", "") + + +def python_type_for_param(param: dict[str, Any]) -> str: + if param.get("in") == "body": + ref = schema_ref_name(param.get("schema") or {}) + if ref: + return f"{ref} | dict[str, Any]" + return "dict[str, Any] | Any" + ptype = param.get("type") + if ptype == "array": + items = param.get("items") or {} + item_type = items.get("type", "string") + inner = { + "string": "str", + "integer": "int", + "number": "float", + "boolean": "bool", + }.get(item_type, "Any") + return f"list[{inner}]" + return { + "string": "str", + "integer": "int", + "number": "float", + "boolean": "bool", + "file": "Any", + }.get(ptype or "string", "Any") + + +def response_model_name(op: dict[str, Any]) -> str | None: + responses = op.get("responses") or {} + for code in ("200", "201", "202"): + if code in responses: + schema = (responses[code] or {}).get("schema") or {} + return schema_ref_name(schema) + # some delete ops return ZsrvResponse under 200 already covered + for code, resp in responses.items(): + if str(code).startswith("2"): + schema = (resp or {}).get("schema") or {} + name = schema_ref_name(schema) + if name: + return name + return None + + +def collect_operations(swagger: dict[str, Any]) -> list[dict[str, Any]]: + ops: list[dict[str, Any]] = [] + for path, item in (swagger.get("paths") or {}).items(): + if not isinstance(item, dict): + continue + for method, op in item.items(): + if method not in HTTP_METHODS or not isinstance(op, dict): + continue + operation_id = op.get("operationId") or f"{method}_{path}" + ops.append( + { + "method": method.upper(), + "path": path, + "operation_id": operation_id, + "summary": (op.get("summary") or "").strip(), + "description": (op.get("description") or "").strip(), + "parameters": list(op.get("parameters") or []), + "response_model": response_model_name(op), + } + ) + # Disambiguate colliding method names + names = [operation_method_name(o["operation_id"]) for o in ops] + counts = Counter(names) + used: dict[str, int] = defaultdict(int) + for op, base in zip(ops, names, strict=True): + if counts[base] == 1: + op["py_name"] = base + continue + # Prefer tag-qualified name from operationId + full = camel_to_snake(op["operation_id"].replace("-", "_")) + candidate = full + used[candidate] += 1 + if used[candidate] > 1: + candidate = f"{full}_{used[candidate]}" + op["py_name"] = candidate + return ops + + +def generate_service(swagger: dict[str, Any], ns: str, class_name: str) -> None: + ops = collect_operations(swagger) + models_needed: set[str] = set() + for op in ops: + if op["response_model"]: + models_needed.add(op["response_model"]) + for param in op["parameters"]: + if param.get("in") == "body": + ref = schema_ref_name(param.get("schema") or {}) + if ref: + models_needed.add(ref) + + # Only import models that datamodel-codegen actually emitted. + available = _model_class_names(ns) + missing = sorted(models_needed - available) + if missing: + print( + f" warning: {ns}: {len(missing)} response/body models missing from " + f"generated module (will use Any): {missing[:5]}", + file=sys.stderr, + ) + models_needed &= available + # Patch ops that referenced missing models + for op in ops: + if op["response_model"] and op["response_model"] not in available: + op["response_model"] = None + + lines: list[str] = [ + f'# Generated by scripts/generate_from_openapi.py — namespace "{ns}"', + "# Do not edit by hand.", + "", + "from __future__ import annotations", + "", + "from typing import Any", + "", + "from zedcloud.services.base import BaseService", + ] + if models_needed: + # import models used in signatures / response_model= + sorted_models = sorted(models_needed) + lines.append(f"from zedcloud._generated.models.{ns} import (") + for name in sorted_models: + lines.append(f" {name},") + lines.append(")") + lines += ["", "", f"class {class_name}(BaseService):"] + title = (swagger.get("info") or {}).get("title") or ns + lines.append(f' """Auto-generated client for {title}."""') + lines.append("") + + if not ops: + lines.append(" pass") + lines.append("") + else: + for op in ops: + lines.extend(render_method(op, available_models=available)) + lines.append("") + + dest = SERVICES_DIR / f"{ns}.py" + dest.write_text("\n".join(lines).rstrip() + "\n") + + +def _model_class_names(ns: str) -> set[str]: + path = MODELS_DIR / f"{ns}.py" + if not path.exists(): + return set() + names: set[str] = set() + for line in path.read_text().splitlines(): + if line.startswith("class ") and "(" in line: + names.add(line[len("class ") :].split("(", 1)[0].strip()) + return names + + +def render_method( + op: dict[str, Any], + *, + available_models: set[str] | None = None, +) -> list[str]: + path = op["path"] + method = op["method"] + py_name = op["py_name"] + response_model = op["response_model"] + if response_model and available_models is not None and response_model not in available_models: + response_model = None + path_params: list[dict[str, Any]] = [] + query_params: list[dict[str, Any]] = [] + header_params: list[dict[str, Any]] = [] + body_param: dict[str, Any] | None = None + + for param in op["parameters"]: + where = param.get("in") + if where == "path": + path_params.append(param) + elif where == "query": + query_params.append(param) + elif where == "header": + header_params.append(param) + elif where == "body": + body_param = param + + # Signature — required params before optional (valid Python). + required_parts: list[str] = ["self"] + optional_parts: list[str] = [] + for param in path_params: + pname = param_py_name(param["name"]) + ptype = python_type_for_param(param) + required_parts.append(f"{pname}: {ptype}") + if body_param is not None: + btype = python_type_for_param(body_param) + # If referenced model wasn't generated, fall back to dict. + if available_models is not None and "|" in btype: + model = btype.split("|", 1)[0].strip() + if model not in available_models and model not in {"dict[str, Any]", "Any"}: + btype = "dict[str, Any] | Any" + if body_param.get("required", True): + required_parts.append(f"body: {btype}") + else: + optional_parts.append(f"body: {btype} | None = None") + for param in query_params + header_params: + pname = param_py_name(param["name"]) + ptype = python_type_for_param(param) + if param.get("required"): + required_parts.append(f"{pname}: {ptype}") + else: + optional_parts.append(f"{pname}: {ptype} | None = None") + sig_parts = required_parts + optional_parts + + ret = response_model if response_model else "Any" + # Docstring + summary = op["summary"] or op["operation_id"] + doc_lines = [ + f' """{summary}', + "", + f" ``{method} {path}``", + f" operationId: ``{op['operation_id']}``", + ' """', + ] + + # Body + body_lines: list[str] = [] + # path formatting + fmt_path = path + path_format_args: list[str] = [] + for param in path_params: + swagger_name = param["name"] + pname = param_py_name(swagger_name) + # replace {id} style + fmt_path = fmt_path.replace("{" + swagger_name + "}", "{" + pname + "}") + path_format_args.append(f"{pname}={pname}") + if path_params: + body_lines.append(f' path = f"{fmt_path}"') + else: + body_lines.append(f' path = "{fmt_path}"') + + body_lines.append(" params: dict[str, Any] = {}") + for param in query_params: + sname = param["name"] + pname = param_py_name(sname) + body_lines.append(f" if {pname} is not None:") + body_lines.append(f' params["{sname}"] = {pname}') + + body_lines.append(" headers: dict[str, str] = {}") + for param in header_params: + sname = param["name"] + pname = param_py_name(sname) + body_lines.append(f" if {pname} is not None:") + body_lines.append(f' headers["{sname}"] = {pname}') + + call_args = [ + f'"{method}"', + "path", + "params=params or None", + "headers=headers or None", + ] + if body_param is not None: + call_args.append("json_body=body") + if response_model: + call_args.append(f"response_model={response_model}") + else: + call_args.append("response_model=None") + + body_lines.append(f" return self._request({', '.join(call_args)})") + + # Assemble + # Keep signature readable — if long, use multiline + if len(", ".join(sig_parts)) > 90: + sig = "(\n " + ",\n ".join(sig_parts) + f",\n ) -> {ret}:" + else: + sig = f"({', '.join(sig_parts)}) -> {ret}:" + + out = [f" def {py_name}{sig}"] + out.extend(doc_lines) + out.extend(body_lines) + return out + + +def write_models_all() -> None: + """Write a convenience ``models/__init__`` exporting nothing heavy.""" + namespaces = [ns for ns, _ in SERVICE_MAP.values()] + lines = [ + '"""Generated Pydantic models per Zedcloud service.', + "", + "Import from a concrete module, e.g.::", + "", + " from zedcloud._generated.models.apps import Apps, AppSummary", + '"""', + "", + "__all__: list[str] = []", + "", + ] + for ns in namespaces: + lines.append(f"# - zedcloud._generated.models.{ns}") + (MODELS_DIR / "__init__.py").write_text("\n".join(lines) + "\n") + + +if __name__ == "__main__": + raise SystemExit(main()) diff --git a/uv.lock b/uv.lock new file mode 100644 index 0000000..0074928 --- /dev/null +++ b/uv.lock @@ -0,0 +1,1557 @@ +version = 1 +revision = 3 +requires-python = ">=3.10" +resolution-markers = [ + "python_full_version >= '3.14'", + "python_full_version >= '3.12' and python_full_version < '3.14' and sys_platform == 'emscripten'", + "(python_full_version >= '3.11' and python_full_version < '3.14' and sys_platform != 'emscripten') or (python_full_version == '3.11.*' and sys_platform == 'emscripten')", + "python_full_version < '3.11'", +] + +[manifest] +members = [ + "zedcloud", + "zedcloud-automation", + "zedcloud-mcp", + "zedcloud-sdk", +] + +[[package]] +name = "annotated-types" +version = "0.8.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/5f/56/a8120250d128bed162cd73c76d45f6ef9991f3e068f62a8ee060afa3104a/annotated_types-0.8.0.tar.gz", hash = "sha256:13b2beaad985e05e2d6407ee4c4f35590b11f8d693a258a561055cac8f64cab7", size = 15893, upload-time = "2026-07-23T20:16:13.995Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/99/91/8acff4f5e50511b911bbccb72b8628a49c68ce14148cd9f6431094859a90/annotated_types-0.8.0-py3-none-any.whl", hash = "sha256:f072f4d804ea359e4eaf198b1af7a8b0943881a87f31bb764f8bf219bb9419e0", size = 13427, upload-time = "2026-07-23T20:16:12.938Z" }, +] + +[[package]] +name = "anyio" +version = "4.15.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "exceptiongroup", marker = "python_full_version < '3.11'" }, + { name = "idna" }, + { name = "typing-extensions", marker = "python_full_version < '3.15'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/a9/d2/f4d173e22df740bc37b1db102b386ba719b66e95b0f0d751f556b387e6d2/anyio-4.15.1.tar.gz", hash = "sha256:9f28306018cbd6d329e64a36d58256edff76dd996fe423bc957326e578b82a94", size = 276966, upload-time = "2026-09-05T10:42:39.44Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/12/b8/4bd346e22b28902df4d651910f5242c28d84e4a5c2435ca5c3f797ed7e2e/anyio-4.15.1-py3-none-any.whl", hash = "sha256:6152fdbbf9a77fdec97731721bebf7c4c44f7c29b424b0065826173efc7ed101", size = 132079, upload-time = "2026-09-05T10:42:37.923Z" }, +] + +[[package]] +name = "argcomplete" +version = "3.7.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/87/6f/5a73f04007ca950701765949209f068da628bd11f9c2da287278ce91e0ee/argcomplete-3.7.2.tar.gz", hash = "sha256:aad8b69a0b9969edb62db0d1752354c0d50717b10e0cbb00e2a958381b9fc6b9", size = 74473, upload-time = "2026-08-06T04:53:21.662Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/46/bd/551ee6af426af84ca33e02622be722925c196608e9127d731ef17c47f06e/argcomplete-3.7.2-py3-none-any.whl", hash = "sha256:6029205678bdd9c1c728a155f5f9ecf5812393f969eef58807641a2bc2aa5b19", size = 43294, upload-time = "2026-08-06T04:53:20.246Z" }, +] + +[[package]] +name = "attrs" +version = "26.1.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/9a/8e/82a0fe20a541c03148528be8cac2408564a6c9a0cc7e9171802bc1d26985/attrs-26.1.0.tar.gz", hash = "sha256:d03ceb89cb322a8fd706d4fb91940737b6642aa36998fe130a9bc96c985eff32", size = 952055, upload-time = "2026-03-19T14:22:25.026Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/64/b4/17d4b0b2a2dc85a6df63d1157e028ed19f90d4cd97c36717afef2bc2f395/attrs-26.1.0-py3-none-any.whl", hash = "sha256:c647aa4a12dfbad9333ca4e71fe62ddc36f4e63b2d260a37a8b83d2f043ac309", size = 67548, upload-time = "2026-03-19T14:22:23.645Z" }, +] + +[[package]] +name = "backports-asyncio-runner" +version = "1.2.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/8e/ff/70dca7d7cb1cbc0edb2c6cc0c38b65cba36cccc491eca64cabd5fe7f8670/backports_asyncio_runner-1.2.0.tar.gz", hash = "sha256:a5aa7b2b7d8f8bfcaa2b57313f70792df84e32a2a746f585213373f900b42162", size = 69893, upload-time = "2025-07-02T02:27:15.685Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a0/59/76ab57e3fe74484f48a53f8e337171b4a2349e506eabe136d7e01d059086/backports_asyncio_runner-1.2.0-py3-none-any.whl", hash = "sha256:0da0a936a8aeb554eccb426dc55af3ba63bcdc69fa1a600b5bb305413a4477b5", size = 12313, upload-time = "2025-07-02T02:27:14.263Z" }, +] + +[[package]] +name = "black" +version = "26.5.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "click" }, + { name = "mypy-extensions" }, + { name = "packaging" }, + { name = "pathspec" }, + { name = "platformdirs" }, + { name = "pytokens" }, + { name = "tomli", marker = "python_full_version < '3.11'" }, + { name = "typing-extensions", marker = "python_full_version < '3.11'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/c0/37/5628dd55bf2b34257fc7603f0fe97c40e3aaf24265f416a9c85c95ca1436/black-26.5.1.tar.gz", hash = "sha256:dd321f668053961824bcc1be1cc1df748b2d7e4fa28086b08331e577b0100a73", size = 679439, upload-time = "2026-05-18T16:53:36.107Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/be/84/b3f55026206a9e8820a91503308075ca48eadc515e436731ca01dbe043b3/black-26.5.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:9942db8888e06943c5dde66ca0037dcff82a2a4ec1ad0ada9e0d2ee9d9823893", size = 1987719, upload-time = "2026-05-18T17:05:02.757Z" }, + { url = "https://files.pythonhosted.org/packages/c6/34/7db312c5e5783d6e76cffd9d5ac8972a32badae4c6e3288dac0eed8d3bed/black-26.5.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:89c93167a74d3a75dfaa38a5c7cca015537d5820dd7f17d63267d674a61cae90", size = 1810083, upload-time = "2026-05-18T17:05:04.302Z" }, + { url = "https://files.pythonhosted.org/packages/33/e2/e0101e73c2c8727634e2efcb35e2b34bd23ad70dfa673789f5773a591b21/black-26.5.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:22f2cd76d069cc54c71f10360744ba8983fbb616903b4304a85b734915c8e1b4", size = 1860633, upload-time = "2026-05-18T17:05:06.391Z" }, + { url = "https://files.pythonhosted.org/packages/b0/4c/e15c0c5b23cf3651035fe5addcce90e283af3548a3f91bb03d81b83106ab/black-26.5.1-cp310-cp310-win_amd64.whl", hash = "sha256:87ed5c6f450580a2f6790bc7cbfb016dfc73bc750249762268a3695361315eef", size = 1477886, upload-time = "2026-05-18T17:05:07.96Z" }, + { url = "https://files.pythonhosted.org/packages/9f/3f/59d43ade98d2ce5c8dc34a4e46cbecd177e6d55d7d4092969c6003ccc655/black-26.5.1-cp310-cp310-win_arm64.whl", hash = "sha256:58b4bd92cf88aacf83d88479c8f9caee044b1ec55f2451a337354a7ea2590a22", size = 1277111, upload-time = "2026-05-18T17:05:09.473Z" }, + { url = "https://files.pythonhosted.org/packages/4b/96/3c3e09f09f44a37aac36b178a279cd19aa7001bd796187a7b162a294c81f/black-26.5.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:96ae2c733b2aabdd9986e2c5df628ff3473676cd1c5faded1ff496cf6d74083c", size = 1970639, upload-time = "2026-05-18T17:05:11.461Z" }, + { url = "https://files.pythonhosted.org/packages/83/ea/5ad117b9ee3ecd933c712bcbae610006e5b7cc9f41c526cd7ed3b6c4124c/black-26.5.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:0e48b87e03bf109288e55cfceadcfa15ff5470aca2851a851950ed2926f450d7", size = 1792130, upload-time = "2026-05-18T17:05:12.983Z" }, + { url = "https://files.pythonhosted.org/packages/06/3a/7c448bc623fcdfa96672531beb5a616ea5e64f6975955254d7731ffb0ad9/black-26.5.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5119fa92ae61f786e8c3662fd60aece1d0a2dd5cca5d0c79417a95e7a4272a59", size = 1846134, upload-time = "2026-05-18T17:05:14.506Z" }, + { url = "https://files.pythonhosted.org/packages/a1/5b/0b39b3a5917f0657ac014ad2edb58c139553a478adfe7f817abf1622ff6e/black-26.5.1-cp311-cp311-win_amd64.whl", hash = "sha256:30d3c14661f2792e9142cce3eeeb1cbc175b3eb5f733be0c8eeb99651e52b0c3", size = 1478883, upload-time = "2026-05-18T17:05:16.542Z" }, + { url = "https://files.pythonhosted.org/packages/4c/48/dc222692e0f95030db1bbfb6c857e76858bad09058221ea7aae815255327/black-26.5.1-cp311-cp311-win_arm64.whl", hash = "sha256:1ef92b76f7733f282fd096ea406200b5a286c42947412b0eaff3a74e3616cefe", size = 1277776, upload-time = "2026-05-18T17:05:18.029Z" }, + { url = "https://files.pythonhosted.org/packages/24/99/7744b906703228264ef73bdd534df88ec1ef3de45c4e78f6d31b9e32d0c9/black-26.5.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:4ad6fa01f941920f54f2bbb35f3df7673428a0ef98a0b0840c2eaef3b110efa8", size = 2012518, upload-time = "2026-05-18T17:05:20.108Z" }, + { url = "https://files.pythonhosted.org/packages/b7/c0/c5a3b1636dfd09c42534f2b3cf33506814f6d3e066fb0879ffa16c1ae860/black-26.5.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:3915f256e75a2d7cf88d8953d37f780455dc586cc72dee059c528fe77f581217", size = 1816016, upload-time = "2026-05-18T17:05:21.84Z" }, + { url = "https://files.pythonhosted.org/packages/1f/0e/36044316b65ca471d3bb6d3703fd06fb50c6b727c3562f6a5a3153634f88/black-26.5.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9d98d4137277c75dfb898ec8d846c4fd68ba1e9cf77f95e2865c203dc18f4c3d", size = 1884150, upload-time = "2026-05-18T17:05:23.546Z" }, + { url = "https://files.pythonhosted.org/packages/b3/33/dafc5808c2af43672912111d7c3354af1615f7e2be3bed7a878461abbe4d/black-26.5.1-cp312-cp312-win_amd64.whl", hash = "sha256:a1dca32d9f1784af512a13410ec204c6f7f0aa9797a111c42e1c03449821c264", size = 1486825, upload-time = "2026-05-18T17:05:25.004Z" }, + { url = "https://files.pythonhosted.org/packages/82/14/b965ee6ad2a311f28bdbf692def3ee9848d2ae289dab28b27657fcee3e78/black-26.5.1-cp312-cp312-win_arm64.whl", hash = "sha256:1037d5ac7b7b310b2632ad867ec8d0e4c4819dcdb0b820f63135da746a24e418", size = 1288646, upload-time = "2026-05-18T17:05:26.477Z" }, + { url = "https://files.pythonhosted.org/packages/3f/5c/c384363980e11e25ca6b93205949bb331fbf35f4e0dbec376dfa6326cec8/black-26.5.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:2b36cf2ddf5566e205f6535f782a62194a184d33e175b64ae8c40b1737522be3", size = 2009020, upload-time = "2026-05-18T17:05:28.132Z" }, + { url = "https://files.pythonhosted.org/packages/0b/df/9f31c5e0babbfed77d505fc5d120beb98b21b33feaeded3924ea941fe360/black-26.5.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:1f7ea64ebfa01b50f693508fc39f875e264446d3b097088f84f203b9d09618a0", size = 1813335, upload-time = "2026-05-18T17:05:31.266Z" }, + { url = "https://files.pythonhosted.org/packages/fb/24/8e7b9a2fa61b0afd82209efe937557d180a1fa055bd7f6161eb9defc3719/black-26.5.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ecb3e624844c798144e9bd986954e0adc81d8911a1f30f375e1252fe26e8c294", size = 1881614, upload-time = "2026-05-18T17:05:32.718Z" }, + { url = "https://files.pythonhosted.org/packages/49/ad/b4e0d9365ba8ac34f6bbab62a4b1b2dd5d618fac3fa1b8db968c844201b5/black-26.5.1-cp313-cp313-win_amd64.whl", hash = "sha256:e1a26503279b6b310669fb0b219c39e4820b77e8189fe80f522bb511f247db0a", size = 1488925, upload-time = "2026-05-18T17:05:34.259Z" }, + { url = "https://files.pythonhosted.org/packages/a1/4b/652b859bf5df88a751c30451b09338f7fd26a77d1271c666992f836b7711/black-26.5.1-cp313-cp313-win_arm64.whl", hash = "sha256:5c34b25da232ead53a6f335b76dbea124f4d152ad568b9080d6f944bc2b34b52", size = 1289883, upload-time = "2026-05-18T17:05:36.019Z" }, + { url = "https://files.pythonhosted.org/packages/a6/16/a8da8eb208c51c7f4ce74609a45d0dcc6d8a2141e45e81ee5289d1bb0d59/black-26.5.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:e88976690a64b0af98312ca958415849cb42423423c5f2ee74af4b49a97a2168", size = 2004800, upload-time = "2026-05-18T17:05:38.182Z" }, + { url = "https://files.pythonhosted.org/packages/11/8a/a479296a19e383b70a725882a6cf3d786540601ff03cabbaaf1cce864c5a/black-26.5.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:32d5ea7f6c8bdfa6e648326ebca1f02b0764e2a029edc6f8dce2627e19d468c3", size = 1815576, upload-time = "2026-05-18T17:05:40.309Z" }, + { url = "https://files.pythonhosted.org/packages/81/6b/cfaf3d39f25132c156a068f6b805576c9103a84086019507c70e1911ee7d/black-26.5.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ea8d16dc41655aa113cd64665e7219446cd7e4ff2248d7178eaa905190c86b18", size = 1877927, upload-time = "2026-05-18T17:05:42.463Z" }, + { url = "https://files.pythonhosted.org/packages/66/76/302e313964bcff7e28df329d39f84f5270095730d85ff0acc260610a0d82/black-26.5.1-cp314-cp314-win_amd64.whl", hash = "sha256:577f21094ea469ef92ec1adaf2c9441a226d2144d01a5be2fa823cecf6543e50", size = 1511860, upload-time = "2026-05-18T17:05:43.943Z" }, + { url = "https://files.pythonhosted.org/packages/27/4e/a3827e35e0e567f9f9ee59e2a0ab979267dca98718f25547ca8c6733afd4/black-26.5.1-cp314-cp314-win_arm64.whl", hash = "sha256:ed1a20af114c301a0269bf01163d51dbef72737fd65f850001e7cbe7f3c7abae", size = 1316632, upload-time = "2026-05-18T17:05:45.521Z" }, + { url = "https://files.pythonhosted.org/packages/94/51/f975cae76d44274cc2868dc9040ac5d58d464784610234455b4e7b19c6ef/black-26.5.1-py3-none-any.whl", hash = "sha256:4ed7f7da04046d2e488437170797d3b4a4ad83906683bcb7dfc68b673bbce5e2", size = 213693, upload-time = "2026-05-18T16:53:33.964Z" }, +] + +[[package]] +name = "certifi" +version = "2026.7.22" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/a3/c2/24167ea9858356b47a87a50d39908bfdb72ceeefe0041586e704e5376b3a/certifi-2026.7.22.tar.gz", hash = "sha256:741e2c3b351ddf169a738da9f2c048608ff7f2c5cc02f1ebc6b118bb090d5d55", size = 138112, upload-time = "2026-07-22T03:35:12.644Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/0b/a7/71ac2cff56fec219ed242bb11b8efb69fcc4bec75db06fb7bfe35de520e6/certifi-2026.7.22-py3-none-any.whl", hash = "sha256:62f22742b58a1a33014a2b6b706588a8d7e2a88ae7bd1a6ebe8c992928483775", size = 136983, upload-time = "2026-07-22T03:35:11.276Z" }, +] + +[[package]] +name = "cffi" +version = "2.1.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pycparser", marker = "implementation_name != 'PyPy'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/9e/ef/008a1939e372c06329a3fce4279c02f328488f3526744906eeec3da7ad5f/cffi-2.1.1.tar.gz", hash = "sha256:dd31f52ea1086513bb9df30f8fcee9b8918323ae067a3d5b78bc826a000712be", size = 530807, upload-time = "2026-08-03T21:21:18.939Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b6/d2/2cde336b375f55c76ca670f0be3978cc048e31e24f3b4d7ce8473150a388/cffi-2.1.1-cp310-cp310-macosx_10_15_x86_64.whl", hash = "sha256:baed1e86cc735622097354b9d1281406caf42ff42a886d29faa8e8d1630333be", size = 183779, upload-time = "2026-08-03T21:19:15.602Z" }, + { url = "https://files.pythonhosted.org/packages/94/1a/4b2f7c92293ba05cbd4a9a1b28faaf0326272d9488e6354657571c48a7aa/cffi-2.1.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:ca82be1a1d406ecfe1d25dc16cb33488e5a16bf4438c9fb590484ea29d92478b", size = 184178, upload-time = "2026-08-03T21:19:16.67Z" }, + { url = "https://files.pythonhosted.org/packages/17/0b/ba385d8ccedf926c3cd06e8e2f327027da5afe5f0eb30f1f7bc43ac55125/cffi-2.1.1-cp310-cp310-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:42e2f76b9455f5a9a844f770bf3e200ed3da0e15f5df3db9c31fe80b04b3d004", size = 211037, upload-time = "2026-08-03T21:19:17.705Z" }, + { url = "https://files.pythonhosted.org/packages/a3/b9/0f2e58b2cefa33255bff36935d42b13180fe559bba82596540eb404bde7d/cffi-2.1.1-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:5a59cc1c4442bc3d5c703bf720b51138d0bfc173618807c9ee2490a7541dd3d9", size = 218652, upload-time = "2026-08-03T21:19:18.735Z" }, + { url = "https://files.pythonhosted.org/packages/37/15/180e0dab27b9312c7479003d14c9e547634b7dcb934e2cc4650e1b131a7a/cffi-2.1.1-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:9f8d177621de5cb38ee3e731eda45d421db093ec0739f46a5594babda7987a98", size = 205422, upload-time = "2026-08-03T21:19:19.96Z" }, + { url = "https://files.pythonhosted.org/packages/18/d4/03026f0c850cbbaa9030750490225b4a7f4d524ea4df72c3cc740a90f4ef/cffi-2.1.1-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:75f80557d1389eddbd0de2681f6a390a0c5338c31ddaa821381c203fc3fd50d9", size = 205444, upload-time = "2026-08-03T21:19:21.246Z" }, + { url = "https://files.pythonhosted.org/packages/75/77/60bebf6f818bec84210ac5b6979ce4eeadce6fbbaabc9c7ab23e506d1ce5/cffi-2.1.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:194cffa889098ced9976c3fc6340305e43f6303657d298da55366907c05c22d6", size = 218742, upload-time = "2026-08-03T21:19:22.523Z" }, + { url = "https://files.pythonhosted.org/packages/b0/ae/679bf47e73fd77b352171727f07de559a003f14de5d02b904a6ec1fa73ca/cffi-2.1.1-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:5bb4e7ea95dcd6a014a6fef62e62467d67d8e582326443f3d68e71d6320a9fcf", size = 221054, upload-time = "2026-08-03T21:19:23.694Z" }, + { url = "https://files.pythonhosted.org/packages/09/b8/eefc0e06913b70aa153bf74c946094a18f58fd4aff11b7f372bfdfdca050/cffi-2.1.1-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:3d22a20b1fb1632cc72c22f95f7b0d2961c3e1c235f245ba4c606c4771035659", size = 213489, upload-time = "2026-08-03T21:19:24.922Z" }, + { url = "https://files.pythonhosted.org/packages/6f/13/4e56852824a03cdf68523a35686f1c28eacd4bd30a7b0a78e682e6e6e1d3/cffi-2.1.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:1dea0e4d7d4f11f619fe8c1d76caf49e24405b4b5743c0e3be16a500ecd930c9", size = 220241, upload-time = "2026-08-03T21:19:26.214Z" }, + { url = "https://files.pythonhosted.org/packages/99/7f/040f9e163e4acac3ee3d85b02d00b2576e7ca980d8785f0a3a5f1a9bf7f5/cffi-2.1.1-cp310-cp310-win32.whl", hash = "sha256:7ce713ace7c0e4520535b42b77eaa742c16dab813978064913e5a3cf82973b41", size = 174578, upload-time = "2026-08-03T21:19:27.338Z" }, + { url = "https://files.pythonhosted.org/packages/ba/0b/644a2ec1a4eaba49c2939410bb1eb1d25b09d6d0582f5d2f95c537043725/cffi-2.1.1-cp310-cp310-win_amd64.whl", hash = "sha256:a48d62ab9d6f4f98c983223a547af44be6ca3691074c31cecced6facd3ba2dc1", size = 185082, upload-time = "2026-08-03T21:19:28.409Z" }, + { url = "https://files.pythonhosted.org/packages/70/d2/16d99a0c4948febc0ebd133a13b2f688ff7f8cb04da971e1128872ce0c03/cffi-2.1.1-cp311-cp311-macosx_10_15_x86_64.whl", hash = "sha256:c8d2c9fd1f2d16f780d15127abb050d13d1a76c03a4bd87d7e4980e45e511e12", size = 183838, upload-time = "2026-08-03T21:19:29.637Z" }, + { url = "https://files.pythonhosted.org/packages/cd/95/31b535a9f0220ae9f357de4a08d57ce89cb417653c2fd9f075f50822a388/cffi-2.1.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:398aff33cee2767e3e781d2554c54bd0dff386bb437581e0d8011fde1a942ec1", size = 184168, upload-time = "2026-08-03T21:19:30.764Z" }, + { url = "https://files.pythonhosted.org/packages/ad/5a/4707a0dc1f203f5dde5a907b0d4e3c25d71120241048bd5bc6f1bb9d4e71/cffi-2.1.1-cp311-cp311-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:154852545011f779917b11c78db2358d095da62a9a172b78ad0a583ee5adc0d0", size = 211805, upload-time = "2026-08-03T21:19:31.867Z" }, + { url = "https://files.pythonhosted.org/packages/ad/66/c19feabb28485b6e0bbaaafa90837a1ef5d302e90f2178bd33f17a49879b/cffi-2.1.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:3311ed60d36f83378794e1009ac6258bafbf81f7888b4caa7b35a521e3f95813", size = 218716, upload-time = "2026-08-03T21:19:32.896Z" }, + { url = "https://files.pythonhosted.org/packages/a7/92/500760486c8baab49a7a8a58ba7fc3355ec3974b454b8a09e528efde9e1d/cffi-2.1.1-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:6e192623c49c94421616a5778fba35cf0d5a8d000650c1967ef4448ee5cdd990", size = 205569, upload-time = "2026-08-03T21:19:34.142Z" }, + { url = "https://files.pythonhosted.org/packages/a5/a7/a67c733254d6e7373f7822f8082d8d6beade791e0cf12a7611f376fa61c7/cffi-2.1.1-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:a6e721d4b0e45d5b65e87534470e67b18dcd092c83f68fba09f152b9cbc061af", size = 204907, upload-time = "2026-08-03T21:19:35.174Z" }, + { url = "https://files.pythonhosted.org/packages/f7/a4/4399daaf8f7dfee9d7c3327fdb0426ee041cc63edc358b93911ceb2bfc7a/cffi-2.1.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:34e261f78cb6ceaaa36f42f2613f4380d94d9c759a9c73c769ee6e0247364632", size = 217807, upload-time = "2026-08-03T21:19:36.286Z" }, + { url = "https://files.pythonhosted.org/packages/28/f7/dabe6da2466ecbd82dc62e7342dc6b1065dad990c06f00f0ede9ebf2a0ed/cffi-2.1.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:7225e4514edb64eb6740324353e0da0711954fd8d7da4576755b1c6e09b697cd", size = 221252, upload-time = "2026-08-03T21:19:37.416Z" }, + { url = "https://files.pythonhosted.org/packages/ce/87/616202d8e51342c07d2534c510111c4cc37201775ce8f60802c9335d1edd/cffi-2.1.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:df913725b79db7bcf03448f36b7bf8815363417d5b58deecf9305e3e30f0f21a", size = 214214, upload-time = "2026-08-03T21:19:38.507Z" }, + { url = "https://files.pythonhosted.org/packages/b4/c6/ab025d75d2c26c19b087c0124e75ee31cb65032f4fe345d356d8c507ab97/cffi-2.1.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:f5cfbc5fe74540d335175b656c725d74d90e3730c626d92575eea35029d9afaa", size = 219408, upload-time = "2026-08-03T21:19:39.809Z" }, + { url = "https://files.pythonhosted.org/packages/db/e2/7e8109f65445bdc673a7b54f02c677de462db75674220fd1335efc8eb598/cffi-2.1.1-cp311-cp311-win32.whl", hash = "sha256:f8ec5e643a9a937f64e1999eb9f75d072263751912dc5cd06d3c85f8f44be7c3", size = 174470, upload-time = "2026-08-03T21:19:41.246Z" }, + { url = "https://files.pythonhosted.org/packages/73/c0/77ba02423c2f7d7091143c45cd49e0e6575c4c1967394bb542bd923a9b74/cffi-2.1.1-cp311-cp311-win_amd64.whl", hash = "sha256:42f6930c31dc7f50732c9ae793c2786c7b6b044195967bbdde40bb9be81c4cc0", size = 185096, upload-time = "2026-08-03T21:19:42.615Z" }, + { url = "https://files.pythonhosted.org/packages/7c/47/9f1f85f9672ceda4984dc6c4f8824e8558992a2972c3d3c81fb8eb28d4ba/cffi-2.1.1-cp311-cp311-win_arm64.whl", hash = "sha256:c7659f22557c5a0bc4855cd635f55edec690cc008a40768527762cb9fb263455", size = 179941, upload-time = "2026-08-03T21:19:43.747Z" }, + { url = "https://files.pythonhosted.org/packages/10/69/43965eccfdead3b9220015fd1320e117be8c6ed01a62ffab76eeb752f5d5/cffi-2.1.1-cp312-cp312-macosx_10_15_x86_64.whl", hash = "sha256:c8c69575568085ba0b1b10c0249d779a214aea6f6522e949a0fc9fb0fcb449d0", size = 184821, upload-time = "2026-08-03T21:19:44.887Z" }, + { url = "https://files.pythonhosted.org/packages/54/7d/16e5a096677b5e313ca80cd5e5170efa3ea44624a82bb111925522da64b1/cffi-2.1.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:f81b3b8f3d4e343550fa4baa0e479bba9f2d29ce9c2e9b51d1ce1718d7442fcf", size = 184719, upload-time = "2026-08-03T21:19:46.129Z" }, + { url = "https://files.pythonhosted.org/packages/56/e6/8941622732edec876dd17d0453dce07317ae96db34f2ec1436c9d3785986/cffi-2.1.1-cp312-cp312-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:811bd1e21d32de12efca32393a0ab3f5133b54fce9bd44b8bd77ab07da14bf6a", size = 214799, upload-time = "2026-08-03T21:19:47.218Z" }, + { url = "https://files.pythonhosted.org/packages/44/de/f98430906df1545ffde0d543dd124a7a439bc2cd32b36b9c53f805df7333/cffi-2.1.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:68e62fe11f30d5ca8289242866f0a5291402d8529ca2178ab8afc5c9694ae890", size = 222389, upload-time = "2026-08-03T21:19:48.331Z" }, + { url = "https://files.pythonhosted.org/packages/6a/5b/717f1526b9957b34456313c31645c5b82b8fb5c3fe9e4752999be7128bfc/cffi-2.1.1-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:4a7c934f7360e8cd64fe9efadcbd10c7c6364f531e432b9a4bf5ccbc9e0e8b50", size = 210249, upload-time = "2026-08-03T21:19:49.543Z" }, + { url = "https://files.pythonhosted.org/packages/64/b3/f8aa4f3e34986c7e4ec45072d1b1b9dd295b6b18007b45518d79726dd725/cffi-2.1.1-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:3143d81e29e1e20a9ce10901ec369012947876596f75a222235965f2b7ae832e", size = 208775, upload-time = "2026-08-03T21:19:50.918Z" }, + { url = "https://files.pythonhosted.org/packages/b1/db/dceb9dd5b231e1da801793f8acc9f3c52a7e1afe40bb1aae37e02b0faad5/cffi-2.1.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:c1453022f490d2459a11819d83ad1d586e9ff65a12ac3e705ffebd46d3685dcf", size = 221822, upload-time = "2026-08-03T21:19:52.054Z" }, + { url = "https://files.pythonhosted.org/packages/a0/d2/6cd24ae3be000a634109c247d1475d62e5616d0dc78c82770942ec384248/cffi-2.1.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:208f941bb9d18e768138677f0a6d2ce01f590df56043dda1df1535ac57c88517", size = 225232, upload-time = "2026-08-03T21:19:53.109Z" }, + { url = "https://files.pythonhosted.org/packages/cb/52/3fa190537004dd7f0ab860a6dc7c0175b8667f68d1e618a46f5498d30250/cffi-2.1.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:210019b6c7cf07f081b4c54635c8cf744377001350e29cc0f81c4377b4797735", size = 223597, upload-time = "2026-08-03T21:19:54.515Z" }, + { url = "https://files.pythonhosted.org/packages/80/fb/0bb75b7039588c074b37ae99f40d9bfddf990ecb2fbc346ebccd2e56b9be/cffi-2.1.1-cp312-cp312-win32.whl", hash = "sha256:046bfc24911b37851ee1b51aab8bffe713d89c68c6a057b09484ce9fd5f69b4e", size = 175292, upload-time = "2026-08-03T21:19:55.566Z" }, + { url = "https://files.pythonhosted.org/packages/d9/79/615cc094e2fb508cade7de88d3b4f6c4ec2bab695c97bce9153dc65aadf5/cffi-2.1.1-cp312-cp312-win_amd64.whl", hash = "sha256:f53e442b08449d42821fa4a4fba000095af9f62742a500f978a9f557ec44339a", size = 185919, upload-time = "2026-08-03T21:19:56.89Z" }, + { url = "https://files.pythonhosted.org/packages/70/c6/d0ea84713fe46b243a436a18fcd47d639732747e21635c8a27191b06dc30/cffi-2.1.1-cp312-cp312-win_arm64.whl", hash = "sha256:7bde5e4cc5c10140859842b9d383af292b22639a4dffb725314baf45968cef80", size = 180093, upload-time = "2026-08-03T21:19:58.155Z" }, + { url = "https://files.pythonhosted.org/packages/9d/f4/035513d4117049066b4779dc3b7c0c0fdad175fa13731c9f4003f1cd1478/cffi-2.1.1-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:b5bdfd1c873d4e093aabc0ca84c4ca6dbc4f752afb5c86f146d9742580c9da2e", size = 194248, upload-time = "2026-08-03T21:19:59.399Z" }, + { url = "https://files.pythonhosted.org/packages/76/af/2aeb4dbb5fc41a04161ae9ff1518de7cec08e164f44a8ce6a4cf7fd2cd1d/cffi-2.1.1-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:31348097ff5bbe827ccc41795d4dd099d9f0625e7def00ee653c137a490c2a6c", size = 196908, upload-time = "2026-08-03T21:20:00.746Z" }, + { url = "https://files.pythonhosted.org/packages/a7/46/2e5fdde8555706dd98139a910ca11be02809f3f605ce956f655d0214e100/cffi-2.1.1-cp313-cp313-macosx_10_15_x86_64.whl", hash = "sha256:9d2055050ea716bd38b7f7f1579c275386646b4894c155a3e2f3cd62ed41b7c6", size = 184805, upload-time = "2026-08-03T21:20:02.02Z" }, + { url = "https://files.pythonhosted.org/packages/55/41/4c7042f317b9217502988f0873af87e16ad606dc20f84e546e3e6ce9764c/cffi-2.1.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:19ee6127ee34de7d83ce3d371ebc5ed91addbdcc39f9ab15ce4eb35a4e534971", size = 184764, upload-time = "2026-08-03T21:20:03.141Z" }, + { url = "https://files.pythonhosted.org/packages/43/1f/1c3d90d91811c8f86ced9ed637956c54bfe5b79ca98fe976d7f8c8979f6b/cffi-2.1.1-cp313-cp313-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:6a8dddef476fab96d066d578fc88526767b836ab5ab21754e1d5bf3879c31c7c", size = 214722, upload-time = "2026-08-03T21:20:04.377Z" }, + { url = "https://files.pythonhosted.org/packages/37/6f/3b5ce4c3b2192d250f04908f2bfd91ef34552ec8f7716a5d4abdb8d67bb2/cffi-2.1.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:f16c709686a78c727bbbf059f92b0bf41c6fc60deec706d2dc19f529175a6125", size = 222369, upload-time = "2026-08-03T21:20:05.544Z" }, + { url = "https://files.pythonhosted.org/packages/02/10/4b3c75dde3d9663c9e02ba05c2668b954f671d4bbe346413ca8c696b295a/cffi-2.1.1-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:fcd22650c908d7b7da162bbfaab594a1227a15d1643a98c68b122ac642fa2264", size = 210175, upload-time = "2026-08-03T21:20:06.75Z" }, + { url = "https://files.pythonhosted.org/packages/df/62/14f74b9543e605d17701dc797b815958b8bb70b7624ce1b832ddad48ed6c/cffi-2.1.1-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:aa9511c62d14da7aacc9b4bf51f3f697a621e83b2d6919008243c3aad168eea3", size = 208670, upload-time = "2026-08-03T21:20:08.04Z" }, + { url = "https://files.pythonhosted.org/packages/95/95/86342356ff5953b3fb06f7ef7c5bee212d45e770abc7218d451b9148313c/cffi-2.1.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:a931079504ecc49efed7744c476a5c343a92fabf66dec2db95edb1b2fdc770e2", size = 221824, upload-time = "2026-08-03T21:20:09.274Z" }, + { url = "https://files.pythonhosted.org/packages/eb/ff/7b3429ff53aafe931ed8a5fc69f481bbef7ba6de87ddcbb63d08f483f613/cffi-2.1.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:a2d7755bef5a12ed488f4ef1f1b69ee9191d7396083b755a5d2295f6edb4768b", size = 225148, upload-time = "2026-08-03T21:20:10.7Z" }, + { url = "https://files.pythonhosted.org/packages/34/34/a95870b9221e09cf4f2ce3178b1a210abdfe63a1bd357da940418d7b8d15/cffi-2.1.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e0bcb7e0f677f543555d2adff3bf19c05f66cdb4796e5ff602442ab2fe3c4ef7", size = 223564, upload-time = "2026-08-03T21:20:12.165Z" }, + { url = "https://files.pythonhosted.org/packages/70/ea/839b50531021a647fb5e929f72cf97bc1ff702b5472166164b5b6e76b851/cffi-2.1.1-cp313-cp313-win32.whl", hash = "sha256:334644fbac4eff73d985a17a91226df55d0f394160c4cfb880e084c8f7161cac", size = 175263, upload-time = "2026-08-03T21:20:13.559Z" }, + { url = "https://files.pythonhosted.org/packages/60/a6/8b149b2c3f2e11aaa1618ef64500b45f50f22c57a977a4dff1aff1f91042/cffi-2.1.1-cp313-cp313-win_amd64.whl", hash = "sha256:1aa5645c30469b09530c4ebca77ebf8f17618293c58f8549cb1a543a50236e7d", size = 185688, upload-time = "2026-08-03T21:20:14.69Z" }, + { url = "https://files.pythonhosted.org/packages/01/9a/11f687cb39d6a3504060d5242f04f48c735afb4d3d533958a20594890cb2/cffi-2.1.1-cp313-cp313-win_arm64.whl", hash = "sha256:63bbfd5ded17c4840ac07cd8f1c21ba9d9708141f840b324f422f41b207e3973", size = 180078, upload-time = "2026-08-03T21:20:15.917Z" }, + { url = "https://files.pythonhosted.org/packages/d3/7b/d6bbf82b8b96e7391438898c42f5bd96dd02030fd5b64937d248220003e2/cffi-2.1.1-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:7dbb61fe3a7699468030f71bbe5f8a0e326a151daa91beb11a6fc1f980c55e1c", size = 194064, upload-time = "2026-08-03T21:20:17.148Z" }, + { url = "https://files.pythonhosted.org/packages/94/e6/bcc91b283be94735e268487a054004f0aa19947b6348fa367db53230abc8/cffi-2.1.1-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:f24fb43132a4c6b4cb4eb029492919b2db645be6808d738f244fd146c03c32cb", size = 196720, upload-time = "2026-08-03T21:20:18.268Z" }, + { url = "https://files.pythonhosted.org/packages/d9/99/c4b0c17cacdc9c3b8f280026286a9826d6a208c0f047591a3c3ce99b91fd/cffi-2.1.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:d28630f5854ab07ab1fd4aba756de52326c82e6be15d414b12793f1975048b54", size = 184964, upload-time = "2026-08-03T21:20:19.708Z" }, + { url = "https://files.pythonhosted.org/packages/b3/a9/9db617d05d7367c1ad0ab00b3aa6e6f9281edd689b4ee9ea0e5a84e89c97/cffi-2.1.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:661c298b4821edebead0c91edd2b00374d67ad7c5a1f7a91d4442633b79d6a72", size = 184962, upload-time = "2026-08-03T21:20:20.833Z" }, + { url = "https://files.pythonhosted.org/packages/67/b8/b42132ca113dc567d37684437b46ca1dafc885902b02a110a02d5b511857/cffi-2.1.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:58acb8ab8e295e6c5ea12f888cbb13cf21511ef2a3303a23f4325c29d17fe5c1", size = 222328, upload-time = "2026-08-03T21:20:22.118Z" }, + { url = "https://files.pythonhosted.org/packages/80/10/c5c0cbf0a657aecf59ef511409734230bf556f05a0d6c9eed7aa5c0a0166/cffi-2.1.1-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:456a61fa52d579ebf9df2e9552ead5129855dbaff6c1e5a9b1bc408809bdc062", size = 209985, upload-time = "2026-08-03T21:20:23.401Z" }, + { url = "https://files.pythonhosted.org/packages/d5/6c/bfa0b87b03b9238148beca990292843c9396ba069b54496596594173de7b/cffi-2.1.1-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:a4f00aa42f75d6e4595e8866e748cc1705adc0cddfeb2ca86d0d03993d63ba03", size = 208530, upload-time = "2026-08-03T21:20:24.628Z" }, + { url = "https://files.pythonhosted.org/packages/e9/02/4e7d553a7ac4b4238b38b3c1b80d486e9d4436f8d2acbf87a0997fe3f402/cffi-2.1.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:b0431303acaea1089ad4b3e9ce4e6518193def1118d4073ca848635ee4ea2e96", size = 221525, upload-time = "2026-08-03T21:20:25.758Z" }, + { url = "https://files.pythonhosted.org/packages/82/1d/a4aaf9babd75acb4d5f223bff71533bee748dd770a382619a798960ee9ba/cffi-2.1.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:64faea20f4e2613363a1a9b9c7dd73058f3ecd00133a511e72ad7c511658f527", size = 225053, upload-time = "2026-08-03T21:20:26.985Z" }, + { url = "https://files.pythonhosted.org/packages/81/10/5dc0e7bdd18e22107054288283380fc97a06ae3f1656a106908d666a3c88/cffi-2.1.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:5c58fe613dc5e5336357eff555824a314d8e43282600435c8d1cb6a7a2fedd13", size = 223213, upload-time = "2026-08-03T21:20:28.277Z" }, + { url = "https://files.pythonhosted.org/packages/0b/e9/d0061c364cde06ee43168a0d076ac1da512cbc380d44767b844ba34fe2b6/cffi-2.1.1-cp314-cp314-win32.whl", hash = "sha256:1a18a57b58cfb21fc28d72e876acf10eaed67a1ed96226f92af4df681d571c4c", size = 177682, upload-time = "2026-08-03T21:20:44.288Z" }, + { url = "https://files.pythonhosted.org/packages/a7/06/1c3e01e3ba14c39f6d10bfbac52753b7e22259e38088e5cfe1d704918690/cffi-2.1.1-cp314-cp314-win_amd64.whl", hash = "sha256:3222ba5d678f80a030e6afbcc33dc1ae5cb45facabb61cee2c7016b8432fde48", size = 187949, upload-time = "2026-08-03T21:20:45.623Z" }, + { url = "https://files.pythonhosted.org/packages/87/5b/da4e39efe18eeb89cf580ea9cfc66b6a7c3eadb808fc0cc1d3a295cb5a5d/cffi-2.1.1-cp314-cp314-win_arm64.whl", hash = "sha256:ab36d55f9ed2d067327667c2fea18dda018eb628dd6347aa01dda6cf1f5d3836", size = 182947, upload-time = "2026-08-03T21:20:46.955Z" }, + { url = "https://files.pythonhosted.org/packages/23/59/40338bf421c5accea1d45158170c87006ef1cd371b05c077e76476949728/cffi-2.1.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:7750c6449dff7864bb9bb27ddfb0267756189201a3afc911d82b3caacd70dfc3", size = 188504, upload-time = "2026-08-03T21:20:29.495Z" }, + { url = "https://files.pythonhosted.org/packages/7d/47/5ecf1023850036e674c77ec4de86182d309ae344e39e7cba984b7df5d647/cffi-2.1.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:0beceaabe56af686895136a2de78db54ecd8e4046b236b8fd6d6cb61389e9bf2", size = 188259, upload-time = "2026-08-03T21:20:31.291Z" }, + { url = "https://files.pythonhosted.org/packages/2a/9c/92934c3bea9f785b23eba304538c0b4d37a2a96d2431eb3a1bc87a11aa19/cffi-2.1.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:49cbc70e6542d4ccccb936558d1064a8012541e78f821f955cff24e357776c94", size = 223864, upload-time = "2026-08-03T21:20:32.571Z" }, + { url = "https://files.pythonhosted.org/packages/4d/45/ba4c93527bc38616a8bd36488acb69a2212d60486794f0c1f318949bbb76/cffi-2.1.1-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:e2d65b31f36619cda3999b78b2aa9632e76b78448e7a56fc4240824200e7c4fc", size = 211538, upload-time = "2026-08-03T21:20:33.808Z" }, + { url = "https://files.pythonhosted.org/packages/80/e9/b6ef565e452acb932fb0cb5443f44a78efbd1233e566f02b5a83855e9115/cffi-2.1.1-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:28907ab9bfb6aa13184cfc17c6b8e1023c5ab6fd7076d8c20a35e59fe04f8f29", size = 210688, upload-time = "2026-08-03T21:20:34.974Z" }, + { url = "https://files.pythonhosted.org/packages/9a/95/eff5f0cee78d2eabc7eebffec40d3fc1876b5f3c95582e018bb4b99601f2/cffi-2.1.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:51b31d1c98274844cfd7838ce00bfc27c7423a4dc00fc0772fc3331c2cc90676", size = 223803, upload-time = "2026-08-03T21:20:36.564Z" }, + { url = "https://files.pythonhosted.org/packages/fa/01/579d39fb8bef00a335a23d83757b44feb24cd6345a2c451b64cb67b9c362/cffi-2.1.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:5e7cecbaadb83884793e05828cee59b210b24583b9c7425d0ba6a754fe22eb4e", size = 226763, upload-time = "2026-08-03T21:20:37.816Z" }, + { url = "https://files.pythonhosted.org/packages/8d/b0/0b44f47c60b01b57b6e2bbd92343f13a85a1d93bc46ccf6e47e244acd99c/cffi-2.1.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:25792eac27877609e7bb06d42ff88278a6624fff2ba9bbb523c09616b117e80f", size = 225688, upload-time = "2026-08-03T21:20:38.959Z" }, + { url = "https://files.pythonhosted.org/packages/eb/d2/3b7176cb570a1d3e27faf67b72f591af508036e0d8b2be2ef9af9e8c84bb/cffi-2.1.1-cp314-cp314t-win32.whl", hash = "sha256:8ef53b2de9bcb9197d31854256575d59dbac0cba72ac627bb291ef5eceb74be4", size = 182868, upload-time = "2026-08-03T21:20:40.388Z" }, + { url = "https://files.pythonhosted.org/packages/56/78/31f00c1bcd97c9bbf55f1bfdf5bc809a5de8887473e90bb9960dca825e80/cffi-2.1.1-cp314-cp314t-win_amd64.whl", hash = "sha256:616f097f2fe415bc92a247f02e11f634e1f9e9a83d327e3c915c15089c87869e", size = 194104, upload-time = "2026-08-03T21:20:41.725Z" }, + { url = "https://files.pythonhosted.org/packages/7b/1b/58496f2ed0a35de575250c02a43ab3cc2c04d494a88fed31c1cabc0fd176/cffi-2.1.1-cp314-cp314t-win_arm64.whl", hash = "sha256:ad2c86c495b899d862ea0f4b42891b8713a3bd45dd4105c7fd51c2a72f39f3a5", size = 186402, upload-time = "2026-08-03T21:20:43.042Z" }, + { url = "https://files.pythonhosted.org/packages/c1/8f/9ebe220eab48a093d1a5a5e339ab0dc7316eef3bb04d63c42f0251b61f50/cffi-2.1.1-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:dddad92b554513a31f272570678ba307fb9f618f05e3d4a5eacafff9eae03e1d", size = 194043, upload-time = "2026-08-03T21:20:48.179Z" }, + { url = "https://files.pythonhosted.org/packages/ff/69/844bad3ece306c4782c2ecb93597035b6690d48704b803914c199da1e8b3/cffi-2.1.1-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:da0e573f9f97159390c89d9f1a9e41908b66d408cc5b58d08cf3847d844c531b", size = 196737, upload-time = "2026-08-03T21:20:49.457Z" }, + { url = "https://files.pythonhosted.org/packages/1b/8a/af668013284634733f02d683458a0728739c7d6ddb5e14cb0c20832266fe/cffi-2.1.1-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:fb92203a88b3d3053034db775110081c49d28be6551923805e039924093761e4", size = 184933, upload-time = "2026-08-03T21:20:50.639Z" }, + { url = "https://files.pythonhosted.org/packages/0c/75/2f5207ff6d1a613133b23a5203cc0c2a628313b5eb3974d7956ae3c57950/cffi-2.1.1-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:2ae64be792b8966f2c69538199728b290e34726562896df1e5dc8ffd8d8188e8", size = 185002, upload-time = "2026-08-03T21:20:52.173Z" }, + { url = "https://files.pythonhosted.org/packages/e2/31/9e1313b0a6e30e91b3b3d3fff51ae99c857c07738e3afcce1f7334e1b7ab/cffi-2.1.1-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:507a24c282e0f42f8ed737cf048572cbf580468da5555764a8331735e9c736b6", size = 222271, upload-time = "2026-08-03T21:20:53.462Z" }, + { url = "https://files.pythonhosted.org/packages/50/e3/f6234a833e6e08c7007003074723c406559eecf9b48dfc97471e5a8eb7a0/cffi-2.1.1-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:246fa40ce8645a614ff682e0b70f37134e460eaf93a775e0cbe3cca585a67a80", size = 209919, upload-time = "2026-08-03T21:20:54.783Z" }, + { url = "https://files.pythonhosted.org/packages/0d/fc/5f74e293fced6edb51af3a46c4ccf6c23c9943774ecb375ddbd522c76add/cffi-2.1.1-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:471cee653ae88de62096552e6d24ccb4a5adb8c8c9f10b5054d0122c15bf2779", size = 208529, upload-time = "2026-08-03T21:20:56.066Z" }, + { url = "https://files.pythonhosted.org/packages/44/16/29e6d01b388bef055ecd6ca8244b3f4d336bd09e92d5d892187b9601084e/cffi-2.1.1-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:aeae0e330c9f6acd681f647d46cefd30c29f93e3392882e792e82080c9691399", size = 221630, upload-time = "2026-08-03T21:20:57.336Z" }, + { url = "https://files.pythonhosted.org/packages/a4/18/fa7f1f6857d5eb88a4ca99ffcbfb7c387a287ccc154c64a73e86314745d7/cffi-2.1.1-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:42a494cee34437f05546455144f2b5d9ac09b1face62bcfce597d2e521066688", size = 225134, upload-time = "2026-08-03T21:20:58.675Z" }, + { url = "https://files.pythonhosted.org/packages/e0/9f/e8e3dfa04a1b4c241f8c91faacad872b4d4efd051d49764ad4e2fd4b9fea/cffi-2.1.1-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:cc572dace3f60ef98d7b12ff411d20f5362feb31a0439eab0085bbfd349982d7", size = 223197, upload-time = "2026-08-03T21:20:59.968Z" }, + { url = "https://files.pythonhosted.org/packages/f8/7e/8debeb04f1ab9fe2a6963964cd6f1aaf7192627b83926586a6a4e089c9fa/cffi-2.1.1-cp315-cp315-win32.whl", hash = "sha256:4f42141fc14250de6dde5ee7ea4432be017252d91f19c5ad043c084cea629cac", size = 177683, upload-time = "2026-08-03T21:21:14.901Z" }, + { url = "https://files.pythonhosted.org/packages/e0/31/5158704cc474ab65c1647932e88be78dc0873f47130e253be38bcaf13d01/cffi-2.1.1-cp315-cp315-win_amd64.whl", hash = "sha256:e6e8cff14d6fb0be70a09c0bdc58096f501952d04624ebf867e0e56da2df8960", size = 187897, upload-time = "2026-08-03T21:21:16.108Z" }, + { url = "https://files.pythonhosted.org/packages/cc/4b/b3a2da8570c704ffc0f9762cdc3ec0f02c8573798e0b5cf7f11c82bbb70f/cffi-2.1.1-cp315-cp315-win_arm64.whl", hash = "sha256:27350daa11d4f10c540e6e89dada4c54feb7256ad03e9a4dc075ebad7ba360d1", size = 182935, upload-time = "2026-08-03T21:21:17.271Z" }, + { url = "https://files.pythonhosted.org/packages/d0/ef/5443574510a1207e6f6bc38ba6e1f1de36cb48fef07b2728bb896a21f430/cffi-2.1.1-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:c26608d2222fb1e94487e4a387d85f13eb55d5ed725cb25a0c589ac4ee60e7bc", size = 188464, upload-time = "2026-08-03T21:21:01.163Z" }, + { url = "https://files.pythonhosted.org/packages/7e/ae/a56fa8c4686ad50e148fcbc8d3ae0d03915ff5c30d795058988c24118cef/cffi-2.1.1-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:4be96343e422f2dfcd12ab5c9f5aebe03f82f737c6bffeca6830b3875cb44aab", size = 188262, upload-time = "2026-08-03T21:21:02.382Z" }, + { url = "https://files.pythonhosted.org/packages/53/b2/6187f46f2912276a3ae284076109cc5c8680482f11f766ccf26db4a86427/cffi-2.1.1-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:937c0052c05a31ca1daf18de3158eed4dbfcb9cc107adbea227728d647be701e", size = 223779, upload-time = "2026-08-03T21:21:03.553Z" }, + { url = "https://files.pythonhosted.org/packages/8a/f6/c3ad28bd19f77047a03084424fbd4cbe997303267c14423737324be0385d/cffi-2.1.1-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:df423d40ee8654634421812bc3b196da3f9bd7d32929da813f8394c4348a5358", size = 211520, upload-time = "2026-08-03T21:21:04.863Z" }, + { url = "https://files.pythonhosted.org/packages/a0/cd/ccac9013a5bd9fd764de118674ab9c805b5ca10c19270d90ee273f8b2240/cffi-2.1.1-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:a730a083190634c65cca36ba5f489531576ebd79bcd5c8e172130f6453127231", size = 210673, upload-time = "2026-08-03T21:21:06.223Z" }, + { url = "https://files.pythonhosted.org/packages/52/86/2976131c639aead931c5bee5aba67e4b09fbeb8018b6f282f70803f923a7/cffi-2.1.1-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:363e05fa78e15116c3c32c210ee36884fd6b9afa6d440e47112c3bd511d64cb6", size = 223835, upload-time = "2026-08-03T21:21:07.539Z" }, + { url = "https://files.pythonhosted.org/packages/ac/0c/33a7aeab2f9c76918c52e084beb39c570db3588133412929e8ec06fab90b/cffi-2.1.1-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:770de9db11e84213beec501cfcaa013b019820ca881e03344dea5844f7876d94", size = 226705, upload-time = "2026-08-03T21:21:08.774Z" }, + { url = "https://files.pythonhosted.org/packages/e3/26/2cde30fdde421130bfc18f70395731a6e6b2053c6a1978a5258ff04e72fa/cffi-2.1.1-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:7da0c5eff80f0197f3b3d1232ec5a682a9325f4ae9016a78f5f5ca35f9ced1f5", size = 225539, upload-time = "2026-08-03T21:21:09.911Z" }, + { url = "https://files.pythonhosted.org/packages/6d/cd/a361394c94b2129d604bb846f624a8e88255a3ee33129c434a00d715e64f/cffi-2.1.1-cp315-cp315t-win32.whl", hash = "sha256:06c72bb76605a4b0cd0aad6930b69d4baf7dd5d806cfc409b824191099700e66", size = 182707, upload-time = "2026-08-03T21:21:11.226Z" }, + { url = "https://files.pythonhosted.org/packages/9b/b5/ba2b299993c26577d529b6ae29841f9e15b9fcf004d65f423f4fcf94ade9/cffi-2.1.1-cp315-cp315t-win_amd64.whl", hash = "sha256:d9c275eaacd24aa73f94ffd6de08fc3f932424d8b6c376f4bed7cde376fe7bc3", size = 193772, upload-time = "2026-08-03T21:21:12.39Z" }, + { url = "https://files.pythonhosted.org/packages/aa/29/35e016098c814cd93de9cd320c66b5bfba14dc6ecedd3cb518fa7c408c69/cffi-2.1.1-cp315-cp315t-win_arm64.whl", hash = "sha256:d18e5ac0f2f03f4f518d3e23db0f0cad7faa1da8620e9c09461d443bbf6e6692", size = 186360, upload-time = "2026-08-03T21:21:13.636Z" }, +] + +[[package]] +name = "click" +version = "8.5.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/c7/0e/7fa0ef50764b67090eca4114772a2abf8b6148198475e54c660b97caeee6/click-8.5.0.tar.gz", hash = "sha256:ba0d2089de75ea0310e2dde03160e6ca10009947fb95a182f9b54021bb272e34", size = 382235, upload-time = "2026-08-26T13:33:14.56Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/58/50/6c0d534c5f134586a8e1ba4e330569e32f057e33372ae556463212fb4cd3/click-8.5.0-py3-none-any.whl", hash = "sha256:255bc9599cf7748b4b1a446ccc735421bd08a2ae529a8b88597d3de5664ee360", size = 125251, upload-time = "2026-08-26T13:33:12.928Z" }, +] + +[[package]] +name = "colorama" +version = "0.4.6" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" }, +] + +[[package]] +name = "cryptography" +version = "50.0.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "cffi", marker = "platform_python_implementation != 'PyPy'" }, + { name = "typing-extensions", marker = "python_full_version < '3.11'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/bb/ad/5d6702db60b1e40b41ef513b6967ff5848f307d50f8449baf1634f5908f1/cryptography-50.0.1.tar.gz", hash = "sha256:5dd9bda1c12b4162f6ff568eeb5e0ff956c28d14406e875cfe8a63a2d414ff20", size = 880381, upload-time = "2026-08-25T19:45:45.499Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ba/19/797e2aaac9df6a66f1550f49979dc1b1e39ecd2077501c30efa81e8d5d67/cryptography-50.0.1-cp311-abi3-macosx_11_0_arm64.whl", hash = "sha256:b8f852c65863251b9e3a1b8c150ce21e59b522dbb6a7d4bc80e680d38388e986", size = 4010153, upload-time = "2026-08-25T19:44:03.155Z" }, + { url = "https://files.pythonhosted.org/packages/90/34/9ce9a62ed9dc82ca9fd6a34445b6904af56e5f38b3eae2ed32e49c36053d/cryptography-50.0.1-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:53e279950892dc102c6b4e52af03ae5ea92fac572a1ddab78ca73a997f62b69f", size = 4723133, upload-time = "2026-08-25T19:44:05.461Z" }, + { url = "https://files.pythonhosted.org/packages/57/26/e6d4fc8512a51a5f9ee7bfdbfb853bce1197087df40c9ad993ad370b846f/cryptography-50.0.1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:ff838d62ec1bfce4f9ba7fa16f4a7b554cd8d0c299e6be37502161a660c84eef", size = 4712478, upload-time = "2026-08-25T19:44:07.375Z" }, + { url = "https://files.pythonhosted.org/packages/e6/de/d3cdc2815697aae84126cbd6a030ca7b6b452e28a88b501b836bd3aa7a86/cryptography-50.0.1-cp311-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:e74591e283fe6eb956416c929eb58262a719fe0311fd9054c62c3350ed8760d8", size = 4730726, upload-time = "2026-08-25T19:44:09.294Z" }, + { url = "https://files.pythonhosted.org/packages/55/32/38c0d344b98c06d34b5df8946565a9c0d6dbf32c8e0730a7f05f0a3c6cab/cryptography-50.0.1-cp311-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:5fe002589592ed749ce77fe0695fcbd3500dd61d7d6db5858a7544c612fa8e45", size = 5353524, upload-time = "2026-08-25T19:44:11.96Z" }, + { url = "https://files.pythonhosted.org/packages/e1/1b/82f0f0d8858d4432be1af790477edf62aef90324041aa07c57e57bef1af7/cryptography-50.0.1-cp311-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:51593d180cf6d179bde5c5d065bed81386b1f381656ae7d042b7ffc87a9895ad", size = 4746720, upload-time = "2026-08-25T19:44:14.051Z" }, + { url = "https://files.pythonhosted.org/packages/29/ba/042ca458b8c64348c768284b5d23e69b92ed53d057ab779fee628564676d/cryptography-50.0.1-cp311-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:359e62deae718bce96170e223fdcb6357e4fbd3bb7a3a75f4430763532560e49", size = 4361866, upload-time = "2026-08-25T19:44:16.167Z" }, + { url = "https://files.pythonhosted.org/packages/39/3b/e96c1ef71edef71057c7e3c3d982ce8fda554e0c52d0cc19c18845cde3eb/cryptography-50.0.1-cp311-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:e2ca8fd1b6b4b82a1c4cb02841d0837e3c12336c2e24b520ab8ab3b969733d8f", size = 4730028, upload-time = "2026-08-25T19:44:18.085Z" }, + { url = "https://files.pythonhosted.org/packages/e3/38/45abd72ef63f2e7d0754a6cacf97bd8b69512ace7f6130d24c39ece65da2/cryptography-50.0.1-cp311-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:76de83fbd91ac49c0feaaa983d0748fd7a53176afac5fb3bf7478d244f0eb527", size = 5308405, upload-time = "2026-08-25T19:44:20.197Z" }, + { url = "https://files.pythonhosted.org/packages/85/66/6ccca4722987ddedaa7fc9c3f4708af7431f5535666c174350830888c6b7/cryptography-50.0.1-cp311-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:51afcfceb15597cf2635068e4ac9a56b2abde622edde17f37d85fd7b5306497a", size = 4746230, upload-time = "2026-08-25T19:44:22.376Z" }, + { url = "https://files.pythonhosted.org/packages/13/0e/b1f92e013228111413f2e6743948b80bc24dfd3c1b87ba98ceea16f5df89/cryptography-50.0.1-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:be224a65493ec5b74a158ff22a5522ce4a5ca1e543c647a3a4730d4a09e5f959", size = 4862596, upload-time = "2026-08-25T19:44:24.472Z" }, + { url = "https://files.pythonhosted.org/packages/7e/22/c3654cccc856e9d682817b04ac3ee79731cb09ca6f95996a95c904de2883/cryptography-50.0.1-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:9ebcdd5519be9b652a46f507817a74591774fc3d6923ac364e4dfa64e36b291b", size = 5014082, upload-time = "2026-08-25T19:44:26.709Z" }, + { url = "https://files.pythonhosted.org/packages/42/8b/cb12b1b60c91b074ca6bf0fdd59aa8f10d8bc5f73af8faece86ef0421b37/cryptography-50.0.1-cp311-abi3-win_amd64.whl", hash = "sha256:aed8db4f6d71c51efb89530e12d9464e7bf2923d46c3205dc794a2a93f8c0648", size = 3842826, upload-time = "2026-08-25T19:44:28.784Z" }, + { url = "https://files.pythonhosted.org/packages/5b/f0/424cb557d99aa86ac55da5e2add02e2882e44047b6264f93ade1b975a993/cryptography-50.0.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:30a125032e5642a21ff816e021152bd4e7e94f03eff3f4b7fca41cd22bc3110f", size = 3973525, upload-time = "2026-08-25T19:44:30.7Z" }, + { url = "https://files.pythonhosted.org/packages/4d/72/3a2711d967977ab5fc80b782837c7e8d1ac7445e764c20c381a265c57ef3/cryptography-50.0.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:a0b1a59e3a089064a0ec309e9428c8e3ae4e161419d20ac33600767e83fc658a", size = 4708817, upload-time = "2026-08-25T19:44:32.773Z" }, + { url = "https://files.pythonhosted.org/packages/b4/f2/bb1f56e10815b789df0b409a69fa4992ff3d3fef9c72747f4a6b26fed38e/cryptography-50.0.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:8921d58f426793c5f1b47f0b59575780de9a095214958d0eb37d909593db8367", size = 4697300, upload-time = "2026-08-25T19:44:35.144Z" }, + { url = "https://files.pythonhosted.org/packages/08/bd/ed5396be499ffcf8807a585bfe38b71a1fbdd1c342b4f9b6d0ef5162a946/cryptography-50.0.1-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:a8f40ea47330e71b594a7e246898f93177c259490c63183dbaf9e571d71ed9a5", size = 4716039, upload-time = "2026-08-25T19:44:37.192Z" }, + { url = "https://files.pythonhosted.org/packages/f6/6e/1cf405c5c8e8df7545378048e954792f00b7f2367af8863ce8b8f3e10607/cryptography-50.0.1-cp314-cp314t-manylinux_2_28_ppc64le.whl", hash = "sha256:a255449073358275b64b67d3f595f268bbef70e72b6edb65e0c70c735bf739c9", size = 5332388, upload-time = "2026-08-25T19:44:39.16Z" }, + { url = "https://files.pythonhosted.org/packages/47/92/b4317e8c32c4f47b062f5398bd79106b220a124546f42be83bf32b761e2a/cryptography-50.0.1-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:8df2de9102026855887e4587084f6eabd80ed0f345b8ad8a7ac27ab9bf4723e0", size = 4730293, upload-time = "2026-08-25T19:44:41.298Z" }, + { url = "https://files.pythonhosted.org/packages/39/0d/a1e7633e2c744d0f2983320a27e924ef2264c79c56e1a58d5fb0a1cfd413/cryptography-50.0.1-cp314-cp314t-manylinux_2_31_armv7l.whl", hash = "sha256:ac02b07824d4d1001bd4367599f839c19cb171924c796e52c23508ac14c2c0cc", size = 4346031, upload-time = "2026-08-25T19:44:43.245Z" }, + { url = "https://files.pythonhosted.org/packages/88/dd/b215616f9bab3fc18510c78a4e5c9f362d77838503c363dc747c7d4f5c6f/cryptography-50.0.1-cp314-cp314t-manylinux_2_34_aarch64.whl", hash = "sha256:cbf74a81765ee67413503ca6e26dcc4f6f5a519822436cc0a1b97aab6c1b8a17", size = 4715344, upload-time = "2026-08-25T19:44:45.291Z" }, + { url = "https://files.pythonhosted.org/packages/b1/1b/ec3ebd31741d0e963612c4fe43caa39341b9b1e031e469820e42e4c83918/cryptography-50.0.1-cp314-cp314t-manylinux_2_34_ppc64le.whl", hash = "sha256:16c5ecd954b3330ebfb6605eca4fd952da8bef376551d5cc264534e3770a9ee6", size = 5287201, upload-time = "2026-08-25T19:44:47.297Z" }, + { url = "https://files.pythonhosted.org/packages/1a/01/0127d11a762b31a9ee0221894f540318761783f3fdc4bc5d057698caebd5/cryptography-50.0.1-cp314-cp314t-manylinux_2_34_x86_64.whl", hash = "sha256:79bf008d1f9af6071c797ad133e39915dfee7614f18f18f4db9072eb715064a3", size = 4730023, upload-time = "2026-08-25T19:44:49.435Z" }, + { url = "https://files.pythonhosted.org/packages/9e/b9/e7425ebfb599241a0c1d7000f1b466c3062da66c19d9525031315dff7213/cryptography-50.0.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:330fbb252391c596f1ae42c5754449dc924e6ad012dca8efe0d703f9f2d12ec6", size = 4847362, upload-time = "2026-08-25T19:44:51.94Z" }, + { url = "https://files.pythonhosted.org/packages/2d/fd/60d0ddf4defa12e482c9d5e0f554384d6e8ab25341fd15f060028fd92e6a/cryptography-50.0.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:42be3bb70596b3abe4ac097b75be223e8b3ab614a0e5de068e3dcc54d71d6149", size = 4999247, upload-time = "2026-08-25T19:44:53.876Z" }, + { url = "https://files.pythonhosted.org/packages/4d/56/bc4f2b209e766c93372cfcd59b781a0b2b59700f62a969580415b699c2b2/cryptography-50.0.1-cp314-cp314t-win_amd64.whl", hash = "sha256:f74455bb086a85d5e81246412602aaa97ed095e504cd40dd261ef50be42205bf", size = 3825806, upload-time = "2026-08-25T19:44:56.209Z" }, + { url = "https://files.pythonhosted.org/packages/84/a9/ee16a903f13755e914d1eecc482fe64d1f10761c3960e5d8fa6837377aff/cryptography-50.0.1-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:ca83d00d9e69cd5eb63f2e69c3a5a59e0cecae5ae14c6ae0b35830fe3b37bad0", size = 4035307, upload-time = "2026-08-25T19:44:58.305Z" }, + { url = "https://files.pythonhosted.org/packages/5e/a5/9ec7e81e8526c0d7a387d73386b2daed3f39e10d81a85930bd1b6bfba65c/cryptography-50.0.1-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:05ba322c4da95b262a212c345af888ef2c37c88c0509756ea00a0e6d68850f23", size = 4751900, upload-time = "2026-08-25T19:45:00.401Z" }, + { url = "https://files.pythonhosted.org/packages/7e/3c/0e77bd5ffcf078e9dd27d3074aad6c030d9b10d0bf69329d573c927a188c/cryptography-50.0.1-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:e22dfed744bd4002e909464cb23d2f0b05c6f3113a79ef2e9864a53db737c733", size = 4738357, upload-time = "2026-08-25T19:45:02.786Z" }, + { url = "https://files.pythonhosted.org/packages/27/3a/3c5f80daa4dcd47323c7af8a2fcb90de27a33564d4fcac69846c0972691a/cryptography-50.0.1-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:4c4188f7c0cf655be5c06342b817ed0f9595b69ffa2b12026e5353eed29dea88", size = 4758474, upload-time = "2026-08-25T19:45:04.889Z" }, + { url = "https://files.pythonhosted.org/packages/6e/2b/214cf0cf93db9628c3c20c896b229f327f6fb1b20e4b3743d8ad3f00af8b/cryptography-50.0.1-cp39-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:2ebbfb0f1fed745e91796e3e1080a1440423fdae8ece1b995a1d80883a409054", size = 5375862, upload-time = "2026-08-25T19:45:07.163Z" }, + { url = "https://files.pythonhosted.org/packages/d6/51/3f9701867a46b6c1740c9b52fc4d3bed6cbdcfedcc9b6e64305c07f39cff/cryptography-50.0.1-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:407fe2b6db00939c05c0e945e9914238f2f0a430974839429dafc82b1ee6bee5", size = 4772942, upload-time = "2026-08-25T19:45:09.396Z" }, + { url = "https://files.pythonhosted.org/packages/0d/5c/13ea642e08e2544d0f5396122055f4820cfacb3203562197b5967125ea97/cryptography-50.0.1-cp39-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:2b34d76a652ea2b6faf777c35df230c5637842cd904e04f16230c3f9f03e4361", size = 4383347, upload-time = "2026-08-25T19:45:11.659Z" }, + { url = "https://files.pythonhosted.org/packages/84/d5/7d1fe1cb93f91c428093ff234e128c89ba8ea61a6f26aab406081f9b996e/cryptography-50.0.1-cp39-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:01f41478cf33fc605a6a089cd56d28b45c6c0b45a1928b61797f2621a04bac71", size = 4758050, upload-time = "2026-08-25T19:45:13.745Z" }, + { url = "https://files.pythonhosted.org/packages/dd/04/557fc5ead96a829e0bc812a3b9dc4a52a2f27e4f7f5950da7ff27653a805/cryptography-50.0.1-cp39-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:fc3ed7ebd2a8c96f5b166de0ab9b624996bef3b07bbeb19364dfb78222c22c80", size = 5332955, upload-time = "2026-08-25T19:45:16.193Z" }, + { url = "https://files.pythonhosted.org/packages/8c/eb/5d7124083e8d8cda8f5b348f544b71ad6f707ad63193758ef4d8e569da02/cryptography-50.0.1-cp39-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:9dde0a357190eb3b1da1bb9ab750e9c85cba82ca5977aa0836cbb94e92611239", size = 4772694, upload-time = "2026-08-25T19:45:18.315Z" }, + { url = "https://files.pythonhosted.org/packages/63/8e/f1f955e0921dd2b6d22eae7e8d24a4c4b638d10735ffbf6a71f99eb0fcb8/cryptography-50.0.1-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:fd3718b960d0b5dd213cdf03f3bcb7000e69dda0de8b956061947ff6bcff5558", size = 4888413, upload-time = "2026-08-25T19:45:20.4Z" }, + { url = "https://files.pythonhosted.org/packages/1f/ab/89e2b798d2c3925f82e2bb72d5979f3d2f6da2dd22ef4a8cd8b70d920039/cryptography-50.0.1-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:2a93d05e34d5f67fba6f891fe85d929999baa7195e853923ea6d7576c9e68c5e", size = 5044355, upload-time = "2026-08-25T19:45:22.353Z" }, + { url = "https://files.pythonhosted.org/packages/99/89/87ef49ffe383ef4e147d27b7bf2088fb0b54ea409dd87b5a89442e5828a5/cryptography-50.0.1-cp39-abi3-win_amd64.whl", hash = "sha256:55d16b1ef3ee0958d893a977b19777887e546c9954ea81b200c3301a864013f2", size = 3875429, upload-time = "2026-08-25T19:45:24.418Z" }, + { url = "https://files.pythonhosted.org/packages/c7/27/8d207af749c453ee17ea087340b3f2b4adef75aadd1d277b1b129bdda84e/cryptography-50.0.1-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:9cb3cb952cf5a8abd50c782a98a89d71699715e802fe349704b47f2425b42a94", size = 3974350, upload-time = "2026-08-25T19:45:26.551Z" }, + { url = "https://files.pythonhosted.org/packages/14/9a/6d3a4d7852e22d657438b7bf51f66102c7d71c0e1fafeec652281d0403e5/cryptography-50.0.1-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:5fe939deeb161024a6be98229c953b6591fef1f41214497a78fe793a244c017f", size = 4698675, upload-time = "2026-08-25T19:45:28.658Z" }, + { url = "https://files.pythonhosted.org/packages/73/35/5c3717edf9e68a0550ce04e28eab493fe545eccd81742af03f6a75fe260b/cryptography-50.0.1-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:fb4b9672d389c738b175c4166e78310f8a70358886aacd9173ee03a85ffdc671", size = 4707410, upload-time = "2026-08-25T19:45:30.816Z" }, + { url = "https://files.pythonhosted.org/packages/1d/e0/e786934472e3ac4ecdecc7b129a0ca1a2a40dffdafcf2c3ea9d4397f8def/cryptography-50.0.1-pp311-pypy311_pp73-manylinux_2_34_aarch64.whl", hash = "sha256:d63ae8f6481fec907ac0f588eee8a90aefde112c633131fe540e5711ddbb5a4e", size = 4698378, upload-time = "2026-08-25T19:45:33.043Z" }, + { url = "https://files.pythonhosted.org/packages/51/cf/5b3f53a0b74d122f023476ede40ba5d3e70d5cf475f73b899740d26a4fb2/cryptography-50.0.1-pp311-pypy311_pp73-manylinux_2_34_x86_64.whl", hash = "sha256:804728ce710890870f3aaa344b2e161172d258d768ac139d02cfd9092d0d94e6", size = 4706889, upload-time = "2026-08-25T19:45:35.086Z" }, + { url = "https://files.pythonhosted.org/packages/71/44/711e61f7d014be825ef79b285b047292d1bf893732ac1bc030a351fb517f/cryptography-50.0.1-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:693c99b49bd37d0d096e4334c10232c77248c415b98d35236094cdf96d57258b", size = 3824006, upload-time = "2026-08-25T19:45:37.281Z" }, +] + +[[package]] +name = "datamodel-code-generator" +version = "0.83.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "argcomplete" }, + { name = "black", marker = "sys_platform != 'emscripten'" }, + { name = "genson" }, + { name = "inflect" }, + { name = "isort", marker = "sys_platform != 'emscripten'" }, + { name = "jinja2" }, + { name = "pydantic" }, + { name = "pyyaml" }, + { name = "tomli", marker = "python_full_version < '3.11'" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/cf/ad/bd0c954c4c4671e586b340059139ead38570ba916a237086e245982ab14d/datamodel_code_generator-0.83.0.tar.gz", hash = "sha256:30d841e31b82095c4ef11f3dbfc99525f559a146250b9e685e2a2e4a196ca0a1", size = 3074761, upload-time = "2026-09-24T08:56:40.622Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/3a/4e/4a0231a7d3d4043cd27a746a50be87bc7637463023d7db9991610cd5fe56/datamodel_code_generator-0.83.0-py3-none-any.whl", hash = "sha256:371d80be360b2a57bc48462169553af57fa30225c0264ad85ae5f0d59b9d143a", size = 751087, upload-time = "2026-09-24T08:56:38.791Z" }, +] + +[[package]] +name = "exceptiongroup" +version = "1.3.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/50/79/66800aadf48771f6b62f7eb014e352e5d06856655206165d775e675a02c9/exceptiongroup-1.3.1.tar.gz", hash = "sha256:8b412432c6055b0b7d14c310000ae93352ed6754f70fa8f7c34141f91c4e3219", size = 30371, upload-time = "2025-11-21T23:01:54.787Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/8a/0e/97c33bf5009bdbac74fd2beace167cab3f978feb69cc36f1ef79360d6c4e/exceptiongroup-1.3.1-py3-none-any.whl", hash = "sha256:a7a39a3bd276781e98394987d3a5701d0c4edffb633bb7a5144577f82c773598", size = 16740, upload-time = "2025-11-21T23:01:53.443Z" }, +] + +[[package]] +name = "genson" +version = "1.4.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f8/53/de162dc8e03fccd9ebe59d17c7812378fe8bd2b604f6b1b94d00165140ac/genson-1.4.0.tar.gz", hash = "sha256:bc7f1c1bae87a21ca44d81149aec95a3f4468d676de9b8b08caa064f3c50b3da", size = 47908, upload-time = "2026-07-06T08:21:50.331Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/16/02/767f744ab6d4cb7761e5008acc3d534b7a0481af62563d52e391fbcb2140/genson-1.4.0-py3-none-any.whl", hash = "sha256:03bc71bbe52defde70660cc4dcd1ea1097997da5a1cbb90a9dbd3acc7c9e1b65", size = 24484, upload-time = "2026-07-06T08:21:49.046Z" }, +] + +[[package]] +name = "h11" +version = "0.16.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/01/ee/02a2c011bdab74c6fb3c75474d40b3052059d95df7e73351460c8588d963/h11-0.16.0.tar.gz", hash = "sha256:4e35b956cf45792e4caa5885e69fba00bdbc6ffafbfa020300e549b208ee5ff1", size = 101250, upload-time = "2025-04-24T03:35:25.427Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/04/4b/29cac41a4d98d144bf5f6d33995617b185d14b22401f75ca86f384e87ff1/h11-0.16.0-py3-none-any.whl", hash = "sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86", size = 37515, upload-time = "2025-04-24T03:35:24.344Z" }, +] + +[[package]] +name = "httpcore" +version = "1.0.9" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "certifi" }, + { name = "h11" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/06/94/82699a10bca87a5556c9c59b5963f2d039dbd239f25bc2a63907a05a14cb/httpcore-1.0.9.tar.gz", hash = "sha256:6e34463af53fd2ab5d807f399a9b45ea31c3dfa2276f15a2c3f00afff6e176e8", size = 85484, upload-time = "2025-04-24T22:06:22.219Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7e/f5/f66802a942d491edb555dd61e3a9961140fd64c90bce1eafd741609d334d/httpcore-1.0.9-py3-none-any.whl", hash = "sha256:2d400746a40668fc9dec9810239072b40b4484b640a8c38fd654a024c7a1bf55", size = 78784, upload-time = "2025-04-24T22:06:20.566Z" }, +] + +[[package]] +name = "httpcore2" +version = "2.13.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "h11" }, + { name = "truststore" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/cb/f3/1db7aa2bc2524062192bb0e0323969492d1883152a232fe36eea65f4e35c/httpcore2-2.13.1.tar.gz", hash = "sha256:e0aa977abe17e69a3b820a24542a6fa88702676d83880b8d194dcd18408e5103", size = 68071, upload-time = "2026-09-23T07:47:22.372Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/09/ba/a4568248771ce81957bfb7cc600264a40fbcda092391ee1c415c50be4bea/httpcore2-2.13.1-py3-none-any.whl", hash = "sha256:e1e05d4f25f7d7d496bfb96748f6f4b67657b03da069b3a68c36069f3db73d0a", size = 83423, upload-time = "2026-09-23T07:47:19.365Z" }, +] + +[[package]] +name = "httpx" +version = "0.28.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "anyio" }, + { name = "certifi" }, + { name = "httpcore" }, + { name = "idna" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/b1/df/48c586a5fe32a0f01324ee087459e112ebb7224f646c0b5023f5e79e9956/httpx-0.28.1.tar.gz", hash = "sha256:75e98c5f16b0f35b567856f597f06ff2270a374470a5c2392242528e3e3e42fc", size = 141406, upload-time = "2024-12-06T15:37:23.222Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2a/39/e50c7c3a983047577ee07d2a9e53faf5a69493943ec3f6a384bdc792deb2/httpx-0.28.1-py3-none-any.whl", hash = "sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad", size = 73517, upload-time = "2024-12-06T15:37:21.509Z" }, +] + +[[package]] +name = "httpx2" +version = "2.13.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "anyio", marker = "sys_platform != 'emscripten'" }, + { name = "httpcore2", marker = "sys_platform != 'emscripten'" }, + { name = "httpx2-jsfetch", marker = "python_full_version >= '3.12' and sys_platform == 'emscripten'" }, + { name = "idna" }, + { name = "truststore", marker = "sys_platform != 'emscripten'" }, + { name = "typing-extensions", marker = "python_full_version < '3.13'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/d5/44/474bef2a0e9d90f1715d32cb98b0738695ca17ba324095fb2497ed7fbd59/httpx2-2.13.1.tar.gz", hash = "sha256:e48744a19e3af5ee48313d0ce5fe941d5422fae5705ea922a4aabf94d7800dfa", size = 100405, upload-time = "2026-09-23T07:47:23.052Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d8/9c/6fe8931fd9f381042a9e4c7d5a7b4cbf7016b252bec0c99a49fce42c3326/httpx2-2.13.1-py3-none-any.whl", hash = "sha256:6dff50fabc270ee5fd25d845d0b078ed20564579744d6d962850975996d2f9a4", size = 95597, upload-time = "2026-09-23T07:47:20.995Z" }, +] + +[[package]] +name = "httpx2-jsfetch" +version = "1.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/cd/c4/0e5636363151a2a1795e0a77617168b9ca438e1748ec05fc9b5687f93d64/httpx2_jsfetch-1.0.tar.gz", hash = "sha256:70a0e3eabfef7cce5ad9c629f7d01ca05e418f586646f4ddf14782e4c1454c60", size = 6872, upload-time = "2026-08-07T00:13:07.492Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/9b/43/832f631d32e4f1211caa2ba368317739fe71f0b8530e4c9d15dc454bac2a/httpx2_jsfetch-1.0-py3-none-any.whl", hash = "sha256:cb916b707601e69a07721aabc8f3f6659be3a6893bc1ff5c6f9e02241df2da32", size = 6382, upload-time = "2026-08-07T00:13:06.567Z" }, +] + +[[package]] +name = "idna" +version = "3.20" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f5/08/8eea9d4b8302028f3abb2c0813953f7aec26d33b7a8960ed760e65ff29fa/idna-3.20.tar.gz", hash = "sha256:a7db850025b95ded1eae8a46181a1a6c56c92c96f0e2b005d9ff8dc0210cab44", size = 216463, upload-time = "2026-09-17T14:11:04.752Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/58/a2/bb081bab032533a855d44de1d56f8e8426114ff1ba5d1f07a438a0a654f8/idna-3.20-py3-none-any.whl", hash = "sha256:ab7ae7122974553370f0bdb919e1a960b2cd1bc1ef0276416d896db81c14582c", size = 69583, upload-time = "2026-09-17T14:11:03.168Z" }, +] + +[[package]] +name = "inflect" +version = "7.5.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "more-itertools" }, + { name = "typeguard" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/78/c6/943357d44a21fd995723d07ccaddd78023eace03c1846049a2645d4324a3/inflect-7.5.0.tar.gz", hash = "sha256:faf19801c3742ed5a05a8ce388e0d8fe1a07f8d095c82201eb904f5d27ad571f", size = 73751, upload-time = "2024-12-28T17:11:18.897Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/8a/eb/427ed2b20a38a4ee29f24dbe4ae2dafab198674fe9a85e3d6adf9e5f5f41/inflect-7.5.0-py3-none-any.whl", hash = "sha256:2aea70e5e70c35d8350b8097396ec155ffd68def678c7ff97f51aa69c1d92344", size = 35197, upload-time = "2024-12-28T17:11:15.931Z" }, +] + +[[package]] +name = "iniconfig" +version = "2.3.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/72/34/14ca021ce8e5dfedc35312d08ba8bf51fdd999c576889fc2c24cb97f4f10/iniconfig-2.3.0.tar.gz", hash = "sha256:c76315c77db068650d49c5b56314774a7804df16fee4402c1f19d6d15d8c4730", size = 20503, upload-time = "2025-10-18T21:55:43.219Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/cb/b1/3846dd7f199d53cb17f49cba7e651e9ce294d8497c8c150530ed11865bb8/iniconfig-2.3.0-py3-none-any.whl", hash = "sha256:f631c04d2c48c52b84d0d0549c99ff3859c98df65b3101406327ecc7d53fbf12", size = 7484, upload-time = "2025-10-18T21:55:41.639Z" }, +] + +[[package]] +name = "isort" +version = "8.0.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/ef/7c/ec4ab396d31b3b395e2e999c8f46dec78c5e29209fac49d1f4dace04041d/isort-8.0.1.tar.gz", hash = "sha256:171ac4ff559cdc060bcfff550bc8404a486fee0caab245679c2abe7cb253c78d", size = 769592, upload-time = "2026-02-28T10:08:20.685Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/3e/95/c7c34aa53c16353c56d0b802fba48d5f5caa2cdee7958acbcb795c830416/isort-8.0.1-py3-none-any.whl", hash = "sha256:28b89bc70f751b559aeca209e6120393d43fbe2490de0559662be7a9787e3d75", size = 89733, upload-time = "2026-02-28T10:08:19.466Z" }, +] + +[[package]] +name = "jinja2" +version = "3.1.6" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "markupsafe" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/df/bf/f7da0350254c0ed7c72f3e33cef02e048281fec7ecec5f032d4aac52226b/jinja2-3.1.6.tar.gz", hash = "sha256:0137fb05990d35f1275a587e9aee6d56da821fc83491a0fb838183be43f66d6d", size = 245115, upload-time = "2025-03-05T20:05:02.478Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/62/a1/3d680cbfd5f4b8f15abc1d571870c5fc3e594bb582bc3b64ea099db13e56/jinja2-3.1.6-py3-none-any.whl", hash = "sha256:85ece4451f492d0c13c5dd7c13a64681a86afae63a5f347908daf103ce6d2f67", size = 134899, upload-time = "2025-03-05T20:05:00.369Z" }, +] + +[[package]] +name = "jsonschema" +version = "4.26.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "attrs" }, + { name = "jsonschema-specifications" }, + { name = "referencing" }, + { name = "rpds-py", version = "0.30.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" }, + { name = "rpds-py", version = "2026.6.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/b3/fc/e067678238fa451312d4c62bf6e6cf5ec56375422aee02f9cb5f909b3047/jsonschema-4.26.0.tar.gz", hash = "sha256:0c26707e2efad8aa1bfc5b7ce170f3fccc2e4918ff85989ba9ffa9facb2be326", size = 366583, upload-time = "2026-01-07T13:41:07.246Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/69/90/f63fb5873511e014207a475e2bb4e8b2e570d655b00ac19a9a0ca0a385ee/jsonschema-4.26.0-py3-none-any.whl", hash = "sha256:d489f15263b8d200f8387e64b4c3a75f06629559fb73deb8fdfb525f2dab50ce", size = 90630, upload-time = "2026-01-07T13:41:05.306Z" }, +] + +[[package]] +name = "jsonschema-specifications" +version = "2025.9.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "referencing" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/19/74/a633ee74eb36c44aa6d1095e7cc5569bebf04342ee146178e2d36600708b/jsonschema_specifications-2025.9.1.tar.gz", hash = "sha256:b540987f239e745613c7a9176f3edb72b832a4ac465cf02712288397832b5e8d", size = 32855, upload-time = "2025-09-08T01:34:59.186Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/41/45/1a4ed80516f02155c51f51e8cedb3c1902296743db0bbc66608a0db2814f/jsonschema_specifications-2025.9.1-py3-none-any.whl", hash = "sha256:98802fee3a11ee76ecaca44429fda8a41bff98b00a0f2838151b113f210cc6fe", size = 18437, upload-time = "2025-09-08T01:34:57.871Z" }, +] + +[[package]] +name = "markupsafe" +version = "3.0.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/7e/99/7690b6d4034fffd95959cbe0c02de8deb3098cc577c67bb6a24fe5d7caa7/markupsafe-3.0.3.tar.gz", hash = "sha256:722695808f4b6457b320fdc131280796bdceb04ab50fe1795cd540799ebe1698", size = 80313, upload-time = "2025-09-27T18:37:40.426Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e8/4b/3541d44f3937ba468b75da9eebcae497dcf67adb65caa16760b0a6807ebb/markupsafe-3.0.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:2f981d352f04553a7171b8e44369f2af4055f888dfb147d55e42d29e29e74559", size = 11631, upload-time = "2025-09-27T18:36:05.558Z" }, + { url = "https://files.pythonhosted.org/packages/98/1b/fbd8eed11021cabd9226c37342fa6ca4e8a98d8188a8d9b66740494960e4/markupsafe-3.0.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:e1c1493fb6e50ab01d20a22826e57520f1284df32f2d8601fdd90b6304601419", size = 12057, upload-time = "2025-09-27T18:36:07.165Z" }, + { url = "https://files.pythonhosted.org/packages/40/01/e560d658dc0bb8ab762670ece35281dec7b6c1b33f5fbc09ebb57a185519/markupsafe-3.0.3-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1ba88449deb3de88bd40044603fafffb7bc2b055d626a330323a9ed736661695", size = 22050, upload-time = "2025-09-27T18:36:08.005Z" }, + { url = "https://files.pythonhosted.org/packages/af/cd/ce6e848bbf2c32314c9b237839119c5a564a59725b53157c856e90937b7a/markupsafe-3.0.3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f42d0984e947b8adf7dd6dde396e720934d12c506ce84eea8476409563607591", size = 20681, upload-time = "2025-09-27T18:36:08.881Z" }, + { url = "https://files.pythonhosted.org/packages/c9/2a/b5c12c809f1c3045c4d580b035a743d12fcde53cf685dbc44660826308da/markupsafe-3.0.3-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c0c0b3ade1c0b13b936d7970b1d37a57acde9199dc2aecc4c336773e1d86049c", size = 20705, upload-time = "2025-09-27T18:36:10.131Z" }, + { url = "https://files.pythonhosted.org/packages/cf/e3/9427a68c82728d0a88c50f890d0fc072a1484de2f3ac1ad0bfc1a7214fd5/markupsafe-3.0.3-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:0303439a41979d9e74d18ff5e2dd8c43ed6c6001fd40e5bf2e43f7bd9bbc523f", size = 21524, upload-time = "2025-09-27T18:36:11.324Z" }, + { url = "https://files.pythonhosted.org/packages/bc/36/23578f29e9e582a4d0278e009b38081dbe363c5e7165113fad546918a232/markupsafe-3.0.3-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:d2ee202e79d8ed691ceebae8e0486bd9a2cd4794cec4824e1c99b6f5009502f6", size = 20282, upload-time = "2025-09-27T18:36:12.573Z" }, + { url = "https://files.pythonhosted.org/packages/56/21/dca11354e756ebd03e036bd8ad58d6d7168c80ce1fe5e75218e4945cbab7/markupsafe-3.0.3-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:177b5253b2834fe3678cb4a5f0059808258584c559193998be2601324fdeafb1", size = 20745, upload-time = "2025-09-27T18:36:13.504Z" }, + { url = "https://files.pythonhosted.org/packages/87/99/faba9369a7ad6e4d10b6a5fbf71fa2a188fe4a593b15f0963b73859a1bbd/markupsafe-3.0.3-cp310-cp310-win32.whl", hash = "sha256:2a15a08b17dd94c53a1da0438822d70ebcd13f8c3a95abe3a9ef9f11a94830aa", size = 14571, upload-time = "2025-09-27T18:36:14.779Z" }, + { url = "https://files.pythonhosted.org/packages/d6/25/55dc3ab959917602c96985cb1253efaa4ff42f71194bddeb61eb7278b8be/markupsafe-3.0.3-cp310-cp310-win_amd64.whl", hash = "sha256:c4ffb7ebf07cfe8931028e3e4c85f0357459a3f9f9490886198848f4fa002ec8", size = 15056, upload-time = "2025-09-27T18:36:16.125Z" }, + { url = "https://files.pythonhosted.org/packages/d0/9e/0a02226640c255d1da0b8d12e24ac2aa6734da68bff14c05dd53b94a0fc3/markupsafe-3.0.3-cp310-cp310-win_arm64.whl", hash = "sha256:e2103a929dfa2fcaf9bb4e7c091983a49c9ac3b19c9061b6d5427dd7d14d81a1", size = 13932, upload-time = "2025-09-27T18:36:17.311Z" }, + { url = "https://files.pythonhosted.org/packages/08/db/fefacb2136439fc8dd20e797950e749aa1f4997ed584c62cfb8ef7c2be0e/markupsafe-3.0.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:1cc7ea17a6824959616c525620e387f6dd30fec8cb44f649e31712db02123dad", size = 11631, upload-time = "2025-09-27T18:36:18.185Z" }, + { url = "https://files.pythonhosted.org/packages/e1/2e/5898933336b61975ce9dc04decbc0a7f2fee78c30353c5efba7f2d6ff27a/markupsafe-3.0.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4bd4cd07944443f5a265608cc6aab442e4f74dff8088b0dfc8238647b8f6ae9a", size = 12058, upload-time = "2025-09-27T18:36:19.444Z" }, + { url = "https://files.pythonhosted.org/packages/1d/09/adf2df3699d87d1d8184038df46a9c80d78c0148492323f4693df54e17bb/markupsafe-3.0.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6b5420a1d9450023228968e7e6a9ce57f65d148ab56d2313fcd589eee96a7a50", size = 24287, upload-time = "2025-09-27T18:36:20.768Z" }, + { url = "https://files.pythonhosted.org/packages/30/ac/0273f6fcb5f42e314c6d8cd99effae6a5354604d461b8d392b5ec9530a54/markupsafe-3.0.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0bf2a864d67e76e5c9a34dc26ec616a66b9888e25e7b9460e1c76d3293bd9dbf", size = 22940, upload-time = "2025-09-27T18:36:22.249Z" }, + { url = "https://files.pythonhosted.org/packages/19/ae/31c1be199ef767124c042c6c3e904da327a2f7f0cd63a0337e1eca2967a8/markupsafe-3.0.3-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:bc51efed119bc9cfdf792cdeaa4d67e8f6fcccab66ed4bfdd6bde3e59bfcbb2f", size = 21887, upload-time = "2025-09-27T18:36:23.535Z" }, + { url = "https://files.pythonhosted.org/packages/b2/76/7edcab99d5349a4532a459e1fe64f0b0467a3365056ae550d3bcf3f79e1e/markupsafe-3.0.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:068f375c472b3e7acbe2d5318dea141359e6900156b5b2ba06a30b169086b91a", size = 23692, upload-time = "2025-09-27T18:36:24.823Z" }, + { url = "https://files.pythonhosted.org/packages/a4/28/6e74cdd26d7514849143d69f0bf2399f929c37dc2b31e6829fd2045b2765/markupsafe-3.0.3-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:7be7b61bb172e1ed687f1754f8e7484f1c8019780f6f6b0786e76bb01c2ae115", size = 21471, upload-time = "2025-09-27T18:36:25.95Z" }, + { url = "https://files.pythonhosted.org/packages/62/7e/a145f36a5c2945673e590850a6f8014318d5577ed7e5920a4b3448e0865d/markupsafe-3.0.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:f9e130248f4462aaa8e2552d547f36ddadbeaa573879158d721bbd33dfe4743a", size = 22923, upload-time = "2025-09-27T18:36:27.109Z" }, + { url = "https://files.pythonhosted.org/packages/0f/62/d9c46a7f5c9adbeeeda52f5b8d802e1094e9717705a645efc71b0913a0a8/markupsafe-3.0.3-cp311-cp311-win32.whl", hash = "sha256:0db14f5dafddbb6d9208827849fad01f1a2609380add406671a26386cdf15a19", size = 14572, upload-time = "2025-09-27T18:36:28.045Z" }, + { url = "https://files.pythonhosted.org/packages/83/8a/4414c03d3f891739326e1783338e48fb49781cc915b2e0ee052aa490d586/markupsafe-3.0.3-cp311-cp311-win_amd64.whl", hash = "sha256:de8a88e63464af587c950061a5e6a67d3632e36df62b986892331d4620a35c01", size = 15077, upload-time = "2025-09-27T18:36:29.025Z" }, + { url = "https://files.pythonhosted.org/packages/35/73/893072b42e6862f319b5207adc9ae06070f095b358655f077f69a35601f0/markupsafe-3.0.3-cp311-cp311-win_arm64.whl", hash = "sha256:3b562dd9e9ea93f13d53989d23a7e775fdfd1066c33494ff43f5418bc8c58a5c", size = 13876, upload-time = "2025-09-27T18:36:29.954Z" }, + { url = "https://files.pythonhosted.org/packages/5a/72/147da192e38635ada20e0a2e1a51cf8823d2119ce8883f7053879c2199b5/markupsafe-3.0.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:d53197da72cc091b024dd97249dfc7794d6a56530370992a5e1a08983ad9230e", size = 11615, upload-time = "2025-09-27T18:36:30.854Z" }, + { url = "https://files.pythonhosted.org/packages/9a/81/7e4e08678a1f98521201c3079f77db69fb552acd56067661f8c2f534a718/markupsafe-3.0.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:1872df69a4de6aead3491198eaf13810b565bdbeec3ae2dc8780f14458ec73ce", size = 12020, upload-time = "2025-09-27T18:36:31.971Z" }, + { url = "https://files.pythonhosted.org/packages/1e/2c/799f4742efc39633a1b54a92eec4082e4f815314869865d876824c257c1e/markupsafe-3.0.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3a7e8ae81ae39e62a41ec302f972ba6ae23a5c5396c8e60113e9066ef893da0d", size = 24332, upload-time = "2025-09-27T18:36:32.813Z" }, + { url = "https://files.pythonhosted.org/packages/3c/2e/8d0c2ab90a8c1d9a24f0399058ab8519a3279d1bd4289511d74e909f060e/markupsafe-3.0.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d6dd0be5b5b189d31db7cda48b91d7e0a9795f31430b7f271219ab30f1d3ac9d", size = 22947, upload-time = "2025-09-27T18:36:33.86Z" }, + { url = "https://files.pythonhosted.org/packages/2c/54/887f3092a85238093a0b2154bd629c89444f395618842e8b0c41783898ea/markupsafe-3.0.3-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:94c6f0bb423f739146aec64595853541634bde58b2135f27f61c1ffd1cd4d16a", size = 21962, upload-time = "2025-09-27T18:36:35.099Z" }, + { url = "https://files.pythonhosted.org/packages/c9/2f/336b8c7b6f4a4d95e91119dc8521402461b74a485558d8f238a68312f11c/markupsafe-3.0.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:be8813b57049a7dc738189df53d69395eba14fb99345e0a5994914a3864c8a4b", size = 23760, upload-time = "2025-09-27T18:36:36.001Z" }, + { url = "https://files.pythonhosted.org/packages/32/43/67935f2b7e4982ffb50a4d169b724d74b62a3964bc1a9a527f5ac4f1ee2b/markupsafe-3.0.3-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:83891d0e9fb81a825d9a6d61e3f07550ca70a076484292a70fde82c4b807286f", size = 21529, upload-time = "2025-09-27T18:36:36.906Z" }, + { url = "https://files.pythonhosted.org/packages/89/e0/4486f11e51bbba8b0c041098859e869e304d1c261e59244baa3d295d47b7/markupsafe-3.0.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:77f0643abe7495da77fb436f50f8dab76dbc6e5fd25d39589a0f1fe6548bfa2b", size = 23015, upload-time = "2025-09-27T18:36:37.868Z" }, + { url = "https://files.pythonhosted.org/packages/2f/e1/78ee7a023dac597a5825441ebd17170785a9dab23de95d2c7508ade94e0e/markupsafe-3.0.3-cp312-cp312-win32.whl", hash = "sha256:d88b440e37a16e651bda4c7c2b930eb586fd15ca7406cb39e211fcff3bf3017d", size = 14540, upload-time = "2025-09-27T18:36:38.761Z" }, + { url = "https://files.pythonhosted.org/packages/aa/5b/bec5aa9bbbb2c946ca2733ef9c4ca91c91b6a24580193e891b5f7dbe8e1e/markupsafe-3.0.3-cp312-cp312-win_amd64.whl", hash = "sha256:26a5784ded40c9e318cfc2bdb30fe164bdb8665ded9cd64d500a34fb42067b1c", size = 15105, upload-time = "2025-09-27T18:36:39.701Z" }, + { url = "https://files.pythonhosted.org/packages/e5/f1/216fc1bbfd74011693a4fd837e7026152e89c4bcf3e77b6692fba9923123/markupsafe-3.0.3-cp312-cp312-win_arm64.whl", hash = "sha256:35add3b638a5d900e807944a078b51922212fb3dedb01633a8defc4b01a3c85f", size = 13906, upload-time = "2025-09-27T18:36:40.689Z" }, + { url = "https://files.pythonhosted.org/packages/38/2f/907b9c7bbba283e68f20259574b13d005c121a0fa4c175f9bed27c4597ff/markupsafe-3.0.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:e1cf1972137e83c5d4c136c43ced9ac51d0e124706ee1c8aa8532c1287fa8795", size = 11622, upload-time = "2025-09-27T18:36:41.777Z" }, + { url = "https://files.pythonhosted.org/packages/9c/d9/5f7756922cdd676869eca1c4e3c0cd0df60ed30199ffd775e319089cb3ed/markupsafe-3.0.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:116bb52f642a37c115f517494ea5feb03889e04df47eeff5b130b1808ce7c219", size = 12029, upload-time = "2025-09-27T18:36:43.257Z" }, + { url = "https://files.pythonhosted.org/packages/00/07/575a68c754943058c78f30db02ee03a64b3c638586fba6a6dd56830b30a3/markupsafe-3.0.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:133a43e73a802c5562be9bbcd03d090aa5a1fe899db609c29e8c8d815c5f6de6", size = 24374, upload-time = "2025-09-27T18:36:44.508Z" }, + { url = "https://files.pythonhosted.org/packages/a9/21/9b05698b46f218fc0e118e1f8168395c65c8a2c750ae2bab54fc4bd4e0e8/markupsafe-3.0.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ccfcd093f13f0f0b7fdd0f198b90053bf7b2f02a3927a30e63f3ccc9df56b676", size = 22980, upload-time = "2025-09-27T18:36:45.385Z" }, + { url = "https://files.pythonhosted.org/packages/7f/71/544260864f893f18b6827315b988c146b559391e6e7e8f7252839b1b846a/markupsafe-3.0.3-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:509fa21c6deb7a7a273d629cf5ec029bc209d1a51178615ddf718f5918992ab9", size = 21990, upload-time = "2025-09-27T18:36:46.916Z" }, + { url = "https://files.pythonhosted.org/packages/c2/28/b50fc2f74d1ad761af2f5dcce7492648b983d00a65b8c0e0cb457c82ebbe/markupsafe-3.0.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:a4afe79fb3de0b7097d81da19090f4df4f8d3a2b3adaa8764138aac2e44f3af1", size = 23784, upload-time = "2025-09-27T18:36:47.884Z" }, + { url = "https://files.pythonhosted.org/packages/ed/76/104b2aa106a208da8b17a2fb72e033a5a9d7073c68f7e508b94916ed47a9/markupsafe-3.0.3-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:795e7751525cae078558e679d646ae45574b47ed6e7771863fcc079a6171a0fc", size = 21588, upload-time = "2025-09-27T18:36:48.82Z" }, + { url = "https://files.pythonhosted.org/packages/b5/99/16a5eb2d140087ebd97180d95249b00a03aa87e29cc224056274f2e45fd6/markupsafe-3.0.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:8485f406a96febb5140bfeca44a73e3ce5116b2501ac54fe953e488fb1d03b12", size = 23041, upload-time = "2025-09-27T18:36:49.797Z" }, + { url = "https://files.pythonhosted.org/packages/19/bc/e7140ed90c5d61d77cea142eed9f9c303f4c4806f60a1044c13e3f1471d0/markupsafe-3.0.3-cp313-cp313-win32.whl", hash = "sha256:bdd37121970bfd8be76c5fb069c7751683bdf373db1ed6c010162b2a130248ed", size = 14543, upload-time = "2025-09-27T18:36:51.584Z" }, + { url = "https://files.pythonhosted.org/packages/05/73/c4abe620b841b6b791f2edc248f556900667a5a1cf023a6646967ae98335/markupsafe-3.0.3-cp313-cp313-win_amd64.whl", hash = "sha256:9a1abfdc021a164803f4d485104931fb8f8c1efd55bc6b748d2f5774e78b62c5", size = 15113, upload-time = "2025-09-27T18:36:52.537Z" }, + { url = "https://files.pythonhosted.org/packages/f0/3a/fa34a0f7cfef23cf9500d68cb7c32dd64ffd58a12b09225fb03dd37d5b80/markupsafe-3.0.3-cp313-cp313-win_arm64.whl", hash = "sha256:7e68f88e5b8799aa49c85cd116c932a1ac15caaa3f5db09087854d218359e485", size = 13911, upload-time = "2025-09-27T18:36:53.513Z" }, + { url = "https://files.pythonhosted.org/packages/e4/d7/e05cd7efe43a88a17a37b3ae96e79a19e846f3f456fe79c57ca61356ef01/markupsafe-3.0.3-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:218551f6df4868a8d527e3062d0fb968682fe92054e89978594c28e642c43a73", size = 11658, upload-time = "2025-09-27T18:36:54.819Z" }, + { url = "https://files.pythonhosted.org/packages/99/9e/e412117548182ce2148bdeacdda3bb494260c0b0184360fe0d56389b523b/markupsafe-3.0.3-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:3524b778fe5cfb3452a09d31e7b5adefeea8c5be1d43c4f810ba09f2ceb29d37", size = 12066, upload-time = "2025-09-27T18:36:55.714Z" }, + { url = "https://files.pythonhosted.org/packages/bc/e6/fa0ffcda717ef64a5108eaa7b4f5ed28d56122c9a6d70ab8b72f9f715c80/markupsafe-3.0.3-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4e885a3d1efa2eadc93c894a21770e4bc67899e3543680313b09f139e149ab19", size = 25639, upload-time = "2025-09-27T18:36:56.908Z" }, + { url = "https://files.pythonhosted.org/packages/96/ec/2102e881fe9d25fc16cb4b25d5f5cde50970967ffa5dddafdb771237062d/markupsafe-3.0.3-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8709b08f4a89aa7586de0aadc8da56180242ee0ada3999749b183aa23df95025", size = 23569, upload-time = "2025-09-27T18:36:57.913Z" }, + { url = "https://files.pythonhosted.org/packages/4b/30/6f2fce1f1f205fc9323255b216ca8a235b15860c34b6798f810f05828e32/markupsafe-3.0.3-cp313-cp313t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:b8512a91625c9b3da6f127803b166b629725e68af71f8184ae7e7d54686a56d6", size = 23284, upload-time = "2025-09-27T18:36:58.833Z" }, + { url = "https://files.pythonhosted.org/packages/58/47/4a0ccea4ab9f5dcb6f79c0236d954acb382202721e704223a8aafa38b5c8/markupsafe-3.0.3-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:9b79b7a16f7fedff2495d684f2b59b0457c3b493778c9eed31111be64d58279f", size = 24801, upload-time = "2025-09-27T18:36:59.739Z" }, + { url = "https://files.pythonhosted.org/packages/6a/70/3780e9b72180b6fecb83a4814d84c3bf4b4ae4bf0b19c27196104149734c/markupsafe-3.0.3-cp313-cp313t-musllinux_1_2_riscv64.whl", hash = "sha256:12c63dfb4a98206f045aa9563db46507995f7ef6d83b2f68eda65c307c6829eb", size = 22769, upload-time = "2025-09-27T18:37:00.719Z" }, + { url = "https://files.pythonhosted.org/packages/98/c5/c03c7f4125180fc215220c035beac6b9cb684bc7a067c84fc69414d315f5/markupsafe-3.0.3-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:8f71bc33915be5186016f675cd83a1e08523649b0e33efdb898db577ef5bb009", size = 23642, upload-time = "2025-09-27T18:37:01.673Z" }, + { url = "https://files.pythonhosted.org/packages/80/d6/2d1b89f6ca4bff1036499b1e29a1d02d282259f3681540e16563f27ebc23/markupsafe-3.0.3-cp313-cp313t-win32.whl", hash = "sha256:69c0b73548bc525c8cb9a251cddf1931d1db4d2258e9599c28c07ef3580ef354", size = 14612, upload-time = "2025-09-27T18:37:02.639Z" }, + { url = "https://files.pythonhosted.org/packages/2b/98/e48a4bfba0a0ffcf9925fe2d69240bfaa19c6f7507b8cd09c70684a53c1e/markupsafe-3.0.3-cp313-cp313t-win_amd64.whl", hash = "sha256:1b4b79e8ebf6b55351f0d91fe80f893b4743f104bff22e90697db1590e47a218", size = 15200, upload-time = "2025-09-27T18:37:03.582Z" }, + { url = "https://files.pythonhosted.org/packages/0e/72/e3cc540f351f316e9ed0f092757459afbc595824ca724cbc5a5d4263713f/markupsafe-3.0.3-cp313-cp313t-win_arm64.whl", hash = "sha256:ad2cf8aa28b8c020ab2fc8287b0f823d0a7d8630784c31e9ee5edea20f406287", size = 13973, upload-time = "2025-09-27T18:37:04.929Z" }, + { url = "https://files.pythonhosted.org/packages/33/8a/8e42d4838cd89b7dde187011e97fe6c3af66d8c044997d2183fbd6d31352/markupsafe-3.0.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:eaa9599de571d72e2daf60164784109f19978b327a3910d3e9de8c97b5b70cfe", size = 11619, upload-time = "2025-09-27T18:37:06.342Z" }, + { url = "https://files.pythonhosted.org/packages/b5/64/7660f8a4a8e53c924d0fa05dc3a55c9cee10bbd82b11c5afb27d44b096ce/markupsafe-3.0.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:c47a551199eb8eb2121d4f0f15ae0f923d31350ab9280078d1e5f12b249e0026", size = 12029, upload-time = "2025-09-27T18:37:07.213Z" }, + { url = "https://files.pythonhosted.org/packages/da/ef/e648bfd021127bef5fa12e1720ffed0c6cbb8310c8d9bea7266337ff06de/markupsafe-3.0.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f34c41761022dd093b4b6896d4810782ffbabe30f2d443ff5f083e0cbbb8c737", size = 24408, upload-time = "2025-09-27T18:37:09.572Z" }, + { url = "https://files.pythonhosted.org/packages/41/3c/a36c2450754618e62008bf7435ccb0f88053e07592e6028a34776213d877/markupsafe-3.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:457a69a9577064c05a97c41f4e65148652db078a3a509039e64d3467b9e7ef97", size = 23005, upload-time = "2025-09-27T18:37:10.58Z" }, + { url = "https://files.pythonhosted.org/packages/bc/20/b7fdf89a8456b099837cd1dc21974632a02a999ec9bf7ca3e490aacd98e7/markupsafe-3.0.3-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:e8afc3f2ccfa24215f8cb28dcf43f0113ac3c37c2f0f0806d8c70e4228c5cf4d", size = 22048, upload-time = "2025-09-27T18:37:11.547Z" }, + { url = "https://files.pythonhosted.org/packages/9a/a7/591f592afdc734f47db08a75793a55d7fbcc6902a723ae4cfbab61010cc5/markupsafe-3.0.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:ec15a59cf5af7be74194f7ab02d0f59a62bdcf1a537677ce67a2537c9b87fcda", size = 23821, upload-time = "2025-09-27T18:37:12.48Z" }, + { url = "https://files.pythonhosted.org/packages/7d/33/45b24e4f44195b26521bc6f1a82197118f74df348556594bd2262bda1038/markupsafe-3.0.3-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:0eb9ff8191e8498cca014656ae6b8d61f39da5f95b488805da4bb029cccbfbaf", size = 21606, upload-time = "2025-09-27T18:37:13.485Z" }, + { url = "https://files.pythonhosted.org/packages/ff/0e/53dfaca23a69fbfbbf17a4b64072090e70717344c52eaaaa9c5ddff1e5f0/markupsafe-3.0.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:2713baf880df847f2bece4230d4d094280f4e67b1e813eec43b4c0e144a34ffe", size = 23043, upload-time = "2025-09-27T18:37:14.408Z" }, + { url = "https://files.pythonhosted.org/packages/46/11/f333a06fc16236d5238bfe74daccbca41459dcd8d1fa952e8fbd5dccfb70/markupsafe-3.0.3-cp314-cp314-win32.whl", hash = "sha256:729586769a26dbceff69f7a7dbbf59ab6572b99d94576a5592625d5b411576b9", size = 14747, upload-time = "2025-09-27T18:37:15.36Z" }, + { url = "https://files.pythonhosted.org/packages/28/52/182836104b33b444e400b14f797212f720cbc9ed6ba34c800639d154e821/markupsafe-3.0.3-cp314-cp314-win_amd64.whl", hash = "sha256:bdc919ead48f234740ad807933cdf545180bfbe9342c2bb451556db2ed958581", size = 15341, upload-time = "2025-09-27T18:37:16.496Z" }, + { url = "https://files.pythonhosted.org/packages/6f/18/acf23e91bd94fd7b3031558b1f013adfa21a8e407a3fdb32745538730382/markupsafe-3.0.3-cp314-cp314-win_arm64.whl", hash = "sha256:5a7d5dc5140555cf21a6fefbdbf8723f06fcd2f63ef108f2854de715e4422cb4", size = 14073, upload-time = "2025-09-27T18:37:17.476Z" }, + { url = "https://files.pythonhosted.org/packages/3c/f0/57689aa4076e1b43b15fdfa646b04653969d50cf30c32a102762be2485da/markupsafe-3.0.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:1353ef0c1b138e1907ae78e2f6c63ff67501122006b0f9abad68fda5f4ffc6ab", size = 11661, upload-time = "2025-09-27T18:37:18.453Z" }, + { url = "https://files.pythonhosted.org/packages/89/c3/2e67a7ca217c6912985ec766c6393b636fb0c2344443ff9d91404dc4c79f/markupsafe-3.0.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:1085e7fbddd3be5f89cc898938f42c0b3c711fdcb37d75221de2666af647c175", size = 12069, upload-time = "2025-09-27T18:37:19.332Z" }, + { url = "https://files.pythonhosted.org/packages/f0/00/be561dce4e6ca66b15276e184ce4b8aec61fe83662cce2f7d72bd3249d28/markupsafe-3.0.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1b52b4fb9df4eb9ae465f8d0c228a00624de2334f216f178a995ccdcf82c4634", size = 25670, upload-time = "2025-09-27T18:37:20.245Z" }, + { url = "https://files.pythonhosted.org/packages/50/09/c419f6f5a92e5fadde27efd190eca90f05e1261b10dbd8cbcb39cd8ea1dc/markupsafe-3.0.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:fed51ac40f757d41b7c48425901843666a6677e3e8eb0abcff09e4ba6e664f50", size = 23598, upload-time = "2025-09-27T18:37:21.177Z" }, + { url = "https://files.pythonhosted.org/packages/22/44/a0681611106e0b2921b3033fc19bc53323e0b50bc70cffdd19f7d679bb66/markupsafe-3.0.3-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:f190daf01f13c72eac4efd5c430a8de82489d9cff23c364c3ea822545032993e", size = 23261, upload-time = "2025-09-27T18:37:22.167Z" }, + { url = "https://files.pythonhosted.org/packages/5f/57/1b0b3f100259dc9fffe780cfb60d4be71375510e435efec3d116b6436d43/markupsafe-3.0.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:e56b7d45a839a697b5eb268c82a71bd8c7f6c94d6fd50c3d577fa39a9f1409f5", size = 24835, upload-time = "2025-09-27T18:37:23.296Z" }, + { url = "https://files.pythonhosted.org/packages/26/6a/4bf6d0c97c4920f1597cc14dd720705eca0bf7c787aebc6bb4d1bead5388/markupsafe-3.0.3-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:f3e98bb3798ead92273dc0e5fd0f31ade220f59a266ffd8a4f6065e0a3ce0523", size = 22733, upload-time = "2025-09-27T18:37:24.237Z" }, + { url = "https://files.pythonhosted.org/packages/14/c7/ca723101509b518797fedc2fdf79ba57f886b4aca8a7d31857ba3ee8281f/markupsafe-3.0.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:5678211cb9333a6468fb8d8be0305520aa073f50d17f089b5b4b477ea6e67fdc", size = 23672, upload-time = "2025-09-27T18:37:25.271Z" }, + { url = "https://files.pythonhosted.org/packages/fb/df/5bd7a48c256faecd1d36edc13133e51397e41b73bb77e1a69deab746ebac/markupsafe-3.0.3-cp314-cp314t-win32.whl", hash = "sha256:915c04ba3851909ce68ccc2b8e2cd691618c4dc4c4232fb7982bca3f41fd8c3d", size = 14819, upload-time = "2025-09-27T18:37:26.285Z" }, + { url = "https://files.pythonhosted.org/packages/1a/8a/0402ba61a2f16038b48b39bccca271134be00c5c9f0f623208399333c448/markupsafe-3.0.3-cp314-cp314t-win_amd64.whl", hash = "sha256:4faffd047e07c38848ce017e8725090413cd80cbc23d86e55c587bf979e579c9", size = 15426, upload-time = "2025-09-27T18:37:27.316Z" }, + { url = "https://files.pythonhosted.org/packages/70/bc/6f1c2f612465f5fa89b95bead1f44dcb607670fd42891d8fdcd5d039f4f4/markupsafe-3.0.3-cp314-cp314t-win_arm64.whl", hash = "sha256:32001d6a8fc98c8cb5c947787c5d08b0a50663d139f1305bac5885d98d9b40fa", size = 14146, upload-time = "2025-09-27T18:37:28.327Z" }, +] + +[[package]] +name = "mcp" +version = "2.2.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "anyio" }, + { name = "httpx2" }, + { name = "jsonschema" }, + { name = "mcp-types" }, + { name = "opentelemetry-api" }, + { name = "pydantic" }, + { name = "pyjwt", extra = ["crypto"] }, + { name = "python-multipart" }, + { name = "pywin32", marker = "sys_platform == 'win32'" }, + { name = "sse-starlette" }, + { name = "starlette" }, + { name = "typing-extensions" }, + { name = "typing-inspection" }, + { name = "uvicorn", marker = "sys_platform != 'emscripten'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/76/31/ac54fb0fdd5b37de704486e288bba4fbbb463f24cfcfedbede407b854513/mcp-2.2.0.tar.gz", hash = "sha256:2dc37ecb1974becdcebdbf7561e7c15a07dbbf20ba21ba16c3593b3038b3afbd", size = 4084129, upload-time = "2026-09-07T16:06:23.439Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/1b/ff/8e7eade68b8a28f7da0ed1085544341b51f9c935dbf6b95c76b7edfea6a0/mcp-2.2.0-py3-none-any.whl", hash = "sha256:bde982589473a060ae145e3406e9a5333fe538c97229ba841f5a7f92be004f81", size = 365656, upload-time = "2026-09-07T16:06:19.711Z" }, +] + +[[package]] +name = "mcp-types" +version = "2.2.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pydantic" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ae/91/762d7755d971aff8a28d75f7961656148edf27875c8026e6385aaab08ae7/mcp_types-2.2.0.tar.gz", hash = "sha256:d3ed53703ddd10d9c6399f29d322bb66f3f67ab41348ac8556ba23e07fedefad", size = 65892, upload-time = "2026-09-07T16:06:25.187Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/8f/d7/6ffba5d8cd5dd9b8a19478875c50e04945314ba5074e84d749283f27f62d/mcp_types-2.2.0-py3-none-any.whl", hash = "sha256:ea476b73ee86709ab5abc9452385ed36cc05907e582355622e294595c9a04f13", size = 69106, upload-time = "2026-09-07T16:06:21.461Z" }, +] + +[[package]] +name = "more-itertools" +version = "11.1.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/de/1d/f4da6f02cdffe04d6362210b807146a26044c88d839208aec273bb0d9184/more_itertools-11.1.0.tar.gz", hash = "sha256:48e8f4d9e7e5878571ecf6f2b4e57634f93cd474cc8cfbd2376f2d11b396e30d", size = 145772, upload-time = "2026-05-22T14:14:29.909Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e8/3d/1087453384dbde46a8c7f9356eead2c58be8a7bf156bca40243377c85715/more_itertools-11.1.0-py3-none-any.whl", hash = "sha256:4b65538ae22f6fed0ce4874efd317463a7489796a0939fa66824dd542125a192", size = 72226, upload-time = "2026-05-22T14:14:28.824Z" }, +] + +[[package]] +name = "mypy-extensions" +version = "1.1.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/a2/6e/371856a3fb9d31ca8dac321cda606860fa4548858c0cc45d9d1d4ca2628b/mypy_extensions-1.1.0.tar.gz", hash = "sha256:52e68efc3284861e772bbcd66823fde5ae21fd2fdb51c62a211403730b916558", size = 6343, upload-time = "2025-04-22T14:54:24.164Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/79/7b/2c79738432f5c924bef5071f933bcc9efd0473bac3b4aa584a6f7c1c8df8/mypy_extensions-1.1.0-py3-none-any.whl", hash = "sha256:1be4cccdb0f2482337c4743e60421de3a356cd97508abadd57d47403e94f5505", size = 4963, upload-time = "2025-04-22T14:54:22.983Z" }, +] + +[[package]] +name = "opentelemetry-api" +version = "1.44.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ee/8b/aa9e2d8b8dfa7c946f7dec5d1f8f6ba8eca062f43509a06bdb5ce93d26c0/opentelemetry_api-1.44.0.tar.gz", hash = "sha256:67647e5e9566edcf421166fdf022b3537f818635daa852b289e34604dc6fb33a", size = 72406, upload-time = "2026-07-16T15:25:32.678Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ca/6f/a04e900f465ff3221ccc395522503e2d10e79fa21f2723c8e177aae1e0d1/opentelemetry_api-1.44.0-py3-none-any.whl", hash = "sha256:94b98c893a91b88657eaac1e3ba89618cdb85be6918196705354f34728b2cdef", size = 60018, upload-time = "2026-07-16T15:25:11.657Z" }, +] + +[[package]] +name = "packaging" +version = "26.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/7d/fa/3944b40b07da9ce895c0e6303a5ab7d53da063554f534556b134a54d6093/packaging-26.3.tar.gz", hash = "sha256:94edc256424af38762eb31306eed28beb9f0efc50a8837492c9d6fd6004aed79", size = 313412, upload-time = "2026-08-04T18:15:28.737Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/63/34/ba1c580383c9eada3711951fef0795c80b829a078d72188184bcab9dd527/packaging-26.3-py3-none-any.whl", hash = "sha256:d7193f7c8e4e93f444fde0262bf90af30e16fa0ad0ad44cb553c87339b23cd1c", size = 129956, upload-time = "2026-08-04T18:15:27.159Z" }, +] + +[[package]] +name = "pathspec" +version = "1.1.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/5a/82/42f767fc1c1143d6fd36efb827202a2d997a375e160a71eb2888a925aac1/pathspec-1.1.1.tar.gz", hash = "sha256:17db5ecd524104a120e173814c90367a96a98d07c45b2e10c2f3919fff91bf5a", size = 135180, upload-time = "2026-04-27T01:46:08.907Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f1/d9/7fb5aa316bc299258e68c73ba3bddbc499654a07f151cba08f6153988714/pathspec-1.1.1-py3-none-any.whl", hash = "sha256:a00ce642f577bf7f473932318056212bc4f8bfdf53128c78bbd5af0b9b20b189", size = 57328, upload-time = "2026-04-27T01:46:07.06Z" }, +] + +[[package]] +name = "platformdirs" +version = "4.11.13" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/53/0e/7be2983c52622d6c0899300f760e31ba143355cedf1afcb3e65689d5ca85/platformdirs-4.11.13.tar.gz", hash = "sha256:6985eefdc2298693e4ce1fe124645524cb967428eb6384e0ce5b49767e7ea8ba", size = 40415, upload-time = "2026-09-25T04:44:25.484Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/29/a6/76a492f6a937e196641b3abd1588c504c71438e243daf1bebde4d3bb8ee9/platformdirs-4.11.13-py3-none-any.whl", hash = "sha256:228b2283af5c1f32673cdf55271216a52bbd8258cb31374e302ad7bd26cd7513", size = 25054, upload-time = "2026-09-25T04:44:23.975Z" }, +] + +[[package]] +name = "pluggy" +version = "1.6.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f9/e2/3e91f31a7d2b083fe6ef3fa267035b518369d9511ffab804f839851d2779/pluggy-1.6.0.tar.gz", hash = "sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3", size = 69412, upload-time = "2025-05-15T12:30:07.975Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/54/20/4d324d65cc6d9205fabedc306948156824eb9f0ee1633355a8f7ec5c66bf/pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746", size = 20538, upload-time = "2025-05-15T12:30:06.134Z" }, +] + +[[package]] +name = "pycparser" +version = "3.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/1b/7d/92392ff7815c21062bea51aa7b87d45576f649f16458d78b7cf94b9ab2e6/pycparser-3.0.tar.gz", hash = "sha256:600f49d217304a5902ac3c37e1281c9fe94e4d0489de643a9504c5cdfdfc6b29", size = 103492, upload-time = "2026-01-21T14:26:51.89Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/0c/c3/44f3fbbfa403ea2a7c779186dc20772604442dde72947e7d01069cbe98e3/pycparser-3.0-py3-none-any.whl", hash = "sha256:b727414169a36b7d524c1c3e31839a521725078d7b2ff038656844266160a992", size = 48172, upload-time = "2026-01-21T14:26:50.693Z" }, +] + +[[package]] +name = "pydantic" +version = "2.13.5" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "annotated-types" }, + { name = "pydantic-core" }, + { name = "typing-extensions" }, + { name = "typing-inspection" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/53/ef/fc4f868f4e2cee79f863883abffceff107875f569b848507319842d2a681/pydantic-2.13.5.tar.gz", hash = "sha256:51a9c5f7b2f8e636f04c6cada605d9b6a3bf1348fdf945a3d8869b19bba0ee08", size = 845750, upload-time = "2026-08-28T14:04:00.916Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/eb/47/c95ffc2009878c7aac0c5e08528022dcb885933252a88b5f170058014464/pydantic-2.13.5-py3-none-any.whl", hash = "sha256:346a034f080da3755d8e9cb5e00e8b07de1d39e4f6e2c87d8ab7cafa0b269a73", size = 472589, upload-time = "2026-08-28T14:03:59.136Z" }, +] + +[[package]] +name = "pydantic-core" +version = "2.46.5" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/af/f9/8a06bea35ef8daf588f707784c973a7046e0034c8d8cfb08828eeffb8b75/pydantic_core-2.46.5.tar.gz", hash = "sha256:10416c15b8839ecc4ef4d0885da76da6fd0f67333a0eb8aff6d93c4b8f2910fc", size = 472262, upload-time = "2026-08-28T10:01:31.677Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/74/6b/8f79692844269427abb3e4dd9e68edfcbe65ae25527d99183214de716c59/pydantic_core-2.46.5-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:657b40d6240c0a7b6a64b30f22d1e3aa631c7e846c621b0c0f6d1d75e2e15ea6", size = 2076533, upload-time = "2026-08-28T09:57:35.421Z" }, + { url = "https://files.pythonhosted.org/packages/bd/d0/c787604c71c2bdcda1a5656942fc822cd0f9cd879b9484bb84fc42172703/pydantic_core-2.46.5-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:ecb42011e12ee19cafbc312887cbf3546959fe02fbad44f272d4be5baa997615", size = 1924650, upload-time = "2026-08-28T09:57:37.944Z" }, + { url = "https://files.pythonhosted.org/packages/4a/77/ca2f8e997d9bfdb32205297aff38f210f398822d895b1af1b59fd9df9c13/pydantic_core-2.46.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4dedce55295becb61921e386b99d4f2706045306e7fa52249a33004c837379fb", size = 1951261, upload-time = "2026-08-28T09:57:39.339Z" }, + { url = "https://files.pythonhosted.org/packages/a0/53/bd12e1a9255df4edee00353778e2614b5346265d51e1567ab72153e803a2/pydantic_core-2.46.5-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:9f47b8a949e60f027f0aa0a6f6c7b7e9c55cbf4380d10b344e282fa4e7ab1e1b", size = 2021808, upload-time = "2026-08-28T09:57:40.69Z" }, + { url = "https://files.pythonhosted.org/packages/d7/41/f7f312751ebc6d6767da91964a9c7954c18e226a1720ab234e3dfb9d6c17/pydantic_core-2.46.5-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:200aa3dc9f8d54f0754f43247c0bad0999fdcfbfd2488384dd44f37279271fe6", size = 2196184, upload-time = "2026-08-28T09:57:42.275Z" }, + { url = "https://files.pythonhosted.org/packages/3d/93/ce93aa030ab6bac4683ba8861e7baad89dd24b02e66b8801a0e4f6a00311/pydantic_core-2.46.5-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:6d30e1a4f138b8951063e9a394752a9179b51da288ffa507b1e659222f4c1793", size = 2238212, upload-time = "2026-08-28T09:57:44.122Z" }, + { url = "https://files.pythonhosted.org/packages/34/a1/c8e6b66f499f510752c07a092dfe27621f9c255635e59d38704b5681c35a/pydantic_core-2.46.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:850a08d167dde16db8702c274f320c7be9d7da6f6dff2b58b18f9e815bd94f5b", size = 2064073, upload-time = "2026-08-28T09:57:45.613Z" }, + { url = "https://files.pythonhosted.org/packages/5c/fa/605e2b127ee30dbf4b1da9da4843587cf2b2d16486c241cc7a5be2d2c1bd/pydantic_core-2.46.5-cp310-cp310-manylinux_2_31_riscv64.whl", hash = "sha256:c3471e5c4a949c26ec00a77f01df59096aa9495877de76fd60a980f8ee6be461", size = 2093102, upload-time = "2026-08-28T09:57:46.953Z" }, + { url = "https://files.pythonhosted.org/packages/4a/f7/1ab28093c09032ddce7c92c7a55d503b6ecd70f42c32492946c1cb5477b1/pydantic_core-2.46.5-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:3a3e26b6a8274211bddee2d0e4d0d42778f17a34510f49d2ec44b58abfc41736", size = 2133452, upload-time = "2026-08-28T09:57:48.362Z" }, + { url = "https://files.pythonhosted.org/packages/30/c8/47c79b756f12f85e8b0fbdb2b495f6b6eb32e6c98a4beae7a570a0b7c63c/pydantic_core-2.46.5-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:fc5d783bd4a2387e97b8a2d5ec781cfb92b3d893bf82370548e99db5915935d3", size = 2146477, upload-time = "2026-08-28T09:57:49.74Z" }, + { url = "https://files.pythonhosted.org/packages/13/5c/79fc00cb8f651d6061991de8d7cedf1c78c73cbd4862c42ef418f03b8bfa/pydantic_core-2.46.5-cp310-cp310-musllinux_1_1_armv7l.whl", hash = "sha256:356c8368cbc321050b169595683a2e1d63413b1e0e2868b330af9fc14c616d3f", size = 2300832, upload-time = "2026-08-28T09:57:51.639Z" }, + { url = "https://files.pythonhosted.org/packages/b4/72/dd1a29853cf6d22a1ebd9e3baf0239cbc57d2d16caff36a89e38eb9b1db3/pydantic_core-2.46.5-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:eb7d8d0e5886a89a55d2eef490e272fa965a9d57c6b29a5b5088a7997ec2cad1", size = 2320505, upload-time = "2026-08-28T09:57:53.236Z" }, + { url = "https://files.pythonhosted.org/packages/ec/d1/ba4a8e06a9ddad0b4caf69cfaeecc0fbfcec20473bd808f5127fd16491c4/pydantic_core-2.46.5-cp310-cp310-win32.whl", hash = "sha256:4d44cf99ddebf875f9b68cc267aa684c99b7b44fe63ee1cac4ec163807290069", size = 1956853, upload-time = "2026-08-28T09:57:54.592Z" }, + { url = "https://files.pythonhosted.org/packages/f2/94/205ed9d7ddaf44acd489889708ea124a3f41bdb42c141c8684d528ad0e7a/pydantic_core-2.46.5-cp310-cp310-win_amd64.whl", hash = "sha256:1e5aad1220a1192c42341c8fd4a8686657e73ab2a920c970bdc4de334fe3193d", size = 2042551, upload-time = "2026-08-28T09:57:56.017Z" }, + { url = "https://files.pythonhosted.org/packages/a2/b6/81d2d19ea0be2c03664381b59f65fa72fc7969decedae00bc2c4ad835708/pydantic_core-2.46.5-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:a1dee1b804ff4d11c663636cf15d2ea47e9f79cd56c033fb1cbf08924842a48f", size = 2074737, upload-time = "2026-08-28T09:57:57.711Z" }, + { url = "https://files.pythonhosted.org/packages/0c/18/b70da8300e292df4099684ea11b1958043580d2f50d2dc8bf7e542bdd84a/pydantic_core-2.46.5-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:d625a186a65201c23a9e3b8ed9c47e90a026e03256608cc91851c6709096844f", size = 1921751, upload-time = "2026-08-28T09:57:59.265Z" }, + { url = "https://files.pythonhosted.org/packages/e7/1a/0d590341b6ffa4b4aca83508e6b8db4761aaeacfc15a25ca3815876d4797/pydantic_core-2.46.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4f8507560a9284e1370bb048ed4282012fbef4e8d109875b95e884d228552061", size = 1948231, upload-time = "2026-08-28T09:58:00.678Z" }, + { url = "https://files.pythonhosted.org/packages/7d/1d/02eb35761c51f2f7b1b042d6ab4cda6600f0c8c88a2243b3f734376201e5/pydantic_core-2.46.5-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5f93c5fe914d75fbec9a49209b00da5f08e9e467d69da2b1510c81940cfd10be", size = 2020708, upload-time = "2026-08-28T09:58:02.267Z" }, + { url = "https://files.pythonhosted.org/packages/4a/ea/f86073830e35d508cc8ddf9c3d9e6e6840fcb88d34bf726b0b4710186f27/pydantic_core-2.46.5-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:aca6c767f552b21b10f774aeac128e828eafb796adfa1b666a18bf6321453c3a", size = 2194914, upload-time = "2026-08-28T09:58:03.934Z" }, + { url = "https://files.pythonhosted.org/packages/bb/d7/fc36240d7791ce90939e51608568c33bfdae26202016f9770c229a487d86/pydantic_core-2.46.5-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:701b2e04b560eeb4bddf7a25ab8ca476176e34fdbd9a0e18196f0d12d4685f0b", size = 2235622, upload-time = "2026-08-28T09:58:05.516Z" }, + { url = "https://files.pythonhosted.org/packages/cf/bc/3fa2d76b83162820a17da7f645b28d1cba99fc8e1e5fc6517067ec450fa1/pydantic_core-2.46.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:49776eab08766a08dfff7012f8b422dcd7e25e43b316eedf0477c24fcfa84b7c", size = 2062091, upload-time = "2026-08-28T09:58:07.135Z" }, + { url = "https://files.pythonhosted.org/packages/ab/9a/095d557bb492c90cd8a70a6dd048bf793d433d03d86c81c11e912e4cd049/pydantic_core-2.46.5-cp311-cp311-manylinux_2_31_riscv64.whl", hash = "sha256:a2468d93d181667a7abd66e1b64bb9f76f361b0fef8faddf687456453576f5ee", size = 2089904, upload-time = "2026-08-28T09:58:08.814Z" }, + { url = "https://files.pythonhosted.org/packages/24/98/7b76b1ad10a19a617a52aaa1d80e159115af939b095e86f8e756fd52e0df/pydantic_core-2.46.5-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:53feb344243bb9510a9dec7bf3cf1b64d88a98af5dc7872a5160465f8b198c8e", size = 2132244, upload-time = "2026-08-28T09:58:10.435Z" }, + { url = "https://files.pythonhosted.org/packages/20/32/7d6ca365fadba186a0c8f85de1a701663bce81efd309d9479be58687622f/pydantic_core-2.46.5-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:cd5214352ae68f3b5e9af7768bdc5253695ee069675db3480518420b3be881f2", size = 2143901, upload-time = "2026-08-28T09:58:12.033Z" }, + { url = "https://files.pythonhosted.org/packages/f8/09/eb9a6aa57f22fd1541a9c0aa2a1f3aeef3ec65347d33e10a6da2f43e0ee9/pydantic_core-2.46.5-cp311-cp311-musllinux_1_1_armv7l.whl", hash = "sha256:9432f3598db432cb51c5b37fdbf29a60fcccc79e30d37a05022776a6bc4ab689", size = 2299425, upload-time = "2026-08-28T09:58:13.614Z" }, + { url = "https://files.pythonhosted.org/packages/8a/f9/548a5bb9d4ba8cd26e26daf48052236f6b38bb61e7b7241fbc3c995719eb/pydantic_core-2.46.5-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:8feeac04b5794e513e710af2f9c87d49f31a6dc47967bb264a1fed61a8989bec", size = 2318566, upload-time = "2026-08-28T09:58:15.199Z" }, + { url = "https://files.pythonhosted.org/packages/4a/20/06454d18834c02c406c9133f1a3b485305fd9ee984f9636c2f730bef6a9d/pydantic_core-2.46.5-cp311-cp311-win32.whl", hash = "sha256:892a881d5f68c2b9ea304b7a6c2c60d9343df578a311b0f86b94bc8f1ffe8129", size = 1954258, upload-time = "2026-08-28T09:58:16.813Z" }, + { url = "https://files.pythonhosted.org/packages/9e/c2/718b9deb4b72453b5d8c7447a3b14cb77bef36917ef5f514e0948a4096a0/pydantic_core-2.46.5-cp311-cp311-win_amd64.whl", hash = "sha256:40375c2d05acec10323e45dfe2077ac44bc74659008614af5069034e2cfc781c", size = 2041030, upload-time = "2026-08-28T09:58:18.288Z" }, + { url = "https://files.pythonhosted.org/packages/67/ea/c1d1a5b72d6e1ff7f377a4d9199f6591f095beb5b409a8a5d89f7238d939/pydantic_core-2.46.5-cp311-cp311-win_arm64.whl", hash = "sha256:28a6a556cd3b6066bea827857f9d9cce027c96f776e512f544a581f9e42161f8", size = 2009234, upload-time = "2026-08-28T09:58:19.929Z" }, + { url = "https://files.pythonhosted.org/packages/82/3f/76358795aa7a8c6d4f36e2cb828ad1c90ee118e1393a9281664f5aade9d4/pydantic_core-2.46.5-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:b9fe6fb92520e3fd61f2e49000b6911b188824f089b75973ea06d6267f0b476d", size = 2076516, upload-time = "2026-08-28T09:58:21.576Z" }, + { url = "https://files.pythonhosted.org/packages/db/50/26b091836076ce4cb2fac264186936acc069e0595772cfd02a563bc4761a/pydantic_core-2.46.5-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:a39ac25a9a2fa4072efdb429833c4a4c8009a51ff9eea3eeae131713cd27991e", size = 1922874, upload-time = "2026-08-28T09:58:23.766Z" }, + { url = "https://files.pythonhosted.org/packages/09/f0/2a8ce3849e299d44e2d2c196b6082643a3235565a735cb51db7a6261f614/pydantic_core-2.46.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4fdc8b93a41521988916eeaa271173fcca7fa0803d62f87675aac8dcec1c8e29", size = 1951772, upload-time = "2026-08-28T09:58:25.435Z" }, + { url = "https://files.pythonhosted.org/packages/87/46/ac0dc8bdd9e6048183a14eb127764e7ad9240021c17513074a4711b0e31e/pydantic_core-2.46.5-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b98134087d9de723658d17a42c7d0da8d6e2ef08015dee7dc93889047315f5e4", size = 2031832, upload-time = "2026-08-28T09:58:27.102Z" }, + { url = "https://files.pythonhosted.org/packages/c4/c2/339de5bef7be36301a2231eaa52e62163742c2281f11b5f4892bc79785cd/pydantic_core-2.46.5-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e652ab17569c94bff5475520f907b7148b8c24036a8ebbe5cf7cf7493d28579a", size = 2208645, upload-time = "2026-08-28T09:58:28.948Z" }, + { url = "https://files.pythonhosted.org/packages/7b/a0/9ff22b797724262da14427abaed4dd1d864a139693fc5e7809114376a716/pydantic_core-2.46.5-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d925f3d9afd05a8c0fb3a1031463a8d59ebe5e2afad297e29c78be19e13b4e62", size = 2265935, upload-time = "2026-08-28T09:58:30.625Z" }, + { url = "https://files.pythonhosted.org/packages/c0/a4/eb9409ec0736e50aa70a412f16c204ed149516846912f7e6724d4c73ee53/pydantic_core-2.46.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0fc5be0abd4a407e200d844b404e33639a554e7bd0d448e7b9ae181be4789ac2", size = 2066284, upload-time = "2026-08-28T09:58:32.289Z" }, + { url = "https://files.pythonhosted.org/packages/c0/02/7f6156ffc926857f1c37c07d9a388682865a81830ab6a1b637082c25e399/pydantic_core-2.46.5-cp312-cp312-manylinux_2_31_riscv64.whl", hash = "sha256:816ff0a6550ffc06c098ccd2e0698600f9aa7da192a79eaa6f9af504a35db869", size = 2105889, upload-time = "2026-08-28T09:58:33.986Z" }, + { url = "https://files.pythonhosted.org/packages/92/b1/e781d357ebe09fc929f995700f1b3503e8897f1cece183ecb1300d4d67e9/pydantic_core-2.46.5-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c7ea57fc63aa7da93a1bd2d644e6577befae10c52c4e36377635eea1056a74f5", size = 2158006, upload-time = "2026-08-28T09:58:35.647Z" }, + { url = "https://files.pythonhosted.org/packages/70/0a/644597d84ab400e50609c192120b85c9681c22d3a20461b9060a79be0a7a/pydantic_core-2.46.5-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:efd62a42486f1bda5d24cb4f63d15a3c7768375fe83d36f9417b4ad7a2fb20b3", size = 2158408, upload-time = "2026-08-28T09:58:37.38Z" }, + { url = "https://files.pythonhosted.org/packages/1e/ee/ca3b7b3a4b3769ffe9ce9432a7c9be755de9593a46d3b0d54d0409323e44/pydantic_core-2.46.5-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:2bc9419666990c06d7397831f2126a1ecc3594aaa3ff7de5bf2d066802f4e07b", size = 2309609, upload-time = "2026-08-28T09:58:39.22Z" }, + { url = "https://files.pythonhosted.org/packages/ce/52/39fa1f451486019524ca685020390e7ca351832fd874530ba30c8628e6dc/pydantic_core-2.46.5-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:18a09e1e1011b462f2e32774f25859ef1223d5c2b0546a633cf56654710721e0", size = 2342618, upload-time = "2026-08-28T09:58:40.89Z" }, + { url = "https://files.pythonhosted.org/packages/81/5e/468fc630568c61dcef3cd47ad32ffbeed9af643f49208d1ea86ab4f890c4/pydantic_core-2.46.5-cp312-cp312-win32.whl", hash = "sha256:5cb482e9e84c851f4e623fe4acc1ced89168cf1fe18f7089db4548c8f5bbb65b", size = 1939475, upload-time = "2026-08-28T09:58:42.591Z" }, + { url = "https://files.pythonhosted.org/packages/cf/c9/4c19f41b84cf6b622a72fbeed7665b25d47a187d68d47d0d430c07f23268/pydantic_core-2.46.5-cp312-cp312-win_amd64.whl", hash = "sha256:5e81740c09e310f5aa5cbd3e434a01c154d4bef93241c7877b39f211d2b78ba8", size = 2043140, upload-time = "2026-08-28T09:58:44.272Z" }, + { url = "https://files.pythonhosted.org/packages/af/dd/0c1a050299147c746e5256db16d645ab5efd4f78c59937d581a0524e74a2/pydantic_core-2.46.5-cp312-cp312-win_arm64.whl", hash = "sha256:f7b0ec93a2893de856652154d73b7ba622f26fa97726487dcac373de5f4c6084", size = 1997729, upload-time = "2026-08-28T09:58:46.13Z" }, + { url = "https://files.pythonhosted.org/packages/f5/37/5abe39a8372a61d3dc3c1338fc504281c01b32fdb3169cd7187153b56d3e/pydantic_core-2.46.5-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:b7ca9034437b6022f941f4857459562ee00a560b97e7cce8a0ec5a74fc6766e0", size = 2075885, upload-time = "2026-08-28T09:58:47.856Z" }, + { url = "https://files.pythonhosted.org/packages/21/43/6323b1f8b217780454c61304bcd2b38ae4762f50754414124603ccc90bb2/pydantic_core-2.46.5-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f332f0e72a5a0400141f830744e141bf9f97917878dbe968669e8a7fefea78ff", size = 1922768, upload-time = "2026-08-28T09:58:49.58Z" }, + { url = "https://files.pythonhosted.org/packages/0f/a3/c05ca796e1197618a774b01e596aeedfefc2f7d8c01ae3054e910b120e8a/pydantic_core-2.46.5-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:193375f3548919d3f0b60936ca113ada3e38f264f91b9b8e0508efaad57be931", size = 1951241, upload-time = "2026-08-28T09:58:51.511Z" }, + { url = "https://files.pythonhosted.org/packages/68/32/33bc39ac705c52cffc908e8389f9754fdb208aea5c69cceddf4eb3ce99af/pydantic_core-2.46.5-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:79bdfa52f843137045b2d081cc05c120ba6665d29b7559c2c47690906f39279f", size = 2031975, upload-time = "2026-08-28T09:58:53.166Z" }, + { url = "https://files.pythonhosted.org/packages/b0/70/2333e885c0f6a67bc105c5916965dac9b57f2718ee20d81d1a06a4ebdc13/pydantic_core-2.46.5-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:24922243639cbdac66c75fcb6fd6495a9cb52b213d62f9a0d16f0310b1ff8038", size = 2208542, upload-time = "2026-08-28T09:58:55.017Z" }, + { url = "https://files.pythonhosted.org/packages/f7/ea/296debfb4264207bbda5936133892e027c0a58875ad53ebd512fba8ec3a2/pydantic_core-2.46.5-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c76fe65e607be28c7fd4d56fc3c42b1583aa058ce3408b7ad0fd540171d31f9f", size = 2264692, upload-time = "2026-08-28T09:58:56.767Z" }, + { url = "https://files.pythonhosted.org/packages/d3/f2/9e4de77a6271e07a76d2d58b11c091a979c191ed2939bf80067568b369d2/pydantic_core-2.46.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6f7b393a8b3da82f5c1fc0751e6d01ac6c55b93c18226a60bdfba4a724efafd1", size = 2066633, upload-time = "2026-08-28T09:58:58.531Z" }, + { url = "https://files.pythonhosted.org/packages/8d/db/f9e9d0c97445987b2084823d5c240de88087338f04fc2cfaa2df186b8049/pydantic_core-2.46.5-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:7ac031912d54f3d83ef3b3eb98dfabc1608802e2202263d25957eeed40b94761", size = 2105235, upload-time = "2026-08-28T09:59:00.421Z" }, + { url = "https://files.pythonhosted.org/packages/07/c5/79169b047b3b2c3e99e04bc76372af9637e0bf6db638274fa927df96369e/pydantic_core-2.46.5-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:837b396ca3d7b74091ca623f6cbd8351bd42d670a79c2683e79fb089f06a2de5", size = 2157367, upload-time = "2026-08-28T09:59:02.442Z" }, + { url = "https://files.pythonhosted.org/packages/26/b5/ba6057afb7c291bd449f51b867f95aef2072941c4ce4e5c31d6ffd132d3b/pydantic_core-2.46.5-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:5ee239d575f80b08eca11f6e20f90c4c695de7825c67eefe6091fbf20dda648e", size = 2158420, upload-time = "2026-08-28T09:59:04.2Z" }, + { url = "https://files.pythonhosted.org/packages/6e/28/2057abecaafdc22912afa819603a51f0a62d40643b7c4871c51721fea9be/pydantic_core-2.46.5-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:e80675d75ae2cd14372cb65cad5400d9347a3d3f6c13000183f22dfd027283ed", size = 2309588, upload-time = "2026-08-28T09:59:06.048Z" }, + { url = "https://files.pythonhosted.org/packages/71/9d/881156dc404e27479c4246128d73538464cab4a239bec61995e227644c30/pydantic_core-2.46.5-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:9c4b71f10dd532fb7a5cbc8f58707779e64f03a258c2bf8bfbaecfcd9970b519", size = 2341866, upload-time = "2026-08-28T09:59:08.539Z" }, + { url = "https://files.pythonhosted.org/packages/5a/38/d66f443a259f84d13babdceae568e572b0ed26da17ca5d0a649ebb110a67/pydantic_core-2.46.5-cp313-cp313-win32.whl", hash = "sha256:97bf8de4d541598c94a59344eeb988a94c08ff76b5723c41f6567ec18c7892ea", size = 1938580, upload-time = "2026-08-28T09:59:10.402Z" }, + { url = "https://files.pythonhosted.org/packages/2c/1e/1d5371213f4cc9a7ed70c0bfcc7911de22311ee99a662a56077d7292d2ac/pydantic_core-2.46.5-cp313-cp313-win_amd64.whl", hash = "sha256:15f4a94963c95accac15b7b657bb177d3ad82bb90b0d0526d9a9b85079925db5", size = 2041980, upload-time = "2026-08-28T09:59:12.396Z" }, + { url = "https://files.pythonhosted.org/packages/5a/48/4222d90b1c67568bace4dec6dca6271449c66de3595d72b6d098f5fde597/pydantic_core-2.46.5-cp313-cp313-win_arm64.whl", hash = "sha256:d22a945598fb91236b4dd793a6e42e4f3dd7740bb5aace5ebd7d4c08d13bb575", size = 1997213, upload-time = "2026-08-28T09:59:14.245Z" }, + { url = "https://files.pythonhosted.org/packages/8e/8a/14596f2a8367da50cf7cbac48169ee5d9c8e11d486a3b527082384630c72/pydantic_core-2.46.5-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:c1c43ad4339643d70ebb8124e1305a7dab423001eff58bb41a0f731adbc98355", size = 2074081, upload-time = "2026-08-28T09:59:16.141Z" }, + { url = "https://files.pythonhosted.org/packages/ae/d5/d8a4eb6d6c7f66b91dd37c576d76e9e60fba900caf5372c17bcf949febc2/pydantic_core-2.46.5-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:1a353f84de772f423b5ffb11d7ae352fbbef0f446f3c0b0af0f8236d7233606e", size = 1920497, upload-time = "2026-08-28T09:59:18.065Z" }, + { url = "https://files.pythonhosted.org/packages/8e/26/092079428f86e927e030b2c0ced87df69dbb1c875cdeaa67bf42ea2be746/pydantic_core-2.46.5-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5086029a57366b8cf81b130a43908738095c270c21a8d7f0e8bdfdb89718e2f3", size = 1952130, upload-time = "2026-08-28T09:59:20.476Z" }, + { url = "https://files.pythonhosted.org/packages/08/c3/8ec0e290a9ebaebd64047bf5fda94be835c6b1551b02437e4b76778fbcd7/pydantic_core-2.46.5-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:46c25dda9d092a06c08db76ffe0a197107904d0dfac653f7d5306bbcd6d6119c", size = 2026371, upload-time = "2026-08-28T09:59:22.227Z" }, + { url = "https://files.pythonhosted.org/packages/01/72/4fd20ad520fb8da0157f95b27a7eb05a72790ef08138e7701ac972c342ea/pydantic_core-2.46.5-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:37ea7b83c935e5b0d68c9449b82651accf78a10828b2c02b2f2d9e9496446c21", size = 2202822, upload-time = "2026-08-28T09:59:24.277Z" }, + { url = "https://files.pythonhosted.org/packages/31/b0/d16e0771206b29314f0d52198b720be21e8a99ab2bf11e3bc0d7c9cebdff/pydantic_core-2.46.5-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e64e88d5585bea9ce95861079de72006c7fa6d3df4e3a3b65ba31eb979c15c9f", size = 2262756, upload-time = "2026-08-28T09:59:26.608Z" }, + { url = "https://files.pythonhosted.org/packages/2c/9b/59634b7ac631c63b2a37760eb6943af3e29573d6b59a4abc5e7f019d4cee/pydantic_core-2.46.5-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:54d510bac3ee52247af28ed4bb18a1e799f040ac60fd2bf5ccd4c92f1fbe786f", size = 2068352, upload-time = "2026-08-28T09:59:29.044Z" }, + { url = "https://files.pythonhosted.org/packages/08/7c/570abb1ad2155348dc754ea91be22e5aaa18eb6d69a6068f7c6f2679a6ed/pydantic_core-2.46.5-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:a2a5e1d0ff29adddc9f6d6821a66302e4493f8ca898b715b6b1182c2c201ea0a", size = 2104777, upload-time = "2026-08-28T09:59:30.95Z" }, + { url = "https://files.pythonhosted.org/packages/8e/25/5bf74adc65a1ac5b7be3f6cb0bcb5433615c1598a801c19d830d84c98ded/pydantic_core-2.46.5-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:03b9666e41e35d8909852ba191a0607520f81b74eaf12ccf8737005dbb313821", size = 2156312, upload-time = "2026-08-28T09:59:32.604Z" }, + { url = "https://files.pythonhosted.org/packages/90/6a/2ef38830675e050121040618135564ed56b860b45433b02d9b4ebece46f3/pydantic_core-2.46.5-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:a91c17edf6eea2402cb5457b4c89e99bc5ed1004aa34c4adf1d4258c1a5c22c2", size = 2150067, upload-time = "2026-08-28T09:59:34.453Z" }, + { url = "https://files.pythonhosted.org/packages/90/ef/a7dbb03a14a64c2a4621f989c615ed9a892535a6cad938fc27079f919d80/pydantic_core-2.46.5-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:b49924c73a235e969511bf2aabdff3beebf9820931f646c80274d5d780010c47", size = 2304516, upload-time = "2026-08-28T09:59:36.194Z" }, + { url = "https://files.pythonhosted.org/packages/68/f8/6bb4c4b80e8a6fde1904c64a51c62a1d04fcdfa3ea521a66b2ddefa1d885/pydantic_core-2.46.5-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:2cbd9a5eff05e51c447c34dfa4632145b26b09120cf04bd0c871e44c1a5e1c9a", size = 2335223, upload-time = "2026-08-28T09:59:37.931Z" }, + { url = "https://files.pythonhosted.org/packages/2a/80/f46b8c681195190b2c1f1c7c0a81abce60663e987613e09ef64d433dd96b/pydantic_core-2.46.5-cp314-cp314-win32.whl", hash = "sha256:2d5d76654becf5efd62c9e51c3756c67b49498b0c9a40884934c40807adbd074", size = 1934827, upload-time = "2026-08-28T09:59:39.836Z" }, + { url = "https://files.pythonhosted.org/packages/f7/3c/60674207246bc0a4009d2391b7c7251c7159f279c8d2ab8aae8ef46f3dee/pydantic_core-2.46.5-cp314-cp314-win_amd64.whl", hash = "sha256:fa10ef4112775900e7a0661068635eb67b2ab824fbde764de6e0e21982a93db0", size = 2042648, upload-time = "2026-08-28T09:59:41.792Z" }, + { url = "https://files.pythonhosted.org/packages/69/0c/117c562c7c1babdf44576b72a5e496906506c93690387ecfbca7c729ae2e/pydantic_core-2.46.5-cp314-cp314-win_arm64.whl", hash = "sha256:045ab3b6d308439e32b81cc173bba5b9018bc6ed896afd0c65b3b009b1699af5", size = 1989652, upload-time = "2026-08-28T09:59:43.702Z" }, + { url = "https://files.pythonhosted.org/packages/e8/66/9336ae58f9eb68c41d121894e52c4c89eccb07eb8f602a04ee9c3f37736a/pydantic_core-2.46.5-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:8816f3d218beb4b787de5c9759c259b8fa61f9dec42dc7811f320a33771778b7", size = 2065829, upload-time = "2026-08-28T09:59:45.364Z" }, + { url = "https://files.pythonhosted.org/packages/c5/02/bc19b47a96c2d3109760711acf22369e56bd7e405ca52f7ade164d2ead57/pydantic_core-2.46.5-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:bce57638e08ac148e5778cce7feb968307a727d66f8e2274a543d0cf0c9ad6a3", size = 1905716, upload-time = "2026-08-28T09:59:47.18Z" }, + { url = "https://files.pythonhosted.org/packages/52/a4/70b47c0509923dd98ccfed04fb3e32ea3849c82a0ff2205bb41009b43c00/pydantic_core-2.46.5-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:976e1128455aa595ea04c79ccfedff1aaeab96ee013fcc916bed120c4f0ad94f", size = 1934216, upload-time = "2026-08-28T09:59:49.241Z" }, + { url = "https://files.pythonhosted.org/packages/52/ab/aa03b65f7bb198585edf806b906c3223ecf1795543e39e23aec4cce27ad2/pydantic_core-2.46.5-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:e7b891faeedeafba41b2983e5001a81b6a915b69544c7e7570d1989ce1c36ac7", size = 2010635, upload-time = "2026-08-28T09:59:51.692Z" }, + { url = "https://files.pythonhosted.org/packages/3c/8b/0da06343f30b84ec549aafd309c6456223d5dc8bd36af504c573faad561d/pydantic_core-2.46.5-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5f194189415698233dd1114a093a9b56e61e2c57e11b469be3b0506f46f0771c", size = 2209369, upload-time = "2026-08-28T09:59:53.582Z" }, + { url = "https://files.pythonhosted.org/packages/d6/5b/844c4defaa34a3df66eb9257087d121d70c201298b96abdf9f492fc2f1bf/pydantic_core-2.46.5-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:82a36973cf8a2ef5406f4fe2edbf8ed0c99629535d959e0b100c76a32535a111", size = 2253238, upload-time = "2026-08-28T09:59:55.484Z" }, + { url = "https://files.pythonhosted.org/packages/f4/64/a4e536cb16d7f61a7fd3120b46c577fc7fa7325992f69c4f52bc786d77d8/pydantic_core-2.46.5-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cdbb78909f52b981d3b2d56b97328d71eb0b974c36bd77c920123a7ebb192829", size = 2065740, upload-time = "2026-08-28T09:59:58.038Z" }, + { url = "https://files.pythonhosted.org/packages/5f/75/aaa38c6bc2d085f6605b34eabdc6a8a4e0b2e61fc9c8e6e52b28e97b3125/pydantic_core-2.46.5-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:52e24eacdb536cade636aa90fb851835222becff8484b7001fdc78cb0290f2aa", size = 2087425, upload-time = "2026-08-28T09:59:59.898Z" }, + { url = "https://files.pythonhosted.org/packages/55/ae/fcab4cfc39aba3689e1d20c8b5250ad280957022c09af2ed9cd585602a5e/pydantic_core-2.46.5-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:37ae34309d7bd8c0d61ab839668058f2a7962ea1fc51d105d2db228fe0618034", size = 2139306, upload-time = "2026-08-28T10:00:03.057Z" }, + { url = "https://files.pythonhosted.org/packages/2d/f4/f1d03a4bc9d9acbc62f4d742b8a319af52f71885079868b2ff8e48a651ee/pydantic_core-2.46.5-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:0cdbada856a1c69a7624a64d3d9aefe79300bd6ef827b43a4f265010b9b55184", size = 2144589, upload-time = "2026-08-28T10:00:05.645Z" }, + { url = "https://files.pythonhosted.org/packages/83/f3/7a53bb1356de514a4cd295f25b6ac39237895620c0462d2592b76c16e114/pydantic_core-2.46.5-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:545f26c504b27c3758439a5e6d9349931f0a04f855668d5fe323c89e82300a38", size = 2288882, upload-time = "2026-08-28T10:00:07.931Z" }, + { url = "https://files.pythonhosted.org/packages/cd/94/5a81583660c175c59d49ffb09f4b3a44debeaf86a19fca664ae1cdd9ee32/pydantic_core-2.46.5-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:ff218293c9c806138dca139765e3b067621be52bcd93cdc14c7711be7ddc90a9", size = 2335210, upload-time = "2026-08-28T10:00:10.177Z" }, + { url = "https://files.pythonhosted.org/packages/5a/9f/5d685c2693b972d1a59c998586e8823712b66603aeff47ee60a4bdaafd37/pydantic_core-2.46.5-cp314-cp314t-win32.whl", hash = "sha256:97cf3eb53a8cccacf9d46686a0926186c9bfb5574f2ed66d3639d5fe117cd3a9", size = 1921180, upload-time = "2026-08-28T10:00:12.35Z" }, + { url = "https://files.pythonhosted.org/packages/70/12/5c94ee16d65a37a15f9e869f5e6256df111154491173801a4c5e800ab548/pydantic_core-2.46.5-cp314-cp314t-win_amd64.whl", hash = "sha256:d2f9fc07a8042a8f95925b35c4f04f469707c981fc33245b6ca187cf5d2dd290", size = 2020515, upload-time = "2026-08-28T10:00:14.774Z" }, + { url = "https://files.pythonhosted.org/packages/63/19/67830dda664e6bdf9285ee2e40f355d0d7d6b92aa0c42e8d217bb8d33d36/pydantic_core-2.46.5-cp314-cp314t-win_arm64.whl", hash = "sha256:acf8a67ba51f4ca9ddbd0e6b3000a65ac51ab734661778b3e7ba64d99a710f2f", size = 1989276, upload-time = "2026-08-28T10:00:16.984Z" }, + { url = "https://files.pythonhosted.org/packages/af/1e/ecca01fce348f7e8afa9572441ff6f7d1cc70d21e4859f33944d10877e1e/pydantic_core-2.46.5-graalpy311-graalpy242_311_native-macosx_10_12_x86_64.whl", hash = "sha256:c14ad3bdc85ee7f318742c457ca3968a92126d144b15721c759033bfb06296c2", size = 2075342, upload-time = "2026-08-28T10:00:51.353Z" }, + { url = "https://files.pythonhosted.org/packages/1f/4c/af80c7a8032dfc897040ad5cb772bebde529a381186499e6e29987f23f8c/pydantic_core-2.46.5-graalpy311-graalpy242_311_native-macosx_11_0_arm64.whl", hash = "sha256:0bddb4020d8f04175865ccd17eff3040874fc11fb593f424edb452653b4b947c", size = 1907219, upload-time = "2026-08-28T10:00:53.438Z" }, + { url = "https://files.pythonhosted.org/packages/be/3e/54d89e2b092e778716bf6153634ef479e955f48c261090be23aa1e0fb0b5/pydantic_core-2.46.5-graalpy311-graalpy242_311_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2471fd51c61c610e1dcf7de44d7299283661654d11264ab4802b303368d69c47", size = 1953393, upload-time = "2026-08-28T10:00:55.58Z" }, + { url = "https://files.pythonhosted.org/packages/ea/89/828ee90cda28ce17bdefaa3a6eaf74fe430e113295a10e6126beca559d6c/pydantic_core-2.46.5-graalpy311-graalpy242_311_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b10ec717381bdbfafef34607824db4c91de69ff085e4fca3b2af91b4fa17e68a", size = 2099024, upload-time = "2026-08-28T10:00:57.794Z" }, + { url = "https://files.pythonhosted.org/packages/df/dd/053c2e4303f791f3b8f8a14ab0b22008e8eb21d868c0c90b4f9be705b76a/pydantic_core-2.46.5-graalpy312-graalpy250_312_native-macosx_10_12_x86_64.whl", hash = "sha256:013d6f3483d81e02e7c328831808f336c8596ee33b4bd4026b9ffb1e960b8942", size = 2062540, upload-time = "2026-08-28T10:01:00.318Z" }, + { url = "https://files.pythonhosted.org/packages/d7/dd/a18df751a5e37dd51bfad7f68e766999125bebe68c9e1d10a493ad01bd63/pydantic_core-2.46.5-graalpy312-graalpy250_312_native-macosx_11_0_arm64.whl", hash = "sha256:e9c134bb666dd54b778b9fc0d2b50cbb7f979b9e3716f26a88c9ab3b6fc1dd0f", size = 1902040, upload-time = "2026-08-28T10:01:02.529Z" }, + { url = "https://files.pythonhosted.org/packages/b7/13/01d40f9d07ce8a779fd6e0bd8ad4fba91309500dd67b869e2e219d261a6d/pydantic_core-2.46.5-graalpy312-graalpy250_312_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:347ec774390c87326a2e4929d58d3f7e8763a104d5d35f4cd595a4c952366433", size = 1967479, upload-time = "2026-08-28T10:01:05.004Z" }, + { url = "https://files.pythonhosted.org/packages/fa/04/c81d4841331c2178b6fb09ae225425e110ed72d990c9fe556c4ec03d1013/pydantic_core-2.46.5-graalpy312-graalpy250_312_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8e24d8f05fa2d28513d94e877e9c75ad66175376209b3977f916e240e623193c", size = 2111034, upload-time = "2026-08-28T10:01:07.345Z" }, + { url = "https://files.pythonhosted.org/packages/20/21/22102e9950b3049526d20e811b95396508377d87651edd2b80d2b3d28659/pydantic_core-2.46.5-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:ab4b66edffb32d9e951efb3814bd104b8367a7501b81b955cacb5726d897389f", size = 2071333, upload-time = "2026-08-28T10:01:09.636Z" }, + { url = "https://files.pythonhosted.org/packages/d8/18/87aefa427d191e6d3ab1447f1efc1cdcac86af1069239b133e8a0fd7f7c9/pydantic_core-2.46.5-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:337639ba62a11acde6ef3aeb08c8ea755f8ef1fe5e513356c0f36a2b0d7568b0", size = 1912713, upload-time = "2026-08-28T10:01:12.285Z" }, + { url = "https://files.pythonhosted.org/packages/1f/93/fd89e9ad49b1805ca94d24ce1088b7d305f05c35ffafcedb9819d03588a0/pydantic_core-2.46.5-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:413a717a410d0c817ef5b786a059415550b3794e1d0c2abffd9efb93a3d9f7b4", size = 2090926, upload-time = "2026-08-28T10:01:15.19Z" }, + { url = "https://files.pythonhosted.org/packages/6f/45/8e59dab6acf8d35f02f0a958980074f31038968bdb2c983fcae9d1efee03/pydantic_core-2.46.5-pp311-pypy311_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:1e449def1945a462c464331254e5a44fca7c3b4f9aedf59ec2f50f8066dd8e25", size = 2131303, upload-time = "2026-08-28T10:01:17.937Z" }, + { url = "https://files.pythonhosted.org/packages/d5/a5/e1d4dc5180dd887a9522efc1f8716b8692b7606b1d3273d7862eaf66be44/pydantic_core-2.46.5-pp311-pypy311_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:a445486499897b88a7d6c310c88ed64dd37b1b59bfd7ae9107490bbb362f47d6", size = 2145128, upload-time = "2026-08-28T10:01:20.694Z" }, + { url = "https://files.pythonhosted.org/packages/c2/d7/ad493864a7fb21c0c4df98f965e2db430cb25a9d7369b5778d5016c09fd9/pydantic_core-2.46.5-pp311-pypy311_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:2d330aaba8621b1edcec8ae2c4050f63b84ccf6d98723a8f212e9684713abf0e", size = 2294560, upload-time = "2026-08-28T10:01:23.495Z" }, + { url = "https://files.pythonhosted.org/packages/02/8e/b41c84c913f29973a268e6c2b5bbf13c95adb9956c126d10da11ba3b2bef/pydantic_core-2.46.5-pp311-pypy311_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:b6acfb46a814762367fb7ba0828b0a17d441b92ce249a0e007474c9072662dda", size = 2317531, upload-time = "2026-08-28T10:01:26.334Z" }, + { url = "https://files.pythonhosted.org/packages/db/1d/068464f23075f66a8f1b806935e9cd9363ee446636ea70d2c22ee8659dbf/pydantic_core-2.46.5-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:d0a24b40877af2de4950252be9d21eaf7fb07660f3c2cae1f56c6b599ada5266", size = 2140686, upload-time = "2026-08-28T10:01:28.947Z" }, +] + +[[package]] +name = "pygments" +version = "2.21.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/49/2e/ced460408999b33da6b31b0021b0f37d329e202d4169aeb164493778f25b/pygments-2.21.0.tar.gz", hash = "sha256:610ca751c9bc2492b38eb9a38a7fbc93edbbb2d7182edaf34e66ae493dee5c8c", size = 5005329, upload-time = "2026-08-17T08:02:48.824Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/71/46/17f022dd3e953bf20a04a028a21ec746d942f8d2af30fa0f124fa0e6a684/pygments-2.21.0-py3-none-any.whl", hash = "sha256:2363c69b61c4a97c838da3b130dcd6468f4848992b21a82f2a63ec34377137d9", size = 1250147, upload-time = "2026-08-17T08:02:44.912Z" }, +] + +[[package]] +name = "pyjwt" +version = "2.15.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions", marker = "python_full_version < '3.11'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/02/a5/5197bfd06417837ac079921c66fa6393f1dea3557272a263cebfef69e432/pyjwt-2.15.0.tar.gz", hash = "sha256:b11c5f9791d7bf51c2b39a81ed669f6b2dbbd669df2942f6c60167e9e3d1abe4", size = 120513, upload-time = "2026-09-23T16:56:00.689Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e8/55/40e45bf052ee8ee12a4dfd785519660f8effa7b065442b91646ec6828619/pyjwt-2.15.0-py3-none-any.whl", hash = "sha256:7a3742debf6b879e912dbb9819ceec1594be812452b78c5f2e2dfc56564954f8", size = 33680, upload-time = "2026-09-23T16:55:59.241Z" }, +] + +[package.optional-dependencies] +crypto = [ + { name = "cryptography" }, +] + +[[package]] +name = "pytest" +version = "9.1.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "colorama", marker = "sys_platform == 'win32'" }, + { name = "exceptiongroup", marker = "python_full_version < '3.11'" }, + { name = "iniconfig" }, + { name = "packaging" }, + { name = "pluggy" }, + { name = "pygments" }, + { name = "tomli", marker = "python_full_version < '3.11'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/e4/47/b9efed96c114afcfa3c9d3fe98a76a1d14c74a9e266d397cf6eb64be5e01/pytest-9.1.1.tar.gz", hash = "sha256:1088fbde8f2b49d95a549a195707afa7a76a3ce9bcadc26b6d71f0ffda5fe313", size = 1636369, upload-time = "2026-06-19T10:58:32.857Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/24/25/1de2678b631f5a49215c6c96fff41ba892b0a34df68d6d80292b1b48aa7f/pytest-9.1.1-py3-none-any.whl", hash = "sha256:37a86b45efb9a47a61a36449063e8e18d0cab3161329fc099eb21783169c4f0c", size = 386536, upload-time = "2026-06-19T10:58:31.347Z" }, +] + +[[package]] +name = "pytest-asyncio" +version = "1.4.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "backports-asyncio-runner", marker = "python_full_version < '3.11'" }, + { name = "pytest" }, + { name = "typing-extensions", marker = "python_full_version < '3.13'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/43/7c/d36d04db312ecf4298932ef77e6e4a9e8ad017906e24e34f0b0c361a2473/pytest_asyncio-1.4.0.tar.gz", hash = "sha256:c6c0d2259945122819f171a32ecea2c349ead889ee28176caaf492143424be42", size = 58514, upload-time = "2026-05-26T09:56:04.083Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/03/e2/08a497ef684b88559c9cc5f4ad53a37e7b99e727094a86d6ea32536d5d3c/pytest_asyncio-1.4.0-py3-none-any.whl", hash = "sha256:933ca923a23075a87fb7070c0ec272a6848489824d887c85c812670932835aa1", size = 16930, upload-time = "2026-05-26T09:56:02.576Z" }, +] + +[[package]] +name = "python-multipart" +version = "0.0.32" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/5b/42/55c32bb9b12693c092ad250a0e82edb5b31ddeda6eb772de5f308b3804ad/python_multipart-0.0.32.tar.gz", hash = "sha256:be54b7f3fa167bb83e4fcd936b887b708f4e57fe75911c02aebf53efaf8d938e", size = 46881, upload-time = "2026-06-04T16:18:58.647Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e1/04/e8135ebd1ad02c56ec633277529b2602ff99ff634be76cdba5744cf554fd/python_multipart-0.0.32-py3-none-any.whl", hash = "sha256:ff6d3f776f16878c894e52e107296ffc890e913c611b1a4ec6c44e2821fe2e23", size = 30042, upload-time = "2026-06-04T16:18:57.319Z" }, +] + +[[package]] +name = "pytokens" +version = "0.4.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/b6/34/b4e015b99031667a7b960f888889c5bd34ef585c85e1cb56a594b92836ac/pytokens-0.4.1.tar.gz", hash = "sha256:292052fe80923aae2260c073f822ceba21f3872ced9a68bb7953b348e561179a", size = 23015, upload-time = "2026-01-30T01:03:45.924Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/42/24/f206113e05cb8ef51b3850e7ef88f20da6f4bf932190ceb48bd3da103e10/pytokens-0.4.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:2a44ed93ea23415c54f3face3b65ef2b844d96aeb3455b8a69b3df6beab6acc5", size = 161522, upload-time = "2026-01-30T01:02:50.393Z" }, + { url = "https://files.pythonhosted.org/packages/d4/e9/06a6bf1b90c2ed81a9c7d2544232fe5d2891d1cd480e8a1809ca354a8eb2/pytokens-0.4.1-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:add8bf86b71a5d9fb5b89f023a80b791e04fba57960aa790cc6125f7f1d39dfe", size = 246945, upload-time = "2026-01-30T01:02:52.399Z" }, + { url = "https://files.pythonhosted.org/packages/69/66/f6fb1007a4c3d8b682d5d65b7c1fb33257587a5f782647091e3408abe0b8/pytokens-0.4.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:670d286910b531c7b7e3c0b453fd8156f250adb140146d234a82219459b9640c", size = 259525, upload-time = "2026-01-30T01:02:53.737Z" }, + { url = "https://files.pythonhosted.org/packages/04/92/086f89b4d622a18418bac74ab5db7f68cf0c21cf7cc92de6c7b919d76c88/pytokens-0.4.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:4e691d7f5186bd2842c14813f79f8884bb03f5995f0575272009982c5ac6c0f7", size = 262693, upload-time = "2026-01-30T01:02:54.871Z" }, + { url = "https://files.pythonhosted.org/packages/b4/7b/8b31c347cf94a3f900bdde750b2e9131575a61fdb620d3d3c75832262137/pytokens-0.4.1-cp310-cp310-win_amd64.whl", hash = "sha256:27b83ad28825978742beef057bfe406ad6ed524b2d28c252c5de7b4a6dd48fa2", size = 103567, upload-time = "2026-01-30T01:02:56.414Z" }, + { url = "https://files.pythonhosted.org/packages/3d/92/790ebe03f07b57e53b10884c329b9a1a308648fc083a6d4a39a10a28c8fc/pytokens-0.4.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:d70e77c55ae8380c91c0c18dea05951482e263982911fc7410b1ffd1dadd3440", size = 160864, upload-time = "2026-01-30T01:02:57.882Z" }, + { url = "https://files.pythonhosted.org/packages/13/25/a4f555281d975bfdd1eba731450e2fe3a95870274da73fb12c40aeae7625/pytokens-0.4.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4a58d057208cb9075c144950d789511220b07636dd2e4708d5645d24de666bdc", size = 248565, upload-time = "2026-01-30T01:02:59.912Z" }, + { url = "https://files.pythonhosted.org/packages/17/50/bc0394b4ad5b1601be22fa43652173d47e4c9efbf0044c62e9a59b747c56/pytokens-0.4.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b49750419d300e2b5a3813cf229d4e5a4c728dae470bcc89867a9ad6f25a722d", size = 260824, upload-time = "2026-01-30T01:03:01.471Z" }, + { url = "https://files.pythonhosted.org/packages/4e/54/3e04f9d92a4be4fc6c80016bc396b923d2a6933ae94b5f557c939c460ee0/pytokens-0.4.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:d9907d61f15bf7261d7e775bd5d7ee4d2930e04424bab1972591918497623a16", size = 264075, upload-time = "2026-01-30T01:03:04.143Z" }, + { url = "https://files.pythonhosted.org/packages/d1/1b/44b0326cb5470a4375f37988aea5d61b5cc52407143303015ebee94abfd6/pytokens-0.4.1-cp311-cp311-win_amd64.whl", hash = "sha256:ee44d0f85b803321710f9239f335aafe16553b39106384cef8e6de40cb4ef2f6", size = 103323, upload-time = "2026-01-30T01:03:05.412Z" }, + { url = "https://files.pythonhosted.org/packages/41/5d/e44573011401fb82e9d51e97f1290ceb377800fb4eed650b96f4753b499c/pytokens-0.4.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:140709331e846b728475786df8aeb27d24f48cbcf7bcd449f8de75cae7a45083", size = 160663, upload-time = "2026-01-30T01:03:06.473Z" }, + { url = "https://files.pythonhosted.org/packages/f0/e6/5bbc3019f8e6f21d09c41f8b8654536117e5e211a85d89212d59cbdab381/pytokens-0.4.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6d6c4268598f762bc8e91f5dbf2ab2f61f7b95bdc07953b602db879b3c8c18e1", size = 255626, upload-time = "2026-01-30T01:03:08.177Z" }, + { url = "https://files.pythonhosted.org/packages/bf/3c/2d5297d82286f6f3d92770289fd439956b201c0a4fc7e72efb9b2293758e/pytokens-0.4.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:24afde1f53d95348b5a0eb19488661147285ca4dd7ed752bbc3e1c6242a304d1", size = 269779, upload-time = "2026-01-30T01:03:09.756Z" }, + { url = "https://files.pythonhosted.org/packages/20/01/7436e9ad693cebda0551203e0bf28f7669976c60ad07d6402098208476de/pytokens-0.4.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:5ad948d085ed6c16413eb5fec6b3e02fa00dc29a2534f088d3302c47eb59adf9", size = 268076, upload-time = "2026-01-30T01:03:10.957Z" }, + { url = "https://files.pythonhosted.org/packages/2e/df/533c82a3c752ba13ae7ef238b7f8cdd272cf1475f03c63ac6cf3fcfb00b6/pytokens-0.4.1-cp312-cp312-win_amd64.whl", hash = "sha256:3f901fe783e06e48e8cbdc82d631fca8f118333798193e026a50ce1b3757ea68", size = 103552, upload-time = "2026-01-30T01:03:12.066Z" }, + { url = "https://files.pythonhosted.org/packages/cb/dc/08b1a080372afda3cceb4f3c0a7ba2bde9d6a5241f1edb02a22a019ee147/pytokens-0.4.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:8bdb9d0ce90cbf99c525e75a2fa415144fd570a1ba987380190e8b786bc6ef9b", size = 160720, upload-time = "2026-01-30T01:03:13.843Z" }, + { url = "https://files.pythonhosted.org/packages/64/0c/41ea22205da480837a700e395507e6a24425151dfb7ead73343d6e2d7ffe/pytokens-0.4.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5502408cab1cb18e128570f8d598981c68a50d0cbd7c61312a90507cd3a1276f", size = 254204, upload-time = "2026-01-30T01:03:14.886Z" }, + { url = "https://files.pythonhosted.org/packages/e0/d2/afe5c7f8607018beb99971489dbb846508f1b8f351fcefc225fcf4b2adc0/pytokens-0.4.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:29d1d8fb1030af4d231789959f21821ab6325e463f0503a61d204343c9b355d1", size = 268423, upload-time = "2026-01-30T01:03:15.936Z" }, + { url = "https://files.pythonhosted.org/packages/68/d4/00ffdbd370410c04e9591da9220a68dc1693ef7499173eb3e30d06e05ed1/pytokens-0.4.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:970b08dd6b86058b6dc07efe9e98414f5102974716232d10f32ff39701e841c4", size = 266859, upload-time = "2026-01-30T01:03:17.458Z" }, + { url = "https://files.pythonhosted.org/packages/a7/c9/c3161313b4ca0c601eeefabd3d3b576edaa9afdefd32da97210700e47652/pytokens-0.4.1-cp313-cp313-win_amd64.whl", hash = "sha256:9bd7d7f544d362576be74f9d5901a22f317efc20046efe2034dced238cbbfe78", size = 103520, upload-time = "2026-01-30T01:03:18.652Z" }, + { url = "https://files.pythonhosted.org/packages/8f/a7/b470f672e6fc5fee0a01d9e75005a0e617e162381974213a945fcd274843/pytokens-0.4.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:4a14d5f5fc78ce85e426aa159489e2d5961acf0e47575e08f35584009178e321", size = 160821, upload-time = "2026-01-30T01:03:19.684Z" }, + { url = "https://files.pythonhosted.org/packages/80/98/e83a36fe8d170c911f864bfded690d2542bfcfacb9c649d11a9e6eb9dc41/pytokens-0.4.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:97f50fd18543be72da51dd505e2ed20d2228c74e0464e4262e4899797803d7fa", size = 254263, upload-time = "2026-01-30T01:03:20.834Z" }, + { url = "https://files.pythonhosted.org/packages/0f/95/70d7041273890f9f97a24234c00b746e8da86df462620194cef1d411ddeb/pytokens-0.4.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:dc74c035f9bfca0255c1af77ddd2d6ae8419012805453e4b0e7513e17904545d", size = 268071, upload-time = "2026-01-30T01:03:21.888Z" }, + { url = "https://files.pythonhosted.org/packages/da/79/76e6d09ae19c99404656d7db9c35dfd20f2086f3eb6ecb496b5b31163bad/pytokens-0.4.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:f66a6bbe741bd431f6d741e617e0f39ec7257ca1f89089593479347cc4d13324", size = 271716, upload-time = "2026-01-30T01:03:23.633Z" }, + { url = "https://files.pythonhosted.org/packages/79/37/482e55fa1602e0a7ff012661d8c946bafdc05e480ea5a32f4f7e336d4aa9/pytokens-0.4.1-cp314-cp314-win_amd64.whl", hash = "sha256:b35d7e5ad269804f6697727702da3c517bb8a5228afa450ab0fa787732055fc9", size = 104539, upload-time = "2026-01-30T01:03:24.788Z" }, + { url = "https://files.pythonhosted.org/packages/30/e8/20e7db907c23f3d63b0be3b8a4fd1927f6da2395f5bcc7f72242bb963dfe/pytokens-0.4.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:8fcb9ba3709ff77e77f1c7022ff11d13553f3c30299a9fe246a166903e9091eb", size = 168474, upload-time = "2026-01-30T01:03:26.428Z" }, + { url = "https://files.pythonhosted.org/packages/d6/81/88a95ee9fafdd8f5f3452107748fd04c24930d500b9aba9738f3ade642cc/pytokens-0.4.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:79fc6b8699564e1f9b521582c35435f1bd32dd06822322ec44afdeba666d8cb3", size = 290473, upload-time = "2026-01-30T01:03:27.415Z" }, + { url = "https://files.pythonhosted.org/packages/cf/35/3aa899645e29b6375b4aed9f8d21df219e7c958c4c186b465e42ee0a06bf/pytokens-0.4.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d31b97b3de0f61571a124a00ffe9a81fb9939146c122c11060725bd5aea79975", size = 303485, upload-time = "2026-01-30T01:03:28.558Z" }, + { url = "https://files.pythonhosted.org/packages/52/a0/07907b6ff512674d9b201859f7d212298c44933633c946703a20c25e9d81/pytokens-0.4.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:967cf6e3fd4adf7de8fc73cd3043754ae79c36475c1c11d514fc72cf5490094a", size = 306698, upload-time = "2026-01-30T01:03:29.653Z" }, + { url = "https://files.pythonhosted.org/packages/39/2a/cbbf9250020a4a8dd53ba83a46c097b69e5eb49dd14e708f496f548c6612/pytokens-0.4.1-cp314-cp314t-win_amd64.whl", hash = "sha256:584c80c24b078eec1e227079d56dc22ff755e0ba8654d8383b2c549107528918", size = 116287, upload-time = "2026-01-30T01:03:30.912Z" }, + { url = "https://files.pythonhosted.org/packages/c6/78/397db326746f0a342855b81216ae1f0a32965deccfd7c830a2dbc66d2483/pytokens-0.4.1-py3-none-any.whl", hash = "sha256:26cef14744a8385f35d0e095dc8b3a7583f6c953c2e3d269c7f82484bf5ad2de", size = 13729, upload-time = "2026-01-30T01:03:45.029Z" }, +] + +[[package]] +name = "pywin32" +version = "312" +source = { registry = "https://pypi.org/simple" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/fe/1b/9cfdeac80ee45bebbbcb31f1b7b99a0d81a1c72de48d837be984e0e88b1d/pywin32-312-cp310-cp310-win32.whl", hash = "sha256:772235332b5d1024c696f11cea1ae4be7930f0a8b894bb43db14e3f435f1ff7e", size = 6361387, upload-time = "2026-06-04T07:49:14.329Z" }, + { url = "https://files.pythonhosted.org/packages/33/b1/7afc96d041d982c27bc2df6f853d43f01fd273e3d39d04be3647ddeb533d/pywin32-312-cp310-cp310-win_amd64.whl", hash = "sha256:5dbc35d2b5320dc07f25fa31269cfb767471002b17de5eb067d03da68c7cb2db", size = 6926780, upload-time = "2026-06-04T07:49:16.881Z" }, + { url = "https://files.pythonhosted.org/packages/ce/3a/4140da9ad54108e517f4a16b2d83da3033e08662144623e1239587cb7db6/pywin32-312-cp310-cp310-win_arm64.whl", hash = "sha256:3020656e34f1cf7faeb7bccd2b84653a607c6ff0c55ada85e6487d61716deabd", size = 4307203, upload-time = "2026-06-04T07:49:18.993Z" }, + { url = "https://files.pythonhosted.org/packages/1f/f5/10a6e845a00fc5e7afd0a988b744f403d4d57162a28d160a093c4d9322f0/pywin32-312-cp311-cp311-win32.whl", hash = "sha256:17948aeadbdb091f0ced6ef0841620794e68327b94ee415571c1203594b7215c", size = 6362659, upload-time = "2026-06-04T07:49:21.349Z" }, + { url = "https://files.pythonhosted.org/packages/35/c4/dcd2d62b5944b6d5db53413a5899016ccd57ffcb7278f3f81655d25d2027/pywin32-312-cp311-cp311-win_amd64.whl", hash = "sha256:d11417d84412f859b722fad0841b3614459ed0047f7542d8362e77884f6b6e8a", size = 6928825, upload-time = "2026-06-04T07:49:23.934Z" }, + { url = "https://files.pythonhosted.org/packages/b7/56/3cbb433fe4501cdba2eb9040f56a4e1a8243faa4186b25295564d1a7a79d/pywin32-312-cp311-cp311-win_arm64.whl", hash = "sha256:b2200a054ca6d6625c4842fc56a4976a4b47f96b73dbe5538c3f813a80359f47", size = 6721875, upload-time = "2026-06-04T07:49:26.416Z" }, + { url = "https://files.pythonhosted.org/packages/83/ff/32aa7d2ed0ab12b323aaa64f9b75e6ad4f8fd09f9ccfc28c79414d46838d/pywin32-312-cp312-cp312-win32.whl", hash = "sha256:dab4f65ac9c4e48400a2a0530c46c3c579cd5905ecd11b80692373915269208b", size = 6371877, upload-time = "2026-06-04T07:49:28.836Z" }, + { url = "https://files.pythonhosted.org/packages/03/d9/77040d3b43df3f3be32ea289433d660d2727f5ba327bc73be835127d9d60/pywin32-312-cp312-cp312-win_amd64.whl", hash = "sha256:b457f6d628a47e8a7346ce22acb7e1a46a4a78b52e1d17e1af56871bd19a93bc", size = 6914841, upload-time = "2026-06-04T07:49:31.85Z" }, + { url = "https://files.pythonhosted.org/packages/e3/cc/7b1ec671775756020a0ee7f4feeaf3c568f0ab86bd3900088cf986937a92/pywin32-312-cp312-cp312-win_arm64.whl", hash = "sha256:6017c58e12f6809fbb0555b75df144c2922a9ffd18e4b9b5afa863b6c1a9d950", size = 6727901, upload-time = "2026-06-04T07:49:34.244Z" }, + { url = "https://files.pythonhosted.org/packages/2d/41/12fbfd7f36ed2146d8bc9de96c2741296bf0d490b98508496cff322e274c/pywin32-312-cp313-cp313-win32.whl", hash = "sha256:7a27df850933d16a8eabfbaeb73d52b273e2da667f80d70b01a89d1f6828d02c", size = 6370184, upload-time = "2026-06-04T07:49:36.253Z" }, + { url = "https://files.pythonhosted.org/packages/ba/db/36a78e3403099d31d9746d13fdcde5accc43c1155f375a34d15983a479a7/pywin32-312-cp313-cp313-win_amd64.whl", hash = "sha256:c53e878d15a1c44788082bfe712a905433473aa38f86375b7cf8b45e3acbaaf9", size = 6914298, upload-time = "2026-06-04T07:49:38.876Z" }, + { url = "https://files.pythonhosted.org/packages/84/37/c1697194092b76de9ed47ca124323f02c57ffc8a45c06f88a3d5acaf01eb/pywin32-312-cp313-cp313-win_arm64.whl", hash = "sha256:59aba5d5940842075343a5ddc6b11f1cdf0d1567fe745290359dfbcc7c2eb831", size = 6727640, upload-time = "2026-06-04T07:49:41.083Z" }, + { url = "https://files.pythonhosted.org/packages/fc/2b/1f3cded5822fd49c02f40544cbb5f58c7cfd6b1694869fd476cb6170ee97/pywin32-312-cp314-cp314-win32.whl", hash = "sha256:a77a90fbb6881238d2ca9c6fd797b25817f3768fe78d214a90137ff055a75f5b", size = 6468928, upload-time = "2026-06-04T07:49:43.188Z" }, + { url = "https://files.pythonhosted.org/packages/21/82/3bf86d2e2808902013132e1ce905a7da0da53790f3836c64bf44d55e24f3/pywin32-312-cp314-cp314-win_amd64.whl", hash = "sha256:a4dd3a848290ef724347b19f301045831d8e802fa4464f491b98b1e0a081432e", size = 7024157, upload-time = "2026-06-04T07:49:45.34Z" }, + { url = "https://files.pythonhosted.org/packages/a4/0e/73f6d6800b4f27655abd9e9f6aaeaefcddb2b946e4674efa2bab184a7f7b/pywin32-312-cp314-cp314-win_arm64.whl", hash = "sha256:9fce94568364e0155e6dfb781ac5d95903be8baf28670632beab1b523f300daa", size = 6839598, upload-time = "2026-06-04T07:49:47.613Z" }, + { url = "https://files.pythonhosted.org/packages/eb/61/caa39686032d2ebdd04ff0ab5cbe163126c0066d98e00c9018646e42393b/pywin32-312-cp315-cp315-win32.whl", hash = "sha256:5c1fbe4a937a73ae9297384a3da38518cbc694c68ad8a809b2e19acd350f03ed", size = 6471159, upload-time = "2026-06-04T07:49:50.035Z" }, + { url = "https://files.pythonhosted.org/packages/0f/cd/7e1de64a4a6f69c04214169657ccab0d93a670ea50e35eb8f489d7378249/pywin32-312-cp315-cp315-win_amd64.whl", hash = "sha256:c2f03a0f73f804a13c2735b99392b0cd426bb4f2c4d0178e5ac966a0f21618d5", size = 7025293, upload-time = "2026-06-04T07:49:54.857Z" }, + { url = "https://files.pythonhosted.org/packages/23/ed/4532e9388e65fa16b46776ef47ad631a64eda1631884488af707666350ed/pywin32-312-cp315-cp315-win_arm64.whl", hash = "sha256:a8597d28f267b39074aef51fa593530082b39cbe5a074226096857b1fed2dfb9", size = 6840337, upload-time = "2026-06-04T07:49:57.531Z" }, +] + +[[package]] +name = "pyyaml" +version = "6.0.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/05/8e/961c0007c59b8dd7729d542c61a4d537767a59645b82a0b521206e1e25c2/pyyaml-6.0.3.tar.gz", hash = "sha256:d76623373421df22fb4cf8817020cbb7ef15c725b9d5e45f17e189bfc384190f", size = 130960, upload-time = "2025-09-25T21:33:16.546Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f4/a0/39350dd17dd6d6c6507025c0e53aef67a9293a6d37d3511f23ea510d5800/pyyaml-6.0.3-cp310-cp310-macosx_10_13_x86_64.whl", hash = "sha256:214ed4befebe12df36bcc8bc2b64b396ca31be9304b8f59e25c11cf94a4c033b", size = 184227, upload-time = "2025-09-25T21:31:46.04Z" }, + { url = "https://files.pythonhosted.org/packages/05/14/52d505b5c59ce73244f59c7a50ecf47093ce4765f116cdb98286a71eeca2/pyyaml-6.0.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:02ea2dfa234451bbb8772601d7b8e426c2bfa197136796224e50e35a78777956", size = 174019, upload-time = "2025-09-25T21:31:47.706Z" }, + { url = "https://files.pythonhosted.org/packages/43/f7/0e6a5ae5599c838c696adb4e6330a59f463265bfa1e116cfd1fbb0abaaae/pyyaml-6.0.3-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b30236e45cf30d2b8e7b3e85881719e98507abed1011bf463a8fa23e9c3e98a8", size = 740646, upload-time = "2025-09-25T21:31:49.21Z" }, + { url = "https://files.pythonhosted.org/packages/2f/3a/61b9db1d28f00f8fd0ae760459a5c4bf1b941baf714e207b6eb0657d2578/pyyaml-6.0.3-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:66291b10affd76d76f54fad28e22e51719ef9ba22b29e1d7d03d6777a9174198", size = 840793, upload-time = "2025-09-25T21:31:50.735Z" }, + { url = "https://files.pythonhosted.org/packages/7a/1e/7acc4f0e74c4b3d9531e24739e0ab832a5edf40e64fbae1a9c01941cabd7/pyyaml-6.0.3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9c7708761fccb9397fe64bbc0395abcae8c4bf7b0eac081e12b809bf47700d0b", size = 770293, upload-time = "2025-09-25T21:31:51.828Z" }, + { url = "https://files.pythonhosted.org/packages/8b/ef/abd085f06853af0cd59fa5f913d61a8eab65d7639ff2a658d18a25d6a89d/pyyaml-6.0.3-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:418cf3f2111bc80e0933b2cd8cd04f286338bb88bdc7bc8e6dd775ebde60b5e0", size = 732872, upload-time = "2025-09-25T21:31:53.282Z" }, + { url = "https://files.pythonhosted.org/packages/1f/15/2bc9c8faf6450a8b3c9fc5448ed869c599c0a74ba2669772b1f3a0040180/pyyaml-6.0.3-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:5e0b74767e5f8c593e8c9b5912019159ed0533c70051e9cce3e8b6aa699fcd69", size = 758828, upload-time = "2025-09-25T21:31:54.807Z" }, + { url = "https://files.pythonhosted.org/packages/a3/00/531e92e88c00f4333ce359e50c19b8d1de9fe8d581b1534e35ccfbc5f393/pyyaml-6.0.3-cp310-cp310-win32.whl", hash = "sha256:28c8d926f98f432f88adc23edf2e6d4921ac26fb084b028c733d01868d19007e", size = 142415, upload-time = "2025-09-25T21:31:55.885Z" }, + { url = "https://files.pythonhosted.org/packages/2a/fa/926c003379b19fca39dd4634818b00dec6c62d87faf628d1394e137354d4/pyyaml-6.0.3-cp310-cp310-win_amd64.whl", hash = "sha256:bdb2c67c6c1390b63c6ff89f210c8fd09d9a1217a465701eac7316313c915e4c", size = 158561, upload-time = "2025-09-25T21:31:57.406Z" }, + { url = "https://files.pythonhosted.org/packages/6d/16/a95b6757765b7b031c9374925bb718d55e0a9ba8a1b6a12d25962ea44347/pyyaml-6.0.3-cp311-cp311-macosx_10_13_x86_64.whl", hash = "sha256:44edc647873928551a01e7a563d7452ccdebee747728c1080d881d68af7b997e", size = 185826, upload-time = "2025-09-25T21:31:58.655Z" }, + { url = "https://files.pythonhosted.org/packages/16/19/13de8e4377ed53079ee996e1ab0a9c33ec2faf808a4647b7b4c0d46dd239/pyyaml-6.0.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:652cb6edd41e718550aad172851962662ff2681490a8a711af6a4d288dd96824", size = 175577, upload-time = "2025-09-25T21:32:00.088Z" }, + { url = "https://files.pythonhosted.org/packages/0c/62/d2eb46264d4b157dae1275b573017abec435397aa59cbcdab6fc978a8af4/pyyaml-6.0.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:10892704fc220243f5305762e276552a0395f7beb4dbf9b14ec8fd43b57f126c", size = 775556, upload-time = "2025-09-25T21:32:01.31Z" }, + { url = "https://files.pythonhosted.org/packages/10/cb/16c3f2cf3266edd25aaa00d6c4350381c8b012ed6f5276675b9eba8d9ff4/pyyaml-6.0.3-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:850774a7879607d3a6f50d36d04f00ee69e7fc816450e5f7e58d7f17f1ae5c00", size = 882114, upload-time = "2025-09-25T21:32:03.376Z" }, + { url = "https://files.pythonhosted.org/packages/71/60/917329f640924b18ff085ab889a11c763e0b573da888e8404ff486657602/pyyaml-6.0.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b8bb0864c5a28024fac8a632c443c87c5aa6f215c0b126c449ae1a150412f31d", size = 806638, upload-time = "2025-09-25T21:32:04.553Z" }, + { url = "https://files.pythonhosted.org/packages/dd/6f/529b0f316a9fd167281a6c3826b5583e6192dba792dd55e3203d3f8e655a/pyyaml-6.0.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:1d37d57ad971609cf3c53ba6a7e365e40660e3be0e5175fa9f2365a379d6095a", size = 767463, upload-time = "2025-09-25T21:32:06.152Z" }, + { url = "https://files.pythonhosted.org/packages/f2/6a/b627b4e0c1dd03718543519ffb2f1deea4a1e6d42fbab8021936a4d22589/pyyaml-6.0.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:37503bfbfc9d2c40b344d06b2199cf0e96e97957ab1c1b546fd4f87e53e5d3e4", size = 794986, upload-time = "2025-09-25T21:32:07.367Z" }, + { url = "https://files.pythonhosted.org/packages/45/91/47a6e1c42d9ee337c4839208f30d9f09caa9f720ec7582917b264defc875/pyyaml-6.0.3-cp311-cp311-win32.whl", hash = "sha256:8098f252adfa6c80ab48096053f512f2321f0b998f98150cea9bd23d83e1467b", size = 142543, upload-time = "2025-09-25T21:32:08.95Z" }, + { url = "https://files.pythonhosted.org/packages/da/e3/ea007450a105ae919a72393cb06f122f288ef60bba2dc64b26e2646fa315/pyyaml-6.0.3-cp311-cp311-win_amd64.whl", hash = "sha256:9f3bfb4965eb874431221a3ff3fdcddc7e74e3b07799e0e84ca4a0f867d449bf", size = 158763, upload-time = "2025-09-25T21:32:09.96Z" }, + { url = "https://files.pythonhosted.org/packages/d1/33/422b98d2195232ca1826284a76852ad5a86fe23e31b009c9886b2d0fb8b2/pyyaml-6.0.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:7f047e29dcae44602496db43be01ad42fc6f1cc0d8cd6c83d342306c32270196", size = 182063, upload-time = "2025-09-25T21:32:11.445Z" }, + { url = "https://files.pythonhosted.org/packages/89/a0/6cf41a19a1f2f3feab0e9c0b74134aa2ce6849093d5517a0c550fe37a648/pyyaml-6.0.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:fc09d0aa354569bc501d4e787133afc08552722d3ab34836a80547331bb5d4a0", size = 173973, upload-time = "2025-09-25T21:32:12.492Z" }, + { url = "https://files.pythonhosted.org/packages/ed/23/7a778b6bd0b9a8039df8b1b1d80e2e2ad78aa04171592c8a5c43a56a6af4/pyyaml-6.0.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9149cad251584d5fb4981be1ecde53a1ca46c891a79788c0df828d2f166bda28", size = 775116, upload-time = "2025-09-25T21:32:13.652Z" }, + { url = "https://files.pythonhosted.org/packages/65/30/d7353c338e12baef4ecc1b09e877c1970bd3382789c159b4f89d6a70dc09/pyyaml-6.0.3-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5fdec68f91a0c6739b380c83b951e2c72ac0197ace422360e6d5a959d8d97b2c", size = 844011, upload-time = "2025-09-25T21:32:15.21Z" }, + { url = "https://files.pythonhosted.org/packages/8b/9d/b3589d3877982d4f2329302ef98a8026e7f4443c765c46cfecc8858c6b4b/pyyaml-6.0.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ba1cc08a7ccde2d2ec775841541641e4548226580ab850948cbfda66a1befcdc", size = 807870, upload-time = "2025-09-25T21:32:16.431Z" }, + { url = "https://files.pythonhosted.org/packages/05/c0/b3be26a015601b822b97d9149ff8cb5ead58c66f981e04fedf4e762f4bd4/pyyaml-6.0.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:8dc52c23056b9ddd46818a57b78404882310fb473d63f17b07d5c40421e47f8e", size = 761089, upload-time = "2025-09-25T21:32:17.56Z" }, + { url = "https://files.pythonhosted.org/packages/be/8e/98435a21d1d4b46590d5459a22d88128103f8da4c2d4cb8f14f2a96504e1/pyyaml-6.0.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:41715c910c881bc081f1e8872880d3c650acf13dfa8214bad49ed4cede7c34ea", size = 790181, upload-time = "2025-09-25T21:32:18.834Z" }, + { url = "https://files.pythonhosted.org/packages/74/93/7baea19427dcfbe1e5a372d81473250b379f04b1bd3c4c5ff825e2327202/pyyaml-6.0.3-cp312-cp312-win32.whl", hash = "sha256:96b533f0e99f6579b3d4d4995707cf36df9100d67e0c8303a0c55b27b5f99bc5", size = 137658, upload-time = "2025-09-25T21:32:20.209Z" }, + { url = "https://files.pythonhosted.org/packages/86/bf/899e81e4cce32febab4fb42bb97dcdf66bc135272882d1987881a4b519e9/pyyaml-6.0.3-cp312-cp312-win_amd64.whl", hash = "sha256:5fcd34e47f6e0b794d17de1b4ff496c00986e1c83f7ab2fb8fcfe9616ff7477b", size = 154003, upload-time = "2025-09-25T21:32:21.167Z" }, + { url = "https://files.pythonhosted.org/packages/1a/08/67bd04656199bbb51dbed1439b7f27601dfb576fb864099c7ef0c3e55531/pyyaml-6.0.3-cp312-cp312-win_arm64.whl", hash = "sha256:64386e5e707d03a7e172c0701abfb7e10f0fb753ee1d773128192742712a98fd", size = 140344, upload-time = "2025-09-25T21:32:22.617Z" }, + { url = "https://files.pythonhosted.org/packages/d1/11/0fd08f8192109f7169db964b5707a2f1e8b745d4e239b784a5a1dd80d1db/pyyaml-6.0.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:8da9669d359f02c0b91ccc01cac4a67f16afec0dac22c2ad09f46bee0697eba8", size = 181669, upload-time = "2025-09-25T21:32:23.673Z" }, + { url = "https://files.pythonhosted.org/packages/b1/16/95309993f1d3748cd644e02e38b75d50cbc0d9561d21f390a76242ce073f/pyyaml-6.0.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:2283a07e2c21a2aa78d9c4442724ec1eb15f5e42a723b99cb3d822d48f5f7ad1", size = 173252, upload-time = "2025-09-25T21:32:25.149Z" }, + { url = "https://files.pythonhosted.org/packages/50/31/b20f376d3f810b9b2371e72ef5adb33879b25edb7a6d072cb7ca0c486398/pyyaml-6.0.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ee2922902c45ae8ccada2c5b501ab86c36525b883eff4255313a253a3160861c", size = 767081, upload-time = "2025-09-25T21:32:26.575Z" }, + { url = "https://files.pythonhosted.org/packages/49/1e/a55ca81e949270d5d4432fbbd19dfea5321eda7c41a849d443dc92fd1ff7/pyyaml-6.0.3-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a33284e20b78bd4a18c8c2282d549d10bc8408a2a7ff57653c0cf0b9be0afce5", size = 841159, upload-time = "2025-09-25T21:32:27.727Z" }, + { url = "https://files.pythonhosted.org/packages/74/27/e5b8f34d02d9995b80abcef563ea1f8b56d20134d8f4e5e81733b1feceb2/pyyaml-6.0.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0f29edc409a6392443abf94b9cf89ce99889a1dd5376d94316ae5145dfedd5d6", size = 801626, upload-time = "2025-09-25T21:32:28.878Z" }, + { url = "https://files.pythonhosted.org/packages/f9/11/ba845c23988798f40e52ba45f34849aa8a1f2d4af4b798588010792ebad6/pyyaml-6.0.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f7057c9a337546edc7973c0d3ba84ddcdf0daa14533c2065749c9075001090e6", size = 753613, upload-time = "2025-09-25T21:32:30.178Z" }, + { url = "https://files.pythonhosted.org/packages/3d/e0/7966e1a7bfc0a45bf0a7fb6b98ea03fc9b8d84fa7f2229e9659680b69ee3/pyyaml-6.0.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:eda16858a3cab07b80edaf74336ece1f986ba330fdb8ee0d6c0d68fe82bc96be", size = 794115, upload-time = "2025-09-25T21:32:31.353Z" }, + { url = "https://files.pythonhosted.org/packages/de/94/980b50a6531b3019e45ddeada0626d45fa85cbe22300844a7983285bed3b/pyyaml-6.0.3-cp313-cp313-win32.whl", hash = "sha256:d0eae10f8159e8fdad514efdc92d74fd8d682c933a6dd088030f3834bc8e6b26", size = 137427, upload-time = "2025-09-25T21:32:32.58Z" }, + { url = "https://files.pythonhosted.org/packages/97/c9/39d5b874e8b28845e4ec2202b5da735d0199dbe5b8fb85f91398814a9a46/pyyaml-6.0.3-cp313-cp313-win_amd64.whl", hash = "sha256:79005a0d97d5ddabfeeea4cf676af11e647e41d81c9a7722a193022accdb6b7c", size = 154090, upload-time = "2025-09-25T21:32:33.659Z" }, + { url = "https://files.pythonhosted.org/packages/73/e8/2bdf3ca2090f68bb3d75b44da7bbc71843b19c9f2b9cb9b0f4ab7a5a4329/pyyaml-6.0.3-cp313-cp313-win_arm64.whl", hash = "sha256:5498cd1645aa724a7c71c8f378eb29ebe23da2fc0d7a08071d89469bf1d2defb", size = 140246, upload-time = "2025-09-25T21:32:34.663Z" }, + { url = "https://files.pythonhosted.org/packages/9d/8c/f4bd7f6465179953d3ac9bc44ac1a8a3e6122cf8ada906b4f96c60172d43/pyyaml-6.0.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:8d1fab6bb153a416f9aeb4b8763bc0f22a5586065f86f7664fc23339fc1c1fac", size = 181814, upload-time = "2025-09-25T21:32:35.712Z" }, + { url = "https://files.pythonhosted.org/packages/bd/9c/4d95bb87eb2063d20db7b60faa3840c1b18025517ae857371c4dd55a6b3a/pyyaml-6.0.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:34d5fcd24b8445fadc33f9cf348c1047101756fd760b4dacb5c3e99755703310", size = 173809, upload-time = "2025-09-25T21:32:36.789Z" }, + { url = "https://files.pythonhosted.org/packages/92/b5/47e807c2623074914e29dabd16cbbdd4bf5e9b2db9f8090fa64411fc5382/pyyaml-6.0.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:501a031947e3a9025ed4405a168e6ef5ae3126c59f90ce0cd6f2bfc477be31b7", size = 766454, upload-time = "2025-09-25T21:32:37.966Z" }, + { url = "https://files.pythonhosted.org/packages/02/9e/e5e9b168be58564121efb3de6859c452fccde0ab093d8438905899a3a483/pyyaml-6.0.3-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b3bc83488de33889877a0f2543ade9f70c67d66d9ebb4ac959502e12de895788", size = 836355, upload-time = "2025-09-25T21:32:39.178Z" }, + { url = "https://files.pythonhosted.org/packages/88/f9/16491d7ed2a919954993e48aa941b200f38040928474c9e85ea9e64222c3/pyyaml-6.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c458b6d084f9b935061bc36216e8a69a7e293a2f1e68bf956dcd9e6cbcd143f5", size = 794175, upload-time = "2025-09-25T21:32:40.865Z" }, + { url = "https://files.pythonhosted.org/packages/dd/3f/5989debef34dc6397317802b527dbbafb2b4760878a53d4166579111411e/pyyaml-6.0.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7c6610def4f163542a622a73fb39f534f8c101d690126992300bf3207eab9764", size = 755228, upload-time = "2025-09-25T21:32:42.084Z" }, + { url = "https://files.pythonhosted.org/packages/d7/ce/af88a49043cd2e265be63d083fc75b27b6ed062f5f9fd6cdc223ad62f03e/pyyaml-6.0.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:5190d403f121660ce8d1d2c1bb2ef1bd05b5f68533fc5c2ea899bd15f4399b35", size = 789194, upload-time = "2025-09-25T21:32:43.362Z" }, + { url = "https://files.pythonhosted.org/packages/23/20/bb6982b26a40bb43951265ba29d4c246ef0ff59c9fdcdf0ed04e0687de4d/pyyaml-6.0.3-cp314-cp314-win_amd64.whl", hash = "sha256:4a2e8cebe2ff6ab7d1050ecd59c25d4c8bd7e6f400f5f82b96557ac0abafd0ac", size = 156429, upload-time = "2025-09-25T21:32:57.844Z" }, + { url = "https://files.pythonhosted.org/packages/f4/f4/a4541072bb9422c8a883ab55255f918fa378ecf083f5b85e87fc2b4eda1b/pyyaml-6.0.3-cp314-cp314-win_arm64.whl", hash = "sha256:93dda82c9c22deb0a405ea4dc5f2d0cda384168e466364dec6255b293923b2f3", size = 143912, upload-time = "2025-09-25T21:32:59.247Z" }, + { url = "https://files.pythonhosted.org/packages/7c/f9/07dd09ae774e4616edf6cda684ee78f97777bdd15847253637a6f052a62f/pyyaml-6.0.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:02893d100e99e03eda1c8fd5c441d8c60103fd175728e23e431db1b589cf5ab3", size = 189108, upload-time = "2025-09-25T21:32:44.377Z" }, + { url = "https://files.pythonhosted.org/packages/4e/78/8d08c9fb7ce09ad8c38ad533c1191cf27f7ae1effe5bb9400a46d9437fcf/pyyaml-6.0.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:c1ff362665ae507275af2853520967820d9124984e0f7466736aea23d8611fba", size = 183641, upload-time = "2025-09-25T21:32:45.407Z" }, + { url = "https://files.pythonhosted.org/packages/7b/5b/3babb19104a46945cf816d047db2788bcaf8c94527a805610b0289a01c6b/pyyaml-6.0.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6adc77889b628398debc7b65c073bcb99c4a0237b248cacaf3fe8a557563ef6c", size = 831901, upload-time = "2025-09-25T21:32:48.83Z" }, + { url = "https://files.pythonhosted.org/packages/8b/cc/dff0684d8dc44da4d22a13f35f073d558c268780ce3c6ba1b87055bb0b87/pyyaml-6.0.3-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a80cb027f6b349846a3bf6d73b5e95e782175e52f22108cfa17876aaeff93702", size = 861132, upload-time = "2025-09-25T21:32:50.149Z" }, + { url = "https://files.pythonhosted.org/packages/b1/5e/f77dc6b9036943e285ba76b49e118d9ea929885becb0a29ba8a7c75e29fe/pyyaml-6.0.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:00c4bdeba853cc34e7dd471f16b4114f4162dc03e6b7afcc2128711f0eca823c", size = 839261, upload-time = "2025-09-25T21:32:51.808Z" }, + { url = "https://files.pythonhosted.org/packages/ce/88/a9db1376aa2a228197c58b37302f284b5617f56a5d959fd1763fb1675ce6/pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:66e1674c3ef6f541c35191caae2d429b967b99e02040f5ba928632d9a7f0f065", size = 805272, upload-time = "2025-09-25T21:32:52.941Z" }, + { url = "https://files.pythonhosted.org/packages/da/92/1446574745d74df0c92e6aa4a7b0b3130706a4142b2d1a5869f2eaa423c6/pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:16249ee61e95f858e83976573de0f5b2893b3677ba71c9dd36b9cf8be9ac6d65", size = 829923, upload-time = "2025-09-25T21:32:54.537Z" }, + { url = "https://files.pythonhosted.org/packages/f0/7a/1c7270340330e575b92f397352af856a8c06f230aa3e76f86b39d01b416a/pyyaml-6.0.3-cp314-cp314t-win_amd64.whl", hash = "sha256:4ad1906908f2f5ae4e5a8ddfce73c320c2a1429ec52eafd27138b7f1cbe341c9", size = 174062, upload-time = "2025-09-25T21:32:55.767Z" }, + { url = "https://files.pythonhosted.org/packages/f1/12/de94a39c2ef588c7e6455cfbe7343d3b2dc9d6b6b2f40c4c6565744c873d/pyyaml-6.0.3-cp314-cp314t-win_arm64.whl", hash = "sha256:ebc55a14a21cb14062aa4162f906cd962b28e2e9ea38f9b4391244cd8de4ae0b", size = 149341, upload-time = "2025-09-25T21:32:56.828Z" }, +] + +[[package]] +name = "referencing" +version = "0.37.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "attrs" }, + { name = "rpds-py", version = "0.30.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" }, + { name = "rpds-py", version = "2026.6.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" }, + { name = "typing-extensions", marker = "python_full_version < '3.13'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/22/f5/df4e9027acead3ecc63e50fe1e36aca1523e1719559c499951bb4b53188f/referencing-0.37.0.tar.gz", hash = "sha256:44aefc3142c5b842538163acb373e24cce6632bd54bdb01b21ad5863489f50d8", size = 78036, upload-time = "2025-10-13T15:30:48.871Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2c/58/ca301544e1fa93ed4f80d724bf5b194f6e4b945841c5bfd555878eea9fcb/referencing-0.37.0-py3-none-any.whl", hash = "sha256:381329a9f99628c9069361716891d34ad94af76e461dcb0335825aecc7692231", size = 26766, upload-time = "2025-10-13T15:30:47.625Z" }, +] + +[[package]] +name = "respx" +version = "0.23.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "httpx" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/43/98/4e55c9c486404ec12373708d015ebce157966965a5ebe7f28ff2c784d41b/respx-0.23.1.tar.gz", hash = "sha256:242dcc6ce6b5b9bf621f5870c82a63997e8e82bc7c947f9ffe272b8f3dd5a780", size = 29243, upload-time = "2026-04-08T14:37:16.008Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/1d/4a/221da6ca167db45693d8d26c7dc79ccfc978a440251bf6721c9aaf251ac0/respx-0.23.1-py2.py3-none-any.whl", hash = "sha256:b18004b029935384bccfa6d7d9d74b4ec9af73a081cc28600fffc0447f4b8c1a", size = 25557, upload-time = "2026-04-08T14:37:14.613Z" }, +] + +[[package]] +name = "rpds-py" +version = "0.30.0" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version < '3.11'", +] +sdist = { url = "https://files.pythonhosted.org/packages/20/af/3f2f423103f1113b36230496629986e0ef7e199d2aa8392452b484b38ced/rpds_py-0.30.0.tar.gz", hash = "sha256:dd8ff7cf90014af0c0f787eea34794ebf6415242ee1d6fa91eaba725cc441e84", size = 69469, upload-time = "2025-11-30T20:24:38.837Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/06/0c/0c411a0ec64ccb6d104dcabe0e713e05e153a9a2c3c2bd2b32ce412166fe/rpds_py-0.30.0-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:679ae98e00c0e8d68a7fda324e16b90fd5260945b45d3b824c892cec9eea3288", size = 370490, upload-time = "2025-11-30T20:21:33.256Z" }, + { url = "https://files.pythonhosted.org/packages/19/6a/4ba3d0fb7297ebae71171822554abe48d7cab29c28b8f9f2c04b79988c05/rpds_py-0.30.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:4cc2206b76b4f576934f0ed374b10d7ca5f457858b157ca52064bdfc26b9fc00", size = 359751, upload-time = "2025-11-30T20:21:34.591Z" }, + { url = "https://files.pythonhosted.org/packages/cd/7c/e4933565ef7f7a0818985d87c15d9d273f1a649afa6a52ea35ad011195ea/rpds_py-0.30.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:389a2d49eded1896c3d48b0136ead37c48e221b391c052fba3f4055c367f60a6", size = 389696, upload-time = "2025-11-30T20:21:36.122Z" }, + { url = "https://files.pythonhosted.org/packages/5e/01/6271a2511ad0815f00f7ed4390cf2567bec1d4b1da39e2c27a41e6e3b4de/rpds_py-0.30.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:32c8528634e1bf7121f3de08fa85b138f4e0dc47657866630611b03967f041d7", size = 403136, upload-time = "2025-11-30T20:21:37.728Z" }, + { url = "https://files.pythonhosted.org/packages/55/64/c857eb7cd7541e9b4eee9d49c196e833128a55b89a9850a9c9ac33ccf897/rpds_py-0.30.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f207f69853edd6f6700b86efb84999651baf3789e78a466431df1331608e5324", size = 524699, upload-time = "2025-11-30T20:21:38.92Z" }, + { url = "https://files.pythonhosted.org/packages/9c/ed/94816543404078af9ab26159c44f9e98e20fe47e2126d5d32c9d9948d10a/rpds_py-0.30.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:67b02ec25ba7a9e8fa74c63b6ca44cf5707f2fbfadae3ee8e7494297d56aa9df", size = 412022, upload-time = "2025-11-30T20:21:40.407Z" }, + { url = "https://files.pythonhosted.org/packages/61/b5/707f6cf0066a6412aacc11d17920ea2e19e5b2f04081c64526eb35b5c6e7/rpds_py-0.30.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0c0e95f6819a19965ff420f65578bacb0b00f251fefe2c8b23347c37174271f3", size = 390522, upload-time = "2025-11-30T20:21:42.17Z" }, + { url = "https://files.pythonhosted.org/packages/13/4e/57a85fda37a229ff4226f8cbcf09f2a455d1ed20e802ce5b2b4a7f5ed053/rpds_py-0.30.0-cp310-cp310-manylinux_2_31_riscv64.whl", hash = "sha256:a452763cc5198f2f98898eb98f7569649fe5da666c2dc6b5ddb10fde5a574221", size = 404579, upload-time = "2025-11-30T20:21:43.769Z" }, + { url = "https://files.pythonhosted.org/packages/f9/da/c9339293513ec680a721e0e16bf2bac3db6e5d7e922488de471308349bba/rpds_py-0.30.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:e0b65193a413ccc930671c55153a03ee57cecb49e6227204b04fae512eb657a7", size = 421305, upload-time = "2025-11-30T20:21:44.994Z" }, + { url = "https://files.pythonhosted.org/packages/f9/be/522cb84751114f4ad9d822ff5a1aa3c98006341895d5f084779b99596e5c/rpds_py-0.30.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:858738e9c32147f78b3ac24dc0edb6610000e56dc0f700fd5f651d0a0f0eb9ff", size = 572503, upload-time = "2025-11-30T20:21:46.91Z" }, + { url = "https://files.pythonhosted.org/packages/a2/9b/de879f7e7ceddc973ea6e4629e9b380213a6938a249e94b0cdbcc325bb66/rpds_py-0.30.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:da279aa314f00acbb803da1e76fa18666778e8a8f83484fba94526da5de2cba7", size = 598322, upload-time = "2025-11-30T20:21:48.709Z" }, + { url = "https://files.pythonhosted.org/packages/48/ac/f01fc22efec3f37d8a914fc1b2fb9bcafd56a299edbe96406f3053edea5a/rpds_py-0.30.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:7c64d38fb49b6cdeda16ab49e35fe0da2e1e9b34bc38bd78386530f218b37139", size = 560792, upload-time = "2025-11-30T20:21:50.024Z" }, + { url = "https://files.pythonhosted.org/packages/e2/da/4e2b19d0f131f35b6146425f846563d0ce036763e38913d917187307a671/rpds_py-0.30.0-cp310-cp310-win32.whl", hash = "sha256:6de2a32a1665b93233cde140ff8b3467bdb9e2af2b91079f0333a0974d12d464", size = 221901, upload-time = "2025-11-30T20:21:51.32Z" }, + { url = "https://files.pythonhosted.org/packages/96/cb/156d7a5cf4f78a7cc571465d8aec7a3c447c94f6749c5123f08438bcf7bc/rpds_py-0.30.0-cp310-cp310-win_amd64.whl", hash = "sha256:1726859cd0de969f88dc8673bdd954185b9104e05806be64bcd87badbe313169", size = 235823, upload-time = "2025-11-30T20:21:52.505Z" }, + { url = "https://files.pythonhosted.org/packages/4d/6e/f964e88b3d2abee2a82c1ac8366da848fce1c6d834dc2132c3fda3970290/rpds_py-0.30.0-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:a2bffea6a4ca9f01b3f8e548302470306689684e61602aa3d141e34da06cf425", size = 370157, upload-time = "2025-11-30T20:21:53.789Z" }, + { url = "https://files.pythonhosted.org/packages/94/ba/24e5ebb7c1c82e74c4e4f33b2112a5573ddc703915b13a073737b59b86e0/rpds_py-0.30.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:dc4f992dfe1e2bc3ebc7444f6c7051b4bc13cd8e33e43511e8ffd13bf407010d", size = 359676, upload-time = "2025-11-30T20:21:55.475Z" }, + { url = "https://files.pythonhosted.org/packages/84/86/04dbba1b087227747d64d80c3b74df946b986c57af0a9f0c98726d4d7a3b/rpds_py-0.30.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:422c3cb9856d80b09d30d2eb255d0754b23e090034e1deb4083f8004bd0761e4", size = 389938, upload-time = "2025-11-30T20:21:57.079Z" }, + { url = "https://files.pythonhosted.org/packages/42/bb/1463f0b1722b7f45431bdd468301991d1328b16cffe0b1c2918eba2c4eee/rpds_py-0.30.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:07ae8a593e1c3c6b82ca3292efbe73c30b61332fd612e05abee07c79359f292f", size = 402932, upload-time = "2025-11-30T20:21:58.47Z" }, + { url = "https://files.pythonhosted.org/packages/99/ee/2520700a5c1f2d76631f948b0736cdf9b0acb25abd0ca8e889b5c62ac2e3/rpds_py-0.30.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:12f90dd7557b6bd57f40abe7747e81e0c0b119bef015ea7726e69fe550e394a4", size = 525830, upload-time = "2025-11-30T20:21:59.699Z" }, + { url = "https://files.pythonhosted.org/packages/e0/ad/bd0331f740f5705cc555a5e17fdf334671262160270962e69a2bdef3bf76/rpds_py-0.30.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:99b47d6ad9a6da00bec6aabe5a6279ecd3c06a329d4aa4771034a21e335c3a97", size = 412033, upload-time = "2025-11-30T20:22:00.991Z" }, + { url = "https://files.pythonhosted.org/packages/f8/1e/372195d326549bb51f0ba0f2ecb9874579906b97e08880e7a65c3bef1a99/rpds_py-0.30.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:33f559f3104504506a44bb666b93a33f5d33133765b0c216a5bf2f1e1503af89", size = 390828, upload-time = "2025-11-30T20:22:02.723Z" }, + { url = "https://files.pythonhosted.org/packages/ab/2b/d88bb33294e3e0c76bc8f351a3721212713629ffca1700fa94979cb3eae8/rpds_py-0.30.0-cp311-cp311-manylinux_2_31_riscv64.whl", hash = "sha256:946fe926af6e44f3697abbc305ea168c2c31d3e3ef1058cf68f379bf0335a78d", size = 404683, upload-time = "2025-11-30T20:22:04.367Z" }, + { url = "https://files.pythonhosted.org/packages/50/32/c759a8d42bcb5289c1fac697cd92f6fe01a018dd937e62ae77e0e7f15702/rpds_py-0.30.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:495aeca4b93d465efde585977365187149e75383ad2684f81519f504f5c13038", size = 421583, upload-time = "2025-11-30T20:22:05.814Z" }, + { url = "https://files.pythonhosted.org/packages/2b/81/e729761dbd55ddf5d84ec4ff1f47857f4374b0f19bdabfcf929164da3e24/rpds_py-0.30.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:d9a0ca5da0386dee0655b4ccdf46119df60e0f10da268d04fe7cc87886872ba7", size = 572496, upload-time = "2025-11-30T20:22:07.713Z" }, + { url = "https://files.pythonhosted.org/packages/14/f6/69066a924c3557c9c30baa6ec3a0aa07526305684c6f86c696b08860726c/rpds_py-0.30.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:8d6d1cc13664ec13c1b84241204ff3b12f9bb82464b8ad6e7a5d3486975c2eed", size = 598669, upload-time = "2025-11-30T20:22:09.312Z" }, + { url = "https://files.pythonhosted.org/packages/5f/48/905896b1eb8a05630d20333d1d8ffd162394127b74ce0b0784ae04498d32/rpds_py-0.30.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:3896fa1be39912cf0757753826bc8bdc8ca331a28a7c4ae46b7a21280b06bb85", size = 561011, upload-time = "2025-11-30T20:22:11.309Z" }, + { url = "https://files.pythonhosted.org/packages/22/16/cd3027c7e279d22e5eb431dd3c0fbc677bed58797fe7581e148f3f68818b/rpds_py-0.30.0-cp311-cp311-win32.whl", hash = "sha256:55f66022632205940f1827effeff17c4fa7ae1953d2b74a8581baaefb7d16f8c", size = 221406, upload-time = "2025-11-30T20:22:13.101Z" }, + { url = "https://files.pythonhosted.org/packages/fa/5b/e7b7aa136f28462b344e652ee010d4de26ee9fd16f1bfd5811f5153ccf89/rpds_py-0.30.0-cp311-cp311-win_amd64.whl", hash = "sha256:a51033ff701fca756439d641c0ad09a41d9242fa69121c7d8769604a0a629825", size = 236024, upload-time = "2025-11-30T20:22:14.853Z" }, + { url = "https://files.pythonhosted.org/packages/14/a6/364bba985e4c13658edb156640608f2c9e1d3ea3c81b27aa9d889fff0e31/rpds_py-0.30.0-cp311-cp311-win_arm64.whl", hash = "sha256:47b0ef6231c58f506ef0b74d44e330405caa8428e770fec25329ed2cb971a229", size = 229069, upload-time = "2025-11-30T20:22:16.577Z" }, + { url = "https://files.pythonhosted.org/packages/03/e7/98a2f4ac921d82f33e03f3835f5bf3a4a40aa1bfdc57975e74a97b2b4bdd/rpds_py-0.30.0-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:a161f20d9a43006833cd7068375a94d035714d73a172b681d8881820600abfad", size = 375086, upload-time = "2025-11-30T20:22:17.93Z" }, + { url = "https://files.pythonhosted.org/packages/4d/a1/bca7fd3d452b272e13335db8d6b0b3ecde0f90ad6f16f3328c6fb150c889/rpds_py-0.30.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:6abc8880d9d036ecaafe709079969f56e876fcf107f7a8e9920ba6d5a3878d05", size = 359053, upload-time = "2025-11-30T20:22:19.297Z" }, + { url = "https://files.pythonhosted.org/packages/65/1c/ae157e83a6357eceff62ba7e52113e3ec4834a84cfe07fa4b0757a7d105f/rpds_py-0.30.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ca28829ae5f5d569bb62a79512c842a03a12576375d5ece7d2cadf8abe96ec28", size = 390763, upload-time = "2025-11-30T20:22:21.661Z" }, + { url = "https://files.pythonhosted.org/packages/d4/36/eb2eb8515e2ad24c0bd43c3ee9cd74c33f7ca6430755ccdb240fd3144c44/rpds_py-0.30.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:a1010ed9524c73b94d15919ca4d41d8780980e1765babf85f9a2f90d247153dd", size = 408951, upload-time = "2025-11-30T20:22:23.408Z" }, + { url = "https://files.pythonhosted.org/packages/d6/65/ad8dc1784a331fabbd740ef6f71ce2198c7ed0890dab595adb9ea2d775a1/rpds_py-0.30.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f8d1736cfb49381ba528cd5baa46f82fdc65c06e843dab24dd70b63d09121b3f", size = 514622, upload-time = "2025-11-30T20:22:25.16Z" }, + { url = "https://files.pythonhosted.org/packages/63/8e/0cfa7ae158e15e143fe03993b5bcd743a59f541f5952e1546b1ac1b5fd45/rpds_py-0.30.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d948b135c4693daff7bc2dcfc4ec57237a29bd37e60c2fabf5aff2bbacf3e2f1", size = 414492, upload-time = "2025-11-30T20:22:26.505Z" }, + { url = "https://files.pythonhosted.org/packages/60/1b/6f8f29f3f995c7ffdde46a626ddccd7c63aefc0efae881dc13b6e5d5bb16/rpds_py-0.30.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47f236970bccb2233267d89173d3ad2703cd36a0e2a6e92d0560d333871a3d23", size = 394080, upload-time = "2025-11-30T20:22:27.934Z" }, + { url = "https://files.pythonhosted.org/packages/6d/d5/a266341051a7a3ca2f4b750a3aa4abc986378431fc2da508c5034d081b70/rpds_py-0.30.0-cp312-cp312-manylinux_2_31_riscv64.whl", hash = "sha256:2e6ecb5a5bcacf59c3f912155044479af1d0b6681280048b338b28e364aca1f6", size = 408680, upload-time = "2025-11-30T20:22:29.341Z" }, + { url = "https://files.pythonhosted.org/packages/10/3b/71b725851df9ab7a7a4e33cf36d241933da66040d195a84781f49c50490c/rpds_py-0.30.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a8fa71a2e078c527c3e9dc9fc5a98c9db40bcc8a92b4e8858e36d329f8684b51", size = 423589, upload-time = "2025-11-30T20:22:31.469Z" }, + { url = "https://files.pythonhosted.org/packages/00/2b/e59e58c544dc9bd8bd8384ecdb8ea91f6727f0e37a7131baeff8d6f51661/rpds_py-0.30.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:73c67f2db7bc334e518d097c6d1e6fed021bbc9b7d678d6cc433478365d1d5f5", size = 573289, upload-time = "2025-11-30T20:22:32.997Z" }, + { url = "https://files.pythonhosted.org/packages/da/3e/a18e6f5b460893172a7d6a680e86d3b6bc87a54c1f0b03446a3c8c7b588f/rpds_py-0.30.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:5ba103fb455be00f3b1c2076c9d4264bfcb037c976167a6047ed82f23153f02e", size = 599737, upload-time = "2025-11-30T20:22:34.419Z" }, + { url = "https://files.pythonhosted.org/packages/5c/e2/714694e4b87b85a18e2c243614974413c60aa107fd815b8cbc42b873d1d7/rpds_py-0.30.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:7cee9c752c0364588353e627da8a7e808a66873672bcb5f52890c33fd965b394", size = 563120, upload-time = "2025-11-30T20:22:35.903Z" }, + { url = "https://files.pythonhosted.org/packages/6f/ab/d5d5e3bcedb0a77f4f613706b750e50a5a3ba1c15ccd3665ecc636c968fd/rpds_py-0.30.0-cp312-cp312-win32.whl", hash = "sha256:1ab5b83dbcf55acc8b08fc62b796ef672c457b17dbd7820a11d6c52c06839bdf", size = 223782, upload-time = "2025-11-30T20:22:37.271Z" }, + { url = "https://files.pythonhosted.org/packages/39/3b/f786af9957306fdc38a74cef405b7b93180f481fb48453a114bb6465744a/rpds_py-0.30.0-cp312-cp312-win_amd64.whl", hash = "sha256:a090322ca841abd453d43456ac34db46e8b05fd9b3b4ac0c78bcde8b089f959b", size = 240463, upload-time = "2025-11-30T20:22:39.021Z" }, + { url = "https://files.pythonhosted.org/packages/f3/d2/b91dc748126c1559042cfe41990deb92c4ee3e2b415f6b5234969ffaf0cc/rpds_py-0.30.0-cp312-cp312-win_arm64.whl", hash = "sha256:669b1805bd639dd2989b281be2cfd951c6121b65e729d9b843e9639ef1fd555e", size = 230868, upload-time = "2025-11-30T20:22:40.493Z" }, + { url = "https://files.pythonhosted.org/packages/ed/dc/d61221eb88ff410de3c49143407f6f3147acf2538c86f2ab7ce65ae7d5f9/rpds_py-0.30.0-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:f83424d738204d9770830d35290ff3273fbb02b41f919870479fab14b9d303b2", size = 374887, upload-time = "2025-11-30T20:22:41.812Z" }, + { url = "https://files.pythonhosted.org/packages/fd/32/55fb50ae104061dbc564ef15cc43c013dc4a9f4527a1f4d99baddf56fe5f/rpds_py-0.30.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:e7536cd91353c5273434b4e003cbda89034d67e7710eab8761fd918ec6c69cf8", size = 358904, upload-time = "2025-11-30T20:22:43.479Z" }, + { url = "https://files.pythonhosted.org/packages/58/70/faed8186300e3b9bdd138d0273109784eea2396c68458ed580f885dfe7ad/rpds_py-0.30.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2771c6c15973347f50fece41fc447c054b7ac2ae0502388ce3b6738cd366e3d4", size = 389945, upload-time = "2025-11-30T20:22:44.819Z" }, + { url = "https://files.pythonhosted.org/packages/bd/a8/073cac3ed2c6387df38f71296d002ab43496a96b92c823e76f46b8af0543/rpds_py-0.30.0-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:0a59119fc6e3f460315fe9d08149f8102aa322299deaa5cab5b40092345c2136", size = 407783, upload-time = "2025-11-30T20:22:46.103Z" }, + { url = "https://files.pythonhosted.org/packages/77/57/5999eb8c58671f1c11eba084115e77a8899d6e694d2a18f69f0ba471ec8b/rpds_py-0.30.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:76fec018282b4ead0364022e3c54b60bf368b9d926877957a8624b58419169b7", size = 515021, upload-time = "2025-11-30T20:22:47.458Z" }, + { url = "https://files.pythonhosted.org/packages/e0/af/5ab4833eadc36c0a8ed2bc5c0de0493c04f6c06de223170bd0798ff98ced/rpds_py-0.30.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:692bef75a5525db97318e8cd061542b5a79812d711ea03dbc1f6f8dbb0c5f0d2", size = 414589, upload-time = "2025-11-30T20:22:48.872Z" }, + { url = "https://files.pythonhosted.org/packages/b7/de/f7192e12b21b9e9a68a6d0f249b4af3fdcdff8418be0767a627564afa1f1/rpds_py-0.30.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9027da1ce107104c50c81383cae773ef5c24d296dd11c99e2629dbd7967a20c6", size = 394025, upload-time = "2025-11-30T20:22:50.196Z" }, + { url = "https://files.pythonhosted.org/packages/91/c4/fc70cd0249496493500e7cc2de87504f5aa6509de1e88623431fec76d4b6/rpds_py-0.30.0-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:9cf69cdda1f5968a30a359aba2f7f9aa648a9ce4b580d6826437f2b291cfc86e", size = 408895, upload-time = "2025-11-30T20:22:51.87Z" }, + { url = "https://files.pythonhosted.org/packages/58/95/d9275b05ab96556fefff73a385813eb66032e4c99f411d0795372d9abcea/rpds_py-0.30.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a4796a717bf12b9da9d3ad002519a86063dcac8988b030e405704ef7d74d2d9d", size = 422799, upload-time = "2025-11-30T20:22:53.341Z" }, + { url = "https://files.pythonhosted.org/packages/06/c1/3088fc04b6624eb12a57eb814f0d4997a44b0d208d6cace713033ff1a6ba/rpds_py-0.30.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:5d4c2aa7c50ad4728a094ebd5eb46c452e9cb7edbfdb18f9e1221f597a73e1e7", size = 572731, upload-time = "2025-11-30T20:22:54.778Z" }, + { url = "https://files.pythonhosted.org/packages/d8/42/c612a833183b39774e8ac8fecae81263a68b9583ee343db33ab571a7ce55/rpds_py-0.30.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:ba81a9203d07805435eb06f536d95a266c21e5b2dfbf6517748ca40c98d19e31", size = 599027, upload-time = "2025-11-30T20:22:56.212Z" }, + { url = "https://files.pythonhosted.org/packages/5f/60/525a50f45b01d70005403ae0e25f43c0384369ad24ffe46e8d9068b50086/rpds_py-0.30.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:945dccface01af02675628334f7cf49c2af4c1c904748efc5cf7bbdf0b579f95", size = 563020, upload-time = "2025-11-30T20:22:58.2Z" }, + { url = "https://files.pythonhosted.org/packages/0b/5d/47c4655e9bcd5ca907148535c10e7d489044243cc9941c16ed7cd53be91d/rpds_py-0.30.0-cp313-cp313-win32.whl", hash = "sha256:b40fb160a2db369a194cb27943582b38f79fc4887291417685f3ad693c5a1d5d", size = 223139, upload-time = "2025-11-30T20:23:00.209Z" }, + { url = "https://files.pythonhosted.org/packages/f2/e1/485132437d20aa4d3e1d8b3fb5a5e65aa8139f1e097080c2a8443201742c/rpds_py-0.30.0-cp313-cp313-win_amd64.whl", hash = "sha256:806f36b1b605e2d6a72716f321f20036b9489d29c51c91f4dd29a3e3afb73b15", size = 240224, upload-time = "2025-11-30T20:23:02.008Z" }, + { url = "https://files.pythonhosted.org/packages/24/95/ffd128ed1146a153d928617b0ef673960130be0009c77d8fbf0abe306713/rpds_py-0.30.0-cp313-cp313-win_arm64.whl", hash = "sha256:d96c2086587c7c30d44f31f42eae4eac89b60dabbac18c7669be3700f13c3ce1", size = 230645, upload-time = "2025-11-30T20:23:03.43Z" }, + { url = "https://files.pythonhosted.org/packages/ff/1b/b10de890a0def2a319a2626334a7f0ae388215eb60914dbac8a3bae54435/rpds_py-0.30.0-cp313-cp313t-macosx_10_12_x86_64.whl", hash = "sha256:eb0b93f2e5c2189ee831ee43f156ed34e2a89a78a66b98cadad955972548be5a", size = 364443, upload-time = "2025-11-30T20:23:04.878Z" }, + { url = "https://files.pythonhosted.org/packages/0d/bf/27e39f5971dc4f305a4fb9c672ca06f290f7c4e261c568f3dea16a410d47/rpds_py-0.30.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:922e10f31f303c7c920da8981051ff6d8c1a56207dbdf330d9047f6d30b70e5e", size = 353375, upload-time = "2025-11-30T20:23:06.342Z" }, + { url = "https://files.pythonhosted.org/packages/40/58/442ada3bba6e8e6615fc00483135c14a7538d2ffac30e2d933ccf6852232/rpds_py-0.30.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cdc62c8286ba9bf7f47befdcea13ea0e26bf294bda99758fd90535cbaf408000", size = 383850, upload-time = "2025-11-30T20:23:07.825Z" }, + { url = "https://files.pythonhosted.org/packages/14/14/f59b0127409a33c6ef6f5c1ebd5ad8e32d7861c9c7adfa9a624fc3889f6c/rpds_py-0.30.0-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:47f9a91efc418b54fb8190a6b4aa7813a23fb79c51f4bb84e418f5476c38b8db", size = 392812, upload-time = "2025-11-30T20:23:09.228Z" }, + { url = "https://files.pythonhosted.org/packages/b3/66/e0be3e162ac299b3a22527e8913767d869e6cc75c46bd844aa43fb81ab62/rpds_py-0.30.0-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1f3587eb9b17f3789ad50824084fa6f81921bbf9a795826570bda82cb3ed91f2", size = 517841, upload-time = "2025-11-30T20:23:11.186Z" }, + { url = "https://files.pythonhosted.org/packages/3d/55/fa3b9cf31d0c963ecf1ba777f7cf4b2a2c976795ac430d24a1f43d25a6ba/rpds_py-0.30.0-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:39c02563fc592411c2c61d26b6c5fe1e51eaa44a75aa2c8735ca88b0d9599daa", size = 408149, upload-time = "2025-11-30T20:23:12.864Z" }, + { url = "https://files.pythonhosted.org/packages/60/ca/780cf3b1a32b18c0f05c441958d3758f02544f1d613abf9488cd78876378/rpds_py-0.30.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:51a1234d8febafdfd33a42d97da7a43f5dcb120c1060e352a3fbc0c6d36e2083", size = 383843, upload-time = "2025-11-30T20:23:14.638Z" }, + { url = "https://files.pythonhosted.org/packages/82/86/d5f2e04f2aa6247c613da0c1dd87fcd08fa17107e858193566048a1e2f0a/rpds_py-0.30.0-cp313-cp313t-manylinux_2_31_riscv64.whl", hash = "sha256:eb2c4071ab598733724c08221091e8d80e89064cd472819285a9ab0f24bcedb9", size = 396507, upload-time = "2025-11-30T20:23:16.105Z" }, + { url = "https://files.pythonhosted.org/packages/4b/9a/453255d2f769fe44e07ea9785c8347edaf867f7026872e76c1ad9f7bed92/rpds_py-0.30.0-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:6bdfdb946967d816e6adf9a3d8201bfad269c67efe6cefd7093ef959683c8de0", size = 414949, upload-time = "2025-11-30T20:23:17.539Z" }, + { url = "https://files.pythonhosted.org/packages/a3/31/622a86cdc0c45d6df0e9ccb6becdba5074735e7033c20e401a6d9d0e2ca0/rpds_py-0.30.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:c77afbd5f5250bf27bf516c7c4a016813eb2d3e116139aed0096940c5982da94", size = 565790, upload-time = "2025-11-30T20:23:19.029Z" }, + { url = "https://files.pythonhosted.org/packages/1c/5d/15bbf0fb4a3f58a3b1c67855ec1efcc4ceaef4e86644665fff03e1b66d8d/rpds_py-0.30.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:61046904275472a76c8c90c9ccee9013d70a6d0f73eecefd38c1ae7c39045a08", size = 590217, upload-time = "2025-11-30T20:23:20.885Z" }, + { url = "https://files.pythonhosted.org/packages/6d/61/21b8c41f68e60c8cc3b2e25644f0e3681926020f11d06ab0b78e3c6bbff1/rpds_py-0.30.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:4c5f36a861bc4b7da6516dbdf302c55313afa09b81931e8280361a4f6c9a2d27", size = 555806, upload-time = "2025-11-30T20:23:22.488Z" }, + { url = "https://files.pythonhosted.org/packages/f9/39/7e067bb06c31de48de3eb200f9fc7c58982a4d3db44b07e73963e10d3be9/rpds_py-0.30.0-cp313-cp313t-win32.whl", hash = "sha256:3d4a69de7a3e50ffc214ae16d79d8fbb0922972da0356dcf4d0fdca2878559c6", size = 211341, upload-time = "2025-11-30T20:23:24.449Z" }, + { url = "https://files.pythonhosted.org/packages/0a/4d/222ef0b46443cf4cf46764d9c630f3fe4abaa7245be9417e56e9f52b8f65/rpds_py-0.30.0-cp313-cp313t-win_amd64.whl", hash = "sha256:f14fc5df50a716f7ece6a80b6c78bb35ea2ca47c499e422aa4463455dd96d56d", size = 225768, upload-time = "2025-11-30T20:23:25.908Z" }, + { url = "https://files.pythonhosted.org/packages/86/81/dad16382ebbd3d0e0328776d8fd7ca94220e4fa0798d1dc5e7da48cb3201/rpds_py-0.30.0-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:68f19c879420aa08f61203801423f6cd5ac5f0ac4ac82a2368a9fcd6a9a075e0", size = 362099, upload-time = "2025-11-30T20:23:27.316Z" }, + { url = "https://files.pythonhosted.org/packages/2b/60/19f7884db5d5603edf3c6bce35408f45ad3e97e10007df0e17dd57af18f8/rpds_py-0.30.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:ec7c4490c672c1a0389d319b3a9cfcd098dcdc4783991553c332a15acf7249be", size = 353192, upload-time = "2025-11-30T20:23:29.151Z" }, + { url = "https://files.pythonhosted.org/packages/bf/c4/76eb0e1e72d1a9c4703c69607cec123c29028bff28ce41588792417098ac/rpds_py-0.30.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f251c812357a3fed308d684a5079ddfb9d933860fc6de89f2b7ab00da481e65f", size = 384080, upload-time = "2025-11-30T20:23:30.785Z" }, + { url = "https://files.pythonhosted.org/packages/72/87/87ea665e92f3298d1b26d78814721dc39ed8d2c74b86e83348d6b48a6f31/rpds_py-0.30.0-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ac98b175585ecf4c0348fd7b29c3864bda53b805c773cbf7bfdaffc8070c976f", size = 394841, upload-time = "2025-11-30T20:23:32.209Z" }, + { url = "https://files.pythonhosted.org/packages/77/ad/7783a89ca0587c15dcbf139b4a8364a872a25f861bdb88ed99f9b0dec985/rpds_py-0.30.0-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3e62880792319dbeb7eb866547f2e35973289e7d5696c6e295476448f5b63c87", size = 516670, upload-time = "2025-11-30T20:23:33.742Z" }, + { url = "https://files.pythonhosted.org/packages/5b/3c/2882bdac942bd2172f3da574eab16f309ae10a3925644e969536553cb4ee/rpds_py-0.30.0-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4e7fc54e0900ab35d041b0601431b0a0eb495f0851a0639b6ef90f7741b39a18", size = 408005, upload-time = "2025-11-30T20:23:35.253Z" }, + { url = "https://files.pythonhosted.org/packages/ce/81/9a91c0111ce1758c92516a3e44776920b579d9a7c09b2b06b642d4de3f0f/rpds_py-0.30.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47e77dc9822d3ad616c3d5759ea5631a75e5809d5a28707744ef79d7a1bcfcad", size = 382112, upload-time = "2025-11-30T20:23:36.842Z" }, + { url = "https://files.pythonhosted.org/packages/cf/8e/1da49d4a107027e5fbc64daeab96a0706361a2918da10cb41769244b805d/rpds_py-0.30.0-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:b4dc1a6ff022ff85ecafef7979a2c6eb423430e05f1165d6688234e62ba99a07", size = 399049, upload-time = "2025-11-30T20:23:38.343Z" }, + { url = "https://files.pythonhosted.org/packages/df/5a/7ee239b1aa48a127570ec03becbb29c9d5a9eb092febbd1699d567cae859/rpds_py-0.30.0-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:4559c972db3a360808309e06a74628b95eaccbf961c335c8fe0d590cf587456f", size = 415661, upload-time = "2025-11-30T20:23:40.263Z" }, + { url = "https://files.pythonhosted.org/packages/70/ea/caa143cf6b772f823bc7929a45da1fa83569ee49b11d18d0ada7f5ee6fd6/rpds_py-0.30.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:0ed177ed9bded28f8deb6ab40c183cd1192aa0de40c12f38be4d59cd33cb5c65", size = 565606, upload-time = "2025-11-30T20:23:42.186Z" }, + { url = "https://files.pythonhosted.org/packages/64/91/ac20ba2d69303f961ad8cf55bf7dbdb4763f627291ba3d0d7d67333cced9/rpds_py-0.30.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:ad1fa8db769b76ea911cb4e10f049d80bf518c104f15b3edb2371cc65375c46f", size = 591126, upload-time = "2025-11-30T20:23:44.086Z" }, + { url = "https://files.pythonhosted.org/packages/21/20/7ff5f3c8b00c8a95f75985128c26ba44503fb35b8e0259d812766ea966c7/rpds_py-0.30.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:46e83c697b1f1c72b50e5ee5adb4353eef7406fb3f2043d64c33f20ad1c2fc53", size = 553371, upload-time = "2025-11-30T20:23:46.004Z" }, + { url = "https://files.pythonhosted.org/packages/72/c7/81dadd7b27c8ee391c132a6b192111ca58d866577ce2d9b0ca157552cce0/rpds_py-0.30.0-cp314-cp314-win32.whl", hash = "sha256:ee454b2a007d57363c2dfd5b6ca4a5d7e2c518938f8ed3b706e37e5d470801ed", size = 215298, upload-time = "2025-11-30T20:23:47.696Z" }, + { url = "https://files.pythonhosted.org/packages/3e/d2/1aaac33287e8cfb07aab2e6b8ac1deca62f6f65411344f1433c55e6f3eb8/rpds_py-0.30.0-cp314-cp314-win_amd64.whl", hash = "sha256:95f0802447ac2d10bcc69f6dc28fe95fdf17940367b21d34e34c737870758950", size = 228604, upload-time = "2025-11-30T20:23:49.501Z" }, + { url = "https://files.pythonhosted.org/packages/e8/95/ab005315818cc519ad074cb7784dae60d939163108bd2b394e60dc7b5461/rpds_py-0.30.0-cp314-cp314-win_arm64.whl", hash = "sha256:613aa4771c99f03346e54c3f038e4cc574ac09a3ddfb0e8878487335e96dead6", size = 222391, upload-time = "2025-11-30T20:23:50.96Z" }, + { url = "https://files.pythonhosted.org/packages/9e/68/154fe0194d83b973cdedcdcc88947a2752411165930182ae41d983dcefa6/rpds_py-0.30.0-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:7e6ecfcb62edfd632e56983964e6884851786443739dbfe3582947e87274f7cb", size = 364868, upload-time = "2025-11-30T20:23:52.494Z" }, + { url = "https://files.pythonhosted.org/packages/83/69/8bbc8b07ec854d92a8b75668c24d2abcb1719ebf890f5604c61c9369a16f/rpds_py-0.30.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:a1d0bc22a7cdc173fedebb73ef81e07faef93692b8c1ad3733b67e31e1b6e1b8", size = 353747, upload-time = "2025-11-30T20:23:54.036Z" }, + { url = "https://files.pythonhosted.org/packages/ab/00/ba2e50183dbd9abcce9497fa5149c62b4ff3e22d338a30d690f9af970561/rpds_py-0.30.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0d08f00679177226c4cb8c5265012eea897c8ca3b93f429e546600c971bcbae7", size = 383795, upload-time = "2025-11-30T20:23:55.556Z" }, + { url = "https://files.pythonhosted.org/packages/05/6f/86f0272b84926bcb0e4c972262f54223e8ecc556b3224d281e6598fc9268/rpds_py-0.30.0-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5965af57d5848192c13534f90f9dd16464f3c37aaf166cc1da1cae1fd5a34898", size = 393330, upload-time = "2025-11-30T20:23:57.033Z" }, + { url = "https://files.pythonhosted.org/packages/cb/e9/0e02bb2e6dc63d212641da45df2b0bf29699d01715913e0d0f017ee29438/rpds_py-0.30.0-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9a4e86e34e9ab6b667c27f3211ca48f73dba7cd3d90f8d5b11be56e5dbc3fb4e", size = 518194, upload-time = "2025-11-30T20:23:58.637Z" }, + { url = "https://files.pythonhosted.org/packages/ee/ca/be7bca14cf21513bdf9c0606aba17d1f389ea2b6987035eb4f62bd923f25/rpds_py-0.30.0-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e5d3e6b26f2c785d65cc25ef1e5267ccbe1b069c5c21b8cc724efee290554419", size = 408340, upload-time = "2025-11-30T20:24:00.2Z" }, + { url = "https://files.pythonhosted.org/packages/c2/c7/736e00ebf39ed81d75544c0da6ef7b0998f8201b369acf842f9a90dc8fce/rpds_py-0.30.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:626a7433c34566535b6e56a1b39a7b17ba961e97ce3b80ec62e6f1312c025551", size = 383765, upload-time = "2025-11-30T20:24:01.759Z" }, + { url = "https://files.pythonhosted.org/packages/4a/3f/da50dfde9956aaf365c4adc9533b100008ed31aea635f2b8d7b627e25b49/rpds_py-0.30.0-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:acd7eb3f4471577b9b5a41baf02a978e8bdeb08b4b355273994f8b87032000a8", size = 396834, upload-time = "2025-11-30T20:24:03.687Z" }, + { url = "https://files.pythonhosted.org/packages/4e/00/34bcc2565b6020eab2623349efbdec810676ad571995911f1abdae62a3a0/rpds_py-0.30.0-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:fe5fa731a1fa8a0a56b0977413f8cacac1768dad38d16b3a296712709476fbd5", size = 415470, upload-time = "2025-11-30T20:24:05.232Z" }, + { url = "https://files.pythonhosted.org/packages/8c/28/882e72b5b3e6f718d5453bd4d0d9cf8df36fddeb4ddbbab17869d5868616/rpds_py-0.30.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:74a3243a411126362712ee1524dfc90c650a503502f135d54d1b352bd01f2404", size = 565630, upload-time = "2025-11-30T20:24:06.878Z" }, + { url = "https://files.pythonhosted.org/packages/3b/97/04a65539c17692de5b85c6e293520fd01317fd878ea1995f0367d4532fb1/rpds_py-0.30.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:3e8eeb0544f2eb0d2581774be4c3410356eba189529a6b3e36bbbf9696175856", size = 591148, upload-time = "2025-11-30T20:24:08.445Z" }, + { url = "https://files.pythonhosted.org/packages/85/70/92482ccffb96f5441aab93e26c4d66489eb599efdcf96fad90c14bbfb976/rpds_py-0.30.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:dbd936cde57abfee19ab3213cf9c26be06d60750e60a8e4dd85d1ab12c8b1f40", size = 556030, upload-time = "2025-11-30T20:24:10.956Z" }, + { url = "https://files.pythonhosted.org/packages/20/53/7c7e784abfa500a2b6b583b147ee4bb5a2b3747a9166bab52fec4b5b5e7d/rpds_py-0.30.0-cp314-cp314t-win32.whl", hash = "sha256:dc824125c72246d924f7f796b4f63c1e9dc810c7d9e2355864b3c3a73d59ade0", size = 211570, upload-time = "2025-11-30T20:24:12.735Z" }, + { url = "https://files.pythonhosted.org/packages/d0/02/fa464cdfbe6b26e0600b62c528b72d8608f5cc49f96b8d6e38c95d60c676/rpds_py-0.30.0-cp314-cp314t-win_amd64.whl", hash = "sha256:27f4b0e92de5bfbc6f86e43959e6edd1425c33b5e69aab0984a72047f2bcf1e3", size = 226532, upload-time = "2025-11-30T20:24:14.634Z" }, + { url = "https://files.pythonhosted.org/packages/69/71/3f34339ee70521864411f8b6992e7ab13ac30d8e4e3309e07c7361767d91/rpds_py-0.30.0-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:c2262bdba0ad4fc6fb5545660673925c2d2a5d9e2e0fb603aad545427be0fc58", size = 372292, upload-time = "2025-11-30T20:24:16.537Z" }, + { url = "https://files.pythonhosted.org/packages/57/09/f183df9b8f2d66720d2ef71075c59f7e1b336bec7ee4c48f0a2b06857653/rpds_py-0.30.0-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:ee6af14263f25eedc3bb918a3c04245106a42dfd4f5c2285ea6f997b1fc3f89a", size = 362128, upload-time = "2025-11-30T20:24:18.086Z" }, + { url = "https://files.pythonhosted.org/packages/7a/68/5c2594e937253457342e078f0cc1ded3dd7b2ad59afdbf2d354869110a02/rpds_py-0.30.0-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3adbb8179ce342d235c31ab8ec511e66c73faa27a47e076ccc92421add53e2bb", size = 391542, upload-time = "2025-11-30T20:24:20.092Z" }, + { url = "https://files.pythonhosted.org/packages/49/5c/31ef1afd70b4b4fbdb2800249f34c57c64beb687495b10aec0365f53dfc4/rpds_py-0.30.0-pp311-pypy311_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:250fa00e9543ac9b97ac258bd37367ff5256666122c2d0f2bc97577c60a1818c", size = 404004, upload-time = "2025-11-30T20:24:22.231Z" }, + { url = "https://files.pythonhosted.org/packages/e3/63/0cfbea38d05756f3440ce6534d51a491d26176ac045e2707adc99bb6e60a/rpds_py-0.30.0-pp311-pypy311_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9854cf4f488b3d57b9aaeb105f06d78e5529d3145b1e4a41750167e8c213c6d3", size = 527063, upload-time = "2025-11-30T20:24:24.302Z" }, + { url = "https://files.pythonhosted.org/packages/42/e6/01e1f72a2456678b0f618fc9a1a13f882061690893c192fcad9f2926553a/rpds_py-0.30.0-pp311-pypy311_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:993914b8e560023bc0a8bf742c5f303551992dcb85e247b1e5c7f4a7d145bda5", size = 413099, upload-time = "2025-11-30T20:24:25.916Z" }, + { url = "https://files.pythonhosted.org/packages/b8/25/8df56677f209003dcbb180765520c544525e3ef21ea72279c98b9aa7c7fb/rpds_py-0.30.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:58edca431fb9b29950807e301826586e5bbf24163677732429770a697ffe6738", size = 392177, upload-time = "2025-11-30T20:24:27.834Z" }, + { url = "https://files.pythonhosted.org/packages/4a/b4/0a771378c5f16f8115f796d1f437950158679bcd2a7c68cf251cfb00ed5b/rpds_py-0.30.0-pp311-pypy311_pp73-manylinux_2_31_riscv64.whl", hash = "sha256:dea5b552272a944763b34394d04577cf0f9bd013207bc32323b5a89a53cf9c2f", size = 406015, upload-time = "2025-11-30T20:24:29.457Z" }, + { url = "https://files.pythonhosted.org/packages/36/d8/456dbba0af75049dc6f63ff295a2f92766b9d521fa00de67a2bd6427d57a/rpds_py-0.30.0-pp311-pypy311_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:ba3af48635eb83d03f6c9735dfb21785303e73d22ad03d489e88adae6eab8877", size = 423736, upload-time = "2025-11-30T20:24:31.22Z" }, + { url = "https://files.pythonhosted.org/packages/13/64/b4d76f227d5c45a7e0b796c674fd81b0a6c4fbd48dc29271857d8219571c/rpds_py-0.30.0-pp311-pypy311_pp73-musllinux_1_2_aarch64.whl", hash = "sha256:dff13836529b921e22f15cb099751209a60009731a68519630a24d61f0b1b30a", size = 573981, upload-time = "2025-11-30T20:24:32.934Z" }, + { url = "https://files.pythonhosted.org/packages/20/91/092bacadeda3edf92bf743cc96a7be133e13a39cdbfd7b5082e7ab638406/rpds_py-0.30.0-pp311-pypy311_pp73-musllinux_1_2_i686.whl", hash = "sha256:1b151685b23929ab7beec71080a8889d4d6d9fa9a983d213f07121205d48e2c4", size = 599782, upload-time = "2025-11-30T20:24:35.169Z" }, + { url = "https://files.pythonhosted.org/packages/d1/b7/b95708304cd49b7b6f82fdd039f1748b66ec2b21d6a45180910802f1abf1/rpds_py-0.30.0-pp311-pypy311_pp73-musllinux_1_2_x86_64.whl", hash = "sha256:ac37f9f516c51e5753f27dfdef11a88330f04de2d564be3991384b2f3535d02e", size = 562191, upload-time = "2025-11-30T20:24:36.853Z" }, +] + +[[package]] +name = "rpds-py" +version = "2026.6.3" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version >= '3.14'", + "python_full_version >= '3.12' and python_full_version < '3.14' and sys_platform == 'emscripten'", + "(python_full_version >= '3.11' and python_full_version < '3.14' and sys_platform != 'emscripten') or (python_full_version == '3.11.*' and sys_platform == 'emscripten')", +] +sdist = { url = "https://files.pythonhosted.org/packages/aa/2a/9618a122aeb2a169a28b03889a2995fe297588964333d4a7d67bdf46e147/rpds_py-2026.6.3.tar.gz", hash = "sha256:1cebd1337c242e4ec2293e541f712b2da849b29f48f0c293684b71c0632625d4", size = 64051, upload-time = "2026-06-30T07:17:53.009Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/94/1f/a2dca5ffdbf1d475ffc4e80e4d5d720ff3a00f691795910116960ee12511/rpds_py-2026.6.3-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:7b689145a1485c335569bd056464f3243a29af7ed3871c7be31ad624ba239bc7", size = 342174, upload-time = "2026-06-30T07:14:54.821Z" }, + { url = "https://files.pythonhosted.org/packages/4d/dc/323d08583c0832911768663d1944f0107fcd4088704858d84b5e06d105a0/rpds_py-2026.6.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:db08f45aecde626498fb3df07bcf6d2ec040af42e859a4f5040d79c200342911", size = 345513, upload-time = "2026-06-30T07:14:56.515Z" }, + { url = "https://files.pythonhosted.org/packages/0b/2a/e31989834d18d2f26ec1d2774c5b1eb3331df4ea8ada525175294c94b48a/rpds_py-2026.6.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:acc992ab27b15f852c76755eb2ab7dce86585ddadba6fa5946e58556088845b4", size = 373783, upload-time = "2026-06-30T07:14:57.736Z" }, + { url = "https://files.pythonhosted.org/packages/87/fe/e80107ee3639585c9941c17d6a42cd65325022f656c023191fce78c324c8/rpds_py-2026.6.3-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:7f88d653e7b3b779d71ae7454e20dcc9b6bae903f33c269db9f2be41bda3f261", size = 378316, upload-time = "2026-06-30T07:14:59.077Z" }, + { url = "https://files.pythonhosted.org/packages/22/6f/81e3adf81acfb6fa694de2a6e4e7d8863121e3e0799e0a7725e6cf5679c4/rpds_py-2026.6.3-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e52655eaf81e32593abedaa4bfe33170c8cfedf3365ed9be6e11e07f148f0278", size = 499423, upload-time = "2026-06-30T07:15:00.488Z" }, + { url = "https://files.pythonhosted.org/packages/2d/9a/41263969df0ce3d9af2a96d5005a288200af1989aed3354bfceb5fc0b21f/rpds_py-2026.6.3-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:dfcc8b909769d19db55c7cc9541eb64b9b774b1057ffffb4f1048070475bb9f9", size = 386077, upload-time = "2026-06-30T07:15:01.911Z" }, + { url = "https://files.pythonhosted.org/packages/5e/19/7e98f468bd50346faff5b10e5297374b443bfdddacc8e9fbc65984539597/rpds_py-2026.6.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9c1255b302953c86a486b81d330d5ee1d5bd937691ce271b6be0ef0e299eaab7", size = 371315, upload-time = "2026-06-30T07:15:03.317Z" }, + { url = "https://files.pythonhosted.org/packages/99/3c/2b973b4d371906a134b03decfea7f5d9835a2c6d263454392e15b64b5b18/rpds_py-2026.6.3-cp311-cp311-manylinux_2_31_riscv64.whl", hash = "sha256:8d2294a31386bfa251d8c8a39472beee17db67d4f1a6eabea665d35c9a4461c3", size = 383502, upload-time = "2026-06-30T07:15:04.627Z" }, + { url = "https://files.pythonhosted.org/packages/98/2a/12e2799500af0a307bca76b63361c51f9fe479223561489c29eea1f2ee41/rpds_py-2026.6.3-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:f8f23ead891a3b762f35ab3b04623da7056545b48aa60d59957e6789914545da", size = 402673, upload-time = "2026-06-30T07:15:05.856Z" }, + { url = "https://files.pythonhosted.org/packages/2d/e3/21e5872d165fe08be4f229e3d5ee9d90019c0bf0e5538de60dbd54009450/rpds_py-2026.6.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:421aba32367055614287a4292b6a17f1939c9452299f7a0209c117e990b646d4", size = 549964, upload-time = "2026-06-30T07:15:07.159Z" }, + { url = "https://files.pythonhosted.org/packages/1a/d0/5ee0fe36844297de8123bee27bc12078c1a7416ad9f1b8a8ca18d6b0c0ac/rpds_py-2026.6.3-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:1e5822dfc2f0d4ab7e745eaa6d85945069329beeccef965af3f3bb26058fcab6", size = 615446, upload-time = "2026-06-30T07:15:08.531Z" }, + { url = "https://files.pythonhosted.org/packages/b1/80/1ea5873cb683f2fbe5f21b23ea1f6d179ead19f3c5b249b7eb5dca568ef2/rpds_py-2026.6.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:83e35b57523816c8613fd0776b40cd8bb9f596b37ddd2692eb4a6bb5ab2f8c93", size = 576975, upload-time = "2026-06-30T07:15:09.97Z" }, + { url = "https://files.pythonhosted.org/packages/c9/e1/90ef639217a5ddb15b7f4f61b1c33911fd044ad03c311bafdd2bcab85582/rpds_py-2026.6.3-cp311-cp311-win32.whl", hash = "sha256:de3eceba0b683bcbb1ab93da016d0270df1f9ae7be716b40214c5dafac6ea45a", size = 204453, upload-time = "2026-06-30T07:15:11.324Z" }, + { url = "https://files.pythonhosted.org/packages/f2/b7/b7a1695d7af36f521fb11e80d6d3adbd744f73b921859bd3c2a2c0dc706f/rpds_py-2026.6.3-cp311-cp311-win_amd64.whl", hash = "sha256:2c54a076ca4d370980ab57bc0e31df57bbe8d41340436a90ef8b1219a3cbb127", size = 223219, upload-time = "2026-06-30T07:15:12.476Z" }, + { url = "https://files.pythonhosted.org/packages/d7/a2/145afacf796e4506062825941176ad9445c2dcf2b3b6a1f13d3030a15e19/rpds_py-2026.6.3-cp311-cp311-win_arm64.whl", hash = "sha256:168c733a7112e071bb7a66460e667edfcff06c017a3c523f7a8a8e08d0140804", size = 219137, upload-time = "2026-06-30T07:15:13.631Z" }, + { url = "https://files.pythonhosted.org/packages/5c/be/2e8974163072e7bab7df1a5acd54c4498e75e35d6d18b864d3a9d5dadc92/rpds_py-2026.6.3-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:a0811d33247c3d6128a3001d763f2aa056bb3425204335400ac54f89eec3a0d0", size = 343691, upload-time = "2026-06-30T07:15:14.96Z" }, + { url = "https://files.pythonhosted.org/packages/a4/73/319dfa745dd668efe89309141ded489126461fcecd2b8f3a3cda185129b6/rpds_py-2026.6.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:538949e262e46caa31ac01bdb3c1e8f642622922cacbabbae6a8445d9dc33eaf", size = 338542, upload-time = "2026-06-30T07:15:16.267Z" }, + { url = "https://files.pythonhosted.org/packages/21/63/4239893be1c4d09b709b1a8f6be4188f0870084ff547f46606b8a75f1b03/rpds_py-2026.6.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:55927d532399c2c646100ff7feb48eaa940ad70f42cd68e1328f3ded9f81ca24", size = 368180, upload-time = "2026-06-30T07:15:17.62Z" }, + { url = "https://files.pythonhosted.org/packages/1c/ca/9c5de382225234ceb37b1844ebdb140db12b2a278bb9efe2fcd19f6c82ce/rpds_py-2026.6.3-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:f56f1695bc5c0871cbc33dc0130fcf503aab0c57dcc5a6700a4f49eba4f2652e", size = 375067, upload-time = "2026-06-30T07:15:18.952Z" }, + { url = "https://files.pythonhosted.org/packages/87/dc/863f69d1bf04ade34b7fe0d59b9fdf6f0135fe2d7cbca74f1d665589559d/rpds_py-2026.6.3-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:270b293dae9058fc9fcedab50f13cebf46fb8ed1d1d54e0521a9da5d6b211975", size = 490509, upload-time = "2026-06-30T07:15:20.434Z" }, + { url = "https://files.pythonhosted.org/packages/ce/ef/eac16a12048b45ec7c7fa94f2be3438a5f26bf9cc8580b18a1cfd609b7f6/rpds_py-2026.6.3-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:127565fead0a10943b282957bd5447804ff3160ad79f2ad2635e6d249e380680", size = 382754, upload-time = "2026-06-30T07:15:21.831Z" }, + { url = "https://files.pythonhosted.org/packages/04/8f/d2f3f532616be4d06c316ef119683e832bd3d41e112bf3a88f4151c95b17/rpds_py-2026.6.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ecabd69db66de867690f9797f2f8fa27ba501bbc24540cbdbdc649cd15888ba6", size = 366189, upload-time = "2026-06-30T07:15:23.371Z" }, + { url = "https://files.pythonhosted.org/packages/e3/29/41a7b0e98a4b44cd676ab7598419623373eb43b20be68c084935c1a8cf88/rpds_py-2026.6.3-cp312-cp312-manylinux_2_31_riscv64.whl", hash = "sha256:58eadac9cd119677b60e1cf8ac4052f35949d71b8a9e5556efccbe82533cf22a", size = 377750, upload-time = "2026-06-30T07:15:24.659Z" }, + { url = "https://files.pythonhosted.org/packages/2e/05/ecda0bec46f9a1565090bcdc941d023f6a25aff85fda28f89f8d19878152/rpds_py-2026.6.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:7491ee23305ac3eb59e492b6945881f5cd77a6f731061a3f25b77fd40f9e99a4", size = 395576, upload-time = "2026-06-30T07:15:25.987Z" }, + { url = "https://files.pythonhosted.org/packages/68/a8/6ed52f03ee6cb854ce78785cc9a9a672eb880e83fd7224d471f667d151f1/rpds_py-2026.6.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:2c99f7e8ccb3dd6e3e4bfeac657a7b208c9bac8075f4b078c02d7404c34107fa", size = 543807, upload-time = "2026-06-30T07:15:27.356Z" }, + { url = "https://files.pythonhosted.org/packages/8f/d6/156c0d3eea27ba09b92562ba2364ba124c0a061b199e17eac637cd25a5e2/rpds_py-2026.6.3-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:62698275682bf121181861295c9181e789030a2d516071f5b8f3c23c170cd0fc", size = 611187, upload-time = "2026-06-30T07:15:28.931Z" }, + { url = "https://files.pythonhosted.org/packages/f1/31/774212ed989c62f7f310220089f9b0a3fb8f40f5443d1727abd5d9f52bc9/rpds_py-2026.6.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:a214c993455f99a89aaeadc9b21241900037adc9d97203e374d75513c5911822", size = 573030, upload-time = "2026-06-30T07:15:30.553Z" }, + { url = "https://files.pythonhosted.org/packages/c9/50/22f73127a41f1ce4f87fe39aadfb9a126345801c274aa93ae88456249327/rpds_py-2026.6.3-cp312-cp312-win32.whl", hash = "sha256:501f9f04a588d6a09179368c57071301445191767c64e4b52a6aa9871f1ef5ed", size = 202185, upload-time = "2026-06-30T07:15:32.027Z" }, + { url = "https://files.pythonhosted.org/packages/04/3a/f0ee4d4dde9d3b69dedf1b5f74e7a40017046d55052d173e418c6a94f960/rpds_py-2026.6.3-cp312-cp312-win_amd64.whl", hash = "sha256:2c958bf94822e9290a40aaf2a822d4bc5c88099093e3948ad6c571eca9272e5f", size = 220394, upload-time = "2026-06-30T07:15:33.359Z" }, + { url = "https://files.pythonhosted.org/packages/f3/83/3382fe37f809b59f02aac04dbc4e765b480b46ee0227ed516e3bdc4d3dfc/rpds_py-2026.6.3-cp312-cp312-win_arm64.whl", hash = "sha256:22bffe6042b9bcb0822bcd1955ec00e245daf17b4344e4ed8e9551b976b63e96", size = 215753, upload-time = "2026-06-30T07:15:34.778Z" }, + { url = "https://files.pythonhosted.org/packages/a4/9e/b818ee580026ec578138e961027a68820c40afeb1ec8f6819b54fb99e196/rpds_py-2026.6.3-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:3cfe765c1da0072636ca06628261e0ea05688e160d5c8a03e0217c3854037223", size = 343012, upload-time = "2026-06-30T07:15:36.005Z" }, + { url = "https://files.pythonhosted.org/packages/f3/6b/686d9dc4359a8f163cfbbf89ee0b4e586431de22fe8248edb63a8cf50d49/rpds_py-2026.6.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f4d78253f6996be4901669ad25319f842f740eccf4d58e3c7f3dd39e6dde1d8f", size = 338203, upload-time = "2026-06-30T07:15:37.462Z" }, + { url = "https://files.pythonhosted.org/packages/9e/9b/069aa329940f8207615e091f5eedbbd40e1e15eac68a0790fd05ccdf796c/rpds_py-2026.6.3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:54f45a148e28767bf343d33a684693c70e451c6f4c0e9904709a723fafbdfc1f", size = 367984, upload-time = "2026-06-30T07:15:39.008Z" }, + { url = "https://files.pythonhosted.org/packages/14/db/34c203e4becff3703e4d3bc121842c00b8689197f398161203a880052f4e/rpds_py-2026.6.3-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:842e7b070435622248c7a2c44ae53fa1440e073cc3023bc919fed570884097a7", size = 374815, upload-time = "2026-06-30T07:15:40.253Z" }, + { url = "https://files.pythonhosted.org/packages/ee/7d/8071067d2cc453d916ad836e828c943f575e8a44612537759002a1e07381/rpds_py-2026.6.3-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8020133a74bd81b4572dd8e4be028a6b1ebcd70e6726edc3918008c08bee6ee6", size = 490545, upload-time = "2026-06-30T07:15:41.729Z" }, + { url = "https://files.pythonhosted.org/packages/a3/42/da06c5aa8f0484ff07f270787434204d9f4535e2f8c3b51ed402267e63c3/rpds_py-2026.6.3-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cdc7e35386f3847df728fbcb5e887e2d79c19e2fa1eba9e51b6621d23e3243af", size = 382828, upload-time = "2026-06-30T07:15:43.327Z" }, + { url = "https://files.pythonhosted.org/packages/57/d7/fe978efc2ae50abe48eb7464668ea99f53c010c60aeebb7b35ad27f23661/rpds_py-2026.6.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:acac386b453c2516111b50985d60ce46e7fadb5ea71ae7b25f4c946935bf27cf", size = 365678, upload-time = "2026-06-30T07:15:44.992Z" }, + { url = "https://files.pythonhosted.org/packages/69/9d/1d8922e1990b2a6eb532b6ff53d3e73d2b3bbffc84116c75826bee73dfc6/rpds_py-2026.6.3-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:425560c6fa0415f27261727bb20bd097568485e5eb0c121f1949417d1c516885", size = 377811, upload-time = "2026-06-30T07:15:46.523Z" }, + { url = "https://files.pythonhosted.org/packages/b1/3d/198dceafb4fb034a6a47347e1b0735d34e0bd4a50be4e898d408ee66cb14/rpds_py-2026.6.3-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a550fb4950a06dde3beb4721f5ad4b25bf4513784665b0a8522c792e2bd822a4", size = 395382, upload-time = "2026-06-30T07:15:47.955Z" }, + { url = "https://files.pythonhosted.org/packages/1f/f1/13968e49655d40b6b19d8b9140296bbc6f1d86b3f0f6c346cf9f1adddf4b/rpds_py-2026.6.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:4f4bca01b63096f606e095734dd56e74e175f94cfbf24ff3d63281cec61f7bb7", size = 543832, upload-time = "2026-06-30T07:15:49.33Z" }, + { url = "https://files.pythonhosted.org/packages/ac/ab/289bcb1b90bd3e40a2900c561fa0e2087345ecbb094f0b870f2345142b7c/rpds_py-2026.6.3-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:ccffae9a092a00deb7efd545fe5e2c33c33b88e7c054337e9a74c179347d0b7d", size = 611011, upload-time = "2026-06-30T07:15:50.847Z" }, + { url = "https://files.pythonhosted.org/packages/1e/16/5043105e679436ccfbc8e5e0dd2d663ed18a8b8113515fd06a5e5d77c83e/rpds_py-2026.6.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:1cf01971c4f2c5553b772a542e4aaf191789cd331bc2cd4ff0e6e65ba49e1e97", size = 572431, upload-time = "2026-06-30T07:15:52.394Z" }, + { url = "https://files.pythonhosted.org/packages/85/ed/adab103321c0a6565d5ae1c2998349bc3ee175b82ccc5ae8fc04cc413075/rpds_py-2026.6.3-cp313-cp313-win32.whl", hash = "sha256:8c3d1e9c15b9d51ca0391e13da1a25a0a4df3c58a37c9dc368e0736cf7f69df0", size = 201710, upload-time = "2026-06-30T07:15:53.894Z" }, + { url = "https://files.pythonhosted.org/packages/7b/ed/a03b09668e74e5dabbf2e211f6468e1820c0552f7b0500082da31841bf7b/rpds_py-2026.6.3-cp313-cp313-win_amd64.whl", hash = "sha256:9250a9a0a6fd4648b3f868da8d91a4c52b5811a62df58e753d50ae4454a36f80", size = 219454, upload-time = "2026-06-30T07:15:55.25Z" }, + { url = "https://files.pythonhosted.org/packages/27/17/b8642c12930b71bc2b25831f6708ccf0f75abcd11883932ec9ce54ba3a78/rpds_py-2026.6.3-cp313-cp313-win_arm64.whl", hash = "sha256:900a67df3fd1660b035a4761c4ce73c382ea6b35f90f9863c36c6fd8bf8b09bb", size = 215063, upload-time = "2026-06-30T07:15:56.573Z" }, + { url = "https://files.pythonhosted.org/packages/b6/36/7fbe9dcdaf857fb3f63c2a2284b62492d95f5e8334e947e5fb6e7f68c9be/rpds_py-2026.6.3-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:931908d9fc855d8f74783377822be318edb6dcb19e47169dc038f9a1bf60b06e", size = 344510, upload-time = "2026-06-30T07:15:57.921Z" }, + { url = "https://files.pythonhosted.org/packages/ba/54/f785cc3d3f60839ca57a5af4927a9f347b07b2799c373fc20f7949f87c7e/rpds_py-2026.6.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:d7469697dce35be237db177d42e2a2ee26e6dcc5fc052078a6fefabd288c6edd", size = 339495, upload-time = "2026-06-30T07:15:59.238Z" }, + { url = "https://files.pythonhosted.org/packages/63/ef/d4cdaf309e6b095b43597103cf8c0b951d6cca2acce68c474f75ec12e0c7/rpds_py-2026.6.3-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bcfbcf66006befb9fd2aeaa9e01feaf881b4dc330a02ba07d2322b1c11be7b5d", size = 369454, upload-time = "2026-06-30T07:16:01.021Z" }, + { url = "https://files.pythonhosted.org/packages/96/4a/9559a68b7ee15db09d7981212e8c2e219d2a1d6d4faa0391d813c3496a36/rpds_py-2026.6.3-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:847927daf4cffbd4e90e42bc890069897101edd015f956cb8721b3473372edda", size = 374583, upload-time = "2026-06-30T07:16:02.287Z" }, + { url = "https://files.pythonhosted.org/packages/ef/75/8964aa7d2c6e8ac43eba8eb6e6b0fdda1f46d39f2fc3e6aa9f2cb17f485d/rpds_py-2026.6.3-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:aca6c1ef08a82bfe327cc156da694660f599923e2e6665b6d81c9c2d0ac9ffc8", size = 492919, upload-time = "2026-06-30T07:16:03.723Z" }, + { url = "https://files.pythonhosted.org/packages/8f/97/6908094ac804115e65aedfd90f1b5fee4eebebd3f6c4cfc5419939267565/rpds_py-2026.6.3-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ae50181a047c871561212bb97f7932a2d45fb53e947bd9b57ebad85b529cbc53", size = 383725, upload-time = "2026-06-30T07:16:05.305Z" }, + { url = "https://files.pythonhosted.org/packages/d1/9c/0d1fdc2e7aba23e290d603bc494e97bd205bae262ce33c6b32a69768ed5e/rpds_py-2026.6.3-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dc319e5a1de4b6913aac94bf6a2f9e847371e0a140a43dd4991db1a09bc2d504", size = 367255, upload-time = "2026-06-30T07:16:07.086Z" }, + { url = "https://files.pythonhosted.org/packages/c4/fe/f0209ca4a9ed074bc8acb44dfd0e81c3122e94c9689f5645b7973a866719/rpds_py-2026.6.3-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:e4316bf32babbed84e691e352faf967ce2f0f024174a8643c37c94a1080374fc", size = 379060, upload-time = "2026-06-30T07:16:08.525Z" }, + { url = "https://files.pythonhosted.org/packages/c6/8d/f1cc54c616b9d8897de8738aac148d20afca93f68187475fe194d09a71b9/rpds_py-2026.6.3-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:8c6e5a2f750cc71c3e3b11d71661f21d6f9bc6cebc6564b1466417a1ec03ec77", size = 395960, upload-time = "2026-06-30T07:16:09.989Z" }, + { url = "https://files.pythonhosted.org/packages/fb/04/aafff00f73aeca2945f734f1d483c64ab8f472d0864ab02377fd8e89c3b2/rpds_py-2026.6.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:4470ce197d4090875cf6affbf1f853338387428df97c4fb7b7106317b8214698", size = 545356, upload-time = "2026-06-30T07:16:11.816Z" }, + { url = "https://files.pythonhosted.org/packages/fd/cc/e229663b9e4ddac5a4acbe9085dd80a71af2a5d356b8b39d6bff233f24b0/rpds_py-2026.6.3-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:ea964164cc9afa72d4d9b23cc28dafae93693c0a53e0b42acbff15b22c3f9ddd", size = 612319, upload-time = "2026-06-30T07:16:13.586Z" }, + { url = "https://files.pythonhosted.org/packages/e3/7a/8a0e6d3e6cd066af108b71b43122c3fe158dd9eb86acac626593a2582eb1/rpds_py-2026.6.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:639c8929aa0afe81be836b04de888460d6bed38b9c54cfc18da8f6bfabf5af5d", size = 573508, upload-time = "2026-06-30T07:16:15.23Z" }, + { url = "https://files.pythonhosted.org/packages/87/03/2a69ab618a789cf6cf85c86bb844c62d090e700ab1a2aa676b3741b6c516/rpds_py-2026.6.3-cp314-cp314-win32.whl", hash = "sha256:882076c00c0a608b131187055ddc5ae29f2e7eaf870d6168980420d58528a5c8", size = 202504, upload-time = "2026-06-30T07:16:16.893Z" }, + { url = "https://files.pythonhosted.org/packages/85/62/a3892ba945f4e24c78f352e5de3c7620d8479f73f211406a97263d13c7d2/rpds_py-2026.6.3-cp314-cp314-win_amd64.whl", hash = "sha256:0be972be84cfcaf46c8c6edf690ca0f154ac17babf1f6a955a51579b34ad2dc5", size = 220380, upload-time = "2026-06-30T07:16:18.108Z" }, + { url = "https://files.pythonhosted.org/packages/3d/e7/c2bd44dc831931815ad11ebb5f430b5a0a4d3caa9de837107876c30c3432/rpds_py-2026.6.3-cp314-cp314-win_arm64.whl", hash = "sha256:2a9c6f195058cb45335e8cc3802745c603d716eb96bc9625950c1aac71c0c703", size = 215976, upload-time = "2026-06-30T07:16:19.654Z" }, + { url = "https://files.pythonhosted.org/packages/79/9c/fff7b74bce9a091ec9a012a03f9ff5f69364eaf9451060dfc4486da2ffdd/rpds_py-2026.6.3-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:f90938e92afda60266da758ee7d363447f7f0138c9559f9e1811629580582d90", size = 346840, upload-time = "2026-06-30T07:16:21.268Z" }, + { url = "https://files.pythonhosted.org/packages/e9/44/77bcb1168b33704908295533d27f10eb811e9e3e193e8993dc99572211d3/rpds_py-2026.6.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:ec829541c45bca16e61c7ae50c20501f213605beb75d1aba91a6ee37fbbb56a4", size = 340282, upload-time = "2026-06-30T07:16:22.875Z" }, + { url = "https://files.pythonhosted.org/packages/87/3c/7a9081c7c9e645b39efe19e4ffbeccd80add246327cd9b888aecffd72317/rpds_py-2026.6.3-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:afd70d95892096cdb26f15a00c45907b17817577aa8d1c76b2dcc2788391f9e9", size = 370403, upload-time = "2026-06-30T07:16:24.415Z" }, + { url = "https://files.pythonhosted.org/packages/f7/69/af47021eb7dad6ff3396cb001c08f0f3c4d06c20253f75be6421a59fe6b7/rpds_py-2026.6.3-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:29dfa0533a5d4c94d4dfa1b694fcb56c9c63aad8330ffdd816fd225d0a7a162f", size = 376055, upload-time = "2026-06-30T07:16:26.111Z" }, + { url = "https://files.pythonhosted.org/packages/81/fc/a3bcf517084396a6dd258c592567a3c011ba4557f2fde23dceaf26e74f2e/rpds_py-2026.6.3-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:af05d726809bff6b141be124d4c7ce998f9c9c7f30edb1f46c07aa103d540b41", size = 494419, upload-time = "2026-06-30T07:16:27.596Z" }, + { url = "https://files.pythonhosted.org/packages/c9/eb/13d529d1788135425c7bf207f8463458ca5d92e43f3f701365b83e9dffc1/rpds_py-2026.6.3-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9826217f048f620d9a712672818bf231442c1b35d96b227a07eabd11b4bb6945", size = 384848, upload-time = "2026-06-30T07:16:29.183Z" }, + { url = "https://files.pythonhosted.org/packages/8e/f4/b7ac49f30013aba8f7b9566b1dd07e81de95e708c1374b7bacc5b9bc5c9c/rpds_py-2026.6.3-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:536bceea4fa4acf7e1c61da2b5786304367c816c8895be71b8f537c480b0ea1f", size = 371369, upload-time = "2026-06-30T07:16:30.912Z" }, + { url = "https://files.pythonhosted.org/packages/31/86/6260bafa622f788b07ddec0e52d810305c8b9b0b8c27f58a2ab04bf62b4f/rpds_py-2026.6.3-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:bc0011654b91cc4fb2ae701bec0a0ba1e552c0714247fa7af6c59e0ccfa3a4e1", size = 379673, upload-time = "2026-06-30T07:16:32.486Z" }, + { url = "https://files.pythonhosted.org/packages/19/c3/03f1ee79a047b48daeca157c89a18509cde22b6b951d642b9b0af1be660a/rpds_py-2026.6.3-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:539d75de9e0d536c84ff18dfeb805398e58227001ce09231a26a08b9aed1ee0e", size = 397500, upload-time = "2026-06-30T07:16:34.471Z" }, + { url = "https://files.pythonhosted.org/packages/f0/95/8ed0cd8c377dca12aea498f119fe639fc474d1461545c39d2b5872eb1c0f/rpds_py-2026.6.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:166cf54d9f44fc6ceb53c7860258dde44a81406646de79f8ed3234fca3b6e538", size = 545978, upload-time = "2026-06-30T07:16:36.45Z" }, + { url = "https://files.pythonhosted.org/packages/d3/f2/0eb57f0eaa83f8fc152a7e03de968ab77e1f00732bebc892b190c6eebde7/rpds_py-2026.6.3-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:d34c20167764fbcf927194d532dd7e0c56772f0a5f943fa5ef9e9afbba8fb9db", size = 613350, upload-time = "2026-06-30T07:16:38.213Z" }, + { url = "https://files.pythonhosted.org/packages/5b/de/e0674bdbc3ef7634989b3f854c3f34bc1f587d36e5bfdc5c378d57034619/rpds_py-2026.6.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:ea7bb13b7c9a29791f87a0387ba7d3ad3a6d783d827e4d3f27b40a0ff44495e2", size = 576486, upload-time = "2026-06-30T07:16:39.797Z" }, + { url = "https://files.pythonhosted.org/packages/f2/f6/21101359743cd136ada781e8210a85769578422ba460672eea0e29739200/rpds_py-2026.6.3-cp314-cp314t-win32.whl", hash = "sha256:6de4744d05bd1aa1be4ed7ea1189e3979196808008113bbbf899a460966b925e", size = 201068, upload-time = "2026-06-30T07:16:41.316Z" }, + { url = "https://files.pythonhosted.org/packages/a6/b2/9574d4d44f7760c2aa32d92a0a4f41698e33f5b204a0bf5c9758f52c79d5/rpds_py-2026.6.3-cp314-cp314t-win_amd64.whl", hash = "sha256:c7b9a2f8f4d8e90af72571d3d495deebdd7e3c75451f5b41719aee166e940fc2", size = 220600, upload-time = "2026-06-30T07:16:43.091Z" }, + { url = "https://files.pythonhosted.org/packages/08/ae/f23a2697e6ee6340a578b0f136be6483657bef0c6f9497b752bb5c0964bb/rpds_py-2026.6.3-cp315-cp315-macosx_10_12_x86_64.whl", hash = "sha256:e059c5dde6452b44424bd1834557556c226b57781dee1227af23518459722b13", size = 344726, upload-time = "2026-06-30T07:16:44.5Z" }, + { url = "https://files.pythonhosted.org/packages/c3/63/e7b3a1a5358dd32c930a1062d8e15b67fd6e8922e81df9e91706d66ee5c8/rpds_py-2026.6.3-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:2f7c26fbc5acd2522b95d4177fe4710ffd8e9b20529e703ffbf8db4d93903f05", size = 339587, upload-time = "2026-06-30T07:16:46.255Z" }, + { url = "https://files.pythonhosted.org/packages/ec/64/10a85681916ca55fffb91b0a211f84e34297c109243484dd6394660a8a7c/rpds_py-2026.6.3-cp315-cp315-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a3086b538543802f84c843911242db20447de00d8752dd0efc936dbcf02218ba", size = 369585, upload-time = "2026-06-30T07:16:48.101Z" }, + { url = "https://files.pythonhosted.org/packages/76/c2/baf95c7c38823e12ba34407c5f5767a89e5cf2233895e56f608167ae9493/rpds_py-2026.6.3-cp315-cp315-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:8f2e5c5ee828d42cb11760761c0af6507927bec42d0ad5458f97c9203b054617", size = 375479, upload-time = "2026-06-30T07:16:49.93Z" }, + { url = "https://files.pythonhosted.org/packages/6a/94/0aad06c72d65101e11d33528d438cda99a39ce0da99466e156158f2541d3/rpds_py-2026.6.3-cp315-cp315-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ed0c1e5d10cdc7135537988c74a0188da68e2f3c30813ba3744ab1e42e0480f9", size = 492418, upload-time = "2026-06-30T07:16:51.641Z" }, + { url = "https://files.pythonhosted.org/packages/b5/17/de3f5a479a1f056535d7489819639d8cd591ea6281d700390b43b1abd745/rpds_py-2026.6.3-cp315-cp315-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8c2642a7603ec0b16ed77da4555db3b4b472341904873788327c0b0d7b95f1bb", size = 384123, upload-time = "2026-06-30T07:16:53.622Z" }, + { url = "https://files.pythonhosted.org/packages/46/7d/bf09bd1b145bb2671c03e1e6d1ab8651858d90d8c7dfeadd85a37a934fd8/rpds_py-2026.6.3-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8e4320744c1ffdd95a603def63344bfab2d33edeab301c5007e7de9f9f5b3885", size = 367351, upload-time = "2026-06-30T07:16:55.241Z" }, + { url = "https://files.pythonhosted.org/packages/a3/ea/1bb734f314b8be319149ddee80b18bd41372bdcfbdf88d28131c0cd37719/rpds_py-2026.6.3-cp315-cp315-manylinux_2_31_riscv64.whl", hash = "sha256:a9f4645593036b81bbdb36b9c8e0ea0d1c3fee968c4d59db0344c14087ef143a", size = 378827, upload-time = "2026-06-30T07:16:56.841Z" }, + { url = "https://files.pythonhosted.org/packages/4b/93/d9611e5b25e26df9a3649813ed66193ace9347a7c7fc4ab7cf70e94851c0/rpds_py-2026.6.3-cp315-cp315-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:e55d236be29255554da47abe5c577637db7c24a02b8b46f0ca9524c855801868", size = 395966, upload-time = "2026-06-30T07:16:58.557Z" }, + { url = "https://files.pythonhosted.org/packages/c3/cb/99d77e16e5534ae1d90629bbe419ba6ee170833a6a85e3aa1cc41726fbbc/rpds_py-2026.6.3-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:24e9c5386e16669b674a69c156c8eeefcb578f3b3397b713b08e6d60f3c7b187", size = 545680, upload-time = "2026-06-30T07:17:00.164Z" }, + { url = "https://files.pythonhosted.org/packages/59/15/11a29755f790cef7a2f755e8e14f4f0c33f39489e1893a632a2eee59672b/rpds_py-2026.6.3-cp315-cp315-musllinux_1_2_i686.whl", hash = "sha256:c60924535c75f1566b6eb75b5c31a48a43fef04fa2d0d201acbad8a9969c6107", size = 611853, upload-time = "2026-06-30T07:17:01.962Z" }, + { url = "https://files.pythonhosted.org/packages/68/86/0c27547e21644da938fb530f7e1a8148dd24d02db07e7a5f2567a17ce710/rpds_py-2026.6.3-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:38a2fea2787428f811719ceb9114cb78964a3138838320c29ac39526c79c16ba", size = 573715, upload-time = "2026-06-30T07:17:03.693Z" }, + { url = "https://files.pythonhosted.org/packages/29/71/4d8fcf700931815594bce892255bbd973b94efaf0fc1932b0590df18d886/rpds_py-2026.6.3-cp315-cp315-win32.whl", hash = "sha256:d483fe17f01ad64b7bf7cc38fcefff1ca9fb83f8c2b2542b68f97ffe0611b369", size = 202864, upload-time = "2026-06-30T07:17:05.746Z" }, + { url = "https://files.pythonhosted.org/packages/eb/62/b577562de0edbb55b2be85ce5fd09c33e386b9b13eee09833af4240fd5c4/rpds_py-2026.6.3-cp315-cp315-win_amd64.whl", hash = "sha256:67e3a721ffc5d8d2210d3671872298c4a84e4b8035cfe42ffd7cde35d772b146", size = 220430, upload-time = "2026-06-30T07:17:07.471Z" }, + { url = "https://files.pythonhosted.org/packages/c8/95/d6d0b2509825141eef60669a5739eec88dbc6a48053d6c92993a5704defe/rpds_py-2026.6.3-cp315-cp315-win_arm64.whl", hash = "sha256:6e84adbcf4bf841aed8116a8264b9f50b4cb3e7bd89b516122e616ac56ca269e", size = 215877, upload-time = "2026-06-30T07:17:09.008Z" }, + { url = "https://files.pythonhosted.org/packages/b7/bf/f3ea278f0afd615c1d0f19cb69043a41526e2bb600c2b536eb192218eb27/rpds_py-2026.6.3-cp315-cp315t-macosx_10_12_x86_64.whl", hash = "sha256:ae6dd8f10bd17aad820876d24caec9efdafd80a318d16c0a48edb5e136902c6b", size = 346933, upload-time = "2026-06-30T07:17:10.762Z" }, + { url = "https://files.pythonhosted.org/packages/9d/29/9907bdf1c5346763cf10b7f6852aad86652168c259def904cbe0082c5864/rpds_py-2026.6.3-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:bdbd97738551fca3917c1bd7188bec1920bb520104f28e7e1007f9ceb17b7690", size = 340274, upload-time = "2026-06-30T07:17:12.266Z" }, + { url = "https://files.pythonhosted.org/packages/6f/2c/8e03767b5778ef25cebf74a7a91a2c3806f8eced4c92cb7406bbe060756d/rpds_py-2026.6.3-cp315-cp315t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8b95977e7211527ab0ba576e286d023389fbeeb32a6b7b771665d333c60e5342", size = 370763, upload-time = "2026-06-30T07:17:14.107Z" }, + { url = "https://files.pythonhosted.org/packages/2e/e1/df2a7e1ba2efd796af26194250b8d42c821b46592311595162af9ef0528d/rpds_py-2026.6.3-cp315-cp315t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:d15fde0e6fb0d88a60d221204873743e5d9f0b7d29165e62cd86d0413ad74ba6", size = 376467, upload-time = "2026-06-30T07:17:15.76Z" }, + { url = "https://files.pythonhosted.org/packages/6b/de/8a0814d1946af29cb068fb259aa8622f856df1d0bab58429448726b537f5/rpds_py-2026.6.3-cp315-cp315t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a136d453475ac0fcbda502ef1e6504bd28d6d904700915d278deeab0d00fe140", size = 496689, upload-time = "2026-06-30T07:17:17.308Z" }, + { url = "https://files.pythonhosted.org/packages/df/f3/f19e0c852ba13694f5a79f3b719331051573cb5693feacf8a88ffffc3a71/rpds_py-2026.6.3-cp315-cp315t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f826877d462181e5eb1c26a0026b8d0cab05d99844ecb6d8bf3627a2ca0c0442", size = 385340, upload-time = "2026-06-30T07:17:18.928Z" }, + { url = "https://files.pythonhosted.org/packages/e2/ae/7ec3a9d2d4351f99e37bcb06b6b6f954512646bfdbf9742e1de727865daf/rpds_py-2026.6.3-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:79486287de1730dbaff3dbd124d0ca4d2ef7f9d29bf2544f1f93c09b5bcbbd12", size = 372179, upload-time = "2026-06-30T07:17:20.539Z" }, + { url = "https://files.pythonhosted.org/packages/d3/ac/9cee911dff2aaa9a5a8354f6610bf2e6a616de9197c5fff4f54f82585f1e/rpds_py-2026.6.3-cp315-cp315t-manylinux_2_31_riscv64.whl", hash = "sha256:808345f53cb952433ca2816f1604ff3515608a81784954f38d4452acfe8e61d5", size = 379993, upload-time = "2026-06-30T07:17:22.212Z" }, + { url = "https://files.pythonhosted.org/packages/83/6b/7c2a07ba88d1e9a936612f7a5d067467ed03d971d5a06f7d309dff044a7e/rpds_py-2026.6.3-cp315-cp315t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:1967debc37f64f2c4dc90a7f563aec558b471966e12adcac4e1c4240496b6ebf", size = 398909, upload-time = "2026-06-30T07:17:23.66Z" }, + { url = "https://files.pythonhosted.org/packages/97/0b/776ffcb66783637b0031f6d58d6fb55913c8b5abf00aeecd46bf933fb477/rpds_py-2026.6.3-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:f0840b5b17057f7fd918b76183a4b5a0635f43e14eb2ce60dce1d4ee4707ea00", size = 546584, upload-time = "2026-06-30T07:17:25.264Z" }, + { url = "https://files.pythonhosted.org/packages/55/33/ba3bc04d7092bd553c9b2b195624992d2cc4f3de1f380b7b93cbee67bd79/rpds_py-2026.6.3-cp315-cp315t-musllinux_1_2_i686.whl", hash = "sha256:faa679d19a6696fd54259ad321251ad77a13e70e03dd834daa762a44fb6196ef", size = 614357, upload-time = "2026-06-30T07:17:26.888Z" }, + { url = "https://files.pythonhosted.org/packages/8b/71/14edf065f04630b1a8472f7653cad03f6c478bcf95ea0e6aed55451e33ea/rpds_py-2026.6.3-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:23a439f31ccbeff1574e24889128821d1f7917470e830cf6544dced1c662262a", size = 576533, upload-time = "2026-06-30T07:17:28.546Z" }, + { url = "https://files.pythonhosted.org/packages/ba/76/65002b08596c389105720a8c0d22298b8dc25a4baf89b2ce431343c8b1de/rpds_py-2026.6.3-cp315-cp315t-win32.whl", hash = "sha256:913ca42ccad3f8cc6e292b587ae8ae49c8c823e5dce51a736252fc7c7cdfa577", size = 201204, upload-time = "2026-06-30T07:17:30.193Z" }, + { url = "https://files.pythonhosted.org/packages/8c/97/d855d6b3c322d1f27e26f5241c42016b56cf01377ea8ed348285f54652f0/rpds_py-2026.6.3-cp315-cp315t-win_amd64.whl", hash = "sha256:ae3d4fe8c0b9213624fdce7279d70e3b148b682ca20719ebd193a23ebfa47324", size = 220719, upload-time = "2026-06-30T07:17:31.788Z" }, + { url = "https://files.pythonhosted.org/packages/b4/9c/f0d19ac587fd0e4ab6b72cda355e9c5a6166b01ef7e064e437aef8eb9fef/rpds_py-2026.6.3-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:4cf2d36a2357e4d07bb5a4f98801265327b48256867816cfd2ceb001e9754a8f", size = 349791, upload-time = "2026-06-30T07:17:33.315Z" }, + { url = "https://files.pythonhosted.org/packages/38/c7/1d49d204c9fd2ee6c537601dc4c1ba921e03363ca576bfab94a00254ac9a/rpds_py-2026.6.3-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:30c6dc199b24a5e3e81d50da0f00858c5bbdb2617a750395687f4339c5818171", size = 352842, upload-time = "2026-06-30T07:17:34.897Z" }, + { url = "https://files.pythonhosted.org/packages/ac/e5/c0b5dc93cd0d4c06ce1f438907649514e2ea077bcd911e3154a51e96c38e/rpds_py-2026.6.3-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9891e594296ab9dada6551c8e7b387b2721f27a67eecd528412e8906247a7b90", size = 382094, upload-time = "2026-06-30T07:17:36.514Z" }, + { url = "https://files.pythonhosted.org/packages/0d/54/ec0e907b4ca8d541112db352409bd15f871c9b243e0c92c9b5a46ae96f01/rpds_py-2026.6.3-pp311-pypy311_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b5c2dc92304aa48a4a60443b548bb12f12e119d4b72f314015e67b9e1be97fca", size = 388662, upload-time = "2026-06-30T07:17:38.235Z" }, + { url = "https://files.pythonhosted.org/packages/d3/f4/921c22a4fd0f1c1ac13a3996ffbf0aa67951e2c8ad0d1d9574938a2932e8/rpds_py-2026.6.3-pp311-pypy311_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:127e08c0642d880cf32ca47ec2a4a77b901f7e2dd1ad9762adb13955d72ffcc9", size = 504896, upload-time = "2026-06-30T07:17:39.689Z" }, + { url = "https://files.pythonhosted.org/packages/0b/1b/a114b972cefa1ab1cdb3c7bb177cd3844a12826c507c722d3a73516dbbaf/rpds_py-2026.6.3-pp311-pypy311_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8bb68f03f395eb793220b45c097bd4d8c32944393da0fad8b999efac0868fc8c", size = 391545, upload-time = "2026-06-30T07:17:41.336Z" }, + { url = "https://files.pythonhosted.org/packages/4e/98/af9b3db77d47fcbe6c8c1f36e2c2147ec70292819e99c325f871584a1c11/rpds_py-2026.6.3-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a3450b693fde92133e9f51060568a4c31fcca76d5e53bbd611e689ca446517e9", size = 380059, upload-time = "2026-06-30T07:17:42.857Z" }, + { url = "https://files.pythonhosted.org/packages/c9/ba/0efd8668b97c1d26a61566386c636a7a7a09829e474fdf807caa15a2c844/rpds_py-2026.6.3-pp311-pypy311_pp73-manylinux_2_31_riscv64.whl", hash = "sha256:5e8d07bddee435a2ff6f1920e18feff28d0bc4533e42f4bf6927fbd073312c41", size = 393235, upload-time = "2026-06-30T07:17:44.637Z" }, + { url = "https://files.pythonhosted.org/packages/62/90/8c139ee9690f73b0829f32647de6f40d826f8f443af6fa72644f96351aac/rpds_py-2026.6.3-pp311-pypy311_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:3a83ae6c67b7676b9878378547ca8e93ed77a580037bcbcd1d32f739e1e6089c", size = 413008, upload-time = "2026-06-30T07:17:46.225Z" }, + { url = "https://files.pythonhosted.org/packages/9c/97/0043896fdd7828ce09a1d9a8b06433714d0960fc4ff3fc4aa72b666b764e/rpds_py-2026.6.3-pp311-pypy311_pp73-musllinux_1_2_aarch64.whl", hash = "sha256:2bfd04c19ddbd6640de0b51894d764bd2758854d5b75bd102d2ef10cb9c293a9", size = 558118, upload-time = "2026-06-30T07:17:47.759Z" }, + { url = "https://files.pythonhosted.org/packages/f6/40/02355f0e134f783a8f9814c4680a1bd311d37671577a5964ea838573ff37/rpds_py-2026.6.3-pp311-pypy311_pp73-musllinux_1_2_i686.whl", hash = "sha256:ca6546b66be9dc4738b1b043d5ebd5488c66c578c5ff0fd0e8065313fe3afb76", size = 623138, upload-time = "2026-06-30T07:17:49.355Z" }, + { url = "https://files.pythonhosted.org/packages/10/85/48f0abdcef5cce4e034c7a5b0ceeceba0b01bf0d942824f4bb720afe2dec/rpds_py-2026.6.3-pp311-pypy311_pp73-musllinux_1_2_x86_64.whl", hash = "sha256:8e65860d238379ed982fd9ba690579b5e95af2f4840f99c772816dbe573cb826", size = 586486, upload-time = "2026-06-30T07:17:51.141Z" }, +] + +[[package]] +name = "ruff" +version = "0.16.9" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/96/bf/c935ca98e73fe8ce65b87ef08a280c0c1e85295d569228c15e87d8fdfaf1/ruff-0.16.9.tar.gz", hash = "sha256:12b625c6cfba78d285d9f48eda5f053374f1e53cb10ef17342a383750db99161", size = 4948764, upload-time = "2026-09-24T20:37:49.416Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/0d/26/df51322b52ee1ada7eff2d071ea09d11d5c2d1dcc9f02594f5785c4d1635/ruff-0.16.9-py3-none-linux_armv6l.whl", hash = "sha256:95e6f022090368ab3b824c36276839c53b2adf1a3f4c09fefc33dfc400f6da96", size = 10082922, upload-time = "2026-09-24T20:37:13.045Z" }, + { url = "https://files.pythonhosted.org/packages/a5/27/7bf51f5a7aa375e9f339280a303aab44ca75dc1525f1cdc5991761685b0f/ruff-0.16.9-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:a5f27be168556594a86d2f415db0cf43f5291917849318f873c7e2791f7a8c67", size = 10236360, upload-time = "2026-09-24T20:37:16.049Z" }, + { url = "https://files.pythonhosted.org/packages/b6/63/09659283f92f02dff45809da194a70da2f688d87c55d8875c4fae3536072/ruff-0.16.9-py3-none-macosx_11_0_arm64.whl", hash = "sha256:1632eb1d6197f33bd00b1acbc5b71009e89a8895c158e2d2b03a834fac964ab6", size = 9892940, upload-time = "2026-09-24T20:37:17.957Z" }, + { url = "https://files.pythonhosted.org/packages/24/58/98de1b72ec172f5f8f1731236fe21585b3998bf7dfe9fcc44ae9ba626012/ruff-0.16.9-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b3f951b14d865d5952c89d40a5ca07e87abe24fa5453299878411e127748fb1c", size = 10032114, upload-time = "2026-09-24T20:37:19.942Z" }, + { url = "https://files.pythonhosted.org/packages/c8/7d/f1e17c54ab59d4bad1dce8ee3e22a7a1d0ef4745240decacdcf3832b5bb2/ruff-0.16.9-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:447fc07e1573afff7cb02803462b12b6c8ece7cf10e2cd78565fa6d7a1c0bf8d", size = 9910227, upload-time = "2026-09-24T20:37:21.872Z" }, + { url = "https://files.pythonhosted.org/packages/34/19/436f647a65075bbd3bab2668b3bdaa5120559b294694018cdcefabbbf30b/ruff-0.16.9-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8a3e039a6a40ed976c491722b60e0ae4a4aa1a86057f540ee7a37a5d19ae9120", size = 10547484, upload-time = "2026-09-24T20:37:24.229Z" }, + { url = "https://files.pythonhosted.org/packages/03/59/38430a6bc2f6d8095447ac39625cf8b6e9344a47e6c26225c8ba1bff3ffb/ruff-0.16.9-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4684dded7db60aa57cb118fa158630f5feade4af5782903b6053484bdf9bd129", size = 11412367, upload-time = "2026-09-24T20:37:26.307Z" }, + { url = "https://files.pythonhosted.org/packages/c8/bd/bbb6d7fc7f208c8b8c50dd5dc8206e4cfdb1e7a8fb852606a3adf370c880/ruff-0.16.9-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d29c934357e45642fda2f34c0b1f4025b4a6c01e15e4bf0016879d60078a142c", size = 10869787, upload-time = "2026-09-24T20:37:28.35Z" }, + { url = "https://files.pythonhosted.org/packages/bc/b8/9c543074918061abbefc3bd139bee22de35abedb00dde0f2d27288838962/ruff-0.16.9-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a21713e629d3e5bdb2f5c2def1cc7f04f47fa8e1a7eb0571b4a28e1da64bc728", size = 10406494, upload-time = "2026-09-24T20:37:30.624Z" }, + { url = "https://files.pythonhosted.org/packages/35/7a/5a8851bd146e7ccf8fd4b003f6c75c11f8fbdb0e60673b45097986b6bf41/ruff-0.16.9-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:7baa24ef5fc8e77aa93879e1d3f43754a01ae488e869f1ae30cf431afd4d2452", size = 10590083, upload-time = "2026-09-24T20:37:32.439Z" }, + { url = "https://files.pythonhosted.org/packages/87/f0/4c3467188f23f806960b46fa76575a7cd0514c9ba90562650b71efc96980/ruff-0.16.9-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:a41aac6230aadfaa133bdfa1614488531ffa3e0837567ae04c0da2058a9c0f9e", size = 10119151, upload-time = "2026-09-24T20:37:34.581Z" }, + { url = "https://files.pythonhosted.org/packages/15/34/5a4def5adea572ce6aea0bb64f21f928ee317b80e0db747d7979b01d7261/ruff-0.16.9-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:c2529fb5896d49115b0e9aa8f887490b34bbe76baf879ec2264ac59406869ce7", size = 9911544, upload-time = "2026-09-24T20:37:36.796Z" }, + { url = "https://files.pythonhosted.org/packages/62/5d/d15ebea7499eef9373318c0ee6ca127832927c6529731f6d48e18dce7ca9/ruff-0.16.9-py3-none-musllinux_1_2_i686.whl", hash = "sha256:41e3870277694177429b56406d65dfbdb2c2802c52b715edaf6a0b829c69d4ee", size = 10269884, upload-time = "2026-09-24T20:37:38.857Z" }, + { url = "https://files.pythonhosted.org/packages/d1/56/c5d3cd119ded7a3c7aba0e961b69cb3df701c91662c98ad694467d060ce1/ruff-0.16.9-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:8adbe4e58af167f767d7b2ba5e83c42e878350796cf78c2f5e14ab9903a92588", size = 10749366, upload-time = "2026-09-24T20:37:41.042Z" }, + { url = "https://files.pythonhosted.org/packages/ac/fe/734ec7527029ac757ecf821f143c9f3fcf69149c21f53a044a899b430f5a/ruff-0.16.9-py3-none-win32.whl", hash = "sha256:0e1dbc2073624dee6618d41d0098690a7244654af746704b64759e12b6b6b385", size = 10152355, upload-time = "2026-09-24T20:37:43.025Z" }, + { url = "https://files.pythonhosted.org/packages/14/21/26e4643629b3ebb44f0a06f9c9a53058d63d989415f63a9a3c28e2ee7f22/ruff-0.16.9-py3-none-win_amd64.whl", hash = "sha256:6bd40fec8cd4c8a3d4dd589bd8ad4e6320c13c29234159bfd959a40d529d597b", size = 10592965, upload-time = "2026-09-24T20:37:44.944Z" }, + { url = "https://files.pythonhosted.org/packages/51/60/5fb1a39dbb5ae314d5f59bc7348a63c1d5c20f3cd83914c4b5cb0be31d2d/ruff-0.16.9-py3-none-win_arm64.whl", hash = "sha256:ed1a252039200f57a59eebc063b54beabea67bfbaaca0eeaa7f54b5fbcda2284", size = 10458649, upload-time = "2026-09-24T20:37:46.882Z" }, +] + +[[package]] +name = "sse-starlette" +version = "3.4.11" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "anyio" }, + { name = "starlette" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/2b/54/6767bb789b2f2fed6e0f953df949cd39dc263a384c1b65a95232598621d6/sse_starlette-3.4.11.tar.gz", hash = "sha256:1bae716c02f3e6f294be41ff333220692dae7c3cbab077c900f159676719dade", size = 34972, upload-time = "2026-09-05T12:11:04.607Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/98/6a/2ba3ed4a69babf3afdddf7d8314a48d87562c0a442206bbc2a1b50d5efc0/sse_starlette-3.4.11-py3-none-any.whl", hash = "sha256:c7b2244bdff016fe7f64e10075e89a3e6bbf899649cc89b0fe884b5545042453", size = 17122, upload-time = "2026-09-05T12:11:03.195Z" }, +] + +[[package]] +name = "starlette" +version = "1.7.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "anyio" }, + { name = "typing-extensions", marker = "python_full_version < '3.13'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/7b/2b/3850dc6bf7ef71b088962eba31dafc6cffd2f96e577ebb0bb316df96da3e/starlette-1.7.0.tar.gz", hash = "sha256:c79f74ea63cff761804fbbfb182f1e0b440c2d07b164d24700c5a1bab5d6ff5d", size = 2736246, upload-time = "2026-09-23T07:30:26.35Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/4e/d6/1ec1b290f9e0fb067899b61e1d37a30c923068bad260b216dbe37a7d2967/starlette-1.7.0-py3-none-any.whl", hash = "sha256:67f8e99895493dd2911a03f11314af6ceebeae4e704bb9f43dfc6a9db151c93e", size = 78980, upload-time = "2026-09-23T07:30:24.567Z" }, +] + +[[package]] +name = "tomli" +version = "2.4.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/22/de/48c59722572767841493b26183a0d1cc411d54fd759c5607c4590b6563a6/tomli-2.4.1.tar.gz", hash = "sha256:7c7e1a961a0b2f2472c1ac5b69affa0ae1132c39adcb67aba98568702b9cc23f", size = 17543, upload-time = "2026-03-25T20:22:03.828Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f4/11/db3d5885d8528263d8adc260bb2d28ebf1270b96e98f0e0268d32b8d9900/tomli-2.4.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:f8f0fc26ec2cc2b965b7a3b87cd19c5c6b8c5e5f436b984e85f486d652285c30", size = 154704, upload-time = "2026-03-25T20:21:10.473Z" }, + { url = "https://files.pythonhosted.org/packages/6d/f7/675db52c7e46064a9aa928885a9b20f4124ecb9bc2e1ce74c9106648d202/tomli-2.4.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4ab97e64ccda8756376892c53a72bd1f964e519c77236368527f758fbc36a53a", size = 149454, upload-time = "2026-03-25T20:21:12.036Z" }, + { url = "https://files.pythonhosted.org/packages/61/71/81c50943cf953efa35bce7646caab3cf457a7d8c030b27cfb40d7235f9ee/tomli-2.4.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:96481a5786729fd470164b47cdb3e0e58062a496f455ee41b4403be77cb5a076", size = 237561, upload-time = "2026-03-25T20:21:13.098Z" }, + { url = "https://files.pythonhosted.org/packages/48/c1/f41d9cb618acccca7df82aaf682f9b49013c9397212cb9f53219e3abac37/tomli-2.4.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5a881ab208c0baf688221f8cecc5401bd291d67e38a1ac884d6736cbcd8247e9", size = 243824, upload-time = "2026-03-25T20:21:14.569Z" }, + { url = "https://files.pythonhosted.org/packages/22/e4/5a816ecdd1f8ca51fb756ef684b90f2780afc52fc67f987e3c61d800a46d/tomli-2.4.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:47149d5bd38761ac8be13a84864bf0b7b70bc051806bc3669ab1cbc56216b23c", size = 242227, upload-time = "2026-03-25T20:21:15.712Z" }, + { url = "https://files.pythonhosted.org/packages/6b/49/2b2a0ef529aa6eec245d25f0c703e020a73955ad7edf73e7f54ddc608aa5/tomli-2.4.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:ec9bfaf3ad2df51ace80688143a6a4ebc09a248f6ff781a9945e51937008fcbc", size = 247859, upload-time = "2026-03-25T20:21:17.001Z" }, + { url = "https://files.pythonhosted.org/packages/83/bd/6c1a630eaca337e1e78c5903104f831bda934c426f9231429396ce3c3467/tomli-2.4.1-cp311-cp311-win32.whl", hash = "sha256:ff2983983d34813c1aeb0fa89091e76c3a22889ee83ab27c5eeb45100560c049", size = 97204, upload-time = "2026-03-25T20:21:18.079Z" }, + { url = "https://files.pythonhosted.org/packages/42/59/71461df1a885647e10b6bb7802d0b8e66480c61f3f43079e0dcd315b3954/tomli-2.4.1-cp311-cp311-win_amd64.whl", hash = "sha256:5ee18d9ebdb417e384b58fe414e8d6af9f4e7a0ae761519fb50f721de398dd4e", size = 108084, upload-time = "2026-03-25T20:21:18.978Z" }, + { url = "https://files.pythonhosted.org/packages/b8/83/dceca96142499c069475b790e7913b1044c1a4337e700751f48ed723f883/tomli-2.4.1-cp311-cp311-win_arm64.whl", hash = "sha256:c2541745709bad0264b7d4705ad453b76ccd191e64aa6f0fc66b69a293a45ece", size = 95285, upload-time = "2026-03-25T20:21:20.309Z" }, + { url = "https://files.pythonhosted.org/packages/c1/ba/42f134a3fe2b370f555f44b1d72feebb94debcab01676bf918d0cb70e9aa/tomli-2.4.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:c742f741d58a28940ce01d58f0ab2ea3ced8b12402f162f4d534dfe18ba1cd6a", size = 155924, upload-time = "2026-03-25T20:21:21.626Z" }, + { url = "https://files.pythonhosted.org/packages/dc/c7/62d7a17c26487ade21c5422b646110f2162f1fcc95980ef7f63e73c68f14/tomli-2.4.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:7f86fd587c4ed9dd76f318225e7d9b29cfc5a9d43de44e5754db8d1128487085", size = 150018, upload-time = "2026-03-25T20:21:23.002Z" }, + { url = "https://files.pythonhosted.org/packages/5c/05/79d13d7c15f13bdef410bdd49a6485b1c37d28968314eabee452c22a7fda/tomli-2.4.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ff18e6a727ee0ab0388507b89d1bc6a22b138d1e2fa56d1ad494586d61d2eae9", size = 244948, upload-time = "2026-03-25T20:21:24.04Z" }, + { url = "https://files.pythonhosted.org/packages/10/90/d62ce007a1c80d0b2c93e02cab211224756240884751b94ca72df8a875ca/tomli-2.4.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:136443dbd7e1dee43c68ac2694fde36b2849865fa258d39bf822c10e8068eac5", size = 253341, upload-time = "2026-03-25T20:21:25.177Z" }, + { url = "https://files.pythonhosted.org/packages/1a/7e/caf6496d60152ad4ed09282c1885cca4eea150bfd007da84aea07bcc0a3e/tomli-2.4.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:5e262d41726bc187e69af7825504c933b6794dc3fbd5945e41a79bb14c31f585", size = 248159, upload-time = "2026-03-25T20:21:26.364Z" }, + { url = "https://files.pythonhosted.org/packages/99/e7/c6f69c3120de34bbd882c6fba7975f3d7a746e9218e56ab46a1bc4b42552/tomli-2.4.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:5cb41aa38891e073ee49d55fbc7839cfdb2bc0e600add13874d048c94aadddd1", size = 253290, upload-time = "2026-03-25T20:21:27.46Z" }, + { url = "https://files.pythonhosted.org/packages/d6/2f/4a3c322f22c5c66c4b836ec58211641a4067364f5dcdd7b974b4c5da300c/tomli-2.4.1-cp312-cp312-win32.whl", hash = "sha256:da25dc3563bff5965356133435b757a795a17b17d01dbc0f42fb32447ddfd917", size = 98141, upload-time = "2026-03-25T20:21:28.492Z" }, + { url = "https://files.pythonhosted.org/packages/24/22/4daacd05391b92c55759d55eaee21e1dfaea86ce5c571f10083360adf534/tomli-2.4.1-cp312-cp312-win_amd64.whl", hash = "sha256:52c8ef851d9a240f11a88c003eacb03c31fc1c9c4ec64a99a0f922b93874fda9", size = 108847, upload-time = "2026-03-25T20:21:29.386Z" }, + { url = "https://files.pythonhosted.org/packages/68/fd/70e768887666ddd9e9f5d85129e84910f2db2796f9096aa02b721a53098d/tomli-2.4.1-cp312-cp312-win_arm64.whl", hash = "sha256:f758f1b9299d059cc3f6546ae2af89670cb1c4d48ea29c3cacc4fe7de3058257", size = 95088, upload-time = "2026-03-25T20:21:30.677Z" }, + { url = "https://files.pythonhosted.org/packages/07/06/b823a7e818c756d9a7123ba2cda7d07bc2dd32835648d1a7b7b7a05d848d/tomli-2.4.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:36d2bd2ad5fb9eaddba5226aa02c8ec3fa4f192631e347b3ed28186d43be6b54", size = 155866, upload-time = "2026-03-25T20:21:31.65Z" }, + { url = "https://files.pythonhosted.org/packages/14/6f/12645cf7f08e1a20c7eb8c297c6f11d31c1b50f316a7e7e1e1de6e2e7b7e/tomli-2.4.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:eb0dc4e38e6a1fd579e5d50369aa2e10acfc9cace504579b2faabb478e76941a", size = 149887, upload-time = "2026-03-25T20:21:33.028Z" }, + { url = "https://files.pythonhosted.org/packages/5c/e0/90637574e5e7212c09099c67ad349b04ec4d6020324539297b634a0192b0/tomli-2.4.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c7f2c7f2b9ca6bdeef8f0fa897f8e05085923eb091721675170254cbc5b02897", size = 243704, upload-time = "2026-03-25T20:21:34.51Z" }, + { url = "https://files.pythonhosted.org/packages/10/8f/d3ddb16c5a4befdf31a23307f72828686ab2096f068eaf56631e136c1fdd/tomli-2.4.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f3c6818a1a86dd6dca7ddcaaf76947d5ba31aecc28cb1b67009a5877c9a64f3f", size = 251628, upload-time = "2026-03-25T20:21:36.012Z" }, + { url = "https://files.pythonhosted.org/packages/e3/f1/dbeeb9116715abee2485bf0a12d07a8f31af94d71608c171c45f64c0469d/tomli-2.4.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:d312ef37c91508b0ab2cee7da26ec0b3ed2f03ce12bd87a588d771ae15dcf82d", size = 247180, upload-time = "2026-03-25T20:21:37.136Z" }, + { url = "https://files.pythonhosted.org/packages/d3/74/16336ffd19ed4da28a70959f92f506233bd7cfc2332b20bdb01591e8b1d1/tomli-2.4.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:51529d40e3ca50046d7606fa99ce3956a617f9b36380da3b7f0dd3dd28e68cb5", size = 251674, upload-time = "2026-03-25T20:21:38.298Z" }, + { url = "https://files.pythonhosted.org/packages/16/f9/229fa3434c590ddf6c0aa9af64d3af4b752540686cace29e6281e3458469/tomli-2.4.1-cp313-cp313-win32.whl", hash = "sha256:2190f2e9dd7508d2a90ded5ed369255980a1bcdd58e52f7fe24b8162bf9fedbd", size = 97976, upload-time = "2026-03-25T20:21:39.316Z" }, + { url = "https://files.pythonhosted.org/packages/6a/1e/71dfd96bcc1c775420cb8befe7a9d35f2e5b1309798f009dca17b7708c1e/tomli-2.4.1-cp313-cp313-win_amd64.whl", hash = "sha256:8d65a2fbf9d2f8352685bc1364177ee3923d6baf5e7f43ea4959d7d8bc326a36", size = 108755, upload-time = "2026-03-25T20:21:40.248Z" }, + { url = "https://files.pythonhosted.org/packages/83/7a/d34f422a021d62420b78f5c538e5b102f62bea616d1d75a13f0a88acb04a/tomli-2.4.1-cp313-cp313-win_arm64.whl", hash = "sha256:4b605484e43cdc43f0954ddae319fb75f04cc10dd80d830540060ee7cd0243cd", size = 95265, upload-time = "2026-03-25T20:21:41.219Z" }, + { url = "https://files.pythonhosted.org/packages/3c/fb/9a5c8d27dbab540869f7c1f8eb0abb3244189ce780ba9cd73f3770662072/tomli-2.4.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:fd0409a3653af6c147209d267a0e4243f0ae46b011aa978b1080359fddc9b6cf", size = 155726, upload-time = "2026-03-25T20:21:42.23Z" }, + { url = "https://files.pythonhosted.org/packages/62/05/d2f816630cc771ad836af54f5001f47a6f611d2d39535364f148b6a92d6b/tomli-2.4.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:a120733b01c45e9a0c34aeef92bf0cf1d56cfe81ed9d47d562f9ed591a9828ac", size = 149859, upload-time = "2026-03-25T20:21:43.386Z" }, + { url = "https://files.pythonhosted.org/packages/ce/48/66341bdb858ad9bd0ceab5a86f90eddab127cf8b046418009f2125630ecb/tomli-2.4.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:559db847dc486944896521f68d8190be1c9e719fced785720d2216fe7022b662", size = 244713, upload-time = "2026-03-25T20:21:44.474Z" }, + { url = "https://files.pythonhosted.org/packages/df/6d/c5fad00d82b3c7a3ab6189bd4b10e60466f22cfe8a08a9394185c8a8111c/tomli-2.4.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:01f520d4f53ef97964a240a035ec2a869fe1a37dde002b57ebc4417a27ccd853", size = 252084, upload-time = "2026-03-25T20:21:45.62Z" }, + { url = "https://files.pythonhosted.org/packages/00/71/3a69e86f3eafe8c7a59d008d245888051005bd657760e96d5fbfb0b740c2/tomli-2.4.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7f94b27a62cfad8496c8d2513e1a222dd446f095fca8987fceef261225538a15", size = 247973, upload-time = "2026-03-25T20:21:46.937Z" }, + { url = "https://files.pythonhosted.org/packages/67/50/361e986652847fec4bd5e4a0208752fbe64689c603c7ae5ea7cb16b1c0ca/tomli-2.4.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:ede3e6487c5ef5d28634ba3f31f989030ad6af71edfb0055cbbd14189ff240ba", size = 256223, upload-time = "2026-03-25T20:21:48.467Z" }, + { url = "https://files.pythonhosted.org/packages/8c/9a/b4173689a9203472e5467217e0154b00e260621caa227b6fa01feab16998/tomli-2.4.1-cp314-cp314-win32.whl", hash = "sha256:3d48a93ee1c9b79c04bb38772ee1b64dcf18ff43085896ea460ca8dec96f35f6", size = 98973, upload-time = "2026-03-25T20:21:49.526Z" }, + { url = "https://files.pythonhosted.org/packages/14/58/640ac93bf230cd27d002462c9af0d837779f8773bc03dee06b5835208214/tomli-2.4.1-cp314-cp314-win_amd64.whl", hash = "sha256:88dceee75c2c63af144e456745e10101eb67361050196b0b6af5d717254dddf7", size = 109082, upload-time = "2026-03-25T20:21:50.506Z" }, + { url = "https://files.pythonhosted.org/packages/d5/2f/702d5e05b227401c1068f0d386d79a589bb12bf64c3d2c72ce0631e3bc49/tomli-2.4.1-cp314-cp314-win_arm64.whl", hash = "sha256:b8c198f8c1805dc42708689ed6864951fd2494f924149d3e4bce7710f8eb5232", size = 96490, upload-time = "2026-03-25T20:21:51.474Z" }, + { url = "https://files.pythonhosted.org/packages/45/4b/b877b05c8ba62927d9865dd980e34a755de541eb65fffba52b4cc495d4d2/tomli-2.4.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:d4d8fe59808a54658fcc0160ecfb1b30f9089906c50b23bcb4c69eddc19ec2b4", size = 164263, upload-time = "2026-03-25T20:21:52.543Z" }, + { url = "https://files.pythonhosted.org/packages/24/79/6ab420d37a270b89f7195dec5448f79400d9e9c1826df982f3f8e97b24fd/tomli-2.4.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:7008df2e7655c495dd12d2a4ad038ff878d4ca4b81fccaf82b714e07eae4402c", size = 160736, upload-time = "2026-03-25T20:21:53.674Z" }, + { url = "https://files.pythonhosted.org/packages/02/e0/3630057d8eb170310785723ed5adcdfb7d50cb7e6455f85ba8a3deed642b/tomli-2.4.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1d8591993e228b0c930c4bb0db464bdad97b3289fb981255d6c9a41aedc84b2d", size = 270717, upload-time = "2026-03-25T20:21:55.129Z" }, + { url = "https://files.pythonhosted.org/packages/7a/b4/1613716072e544d1a7891f548d8f9ec6ce2faf42ca65acae01d76ea06bb0/tomli-2.4.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:734e20b57ba95624ecf1841e72b53f6e186355e216e5412de414e3c51e5e3c41", size = 278461, upload-time = "2026-03-25T20:21:56.228Z" }, + { url = "https://files.pythonhosted.org/packages/05/38/30f541baf6a3f6df77b3df16b01ba319221389e2da59427e221ef417ac0c/tomli-2.4.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:8a650c2dbafa08d42e51ba0b62740dae4ecb9338eefa093aa5c78ceb546fcd5c", size = 274855, upload-time = "2026-03-25T20:21:57.653Z" }, + { url = "https://files.pythonhosted.org/packages/77/a3/ec9dd4fd2c38e98de34223b995a3b34813e6bdadf86c75314c928350ed14/tomli-2.4.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:504aa796fe0569bb43171066009ead363de03675276d2d121ac1a4572397870f", size = 283144, upload-time = "2026-03-25T20:21:59.089Z" }, + { url = "https://files.pythonhosted.org/packages/ef/be/605a6261cac79fba2ec0c9827e986e00323a1945700969b8ee0b30d85453/tomli-2.4.1-cp314-cp314t-win32.whl", hash = "sha256:b1d22e6e9387bf4739fbe23bfa80e93f6b0373a7f1b96c6227c32bef95a4d7a8", size = 108683, upload-time = "2026-03-25T20:22:00.214Z" }, + { url = "https://files.pythonhosted.org/packages/12/64/da524626d3b9cc40c168a13da8335fe1c51be12c0a63685cc6db7308daae/tomli-2.4.1-cp314-cp314t-win_amd64.whl", hash = "sha256:2c1c351919aca02858f740c6d33adea0c5deea37f9ecca1cc1ef9e884a619d26", size = 121196, upload-time = "2026-03-25T20:22:01.169Z" }, + { url = "https://files.pythonhosted.org/packages/5a/cd/e80b62269fc78fc36c9af5a6b89c835baa8af28ff5ad28c7028d60860320/tomli-2.4.1-cp314-cp314t-win_arm64.whl", hash = "sha256:eab21f45c7f66c13f2a9e0e1535309cee140182a9cdae1e041d02e47291e8396", size = 100393, upload-time = "2026-03-25T20:22:02.137Z" }, + { url = "https://files.pythonhosted.org/packages/7b/61/cceae43728b7de99d9b847560c262873a1f6c98202171fd5ed62640b494b/tomli-2.4.1-py3-none-any.whl", hash = "sha256:0d85819802132122da43cb86656f8d1f8c6587d54ae7dcaf30e90533028b49fe", size = 14583, upload-time = "2026-03-25T20:22:03.012Z" }, +] + +[[package]] +name = "truststore" +version = "0.10.4" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/53/a3/1585216310e344e8102c22482f6060c7a6ea0322b63e026372e6dcefcfd6/truststore-0.10.4.tar.gz", hash = "sha256:9d91bd436463ad5e4ee4aba766628dd6cd7010cf3e2461756b3303710eebc301", size = 26169, upload-time = "2025-08-12T18:49:02.73Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/19/97/56608b2249fe206a67cd573bc93cd9896e1efb9e98bce9c163bcdc704b88/truststore-0.10.4-py3-none-any.whl", hash = "sha256:adaeaecf1cbb5f4de3b1959b42d41f6fab57b2b1666adb59e89cb0b53361d981", size = 18660, upload-time = "2025-08-12T18:49:01.46Z" }, +] + +[[package]] +name = "typeguard" +version = "4.6.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/b4/de/4420db493fa8fc0856d5e5c1b159c63a323d2de2317babe36b01568928e8/typeguard-4.6.0.tar.gz", hash = "sha256:e7414f09111317de3e335de92cd397c5c0ca00b1cc1676de12e1d444a79b3f21", size = 82330, upload-time = "2026-07-26T08:40:23.207Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/8f/eb/461d5f167b6f5c7d97696f397c82f82e3480e003fce3f0a1cd1dd26e2eb2/typeguard-4.6.0-py3-none-any.whl", hash = "sha256:79878165bb86f2cf5d41d159a0ff1792a796cf496882d2fe1b1c6c7049b9cdd7", size = 36884, upload-time = "2026-07-26T08:40:21.868Z" }, +] + +[[package]] +name = "typing-extensions" +version = "4.16.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f6/cc/6253133b5bb138fc3306cebfbda2c520f545d36b5be2c7255cc528bb45d6/typing_extensions-4.16.0.tar.gz", hash = "sha256:dc983d19a509c94dba722ee6abd33940f7c05a89e243c47e907eb4db6f1a43e5", size = 113555, upload-time = "2026-07-02T08:40:05.92Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/49/d3/b8441a820a491ddfc024b0b0cf0393375b75ea13866d9c66727e54c2fc80/typing_extensions-4.16.0-py3-none-any.whl", hash = "sha256:481caa481374e813c1b176ada14e97f1f67a4539ce9cfeb3f350d78d6370c2e8", size = 45571, upload-time = "2026-07-02T08:40:04.659Z" }, +] + +[[package]] +name = "typing-inspection" +version = "0.4.4" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/a3/26/b09b8010994eccc3c09092e6b34058f36a460eea2d4c3e8b910c695975a0/typing_inspection-0.4.4.tar.gz", hash = "sha256:547274fa6b0a561ccf549cc9524b999a578e737d015d8709d021f9d0d13bea47", size = 76928, upload-time = "2026-08-12T12:37:25.997Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/67/81/4add07e5172b7ac40d8ed5ff580409a7801a4fe26d529bdd915401dabfbe/typing_inspection-0.4.4-py3-none-any.whl", hash = "sha256:65b8397ba37ccbce054456aaccddfc91e6e3083c92824df348d96ca832f3f147", size = 14750, upload-time = "2026-08-12T12:37:24.648Z" }, +] + +[[package]] +name = "uvicorn" +version = "0.53.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "click" }, + { name = "h11" }, + { name = "typing-extensions", marker = "python_full_version < '3.11'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/5d/ad/04bbb797c84fc1f26cb171f7394716f4865ffb8d8c5e1eef42565c2dfa6b/uvicorn-0.53.0.tar.gz", hash = "sha256:a9356f0cb89b3b8621529c5d5eebd69bfe154f4c3f68b4cf2de47e45fa855c2e", size = 110881, upload-time = "2026-09-14T07:44:23.815Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/76/18/0eea75741ee812e9f598b687619ce2454f6c3a1c5cd21ea990ec6bd26f45/uvicorn-0.53.0-py3-none-any.whl", hash = "sha256:e8dca71ec86dce5f04e333f0d56cdedf942446e6643b9cea1af0d6d3a02cb03e", size = 87081, upload-time = "2026-09-14T07:44:22.179Z" }, +] + +[[package]] +name = "zedcloud" +version = "0.1.0" +source = { editable = "packages/zedcloud" } +dependencies = [ + { name = "httpx" }, + { name = "pydantic" }, +] + +[package.optional-dependencies] +dev = [ + { name = "pytest" }, + { name = "respx" }, + { name = "ruff" }, +] + +[package.metadata] +requires-dist = [ + { name = "httpx", specifier = ">=0.27.0" }, + { name = "pydantic", specifier = ">=2.0.0" }, + { name = "pytest", marker = "extra == 'dev'", specifier = ">=8.0.0" }, + { name = "respx", marker = "extra == 'dev'", specifier = ">=0.21.0" }, + { name = "ruff", marker = "extra == 'dev'", specifier = ">=0.6.0" }, +] +provides-extras = ["dev"] + +[[package]] +name = "zedcloud-automation" +version = "0.1.0" +source = { editable = "packages/zedcloud-automation" } +dependencies = [ + { name = "pytest" }, + { name = "zedcloud" }, +] + +[package.metadata] +requires-dist = [ + { name = "pytest", specifier = ">=8.0.0" }, + { name = "zedcloud", editable = "packages/zedcloud" }, +] + +[[package]] +name = "zedcloud-mcp" +version = "0.1.0" +source = { editable = "packages/zedcloud-mcp" } +dependencies = [ + { name = "mcp" }, + { name = "zedcloud" }, +] + +[package.metadata] +requires-dist = [ + { name = "mcp", specifier = ">=1.0.0" }, + { name = "zedcloud", editable = "packages/zedcloud" }, +] + +[[package]] +name = "zedcloud-sdk" +version = "0.1.0" +source = { virtual = "." } + +[package.dev-dependencies] +dev = [ + { name = "datamodel-code-generator" }, + { name = "httpx" }, + { name = "pytest" }, + { name = "pytest-asyncio" }, + { name = "respx" }, + { name = "ruff" }, + { name = "zedcloud" }, + { name = "zedcloud-automation" }, + { name = "zedcloud-mcp" }, +] + +[package.metadata] + +[package.metadata.requires-dev] +dev = [ + { name = "datamodel-code-generator", specifier = ">=0.26.0" }, + { name = "httpx", specifier = ">=0.27.0" }, + { name = "pytest", specifier = ">=8.0.0" }, + { name = "pytest-asyncio", specifier = ">=0.23.0" }, + { name = "respx", specifier = ">=0.21.0" }, + { name = "ruff", specifier = ">=0.6.0" }, + { name = "zedcloud", editable = "packages/zedcloud" }, + { name = "zedcloud-automation", editable = "packages/zedcloud-automation" }, + { name = "zedcloud-mcp", editable = "packages/zedcloud-mcp" }, +]