github.com/free5gc/openapi@v1.0.8/Nsmf_PDUSession/client.go (about)

     1  //go:build !debug
     2  // +build !debug
     3  
     4  /*
     5   * Nsmf_PDUSession
     6   *
     7   * SMF PDU Session Service
     8   *
     9   * API version: 1.0.0
    10   * Generated by: OpenAPI Generator (https://openapi-generator.tech)
    11   */
    12  
    13  package Nsmf_PDUSession
    14  
    15  // APIClient manages communication with the Nsmf_PDUSession API v1.0.0
    16  // In most cases there should be only one, shared, APIClient.
    17  type APIClient struct {
    18  	cfg    *Configuration
    19  	common service // Reuse a single struct instead of allocating one for each service on the heap.
    20  
    21  	// API Services
    22  	IndividualPDUSessionHSMFApi        *IndividualPDUSessionHSMFApiService
    23  	IndividualSMContextApi             *IndividualSMContextApiService
    24  	IndividualSMContextNotificationApi *IndividualSMContextNotificationApiService
    25  	PDUSessionsCollectionApi           *PDUSessionsCollectionApiService
    26  	SMContextsCollectionApi            *SMContextsCollectionApiService
    27  }
    28  
    29  type service struct {
    30  	client *APIClient
    31  }
    32  
    33  // NewAPIClient creates a new API client. Requires a userAgent string describing your application.
    34  // optionally a custom http.Client to allow for advanced features such as caching.
    35  func NewAPIClient(cfg *Configuration) *APIClient {
    36  	c := &APIClient{}
    37  	c.cfg = cfg
    38  	c.common.client = c
    39  
    40  	// API Services
    41  	c.IndividualPDUSessionHSMFApi = (*IndividualPDUSessionHSMFApiService)(&c.common)
    42  	c.IndividualSMContextNotificationApi = (*IndividualSMContextNotificationApiService)(&c.common)
    43  	c.IndividualSMContextApi = (*IndividualSMContextApiService)(&c.common)
    44  	c.PDUSessionsCollectionApi = (*PDUSessionsCollectionApiService)(&c.common)
    45  	c.SMContextsCollectionApi = (*SMContextsCollectionApiService)(&c.common)
    46  
    47  	return c
    48  }