Commit 299bbeb1 authored by Sergio Gimenez's avatar Sergio Gimenez
Browse files

relax edge cloud zone validation

parent f69d8260
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -31,14 +31,14 @@ class EdgeCloudZone(BaseModel):
        pattern="^(active|inactive|unknown)$",
    )
    edgeCloudProvider: str = Field(..., description="Name of the Edge Cloud Provider")
    edgeCloudRegion: str | None = Field(..., description="Region of the Edge Cloud Zone")
    edgeCloudRegion: str | None = Field(None, description="Region of the Edge Cloud Zone")


class EdgeCloudQueryParams(BaseModel):
    x_correlator: str | None
    region: str | None
    status: str | None = Field(
        ...,
        None,
        description="Status of the Edge Cloud Zone",
        pattern="^(active|inactive|unknown)$",
    )
@@ -152,4 +152,3 @@ def edge_cloud_zone_details(zoneId: str) -> dict:
    api_client = pi_edge_factory.create_pi_edge_api_client()
    result = api_client.edge_cloud_zone_details(zone_id=zoneId)
    return result