Commit bedfe314 authored by YannGarcia's avatar YannGarcia
Browse files

Update with new MEC-030 OpenAPI file

parent 076bdea8
Loading
Loading
Loading
Loading
+13 −10
Original line number Diff line number Diff line
# Go API client for swagger

V2X Information Service is AdvantEDGE's implementation of [ETSI MEC ISG MEC030 V2XI API](http://www.etsi.org/deliver/etsi_gs/MEC/001_099/030/02.02.01_60/gs_MEC030v020201p.pdf) <p>[Copyright (c) ETSI 2017](https://forge.etsi.org/etsi-forge-copyright-notice.txt) <p>**Micro-service**<br>[meep-vis](https://github.com/InterDigitalInc/AdvantEDGE/tree/master/go-apps/meep-vis) <p>**Type & Usage**<br>Edge Service used by edge applications that want to get information about radio conditions in the network <p>**Note**<br>AdvantEDGE supports a selected subset of RNI API endpoints (see below) and a subset of subscription types.
ETSI GS MEC 030 V2X Information Service API described using OpenAPI.

## Overview
This API client was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project.  By using the [swagger-spec](https://github.com/swagger-api/swagger-spec) from a remote server, you can easily generate an API client.
@@ -8,6 +8,7 @@ This API client was generated by the [swagger-codegen](https://github.com/swagge
- API version: 2.2.1
- Package version: 1.0.0
- Build package: io.swagger.codegen.v3.generators.go.GoClientCodegen
For more information, please visit [https://forge.etsi.org/rep/mec/gs030-vis-api](https://forge.etsi.org/rep/mec/gs030-vis-api)

## Installation
Put the package under your project folder and add the following in import:
@@ -17,11 +18,11 @@ import "./swagger"

## Documentation for API Endpoints

All URIs are relative to *https://localhost/sandboxname/vis/v2*
All URIs are relative to *https://localhost/vis/v2*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*QoSApi* | [**Mec011AppTerminationPOST**](docs/QoSApi.md#mec011appterminationpost) | **Post** /notifications/mec011/appTermination | MEC011 Application Termination notification for self termination
*QoSApi* | [**Mec011AppTerminationPOST**](docs/QoSApi.md#mec011appterminationpost) | **Post** /subscriptions/{subscriptionId} | MEC011 Application Termination notification for self termination
*QoSApi* | [**PredictedQosPOST**](docs/QoSApi.md#predictedqospost) | **Post** /provide_predicted_qos | Request the predicted QoS correspondent to potential routes of a vehicular UE.
*UnsupportedApi* | [**IndividualSubscriptionDELETE**](docs/UnsupportedApi.md#individualsubscriptiondelete) | **Delete** /subscriptions/{subscriptionId} | Used to cancel the existing subscription.
*UnsupportedApi* | [**IndividualSubscriptionGET**](docs/UnsupportedApi.md#individualsubscriptionget) | **Get** /subscriptions/{subscriptionId} | Retrieve information about this subscription.
@@ -43,9 +44,11 @@ Class | Method | HTTP request | Description
 - [Earfcn](docs/Earfcn.md)
 - [Ecgi](docs/Ecgi.md)
 - [FddInfo](docs/FddInfo.md)
 - [GeoArea](docs/GeoArea.md)
 - [LinkType](docs/LinkType.md)
 - [Links](docs/Links.md)
 - [LocationInfo](docs/LocationInfo.md)
 - [LocationInfoGeoArea](docs/LocationInfoGeoArea.md)
 - [MsgType](docs/MsgType.md)
 - [OneOfbody](docs/OneOfbody.md)
 - [OneOfbody1](docs/OneOfbody1.md)
 - [OperationActionType](docs/OperationActionType.md)
@@ -53,26 +56,28 @@ Class | Method | HTTP request | Description
 - [Pc5ProvisioningInfoInner](docs/Pc5ProvisioningInfoInner.md)
 - [Plmn](docs/Plmn.md)
 - [PredictedQos](docs/PredictedQos.md)
 - [PredictedQosRoutes](docs/PredictedQosRoutes.md)
 - [ProblemDetails](docs/ProblemDetails.md)
 - [ProvChgPc5Notification](docs/ProvChgPc5Notification.md)
 - [ProvChgPc5Subscription](docs/ProvChgPc5Subscription.md)
 - [ProvChgPc5SubscriptionFilterCriteria](docs/ProvChgPc5SubscriptionFilterCriteria.md)
 - [ProvChgPc5SubscriptionLinks](docs/ProvChgPc5SubscriptionLinks.md)
 - [ProvChgUuMbmsNotification](docs/ProvChgUuMbmsNotification.md)
 - [ProvChgUuMbmsSubscription](docs/ProvChgUuMbmsSubscription.md)
 - [ProvChgUuMbmsSubscriptionFilterCriteria](docs/ProvChgUuMbmsSubscriptionFilterCriteria.md)
 - [ProvChgUuUniNotification](docs/ProvChgUuUniNotification.md)
 - [ProvChgUuUniSubscription](docs/ProvChgUuUniSubscription.md)
 - [ProvChgUuUniSubscriptionFilterCriteria](docs/ProvChgUuUniSubscriptionFilterCriteria.md)
 - [RoutesInner](docs/RoutesInner.md)
 - [SdpInfo](docs/SdpInfo.md)
 - [SubscriptionLinkList](docs/SubscriptionLinkList.md)
 - [SubscriptionLinkListLinks](docs/SubscriptionLinkListLinks.md)
 - [SubscriptionLinkListLinksInner](docs/SubscriptionLinkListLinksInner.md)
 - [SystemInformationBlockType21](docs/SystemInformationBlockType21.md)
 - [TddInfo](docs/TddInfo.md)
 - [TestNotification](docs/TestNotification.md)
 - [TestNotificationLinks](docs/TestNotificationLinks.md)
 - [TimeStamp](docs/TimeStamp.md)
 - [Tmgi](docs/Tmgi.md)
 - [TransmissionBandwidth](docs/TransmissionBandwidth.md)
 - [TransmissionBandwidthTransmissionBandwidth](docs/TransmissionBandwidthTransmissionBandwidth.md)
 - [UuMbmsNeighbourCellInfo](docs/UuMbmsNeighbourCellInfo.md)
 - [UuMbmsProvisioningInfoInner](docs/UuMbmsProvisioningInfoInner.md)
 - [UuUniNeighbourCellInfo](docs/UuUniNeighbourCellInfo.md)
@@ -84,8 +89,6 @@ Class | Method | HTTP request | Description
 - [V2xMsgSubscription](docs/V2xMsgSubscription.md)
 - [V2xMsgSubscriptionFilterCriteria](docs/V2xMsgSubscriptionFilterCriteria.md)
 - [V2xServerUsd](docs/V2xServerUsd.md)
 - [V2xServerUsdSdpInfo](docs/V2xServerUsdSdpInfo.md)
 - [V2xServerUsdTmgi](docs/V2xServerUsdTmgi.md)
 - [WebsockNotifConfig](docs/WebsockNotifConfig.md)

## Documentation For Authorization
@@ -94,4 +97,4 @@ Class | Method | HTTP request | Description

## Author

AdvantEDGE@InterDigital.com
cti_support@etsi.org
+661 −640

File changed.

Preview size limit exceeded, changes collapsed.

+4 −3
Original line number Diff line number Diff line

/*
 * AdvantEDGE V2X Information Service REST API
 * ETSI GS MEC 030 V2X Information Service API
 *
 * V2X Information Service is AdvantEDGE's implementation of [ETSI MEC ISG MEC030 V2XI API](http://www.etsi.org/deliver/etsi_gs/MEC/001_099/030/02.02.01_60/gs_MEC030v020201p.pdf) <p>[Copyright (c) ETSI 2017](https://forge.etsi.org/etsi-forge-copyright-notice.txt) <p>**Micro-service**<br>[meep-vis](https://github.com/InterDigitalInc/AdvantEDGE/tree/master/go-apps/meep-vis) <p>**Type & Usage**<br>Edge Service used by edge applications that want to get information about radio conditions in the network <p>**Note**<br>AdvantEDGE supports a selected subset of RNI API endpoints (see below) and a subset of subscription types.
 * ETSI GS MEC 030 V2X Information Service API described using OpenAPI.
 *
 * API version: 2.2.1
 * Contact: AdvantEDGE@InterDigital.com
 * Contact: cti_support@etsi.org
 * Generated by: Swagger Codegen (https://github.com/client-api/client-codegen.git)
 */
package client
+9 −5
Original line number Diff line number Diff line

/*
 * AdvantEDGE V2X Information Service REST API
 * ETSI GS MEC 030 V2X Information Service API
 *
 * V2X Information Service is AdvantEDGE's implementation of [ETSI MEC ISG MEC030 V2XI API](http://www.etsi.org/deliver/etsi_gs/MEC/001_099/030/02.02.01_60/gs_MEC030v020201p.pdf) <p>[Copyright (c) ETSI 2017](https://forge.etsi.org/etsi-forge-copyright-notice.txt) <p>**Micro-service**<br>[meep-vis](https://github.com/InterDigitalInc/AdvantEDGE/tree/master/go-apps/meep-vis) <p>**Type & Usage**<br>Edge Service used by edge applications that want to get information about radio conditions in the network <p>**Note**<br>AdvantEDGE supports a selected subset of RNI API endpoints (see below) and a subset of subscription types.
 * ETSI GS MEC 030 V2X Information Service API described using OpenAPI.
 *
 * API version: 2.2.1
 * Contact: AdvantEDGE@InterDigital.com
 * Contact: cti_support@etsi.org
 * Generated by: Swagger Codegen (https://github.com/client-api/client-codegen.git)
 */
package client
@@ -15,6 +16,7 @@ import (
	"net/http"
	"net/url"
	"strings"
	"fmt"
)

// Linger please
@@ -28,9 +30,10 @@ QoSApiService 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
 * @param subscriptionId Refers to created subscription, where the VIS API allocates a unique resource name for this subscription

*/
func (a *QoSApiService) Mec011AppTerminationPOST(ctx context.Context, body AppTerminationNotification) (*http.Response, error) {
func (a *QoSApiService) Mec011AppTerminationPOST(ctx context.Context, body AppTerminationNotification, subscriptionId string) (*http.Response, error) {
	var (
		localVarHttpMethod = strings.ToUpper("Post")
		localVarPostBody   interface{}
@@ -40,7 +43,8 @@ func (a *QoSApiService) Mec011AppTerminationPOST(ctx context.Context, body AppTe
	)

	// create path and map variables
	localVarPath := a.client.cfg.BasePath + "/notifications/mec011/appTermination"
	localVarPath := a.client.cfg.BasePath + "/subscriptions/{subscriptionId}"
	localVarPath = strings.Replace(localVarPath, "{"+"subscriptionId"+"}", fmt.Sprintf("%v", subscriptionId), -1)

	localVarHeaderParams := make(map[string]string)
	localVarQueryParams := url.Values{}
+4 −4
Original line number Diff line number Diff line
/*
 * AdvantEDGE V2X Information Service REST API
 * ETSI GS MEC 030 V2X Information Service API
 *
 * V2X Information Service is AdvantEDGE's implementation of [ETSI MEC ISG MEC030 V2XI API](http://www.etsi.org/deliver/etsi_gs/MEC/001_099/030/02.02.01_60/gs_MEC030v020201p.pdf) <p>[Copyright (c) ETSI 2017](https://forge.etsi.org/etsi-forge-copyright-notice.txt) <p>**Micro-service**<br>[meep-vis](https://github.com/InterDigitalInc/AdvantEDGE/tree/master/go-apps/meep-vis) <p>**Type & Usage**<br>Edge Service used by edge applications that want to get information about radio conditions in the network <p>**Note**<br>AdvantEDGE supports a selected subset of RNI API endpoints (see below) and a subset of subscription types.
 * ETSI GS MEC 030 V2X Information Service API described using OpenAPI.
 *
 * API version: 2.2.1
 * Contact: AdvantEDGE@InterDigital.com
 * Contact: cti_support@etsi.org
 * Generated by: Swagger Codegen (https://github.com/client-api/client-codegen.git)
 */
package client
@@ -37,7 +37,7 @@ var (
	xmlCheck  = regexp.MustCompile("(?i:[application|text]/xml)")
)

// APIClient manages communication with the AdvantEDGE V2X Information Service REST API API v2.2.1
// APIClient manages communication with the ETSI GS MEC 030 V2X Information Service API API v2.2.1
// In most cases there should be only one, shared, APIClient.
type APIClient struct {
	cfg    *Configuration
Loading