// Copyright 2017 Yahoo Holdings. 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.JsonIgnoreProperties;
import com.yahoo.vespa.hosted.controller.api.identifiers.GitBranch;
import com.yahoo.vespa.hosted.controller.api.identifiers.GitCommit;
import com.yahoo.vespa.hosted.controller.api.identifiers.GitRepository;
import com.yahoo.vespa.hosted.controller.api.identifiers.RevisionId;
import com.yahoo.vespa.hosted.controller.api.identifiers.ScrewdriverId;

import java.net.URI;
import java.util.List;

/**
 * @author mortent
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class InstanceInformation {
    public List<URI> serviceUrls;
    public URI nodes;
    public URI yamasUrl;
    public RevisionId revision;
    public Long deployTimeEpochMs;
    public Long expiryTimeEpochMs;

    public ScrewdriverId screwdriverId;
    public GitRepository gitRepository;
    public GitBranch gitBranch;
    public GitCommit gitCommit;
}

@@ -225,32 +225,139 @@
 ion.Json
-IgnoreProperties
+Creator;%0Aimport com.fasterxml.jackson.annotation.JsonIgnoreProperties;%0Aimport com.fasterxml.jackson.annotation.JsonProperty
 ;%0Aimport
@@ -885,16 +885,53 @@
 ceUrls;%0A
+    public List%3CEndpoint%3E endpoints;%0A
     publ
@@ -1184,16 +1184,16 @@
 Branch;%0A
-
     publ
@@ -1215,11 +1215,694 @@
 tCommit;
+%0A%0A    public static class Endpoint %7B%0A        public String cluster;%0A        public boolean tls;%0A        public URI url;%0A%0A        @JsonCreator%0A        public Endpoint(@JsonProperty(%22cluster%22) String cluster ,%0A                        @JsonProperty(%22tls%22) boolean tls,%0A                        @JsonProperty(%22url%22) URI url) %7B%0A            this.cluster = cluster;%0A            this.tls = tls;%0A            this.url = url;%0A        %7D%0A%0A        @Override%0A        public String toString() %7B%0A            return %22Endpoint %7B%22 +%0A                    %22cluster=%22 + cluster+%0A                    %22, tls='%22 + tls + '%5C'' +%0A                    %22, url='%22 + url+ '%5C'' +%0A                    '%7D';%0A        %7D%0A    %7D
 %0A%7D%0A

Add endpoints to InstanceInformation