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.
// 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 {
// 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"`
}
// 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"`