Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev feature report sb names #9

Merged
merged 2 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions processing-status-api-function-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,9 @@ dependencies {
implementation 'com.google.code.gson:gson:2.10.1'

implementation 'com.azure:azure-messaging-servicebus:7.13.3'
implementation 'com.azure:azure-identity:1.8.0'

implementation 'org.danilopianini:khttp:1.3.1'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.7'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.9'

agent "io.opentelemetry.javaagent:opentelemetry-javaagent:1.29.0"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package gov.cdc.ocio.processingstatusapi.model

import com.google.gson.annotations.SerializedName

/**
* Amend an existing report service bus message.
*
Expand All @@ -10,10 +12,13 @@ package gov.cdc.ocio.processingstatusapi.model
*/
class AmendReportSBMessage: ServiceBusMessage() {

@SerializedName("upload_id")
val uploadId: String? = null

@SerializedName("stage_name")
val stageName: String? = null

@SerializedName("content_type")
val contentType: String? = null

val content: String? = null
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package gov.cdc.ocio.processingstatusapi.model

import com.google.gson.annotations.SerializedName

/**
* Create a report service bus message.
*
Expand All @@ -9,9 +11,12 @@ package gov.cdc.ocio.processingstatusapi.model
*/
class CreateReportSBMessage: ServiceBusMessage() {

@SerializedName("upload_id")
val uploadId: String? = null

@SerializedName("destination_id")
val destinationId: String? = null

@SerializedName("event_type")
val eventType: String? = null
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ enum class DispositionType {
*/
open class ServiceBusMessage {

@SerializedName("request_type")
var requestType = RequestType.UNDEFINED

@SerializedName("disposition_type")
// Default is to append
var dispositionType = DispositionType.APPEND
}
Loading