Skip to content

Commit

Permalink
@matusdrobuliak66 add license key to api-server model
Browse files Browse the repository at this point in the history
  • Loading branch information
bisgaard-itis committed Dec 18, 2024
1 parent 48d3fba commit 80c1223
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ class ServicePricingPlanGetLegacy(BaseModel):
class LicensedItemGet(BaseModel):
licensed_item_id: LicensedItemID
name: Annotated[str, Field(alias="display_name")]
license_key: str | None
licensed_resource_type: LicensedResourceType
pricing_plan_id: PricingPlanId
created_at: datetime
Expand All @@ -141,7 +142,4 @@ class LicensedItemGet(BaseModel):

assert set(LicensedItemGet.model_fields.keys()) == set(
_LicensedItemGet.model_fields.keys()
- {
"license_key"
} # NOTE: @bisgaard-itis please expose https://github.com/ITISFoundation/osparc-simcore/issues/6875
)
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ async def get_licensed_items(
LicensedItemGet(
licensed_item_id=elm.licensed_item_id,
name=elm.name,
license_key=elm.license_key,
licensed_resource_type=elm.licensed_resource_type,
pricing_plan_id=elm.pricing_plan_id,
created_at=elm.created_at,
Expand Down

0 comments on commit 80c1223

Please sign in to comment.