-
Notifications
You must be signed in to change notification settings - Fork 60
/
client.go
65 lines (58 loc) · 3.97 KB
/
client.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//go:build !debug
// +build !debug
/*
* Namf_Communication
*
* AMF Communication Service
*
* API version: 1.0.0
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package Namf_Communication
// APIClient manages communication with the Namf_Communication API v1.0.0
// In most cases there should be only one, shared, APIClient.
type APIClient struct {
cfg *Configuration
common service // Reuse a single struct instead of allocating one for each service on the heap.
// API Services
IndividualSubscriptionDocumentApi *IndividualSubscriptionDocumentApiService
IndividualUeContextDocumentApi *IndividualUeContextDocumentApiService
N1N2IndividualSubscriptionDocumentApi *N1N2IndividualSubscriptionDocumentApiService
N1N2MessageCollectionDocumentApi *N1N2MessageCollectionDocumentApiService
N1N2SubscriptionsCollectionForIndividualUEContextsDocumentApi *N1N2SubscriptionsCollectionForIndividualUEContextsDocumentApiService
N1N2MessageTransferStatusNotificationCallbackDocumentApi *N1N2MessageTransferStatusNotificationCallbackDocumentApiService
NonUEN2MessageNotificationIndividualSubscriptionDocumentApi *NonUEN2MessageNotificationIndividualSubscriptionDocumentApiService
NonUEN2MessagesCollectionDocumentApi *NonUEN2MessagesCollectionDocumentApiService
NonUEN2MessagesSubscriptionsCollectionDocumentApi *NonUEN2MessagesSubscriptionsCollectionDocumentApiService
SubscriptionsCollectionDocumentApi *SubscriptionsCollectionDocumentApiService
N1MessageNotifyCallbackDocumentApiServiceCallbackDocumentApi *N1MessageNotifyCallbackDocumentApiService
N2InfoNotifyCallbackDocumentApiServiceCallbackDocumentApi *N2InfoNotifyCallbackDocumentApiService
N2MessageNotifyCallbackDocumentApiServiceCallbackDocumentApi *N2MessageNotifyCallbackDocumentApiService
AmfStatusChangeCallbackDocumentApiServiceCallbackDocumentApi *AmfStatusChangeCallbackDocumentApiService
}
type service struct {
client *APIClient
}
// NewAPIClient creates a new API client. Requires a userAgent string describing your application.
// optionally a custom http.Client to allow for advanced features such as caching.
func NewAPIClient(cfg *Configuration) *APIClient {
c := &APIClient{}
c.cfg = cfg
c.common.client = c
// API Services
c.IndividualSubscriptionDocumentApi = (*IndividualSubscriptionDocumentApiService)(&c.common)
c.IndividualUeContextDocumentApi = (*IndividualUeContextDocumentApiService)(&c.common)
c.N1N2IndividualSubscriptionDocumentApi = (*N1N2IndividualSubscriptionDocumentApiService)(&c.common)
c.N1N2MessageCollectionDocumentApi = (*N1N2MessageCollectionDocumentApiService)(&c.common)
c.N1N2SubscriptionsCollectionForIndividualUEContextsDocumentApi = (*N1N2SubscriptionsCollectionForIndividualUEContextsDocumentApiService)(&c.common)
c.N1N2MessageTransferStatusNotificationCallbackDocumentApi = (*N1N2MessageTransferStatusNotificationCallbackDocumentApiService)(&c.common)
c.NonUEN2MessageNotificationIndividualSubscriptionDocumentApi = (*NonUEN2MessageNotificationIndividualSubscriptionDocumentApiService)(&c.common)
c.NonUEN2MessagesCollectionDocumentApi = (*NonUEN2MessagesCollectionDocumentApiService)(&c.common)
c.NonUEN2MessagesSubscriptionsCollectionDocumentApi = (*NonUEN2MessagesSubscriptionsCollectionDocumentApiService)(&c.common)
c.SubscriptionsCollectionDocumentApi = (*SubscriptionsCollectionDocumentApiService)(&c.common)
c.N1MessageNotifyCallbackDocumentApiServiceCallbackDocumentApi = (*N1MessageNotifyCallbackDocumentApiService)(&c.common)
c.N2InfoNotifyCallbackDocumentApiServiceCallbackDocumentApi = (*N2InfoNotifyCallbackDocumentApiService)(&c.common)
c.N2MessageNotifyCallbackDocumentApiServiceCallbackDocumentApi = (*N2MessageNotifyCallbackDocumentApiService)(&c.common)
c.AmfStatusChangeCallbackDocumentApiServiceCallbackDocumentApi = (*AmfStatusChangeCallbackDocumentApiService)(&c.common)
return c
}