Skip to content

Commit 4e74fd2

Browse files
authored
generate v1.26 (#1122)
* update swagger * remove unused models in converter * remove netcore3.1 from testr * bump ver * fix convert * remove some unused autorest property * move some clz from autorest to client * fix import * no longer expose SendRequestRaw * make file utils inner * fix build * c# 11
1 parent 93a1f16 commit 4e74fd2

36 files changed

+18241
-13228
lines changed

.github/workflows/buildtest.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
uses: actions/setup-dotnet@v3
1616
with:
1717
dotnet-version: |
18-
3.1.x
1918
6.0.x
2019
7.0.x
2120
# - name: Check Format
@@ -56,7 +55,6 @@ jobs:
5655
uses: actions/setup-dotnet@v3
5756
with:
5857
dotnet-version: |
59-
3.1.x
6058
6.0.x
6159
7.0.x
6260
- name: Minikube

.github/workflows/docfx.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ jobs:
3333
uses: actions/setup-dotnet@v3
3434
with:
3535
dotnet-version: |
36-
3.1.x
3736
5.0.x
3837
6.0.x
3938

.github/workflows/draft.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ jobs:
1818
uses: actions/setup-dotnet@v3
1919
with:
2020
dotnet-version: |
21-
3.1.x
2221
6.0.x
2322
7.0.x
2423

.github/workflows/nuget.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ jobs:
1818
uses: actions/setup-dotnet@v3
1919
with:
2020
dotnet-version: |
21-
3.1.x
2221
6.0.x
2322
7.0.x
2423

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
2727
<EmbedUntrackedSources>true</EmbedUntrackedSources>
2828
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
29-
<LangVersion>10.0</LangVersion>
29+
<LangVersion>11.0</LangVersion>
3030
</PropertyGroup>
3131

3232
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ ${GEN_DIR}/openapi/csharp.sh ${REPO_DIR}/src/KubernetesClient ${REPO_DIR}/csharp
149149

150150
| SDK Version | Kubernetes Version | .NET Targeting |
151151
|-------------|--------------------|------------------------------------------------------|
152+
| 10.0 | 1.26 | net6.0;net7.0;net48*;netstandard2.0* |
152153
| 9.1 | 1.25 | netstandard2.1;net6.0;net7.0;net48*;netstandard2.0* |
153154
| 9.0 | 1.25 | netstandard2.1;net5.0;net6.0;net48*;netstandard2.0* |
154155
| 8.0 | 1.24 | netstandard2.1;net5.0;net6.0;net48*;netstandard2.0* |

csharp.settings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export KUBERNETES_BRANCH=v1.25.0
1+
export KUBERNETES_BRANCH=v1.26.0
22
export CLIENT_VERSION=0.0.1
33
export PACKAGE_NAME=k8s

examples/prometheus/Prometheus.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using k8s;
2-
using k8s.Monitoring;
32
using Prometheus;
43
using System;
54
using System.Net.Http;

src/KubernetesClient.Basic/AbstractKubernetes.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ private static class HttpMethods
1414
public static readonly HttpMethod Post = HttpMethod.Post;
1515
public static readonly HttpMethod Put = HttpMethod.Put;
1616
public static readonly HttpMethod Trace = HttpMethod.Trace;
17+
18+
#if NETSTANDARD2_0
1719
public static readonly HttpMethod Patch = new HttpMethod("PATCH");
20+
#else
21+
public static readonly HttpMethod Patch = HttpMethod.Patch;
22+
#endif
23+
1824
}
1925

2026
private sealed class QueryBuilder
@@ -96,6 +102,4 @@ private MediaTypeHeaderValue GetHeader(V1Patch body)
96102
protected abstract Task<HttpOperationResponse<T>> CreateResultAsync<T>(HttpRequestMessage httpRequest, HttpResponseMessage httpResponse, bool? watch, CancellationToken cancellationToken);
97103

98104
protected abstract Task<HttpResponseMessage> SendRequest<T>(string relativeUri, HttpMethod method, IReadOnlyDictionary<string, IReadOnlyList<string>> customHeaders, T body, CancellationToken cancellationToken);
99-
100-
protected abstract Task<HttpResponseMessage> SendRequestRaw(string requestContent, HttpRequestMessage httpRequest, CancellationToken cancellationToken);
101105
}

src/KubernetesClient.Basic/Autorest/HttpOperationException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace k8s.Autorest
99
/// Exception thrown for an invalid response with custom error information.
1010
/// </summary>
1111
[Serializable]
12-
public class HttpOperationException : RestException
12+
public class HttpOperationException : Exception
1313
{
1414
/// <summary>
1515
/// Gets information about the associated HTTP request.

0 commit comments

Comments
 (0)