Fix problem in generation of securityapi
Issue-ID: NONRTRIC-814
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
Change-Id: I7f12e05a195957e4360fb1ca7ec881c8da3917ff
diff --git a/capifcore/generate.sh b/capifcore/generate.sh
index ffe7299..9ef282d 100755
--- a/capifcore/generate.sh
+++ b/capifcore/generate.sh
@@ -83,6 +83,9 @@
sed '/oneOf.*/,+2d' TS29222_CAPIF_Publish_Service_API.yaml >temp.yaml
mv temp.yaml TS29222_CAPIF_Publish_Service_API.yaml
+sed '/oneOf.*/,+2d' TS29222_CAPIF_Security_API.yaml >temp.yaml
+mv temp.yaml TS29222_CAPIF_Security_API.yaml
+
# Replace references to external specs that are collected to the common spec by the commoncollector
# <replacements_start>
cat TS29122_CommonData.yaml | sed 's/TS29572_Nlmf_Location/CommonData/g' > temp.yaml
diff --git a/capifcore/internal/securityapi/securityapi-server.gen.go b/capifcore/internal/securityapi/securityapi-server.gen.go
index 1fbde0b..284c4b0 100644
--- a/capifcore/internal/securityapi/securityapi-server.gen.go
+++ b/capifcore/internal/securityapi/securityapi-server.gen.go
@@ -200,46 +200,45 @@
// Base64 encoded, gzipped, json marshaled Swagger object
var swaggerSpec = []string{
- "H4sIAAAAAAAC/+xa/W7bOBJ/FUJ7wLaAItlu0m79n+u4hRe7qRE52wO2gUFLY5sbiVRJyk4u8APda9yT",
- "HUhKsmRL/og3veytgaKxZfJHztdvhiM+Wj6LYkaBSmG1Hy3hzyDC+mPH90GIIbsD2uNcPQlA+JzEkjBq",
- "ta1riDkINRFhioBzxhGhSM4AYT0VSTUXcfiWgJCOZVsxZzFwSUAvoKfoDzSJrPbvFqFzHJJglM6w7PyJ",
- "HxKgxQdTjvX3hOJEzhgn/4LCqISKJI4Zl5COHMmHGArThc9isG5tSz9vW0JyQqfW0jabGpUkfawblXBS",
- "8evStpQAhEOghDJSrpZi4z/AlwqkoOBr+LZVwXVKRYROGI+wmqEUbL5Ybev+bLFYnKmvZwkPgfosgGDD",
- "AkZhI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wP4sGgHgEBZbAGB/NgUAsK0Z1HR7H0D+5dLaroqh",
+ "D+rCnBh/VNQ/1hzJtx1Ps6l2YWpamGrWjLj3PqBqvb8mwB8Kim/OcGvUzc+0z6jvetj2zOqWB8tbtf3y",
+ "jE10dSJV05uNitObmhF30Tpp+KIJFsoUpsXMRiJTzqLmlwLKXKfa8T3WjtbrI1i8Ni3sEVK0TxWssYLF",
+ "iWbk4zCcYP9u13T0MbuyMWHBww9uw8pVcRSy3yDhUNCpeR2y1/RgR7cq1t1qUbdTU/p9Akv7CEWajteH",
+ "sGg4Xh/C4uKETQ3H65UZxhbnqIn8ax6YnwMBd7ZdPgcsAeF176V3vpd6Qo9pReldyNn+lrIXpgZGDX2F",
+ "ZA440L59tH5hTW/XFJZjQk3HfnszyLpLCsvwIeOGOAiWcB9shH2f8UC/ETZXe4TkiS8TDugRx+SGMbly",
+ "fRyT6VlmSHfR3jH50Z37/kGy+r8C9u8ElY/vGE/A/izAvnNu6q6Hps0v1LZUAjNb/ZvVg6aOuHo/RAm9",
+ "351DVSZ6w4G+IfSEvrqA4eltJOfURp/a6FMb/b2hbRIH+Ai0vTXkp+67/EJaW6V8cy3rv1+AM3MQhzMK",
+ "MybJxrr0Du3LfYC39T9qy03QnCD9BOknSP/mkxHb0jfcUqA1l/m2HFYt21pgTvAkTC94m5WmZUvFyi8D",
+ "wj2O4hAcn0VWNf9Twso90/yS6YWC9vINRUcJ/GX13wAAAP//VbZhM004AAA=",
}
// GetSwagger returns the content of the embedded swagger specification file
diff --git a/capifcore/internal/securityapi/securityapi-types.gen.go b/capifcore/internal/securityapi/securityapi-types.gen.go
index bf8723a..78bced7 100644
--- a/capifcore/internal/securityapi/securityapi-types.gen.go
+++ b/capifcore/internal/securityapi/securityapi-types.gen.go
@@ -6,6 +6,7 @@
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.
@@ -81,7 +82,31 @@
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 {