зеркало из https://github.com/Azure/ARO-RP.git
956 B
956 B
Updating Microsoft Graph SDK
pkg/util/graph/graphsdk
is a specially generated version of the Microsoft Graph API SDK. Since it uses the stable v1.0 of the MSGraph API, it is unlikely that it will need to be updated, although updates to the Kiota generation/libraries or new endpoints being required may require this.
If an update is required, perform the following:
- Install the latest version of Kiota (most likely by downloading it and putting it in your
$PATH
). - If new endpoints/schemas are required: Add the relevant endpoints and in
hack/graphsdk/openapi.yaml
from the msgraph-metadata version. - Run
make generate-kiota
and commit the result. - Run
kiota info -d ./hack/graphsdk/openapi.yaml -l Go
to get the version of the Kiota libraries that are needed and update them. Then, commit the result.