diff --git a/README.md b/README.md index c27363a..7366b07 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ Add the dependency in your `pom.xml` file: com.anduril lattice-sdk - 3.1.0 + 4.0.0 ``` @@ -103,9 +103,9 @@ When the API returns a non-success status code (4xx or 5xx response), an API exc ```java import com.anduril.core.AndurilApiApiException; -try { +try{ client.entities().longPollEntityEvents(...); -} catch (AndurilApiApiException e) { +} catch (AndurilApiApiException e){ // Do something with the API exception... } ``` diff --git a/build.gradle b/build.gradle index a60fc51..d97fbd3 100644 --- a/build.gradle +++ b/build.gradle @@ -48,7 +48,7 @@ java { group = 'com.anduril' -version = '3.1.0' +version = '4.0.0' jar { dependsOn(":generatePomFileForMavenPublication") @@ -79,7 +79,7 @@ publishing { maven(MavenPublication) { groupId = 'com.anduril' artifactId = 'lattice-sdk' - version = '3.1.0' + version = '4.0.0' from components.java pom { name = 'Anduril Industries, Inc.' diff --git a/src/main/java/com/anduril/core/ClientOptions.java b/src/main/java/com/anduril/core/ClientOptions.java index 6ca1d44..ace7ae3 100644 --- a/src/main/java/com/anduril/core/ClientOptions.java +++ b/src/main/java/com/anduril/core/ClientOptions.java @@ -32,10 +32,10 @@ private ClientOptions( this.headers.putAll(headers); this.headers.putAll(new HashMap() { { - put("User-Agent", "com.anduril:lattice-sdk/3.1.0"); + put("User-Agent", "com.anduril:lattice-sdk/4.0.0"); put("X-Fern-Language", "JAVA"); put("X-Fern-SDK-Name", "com.anduril.fern:api-sdk"); - put("X-Fern-SDK-Version", "3.1.0"); + put("X-Fern-SDK-Version", "4.0.0"); } }); this.headerSuppliers = headerSuppliers; diff --git a/src/main/java/com/anduril/types/Status.java b/src/main/java/com/anduril/types/Status.java index 1fcd437..4886a0e 100644 --- a/src/main/java/com/anduril/types/Status.java +++ b/src/main/java/com/anduril/types/Status.java @@ -13,7 +13,6 @@ import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import java.util.HashMap; -import java.util.List; import java.util.Map; import java.util.Objects; import java.util.Optional; @@ -21,47 +20,33 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Status.Builder.class) public final class Status { - private final Optional code; + private final Optional platformActivity; - private final Optional message; - - private final Optional> details; + private final Optional role; private final Map additionalProperties; - private Status( - Optional code, - Optional message, - Optional> details, - Map additionalProperties) { - this.code = code; - this.message = message; - this.details = details; + private Status(Optional platformActivity, Optional role, Map additionalProperties) { + this.platformActivity = platformActivity; + this.role = role; this.additionalProperties = additionalProperties; } /** - * @return The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]. + * @return A string that describes the activity that the entity is performing. + * Examples include "RECONNAISSANCE", "INTERDICTION", "RETURN TO BASE (RTB)", "PREPARING FOR LAUNCH". */ - @JsonProperty("code") - public Optional getCode() { - return code; + @JsonProperty("platformActivity") + public Optional getPlatformActivity() { + return platformActivity; } /** - * @return A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client. + * @return A human-readable string that describes the role the entity is currently performing. E.g. "Team Member", "Commander". */ - @JsonProperty("message") - public Optional getMessage() { - return message; - } - - /** - * @return A list of messages that carry the error details. There is a common set of message types for APIs to use. - */ - @JsonProperty("details") - public Optional> getDetails() { - return details; + @JsonProperty("role") + public Optional getRole() { + return role; } @java.lang.Override @@ -76,12 +61,12 @@ public Map getAdditionalProperties() { } private boolean equalTo(Status other) { - return code.equals(other.code) && message.equals(other.message) && details.equals(other.details); + return platformActivity.equals(other.platformActivity) && role.equals(other.role); } @java.lang.Override public int hashCode() { - return Objects.hash(this.code, this.message, this.details); + return Objects.hash(this.platformActivity, this.role); } @java.lang.Override @@ -95,11 +80,9 @@ public static Builder builder() { @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder { - private Optional code = Optional.empty(); - - private Optional message = Optional.empty(); + private Optional platformActivity = Optional.empty(); - private Optional> details = Optional.empty(); + private Optional role = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -107,56 +90,42 @@ public static final class Builder { private Builder() {} public Builder from(Status other) { - code(other.getCode()); - message(other.getMessage()); - details(other.getDetails()); - return this; - } - - /** - *

The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].

- */ - @JsonSetter(value = "code", nulls = Nulls.SKIP) - public Builder code(Optional code) { - this.code = code; - return this; - } - - public Builder code(Integer code) { - this.code = Optional.ofNullable(code); + platformActivity(other.getPlatformActivity()); + role(other.getRole()); return this; } /** - *

A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.

+ *

A string that describes the activity that the entity is performing. + * Examples include "RECONNAISSANCE", "INTERDICTION", "RETURN TO BASE (RTB)", "PREPARING FOR LAUNCH".

*/ - @JsonSetter(value = "message", nulls = Nulls.SKIP) - public Builder message(Optional message) { - this.message = message; + @JsonSetter(value = "platformActivity", nulls = Nulls.SKIP) + public Builder platformActivity(Optional platformActivity) { + this.platformActivity = platformActivity; return this; } - public Builder message(String message) { - this.message = Optional.ofNullable(message); + public Builder platformActivity(String platformActivity) { + this.platformActivity = Optional.ofNullable(platformActivity); return this; } /** - *

A list of messages that carry the error details. There is a common set of message types for APIs to use.

+ *

A human-readable string that describes the role the entity is currently performing. E.g. "Team Member", "Commander".

*/ - @JsonSetter(value = "details", nulls = Nulls.SKIP) - public Builder details(Optional> details) { - this.details = details; + @JsonSetter(value = "role", nulls = Nulls.SKIP) + public Builder role(Optional role) { + this.role = role; return this; } - public Builder details(List details) { - this.details = Optional.ofNullable(details); + public Builder role(String role) { + this.role = Optional.ofNullable(role); return this; } public Status build() { - return new Status(code, message, details, additionalProperties); + return new Status(platformActivity, role, additionalProperties); } } } diff --git a/src/test/java/com/anduril/EntitiesWireTest.java b/src/test/java/com/anduril/EntitiesWireTest.java index a955d4f..477b4ee 100644 --- a/src/test/java/com/anduril/EntitiesWireTest.java +++ b/src/test/java/com/anduril/EntitiesWireTest.java @@ -41,7 +41,7 @@ public void testPublishEntity() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"entityId\":\"entityId\",\"description\":\"description\",\"isLive\":true,\"createdTime\":\"2024-01-15T09:30:00Z\",\"expiryTime\":\"2024-01-15T09:30:00Z\",\"noExpiry\":true,\"status\":{\"code\":1,\"message\":\"message\",\"details\":[{}]},\"location\":{\"position\":{\"latitudeDegrees\":1.1,\"longitudeDegrees\":1.1,\"altitudeHaeMeters\":1.1,\"altitudeAglMeters\":1.1,\"altitudeAsfMeters\":1.1,\"pressureDepthMeters\":1.1},\"velocityEnu\":{\"e\":1.1,\"n\":1.1,\"u\":1.1},\"speedMps\":1.1,\"acceleration\":{\"e\":1.1,\"n\":1.1,\"u\":1.1},\"attitudeEnu\":{\"x\":1.1,\"y\":1.1,\"z\":1.1,\"w\":1.1}},\"locationUncertainty\":{\"positionEnuCov\":{\"mxx\":1.1,\"mxy\":1.1,\"mxz\":1.1,\"myy\":1.1,\"myz\":1.1,\"mzz\":1.1},\"velocityEnuCov\":{\"mxx\":1.1,\"mxy\":1.1,\"mxz\":1.1,\"myy\":1.1,\"myz\":1.1,\"mzz\":1.1},\"positionErrorEllipse\":{\"probability\":1.1,\"semiMajorAxisM\":1.1,\"semiMinorAxisM\":1.1,\"orientationD\":1.1}},\"geoShape\":{\"line\":{\"positions\":[{}]},\"polygon\":{\"rings\":[{}],\"isRectangle\":true},\"ellipse\":{\"semiMajorAxisM\":1.1,\"semiMinorAxisM\":1.1,\"orientationD\":1.1,\"heightM\":1.1},\"ellipsoid\":{\"forwardAxisM\":1.1,\"sideAxisM\":1.1,\"upAxisM\":1.1}},\"geoDetails\":{\"type\":\"GEO_TYPE_INVALID\",\"controlArea\":{\"type\":\"CONTROL_AREA_TYPE_INVALID\"},\"acm\":{\"acmType\":\"ACM_DETAIL_TYPE_INVALID\",\"acmDescription\":\"acmDescription\"}},\"aliases\":{\"alternateIds\":[{}],\"name\":\"name\"},\"tracked\":{\"trackQualityWrapper\":1,\"sensorHits\":1,\"numberOfObjects\":{\"lowerBound\":1,\"upperBound\":1},\"radarCrossSection\":1.1,\"lastMeasurementTime\":\"2024-01-15T09:30:00Z\"},\"correlation\":{\"primary\":{\"secondaryEntityIds\":[\"secondaryEntityIds\"]},\"secondary\":{\"primaryEntityId\":\"primaryEntityId\"},\"membership\":{\"correlationSetId\":\"correlationSetId\"},\"decorrelation\":{\"decorrelatedEntities\":[{}]}},\"milView\":{\"disposition\":\"DISPOSITION_UNKNOWN\",\"environment\":\"ENVIRONMENT_UNKNOWN\",\"nationality\":\"NATIONALITY_INVALID\"},\"ontology\":{\"platformType\":\"platformType\",\"specificType\":\"specificType\",\"template\":\"TEMPLATE_INVALID\"},\"sensors\":{\"sensors\":[{}]},\"payloads\":{\"payloadConfigurations\":[{}]},\"powerState\":{\"sourceIdToState\":{\"key\":{}}},\"provenance\":{\"integrationName\":\"integrationName\",\"dataType\":\"dataType\",\"sourceId\":\"sourceId\",\"sourceUpdateTime\":\"2024-01-15T09:30:00Z\",\"sourceDescription\":\"sourceDescription\"},\"overrides\":{\"override\":[{}]},\"indicators\":{\"simulated\":true,\"exercise\":true,\"emergency\":true,\"c2\":true,\"egressable\":true,\"starred\":true},\"targetPriority\":{\"highValueTarget\":{\"isHighValueTarget\":true,\"targetPriority\":1,\"targetMatches\":[{}],\"isHighPayoffTarget\":true},\"threat\":{\"isThreat\":true}},\"signal\":{\"bandwidthHz\":1.1,\"signalToNoiseRatio\":1.1,\"emitterNotations\":[{}],\"pulseWidthS\":1.1,\"scanCharacteristics\":{\"scanType\":\"SCAN_TYPE_INVALID\",\"scanPeriodS\":1.1}},\"transponderCodes\":{\"mode1\":1,\"mode2\":1,\"mode3\":1,\"mode4InterrogationResponse\":\"INTERROGATION_RESPONSE_INVALID\",\"mode5\":{\"mode5InterrogationResponse\":\"INTERROGATION_RESPONSE_INVALID\",\"mode5\":1,\"mode5PlatformId\":1},\"modeS\":{\"id\":\"id\",\"address\":1}},\"dataClassification\":{\"default\":{\"level\":\"CLASSIFICATION_LEVELS_INVALID\",\"caveats\":[\"caveats\"]},\"fields\":[{}]},\"taskCatalog\":{\"taskDefinitions\":[{}]},\"media\":{\"media\":[{}]},\"relationships\":{\"relationships\":[{}]},\"visualDetails\":{\"rangeRings\":{\"minDistanceM\":1.1,\"maxDistanceM\":1.1,\"ringCount\":1}},\"dimensions\":{\"lengthM\":1.1},\"routeDetails\":{\"destinationName\":\"destinationName\",\"estimatedArrivalTime\":\"2024-01-15T09:30:00Z\"},\"schedules\":{\"schedules\":[{}]},\"health\":{\"connectionStatus\":\"CONNECTION_STATUS_INVALID\",\"healthStatus\":\"HEALTH_STATUS_INVALID\",\"components\":[{}],\"updateTime\":\"2024-01-15T09:30:00Z\",\"activeAlerts\":[{}]},\"groupDetails\":{\"echelon\":{\"armyEchelon\":\"ARMY_ECHELON_INVALID\"}},\"supplies\":{\"fuel\":[{}]},\"symbology\":{\"milStd2525C\":{\"sidc\":\"sidc\"}}}")); + "{\"entityId\":\"entityId\",\"description\":\"description\",\"isLive\":true,\"createdTime\":\"2024-01-15T09:30:00Z\",\"expiryTime\":\"2024-01-15T09:30:00Z\",\"noExpiry\":true,\"status\":{\"platformActivity\":\"platformActivity\",\"role\":\"role\"},\"location\":{\"position\":{\"latitudeDegrees\":1.1,\"longitudeDegrees\":1.1,\"altitudeHaeMeters\":1.1,\"altitudeAglMeters\":1.1,\"altitudeAsfMeters\":1.1,\"pressureDepthMeters\":1.1},\"velocityEnu\":{\"e\":1.1,\"n\":1.1,\"u\":1.1},\"speedMps\":1.1,\"acceleration\":{\"e\":1.1,\"n\":1.1,\"u\":1.1},\"attitudeEnu\":{\"x\":1.1,\"y\":1.1,\"z\":1.1,\"w\":1.1}},\"locationUncertainty\":{\"positionEnuCov\":{\"mxx\":1.1,\"mxy\":1.1,\"mxz\":1.1,\"myy\":1.1,\"myz\":1.1,\"mzz\":1.1},\"velocityEnuCov\":{\"mxx\":1.1,\"mxy\":1.1,\"mxz\":1.1,\"myy\":1.1,\"myz\":1.1,\"mzz\":1.1},\"positionErrorEllipse\":{\"probability\":1.1,\"semiMajorAxisM\":1.1,\"semiMinorAxisM\":1.1,\"orientationD\":1.1}},\"geoShape\":{\"line\":{\"positions\":[{}]},\"polygon\":{\"rings\":[{}],\"isRectangle\":true},\"ellipse\":{\"semiMajorAxisM\":1.1,\"semiMinorAxisM\":1.1,\"orientationD\":1.1,\"heightM\":1.1},\"ellipsoid\":{\"forwardAxisM\":1.1,\"sideAxisM\":1.1,\"upAxisM\":1.1}},\"geoDetails\":{\"type\":\"GEO_TYPE_INVALID\",\"controlArea\":{\"type\":\"CONTROL_AREA_TYPE_INVALID\"},\"acm\":{\"acmType\":\"ACM_DETAIL_TYPE_INVALID\",\"acmDescription\":\"acmDescription\"}},\"aliases\":{\"alternateIds\":[{}],\"name\":\"name\"},\"tracked\":{\"trackQualityWrapper\":1,\"sensorHits\":1,\"numberOfObjects\":{\"lowerBound\":1,\"upperBound\":1},\"radarCrossSection\":1.1,\"lastMeasurementTime\":\"2024-01-15T09:30:00Z\"},\"correlation\":{\"primary\":{\"secondaryEntityIds\":[\"secondaryEntityIds\"]},\"secondary\":{\"primaryEntityId\":\"primaryEntityId\"},\"membership\":{\"correlationSetId\":\"correlationSetId\"},\"decorrelation\":{\"decorrelatedEntities\":[{}]}},\"milView\":{\"disposition\":\"DISPOSITION_UNKNOWN\",\"environment\":\"ENVIRONMENT_UNKNOWN\",\"nationality\":\"NATIONALITY_INVALID\"},\"ontology\":{\"platformType\":\"platformType\",\"specificType\":\"specificType\",\"template\":\"TEMPLATE_INVALID\"},\"sensors\":{\"sensors\":[{}]},\"payloads\":{\"payloadConfigurations\":[{}]},\"powerState\":{\"sourceIdToState\":{\"key\":{}}},\"provenance\":{\"integrationName\":\"integrationName\",\"dataType\":\"dataType\",\"sourceId\":\"sourceId\",\"sourceUpdateTime\":\"2024-01-15T09:30:00Z\",\"sourceDescription\":\"sourceDescription\"},\"overrides\":{\"override\":[{}]},\"indicators\":{\"simulated\":true,\"exercise\":true,\"emergency\":true,\"c2\":true,\"egressable\":true,\"starred\":true},\"targetPriority\":{\"highValueTarget\":{\"isHighValueTarget\":true,\"targetPriority\":1,\"targetMatches\":[{}],\"isHighPayoffTarget\":true},\"threat\":{\"isThreat\":true}},\"signal\":{\"bandwidthHz\":1.1,\"signalToNoiseRatio\":1.1,\"emitterNotations\":[{}],\"pulseWidthS\":1.1,\"scanCharacteristics\":{\"scanType\":\"SCAN_TYPE_INVALID\",\"scanPeriodS\":1.1}},\"transponderCodes\":{\"mode1\":1,\"mode2\":1,\"mode3\":1,\"mode4InterrogationResponse\":\"INTERROGATION_RESPONSE_INVALID\",\"mode5\":{\"mode5InterrogationResponse\":\"INTERROGATION_RESPONSE_INVALID\",\"mode5\":1,\"mode5PlatformId\":1},\"modeS\":{\"id\":\"id\",\"address\":1}},\"dataClassification\":{\"default\":{\"level\":\"CLASSIFICATION_LEVELS_INVALID\",\"caveats\":[\"caveats\"]},\"fields\":[{}]},\"taskCatalog\":{\"taskDefinitions\":[{}]},\"media\":{\"media\":[{}]},\"relationships\":{\"relationships\":[{}]},\"visualDetails\":{\"rangeRings\":{\"minDistanceM\":1.1,\"maxDistanceM\":1.1,\"ringCount\":1}},\"dimensions\":{\"lengthM\":1.1},\"routeDetails\":{\"destinationName\":\"destinationName\",\"estimatedArrivalTime\":\"2024-01-15T09:30:00Z\"},\"schedules\":{\"schedules\":[{}]},\"health\":{\"connectionStatus\":\"CONNECTION_STATUS_INVALID\",\"healthStatus\":\"HEALTH_STATUS_INVALID\",\"components\":[{}],\"updateTime\":\"2024-01-15T09:30:00Z\",\"activeAlerts\":[{}]},\"groupDetails\":{\"echelon\":{\"armyEchelon\":\"ARMY_ECHELON_INVALID\"}},\"supplies\":{\"fuel\":[{}]},\"symbology\":{\"milStd2525C\":{\"sidc\":\"sidc\"}}}")); Entity response = client.entities().publishEntity(Entity.builder().build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -88,11 +88,8 @@ else if (actualJson.has("kind")) + " \"expiryTime\": \"2024-01-15T09:30:00Z\",\n" + " \"noExpiry\": true,\n" + " \"status\": {\n" - + " \"code\": 1,\n" - + " \"message\": \"message\",\n" - + " \"details\": [\n" - + " {}\n" - + " ]\n" + + " \"platformActivity\": \"platformActivity\",\n" + + " \"role\": \"role\"\n" + " },\n" + " \"location\": {\n" + " \"position\": {\n" @@ -406,7 +403,7 @@ public void testGetEntity() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"entityId\":\"entityId\",\"description\":\"description\",\"isLive\":true,\"createdTime\":\"2024-01-15T09:30:00Z\",\"expiryTime\":\"2024-01-15T09:30:00Z\",\"noExpiry\":true,\"status\":{\"code\":1,\"message\":\"message\",\"details\":[{}]},\"location\":{\"position\":{\"latitudeDegrees\":1.1,\"longitudeDegrees\":1.1,\"altitudeHaeMeters\":1.1,\"altitudeAglMeters\":1.1,\"altitudeAsfMeters\":1.1,\"pressureDepthMeters\":1.1},\"velocityEnu\":{\"e\":1.1,\"n\":1.1,\"u\":1.1},\"speedMps\":1.1,\"acceleration\":{\"e\":1.1,\"n\":1.1,\"u\":1.1},\"attitudeEnu\":{\"x\":1.1,\"y\":1.1,\"z\":1.1,\"w\":1.1}},\"locationUncertainty\":{\"positionEnuCov\":{\"mxx\":1.1,\"mxy\":1.1,\"mxz\":1.1,\"myy\":1.1,\"myz\":1.1,\"mzz\":1.1},\"velocityEnuCov\":{\"mxx\":1.1,\"mxy\":1.1,\"mxz\":1.1,\"myy\":1.1,\"myz\":1.1,\"mzz\":1.1},\"positionErrorEllipse\":{\"probability\":1.1,\"semiMajorAxisM\":1.1,\"semiMinorAxisM\":1.1,\"orientationD\":1.1}},\"geoShape\":{\"line\":{\"positions\":[{}]},\"polygon\":{\"rings\":[{}],\"isRectangle\":true},\"ellipse\":{\"semiMajorAxisM\":1.1,\"semiMinorAxisM\":1.1,\"orientationD\":1.1,\"heightM\":1.1},\"ellipsoid\":{\"forwardAxisM\":1.1,\"sideAxisM\":1.1,\"upAxisM\":1.1}},\"geoDetails\":{\"type\":\"GEO_TYPE_INVALID\",\"controlArea\":{\"type\":\"CONTROL_AREA_TYPE_INVALID\"},\"acm\":{\"acmType\":\"ACM_DETAIL_TYPE_INVALID\",\"acmDescription\":\"acmDescription\"}},\"aliases\":{\"alternateIds\":[{}],\"name\":\"name\"},\"tracked\":{\"trackQualityWrapper\":1,\"sensorHits\":1,\"numberOfObjects\":{\"lowerBound\":1,\"upperBound\":1},\"radarCrossSection\":1.1,\"lastMeasurementTime\":\"2024-01-15T09:30:00Z\"},\"correlation\":{\"primary\":{\"secondaryEntityIds\":[\"secondaryEntityIds\"]},\"secondary\":{\"primaryEntityId\":\"primaryEntityId\"},\"membership\":{\"correlationSetId\":\"correlationSetId\"},\"decorrelation\":{\"decorrelatedEntities\":[{}]}},\"milView\":{\"disposition\":\"DISPOSITION_UNKNOWN\",\"environment\":\"ENVIRONMENT_UNKNOWN\",\"nationality\":\"NATIONALITY_INVALID\"},\"ontology\":{\"platformType\":\"platformType\",\"specificType\":\"specificType\",\"template\":\"TEMPLATE_INVALID\"},\"sensors\":{\"sensors\":[{}]},\"payloads\":{\"payloadConfigurations\":[{}]},\"powerState\":{\"sourceIdToState\":{\"key\":{}}},\"provenance\":{\"integrationName\":\"integrationName\",\"dataType\":\"dataType\",\"sourceId\":\"sourceId\",\"sourceUpdateTime\":\"2024-01-15T09:30:00Z\",\"sourceDescription\":\"sourceDescription\"},\"overrides\":{\"override\":[{}]},\"indicators\":{\"simulated\":true,\"exercise\":true,\"emergency\":true,\"c2\":true,\"egressable\":true,\"starred\":true},\"targetPriority\":{\"highValueTarget\":{\"isHighValueTarget\":true,\"targetPriority\":1,\"targetMatches\":[{}],\"isHighPayoffTarget\":true},\"threat\":{\"isThreat\":true}},\"signal\":{\"bandwidthHz\":1.1,\"signalToNoiseRatio\":1.1,\"emitterNotations\":[{}],\"pulseWidthS\":1.1,\"scanCharacteristics\":{\"scanType\":\"SCAN_TYPE_INVALID\",\"scanPeriodS\":1.1}},\"transponderCodes\":{\"mode1\":1,\"mode2\":1,\"mode3\":1,\"mode4InterrogationResponse\":\"INTERROGATION_RESPONSE_INVALID\",\"mode5\":{\"mode5InterrogationResponse\":\"INTERROGATION_RESPONSE_INVALID\",\"mode5\":1,\"mode5PlatformId\":1},\"modeS\":{\"id\":\"id\",\"address\":1}},\"dataClassification\":{\"default\":{\"level\":\"CLASSIFICATION_LEVELS_INVALID\",\"caveats\":[\"caveats\"]},\"fields\":[{}]},\"taskCatalog\":{\"taskDefinitions\":[{}]},\"media\":{\"media\":[{}]},\"relationships\":{\"relationships\":[{}]},\"visualDetails\":{\"rangeRings\":{\"minDistanceM\":1.1,\"maxDistanceM\":1.1,\"ringCount\":1}},\"dimensions\":{\"lengthM\":1.1},\"routeDetails\":{\"destinationName\":\"destinationName\",\"estimatedArrivalTime\":\"2024-01-15T09:30:00Z\"},\"schedules\":{\"schedules\":[{}]},\"health\":{\"connectionStatus\":\"CONNECTION_STATUS_INVALID\",\"healthStatus\":\"HEALTH_STATUS_INVALID\",\"components\":[{}],\"updateTime\":\"2024-01-15T09:30:00Z\",\"activeAlerts\":[{}]},\"groupDetails\":{\"echelon\":{\"armyEchelon\":\"ARMY_ECHELON_INVALID\"}},\"supplies\":{\"fuel\":[{}]},\"symbology\":{\"milStd2525C\":{\"sidc\":\"sidc\"}}}")); + "{\"entityId\":\"entityId\",\"description\":\"description\",\"isLive\":true,\"createdTime\":\"2024-01-15T09:30:00Z\",\"expiryTime\":\"2024-01-15T09:30:00Z\",\"noExpiry\":true,\"status\":{\"platformActivity\":\"platformActivity\",\"role\":\"role\"},\"location\":{\"position\":{\"latitudeDegrees\":1.1,\"longitudeDegrees\":1.1,\"altitudeHaeMeters\":1.1,\"altitudeAglMeters\":1.1,\"altitudeAsfMeters\":1.1,\"pressureDepthMeters\":1.1},\"velocityEnu\":{\"e\":1.1,\"n\":1.1,\"u\":1.1},\"speedMps\":1.1,\"acceleration\":{\"e\":1.1,\"n\":1.1,\"u\":1.1},\"attitudeEnu\":{\"x\":1.1,\"y\":1.1,\"z\":1.1,\"w\":1.1}},\"locationUncertainty\":{\"positionEnuCov\":{\"mxx\":1.1,\"mxy\":1.1,\"mxz\":1.1,\"myy\":1.1,\"myz\":1.1,\"mzz\":1.1},\"velocityEnuCov\":{\"mxx\":1.1,\"mxy\":1.1,\"mxz\":1.1,\"myy\":1.1,\"myz\":1.1,\"mzz\":1.1},\"positionErrorEllipse\":{\"probability\":1.1,\"semiMajorAxisM\":1.1,\"semiMinorAxisM\":1.1,\"orientationD\":1.1}},\"geoShape\":{\"line\":{\"positions\":[{}]},\"polygon\":{\"rings\":[{}],\"isRectangle\":true},\"ellipse\":{\"semiMajorAxisM\":1.1,\"semiMinorAxisM\":1.1,\"orientationD\":1.1,\"heightM\":1.1},\"ellipsoid\":{\"forwardAxisM\":1.1,\"sideAxisM\":1.1,\"upAxisM\":1.1}},\"geoDetails\":{\"type\":\"GEO_TYPE_INVALID\",\"controlArea\":{\"type\":\"CONTROL_AREA_TYPE_INVALID\"},\"acm\":{\"acmType\":\"ACM_DETAIL_TYPE_INVALID\",\"acmDescription\":\"acmDescription\"}},\"aliases\":{\"alternateIds\":[{}],\"name\":\"name\"},\"tracked\":{\"trackQualityWrapper\":1,\"sensorHits\":1,\"numberOfObjects\":{\"lowerBound\":1,\"upperBound\":1},\"radarCrossSection\":1.1,\"lastMeasurementTime\":\"2024-01-15T09:30:00Z\"},\"correlation\":{\"primary\":{\"secondaryEntityIds\":[\"secondaryEntityIds\"]},\"secondary\":{\"primaryEntityId\":\"primaryEntityId\"},\"membership\":{\"correlationSetId\":\"correlationSetId\"},\"decorrelation\":{\"decorrelatedEntities\":[{}]}},\"milView\":{\"disposition\":\"DISPOSITION_UNKNOWN\",\"environment\":\"ENVIRONMENT_UNKNOWN\",\"nationality\":\"NATIONALITY_INVALID\"},\"ontology\":{\"platformType\":\"platformType\",\"specificType\":\"specificType\",\"template\":\"TEMPLATE_INVALID\"},\"sensors\":{\"sensors\":[{}]},\"payloads\":{\"payloadConfigurations\":[{}]},\"powerState\":{\"sourceIdToState\":{\"key\":{}}},\"provenance\":{\"integrationName\":\"integrationName\",\"dataType\":\"dataType\",\"sourceId\":\"sourceId\",\"sourceUpdateTime\":\"2024-01-15T09:30:00Z\",\"sourceDescription\":\"sourceDescription\"},\"overrides\":{\"override\":[{}]},\"indicators\":{\"simulated\":true,\"exercise\":true,\"emergency\":true,\"c2\":true,\"egressable\":true,\"starred\":true},\"targetPriority\":{\"highValueTarget\":{\"isHighValueTarget\":true,\"targetPriority\":1,\"targetMatches\":[{}],\"isHighPayoffTarget\":true},\"threat\":{\"isThreat\":true}},\"signal\":{\"bandwidthHz\":1.1,\"signalToNoiseRatio\":1.1,\"emitterNotations\":[{}],\"pulseWidthS\":1.1,\"scanCharacteristics\":{\"scanType\":\"SCAN_TYPE_INVALID\",\"scanPeriodS\":1.1}},\"transponderCodes\":{\"mode1\":1,\"mode2\":1,\"mode3\":1,\"mode4InterrogationResponse\":\"INTERROGATION_RESPONSE_INVALID\",\"mode5\":{\"mode5InterrogationResponse\":\"INTERROGATION_RESPONSE_INVALID\",\"mode5\":1,\"mode5PlatformId\":1},\"modeS\":{\"id\":\"id\",\"address\":1}},\"dataClassification\":{\"default\":{\"level\":\"CLASSIFICATION_LEVELS_INVALID\",\"caveats\":[\"caveats\"]},\"fields\":[{}]},\"taskCatalog\":{\"taskDefinitions\":[{}]},\"media\":{\"media\":[{}]},\"relationships\":{\"relationships\":[{}]},\"visualDetails\":{\"rangeRings\":{\"minDistanceM\":1.1,\"maxDistanceM\":1.1,\"ringCount\":1}},\"dimensions\":{\"lengthM\":1.1},\"routeDetails\":{\"destinationName\":\"destinationName\",\"estimatedArrivalTime\":\"2024-01-15T09:30:00Z\"},\"schedules\":{\"schedules\":[{}]},\"health\":{\"connectionStatus\":\"CONNECTION_STATUS_INVALID\",\"healthStatus\":\"HEALTH_STATUS_INVALID\",\"components\":[{}],\"updateTime\":\"2024-01-15T09:30:00Z\",\"activeAlerts\":[{}]},\"groupDetails\":{\"echelon\":{\"armyEchelon\":\"ARMY_ECHELON_INVALID\"}},\"supplies\":{\"fuel\":[{}]},\"symbology\":{\"milStd2525C\":{\"sidc\":\"sidc\"}}}")); Entity response = client.entities().getEntity("entityId"); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -424,11 +421,8 @@ public void testGetEntity() throws Exception { + " \"expiryTime\": \"2024-01-15T09:30:00Z\",\n" + " \"noExpiry\": true,\n" + " \"status\": {\n" - + " \"code\": 1,\n" - + " \"message\": \"message\",\n" - + " \"details\": [\n" - + " {}\n" - + " ]\n" + + " \"platformActivity\": \"platformActivity\",\n" + + " \"role\": \"role\"\n" + " },\n" + " \"location\": {\n" + " \"position\": {\n" @@ -742,7 +736,7 @@ public void testOverrideEntity() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"entityId\":\"entityId\",\"description\":\"description\",\"isLive\":true,\"createdTime\":\"2024-01-15T09:30:00Z\",\"expiryTime\":\"2024-01-15T09:30:00Z\",\"noExpiry\":true,\"status\":{\"code\":1,\"message\":\"message\",\"details\":[{}]},\"location\":{\"position\":{\"latitudeDegrees\":1.1,\"longitudeDegrees\":1.1,\"altitudeHaeMeters\":1.1,\"altitudeAglMeters\":1.1,\"altitudeAsfMeters\":1.1,\"pressureDepthMeters\":1.1},\"velocityEnu\":{\"e\":1.1,\"n\":1.1,\"u\":1.1},\"speedMps\":1.1,\"acceleration\":{\"e\":1.1,\"n\":1.1,\"u\":1.1},\"attitudeEnu\":{\"x\":1.1,\"y\":1.1,\"z\":1.1,\"w\":1.1}},\"locationUncertainty\":{\"positionEnuCov\":{\"mxx\":1.1,\"mxy\":1.1,\"mxz\":1.1,\"myy\":1.1,\"myz\":1.1,\"mzz\":1.1},\"velocityEnuCov\":{\"mxx\":1.1,\"mxy\":1.1,\"mxz\":1.1,\"myy\":1.1,\"myz\":1.1,\"mzz\":1.1},\"positionErrorEllipse\":{\"probability\":1.1,\"semiMajorAxisM\":1.1,\"semiMinorAxisM\":1.1,\"orientationD\":1.1}},\"geoShape\":{\"line\":{\"positions\":[{}]},\"polygon\":{\"rings\":[{}],\"isRectangle\":true},\"ellipse\":{\"semiMajorAxisM\":1.1,\"semiMinorAxisM\":1.1,\"orientationD\":1.1,\"heightM\":1.1},\"ellipsoid\":{\"forwardAxisM\":1.1,\"sideAxisM\":1.1,\"upAxisM\":1.1}},\"geoDetails\":{\"type\":\"GEO_TYPE_INVALID\",\"controlArea\":{\"type\":\"CONTROL_AREA_TYPE_INVALID\"},\"acm\":{\"acmType\":\"ACM_DETAIL_TYPE_INVALID\",\"acmDescription\":\"acmDescription\"}},\"aliases\":{\"alternateIds\":[{}],\"name\":\"name\"},\"tracked\":{\"trackQualityWrapper\":1,\"sensorHits\":1,\"numberOfObjects\":{\"lowerBound\":1,\"upperBound\":1},\"radarCrossSection\":1.1,\"lastMeasurementTime\":\"2024-01-15T09:30:00Z\"},\"correlation\":{\"primary\":{\"secondaryEntityIds\":[\"secondaryEntityIds\"]},\"secondary\":{\"primaryEntityId\":\"primaryEntityId\"},\"membership\":{\"correlationSetId\":\"correlationSetId\"},\"decorrelation\":{\"decorrelatedEntities\":[{}]}},\"milView\":{\"disposition\":\"DISPOSITION_UNKNOWN\",\"environment\":\"ENVIRONMENT_UNKNOWN\",\"nationality\":\"NATIONALITY_INVALID\"},\"ontology\":{\"platformType\":\"platformType\",\"specificType\":\"specificType\",\"template\":\"TEMPLATE_INVALID\"},\"sensors\":{\"sensors\":[{}]},\"payloads\":{\"payloadConfigurations\":[{}]},\"powerState\":{\"sourceIdToState\":{\"key\":{}}},\"provenance\":{\"integrationName\":\"integrationName\",\"dataType\":\"dataType\",\"sourceId\":\"sourceId\",\"sourceUpdateTime\":\"2024-01-15T09:30:00Z\",\"sourceDescription\":\"sourceDescription\"},\"overrides\":{\"override\":[{}]},\"indicators\":{\"simulated\":true,\"exercise\":true,\"emergency\":true,\"c2\":true,\"egressable\":true,\"starred\":true},\"targetPriority\":{\"highValueTarget\":{\"isHighValueTarget\":true,\"targetPriority\":1,\"targetMatches\":[{}],\"isHighPayoffTarget\":true},\"threat\":{\"isThreat\":true}},\"signal\":{\"bandwidthHz\":1.1,\"signalToNoiseRatio\":1.1,\"emitterNotations\":[{}],\"pulseWidthS\":1.1,\"scanCharacteristics\":{\"scanType\":\"SCAN_TYPE_INVALID\",\"scanPeriodS\":1.1}},\"transponderCodes\":{\"mode1\":1,\"mode2\":1,\"mode3\":1,\"mode4InterrogationResponse\":\"INTERROGATION_RESPONSE_INVALID\",\"mode5\":{\"mode5InterrogationResponse\":\"INTERROGATION_RESPONSE_INVALID\",\"mode5\":1,\"mode5PlatformId\":1},\"modeS\":{\"id\":\"id\",\"address\":1}},\"dataClassification\":{\"default\":{\"level\":\"CLASSIFICATION_LEVELS_INVALID\",\"caveats\":[\"caveats\"]},\"fields\":[{}]},\"taskCatalog\":{\"taskDefinitions\":[{}]},\"media\":{\"media\":[{}]},\"relationships\":{\"relationships\":[{}]},\"visualDetails\":{\"rangeRings\":{\"minDistanceM\":1.1,\"maxDistanceM\":1.1,\"ringCount\":1}},\"dimensions\":{\"lengthM\":1.1},\"routeDetails\":{\"destinationName\":\"destinationName\",\"estimatedArrivalTime\":\"2024-01-15T09:30:00Z\"},\"schedules\":{\"schedules\":[{}]},\"health\":{\"connectionStatus\":\"CONNECTION_STATUS_INVALID\",\"healthStatus\":\"HEALTH_STATUS_INVALID\",\"components\":[{}],\"updateTime\":\"2024-01-15T09:30:00Z\",\"activeAlerts\":[{}]},\"groupDetails\":{\"echelon\":{\"armyEchelon\":\"ARMY_ECHELON_INVALID\"}},\"supplies\":{\"fuel\":[{}]},\"symbology\":{\"milStd2525C\":{\"sidc\":\"sidc\"}}}")); + "{\"entityId\":\"entityId\",\"description\":\"description\",\"isLive\":true,\"createdTime\":\"2024-01-15T09:30:00Z\",\"expiryTime\":\"2024-01-15T09:30:00Z\",\"noExpiry\":true,\"status\":{\"platformActivity\":\"platformActivity\",\"role\":\"role\"},\"location\":{\"position\":{\"latitudeDegrees\":1.1,\"longitudeDegrees\":1.1,\"altitudeHaeMeters\":1.1,\"altitudeAglMeters\":1.1,\"altitudeAsfMeters\":1.1,\"pressureDepthMeters\":1.1},\"velocityEnu\":{\"e\":1.1,\"n\":1.1,\"u\":1.1},\"speedMps\":1.1,\"acceleration\":{\"e\":1.1,\"n\":1.1,\"u\":1.1},\"attitudeEnu\":{\"x\":1.1,\"y\":1.1,\"z\":1.1,\"w\":1.1}},\"locationUncertainty\":{\"positionEnuCov\":{\"mxx\":1.1,\"mxy\":1.1,\"mxz\":1.1,\"myy\":1.1,\"myz\":1.1,\"mzz\":1.1},\"velocityEnuCov\":{\"mxx\":1.1,\"mxy\":1.1,\"mxz\":1.1,\"myy\":1.1,\"myz\":1.1,\"mzz\":1.1},\"positionErrorEllipse\":{\"probability\":1.1,\"semiMajorAxisM\":1.1,\"semiMinorAxisM\":1.1,\"orientationD\":1.1}},\"geoShape\":{\"line\":{\"positions\":[{}]},\"polygon\":{\"rings\":[{}],\"isRectangle\":true},\"ellipse\":{\"semiMajorAxisM\":1.1,\"semiMinorAxisM\":1.1,\"orientationD\":1.1,\"heightM\":1.1},\"ellipsoid\":{\"forwardAxisM\":1.1,\"sideAxisM\":1.1,\"upAxisM\":1.1}},\"geoDetails\":{\"type\":\"GEO_TYPE_INVALID\",\"controlArea\":{\"type\":\"CONTROL_AREA_TYPE_INVALID\"},\"acm\":{\"acmType\":\"ACM_DETAIL_TYPE_INVALID\",\"acmDescription\":\"acmDescription\"}},\"aliases\":{\"alternateIds\":[{}],\"name\":\"name\"},\"tracked\":{\"trackQualityWrapper\":1,\"sensorHits\":1,\"numberOfObjects\":{\"lowerBound\":1,\"upperBound\":1},\"radarCrossSection\":1.1,\"lastMeasurementTime\":\"2024-01-15T09:30:00Z\"},\"correlation\":{\"primary\":{\"secondaryEntityIds\":[\"secondaryEntityIds\"]},\"secondary\":{\"primaryEntityId\":\"primaryEntityId\"},\"membership\":{\"correlationSetId\":\"correlationSetId\"},\"decorrelation\":{\"decorrelatedEntities\":[{}]}},\"milView\":{\"disposition\":\"DISPOSITION_UNKNOWN\",\"environment\":\"ENVIRONMENT_UNKNOWN\",\"nationality\":\"NATIONALITY_INVALID\"},\"ontology\":{\"platformType\":\"platformType\",\"specificType\":\"specificType\",\"template\":\"TEMPLATE_INVALID\"},\"sensors\":{\"sensors\":[{}]},\"payloads\":{\"payloadConfigurations\":[{}]},\"powerState\":{\"sourceIdToState\":{\"key\":{}}},\"provenance\":{\"integrationName\":\"integrationName\",\"dataType\":\"dataType\",\"sourceId\":\"sourceId\",\"sourceUpdateTime\":\"2024-01-15T09:30:00Z\",\"sourceDescription\":\"sourceDescription\"},\"overrides\":{\"override\":[{}]},\"indicators\":{\"simulated\":true,\"exercise\":true,\"emergency\":true,\"c2\":true,\"egressable\":true,\"starred\":true},\"targetPriority\":{\"highValueTarget\":{\"isHighValueTarget\":true,\"targetPriority\":1,\"targetMatches\":[{}],\"isHighPayoffTarget\":true},\"threat\":{\"isThreat\":true}},\"signal\":{\"bandwidthHz\":1.1,\"signalToNoiseRatio\":1.1,\"emitterNotations\":[{}],\"pulseWidthS\":1.1,\"scanCharacteristics\":{\"scanType\":\"SCAN_TYPE_INVALID\",\"scanPeriodS\":1.1}},\"transponderCodes\":{\"mode1\":1,\"mode2\":1,\"mode3\":1,\"mode4InterrogationResponse\":\"INTERROGATION_RESPONSE_INVALID\",\"mode5\":{\"mode5InterrogationResponse\":\"INTERROGATION_RESPONSE_INVALID\",\"mode5\":1,\"mode5PlatformId\":1},\"modeS\":{\"id\":\"id\",\"address\":1}},\"dataClassification\":{\"default\":{\"level\":\"CLASSIFICATION_LEVELS_INVALID\",\"caveats\":[\"caveats\"]},\"fields\":[{}]},\"taskCatalog\":{\"taskDefinitions\":[{}]},\"media\":{\"media\":[{}]},\"relationships\":{\"relationships\":[{}]},\"visualDetails\":{\"rangeRings\":{\"minDistanceM\":1.1,\"maxDistanceM\":1.1,\"ringCount\":1}},\"dimensions\":{\"lengthM\":1.1},\"routeDetails\":{\"destinationName\":\"destinationName\",\"estimatedArrivalTime\":\"2024-01-15T09:30:00Z\"},\"schedules\":{\"schedules\":[{}]},\"health\":{\"connectionStatus\":\"CONNECTION_STATUS_INVALID\",\"healthStatus\":\"HEALTH_STATUS_INVALID\",\"components\":[{}],\"updateTime\":\"2024-01-15T09:30:00Z\",\"activeAlerts\":[{}]},\"groupDetails\":{\"echelon\":{\"armyEchelon\":\"ARMY_ECHELON_INVALID\"}},\"supplies\":{\"fuel\":[{}]},\"symbology\":{\"milStd2525C\":{\"sidc\":\"sidc\"}}}")); Entity response = client.entities() .overrideEntity( "entityId", @@ -793,11 +787,8 @@ else if (actualJson.has("kind")) + " \"expiryTime\": \"2024-01-15T09:30:00Z\",\n" + " \"noExpiry\": true,\n" + " \"status\": {\n" - + " \"code\": 1,\n" - + " \"message\": \"message\",\n" - + " \"details\": [\n" - + " {}\n" - + " ]\n" + + " \"platformActivity\": \"platformActivity\",\n" + + " \"role\": \"role\"\n" + " },\n" + " \"location\": {\n" + " \"position\": {\n" @@ -1111,7 +1102,7 @@ public void testRemoveEntityOverride() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"entityId\":\"entityId\",\"description\":\"description\",\"isLive\":true,\"createdTime\":\"2024-01-15T09:30:00Z\",\"expiryTime\":\"2024-01-15T09:30:00Z\",\"noExpiry\":true,\"status\":{\"code\":1,\"message\":\"message\",\"details\":[{}]},\"location\":{\"position\":{\"latitudeDegrees\":1.1,\"longitudeDegrees\":1.1,\"altitudeHaeMeters\":1.1,\"altitudeAglMeters\":1.1,\"altitudeAsfMeters\":1.1,\"pressureDepthMeters\":1.1},\"velocityEnu\":{\"e\":1.1,\"n\":1.1,\"u\":1.1},\"speedMps\":1.1,\"acceleration\":{\"e\":1.1,\"n\":1.1,\"u\":1.1},\"attitudeEnu\":{\"x\":1.1,\"y\":1.1,\"z\":1.1,\"w\":1.1}},\"locationUncertainty\":{\"positionEnuCov\":{\"mxx\":1.1,\"mxy\":1.1,\"mxz\":1.1,\"myy\":1.1,\"myz\":1.1,\"mzz\":1.1},\"velocityEnuCov\":{\"mxx\":1.1,\"mxy\":1.1,\"mxz\":1.1,\"myy\":1.1,\"myz\":1.1,\"mzz\":1.1},\"positionErrorEllipse\":{\"probability\":1.1,\"semiMajorAxisM\":1.1,\"semiMinorAxisM\":1.1,\"orientationD\":1.1}},\"geoShape\":{\"line\":{\"positions\":[{}]},\"polygon\":{\"rings\":[{}],\"isRectangle\":true},\"ellipse\":{\"semiMajorAxisM\":1.1,\"semiMinorAxisM\":1.1,\"orientationD\":1.1,\"heightM\":1.1},\"ellipsoid\":{\"forwardAxisM\":1.1,\"sideAxisM\":1.1,\"upAxisM\":1.1}},\"geoDetails\":{\"type\":\"GEO_TYPE_INVALID\",\"controlArea\":{\"type\":\"CONTROL_AREA_TYPE_INVALID\"},\"acm\":{\"acmType\":\"ACM_DETAIL_TYPE_INVALID\",\"acmDescription\":\"acmDescription\"}},\"aliases\":{\"alternateIds\":[{}],\"name\":\"name\"},\"tracked\":{\"trackQualityWrapper\":1,\"sensorHits\":1,\"numberOfObjects\":{\"lowerBound\":1,\"upperBound\":1},\"radarCrossSection\":1.1,\"lastMeasurementTime\":\"2024-01-15T09:30:00Z\"},\"correlation\":{\"primary\":{\"secondaryEntityIds\":[\"secondaryEntityIds\"]},\"secondary\":{\"primaryEntityId\":\"primaryEntityId\"},\"membership\":{\"correlationSetId\":\"correlationSetId\"},\"decorrelation\":{\"decorrelatedEntities\":[{}]}},\"milView\":{\"disposition\":\"DISPOSITION_UNKNOWN\",\"environment\":\"ENVIRONMENT_UNKNOWN\",\"nationality\":\"NATIONALITY_INVALID\"},\"ontology\":{\"platformType\":\"platformType\",\"specificType\":\"specificType\",\"template\":\"TEMPLATE_INVALID\"},\"sensors\":{\"sensors\":[{}]},\"payloads\":{\"payloadConfigurations\":[{}]},\"powerState\":{\"sourceIdToState\":{\"key\":{}}},\"provenance\":{\"integrationName\":\"integrationName\",\"dataType\":\"dataType\",\"sourceId\":\"sourceId\",\"sourceUpdateTime\":\"2024-01-15T09:30:00Z\",\"sourceDescription\":\"sourceDescription\"},\"overrides\":{\"override\":[{}]},\"indicators\":{\"simulated\":true,\"exercise\":true,\"emergency\":true,\"c2\":true,\"egressable\":true,\"starred\":true},\"targetPriority\":{\"highValueTarget\":{\"isHighValueTarget\":true,\"targetPriority\":1,\"targetMatches\":[{}],\"isHighPayoffTarget\":true},\"threat\":{\"isThreat\":true}},\"signal\":{\"bandwidthHz\":1.1,\"signalToNoiseRatio\":1.1,\"emitterNotations\":[{}],\"pulseWidthS\":1.1,\"scanCharacteristics\":{\"scanType\":\"SCAN_TYPE_INVALID\",\"scanPeriodS\":1.1}},\"transponderCodes\":{\"mode1\":1,\"mode2\":1,\"mode3\":1,\"mode4InterrogationResponse\":\"INTERROGATION_RESPONSE_INVALID\",\"mode5\":{\"mode5InterrogationResponse\":\"INTERROGATION_RESPONSE_INVALID\",\"mode5\":1,\"mode5PlatformId\":1},\"modeS\":{\"id\":\"id\",\"address\":1}},\"dataClassification\":{\"default\":{\"level\":\"CLASSIFICATION_LEVELS_INVALID\",\"caveats\":[\"caveats\"]},\"fields\":[{}]},\"taskCatalog\":{\"taskDefinitions\":[{}]},\"media\":{\"media\":[{}]},\"relationships\":{\"relationships\":[{}]},\"visualDetails\":{\"rangeRings\":{\"minDistanceM\":1.1,\"maxDistanceM\":1.1,\"ringCount\":1}},\"dimensions\":{\"lengthM\":1.1},\"routeDetails\":{\"destinationName\":\"destinationName\",\"estimatedArrivalTime\":\"2024-01-15T09:30:00Z\"},\"schedules\":{\"schedules\":[{}]},\"health\":{\"connectionStatus\":\"CONNECTION_STATUS_INVALID\",\"healthStatus\":\"HEALTH_STATUS_INVALID\",\"components\":[{}],\"updateTime\":\"2024-01-15T09:30:00Z\",\"activeAlerts\":[{}]},\"groupDetails\":{\"echelon\":{\"armyEchelon\":\"ARMY_ECHELON_INVALID\"}},\"supplies\":{\"fuel\":[{}]},\"symbology\":{\"milStd2525C\":{\"sidc\":\"sidc\"}}}")); + "{\"entityId\":\"entityId\",\"description\":\"description\",\"isLive\":true,\"createdTime\":\"2024-01-15T09:30:00Z\",\"expiryTime\":\"2024-01-15T09:30:00Z\",\"noExpiry\":true,\"status\":{\"platformActivity\":\"platformActivity\",\"role\":\"role\"},\"location\":{\"position\":{\"latitudeDegrees\":1.1,\"longitudeDegrees\":1.1,\"altitudeHaeMeters\":1.1,\"altitudeAglMeters\":1.1,\"altitudeAsfMeters\":1.1,\"pressureDepthMeters\":1.1},\"velocityEnu\":{\"e\":1.1,\"n\":1.1,\"u\":1.1},\"speedMps\":1.1,\"acceleration\":{\"e\":1.1,\"n\":1.1,\"u\":1.1},\"attitudeEnu\":{\"x\":1.1,\"y\":1.1,\"z\":1.1,\"w\":1.1}},\"locationUncertainty\":{\"positionEnuCov\":{\"mxx\":1.1,\"mxy\":1.1,\"mxz\":1.1,\"myy\":1.1,\"myz\":1.1,\"mzz\":1.1},\"velocityEnuCov\":{\"mxx\":1.1,\"mxy\":1.1,\"mxz\":1.1,\"myy\":1.1,\"myz\":1.1,\"mzz\":1.1},\"positionErrorEllipse\":{\"probability\":1.1,\"semiMajorAxisM\":1.1,\"semiMinorAxisM\":1.1,\"orientationD\":1.1}},\"geoShape\":{\"line\":{\"positions\":[{}]},\"polygon\":{\"rings\":[{}],\"isRectangle\":true},\"ellipse\":{\"semiMajorAxisM\":1.1,\"semiMinorAxisM\":1.1,\"orientationD\":1.1,\"heightM\":1.1},\"ellipsoid\":{\"forwardAxisM\":1.1,\"sideAxisM\":1.1,\"upAxisM\":1.1}},\"geoDetails\":{\"type\":\"GEO_TYPE_INVALID\",\"controlArea\":{\"type\":\"CONTROL_AREA_TYPE_INVALID\"},\"acm\":{\"acmType\":\"ACM_DETAIL_TYPE_INVALID\",\"acmDescription\":\"acmDescription\"}},\"aliases\":{\"alternateIds\":[{}],\"name\":\"name\"},\"tracked\":{\"trackQualityWrapper\":1,\"sensorHits\":1,\"numberOfObjects\":{\"lowerBound\":1,\"upperBound\":1},\"radarCrossSection\":1.1,\"lastMeasurementTime\":\"2024-01-15T09:30:00Z\"},\"correlation\":{\"primary\":{\"secondaryEntityIds\":[\"secondaryEntityIds\"]},\"secondary\":{\"primaryEntityId\":\"primaryEntityId\"},\"membership\":{\"correlationSetId\":\"correlationSetId\"},\"decorrelation\":{\"decorrelatedEntities\":[{}]}},\"milView\":{\"disposition\":\"DISPOSITION_UNKNOWN\",\"environment\":\"ENVIRONMENT_UNKNOWN\",\"nationality\":\"NATIONALITY_INVALID\"},\"ontology\":{\"platformType\":\"platformType\",\"specificType\":\"specificType\",\"template\":\"TEMPLATE_INVALID\"},\"sensors\":{\"sensors\":[{}]},\"payloads\":{\"payloadConfigurations\":[{}]},\"powerState\":{\"sourceIdToState\":{\"key\":{}}},\"provenance\":{\"integrationName\":\"integrationName\",\"dataType\":\"dataType\",\"sourceId\":\"sourceId\",\"sourceUpdateTime\":\"2024-01-15T09:30:00Z\",\"sourceDescription\":\"sourceDescription\"},\"overrides\":{\"override\":[{}]},\"indicators\":{\"simulated\":true,\"exercise\":true,\"emergency\":true,\"c2\":true,\"egressable\":true,\"starred\":true},\"targetPriority\":{\"highValueTarget\":{\"isHighValueTarget\":true,\"targetPriority\":1,\"targetMatches\":[{}],\"isHighPayoffTarget\":true},\"threat\":{\"isThreat\":true}},\"signal\":{\"bandwidthHz\":1.1,\"signalToNoiseRatio\":1.1,\"emitterNotations\":[{}],\"pulseWidthS\":1.1,\"scanCharacteristics\":{\"scanType\":\"SCAN_TYPE_INVALID\",\"scanPeriodS\":1.1}},\"transponderCodes\":{\"mode1\":1,\"mode2\":1,\"mode3\":1,\"mode4InterrogationResponse\":\"INTERROGATION_RESPONSE_INVALID\",\"mode5\":{\"mode5InterrogationResponse\":\"INTERROGATION_RESPONSE_INVALID\",\"mode5\":1,\"mode5PlatformId\":1},\"modeS\":{\"id\":\"id\",\"address\":1}},\"dataClassification\":{\"default\":{\"level\":\"CLASSIFICATION_LEVELS_INVALID\",\"caveats\":[\"caveats\"]},\"fields\":[{}]},\"taskCatalog\":{\"taskDefinitions\":[{}]},\"media\":{\"media\":[{}]},\"relationships\":{\"relationships\":[{}]},\"visualDetails\":{\"rangeRings\":{\"minDistanceM\":1.1,\"maxDistanceM\":1.1,\"ringCount\":1}},\"dimensions\":{\"lengthM\":1.1},\"routeDetails\":{\"destinationName\":\"destinationName\",\"estimatedArrivalTime\":\"2024-01-15T09:30:00Z\"},\"schedules\":{\"schedules\":[{}]},\"health\":{\"connectionStatus\":\"CONNECTION_STATUS_INVALID\",\"healthStatus\":\"HEALTH_STATUS_INVALID\",\"components\":[{}],\"updateTime\":\"2024-01-15T09:30:00Z\",\"activeAlerts\":[{}]},\"groupDetails\":{\"echelon\":{\"armyEchelon\":\"ARMY_ECHELON_INVALID\"}},\"supplies\":{\"fuel\":[{}]},\"symbology\":{\"milStd2525C\":{\"sidc\":\"sidc\"}}}")); Entity response = client.entities().removeEntityOverride("entityId", "mil_view.disposition"); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -1129,11 +1120,8 @@ public void testRemoveEntityOverride() throws Exception { + " \"expiryTime\": \"2024-01-15T09:30:00Z\",\n" + " \"noExpiry\": true,\n" + " \"status\": {\n" - + " \"code\": 1,\n" - + " \"message\": \"message\",\n" - + " \"details\": [\n" - + " {}\n" - + " ]\n" + + " \"platformActivity\": \"platformActivity\",\n" + + " \"role\": \"role\"\n" + " },\n" + " \"location\": {\n" + " \"position\": {\n"