client

package module
v0.0.0-...-8f6edbe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 21 Imported by: 2

README

Go API client for client

MEC Service Management Service is AdvantEDGE's implementation of ETSI MEC ISG MEC011 Application Enablement API

Copyright (c) ETSI 2017

Micro-service
meep-app-enablement

Type & Usage
Edge Service used by edge applications that want to get information about services in the network

Note
AdvantEDGE supports all of Service Management API endpoints (see below).

Overview

This API client was generated by the swagger-codegen project. By using the swagger-spec from a remote server, you can easily generate an API client.

  • API version: 2.2.1
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.v3.generators.go.GoClientCodegen

Installation

Put the package under your project folder and add the following in import:

import "./client"

Documentation for API Endpoints

All URIs are relative to https://localhost/sandboxname/mec_service_mgmt/v1

Class Method HTTP request Description
MecServiceMgmtApi AppServicesGET Get /applications/{appInstanceId}/services
MecServiceMgmtApi AppServicesPOST Post /applications/{appInstanceId}/services
MecServiceMgmtApi AppServicesServiceIdDELETE Delete /applications/{appInstanceId}/services/{serviceId}
MecServiceMgmtApi AppServicesServiceIdGET Get /applications/{appInstanceId}/services/{serviceId}
MecServiceMgmtApi AppServicesServiceIdPUT Put /applications/{appInstanceId}/services/{serviceId}
MecServiceMgmtApi ApplicationsSubscriptionDELETE Delete /applications/{appInstanceId}/subscriptions/{subscriptionId}
MecServiceMgmtApi ApplicationsSubscriptionGET Get /applications/{appInstanceId}/subscriptions/{subscriptionId}
MecServiceMgmtApi ApplicationsSubscriptionsGET Get /applications/{appInstanceId}/subscriptions
MecServiceMgmtApi ApplicationsSubscriptionsPOST Post /applications/{appInstanceId}/subscriptions
MecServiceMgmtApi ServicesGET Get /services
MecServiceMgmtApi ServicesServiceIdGET Get /services/{serviceId}
MecServiceMgmtApi TransportsGET Get /transports

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

AdvantEDGE@InterDigital.com

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes a oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKey takes an APIKey as authentication for the request
	ContextAPIKey = contextKey("apikey")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

Types

type APIClient

type APIClient struct {
	MecServiceMgmtApi *MecServiceMgmtApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the AdvantEDGE Service Management API API v2.2.1 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) ChangeBasePath

func (c *APIClient) ChangeBasePath(path string)

Change base path to allow switching to mocks

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the swagger operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

type AppServicesGETOpts

type AppServicesGETOpts struct {
	SerInstanceId     optional.Interface
	SerName           optional.Interface
	SerCategoryId     optional.String
	ConsumedLocalOnly optional.Bool
	IsLocal           optional.Bool
	ScopeOfLocality   optional.String
}

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type CategoryRef

type CategoryRef struct {
	// Reference of the catalogue
	Href string `json:"href"`
	// Unique identifier of the category
	Id string `json:"id"`
	// Name of the category, example values include RNI, Location & Bandwidth Management
	Name string `json:"name"`
	// Category version
	Version string `json:"version"`
}

This type represents the category reference

type Configuration

type Configuration struct {
	BasePath      string            `json:"basePath,omitempty"`
	Host          string            `json:"host,omitempty"`
	Scheme        string            `json:"scheme,omitempty"`
	DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
	UserAgent     string            `json:"userAgent,omitempty"`
	HTTPClient    *http.Client
}

func NewConfiguration

func NewConfiguration() *Configuration

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

type EndPointInfoAddresses

type EndPointInfoAddresses struct {
	Addresses []EndPointInfoAddressesAddresses `json:"addresses"`
}

Entry point information of the service as one or more pairs of IP address and port

type EndPointInfoAddressesAddresses

type EndPointInfoAddressesAddresses struct {
	// Host portion of the address
	Host string `json:"host"`
	// Port portion of the address
	Port int32 `json:"port"`
}

A IP address and port pair

type EndPointInfoAlternative

type EndPointInfoAlternative struct {
	Alternative *interface{} `json:"alternative"`
}

Entry point information of the service in a format defined by an implementation, or in an external specification.

type EndPointInfoUris

type EndPointInfoUris struct {
	Uris []string `json:"uris"`
}

Entry point information of the service as string, formatted according to URI syntax

type GenericSwaggerError

type GenericSwaggerError struct {
	// contains filtered or unexported fields
}

GenericSwaggerError Provides access to the body, error and model on returned errors.

func (GenericSwaggerError) Body

func (e GenericSwaggerError) Body() []byte

Body returns the raw bytes of the response

func (GenericSwaggerError) Error

func (e GenericSwaggerError) Error() string

Error returns non-empty string if there was an error.

func (GenericSwaggerError) Model

func (e GenericSwaggerError) Model() interface{}

Model returns the unpacked model of the error

type GrantType

type GrantType string

GrantType : OAuth 2.0 grant type

const (
	AUTHORIZATION_CODE_GrantType GrantType = "OAUTH2_AUTHORIZATION_CODE"
	IMPLICIT_GRANT_GrantType     GrantType = "OAUTH2_IMPLICIT_GRANT"
	RESOURCE_OWNER_GrantType     GrantType = "OAUTH2_RESOURCE_OWNER"
	CLIENT_CREDENTIALS_GrantType GrantType = "OAUTH2_CLIENT_CREDENTIALS"
)

List of GrantType

type LinkType

type LinkType struct {
	// URI referring to a resource
	Href string `json:"href,omitempty"`
}

This type represents a type of link and may be referenced from data structures

type LocalityType

type LocalityType string

LocalityType : The scope of locality as expressed by \"consumedLocalOnly\" and \"isLocal\". If absent, defaults to MEC_HOST

const (
	MEC_SYSTEM_LocalityType LocalityType = "MEC_SYSTEM"
	MEC_HOST_LocalityType   LocalityType = "MEC_HOST"
	NFVI_POP_LocalityType   LocalityType = "NFVI_POP"
	ZONE_LocalityType       LocalityType = "ZONE"
	ZONE_GROUP_LocalityType LocalityType = "ZONE_GROUP"
	NFVI_NODE_LocalityType  LocalityType = "NFVI_NODE"
)

List of LocalityType

type MecServiceMgmtApiService

type MecServiceMgmtApiService service

func (*MecServiceMgmtApiService) AppServicesGET

func (a *MecServiceMgmtApiService) AppServicesGET(ctx context.Context, appInstanceId string, localVarOptionals *AppServicesGETOpts) ([]ServiceInfo, *http.Response, error)

func (*MecServiceMgmtApiService) AppServicesPOST

func (a *MecServiceMgmtApiService) AppServicesPOST(ctx context.Context, body ServiceInfoPost, appInstanceId string) (ServiceInfo, *http.Response, error)

MecServiceMgmtApiService This method is used to create a mecService resource. This method is typically used in \"service availability update and new service registration\" procedure

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body New ServiceInfo with updated "state" is included as entity body of the request
  • @param appInstanceId Represents a MEC application instance. Note that the appInstanceId is allocated by the MEC platform manager.

@return ServiceInfo

func (*MecServiceMgmtApiService) AppServicesServiceIdDELETE

func (a *MecServiceMgmtApiService) AppServicesServiceIdDELETE(ctx context.Context, appInstanceId string, serviceId string) (*http.Response, error)

MecServiceMgmtApiService This method deletes a mecService resource. This method is typically used in the service deregistration procedure.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param appInstanceId Represents a MEC application instance. Note that the appInstanceId is allocated by the MEC platform manager.
  • @param serviceId Represents a MEC service instance.

func (*MecServiceMgmtApiService) AppServicesServiceIdGET

func (a *MecServiceMgmtApiService) AppServicesServiceIdGET(ctx context.Context, appInstanceId string, serviceId string) (ServiceInfo, *http.Response, error)

MecServiceMgmtApiService This method retrieves information about a mecService resource. This method is typically used in \"service availability query\" procedure

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param appInstanceId Represents a MEC application instance. Note that the appInstanceId is allocated by the MEC platform manager.
  • @param serviceId Represents a MEC service instance.

@return ServiceInfo

func (*MecServiceMgmtApiService) AppServicesServiceIdPUT

func (a *MecServiceMgmtApiService) AppServicesServiceIdPUT(ctx context.Context, body ServiceInfo, appInstanceId string, serviceId string) (ServiceInfo, *http.Response, error)

MecServiceMgmtApiService This method updates the information about a mecService resource

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body New ServiceInfo with updated "state" is included as entity body of the request
  • @param appInstanceId Represents a MEC application instance. Note that the appInstanceId is allocated by the MEC platform manager.
  • @param serviceId Represents a MEC service instance.

@return ServiceInfo

func (*MecServiceMgmtApiService) ApplicationsSubscriptionDELETE

func (a *MecServiceMgmtApiService) ApplicationsSubscriptionDELETE(ctx context.Context, appInstanceId string, subscriptionId string) (*http.Response, error)

MecServiceMgmtApiService This method deletes a mecSrvMgmtSubscription. This method is typically used in \"Unsubscribing from service availability event notifications\" procedure.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param appInstanceId Represents a MEC application instance. Note that the appInstanceId is allocated by the MEC platform manager.
  • @param subscriptionId Represents a subscription to the notifications from the MEC platform.

func (*MecServiceMgmtApiService) ApplicationsSubscriptionGET

func (a *MecServiceMgmtApiService) ApplicationsSubscriptionGET(ctx context.Context, appInstanceId string, subscriptionId string) (SerAvailabilityNotificationSubscription, *http.Response, error)

MecServiceMgmtApiService The GET method requests information about a subscription for this requestor. Upon success, the response contains entity body with the subscription for the requestor.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param appInstanceId Represents a MEC application instance. Note that the appInstanceId is allocated by the MEC platform manager.
  • @param subscriptionId Represents a subscription to the notifications from the MEC platform.

@return SerAvailabilityNotificationSubscription

func (*MecServiceMgmtApiService) ApplicationsSubscriptionsGET

func (a *MecServiceMgmtApiService) ApplicationsSubscriptionsGET(ctx context.Context, appInstanceId string) (SubscriptionLinkList, *http.Response, error)

MecServiceMgmtApiService The GET method may be used to request information about all subscriptions for this requestor. Upon success, the response contains entity body with all the subscriptions for the requestor.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param appInstanceId Represents a MEC application instance. Note that the appInstanceId is allocated by the MEC platform manager.

@return SubscriptionLinkList

func (*MecServiceMgmtApiService) ApplicationsSubscriptionsPOST

MecServiceMgmtApiService The POST method may be used to create a new subscription. One example use case is to create a new subscription to the MEC service availability notifications. Upon success, the response contains entity body describing the created subscription.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body Entity body in the request contains a subscription to the MEC application termination notifications that is to be created.
  • @param appInstanceId Represents a MEC application instance. Note that the appInstanceId is allocated by the MEC platform manager.

@return SerAvailabilityNotificationSubscription

func (*MecServiceMgmtApiService) ServicesGET

func (a *MecServiceMgmtApiService) ServicesGET(ctx context.Context, localVarOptionals *ServicesGETOpts) ([]ServiceInfo, *http.Response, error)

func (*MecServiceMgmtApiService) ServicesServiceIdGET

func (a *MecServiceMgmtApiService) ServicesServiceIdGET(ctx context.Context, serviceId string) (ServiceInfo, *http.Response, error)

MecServiceMgmtApiService This method retrieves information about a mecService resource. This method is typically used in \"service availability query\" procedure

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param serviceId Represents a MEC service instance.

@return ServiceInfo

func (*MecServiceMgmtApiService) TransportsGET

MecServiceMgmtApiService This method retrieves information about a list of available transports. This method is typically used by a service-producing application to discover transports provided by the MEC platform in the \"transport information query\" procedure

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return []TransportInfo

type OAuth2Info

type OAuth2Info struct {
	// List of supported OAuth 2.0 grant types.
	GrantTypes []GrantType `json:"grantTypes"`
	// The token endpoint
	TokenEndpoint string `json:"tokenEndpoint"`
}

Parameters related to use of OAuth 2.0

type OneOfServiceInfoPost

type OneOfServiceInfoPost struct {
}

type OneOfTransportInfoEndpoint

type OneOfTransportInfoEndpoint struct {
	Addresses []EndPointInfoAddressesAddresses `json:"addresses,omitempty"`

	Host string `json:"host,omitempty"`
	Port int32  `json:"port,omitempty"`

	Alternative *interface{} `json:"alternative,omitempty"`

	Uris []string `json:"uris,omitempty"`
}

type ProblemDetails

type ProblemDetails struct {
	// A URI reference according to IETF RFC 3986 that identifies the problem type
	Type_ string `json:"type,omitempty"`
	// A short, human-readable summary of the problem type
	Title string `json:"title,omitempty"`
	// The HTTP status code for this occurrence of the problem
	Status int32 `json:"status"`
	// A human-readable explanation specific to this occurrence of the problem
	Detail string `json:"detail"`
	// A URI reference that identifies the specific occurrence of the problem
	Instance string `json:"instance,omitempty"`
}

type SecurityInfo

type SecurityInfo struct {
	OAuth2Info *OAuth2Info `json:"oAuth2Info,omitempty"`
}

This type represents security information related to a transport

type Self

type Self struct {
	Self *LinkType `json:"self"`
}

Self-referring URI.

type SerAvailabilityNotificationSubscription

type SerAvailabilityNotificationSubscription struct {
	// Shall be set to SerAvailabilityNotificationSubscription.
	SubscriptionType string `json:"subscriptionType"`
	// URI selected by the MEC application instance to receive notifications on the subscribed MEC service availability information. This shall be included in both the request and the response.
	CallbackReference string                                                    `json:"callbackReference"`
	Links             *Self                                                     `json:"_links,omitempty"`
	FilteringCriteria *SerAvailabilityNotificationSubscriptionFilteringCriteria `json:"filteringCriteria,omitempty"`
}

This type represents a subscription to the notifications from the MEC platform regarding the availability of a MEC service or a list of MEC services.

type SerAvailabilityNotificationSubscriptionFilteringCriteria

type SerAvailabilityNotificationSubscriptionFilteringCriteria struct {
	SerInstanceIds *[]string       `json:"serInstanceIds,omitempty"`
	SerNames       *[]string       `json:"serNames,omitempty"`
	SerCategories  *[]CategoryRef  `json:"serCategories,omitempty"`
	States         *[]ServiceState `json:"states,omitempty"`
	// Indicate whether the service is located in the same locality (as defined by scopeOfLocality) as the consuming MEC application.
	IsLocal bool `json:"isLocal,omitempty"`
}

Filtering criteria to match services for which events are requested to be reported. If absent, matches all services. All child attributes are combined with the logical \"AND\" operation.

type SerializerType

type SerializerType string

SerializerType : The enumeration represents types of serializers

const (
	JSON_SerializerType      SerializerType = "JSON"
	XML_SerializerType       SerializerType = "XML"
	PROTOBUF3_SerializerType SerializerType = "PROTOBUF3"
)

List of SerializerType

type ServiceAvailabilityNotification

type ServiceAvailabilityNotification struct {
	// Shall be set to SerAvailabilityNotification.
	NotificationType  string                                             `json:"notificationType"`
	ServiceReferences []ServiceAvailabilityNotificationServiceReferences `json:"serviceReferences"`
	Links             *Subscription                                      `json:"_links"`
}

This type represents the service availability information.

type ServiceAvailabilityNotificationChangeType

type ServiceAvailabilityNotificationChangeType string

ServiceAvailabilityNotificationChangeType : Type of the change. Valid values: ADDED: The service was newly added. REMOVED: The service was removed. STATE_CHANGED: Only the state of the service was changed. ATTRIBUTES_CHANGED: At least one attribute of the service other than state was changed. The change may or may not include changing the state.

const (
	ADDED_ServiceAvailabilityNotificationChangeType              ServiceAvailabilityNotificationChangeType = "ADDED"
	REMOVED_ServiceAvailabilityNotificationChangeType            ServiceAvailabilityNotificationChangeType = "REMOVED"
	STATE_CHANGED_ServiceAvailabilityNotificationChangeType      ServiceAvailabilityNotificationChangeType = "STATE_CHANGED"
	ATTRIBUTES_CHANGED_ServiceAvailabilityNotificationChangeType ServiceAvailabilityNotificationChangeType = "ATTRIBUTES_CHANGED"
)

List of ServiceAvailabilityNotificationChangeType

type ServiceAvailabilityNotificationServiceReferences

type ServiceAvailabilityNotificationServiceReferences struct {
	Link          *LinkType                                  `json:"link,omitempty"`
	SerName       string                                     `json:"serName"`
	SerInstanceId string                                     `json:"serInstanceId"`
	State         *ServiceState                              `json:"state"`
	ChangeType    *ServiceAvailabilityNotificationChangeType `json:"changeType"`
}

List of links to services whose availability has changed.

type ServiceInfo

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"`
	// 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"`
}

This type represents the general information of a MEC service.

type ServiceInfoLinks struct {
	Self     *LinkType `json:"self"`
	Liveness *LinkType `json:"liveness,omitempty"`
}

type ServiceInfoPost

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
	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"`

	LivenessInterval int32 `json:"livenessInterval,omitempty"`

	Links *ServiceInfoLinks `json:"_links"`
}

This type represents the general information of a MEC service.

type ServiceLivenessInfo

type ServiceLivenessInfo struct {
	State     *ServiceState                 `json:"state"`
	TimeStamp *ServiceLivenessInfoTimeStamp `json:"timeStamp"`
	// The interval (in seconds) between two consecutive \"heartbeat\" messages (see clause 8.2.10.3.3) that MEC platform has determined.
	Interval int32 `json:"interval"`
}

type ServiceLivenessInfoTimeStamp

type ServiceLivenessInfoTimeStamp struct {
	Seconds     int32 `json:"seconds"`
	NanoSeconds int32 `json:"nanoSeconds"`
}

The time when the last \"heartbeat\" message was received by MEC platform

type ServiceLivenessUpdate

type ServiceLivenessUpdate struct {
	State *ServiceState `json:"state"`
}

type ServiceState

type ServiceState string

ServiceState : This enumeration defines the possible states of a service.

const (
	ACTIVE_ServiceState    ServiceState = "ACTIVE"
	INACTIVE_ServiceState  ServiceState = "INACTIVE"
	SUSPENDED_ServiceState ServiceState = "SUSPENDED"
)

List of ServiceState

type ServicesGETOpts

type ServicesGETOpts struct {
	SerInstanceId     optional.Interface
	SerName           optional.Interface
	SerCategoryId     optional.String
	ConsumedLocalOnly optional.Bool
	IsLocal           optional.Bool
	ScopeOfLocality   optional.String
}

type Subscription

type Subscription struct {
	Subscription *LinkType `json:"subscription"`
}

A link to the related subscription

type SubscriptionLinkList struct {
	Links *SubscriptionLinkListLinks `json:"_links"`
}

This type represents a list of links related to currently existing subscriptions for a MEC application instance. This information is returned when sending a request to receive current subscriptions.

type SubscriptionLinkListLinks struct {
	Self *LinkType `json:"self"`
	// The MEC application instance's subscriptions
	Subscriptions []SubscriptionLinkListLinksSubscriptions `json:"subscriptions,omitempty"`
}

Self-referring URI.

type SubscriptionLinkListLinksSubscriptions

type SubscriptionLinkListLinksSubscriptions struct {
	// URI referring to a resource
	Href string `json:"href"`
	// Type of the subscription. The values are as defined in the \"subscriptionType\" attribute for each different Mp1 event subscription data type.
	SubscriptionType string `json:"subscriptionType"`
}

A link to a subscription.

type TransportInfo

type TransportInfo struct {
	// The identifier of this transport
	Id string `json:"id"`
	// The name of this transport
	Name string `json:"name"`
	// Human-readable description of this transport
	Description string         `json:"description,omitempty"`
	Type_       *TransportType `json:"type"`
	// The name of the protocol used. Shall be set to HTTP for a REST API.
	Protocol string `json:"protocol"`
	// The version of the protocol used
	Version string `json:"version"`
	// This type represents information about a transport endpoint
	Endpoint *OneOfTransportInfoEndpoint `json:"endpoint"`
	Security *SecurityInfo               `json:"security"`
	// Additional implementation specific details of the transport
	ImplSpecificInfo *interface{} `json:"implSpecificInfo,omitempty"`
}

This type represents the general information of a MEC service.

type TransportType

type TransportType string

TransportType : The enumeration TransportType represents types of transports

const (
	REST_HTTP_TransportType      TransportType = "REST_HTTP"
	MB_TOPIC_BASED_TransportType TransportType = "MB_TOPIC_BASED"
	MB_ROUTING_TransportType     TransportType = "MB_ROUTING"
	MB_PUBSUB_TransportType      TransportType = "MB_PUBSUB"
	RPC_TransportType            TransportType = "RPC"
	RPC_STREAMING_TransportType  TransportType = "RPC_STREAMING"
	WEBSOCKET_TransportType      TransportType = "WEBSOCKET"
)

List of TransportType

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL