Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ public static partial class ClientConnectionFilter
public static string Create(System.FormattableString filter) { throw null; }
public static string Create(System.FormattableString filter, System.IFormatProvider formatProvider) { throw null; }
}
public partial class WebPubSubClient
{
protected WebPubSubClient() { }
public WebPubSubClient(string endpoint) { }
public WebPubSubClient(string endpoint, Azure.Messaging.WebPubSub.WebPubSubServiceClientOptions options) { }
public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } }
public virtual Azure.Pageable<System.BinaryData> GetConnectionsInGroups(string hub, string group, int? maxpagesize = default(int?), int? maxCount = default(int?), string continuationToken = null, Azure.RequestContext context = null) { throw null; }
public virtual Azure.AsyncPageable<System.BinaryData> GetConnectionsInGroupsAsync(string hub, string group, int? maxpagesize = default(int?), int? maxCount = default(int?), string continuationToken = null, Azure.RequestContext context = null) { throw null; }
}
public enum WebPubSubClientProtocol
{
Default = 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ public static partial class ClientConnectionFilter
public static string Create(System.FormattableString filter) { throw null; }
public static string Create(System.FormattableString filter, System.IFormatProvider formatProvider) { throw null; }
}
public partial class WebPubSubClient
{
protected WebPubSubClient() { }
public WebPubSubClient(string endpoint) { }
public WebPubSubClient(string endpoint, Azure.Messaging.WebPubSub.WebPubSubServiceClientOptions options) { }
public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } }
public virtual Azure.Pageable<System.BinaryData> GetConnectionsInGroups(string hub, string group, int? maxpagesize = default(int?), int? maxCount = default(int?), string continuationToken = null, Azure.RequestContext context = null) { throw null; }
public virtual Azure.AsyncPageable<System.BinaryData> GetConnectionsInGroupsAsync(string hub, string group, int? maxpagesize = default(int?), int? maxCount = default(int?), string continuationToken = null, Azure.RequestContext context = null) { throw null; }
}
public enum WebPubSubClientProtocol
{
Default = 0,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<doc>
<members>
<member name="GetConnectionsInGroupsAsync(string,string,int?,int?,string,RequestContext)">
<example>
This sample shows how to call GetConnectionsInGroupsAsync and parse the result.
<code><![CDATA[
WebPubSubClient client = new WebPubSubClient("<Endpoint>");
await foreach (BinaryData item in client.GetConnectionsInGroupsAsync("<hub>", "<group>"))
{
JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
Console.WriteLine(result.GetProperty("connectionId").ToString());
}
]]></code>
This sample shows how to call GetConnectionsInGroupsAsync with all parameters and parse the result.
<code><![CDATA[
WebPubSubClient client = new WebPubSubClient("<Endpoint>");
await foreach (BinaryData item in client.GetConnectionsInGroupsAsync("<hub>", "<group>", maxpagesize: 1234, maxCount: 1234, continuationToken: "<continuationToken>"))
{
JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
Console.WriteLine(result.GetProperty("connectionId").ToString());
Console.WriteLine(result.GetProperty("userId").ToString());
}
]]></code></example>
</member>
<member name="GetConnectionsInGroups(string,string,int?,int?,string,RequestContext)">
<example>
This sample shows how to call GetConnectionsInGroups and parse the result.
<code><![CDATA[
WebPubSubClient client = new WebPubSubClient("<Endpoint>");
foreach (BinaryData item in client.GetConnectionsInGroups("<hub>", "<group>"))
{
JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
Console.WriteLine(result.GetProperty("connectionId").ToString());
}
]]></code>
This sample shows how to call GetConnectionsInGroups with all parameters and parse the result.
<code><![CDATA[
WebPubSubClient client = new WebPubSubClient("<Endpoint>");
foreach (BinaryData item in client.GetConnectionsInGroups("<hub>", "<group>", maxpagesize: 1234, maxCount: 1234, continuationToken: "<continuationToken>"))
{
JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
Console.WriteLine(result.GetProperty("connectionId").ToString());
Console.WriteLine(result.GetProperty("userId").ToString());
}
]]></code></example>
</member>
</members>
</doc>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions sdk/webpubsub/Azure.Messaging.WebPubSub/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Run `dotnet build /t:GenerateCode` to generate code.
## Swagger Source(s)
``` yaml
title: WebPubSubServiceClient
input-file:
- https://github.com/Azure/azure-rest-api-specs/blob/356aa5174e8eec6ed904bf5ff104595aec8c0411/specification/webpubsub/data-plane/WebPubSub/stable/2024-01-01/webpubsub.json
require:
- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/webpubsub/data-plane/readme.md

credential-types: AzureKeyCredential
credential-header-name: Ocp-Apim-Subscription-Key
Expand Down Expand Up @@ -345,3 +345,4 @@ directive:
where: $.paths["/api/hubs/{hub}/connections/{connectionId}/groups"].delete.parameters["0"]
transform: $["x-ms-parameter-location"] = "client"
```

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.