Skip to content

Commit

Permalink
Added s3_endpoint_alias to all events communicating bucket_id/object_id
Browse files Browse the repository at this point in the history
  • Loading branch information
mephenor committed Sep 19, 2023
1 parent b426ec1 commit 1778352
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ghga_event_schemas/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@

"""A package that collects schemas used for events exchanges between GHGA service."""

__version__ = "0.13.4"
__version__ = "0.13.5"
20 changes: 20 additions & 0 deletions ghga_event_schemas/pydantic_.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ class FileUploadReceived(UploadDateModel):
bucket_id: str = Field(
..., description="The ID/name of the S3 bucket used to store the file."
)
s3_endpoint_alias: str = Field(
...,
description="Alias for the object storage location where the given object is stored."
+ "This can be uniquely mapped to a corresponding endpoint URL in the configuration.",
)
submitter_public_key: str = Field(
...,
description="The public key of the submitter.",
Expand Down Expand Up @@ -208,6 +213,11 @@ class FileUploadValidationSuccess(UploadDateModel):
bucket_id: str = Field(
..., description="The ID/name of the S3 bucket used to store the file."
)
s3_endpoint_alias: str = Field(
...,
description="Alias for the object storage location where the given object is stored."
+ "This can be uniquely mapped to a corresponding endpoint URL in the configuration.",
)
decrypted_size: int = Field(
...,
description="The size of the entire decrypted file content in bytes.",
Expand Down Expand Up @@ -275,6 +285,11 @@ class FileUploadValidationFailure(UploadDateModel):
...,
description="The ID/name of the S3 bucket used to store the file.",
)
s3_endpoint_alias: str = Field(
...,
description="Alias for the object storage location where the given object is stored."
+ "This can be uniquely mapped to a corresponding endpoint URL in the configuration.",
)
reason: str = Field(
...,
description="The reason why the validation failed.",
Expand Down Expand Up @@ -339,6 +354,11 @@ class NonStagedFileRequested(BaseModel):
...,
description="The ID/name of the S3 bucket in which the object was expected.",
)
s3_endpoint_alias: str = Field(
...,
description="Alias for the object storage location where the given object is stored."
+ "This can be uniquely mapped to a corresponding endpoint URL in the configuration.",
)
decrypted_sha256: str = Field(
...,
description="The SHA-256 checksum of the entire decrypted file content.",
Expand Down

0 comments on commit 1778352

Please sign in to comment.