Commit 468166d1 authored by Michel Roy's avatar Michel Roy Committed by Kevin Di Lallo
Browse files

ctrl engine model swagger update

parent 3d2f2412
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -11,24 +11,17 @@ package model

// Network deployment object
type Deployment struct {

	// Latency in ms between domains
	InterDomainLatency int32 `json:"interDomainLatency,omitempty"`

	// Latency variation in ms between domains
	InterDomainLatencyVariation int32 `json:"interDomainLatencyVariation,omitempty"`

	// The limit of the traffic supported between domains
	InterDomainThroughput int32 `json:"interDomainThroughput,omitempty"`

	// Packet lost (in terms of percentage) between domains
	InterDomainPacketLoss float64 `json:"interDomainPacketLoss,omitempty"`

	// Key/Value Pair Map (string, string)
	Meta map[string]string `json:"meta,omitempty"`

	// Key/Value Pair Map (string, string)
	UserMeta map[string]string `json:"userMeta,omitempty"`

	Domains  []Domain          `json:"domains,omitempty"`
}
+1 −11
Original line number Diff line number Diff line
@@ -11,33 +11,23 @@ package model

// Operator domain object
type Domain struct {

	// Unique domain ID
	Id string `json:"id,omitempty"`

	// Domain name
	Name string `json:"name,omitempty"`

	// Domain type
	Type_ string `json:"type,omitempty"`

	// Latency in ms between zones within domain
	InterZoneLatency int32 `json:"interZoneLatency,omitempty"`

	// Latency variation in ms between zones within domain
	InterZoneLatencyVariation int32 `json:"interZoneLatencyVariation,omitempty"`

	// The limit of the traffic supported between zones within the domain
	InterZoneThroughput int32 `json:"interZoneThroughput,omitempty"`

	// Packet lost (in terms of percentage) between zones within the domain
	InterZonePacketLoss float64 `json:"interZonePacketLoss,omitempty"`

	// Key/Value Pair Map (string, string)
	Meta map[string]string `json:"meta,omitempty"`

	// Key/Value Pair Map (string, string)
	UserMeta map[string]string `json:"userMeta,omitempty"`

	Zones    []Zone            `json:"zones,omitempty"`
}
+0 −5
Original line number Diff line number Diff line
@@ -11,19 +11,14 @@ package model

// External service exposed internally via specific port
type EgressService struct {

	// Service name
	Name string `json:"name,omitempty"`

	// Multi-Edge service name, if any
	MeSvcName string `json:"meSvcName,omitempty"`

	// External node IP address
	Ip string `json:"ip,omitempty"`

	// Service port number
	Port int32 `json:"port,omitempty"`

	// Service protocol (TCP or UDP)
	Protocol string `json:"protocol,omitempty"`
}
+4 −10
Original line number Diff line number Diff line
@@ -11,18 +11,12 @@ package model

// Event object
type Event struct {

	// Event name
	Name string `json:"name,omitempty"`

	// Event type
	Type_                             string                             `json:"type,omitempty"`

	EventNetworkCharacteristicsUpdate *EventNetworkCharacteristicsUpdate `json:"eventNetworkCharacteristicsUpdate,omitempty"`

	EventMobility                     *EventMobility                     `json:"eventMobility,omitempty"`

	EventPoasInRange                  *EventPoasInRange                  `json:"eventPoasInRange,omitempty"`

	EventOther                        *EventOther                        `json:"eventOther,omitempty"`
}
Loading