blob: 2222b89a608d19f7f047267f1a2f9788be7a4201 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.noderepository;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
/**
* @author mpolden
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class NodeTargetVersions {
@JsonProperty("versions")
private final Map<NodeType, String> vespaVersions;
@JsonProperty("osVersions")
private final Map<NodeType, String> osVersions;
@JsonCreator
public NodeTargetVersions(@JsonProperty("versions") Map<NodeType, String> vespaVersions,
@JsonProperty("osVersions") Map<NodeType, String> osVersions) {
this.vespaVersions = Map.copyOf(vespaVersions);
this.osVersions = Map.copyOf(osVersions);
}
public Map<NodeType, String> vespaVersions() {
return vespaVersions;
}
public Map<NodeType, String> osVersions() {
return osVersions;
}
}
|