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

     1  /*
     2   * Nudm_EE
     3   *
     4   * Nudm Event Exposure Service
     5   *
     6   * API version: 1.0.1
     7   * Generated by: OpenAPI Generator (https://openapi-generator.tech)
     8   */
     9  
    10  package Nudm_EventExposure
    11  
    12  // APIClient manages communication with the Nudm_EE API v1.0.1
    13  // In most cases there should be only one, shared, APIClient.
    14  type APIClient struct {
    15  	cfg    *Configuration
    16  	common service // Reuse a single struct instead of allocating one for each service on the heap.
    17  
    18  	// API Services
    19  	CreateEESubscriptionApi *CreateEESubscriptionApiService
    20  	DeleteEESubscriptionApi *DeleteEESubscriptionApiService
    21  	UpdateEESubscriptionApi *UpdateEESubscriptionApiService
    22  }
    23  
    24  type service struct {
    25  	client *APIClient
    26  }
    27  
    28  // NewAPIClient creates a new API client. Requires a userAgent string describing your application.
    29  // optionally a custom http.Client to allow for advanced features such as caching.
    30  func NewAPIClient(cfg *Configuration) *APIClient {
    31  	c := &APIClient{}
    32  	c.cfg = cfg
    33  	c.common.client = c
    34  
    35  	// API Services
    36  	c.CreateEESubscriptionApi = (*CreateEESubscriptionApiService)(&c.common)
    37  	c.DeleteEESubscriptionApi = (*DeleteEESubscriptionApiService)(&c.common)
    38  	c.UpdateEESubscriptionApi = (*UpdateEESubscriptionApiService)(&c.common)
    39  
    40  	return c
    41  }