You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// 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
The text was updated successfully, but these errors were encountered:
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
Sample Issue Type
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
The text was updated successfully, but these errors were encountered: