Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest available armeventgrid SDK for Golang does not contain NewCaCertificatesClient #3239

Open
2 of 9 tasks
jobeland opened this issue Aug 22, 2023 · 1 comment
Open
2 of 9 tasks
Assignees

Comments

@jobeland
Copy link

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
  • Golang
  • Other - Please specify in Issue details field

Sample Issue Type

  • 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

@Alancere
Copy link
Member

CaCertificates operation was introduced in Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json, and the Go SDK version generated based on this is v2.2.0-beta.1. Status is Beta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants