Commit Graph

15 Commits

Author SHA1 Message Date
Boshi Lian
72c32c8b1b way to disable http2 (#1120)
* way to disable http2

* no option for netstand2.0
2022-12-13 14:13:35 -08:00
William Moy
a435aa44f4 Enhance AbstractKubernetes SendRequest extensibility (#994) 2022-12-05 08:57:04 -08:00
Manuel Menegazzo
3702fd6e90 Standardization of using order and object initialization (#1028)
* Code cleanup KubernetesClient

* KubernetesClient.Basic code cleanup

* KubernetesClient.Models cleanup

* LibKubernetesGenerator code cleanup

* Improved readability of object initialization

* FIx namespace order

* Fixed some compilation warning
2022-09-28 13:34:32 -07:00
Boshi Lian
cec5f5d446 use explicitly impl instead of new (#853)
* use explicitly impl instead of new

* Apply suggestions from code review
2022-05-12 11:34:34 -07:00
Boshi Lian
85755ccb3e 8.0: API Group + v1.24 (#850)
* swagger 1.24

* trim converter

* api group

* before moving method

* grouped api for client

* fix classic build

* fix e2e

* move all code to v8

* fix vis to

* bump ver

* fix authtest filename
2022-05-07 13:05:17 -07:00
Zhiwei Liu
199ec8b5e6 Set http 2.0 for .net 5.0+ (#833) 2022-04-19 00:59:17 -07:00
Boshi Lian
4fd70de4ba some static optimization (#832)
* no q builder if not params

* make http method static val

* header to readonly

* add missing change

* const to private

* fix url in header
2022-04-18 14:57:50 -07:00
Boshi Lian
8575548cd9 Kubernetes.Classic: add support for netstandard2.0 and net48 (#808)
* support gh nuget (#11)

* trim to fit net48

* add net48 support

* add very test framework

* add test body

* Revert "support gh nuget (#11)"

This reverts commit 5cdaf59690170be44e4554485fb2e89785a6a1cf.
2022-04-03 16:35:42 -07:00
Boshi Lian
8e8619130a netstandard2 extendable lib model, basic rest (#793)
* first lib model

* add missing files

* happy test

* add vanilla rest for extend

* fix new url pattern

* address comments

* add v to tag

* bump ver

* add missing file when ren

* support multi pkg

* fix gh action

* fix env var

* ren title

* use gh action to set ver

* remove unused

* remove unused
2022-03-23 16:25:20 -07:00
stan-sz
624ee292f7 Enable some of the unnecessary code rules (#799)
* CA1823 Avoid unused private fields
* CA1847 Use string.Contains(char) instead of string.Contains(string) with single characters
* IDE0005 Remove unnecessary import
* IDE0051 Private member is unused
* IDE0052 Private member is unread
2022-03-21 19:17:45 -07:00
Weihan Li
f69bf83b19 Code Enhancements (#794)
* Let private members readonly

* Use long.TryParse

* Sealed internal types

* Sealed private types
2022-03-08 11:40:00 -08:00
Boshi Lian
0d719f1fc6 7.1 remove old autorest (#785)
* init removal

* clean up warning

* bump ver to 7.1

* fix build

* custom http client no long supported

* cleanup unused types

* fix npe

* remove service client

* modern ssl settings

* fix test

* fix client cert null

* fix ctor

* cleanup
2022-02-25 13:33:23 -08:00
Boshi Lian
1778d446d1 simplify http build code (#754)
* simplify request code

* re generate code

* remove unused tracing from websocket

* dotnet fmt

* fix warning

* fix warning

* make fmt and stylecop happy together
2021-12-19 09:01:26 -08:00
Boshi Lian
eca9898902 API v1.23.0 + system.text.json + remove WatchXXX API (#750)
* gen v1.23.0

* fix converter

* bump ver

* update readme runtime

* fix warning

* update dep ver

* newtonjson -> system.text.json

* generate for new json api

* readme lf

* dotnet fmt

* dotnet fmt tests/

* dotnet fmt

* Revert "dotnet fmt"

This reverts commit e14c59076143fe2218ed899295a00762f0ea2bd6.

* fix err introduce by dotnet fmt

* fix test

* remove deprecated /watch api

* generate code after /watch removed

* remove /watch related code

* trim Microsoft.Rest.Serialization
2021-12-13 07:31:59 -08:00
Vladimir Khvostov
e7de93dd10 Made a change to avoid calling _httpResponse.Content.ReadAsStringAsync() and deserialize from the content stream. (#731)
* Avoid calling _httpResponse.Content.ReadAsStringAsync() and deserialize from the content stream

Made a change to avoid calling _httpResponse.Content.ReadAsStringAsync() and deserialize from the content stream, which significantly reduced memory utilization.
Created Kubernetes.cs file and moved constructors and couple methods from the Kubernetes.cs.template to the Kubernetes.cs

Generated Kubernetes.cs will be in a separate commit.

* Separate commit for generated Kubernetes.cs
2021-10-20 06:55:58 -07:00