Skip to content

Commit

Permalink
Azure Storage Blob Source: Expose Kamelet data type information (#1648)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
  • Loading branch information
oscerd committed Sep 19, 2023
1 parent 54a1cc6 commit a641dfe
Show file tree
Hide file tree
Showing 2 changed files with 144 additions and 0 deletions.
70 changes: 70 additions & 0 deletions kamelets/azure-storage-blob-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,76 @@ spec:
type: string
enum: ["SHARED_ACCOUNT_KEY", "AZURE_IDENTITY"]
default: "SHARED_ACCOUNT_KEY"
dataTypes:
out:
default: binary
headers:
CamelAzureStorageBlobBlobName:
title: Azure Storage Blob Name
description: The name of the blob retrieved
type: string
CamelAzureStorageBlobBlobType:
title: The Azure Storage Blob Type
description: The Blob type, one of blockblob, appendblob or pageblob
type: string
CamelAzureStorageBlobContentType:
title: Content Type
description: The content type of the retrieved object.
default: application/octet-stream
type: string
CamelAzureStorageBlobETag:
title: ETag Value
description: |-
The E tag of the blob
type: string
CamelAzureStorageBlobCreationTime:
title: Creation time
description: The Creation time of the blob
type: string
CamelAzureStorageBlobLastModified:
title: Last modification time
description: The Last modification time of the blob
type: string
CamelAzureStorageBlobLeaseStatus:
title: Lease status
description: Status of the lease on the blob, one of locked or unlocked
type: string
CamelAzureStorageBlobMetadata:
title: Blob Metadata
description: Additional Metadata of the blob of type Map<String,Object>
type: object
types:
binary:
format: "application-octet-stream"
description: Default binary representation of the Blob object retrieved from the container.
mediaType: application/octet-stream
cloudevents:
format: "azure-storage-blob:application-cloudevents"
description: |-
Output data type represents Azure Storage Blob get blob response as CloudEvent V1. The data type sets Camel specific CloudEvent headers on the exchange with
respective data from the Azure container and its derived object.
headers:
CamelCloudEventID:
title: CloudEvent ID
description: The Camel exchange id set as event id
type: string
CamelCloudEventType:
title: CloudEvent Type
description: The event type
default: "org.apache.camel.event.azure.storage.blob.getBlob"
type: string
CamelCloudEventSource:
title: CloudEvent Source
description: The event source. By default, the E Tag name of the blob with prefix "azure.storage.blob.".
type: string
CamelCloudEventSubject:
title: CloudEvent Subject
description: The event subject. Usually the Azure Storage Blob name.
type: string
CamelCloudEventTime:
title: CloudEvent Time
description: The exchange creation timestamp as event time.
type: string
dependencies:
- "camel:azure-storage-blob"
- "camel:kamelet"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,80 @@ spec:
type: string
enum: ["SHARED_ACCOUNT_KEY", "AZURE_IDENTITY"]
default: "SHARED_ACCOUNT_KEY"
dataTypes:
out:
default: binary
headers:
CamelAzureStorageBlobBlobName:
title: Azure Storage Blob Name
description: The name of the blob retrieved
type: string
CamelAzureStorageBlobBlobType:
title: The Azure Storage Blob Type
description: The Blob type, one of blockblob, appendblob or pageblob
type: string
CamelAzureStorageBlobContentType:
title: Content Type
description: The content type of the retrieved object.
default: application/octet-stream
type: string
CamelAzureStorageBlobETag:
title: ETag Value
description: |-
The E tag of the blob
type: string
CamelAzureStorageBlobBlobType:
title: The Azure Storage Blob Type
description: The Blob type, one of blockblob, appendblob or pageblob
type: string
CamelAzureStorageBlobCreationTime:
title: Creation time
description: The Creation time of the blob
type: string
CamelAzureStorageBlobLastModified:
title: Last modification time
description: The Last modification time of the blob
type: string
CamelAzureStorageBlobLeaseStatus:
title: Lease status
description: Status of the lease on the blob, one of locked or unlocked
type: string
CamelAzureStorageBlobMetadata:
title: Blob Metadata
description: Additional Metadata of the blob of type Map<String,Object>
type: object
types:
binary:
format: "application-octet-stream"
description: Default binary representation of the Blob object retrieved from the container.
mediaType: application/octet-stream
cloudevents:
format: "azure-storage-blob:application-cloudevents"
description: |-
Output data type represents Azure Storage Blob get blob response as CloudEvent V1. The data type sets Camel specific CloudEvent headers on the exchange with
respective data from the Azure container and its derived object.
headers:
CamelCloudEventID:
title: CloudEvent ID
description: The Camel exchange id set as event id
type: string
CamelCloudEventType:
title: CloudEvent Type
description: The event type
default: "org.apache.camel.event.azure.storage.blob.getBlob"
type: string
CamelCloudEventSource:
title: CloudEvent Source
description: The event source. By default, the E Tag name of the blob with prefix "azure.storage.blob.".
type: string
CamelCloudEventSubject:
title: CloudEvent Subject
description: The event subject. Usually the Azure Storage Blob name.
type: string
CamelCloudEventTime:
title: CloudEvent Time
description: The exchange creation timestamp as event time.
type: string
dependencies:
- "camel:azure-storage-blob"
- "camel:kamelet"
Expand Down

0 comments on commit a641dfe

Please sign in to comment.