Skip to content

Commit

Permalink
Merge pull request #32 from ESGF/feature/0.3.4
Browse files Browse the repository at this point in the history
Feature/0.3.4
  • Loading branch information
Edbo849 authored Nov 6, 2024
2 parents bcd4f09 + a61072e commit f52ea07
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
13 changes: 12 additions & 1 deletion esgf_playground_utils/models/kafka.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from datetime import datetime
from enum import Enum
from typing import Any, Dict, Literal, Union
from typing import Any, Dict, List, Literal, Union

from pydantic import BaseModel
from stac_pydantic.item import Item
Expand Down Expand Up @@ -101,6 +101,17 @@ class Auth(BaseModel):
server: str


class AuthData(BaseModel):
"""
Model describing ``Auth`` component of a Kafka message in more detail.
"""

auth_policy_id: str
target_data: Dict[str, str]
requester_data: Dict[str, str]
auth_basis_data: Dict[str, Union[str, List[Dict[str, str]]]]


class Publisher(BaseModel):
"""
Model describing the ``PUBLISHER`` component of a Kafka message. This is the name and version of the software used
Expand Down
12 changes: 6 additions & 6 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "esgf-playground-utils"
version = "0.3.3"
version = "0.3.4"
description = "Common library and models for the ESGF-Playground"
authors = [
"David Poulter <[email protected]>",
Expand Down

0 comments on commit f52ea07

Please sign in to comment.