Azure / Azure/azure-rest-api-specs-examples
Latest available armeventgrid SDK for Golang does not contain NewCaCertificatesClient
- Dominant language
- No language data
- Stars
- 40
- Forks
- 23
- Avg merge
- 23h 36m
- Merged PRs (30d)
- 172
Description
### Link to sample
https://learn.microsoft.com/en-us/rest/api/eventgrid/controlplane-version2023-06-01-preview/ca-certificates/create-or-update?tabs=Go
### Library name and version
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventgrid/armeventgrid/v2 v2.1.1
### Language of the Sample
- [ ] C#/.NET
- [ ] Java
- [ ] JavaScript/TypedScript
- [ ] Python
- [X] Golang
- [ ] Other - Please specify in Issue details field
### Sample Issue Type
- [X] Sample not working
- [ ] Sample missing
- [ ] Do not understand sample
### Issue details
The sample for uploading a CA Certificate to Event Grid Namespace shows to use the `NewCaCertificatesClient()` function. That function doesn't seem to exist in the latest (2.1.1) version of `armeventgrid`. From the linked source code (https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/resourcemanager/eventgrid/armeventgrid/client_factory.go) it appears to exist, but in 2.2.0-beta.1 version, which is not published or publicly available, and therefore unable to upload a certificate.
### Expected behavior
Function to exist in latest package
### Actual behavior
Function is undefined in latest package
### Reproduction Steps
1. go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventgrid/armeventgrid/v2
2. Copy and paste sample
3. go build
### Environment
Windows 11, go1.18.2, vs code
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.