/*
 * nf_profile.h
 *
 * Information of an NF Instance registered in the NRF
 */

#ifndef _OpenAPI_nf_profile_H_
#define _OpenAPI_nf_profile_H_

#include <string.h>
#include "third-party/cjson/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
typedef struct OpenAPI_nf_profile_s OpenAPI_nf_profile_t;
#include "aanf_info.h"
#include "adm_info.h"
#include "adrf_info.h"
#include "aiotf_info.h"
#include "amf_info.h"
#include "ausf_info.h"
#include "bsf_info.h"
#include "chf_info.h"
#include "collocated_nf_instance.h"
#include "dccf_info.h"
#include "dcsf_info.h"
#include "default_notification_subscription.h"
#include "easdf_info.h"
#include "ext_snssai.h"
#include "gmlc_info.h"
#include "hss_info.h"
#include "imsas_info.h"
#include "iwmsc_info.h"
#include "lmf_info.h"
#include "mb_smf_info.h"
#include "mb_upf_info.h"
#include "mf_info.h"
#include "mfaf_info.h"
#include "mnpf_info.h"
#include "model_5_g_ddnmf_info.h"
#include "mrf_info.h"
#include "mrfp_info.h"
#include "nef_info.h"
#include "nf_service.h"
#include "nf_status.h"
#include "nf_type.h"
#include "nrf_info.h"
#include "nsacf_info.h"
#include "nssaaf_info.h"
#include "nssf_info.h"
#include "nwdaf_info.h"
#include "object.h"
#include "pcf_info.h"
#include "pcscf_info.h"
#include "plmn_id.h"
#include "plmn_id_nid.h"
#include "plmn_snssai.h"
#include "rule_set.h"
#include "scp_info.h"
#include "selection_conditions.h"
#include "sepp_info.h"
#include "smf_info.h"
#include "smsf_info.h"
#include "trust_af_info.h"
#include "tsctsf_info.h"
#include "udm_info.h"
#include "udr_info.h"
#include "udsf_info.h"
#include "upf_info.h"
#include "vendor_specific_feature.h"

#ifdef __cplusplus
extern "C" {
#endif

struct OpenAPI_nf_profile_s {
    char *nf_instance_id;
    char *nf_instance_name;
    OpenAPI_nf_type_e nf_type;
    OpenAPI_nf_status_e nf_status;
    OpenAPI_list_t *collocated_nf_instances;
    bool is_heart_beat_timer;
    int heart_beat_timer;
    OpenAPI_list_t *plmn_list;
    OpenAPI_list_t *snpn_list;
    OpenAPI_list_t *s_nssais;
    OpenAPI_list_t *per_plmn_snssai_list;
    OpenAPI_list_t *nsi_list;
    char *fqdn;
    char *inter_plmn_fqdn;
    OpenAPI_list_t *ipv4_addresses;
    OpenAPI_list_t *ipv6_addresses;
    OpenAPI_list_t *allowed_plmns;
    OpenAPI_list_t *allowed_snpns;
    OpenAPI_list_t *allowed_nf_types;
    OpenAPI_list_t *allowed_nf_domains;
    OpenAPI_list_t *allowed_nssais;
    OpenAPI_list_t* allowed_rule_set;
    bool is_priority;
    int priority;
    bool is_capacity;
    int capacity;
    bool is_load;
    int load;
    char *load_time_stamp;
    char *locality;
    OpenAPI_list_t* ext_locality;
    struct OpenAPI_udr_info_s *udr_info;
    OpenAPI_list_t* udr_info_list;
    struct OpenAPI_udm_info_s *udm_info;
    OpenAPI_list_t* udm_info_list;
    struct OpenAPI_ausf_info_s *ausf_info;
    OpenAPI_list_t* ausf_info_list;
    struct OpenAPI_amf_info_s *amf_info;
    OpenAPI_list_t* amf_info_list;
    struct OpenAPI_smf_info_s *smf_info;
    OpenAPI_list_t* smf_info_list;
    struct OpenAPI_upf_info_s *upf_info;
    OpenAPI_list_t* upf_info_list;
    struct OpenAPI_pcf_info_s *pcf_info;
    OpenAPI_list_t* pcf_info_list;
    struct OpenAPI_bsf_info_s *bsf_info;
    OpenAPI_list_t* bsf_info_list;
    struct OpenAPI_chf_info_s *chf_info;
    OpenAPI_list_t* chf_info_list;
    struct OpenAPI_nef_info_s *nef_info;
    struct OpenAPI_nrf_info_s *nrf_info;
    struct OpenAPI_udsf_info_s *udsf_info;
    OpenAPI_list_t* udsf_info_list;
    struct OpenAPI_nwdaf_info_s *nwdaf_info;
    OpenAPI_list_t* nwdaf_info_list;
    OpenAPI_list_t* pcscf_info_list;
    OpenAPI_list_t* hss_info_list;
    OpenAPI_object_t *custom_info;
    char *recovery_time;
    bool is_nf_service_persistence;
    int nf_service_persistence;
    OpenAPI_list_t *nf_services;
    OpenAPI_list_t* nf_service_list;
    bool is_nf_profile_changes_support_ind;
    int nf_profile_changes_support_ind;
    bool is_nf_profile_partial_update_changes_support_ind;
    int nf_profile_partial_update_changes_support_ind;
    bool is_nf_profile_changes_ind;
    int nf_profile_changes_ind;
    OpenAPI_list_t *default_notification_subscriptions;
    struct OpenAPI_lmf_info_s *lmf_info;
    struct OpenAPI_gmlc_info_s *gmlc_info;
    OpenAPI_list_t *nf_set_id_list;
    OpenAPI_list_t *serving_scope;
    bool is_lc_h_support_ind;
    int lc_h_support_ind;
    bool is_olc_h_support_ind;
    int olc_h_support_ind;
    OpenAPI_list_t* nf_set_recovery_time_list;
    OpenAPI_list_t* service_set_recovery_time_list;
    OpenAPI_list_t *scp_domains;
    struct OpenAPI_scp_info_s *scp_info;
    struct OpenAPI_sepp_info_s *sepp_info;
    char *vendor_id;
    OpenAPI_list_t* supported_vendor_specific_features;
    OpenAPI_list_t* aanf_info_list;
    struct OpenAPI_model_5_g_ddnmf_info_s *_5g_ddnmf_info;
    struct OpenAPI_mfaf_info_s *mfaf_info;
    OpenAPI_list_t* easdf_info_list;
    struct OpenAPI_dccf_info_s *dccf_info;
    OpenAPI_list_t* nsacf_info_list;
    OpenAPI_list_t* mb_smf_info_list;
    OpenAPI_list_t* tsctsf_info_list;
    OpenAPI_list_t* mb_upf_info_list;
    struct OpenAPI_trust_af_info_s *trust_af_info;
    struct OpenAPI_nssaaf_info_s *nssaaf_info;
    OpenAPI_list_t *hni_list;
    struct OpenAPI_iwmsc_info_s *iwmsc_info;
    struct OpenAPI_mnpf_info_s *mnpf_info;
    struct OpenAPI_smsf_info_s *smsf_info;
    OpenAPI_list_t* dcsf_info_list;
    OpenAPI_list_t* mrf_info_list;
    OpenAPI_list_t* mrfp_info_list;
    OpenAPI_list_t* mf_info_list;
    OpenAPI_list_t* adrf_info_list;
    struct OpenAPI_selection_conditions_s *selection_conditions;
    bool is_canary_release;
    int canary_release;
    bool is_exclusive_canary_release_selection;
    int exclusive_canary_release_selection;
    char *shared_profile_data_id;
    char *shutdown_time;
    OpenAPI_list_t *supported_rcfs;
    bool is_canary_precedence_over_preferred;
    int canary_precedence_over_preferred;
    struct OpenAPI_imsas_info_s *imsas_info;
    OpenAPI_list_t* aiotf_info_list;
    struct OpenAPI_nssf_info_s *nssf_info;
    struct OpenAPI_adm_info_s *adm_info;
};

OpenAPI_nf_profile_t *OpenAPI_nf_profile_create(
    char *nf_instance_id,
    char *nf_instance_name,
    OpenAPI_nf_type_e nf_type,
    OpenAPI_nf_status_e nf_status,
    OpenAPI_list_t *collocated_nf_instances,
    bool is_heart_beat_timer,
    int heart_beat_timer,
    OpenAPI_list_t *plmn_list,
    OpenAPI_list_t *snpn_list,
    OpenAPI_list_t *s_nssais,
    OpenAPI_list_t *per_plmn_snssai_list,
    OpenAPI_list_t *nsi_list,
    char *fqdn,
    char *inter_plmn_fqdn,
    OpenAPI_list_t *ipv4_addresses,
    OpenAPI_list_t *ipv6_addresses,
    OpenAPI_list_t *allowed_plmns,
    OpenAPI_list_t *allowed_snpns,
    OpenAPI_list_t *allowed_nf_types,
    OpenAPI_list_t *allowed_nf_domains,
    OpenAPI_list_t *allowed_nssais,
    OpenAPI_list_t* allowed_rule_set,
    bool is_priority,
    int priority,
    bool is_capacity,
    int capacity,
    bool is_load,
    int load,
    char *load_time_stamp,
    char *locality,
    OpenAPI_list_t* ext_locality,
    OpenAPI_udr_info_t *udr_info,
    OpenAPI_list_t* udr_info_list,
    OpenAPI_udm_info_t *udm_info,
    OpenAPI_list_t* udm_info_list,
    OpenAPI_ausf_info_t *ausf_info,
    OpenAPI_list_t* ausf_info_list,
    OpenAPI_amf_info_t *amf_info,
    OpenAPI_list_t* amf_info_list,
    OpenAPI_smf_info_t *smf_info,
    OpenAPI_list_t* smf_info_list,
    OpenAPI_upf_info_t *upf_info,
    OpenAPI_list_t* upf_info_list,
    OpenAPI_pcf_info_t *pcf_info,
    OpenAPI_list_t* pcf_info_list,
    OpenAPI_bsf_info_t *bsf_info,
    OpenAPI_list_t* bsf_info_list,
    OpenAPI_chf_info_t *chf_info,
    OpenAPI_list_t* chf_info_list,
    OpenAPI_nef_info_t *nef_info,
    OpenAPI_nrf_info_t *nrf_info,
    OpenAPI_udsf_info_t *udsf_info,
    OpenAPI_list_t* udsf_info_list,
    OpenAPI_nwdaf_info_t *nwdaf_info,
    OpenAPI_list_t* nwdaf_info_list,
    OpenAPI_list_t* pcscf_info_list,
    OpenAPI_list_t* hss_info_list,
    OpenAPI_object_t *custom_info,
    char *recovery_time,
    bool is_nf_service_persistence,
    int nf_service_persistence,
    OpenAPI_list_t *nf_services,
    OpenAPI_list_t* nf_service_list,
    bool is_nf_profile_changes_support_ind,
    int nf_profile_changes_support_ind,
    bool is_nf_profile_partial_update_changes_support_ind,
    int nf_profile_partial_update_changes_support_ind,
    bool is_nf_profile_changes_ind,
    int nf_profile_changes_ind,
    OpenAPI_list_t *default_notification_subscriptions,
    OpenAPI_lmf_info_t *lmf_info,
    OpenAPI_gmlc_info_t *gmlc_info,
    OpenAPI_list_t *nf_set_id_list,
    OpenAPI_list_t *serving_scope,
    bool is_lc_h_support_ind,
    int lc_h_support_ind,
    bool is_olc_h_support_ind,
    int olc_h_support_ind,
    OpenAPI_list_t* nf_set_recovery_time_list,
    OpenAPI_list_t* service_set_recovery_time_list,
    OpenAPI_list_t *scp_domains,
    OpenAPI_scp_info_t *scp_info,
    OpenAPI_sepp_info_t *sepp_info,
    char *vendor_id,
    OpenAPI_list_t* supported_vendor_specific_features,
    OpenAPI_list_t* aanf_info_list,
    OpenAPI_model_5_g_ddnmf_info_t *_5g_ddnmf_info,
    OpenAPI_mfaf_info_t *mfaf_info,
    OpenAPI_list_t* easdf_info_list,
    OpenAPI_dccf_info_t *dccf_info,
    OpenAPI_list_t* nsacf_info_list,
    OpenAPI_list_t* mb_smf_info_list,
    OpenAPI_list_t* tsctsf_info_list,
    OpenAPI_list_t* mb_upf_info_list,
    OpenAPI_trust_af_info_t *trust_af_info,
    OpenAPI_nssaaf_info_t *nssaaf_info,
    OpenAPI_list_t *hni_list,
    OpenAPI_iwmsc_info_t *iwmsc_info,
    OpenAPI_mnpf_info_t *mnpf_info,
    OpenAPI_smsf_info_t *smsf_info,
    OpenAPI_list_t* dcsf_info_list,
    OpenAPI_list_t* mrf_info_list,
    OpenAPI_list_t* mrfp_info_list,
    OpenAPI_list_t* mf_info_list,
    OpenAPI_list_t* adrf_info_list,
    OpenAPI_selection_conditions_t *selection_conditions,
    bool is_canary_release,
    int canary_release,
    bool is_exclusive_canary_release_selection,
    int exclusive_canary_release_selection,
    char *shared_profile_data_id,
    char *shutdown_time,
    OpenAPI_list_t *supported_rcfs,
    bool is_canary_precedence_over_preferred,
    int canary_precedence_over_preferred,
    OpenAPI_imsas_info_t *imsas_info,
    OpenAPI_list_t* aiotf_info_list,
    OpenAPI_nssf_info_t *nssf_info,
    OpenAPI_adm_info_t *adm_info
);
void OpenAPI_nf_profile_free(OpenAPI_nf_profile_t *nf_profile);
OpenAPI_nf_profile_t *OpenAPI_nf_profile_parseFromJSON(cJSON *nf_profileJSON);
cJSON *OpenAPI_nf_profile_convertToJSON(OpenAPI_nf_profile_t *nf_profile);
OpenAPI_nf_profile_t *OpenAPI_nf_profile_copy(OpenAPI_nf_profile_t *dst, OpenAPI_nf_profile_t *src);

#ifdef __cplusplus
}
#endif

#endif /* _OpenAPI_nf_profile_H_ */

