40 lines
1.1 KiB
Python
40 lines
1.1 KiB
Python
# generated by datamodel-codegen:
|
|
# filename: schema.tRo.json
|
|
# timestamp: 2026-02-20T04:31:38+00:00
|
|
|
|
from __future__ import annotations
|
|
|
|
from enum import Enum
|
|
|
|
from pydantic import BaseModel, ConfigDict, Field, constr
|
|
|
|
|
|
class ApiVersion(Enum):
|
|
v1alpha1 = 'v1alpha1'
|
|
|
|
|
|
class Kind(Enum):
|
|
SideroLinkConfig = 'SideroLinkConfig'
|
|
|
|
|
|
class ConfigV1Alpha1(BaseModel):
|
|
model_config = ConfigDict(
|
|
extra='forbid',
|
|
)
|
|
apiVersion: ApiVersion = Field(
|
|
...,
|
|
description='apiVersion is the API version of the resource.\n',
|
|
title='apiVersion',
|
|
)
|
|
kind: Kind = Field(
|
|
..., description='kind is the kind of the resource.\n', title='kind'
|
|
)
|
|
apiUrl: constr(pattern=r'^(https|grpc)://') | None = Field(
|
|
None, description='SideroLink API URL to connect to.\n', title='apiUrl'
|
|
)
|
|
uniqueToken: str | None = Field(
|
|
None,
|
|
description='SideroLink unique token to use for the connection (optional).\n\nThis value is overridden with META key UniqueMachineToken.\n',
|
|
title='uniqueToken',
|
|
)
|