Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
add s3 access type
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasBurger committed Jul 30, 2021
1 parent 91f6af8 commit 9f88bd7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bindings-python/gci/componentmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class AccessType(enum.Enum):
LOCAL_OCI_BLOB = 'localOciBlob'
OCI_REGISTRY = 'ociRegistry'
RELATIVE_OCI_REFERENCE = 'relativeOciReference'
S3 = 's3'
NONE = 'None' # the resource is only declared informally (e.g. generic)


Expand Down Expand Up @@ -111,6 +112,12 @@ class HttpAccess(ResourceAccess):
url: str


@dc(frozen=True)
class S3Access(ResourceAccess):
bucketName: str
objectKey: str


@dc(frozen=True)
class LocalOCIBlobAccess(ResourceAccess):
digest: str
Expand Down

0 comments on commit 9f88bd7

Please sign in to comment.