diff --git a/src/generated/IKubernetes.cs b/src/generated/IKubernetes.cs
index 5f377b3cb..bd509cf7c 100644
--- a/src/generated/IKubernetes.cs
+++ b/src/generated/IKubernetes.cs
@@ -11,6 +11,7 @@ namespace k8s
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
+ using System.IO;
using System.Threading;
using System.Threading.Tasks;
@@ -2742,7 +2743,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ReadNamespacedPodLogWithHttpMessagesAsync(string name, string namespaceParameter, string container = default(string), bool? follow = default(bool?), int? limitBytes = default(int?), string pretty = default(string), bool? previous = default(bool?), int? sinceSeconds = default(int?), int? tailLines = default(int?), bool? timestamps = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ReadNamespacedPodLogWithHttpMessagesAsync(string name, string namespaceParameter, string container = default(string), bool? follow = default(bool?), int? limitBytes = default(int?), string pretty = default(string), bool? previous = default(bool?), int? sinceSeconds = default(int?), int? tailLines = default(int?), bool? timestamps = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// connect GET requests to portforward of Pod
diff --git a/src/generated/Kubernetes.cs b/src/generated/Kubernetes.cs
index 380cc9277..ca449950b 100644
--- a/src/generated/Kubernetes.cs
+++ b/src/generated/Kubernetes.cs
@@ -12,6 +12,7 @@ namespace k8s
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
+ using System.IO;
using System.Net;
using System.Net.Http;
using System.Threading;
@@ -240,6 +241,7 @@ public Kubernetes(System.Uri baseUri, ServiceClientCredentials credentials, Http
///
private void Initialize()
{
+ BaseUri = new System.Uri("http://localhost");
SerializationSettings = new JsonSerializerSettings
{
Formatting = Newtonsoft.Json.Formatting.Indented,
@@ -12794,7 +12796,7 @@ private void Initialize()
///
/// A response object containing the response body and response headers.
///
- public async Task> ReadNamespacedPodLogWithHttpMessagesAsync(string name, string namespaceParameter, string container = default(string), bool? follow = default(bool?), int? limitBytes = default(int?), string pretty = default(string), bool? previous = default(bool?), int? sinceSeconds = default(int?), int? tailLines = default(int?), bool? timestamps = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> ReadNamespacedPodLogWithHttpMessagesAsync(string name, string namespaceParameter, string container = default(string), bool? follow = default(bool?), int? limitBytes = default(int?), string pretty = default(string), bool? previous = default(bool?), int? sinceSeconds = default(int?), int? tailLines = default(int?), bool? timestamps = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (name == null)
{
@@ -12900,7 +12902,7 @@ private void Initialize()
ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
}
cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ _httpResponse = await HttpClient.SendAsync(_httpRequest, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false);
if (_shouldTrace)
{
ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
@@ -12931,26 +12933,13 @@ private void Initialize()
throw ex;
}
// Create Result
- var _result = new HttpOperationResponse();
+ var _result = new HttpOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
// Deserialize Response
if ((int)_statusCode == 200)
{
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
+ _result.Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false);
}
if (_shouldTrace)
{
diff --git a/src/generated/KubernetesExtensions.cs b/src/generated/KubernetesExtensions.cs
index 0c19cd0a2..74f0ec180 100644
--- a/src/generated/KubernetesExtensions.cs
+++ b/src/generated/KubernetesExtensions.cs
@@ -7,6 +7,7 @@
namespace k8s
{
using Models;
+ using System.IO;
using System.Threading;
using System.Threading.Tasks;
@@ -5504,7 +5505,7 @@ public static V1APIResourceList GetAPIResources(this IKubernetes operations)
/// If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every
/// line of log output. Defaults to false.
///
- public static string ReadNamespacedPodLog(this IKubernetes operations, string name, string namespaceParameter, string container = default(string), bool? follow = default(bool?), int? limitBytes = default(int?), string pretty = default(string), bool? previous = default(bool?), int? sinceSeconds = default(int?), int? tailLines = default(int?), bool? timestamps = default(bool?))
+ public static Stream ReadNamespacedPodLog(this IKubernetes operations, string name, string namespaceParameter, string container = default(string), bool? follow = default(bool?), int? limitBytes = default(int?), string pretty = default(string), bool? previous = default(bool?), int? sinceSeconds = default(int?), int? tailLines = default(int?), bool? timestamps = default(bool?))
{
return operations.ReadNamespacedPodLogAsync(name, namespaceParameter, container, follow, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps).GetAwaiter().GetResult();
}
@@ -5557,12 +5558,11 @@ public static V1APIResourceList GetAPIResources(this IKubernetes operations)
///
/// The cancellation token.
///
- public static async Task ReadNamespacedPodLogAsync(this IKubernetes operations, string name, string namespaceParameter, string container = default(string), bool? follow = default(bool?), int? limitBytes = default(int?), string pretty = default(string), bool? previous = default(bool?), int? sinceSeconds = default(int?), int? tailLines = default(int?), bool? timestamps = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task ReadNamespacedPodLogAsync(this IKubernetes operations, string name, string namespaceParameter, string container = default(string), bool? follow = default(bool?), int? limitBytes = default(int?), string pretty = default(string), bool? previous = default(bool?), int? sinceSeconds = default(int?), int? tailLines = default(int?), bool? timestamps = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ReadNamespacedPodLogWithHttpMessagesAsync(name, namespaceParameter, container, follow, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
+ var _result = await operations.ReadNamespacedPodLogWithHttpMessagesAsync(name, namespaceParameter, container, follow, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps, null, cancellationToken).ConfigureAwait(false);
+ _result.Request.Dispose();
+ return _result.Body;
}
///