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
This commit is contained in:
Boshi Lian
2022-12-15 18:21:36 -08:00
committed by GitHub
parent 93a1f16bb2
commit 4e74fd20b7
36 changed files with 9398 additions and 4385 deletions

View File

@@ -14,7 +14,13 @@ public abstract partial class AbstractKubernetes
public static readonly HttpMethod Post = HttpMethod.Post;
public static readonly HttpMethod Put = HttpMethod.Put;
public static readonly HttpMethod Trace = HttpMethod.Trace;
#if NETSTANDARD2_0
public static readonly HttpMethod Patch = new HttpMethod("PATCH");
#else
public static readonly HttpMethod Patch = HttpMethod.Patch;
#endif
}
private sealed class QueryBuilder
@@ -96,6 +102,4 @@ public abstract partial class AbstractKubernetes
protected abstract Task<HttpOperationResponse<T>> CreateResultAsync<T>(HttpRequestMessage httpRequest, HttpResponseMessage httpResponse, bool? watch, CancellationToken cancellationToken);
protected abstract Task<HttpResponseMessage> SendRequest<T>(string relativeUri, HttpMethod method, IReadOnlyDictionary<string, IReadOnlyList<string>> customHeaders, T body, CancellationToken cancellationToken);
protected abstract Task<HttpResponseMessage> SendRequestRaw(string requestContent, HttpRequestMessage httpRequest, CancellationToken cancellationToken);
}