Commit 09734fe7 authored by muhammadh's avatar muhammadh
Browse files

update service_info model in meep-service-mgmt-client

parent 7e200e20
Loading
Loading
Loading
Loading
+18 −10
Original line number Diff line number Diff line
@@ -27,20 +27,28 @@ package client
// This type represents the general information of a MEC service.
type ServiceInfo struct {
	SerInstanceId string `json:"serInstanceId,omitempty"`

	SerName string `json:"serName"`

	SerCategory *CategoryRef `json:"serCategory,omitempty"`
	// Service version
	Version string `json:"version"`

	State *ServiceState `json:"state"`
	// Identifier of the platform-provided transport to be used by the service. Valid identifiers may be obtained using the \"Transport information query\" procedure. May be present in POST requests to signal the use of a platform-provided transport for the service, and shall be absent otherwise.
	TransportId string `json:"transportId,omitempty"`

	TransportInfo *TransportInfo `json:"transportInfo,omitempty"`

	Serializer *SerializerType `json:"serializer"`

	ScopeOfLocality *LocalityType `json:"scopeOfLocality,omitempty"`
	// Indicate whether the service can only be consumed by the MEC applications located in the same locality (as defined by scopeOfLocality) as this  service instance.
	// manually removed the omitempty
	ConsumedLocalOnly bool `json:"consumedLocalOnly,omitempty"`
	ConsumedLocalOnly bool `json:"consumedLocalOnly"`
	// Indicate whether the service is located in the same locality (as defined by scopeOfLocality) as the consuming MEC application.
	// manually removed the omitempty
	IsLocal bool `json:"isLocal,omitempty"`
	IsLocal bool `json:"isLocal"`

	LivenessInterval int32 `json:"livenessInterval,omitempty"`

+19 −9
Original line number Diff line number Diff line
@@ -27,15 +27,21 @@ package client
// This type represents the general information of a MEC service.
type ServiceInfoPost struct {
	SerInstanceId string `json:"serInstanceId,omitempty"`

	SerName string `json:"serName"`

	SerCategory *CategoryRef `json:"serCategory,omitempty"`
	// Service version
	Version string `json:"version"`

	State *ServiceState `json:"state"`
	// Identifier of the platform-provided transport to be used by the service. Valid identifiers may be obtained using the \"Transport information query\" procedure. May be present in POST requests to signal the use of a platform-provided transport for the service, and shall be absent otherwise.
	TransportId string `json:"transportId,omitempty"`

	TransportInfo *TransportInfo `json:"transportInfo,omitempty"`

	Serializer *SerializerType `json:"serializer"`

	ScopeOfLocality *LocalityType `json:"scopeOfLocality,omitempty"`
	// Indicate whether the service can only be consumed by the MEC applications located in the same locality (as defined by scopeOfLocality) as this  service instance.
	// manually removed the omitempty
@@ -43,4 +49,8 @@ type ServiceInfoPost struct {
	// Indicate whether the service is located in the same locality (as defined by scopeOfLocality) as the consuming MEC application.
	// manually removed the omitempty
	IsLocal bool `json:"isLocal"`

	LivenessInterval int32 `json:"livenessInterval,omitempty"`

	Links *ServiceInfoLinks `json:"_links"`
}