blob: d73a7410cc6aa463bf792dd8d933502fec6703eb (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.application.v4.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.yahoo.config.provision.zone.RoutingMethod;
import java.net.URI;
import java.util.List;
/**
* @author mortent
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class InstanceInformation {
public List<Endpoint> endpoints;
public URI yamasUrl;
public Long deployTimeEpochMs;
public Long expiryTimeEpochMs;
public static class Endpoint {
public String cluster;
public boolean tls;
public URI url;
public String scope;
public RoutingMethod routingMethod;
public String auth;
@JsonCreator
public Endpoint(@JsonProperty("cluster") String cluster ,
@JsonProperty("tls") boolean tls,
@JsonProperty("url") URI url,
@JsonProperty("scope") String scope,
@JsonProperty("routingMethod") RoutingMethod routingMethod,
@JsonProperty("authMethod") String auth) {
this.cluster = cluster;
this.tls = tls;
this.url = url;
this.scope = scope;
this.routingMethod = routingMethod;
this.auth = auth;
}
@Override
public String toString() {
return "Endpoint{" +
"cluster='" + cluster + '\'' +
", tls=" + tls +
", url=" + url +
", scope='" + scope + '\'' +
", authType='" + auth + '\'' +
", routingMethod=" + routingMethod +
'}';
}
}
}
|