Skip to content

Commit

Permalink
BundleMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
schloerke committed Nov 13, 2024
1 parent df1180c commit 45660cf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/posit/connect/bundles.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,18 @@
from typing import List

from . import resources, tasks
from ._active import ReadOnlyDict


class BundleMetadata(resources.Resource):
class BundleMetadata(ReadOnlyDict):
pass


# TODO-barret Inherit from `ActiveDict`
class Bundle(resources.Resource):
@property
def metadata(self) -> BundleMetadata:
return BundleMetadata(self.params, **self.get("metadata", {}))
return BundleMetadata(**self.get("metadata", {}))

def delete(self) -> None:
"""Delete the bundle."""
Expand Down

0 comments on commit 45660cf

Please sign in to comment.