Skip to content

Commit 6c78331

Browse files
author
David Hasani
committed
update api model
1 parent b8005fd commit 6c78331

File tree

4 files changed

+1094
-2496
lines changed

4 files changed

+1094
-2496
lines changed

plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/client/GumbyClient.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,8 @@ class GumbyClient(private val project: Project) {
231231
it.linesOfCodeSubmitted(metrics.linesOfCodeSubmitted) // currently unavailable for SQL conversions
232232
}
233233
}
234-
notifyStickyInfo("sendTelemetryEvent requestBuilder", requestBuilder.toString())
235234
requestBuilder.optOutPreference(getTelemetryOptOutPreference())
236-
notifyStickyInfo("sendTelemetryEvent optOutPreference", getTelemetryOptOutPreference().toString())
237235
requestBuilder.userContext(codeWhispererUserContext())
238-
notifyStickyInfo("sendTelemetryEvent userContext", codeWhispererUserContext().toString())
239236
}
240237
notifyStickyInfo("sendTelemetryEvent resp", resp.toString())
241238
}

plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/model/CodeModernizerArtifact.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ open class CodeModernizerArtifact(
5757
val manifest = loadManifest()
5858
if (manifest.version > MAX_SUPPORTED_VERSION) {
5959
// If not supported we can still try to use it, i.e. the versions should largely be backwards compatible
60-
LOG.warn { "Unsupported version: ${manifest.version}" }
60+
LOG.warn { "Unsupported manifest.json version: ${manifest.version}" }
6161
}
6262
val patches = extractPatches(manifest)
6363
val summary = extractSummary(manifest)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
package software.aws.toolkits.jetbrains.services.codemodernizer.model
5+
6+
import com.fasterxml.jackson.annotation.JsonProperty
7+
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper
8+
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement
9+
10+
@JacksonXmlRootElement(localName = "tree")
11+
data class SctMetadata(
12+
@JsonProperty("instances")
13+
val instances: Instances
14+
)
15+
16+
data class Instances(
17+
@JsonProperty("ProjectModel")
18+
val projectModel: ProjectModel
19+
)
20+
21+
data class ProjectModel(
22+
@JsonProperty("entities")
23+
val entities: Entities,
24+
@JsonProperty("relations")
25+
val relations: Relations,
26+
)
27+
28+
data class Entities(
29+
@JsonProperty("sources")
30+
val sources: Sources,
31+
@JsonProperty("targets")
32+
val targets: Targets,
33+
)
34+
35+
data class Sources(
36+
@JsonProperty("DbServer")
37+
val dbServer: DbServer,
38+
)
39+
40+
data class Targets(
41+
@JsonProperty("DbServer")
42+
val dbServer: DbServer,
43+
)
44+
45+
data class DbServer(
46+
@JsonProperty("vendor")
47+
val vendor: String,
48+
@JsonProperty("name")
49+
val name: String,
50+
)
51+
52+
data class Relations(
53+
@JsonProperty("server-node-location")
54+
@JacksonXmlElementWrapper(useWrapping = false)
55+
val serverNodeLocation: List<ServerNodeLocation>,
56+
)
57+
58+
data class ServerNodeLocation(
59+
@JsonProperty("FullNameNodeInfoList")
60+
val fullNameNodeInfoList: FullNameNodeInfoList,
61+
)
62+
63+
data class FullNameNodeInfoList(
64+
@JsonProperty("nameParts")
65+
val nameParts: NameParts,
66+
)
67+
68+
data class NameParts(
69+
@JsonProperty("FullNameNodeInfo")
70+
@JacksonXmlElementWrapper(useWrapping = false)
71+
val fullNameNodeInfo: List<FullNameNodeInfo>,
72+
)
73+
74+
data class FullNameNodeInfo(
75+
@JsonProperty("typeNode")
76+
val typeNode: String,
77+
@JsonProperty("nameNode")
78+
val nameNode: String,
79+
)

0 commit comments

Comments
 (0)