Changes for .github/workflows/python-publish.yml: 70 added lines, 0 removed lines.
Original line number
Diff line number
Diff line
# This workflow will upload a Python Package to PyPI when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name:Upload Python Package
on:
release:
types:[published]
permissions:
contents:read
jobs:
release-build:
runs-on:ubuntu-latest
steps:
-uses:actions/checkout@v4
-uses:actions/setup-python@v5
with:
python-version:"3.12"
-name:Build release distributions
run:|
# NOTE: put your own distribution build steps here.
python -m pip install build
python -m build
-name:Upload distributions
uses:actions/upload-artifact@v4
with:
name:release-dists
path:dist/
pypi-publish:
runs-on:ubuntu-latest
needs:
-release-build
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token:write
# Dedicated environments with protections for publishing are strongly recommended.
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
environment:
name:pypi
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
#
# ALTERNATIVE: if your GitHub Release name is the PyPI project version string
# ALTERNATIVE: exactly, uncomment the following line instead:
Changes for doc/sdk_configuration.md: 3 added lines, 0 removed lines.
Original line number
Diff line number
Diff line
@@ -43,6 +43,7 @@ When configuring the SDK as a **Network App Invoker**, the following fields must
For SDK configuration as a **Network App Provider**, the following fields are required:
-`provider_folder`
-`supported_features`
-`cert_generation` (fields such as `csr_common_name`, `csr_country_name`, etc.)
-`APFs`
-`AEFs`
@@ -80,6 +81,7 @@ This file can also be populated using [environment variables](../samples/envirom
-`invoker_folder`: The path (relative or absolute) where invoker information (certificates, keys, etc.) is stored.
-`provider_folder`: The path (relative or absolute) where provider information is stored.
-`supported_features`: A string used to indicate the features supported by an API. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of "0" to "9", "a" to "f" or "A" to "F". [More information](https://github.com/jdegre/5GC_APIs/blob/Rel-18/TS29571_CommonData.yaml)
-`capif_host`: The domain name of the CAPIF host.
-`register_host`: The domain name of the register host.
-`capif_https_port`: The CAPIF host port number.
@@ -95,6 +97,7 @@ This file can also be populated using [environment variables](../samples/envirom
-[`publish_req`](#configuration-of-publish_req): Fields required for API publishing.
-`api_description_path`: The path to the [ServiceAPIDescription](https://github.com/jdegre/5GC_APIs/blob/Rel-18/TS29222_CAPIF_Publish_Service_API.yaml) JSON file.
-`check_authentication_data`: The `ip` and `port` of the target Provider's AEF to get their supported features from.
-`log`: The structure defined in the [Log schema](https://github.com/jdegre/5GC_APIs/blob/Rel-18/TS29222_CAPIF_Logging_API_Invocation_API.yaml), it is not needed to fulfill the `apiId` field.
The provider notifies to the CCF that the published API has been used by certain invoker.
For leveraging this feature the Provider must have onboarded and published an API previously.
**Required SDK input**:
- aefId (Within the function)
- api_invoker_id (Within the function)
- log (Within [SDK configuration](./sdk_configuration.md) or object)
## Invoker Network App
The OpenCAPIF SDK enables efficient implementation of invoker functionality for Network App. This section details the SDK features related to CAPIF invokers.