2021-11-09 20:56:45 -08:00
|
|
|
# generated by datamodel-codegen:
|
|
|
|
# filename: schema/api/data/createLocation.json
|
2021-11-11 12:44:03 -08:00
|
|
|
# timestamp: 2021-11-11T08:56:06+00:00
|
2021-11-09 20:56:45 -08:00
|
|
|
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
from typing import List, Optional
|
|
|
|
|
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
|
|
|
|
from ...entity.data import location
|
|
|
|
from ...type import entityReference, tagLabel
|
|
|
|
|
|
|
|
|
|
|
|
class CreateLocationEntityRequest(BaseModel):
|
|
|
|
name: str = Field(..., description='Name that identifies this Location.')
|
|
|
|
description: Optional[str] = Field(
|
|
|
|
None, description='Description of the location instance.'
|
|
|
|
)
|
|
|
|
locationType: Optional[location.LocationType] = None
|
|
|
|
tags: Optional[List[tagLabel.TagLabel]] = Field(
|
|
|
|
None, description='Tags for this chart'
|
|
|
|
)
|
|
|
|
owner: Optional[entityReference.EntityReference] = Field(
|
|
|
|
None, description='Owner of this Location'
|
|
|
|
)
|
|
|
|
service: entityReference.EntityReference = Field(
|
|
|
|
..., description='Link to the pipeline service where this location is used'
|
|
|
|
)
|