open5gs/lib/sbi/openapi/model/usage_monitoring_data.h
Sukchan Lee 039b9d0aaa SBI updated
- openapi-generator version 5.2.0
- add priority/capacity/load in NFProfile/NFService
- add AllowedNfTypes in NFProfile/NFService
2021-07-16 17:02:33 +09:00

78 lines
2.4 KiB
C

/*
* usage_monitoring_data.h
*
*
*/
#ifndef _OpenAPI_usage_monitoring_data_H_
#define _OpenAPI_usage_monitoring_data_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct OpenAPI_usage_monitoring_data_s OpenAPI_usage_monitoring_data_t;
typedef struct OpenAPI_usage_monitoring_data_s {
char *um_id;
bool is_volume_threshold;
long volume_threshold;
bool is_volume_threshold_uplink;
long volume_threshold_uplink;
bool is_volume_threshold_downlink;
long volume_threshold_downlink;
bool is_time_threshold;
int time_threshold;
char *monitoring_time;
bool is_next_vol_threshold;
long next_vol_threshold;
bool is_next_vol_threshold_uplink;
long next_vol_threshold_uplink;
bool is_next_vol_threshold_downlink;
long next_vol_threshold_downlink;
bool is_next_time_threshold;
int next_time_threshold;
bool is_inactivity_time;
int inactivity_time;
OpenAPI_list_t *ex_usage_pcc_rule_ids;
} OpenAPI_usage_monitoring_data_t;
OpenAPI_usage_monitoring_data_t *OpenAPI_usage_monitoring_data_create(
char *um_id,
bool is_volume_threshold,
long volume_threshold,
bool is_volume_threshold_uplink,
long volume_threshold_uplink,
bool is_volume_threshold_downlink,
long volume_threshold_downlink,
bool is_time_threshold,
int time_threshold,
char *monitoring_time,
bool is_next_vol_threshold,
long next_vol_threshold,
bool is_next_vol_threshold_uplink,
long next_vol_threshold_uplink,
bool is_next_vol_threshold_downlink,
long next_vol_threshold_downlink,
bool is_next_time_threshold,
int next_time_threshold,
bool is_inactivity_time,
int inactivity_time,
OpenAPI_list_t *ex_usage_pcc_rule_ids
);
void OpenAPI_usage_monitoring_data_free(OpenAPI_usage_monitoring_data_t *usage_monitoring_data);
OpenAPI_usage_monitoring_data_t *OpenAPI_usage_monitoring_data_parseFromJSON(cJSON *usage_monitoring_dataJSON);
cJSON *OpenAPI_usage_monitoring_data_convertToJSON(OpenAPI_usage_monitoring_data_t *usage_monitoring_data);
OpenAPI_usage_monitoring_data_t *OpenAPI_usage_monitoring_data_copy(OpenAPI_usage_monitoring_data_t *dst, OpenAPI_usage_monitoring_data_t *src);
#ifdef __cplusplus
}
#endif
#endif /* _OpenAPI_usage_monitoring_data_H_ */