Skip to content

Commit

Permalink
Updated swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
silasary authored Mar 20, 2024
1 parent 7f376a4 commit 20f620c
Show file tree
Hide file tree
Showing 6 changed files with 1,258 additions and 0 deletions.
19 changes: 19 additions & 0 deletions DecksiteAPI.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>11.0</LangVersion>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<Nullable>annotations</Nullable>
<IncludeGeneratorSharedCode>true</IncludeGeneratorSharedCode>
<DefineConstants>$(DefineConstants);EXPERIMENTAL</DefineConstants>
<RestoreAdditionalProjectSources>https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json</RestoreAdditionalProjectSources>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Azure.Core" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Azure.AutoRest.CSharp" Version="3.0.0-beta.20240319.5" PrivateAssets="All" />
</ItemGroup>
</Project>
35 changes: 35 additions & 0 deletions generated/DecksiteAPIClientBuilderExtensions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

// <auto-generated/>

#nullable disable

using System;
using Azure.Core.Extensions;
using DecksiteAPI;

namespace Microsoft.Extensions.Azure
{
/// <summary> Extension methods to add <see cref="GetClient"/> to client builder. </summary>
public static partial class DecksiteAPIClientBuilderExtensions
{
/// <summary> Registers a <see cref="GetClient"/> instance. </summary>
/// <param name="builder"> The builder to register with. </param>
/// <param name="endpoint"> server parameter. </param>
public static IAzureClientBuilder<GetClient, GetClientOptions> AddGetClient<TBuilder>(this TBuilder builder, Uri endpoint)
where TBuilder : IAzureClientFactoryBuilder
{
return builder.RegisterClientFactory<GetClient, GetClientOptions>((options) => new GetClient(endpoint, options));
}

/// <summary> Registers a <see cref="GetClient"/> instance. </summary>
/// <param name="builder"> The builder to register with. </param>
/// <param name="configuration"> The configuration values. </param>
public static IAzureClientBuilder<GetClient, GetClientOptions> AddGetClient<TBuilder, TConfiguration>(this TBuilder builder, TConfiguration configuration)
where TBuilder : IAzureClientFactoryBuilderWithConfiguration<TConfiguration>
{
return builder.RegisterClientFactory<GetClient, GetClientOptions>(configuration);
}
}
}
Loading

0 comments on commit 20f620c

Please sign in to comment.