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: 22 Imported by: 0

README

Go API client for client

Application Mobility Service is AdvantEDGE's implementation of ETSI MEC ISG MEC021 Application Mobility API

Copyright (c) ETSI 2017

Micro-service
meep-ams

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

Note
AdvantEDGE supports a selected subset of Application Mobility 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/amsi/v1

Class Method HTTP request Description
AmsiApi AppMobilityServiceByIdDELETE Delete /app_mobility_services/{appMobilityServiceId} deregister the individual application mobility service
AmsiApi AppMobilityServiceByIdGET Get /app_mobility_services/{appMobilityServiceId} Retrieve information about this individual application mobility service
AmsiApi AppMobilityServiceByIdPUT Put /app_mobility_services/{appMobilityServiceId} update the existing individual application mobility service
AmsiApi AppMobilityServiceGET Get /app_mobility_services Retrieve information about the registered application mobility service.
AmsiApi AppMobilityServicePOST Post /app_mobility_services Create a new application mobility service for the service requester.
AmsiApi Mec011AppTerminationPOST Post /notifications/mec011/appTermination MEC011 Application Termination notification for self termination
AmsiApi SubByIdDELETE Delete /subscriptions/{subscriptionId} cancel the existing individual subscription
AmsiApi SubByIdGET Get /subscriptions/{subscriptionId} Retrieve information about this subscription.
AmsiApi SubByIdPUT Put /subscriptions/{subscriptionId} update the existing individual subscription.
AmsiApi SubGET Get /subscriptions Retrieve information about the subscriptions for this requestor.
AmsiApi SubPOST Post /subscriptions Create a new subscription to Application Mobility Service notifications.
UnsupportedApi AdjAppInstGET Get /queries/adjacent_app_instances Retrieve information about this subscription.
UnsupportedApi AppMobilityServiceDerPOST Post /app_mobility_services/{appMobilityServiceId}/deregister_task deregister the individual application mobility service
UnsupportedApi NotificationPOST Post /uri_provided_by_subscriber delivers a notification from the AMS resource to the subscriber

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 {
	AmsiApi *AmsiApiService

	UnsupportedApi *UnsupportedApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the AdvantEDGE Application Mobility 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 AdjAppInstGETOpts

type AdjAppInstGETOpts struct {
	Filter         optional.String
	AllFields      optional.String
	Fields         optional.String
	ExcludeFields  optional.String
	ExcludeDefault optional.String
}

type AdjacentAppInfoNotification

type AdjacentAppInfoNotification struct {
	// Shall be set to \"AdjacentAppInfoNotification\".
	NotificationType string     `json:"notificationType"`
	TimeStamp        *TimeStamp `json:"timeStamp,omitempty"`
	// 1 to N identifiers to associate the information for specific
	AssociateId     []AssociateId                                `json:"associateId,omitempty"`
	AdjacentAppInfo []AdjacentAppInfoNotificationAdjacentAppInfo `json:"adjacentAppInfo,omitempty"`
	Links           *Link                                        `json:"_links"`
}

type AdjacentAppInfoNotificationAdjacentAppInfo

type AdjacentAppInfoNotificationAdjacentAppInfo struct {
	// Identifier of the adjacent application instance.
	AppInstanceId string `json:"appInstanceId"`
	// If present, it represents the communication interface(s) information of the application instance.
	CommInterface []CommunicationInterface `json:"commInterface"`
}

type AdjacentAppInfoSubscription

type AdjacentAppInfoSubscription struct {
	Links *AdjacentAppInfoSubscriptionLinks `json:"_links,omitempty"`
	// URI selected by the service consumer to receive notifications on the subscribed Application Mobility Service. This shall be included both in the request and in response.
	CallbackReference string `json:"callbackReference"`
	// Shall be set to TRUE by the service consumer to request a test notification via HTTP on the callbackReference URI, specified in ETSI GS MEC 009, as described in clause 6.12a.
	RequestTestNotification bool                                       `json:"requestTestNotification,omitempty"`
	WebsockNotifConfig      *WebsockNotifConfig                        `json:"websockNotifConfig,omitempty"`
	ExpiryDeadline          *TimeStamp                                 `json:"expiryDeadline,omitempty"`
	FilterCriteria          *AdjacentAppInfoSubscriptionFilterCriteria `json:"filterCriteria"`
	SubscriptionType        *SubscriptionType                          `json:"subscriptionType"`
}

type AdjacentAppInfoSubscriptionFilterCriteria

type AdjacentAppInfoSubscriptionFilterCriteria struct {
	AppInstanceId string `json:"appInstanceId,omitempty"`
}

List of filtering criteria for the subscription. Any filtering criteria from below, which is included in the request, shall also be included in the response.

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

Hyperlink related to the resource. This shall be only included in the HTTP responses and in HTTP PUT requests.

type AdjacentAppInstanceInfo

type AdjacentAppInstanceInfo struct {
	// Identifier of the application descriptor.
	AppDId string `json:"appDId"`
	// It specifies the communication interface of application instance.
	AppInstanceCommLink []CommunicationInterface `json:"appInstanceCommLink"`
	// Identifier of the application instance.
	AppInstanceId      string              `json:"appInstanceId"`
	MecHostInformation *MecHostInformation `json:"mecHostInformation,omitempty"`
	// dentifier of the application instance that registers to the AMS, which is instantiated from the application descriptor identified by the attribute \"appDId\".
	RegisteredInstanceId string `json:"registeredInstanceId,omitempty"`
}

type AmsiApiService

type AmsiApiService service

func (*AmsiApiService) AppMobilityServiceByIdDELETE

func (a *AmsiApiService) AppMobilityServiceByIdDELETE(ctx context.Context, appMobilityServiceId string) (*http.Response, error)

AmsiApiService deregister the individual application mobility service

deregister the individual application mobility service
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param appMobilityServiceId It uniquely identifies the created individual application mobility service

func (*AmsiApiService) AppMobilityServiceByIdGET

func (a *AmsiApiService) AppMobilityServiceByIdGET(ctx context.Context, appMobilityServiceId string) (RegistrationInfo, *http.Response, error)

AmsiApiService Retrieve information about this individual application mobility service Retrieve information about this individual application mobility service

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param appMobilityServiceId It uniquely identifies the created individual application mobility service

@return RegistrationInfo

func (*AmsiApiService) AppMobilityServiceByIdPUT

func (a *AmsiApiService) AppMobilityServiceByIdPUT(ctx context.Context, body RegistrationInfo, appMobilityServiceId string) (RegistrationInfo, *http.Response, error)

AmsiApiService update the existing individual application mobility service

update the existing individual application mobility service
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param body
* @param appMobilityServiceId It uniquely identifies the created individual application mobility service

@return RegistrationInfo

func (*AmsiApiService) AppMobilityServiceGET

func (a *AmsiApiService) AppMobilityServiceGET(ctx context.Context, localVarOptionals *AppMobilityServiceGETOpts) ([]RegistrationInfo, *http.Response, error)

func (*AmsiApiService) AppMobilityServicePOST

func (a *AmsiApiService) AppMobilityServicePOST(ctx context.Context, body RegistrationInfo) (RegistrationInfo, *http.Response, error)

AmsiApiService Create a new application mobility service for the service requester. Create a new application mobility service for the service requester.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body Application mobility service to be created

@return RegistrationInfo

func (*AmsiApiService) Mec011AppTerminationPOST

func (a *AmsiApiService) Mec011AppTerminationPOST(ctx context.Context, body AppTerminationNotification) (*http.Response, error)

AmsiApiService MEC011 Application Termination notification for self termination Terminates itself.

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

func (*AmsiApiService) SubByIdDELETE

func (a *AmsiApiService) SubByIdDELETE(ctx context.Context, subscriptionId string) (*http.Response, error)

AmsiApiService cancel the existing individual subscription cancel the existing individual subscription

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param subscriptionId Refers to created subscription, where the AMS API allocates a unique resource name for this subscription

func (*AmsiApiService) SubByIdGET

func (a *AmsiApiService) SubByIdGET(ctx context.Context, subscriptionId string) (InlineSubscription, *http.Response, error)

AmsiApiService Retrieve information about this subscription. Retrieve information about this subscription.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param subscriptionId Refers to created subscription, where the AMS API allocates a unique resource name for this subscription

@return InlineSubscription

func (*AmsiApiService) SubByIdPUT

func (a *AmsiApiService) SubByIdPUT(ctx context.Context, body InlineSubscription, subscriptionId string) (InlineSubscription, *http.Response, error)

AmsiApiService update the existing individual subscription. update the existing individual subscription.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body
  • @param subscriptionId Refers to created subscription, where the AMS API allocates a unique resource name for this subscription

@return InlineSubscription

func (*AmsiApiService) SubGET

func (a *AmsiApiService) SubGET(ctx context.Context, subscriptionType string) (SubscriptionLinkList, *http.Response, error)

AmsiApiService Retrieve information about the subscriptions for this requestor. Retrieve information about the subscriptions for this requestor.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param subscriptionType Query parameter to filter on a specific subscription type. Permitted values: mobility_proc or adj_app_info

@return SubscriptionLinkList

func (*AmsiApiService) SubPOST

AmsiApiService Create a new subscription to Application Mobility Service notifications. Create a new subscription to Application Mobility Service notifications.

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

@return InlineSubscription

type AppMobilityServiceGETOpts

type AppMobilityServiceGETOpts struct {
	Filter         optional.String
	AllFields      optional.String
	Fields         optional.String
	ExcludeFields  optional.String
	ExcludeDefault optional.String
}

type AppMobilityServiceLevel

type AppMobilityServiceLevel string

AppMobilityServiceLevel : This attribute provides an option for the application instance (server) to communicate with the application client before relocating this application instance to another MEC host.

const (
	NOT_ALLOWED_AppMobilityServiceLevel          AppMobilityServiceLevel = "APP_MOBILITY_NOT_ALLOWED"
	WITH_CONFIRMATION_AppMobilityServiceLevel    AppMobilityServiceLevel = "APP_MOBILITY_WITH_CONFIRMATION"
	WITHOUT_CONFIRMATION_AppMobilityServiceLevel AppMobilityServiceLevel = "APP_MOBILITY_WITHOUT_CONFIRMATION"
)

List of AppMobilityServiceLevel

type AppTerminationNotification

type AppTerminationNotification struct {
	// Shall be set to AppTerminationNotification.
	NotificationType string               `json:"notificationType"`
	OperationAction  *OperationActionType `json:"operationAction"`
	// Maximum timeout value in seconds for graceful termination or graceful stop of an application instance.
	MaxGracefulTimeout int32                            `json:"maxGracefulTimeout"`
	Links              *AppTerminationNotificationLinks `json:"_links"`
}

This type represents the information that the MEC platform notifies the subscribed application instance about the corresponding application instance termination/stop.

type AppTerminationNotificationLinks struct {
	Subscription       *LinkType `json:"subscription"`
	ConfirmTermination *LinkType `json:"confirmTermination,omitempty"`
}

type AssociateId

type AssociateId struct {
	Type_ *AssociateIdType `json:"type,omitempty"`
	// Value for the identifier.
	Value string `json:"value,omitempty"`
}

type AssociateIdType

type AssociateIdType string

AssociateIdType : Numeric value (0-255) corresponding to specified type of identifier

const (
	UE_I_PV4_ADDRESS_AssociateIdType AssociateIdType = "UE_IPv4_ADDRESS"
	UE_IPV6_ADDRESS_AssociateIdType  AssociateIdType = "UE_IPV6_ADDRESS"
	NATED_IP_ADDRESS_AssociateIdType AssociateIdType = "NATED_IP_ADDRESS"
	GTP_TEID_AssociateIdType         AssociateIdType = "GTP_TEID"
)

List of AssociateIdType

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 CommunicationInterface

type CommunicationInterface struct {
	IpAddresses []CommunicationInterfaceIpAddresses `json:"ipAddresses,omitempty"`
}

type CommunicationInterfaceIpAddresses

type CommunicationInterfaceIpAddresses struct {
	Host string `json:"host"`
	Port int32  `json:"port"`
}

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 ContextTransferState

type ContextTransferState string

ContextTransferState : If present, it represents the state of transferring the user context to another application instance.

const (
	NOT_TRANSFERRED_ContextTransferState                 ContextTransferState = "NOT_TRANSFERRED"
	USER_CONTEXT_TRANSFER_COMPLETED_ContextTransferState ContextTransferState = "USER_CONTEXT_TRANSFER_COMPLETED"
)

List of ContextTransferState

type ExpiryNotification

type ExpiryNotification struct {
	// Shall be set to \"ExpiryNotification\".
	NotificationType string     `json:"notificationType"`
	TimeStamp        *TimeStamp `json:"timeStamp,omitempty"`
	Links            *Link      `json:"_links"`
	ExpiryDeadline   *TimeStamp `json:"expiryDeadline"`
}

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 InlineNotification

type InlineNotification struct {
}

type InlineSubscription

type InlineSubscription struct {
	/* Discriminator */
	SubscriptionType string `json:"subscriptionType"`

	/* Common */
	Links                   *MobilityProcedureSubscriptionLinks `json:"_links,omitempty"`
	CallbackReference       string                              `json:"callbackReference"`
	RequestTestNotification bool                                `json:"requestTestNotification,omitempty"`
	WebsockNotifConfig      *WebsockNotifConfig                 `json:"websockNotifConfig,omitempty"`
	ExpiryDeadline          *TimeStamp                          `json:"expiryDeadline,omitempty"`

	/* MobilityProcedureSubscription */
	FilterCriteria *MobilityProcedureSubscriptionFilterCriteria `json:"filterCriteria"`
}

func ConvertAdjacentAppInfoSubscriptionToInlineSubscription

func ConvertAdjacentAppInfoSubscriptionToInlineSubscription(src *AdjacentAppInfoSubscription) *InlineSubscription

func ConvertMobilityProcedureSubscriptionToInlineSubscription

func ConvertMobilityProcedureSubscriptionToInlineSubscription(src *MobilityProcedureSubscription) *InlineSubscription
type Link struct {
	Subscription *LinkType `json:"subscription"`
}

Object containing hyperlinks related to the resource.

type LinkType

type LinkType struct {
	// The URI referring to the subscription.
	Href string `json:"href"`
}

'This data type represents a type of link'

type MecHostInformation

type MecHostInformation struct {
	// Human-readable name of MEC host.
	HostName string                  `json:"hostName,omitempty"`
	HostId   *map[string]interface{} `json:"hostId"`
}

type MobilityProcedureNotification

type MobilityProcedureNotification struct {
	// Shall be set to \"MobilityProcedureNotification\".
	NotificationType string     `json:"notificationType"`
	TimeStamp        *TimeStamp `json:"timeStamp,omitempty"`
	// 1 to N identifiers to associate the information for specific
	AssociateId    []AssociateId                               `json:"associateId"`
	MobilityStatus *MobilityStatus                             `json:"mobilityStatus"`
	TargetAppInfo  *MobilityProcedureNotificationTargetAppInfo `json:"targetAppInfo,omitempty"`
	Links          *Link                                       `json:"_links"`
}

type MobilityProcedureNotificationTargetAppInfo

type MobilityProcedureNotificationTargetAppInfo struct {
	// Identifiers of the target application instance.
	AppInstanceId string                  `json:"appInstanceId"`
	CommInterface *CommunicationInterface `json:"commInterface,omitempty"`
}

type MobilityProcedureSubscription

type MobilityProcedureSubscription struct {
	Links *MobilityProcedureSubscriptionLinks `json:"_links,omitempty"`
	// URI selected by the service consumer to receive notifications on the subscribed Application Mobility Service. This shall be included both in the request and in response.
	CallbackReference string `json:"callbackReference,omitempty"`
	// Shall be set to TRUE by the service consumer to request a test notification via HTTP on the callbackReference URI, specified in ETSI GS MEC 009, as described in clause 6.12a.
	RequestTestNotification bool                                         `json:"requestTestNotification,omitempty"`
	WebsockNotifConfig      *WebsockNotifConfig                          `json:"websockNotifConfig,omitempty"`
	ExpiryDeadline          *TimeStamp                                   `json:"expiryDeadline,omitempty"`
	FilterCriteria          *MobilityProcedureSubscriptionFilterCriteria `json:"filterCriteria"`
	SubscriptionType        *SubscriptionType                            `json:"subscriptionType"`
}

type MobilityProcedureSubscriptionFilterCriteria

type MobilityProcedureSubscriptionFilterCriteria struct {
	// Identifier of the application instance that registers the Application Mobility Service.
	AppInstanceId string `json:"appInstanceId,omitempty"`
	// 0 to N identifiers to associate the information for specific UE(s) and flow(s).
	AssociateId []AssociateId `json:"associateId,omitempty"`
	// In case mobilityStatus is not included in the subscription request, the default value 1 = INTER_HOST_MOBILITY_TRIGGERED shall be used and included in the response.
	MobilityStatus []MobilityStatus `json:"mobilityStatus,omitempty"`
}

List of filtering criteria for the subscription. Any filtering criteria from below, which is included in the request, shall also be included in the response.

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

type MobilityStatus

type MobilityStatus string

MobilityStatus : Indicate the status of the UE mobility

const (
	TRIGGERED_MobilityStatus MobilityStatus = "INTERHOST_MOVEOUT_TRIGGERED"
	COMPLETED_MobilityStatus MobilityStatus = "INTERHOST_MOVEOUT_COMPLETED"
	FAILED_MobilityStatus    MobilityStatus = "INTERHOST_MOVEOUT_FAILED"
)

List of MobilityStatus

type OneOfInlineNotification

type OneOfInlineNotification struct {
	/* Discriminator */
	NotificationType string `json:"notificationType"`
}

type OneOfInlineSubscription

type OneOfInlineSubscription struct {
	/* Discriminator */
	SubscriptionType string `json:"subscriptionType"`
}

type OperationActionType

type OperationActionType string

OperationActionType : Operation that is being performed on the MEC application instance.

const (
	STOPPING_OperationActionType    OperationActionType = "STOPPING"
	TERMINATING_OperationActionType OperationActionType = "TERMINATING"
)

List of OperationActionType

type ProblemDetails

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

type RegistrationInfo

type RegistrationInfo struct {
	// The identifier of registered application mobility service. Shall be absent in POST requests, and present otherwise.
	AppMobilityServiceId string `json:"appMobilityServiceId,omitempty"`
	// If present, it specifies the device served by the application instance which is registering is registering the Application Mobility Service.
	DeviceInformation []RegistrationInfoDeviceInformation `json:"deviceInformation,omitempty"`
	// If present, it indicates the time of Application Mobility Service expiration from the time of registration accepted.The value \"0\" means infinite time, i.e. no expiration.The unit of expiry time is one second.
	ExpiryTime        int32                              `json:"expiryTime,omitempty"`
	ServiceConsumerId *RegistrationInfoServiceConsumerId `json:"serviceConsumerId"`
}

type RegistrationInfoDeviceInformation

type RegistrationInfoDeviceInformation struct {
	AssociateId             *AssociateId             `json:"associateId"`
	AppMobilityServiceLevel *AppMobilityServiceLevel `json:"appMobilityServiceLevel,omitempty"`
	ContextTransferState    *ContextTransferState    `json:"contextTransferState,omitempty"`
}

type RegistrationInfoServiceConsumerId

type RegistrationInfoServiceConsumerId struct {
	// If present, it represents the identifier of the application instance registering the Application Mobility Service.
	AppInstanceId string `json:"appInstanceId,omitempty"`
	// If present, it represents the identifier of the MEC platform registering the Application Mobility Service.
	MepId string `json:"mepId,omitempty"`
}

The identifier of service consumer requesting the application mobility service, i.e. either the application instance ID or the MEC platform ID.

type SubscriptionLinkList struct {
	Links *SubscriptionLinkListLinks `json:"_links"`
}
type SubscriptionLinkListLinks struct {
	Self *LinkType `json:"self"`
	// The service consumer’s subscriptions.
	Subscription []SubscriptionLinkListSubscription `json:"subscription,omitempty"`
}

List of hyperlinks related to the resource.

type SubscriptionLinkListSubscription

type SubscriptionLinkListSubscription struct {
	// The URI referring to the subscription.
	Href             string            `json:"href"`
	SubscriptionType *SubscriptionType `json:"subscriptionType"`
}

type SubscriptionType

type SubscriptionType string
const (
	MOBILITY_PROCEDURE_SUBSCRIPTION_SubscriptionType SubscriptionType = "MobilityProcedureSubscription"
	ADJACENT_APP_INFO_SUBSCRIPTION_SubscriptionType  SubscriptionType = "AdjacentAppInfoSubscription"
)

List of SubscriptionType

type TestNotification

type TestNotification struct {
	// Shall be set to \"TestNotification\".
	NotificationType string                 `json:"notificationType"`
	Links            *TestNotificationLinks `json:"_links"`
}
type TestNotificationLinks struct {
	Subscription *LinkType `json:"subscription"`
}

Hyperlink related to the resource.

type TimeStamp

type TimeStamp struct {
	// 'The seconds part of the Time. Time is defined as Unix-time since January 1, 1970, 00:00:00 UTC.'
	Seconds int32 `json:"seconds"`
	// 'The nanoseconds part of the Time. Time is defined as Unix-time since January 1, 1970, 00:00:00 UTC.'
	NanoSeconds int32 `json:"nanoSeconds"`
}

'This data type represents the time stamp as Unix-time since January 1, 1970, 00:00:00 UTC'

type UnsupportedApiService

type UnsupportedApiService service

func (*UnsupportedApiService) AdjAppInstGET

func (a *UnsupportedApiService) AdjAppInstGET(ctx context.Context, localVarOptionals *AdjAppInstGETOpts) ([]AdjacentAppInstanceInfo, *http.Response, error)

func (*UnsupportedApiService) AppMobilityServiceDerPOST

func (a *UnsupportedApiService) AppMobilityServiceDerPOST(ctx context.Context, appMobilityServiceId string) (*http.Response, error)

UnsupportedApiService deregister the individual application mobility service

deregister the individual application mobility service
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param appMobilityServiceId It uniquely identifies the created individual application mobility service

func (*UnsupportedApiService) NotificationPOST

func (a *UnsupportedApiService) NotificationPOST(ctx context.Context, body InlineNotification) (*http.Response, error)

UnsupportedApiService delivers a notification from the AMS resource to the subscriber delivers a notification from the AMS resource to the subscriber

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

type WebsockNotifConfig

type WebsockNotifConfig struct {
	// Set by AMS to indicate to the service consumer the Websocket URI to be used for delivering notifications.
	WebsocketUri string `json:"websocketUri,omitempty"`
	// Set to true by the service consumer to indicate that Websocket delivery is requested.
	RequestWebsocketUri bool `json:"requestWebsocketUri,omitempty"`
}

Source Files

Jump to

Keyboard shortcuts

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