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

EventGridNamespaceClientResource Not found in Azure.ResourceManager.Resources; #4365

Open
3 of 9 tasks
developersatish opened this issue Apr 3, 2024 · 0 comments
Open
3 of 9 tasks
Labels
customer-reported question Further information is requested

Comments

@developersatish
Copy link

Link to sample

https://learn.microsoft.com/en-us/rest/api/eventgrid/controlplane/clients/create-or-update?view=rest-eventgrid-controlplane-2023-12-15-preview&tabs=dotnet#examples

Library name and version

Azure.ResourceManager 1.11.0

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

ResourceIdentifier eventGridNamespaceClientResourceId = EventGridNamespaceClientResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, namespaceName, clientName);
EventGridNamespaceClientResource eventGridNamespaceClient = client.GetEventGridNamespaceClientResource(eventGridNamespaceClientResourceId);

// invoke the operation
EventGridNamespaceClientData data = new EventGridNamespaceClientData()
{
Description = "This is a test client",
ClientCertificateAuthentication = new ClientCertificateAuthentication()
{
ValidationScheme = ClientCertificateValidationScheme.SubjectMatchesAuthenticationName,
},
State = EventGridNamespaceClientState.Enabled,
Attributes =
{
["deviceTypes"] = BinaryData.FromObjectAsJson(new object[] { "Fan", "Light", "AC" }),
["floor"] = BinaryData.FromString(""3""),
["room"] = BinaryData.FromString(""345""),
},
};
ArmOperation lro = await eventGridNamespaceClient.UpdateAsync(WaitUntil.Completed, data);
EventGridNamespaceClientResource result = lro.Value;

// the variable result is a resource, you could call other operations on this instance as well
// but just for demo, we get its data from this resource instance
EventGridNamespaceClientData resourceData = result.Data;

Expected behavior

No response

Actual behavior

No response

Reproduction Steps

No response

Environment

No response

@microsoft-github-policy-service microsoft-github-policy-service bot added question Further information is requested customer-reported labels Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant