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
This commit is contained in:
Boshi Lian
2022-02-25 13:33:23 -08:00
committed by GitHub
parent ef7d226ab0
commit 0d719f1fc6
48 changed files with 907 additions and 590 deletions

View File

@@ -35,9 +35,9 @@ namespace @namespace
{
foreach (var innerEx in ex.InnerExceptions)
{
if (innerEx is Microsoft.Rest.HttpOperationException)
if (innerEx is k8s.Autorest.HttpOperationException)
{
var code = ((Microsoft.Rest.HttpOperationException)innerEx).Response.StatusCode;
var code = ((k8s.Autorest.HttpOperationException)innerEx).Response.StatusCode;
if (code == HttpStatusCode.NotFound)
{
return;
@@ -47,7 +47,7 @@ namespace @namespace
}
}
}
catch (Microsoft.Rest.HttpOperationException ex)
catch (k8s.Autorest.HttpOperationException ex)
{
if (ex.Response.StatusCode == HttpStatusCode.NotFound)
{