1 Star 0 Fork 0

MrCoder/openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
R17
OpenAPI_5GLANParameterProvision
OpenAPI_ACSParameterProvision
OpenAPI_AEF_Security_API
OpenAPI_AKMA
OpenAPI_AMInfluence
OpenAPI_AMPolicyAuthorization
OpenAPI_ASTI
OpenAPI_AnalyticsExposure
OpenAPI_ApplyingBdtPolicy
OpenAPI_AsSessionWithQoS
OpenAPI_CAPIF_API_Invoker_Management_API
OpenAPI_CAPIF_API_Provider_Management_API
OpenAPI_CAPIF_Access_Control_Policy_API
OpenAPI_CAPIF_Auditing_API
OpenAPI_CAPIF_Discover_Service_API
OpenAPI_CAPIF_Events_API
OpenAPI_CAPIF_Logging_API_Invocation_API
OpenAPI_CAPIF_Publish_Service_API
OpenAPI_CAPIF_Routing_Info_API
OpenAPI_CAPIF_Security_API
OpenAPI_ChargeableParty
OpenAPI_CpProvisioning
OpenAPI_DataReporting
OpenAPI_DataReportingProvisioning
OpenAPI_DeviceTriggering
OpenAPI_EASDeployment
OpenAPI_ECRControl
OpenAPI_EcsAddressProvision
OpenAPI_Eecs_EESRegistration
OpenAPI_Eecs_ServiceProvisioning
OpenAPI_Eecs_TargetEESDiscovery
OpenAPI_Eees_ACREvents
OpenAPI_Eees_ACRManagementEvent
OpenAPI_Eees_ACRStatusUpdate
OpenAPI_Eees_AppClientInformation
OpenAPI_Eees_AppContextRelocation
OpenAPI_Eees_EASDiscovery
OpenAPI_Eees_EASRegistration
OpenAPI_Eees_EECContextRelocation
OpenAPI_Eees_EECRegistration
OpenAPI_Eees_EELManagedACR
OpenAPI_Eees_SessionWithQoS
OpenAPI_Eees_UEIdentifier
OpenAPI_Eees_UELocation
OpenAPI_FaultMnS
OpenAPI_FileDataReportingMnS
OpenAPI_GMDviaMBMSbyMB2
OpenAPI_GMDviaMBMSbyxMB
OpenAPI_IPTVConfiguration
OpenAPI_JOSEProtectedMessageForwarding
OpenAPI_LpiParameterProvision
OpenAPI_M1_ConsumptionReportingProvisioning
OpenAPI_M1_ContentHostingProvisioning
OpenAPI_M1_ContentPreparationTemplatesProvisioning
OpenAPI_M1_ContentProtocolsDiscovery
OpenAPI_M1_EdgeResourcesProvisioning
OpenAPI_M1_EventDataProcessingProvisioning
OpenAPI_M1_MetricsReportingProvisioning
OpenAPI_M1_PolicyTemplatesProvisioning
OpenAPI_M1_ProvisioningSessions
OpenAPI_M1_ServerCertificatesProvisioning
OpenAPI_M5_ConsumptionReporting
OpenAPI_M5_DynamicPolicies
OpenAPI_M5_MetricsReporting
OpenAPI_M5_NetworkAssistance
OpenAPI_M5_ServiceAccessInformation
OpenAPI_MBSSession
OpenAPI_MBSTMGI
OpenAPI_MBSUserDataIngestSession
OpenAPI_MBSUserService
OpenAPI_MSEventExposure
OpenAPI_MSGG_L3GDelivery
OpenAPI_MSGG_N3GDelivery
OpenAPI_MSGS_ASRegistration
OpenAPI_MSGS_MSGDelivery
OpenAPI_MoLcsNotify
OpenAPI_MonitoringEvent
OpenAPI_MsisdnLessMoSms
OpenAPI_N32_Handshake
OpenAPI_N5g_ddnmf_Discovery
OpenAPI_N5g_eir_EquipmentIdentityCheck
OpenAPI_NIDD
OpenAPI_NIDDConfigurationTrigger
OpenAPI_Naanf_AKMA
OpenAPI_Nadrf_DataManagement
OpenAPI_Naf_Authentication
OpenAPI_Naf_EventExposure
OpenAPI_Naf_ProSe
OpenAPI_Namf_Communication
OpenAPI_Namf_EventExposure
OpenAPI_Namf_Location
OpenAPI_Namf_MBSBroadcast
OpenAPI_Namf_MBSCommunication
OpenAPI_Namf_MT
OpenAPI_Nausf_SoRProtection
OpenAPI_Nausf_UEAuthentication
OpenAPI_Nausf_UPUProtection
OpenAPI_Nbsf_Management
OpenAPI_Nbsp_GBA
OpenAPI_Nchf_ConvergedCharging
OpenAPI_Nchf_OfflineOnlyCharging
OpenAPI_Nchf_SpendingLimitControl
OpenAPI_Ndcaf_DataReporting
OpenAPI_Ndcaf_DataReportingProvisioning
OpenAPI_Ndccf_ContextManagement
OpenAPI_Ndccf_DataManagement
OpenAPI_Neasdf_BaselineDNSPattern
OpenAPI_Neasdf_DNSContext
OpenAPI_Ngmlc_Location
OpenAPI_Nhss_EE
OpenAPI_Nhss_SDM
OpenAPI_Nhss_UEAU
OpenAPI_Nhss_UECM
OpenAPI_Nhss_gbaSDM
OpenAPI_Nhss_gbaUEAU
OpenAPI_Nhss_imsSDM
OpenAPI_Nhss_imsUEAU
OpenAPI_Nhss_imsUECM
OpenAPI_Nipsmgw_SMService
OpenAPI_Niwmsc_SMService
OpenAPI_Nlmf_Broadcast
OpenAPI_Nlmf_Location
OpenAPI_Nmbsf_MBSUserDataIngestSession
OpenAPI_Nmbsf_MBSUserService
OpenAPI_Nmbsmf_MBSSession
OpenAPI_Nmbsmf_TMGI
OpenAPI_Nmbstf_DistSession
OpenAPI_Nmfaf_3caDataManagement
OpenAPI_Nmfaf_3daDataManagement
OpenAPI_Nmnpf_NPStatus
OpenAPI_Nnef_Authentication
OpenAPI_Nnef_EASDeployment
OpenAPI_Nnef_EventExposure
OpenAPI_Nnef_PFDmanagement
OpenAPI_Nnef_SMContext
OpenAPI_Nnef_SMService
OpenAPI_Nnrf_NFDiscovery
OpenAPI_Nnrf_NFManagement
OpenAPI_Nnsacf_NSAC
OpenAPI_Nnsacf_SliceEventExposure
OpenAPI_Nnssaaf_AIW
OpenAPI_Nnssaaf_NSSAA
OpenAPI_Nnssf_NSSAIAvailability
OpenAPI_Nnssf_NSSelection
OpenAPI_Nnwdaf_AnalyticsInfo
OpenAPI_Nnwdaf_DataManagement
OpenAPI_Nnwdaf_EventsSubscription
OpenAPI_Nnwdaf_MLModelProvision
OpenAPI_NpConfiguration
OpenAPI_Npanf_ProseKey
OpenAPI_Npanf_ResolveRemoteUserId
OpenAPI_Npcf_AMPolicyAuthorization
OpenAPI_Npcf_AMPolicyControl
OpenAPI_Npcf_BDTPolicyControl
OpenAPI_Npcf_EventExposure
OpenAPI_Npcf_MBSPolicyAuthorization
OpenAPI_Npcf_MBSPolicyControl
OpenAPI_Npcf_PolicyAuthorization
OpenAPI_Npcf_SMPolicyControl
OpenAPI_Npcf_UEPolicyControl
OpenAPI_Npkmf_PKMFKeyRequest
OpenAPI_Npkmf_UserId
OpenAPI_Nrouter_SMService
OpenAPI_Nsmf_EventExposure
OpenAPI_Nsmf_NIDD
OpenAPI_Nsmf_PDUSession
OpenAPI_Nsmsf_SMService
OpenAPI_Nsoraf_SOR
OpenAPI_Nspaf_SecuredPacket
OpenAPI_Ntsctsf_ASTI
OpenAPI_Ntsctsf_QoSandTSCAssistance
OpenAPI_Ntsctsf_TimeSynchronization
OpenAPI_Nucmf_Provisioning
OpenAPI_Nucmf_UERCM
OpenAPI_Nudm_EE
OpenAPI_Nudm_MT
OpenAPI_Nudm_NIDDAU
OpenAPI_Nudm_PP
OpenAPI_Nudm_RSDS
OpenAPI_Nudm_SDM
OpenAPI_Nudm_SSAU
OpenAPI_Nudm_UEAU
OpenAPI_Nudm_UECM
OpenAPI_Nudm_UEID
OpenAPI_Nudr_DR
OpenAPI_Nudr_GroupIDmap
OpenAPI_Nudsf_DataRepository
.openapi-generator
api
.gitignore
.openapi-generator-ignore
.travis.yml
README.md
api_block_crud.go
api_meta_schema_crud.go
api_notification_subscription_crud.go
api_notification_subscriptions_crud.go
api_record_crud.go
client.go
configuration.go
git_push.sh
model_access_token_err.go
model_access_token_req.go
model_client_id.go
model_comparison_operator.go
model_condition_operator.go
model_get_block_list_200_response.go
model_invalid_param.go
model_key_type.go
model_meta_schema.go
model_nf_type.go
model_notification_description.go
model_notification_info.go
model_notification_subscription.go
model_patch_item.go
model_patch_operation.go
model_patch_result.go
model_plmn_id.go
model_plmn_id_nid.go
model_problem_details.go
model_record.go
model_record_id_list.go
model_record_meta.go
model_record_notification.go
model_record_operation.go
model_record_search_result.go
model_report_item.go
model_retrieve_records.go
model_search_comparison.go
model_search_condition.go
model_search_expression.go
model_snssai.go
model_subscription_filter.go
model_tag_type.go
response.go
utils.go
OpenAPI_Nudsf_Timer
OpenAPI_Nupf_EventExposure
OpenAPI_PerfMeasJobCtrlMnS
OpenAPI_PerfMnS
OpenAPI_PfdManagement
OpenAPI_ProvMnS
OpenAPI_RacsParameterProvisioning
OpenAPI_ReportingNetworkStatus
OpenAPI_ResourceManagementOfBdt
OpenAPI_SS_Events
OpenAPI_SS_GroupManagement
OpenAPI_SS_KeyInfoRetrieval
OpenAPI_SS_LocationAreaInfoRetrieval
OpenAPI_SS_LocationReporting
OpenAPI_SS_NetworkResourceAdaptation
OpenAPI_SS_NetworkResourceMonitoring
OpenAPI_SS_NetworkSliceAdaptation
OpenAPI_SS_UserProfileRetrieval
OpenAPI_SeppTelescopicFqdnMapping
OpenAPI_ServiceParameter
OpenAPI_StreamingDataMnS
OpenAPI_TimeSyncExposure
OpenAPI_TrafficInfluence
OpenAPI_UAE_C2OperationModeManagement
OpenAPI_UAE_RealtimeUAVStatus
OpenAPI_UEId
OpenAPI_VAE_ApplicationRequirement
OpenAPI_VAE_DynamicGroup
OpenAPI_VAE_FileDistribution
OpenAPI_VAE_HDMapDynamicInfo
OpenAPI_VAE_MessageDelivery
OpenAPI_VAE_PC5ProvisioningRequirement
OpenAPI_VAE_ServiceContinuity
OpenAPI_VAE_SessionOrientedService
OpenAPI_VAE_V2VConfigRequirement
.gitignore
LICENSE
go.mod
go.sum
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
2年前
2年前
2年前
2年前
Loading...
README

Go API client for OpenAPI_Nudsf_DataRepository

Nudsf Data Repository Service.
© 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.1.0
  • 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_Nudsf_DataRepository "gitee.com/konglinglong/openapi/OpenAPI_Nudsf_DataRepository"

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 OpenAPI_Nudsf_DataRepository.ContextServerIndex of type int.

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

Templated Server URL

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

ctx := context.WithValue(context.Background(), OpenAPI_Nudsf_DataRepository.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 OpenAPI_Nudsf_DataRepository.ContextOperationServerIndices and OpenAPI_Nudsf_DataRepository.ContextOperationServerVariables context maps.

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

Documentation for API Endpoints

All URIs are relative to https://example.com/nudsf-dr/v1

Class Method HTTP request Description
BlockCRUDAPI CreateOrModifyBlock Put /{realmId}/{storageId}/records/{recordId}/blocks/{blockId} Create or Update a specific Block in a Record.
BlockCRUDAPI DeleteBlock Delete /{realmId}/{storageId}/records/{recordId}/blocks/{blockId} Delete a specific Block. Then update the Record
BlockCRUDAPI GetBlock Get /{realmId}/{storageId}/records/{recordId}/blocks/{blockId} Retrieve a specific Block
BlockCRUDAPI GetBlockList Get /{realmId}/{storageId}/records/{recordId}/blocks Record's Blocks access
MetaSchemaCRUDAPI CreateOrModifyMetaSchema Put /{realmId}/{storageId}/meta-schemas/{schemaId} Create/Modify Meta Schema
MetaSchemaCRUDAPI DeleteMetaSchema Delete /{realmId}/{storageId}/meta-schemas/{schemaId} Delete a Meta Schema with an user provided SchemaId
MetaSchemaCRUDAPI GetMetaSchema Get /{realmId}/{storageId}/meta-schemas/{schemaId} Meta Schema access
NotificationSubscriptionCRUDAPI CreateAndUpdateNotificationSubscription Put /{realmId}/{storageId}/subs-to-notify/{subscriptionId} NotificationSubscription Create/Update
NotificationSubscriptionCRUDAPI DeleteNotificationSubscription Delete /{realmId}/{storageId}/subs-to-notify/{subscriptionId} Delete a Notification Subscription of the storage
NotificationSubscriptionCRUDAPI GetNotificationSubscription Get /{realmId}/{storageId}/subs-to-notify/{subscriptionId} Notification subscription retrieval
NotificationSubscriptionCRUDAPI UpdateNotificationSubscription Patch /{realmId}/{storageId}/subs-to-notify/{subscriptionId} NotificationSubscription update
NotificationSubscriptionsCRUDAPI GetNotificationSubscriptions Get /{realmId}/{storageId}/subs-to-notify Notification subscription retrieval
RecordCRUDAPI BulkDeleteRecords Delete /{realmId}/{storageId}/records Bulk Deletion of Records
RecordCRUDAPI CreateOrModifyRecord Put /{realmId}/{storageId}/records/{recordId} Create/Modify Record
RecordCRUDAPI DeleteRecord Delete /{realmId}/{storageId}/records/{recordId} Delete a Record with an user provided RecordId
RecordCRUDAPI GetMeta Get /{realmId}/{storageId}/records/{recordId}/meta Record's meta access
RecordCRUDAPI GetRecord Get /{realmId}/{storageId}/records/{recordId} Record access
RecordCRUDAPI SearchRecord Get /{realmId}/{storageId}/records Records search with get
RecordCRUDAPI UpdateMeta Patch /{realmId}/{storageId}/records/{recordId}/meta Record's meta update

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

oAuth2ClientCredentials

  • Type: OAuth
  • Flow: application
  • Authorization URL:
  • Scopes:
  • nudsf-dr: Access to the nudsf-dr API

Example

auth := context.WithValue(context.Background(), OpenAPI_Nudsf_DataRepository.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, OpenAPI_Nudsf_DataRepository.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

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/konglinglong/openapi.git
git@gitee.com:konglinglong/openapi.git
konglinglong
openapi
openapi
e403a3c726a4

搜索帮助