X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=capifcore%2Finternal%2Fsecurityapi%2Fsecurityapi-types.gen.go;h=78bced71c55beba0fd1bf0b8ed1f1e968f1156c4;hb=5493b0faf67fc5b58b575880db528eb2b663d45a;hp=225168adb8feb7378af971529e2a63fda88f7c9c;hpb=c9e08b2a2f647f9f870040570c5e71305f0fb5d2;p=nonrtric%2Fplt%2Fsme.git diff --git a/capifcore/internal/securityapi/securityapi-types.gen.go b/capifcore/internal/securityapi/securityapi-types.gen.go index 225168a..78bced7 100644 --- a/capifcore/internal/securityapi/securityapi-types.gen.go +++ b/capifcore/internal/securityapi/securityapi-types.gen.go @@ -6,6 +6,7 @@ package securityapi import ( externalRef0 "oransc.org/nonrtric/capifcore/internal/common29122" externalRef1 "oransc.org/nonrtric/capifcore/internal/common29571" + externalRef2 "oransc.org/nonrtric/capifcore/internal/publishserviceapi" ) // Defines values for AccessTokenErrError. @@ -75,11 +76,37 @@ type AccessTokenRsp struct { // AccessTokenRspTokenType defines model for AccessTokenRsp.TokenType. type AccessTokenRspTokenType string -// Possible values are - OVERLIMIT_USAGE: The revocation of the authorization of the API invoker is due to the overlimit usage of the service API - UNEXPECTED_REASON: The revocation of the authorization of the API invoker is due to unexpected reason. +// Possible values are: +// - OVERLIMIT_USAGE: The revocation of the authorization of the API invoker is due to the overlimit usage of the service API +// - UNEXPECTED_REASON: The revocation of the authorization of the API invoker is due to unexpected reason. type Cause string // Represents the interface details and the security method. -type SecurityInformation interface{} +type SecurityInformation struct { + // Identifier of the API exposing function + AefId *string `json:"aefId,omitempty"` + + // API identifier + ApiId *string `json:"apiId,omitempty"` + + // Authentication related information + AuthenticationInfo *string `json:"authenticationInfo,omitempty"` + + // Authorization related information + AuthorizationInfo *string `json:"authorizationInfo,omitempty"` + + // Represents the description of an API's interface. + InterfaceDetails *externalRef2.InterfaceDescription `json:"interfaceDetails,omitempty"` + + // Security methods preferred by the API invoker for the API interface. + PrefSecurityMethods []externalRef2.SecurityMethod `json:"prefSecurityMethods"` + + // Possible values are: + // - PSK: Security method 1 (Using TLS-PSK) as described in 3GPP TS 33.122 + // - PKI: Security method 2 (Using PKI) as described in 3GPP TS 33.122 + // - OAUTH: Security method 3 (TLS with OAuth token) as described in 3GPP TS 33.122 + SelSecurityMethod *externalRef2.SecurityMethod `json:"selSecurityMethod,omitempty"` +} // Represents revoked authorization notification details. type SecurityNotification struct { @@ -92,7 +119,9 @@ type SecurityNotification struct { // String identifying the API invoker assigned by the CAPIF core function. ApiInvokerId string `json:"apiInvokerId"` - // Possible values are - OVERLIMIT_USAGE: The revocation of the authorization of the API invoker is due to the overlimit usage of the service API - UNEXPECTED_REASON: The revocation of the authorization of the API invoker is due to unexpected reason. + // Possible values are: + // - OVERLIMIT_USAGE: The revocation of the authorization of the API invoker is due to the overlimit usage of the service API + // - UNEXPECTED_REASON: The revocation of the authorization of the API invoker is due to unexpected reason. Cause Cause `json:"cause"` } @@ -101,7 +130,7 @@ type ServiceSecurity struct { // string providing an URI formatted according to IETF RFC 3986. NotificationDestination externalRef0.Uri `json:"notificationDestination"` - // Set to true by API invoker to request the CAPIF core function to send a test notification as defined in in subclause 7.6. Set to false or omitted otherwise. + // Set to true by API invoker to request the CAPIF core function to send a test notification as defined in in clause 7.6. Set to false or omitted otherwise. RequestTestNotification *bool `json:"requestTestNotification,omitempty"` SecurityInfo []SecurityInformation `json:"securityInfo"`