mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 05:10:10 +00:00
Depending on the OpenAPI yaml files, fields can be marked as "nullable". Which means that the field can be either present, not present, or null. This feature is important for example in SmContextUpdateData structure, where many fields are described similar as the following: This IE shall be included for the modification .... For deleting the field, it shall contain the Null value.
95 lines
2.9 KiB
C
95 lines
2.9 KiB
C
/*
|
|
* traffic_influ_data_patch.h
|
|
*
|
|
* Represents the Traffic Influence Data to be updated in the UDR.
|
|
*/
|
|
|
|
#ifndef _OpenAPI_traffic_influ_data_patch_H_
|
|
#define _OpenAPI_traffic_influ_data_patch_H_
|
|
|
|
#include <string.h>
|
|
#include "../external/cJSON.h"
|
|
#include "../include/list.h"
|
|
#include "../include/keyValuePair.h"
|
|
#include "../include/binary.h"
|
|
#include "eth_flow_description.h"
|
|
#include "flow_info.h"
|
|
#include "network_area_info_2.h"
|
|
#include "route_to_location.h"
|
|
#include "temporal_validity.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct OpenAPI_traffic_influ_data_patch_s OpenAPI_traffic_influ_data_patch_t;
|
|
typedef struct OpenAPI_traffic_influ_data_patch_s {
|
|
char *up_path_chg_notif_corre_id;
|
|
bool is_app_relo_ind;
|
|
int app_relo_ind;
|
|
OpenAPI_list_t *eth_traffic_filters;
|
|
OpenAPI_list_t *traffic_filters;
|
|
OpenAPI_list_t *traffic_routes;
|
|
bool is_traff_corre_ind;
|
|
int traff_corre_ind;
|
|
char *valid_start_time;
|
|
char *valid_end_time;
|
|
bool is_temp_validities_null;
|
|
OpenAPI_list_t *temp_validities;
|
|
struct OpenAPI_network_area_info_2_s *nw_area_info;
|
|
char *up_path_chg_notif_uri;
|
|
OpenAPI_list_t *headers;
|
|
bool is_af_ack_ind;
|
|
int af_ack_ind;
|
|
bool is_addr_preser_ind;
|
|
int addr_preser_ind;
|
|
bool is_max_allowed_up_lat_null;
|
|
bool is_max_allowed_up_lat;
|
|
int max_allowed_up_lat;
|
|
bool is_sim_conn_ind;
|
|
int sim_conn_ind;
|
|
bool is_sim_conn_term_null;
|
|
bool is_sim_conn_term;
|
|
int sim_conn_term;
|
|
} OpenAPI_traffic_influ_data_patch_t;
|
|
|
|
OpenAPI_traffic_influ_data_patch_t *OpenAPI_traffic_influ_data_patch_create(
|
|
char *up_path_chg_notif_corre_id,
|
|
bool is_app_relo_ind,
|
|
int app_relo_ind,
|
|
OpenAPI_list_t *eth_traffic_filters,
|
|
OpenAPI_list_t *traffic_filters,
|
|
OpenAPI_list_t *traffic_routes,
|
|
bool is_traff_corre_ind,
|
|
int traff_corre_ind,
|
|
char *valid_start_time,
|
|
char *valid_end_time,
|
|
bool is_temp_validities_null,
|
|
OpenAPI_list_t *temp_validities,
|
|
OpenAPI_network_area_info_2_t *nw_area_info,
|
|
char *up_path_chg_notif_uri,
|
|
OpenAPI_list_t *headers,
|
|
bool is_af_ack_ind,
|
|
int af_ack_ind,
|
|
bool is_addr_preser_ind,
|
|
int addr_preser_ind,
|
|
bool is_max_allowed_up_lat_null,
|
|
bool is_max_allowed_up_lat,
|
|
int max_allowed_up_lat,
|
|
bool is_sim_conn_ind,
|
|
int sim_conn_ind,
|
|
bool is_sim_conn_term_null,
|
|
bool is_sim_conn_term,
|
|
int sim_conn_term
|
|
);
|
|
void OpenAPI_traffic_influ_data_patch_free(OpenAPI_traffic_influ_data_patch_t *traffic_influ_data_patch);
|
|
OpenAPI_traffic_influ_data_patch_t *OpenAPI_traffic_influ_data_patch_parseFromJSON(cJSON *traffic_influ_data_patchJSON);
|
|
cJSON *OpenAPI_traffic_influ_data_patch_convertToJSON(OpenAPI_traffic_influ_data_patch_t *traffic_influ_data_patch);
|
|
OpenAPI_traffic_influ_data_patch_t *OpenAPI_traffic_influ_data_patch_copy(OpenAPI_traffic_influ_data_patch_t *dst, OpenAPI_traffic_influ_data_patch_t *src);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _OpenAPI_traffic_influ_data_patch_H_ */
|
|
|