Commit 2e7c2da7 authored by Ayesha Ayub's avatar Ayesha Ayub
Browse files

update App Enablement OAS as per MEC011 v3.1.1

parent 1b42758b
Loading
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
+61 −0
Original line number Diff line number Diff line
.openapi-generator-ignore
README.md
models/app_info.proto
models/app_info_endpoint.proto
models/app_profile.proto
models/app_profile_end_pt.proto
models/app_ready_confirmation.proto
models/app_termination_confirmation.proto
models/app_termination_notification.proto
models/app_termination_notification_links.proto
models/app_termination_notification_subscription.proto
models/category_ref.proto
models/current_time.proto
models/destination_interface.proto
models/destination_interface_interface_type.proto
models/dns_rule.proto
models/dns_rule_ip_address_type.proto
models/dns_rule_state.proto
models/end_point_info_address.proto
models/end_point_info_addresses.proto
models/end_point_info_alternative.proto
models/end_point_info_fqdn.proto
models/end_point_info_uris.proto
models/feature_dependency.proto
models/link_type.proto
models/link_type_confirm_termination.proto
models/mec_app_supt_api_subscription_link_list.proto
models/mec_app_supt_api_subscription_link_list_links.proto
models/mec_app_supt_api_subscription_link_list_subscription.proto
models/operation_action_type.proto
models/problem_details.proto
models/security_info.proto
models/security_info_o_auth2_info.proto
models/security_info_o_auth2_info_grant_type.proto
models/self.proto
models/serializer_type.proto
models/service_dependency.proto
models/time_source_status.proto
models/timing_caps.proto
models/timing_caps_ntp_servers.proto
models/timing_caps_ntp_servers_authentication_option.proto
models/timing_caps_ntp_servers_ntp_server_addr_type.proto
models/timing_caps_ptp_masters.proto
models/timing_caps_time_stamp.proto
models/traffic_filter.proto
models/traffic_rule.proto
models/traffic_rule_action.proto
models/traffic_rule_filter_type.proto
models/traffic_rule_state.proto
models/transport_dependency.proto
models/transport_descriptor.proto
models/transport_type.proto
models/tunnel_info.proto
models/tunnel_info_tunnel_type.proto
services/app_confirm_ready_service.proto
services/app_confirm_termination_service.proto
services/app_dns_rules_service.proto
services/app_registrations_service.proto
services/app_subscriptions_service.proto
services/app_traffic_rules_service.proto
services/timing_service.proto
+1 −0
Original line number Diff line number Diff line
6.2.1
 No newline at end of file
+31 −0
Original line number Diff line number Diff line
# gPRC for mec011

The ETSI MEC ISG MEC011 MEC Application Support API described using OpenAPI

## Overview
These files were generated by the [OpenAPI Generator](https://openapi-generator.tech) project.

- API version: 3.1.1
- Package version: 
- Build package: org.openapitools.codegen.languages.ProtobufSchemaCodegen

## Usage

Below are some usage examples for Go and Ruby. For other languages, please refer to https://grpc.io/docs/quickstart/.

### Go
```
# assuming `protoc-gen-go` has been installed with `go get -u github.com/golang/protobuf/protoc-gen-go`
mkdir /var/tmp/go/
protoc --go_out=/var/tmp/go/ services/*
protoc --go_out=/var/tmp/go/ models/*
```

### Ruby
```
# assuming `grpc_tools_ruby_protoc` has been installed via `gem install grpc-tools`
RUBY_OUTPUT_DIR="/var/tmp/ruby/mec011"
mkdir $RUBY_OUTPUT_DIR
grpc_tools_ruby_protoc --ruby_out=$RUBY_OUTPUT_DIR --grpc_out=$RUBY_OUTPUT_DIR/lib services/*
grpc_tools_ruby_protoc --ruby_out=$RUBY_OUTPUT_DIR --grpc_out=$RUBY_OUTPUT_DIR/lib models/*
```
+58 −0
Original line number Diff line number Diff line
/*
  MEC Application Support API

  The ETSI MEC ISG MEC011 MEC Application Support API described using OpenAPI

  The version of the OpenAPI document: 3.1.1

  Contact: cti_support@etsi.org

  Generated by OpenAPI Generator: https://openapi-generator.tech
*/

syntax = "proto3";

package mec011;

import public "models/app_info_endpoint.proto";
import public "models/app_profile.proto";
import public "models/category_ref.proto";
import public "models/feature_dependency.proto";
import public "models/service_dependency.proto";

message AppInfo {

  // Name of the application. It shall be consistent with the appName in the AppD, if an AppD is available.
  string appName = 0;

  // Provider of the application. It shall be consistent with the appProvider in the AppD, if an AppD is available. See note 1.
  string appProvider = 1;

  CategoryRef appCategory = 2;

  // The application descriptor identifier. It is managed by the application provider to identify the application descriptor in a globally unique way. Shall be present if the application instance is instantiated by the MEC Management.
  string appDId = 3;

  // Identifier of the application instance. Shall be present if the application instance is instantiated by the MEC Management.
  string appInstanceId = 4;

  AppInfoEndpoint endpoint = 5;

  // Describes services a MEC application requires to run. ServiceDependency is defined in ETSI GS MEC 010-2 [4]. It shall not be provided if an AppD is available.
  repeated ServiceDependency appServiceRequired = 6;

  // Describes services a MEC application may use if available. ServiceDependency is defined in ETSI GS MEC 010-2 [4]. It shall not be provided if an AppD is available.
  repeated ServiceDependency appServiceOptional = 7;

  // Describes features a MEC application requires to run. FeatureDependency is defined in ETSI GS MEC 010-2 [4]. It shall not be provided if an AppD is available.
  repeated FeatureDependency appFeatureRequired = 8;

  // Describes features a MEC application may use if available. FeatureDependency is defined in ETSI GS MEC 010-2 [4]. It shall not be provided if an AppD is available.
  repeated FeatureDependency appFeatureOptional = 9;

  // Indicate whether the application instance is instantiated by the MEC Management. Default to FALSE if absent.
  bool isInsByMec = 10;

  AppProfile appProfile = 11;

}
Loading