package
1.18.2
Repository: https://github.com/5gcorenet/openapi.git
Documentation: pkg.go.dev

# README

Go API client for openapi_Nhss_imsSDM

Nhss Subscriber Data Management Service for IMS.
© 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC).
All rights reserved.

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.2.0-alpha.1
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import openapi_Nhss_imsSDM "github.com/GIT_USER_ID/GIT_REPO_ID/openapi_Nhss_imsSDM"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), openapi_Nhss_imsSDM.ContextServerIndex, 1)

Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), openapi_Nhss_imsSDM.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), openapi_Nhss_imsSDM.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), openapi_Nhss_imsSDM.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://example.com/nhss-ims-sdm/v1

ClassMethodHTTP requestDescription
CSLocationRetrievalApiGetLocCsDomainGet /{imsUeId}/access-data/cs-domain/location-dataRetrieve the location data in CS domain
CSRNRetrievalApiGetCsrnGet /{imsUeId}/access-data/cs-domain/csrnRetrieve the routeing number in CS domain
CSUserStateInfoRetrievalApiGetCsUserStateInfoGet /{imsUeId}/access-data/cs-domain/user-stateRetrieve the user state information in CS domain
ChargingInfoRetrievalApiGetChargingInfoGet /{imsUeId}/ims-data/profile-data/charging-infoRetrieve the charging information for to the user
DSAIRegistrationInformationApiGetDsaiInfoGet /{imsUeId}/service-data/dsaiRetrieve the DSAI information associated to an Application Server
DeleteRepositoryDataApiDeleteRepositoryDataServIndDelete /{imsUeId}/repository-data/{serviceIndication}delete the Repository Data for a Service Indication
DeleteSMSRegistrationInformationApiDeleteSmsRegistrationInfoDelete /{imsUeId}/service-data/sms-registration-infodelete the SMS registration information
IFCsRetrievalApiGetIfcsGet /{imsUeId}/ims-data/profile-data/ifcsRetrieve the Initial Filter Criteria for the associated IMS subscription
IMEISVRetrievalApiGetIMEISVInfoGet /{imsUeId}/identities/imeisvRetrieve the IMEISV information
IMSProfileDataRetrievalApiGetProfileDataGet /{imsUeId}/ims-data/profile-dataRetrieve the complete IMS profile for a given IMS public identity (and public identities in the same IRS)
IPAddressInfoRetrievalApiGetIpAddressInfoGet /{imsUeId}/access-data/ps-domain/ip-addressRetrieve the IP address information
PSLocationRetrievalApiGetLocPsDomainGet /{imsUeId}/access-data/ps-domain/location-dataRetrieve the location data in PS domain
PSUserStateInfoRetrievalApiGetPsUserStateInfoGet /{imsUeId}/access-data/ps-domain/user-stateRetrieve the user state information in PS domain
PriorityInfoRetrievalApiGetPriorityInfoGet /{imsUeId}/ims-data/profile-data/priority-levelsRetrieve the service priority levels associated to the user
ReachabilitySubscriptionDeletionApiUeReachUnsubscribeDelete /{imsUeId}/access-data/ps-domain/ue-reach-subscriptions/{subscriptionId}unsubscribe from notifications to UE reachability
ReachabilitySubscriptionModificationApiUeReachSubsModifyPatch /{imsUeId}/access-data/ps-domain/ue-reach-subscriptions/{subscriptionId}modify the subscription
ReferenceLocationInfoRetrievalApiGetReferenceLocationInfoGet /{imsUeId}/access-data/wireline-domain/reference-locationRetrieve the reference location information
RegistrationStatusRetrievalApiGetRegistrationStatusGet /{imsUeId}/ims-data/registration-statusRetrieve the registration status of a user
RepositoryDataApiGetRepositoryDataServIndGet /{imsUeId}/repository-data/{serviceIndication}Retrieve the repository data associated to an IMPU and service indication
RepositoryDataListApiGetRepositoryDataServIndListGet /{imsUeId}/repository-dataRetrieve the repository data associated to an IMPU and service indication list
RetrievalOfAssociatedIMSPrivateIdentitiesApiGetImsPrivateIdsGet /{imsUeId}/identities/private-identitiesRetrieve the associated private identities to the IMS public identity included in the service request
RetrievalOfAssociatedIMSPublicIdentitiesApiGetImsAssocIdsGet /{imsUeId}/identities/ims-associated-identitiesRetrieve the associated identities to the IMS public identity included in the service request
RetrievalOfPSIActivationStateApiGetPsiStateGet /{imsUeId}/service-data/psi-statusRetrieve the PSI activation state data
RetrievalOfSharedDataApiGetSharedDataGet /shared-dataretrieve shared data
RetrievalOfTheAssociatedMsisdnsApiGetMsisdnsGet /{imsUeId}/identities/msisdnsretrieve the Msisdns associated to requested identity
RetrievalOfTheSCSCFCapabilitiesForTheIMSSubscriptionApiGetScscfCapabilitiesGet /{imsUeId}/ims-data/location-data/scscf-capabilitiesRetrieve the S-CSCF capabilities for the associated IMS subscription
RetrievalOfTheSCSCFSelectionAssistanceInformationForTheIMSSubscriptionApiGetScscfSelectionAssistanceInfoGet /{imsUeId}/ims-data/location-data/scscf-selection-assistance-infoRetrieve the S-CSCF selection assistance info
RetrievalOfUESRVCCCapabilityAndSTNSRApiGetSrvccDataGet /{imsUeId}/srvcc-dataRetrieve the srvcc data
SDMSubscriptionCreationApiImsSdmSubscribePost /{imsUeId}/subscriptionssubscribe to notifications
SDMSubscriptionDeletionApiImsSdmUnsubscribeDelete /{imsUeId}/subscriptions/{subscriptionId}unsubscribe from notifications
SDMSubscriptionModificationApiImsSdmSubsModifyPatch /{imsUeId}/subscriptions/{subscriptionId}modify the subscription
SMSRegistrationInformationApiGetSmsRegistrationInfoGet /{imsUeId}/service-data/sms-registration-infoRetrieve the SMS registration information associated to a user
ServerNameRetrievalApiGetServerNameGet /{imsUeId}/ims-data/location-data/server-nameRetrieve the server name for the associated user
ServiceTraceInfoRetrievalApiGetServiceTraceInfoGet /{imsUeId}/ims-data/profile-data/service-level-trace-informationRetrieve the IMS service level trace information for the associated user
SubscriptionCreationForSharedDataApiSubscribeToSharedDataPost /shared-data-subscriptionssubscribe to notifications for shared data
SubscriptionDeletionForSharedDataApiUnsubscribeForSharedDataDelete /shared-data-subscriptions/{subscriptionId}unsubscribe from notifications for shared data
SubscriptionModificationApiModifySharedDataSubsPatch /shared-data-subscriptions/{subscriptionId}modify the subscription
TADSInfoRetrievalApiGetTadsInfoGet /{imsUeId}/access-data/ps-domain/tads-infoRetrieve the T-ADS information
UEIPReachabilitySubscriptionCreationApiUeReachIpSubscribePost /{imsUeId}/access-data/ps-domain/ue-reach-subscriptionssubscribe to notifications of UE reachability
UpdateDsaiStateApiUpdateDsaiStatePatch /{imsUeId}/service-data/dsaiPatch
UpdatePSIStateDataApiUpdatePsiStatePatch /{imsUeId}/service-data/psi-statusPatch
UpdateRepositoryDataApiUpdateRepositoryDataServIndPut /{imsUeId}/repository-data/{serviceIndication}Update the repository data associated to an IMPU and service indication
UpdateSMSRegistrationInfoApiUpdateSmsRegistrationInfoPut /{imsUeId}/service-data/sms-registration-infoUpdate the SMS registration information associated to a user
UpdateSRVCCDataApiUpdateSrvccDataPatch /{imsUeId}/srvcc-dataPatch

Documentation For Models

Documentation For Authorization

oAuth2ClientCredentials

  • Type: OAuth
  • Flow: application
  • Authorization URL:
  • Scopes:
  • nhss-ims-sdm: Access to the Nhss IMS Subscription Data Management API
  • nhss-ims-sdm:registration-status:read: Access to read the Registration Status resource
  • nhss-ims-sdm:profile-data:read: Access to read the Profile Data resource
  • nhss-ims-sdm:priority-levels:read: Access to read the Priority Levels resource
  • nhss-ims-sdm:ifcs:read: Access to read the Initial Filter Criteria resource
  • nhss-ims-sdm:service-level-trace-information:read: Access to read the Service Level Trace Information resource
  • nhss-ims-sdm:server-name:read: Access to read the Server Name resource
  • nhss-ims-sdm:scscf-capabilities:read: Access to read the S-CSCF Capabilities resource
  • nhss-ims-sdm:ps-domain:location-data:read: Access to read the PS-Domain Location Data resource
  • nhss-ims-sdm:ps-domain:ip-address:read: Access to read the PS-Domain IP Address resource
  • nhss-ims-sdm:ps-domain:tads-info:read: Access to read the PS-Domain TADS Info resource
  • nhss-ims-sdm:ps-domain:ue-reach-subscriptions:create: Access to create PS-Domain UE Reachability Subscriptions resources
  • nhss-ims-sdm:ps-domain:ue-reach-subscriptions:modify: Access to update/delete a PS-Domain UE Reachability Subscription resource
  • nhss-ims-sdm:ps-domain:user-state:read: Access to read the PS-Domain User State resource
  • nhss-ims-sdm:cs-domain:location-data:read: Access to read the CS-Domain Location Data resource
  • nhss-ims-sdm:cs-domain:user-state:read: Access to read the CS-Domain User State resource
  • nhss-ims-sdm:cs-domain:csrn:read: Access to read the CS-Domain CSRN resource
  • nhss-ims-sdm:wireline-domain:reference-location:read: Access to read the Wireline-Domain Reference Location resource
  • nhss-ims-sdm:repository-data:modify: Access to create/update/delete the Repository Data resource
  • nhss-ims-sdm:repository-data:read: Access to read the Repository Data resource
  • nhss-ims-sdm:identities:read: Access to read the Identities resource
  • nhss-ims-sdm:srvcc:read: Access to read the SRVCC resource
  • nhss-ims-sdm:srvcc:modify: Acess to update the SRVCC resource
  • nhss-ims-sdm:psi-status:read: Access to read the PSI Status resource
  • nhss-ims-sdm:psi-status:modify: Acess to update the PSI Status resource
  • nhss-ims-sdm:dsai:read: Acess to read the DSAI resource
  • nhss-ims-sdm:dsai:modify: Acess to update the DSAI resource
  • nhss-ims-sdm:sms-registration-info:read: Acess to read the SMS Registration Info resource
  • nhss-ims-sdm:sms-registration-info:modify: Acess to create/update/delete the SMS Registration Info resource
  • nhss-ims-sdm:subscriptions:create: Access to create Subscriptions resources
  • nhss-ims-sdm:subscription:modify: Access to update/delete a Subscription resource
  • nhss-ims-sdm:shared-subscriptions:create: Access to create a Shared-Data Subscriptions resource
  • nhss-ims-sdm:shared-subscription:modify: Access to update/delete a Shared-Data Subscription resource
  • nhss-ims-sdm:shared-data:read: Access to read the Shared-Data resource
  • nhss-ims-sdm:charging-info:read: Access to read the ChargingInfo resource

Example

auth := context.WithValue(context.Background(), sw.ContextAccessToken, "ACCESSTOKENSTRING")
r, err := client.Service.Operation(auth, args)

Or via OAuth2 module to automatically refresh tokens and perform user authentication.

import "golang.org/x/oauth2"

/* Perform OAuth2 round trip request and obtain a token */

tokenSource := oauth2cfg.TokenSource(createContext(httpClient), &token)
auth := context.WithValue(oauth2.NoContext, sw.ContextOAuth2, tokenSource)
r, err := client.Service.Operation(auth, args)

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author