2020-04-22 13:41:45 -07:00
|
|
|
// <auto-generated>
|
2021-08-09 07:27:32 -07:00
|
|
|
// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator
|
2020-04-22 13:41:45 -07:00
|
|
|
// Changes may cause incorrect behavior and will be lost if the code is
|
|
|
|
|
// regenerated.
|
|
|
|
|
// </auto-generated>
|
2018-05-01 00:07:27 +02:00
|
|
|
using k8s.Models;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace k8s
|
|
|
|
|
{
|
|
|
|
|
public partial class Kubernetes
|
|
|
|
|
{
|
|
|
|
|
{{#.}}
|
2020-11-22 14:52:09 -08:00
|
|
|
/// <inheritdoc/>
|
2018-05-03 07:04:47 +02:00
|
|
|
public Task<Watcher<{{GetClassName operation}}>> {{GetMethodName operation}}(
|
2018-05-01 00:07:27 +02:00
|
|
|
{{#operation.actualParameters}}
|
|
|
|
|
{{#isRequired}}
|
2021-08-09 07:27:32 -07:00
|
|
|
{{GetDotNetType type name isRequired format}} {{GetDotNetName name}},
|
2018-05-01 00:07:27 +02:00
|
|
|
{{/isRequired}}
|
|
|
|
|
{{/operation.actualParameters}}
|
|
|
|
|
{{#operation.actualParameters}}
|
|
|
|
|
{{^isRequired}}
|
|
|
|
|
{{GetDotNetType .}} {{GetDotNetName .}} = null,
|
|
|
|
|
{{/isRequired}}
|
|
|
|
|
{{/operation.actualParameters}}
|
|
|
|
|
Dictionary<string, List<string>> customHeaders = null,
|
2018-05-03 07:04:47 +02:00
|
|
|
Action<WatchEventType, {{GetClassName operation}}> onEvent = null,
|
2018-05-01 00:07:27 +02:00
|
|
|
Action<Exception> onError = null,
|
2018-06-27 23:38:28 +02:00
|
|
|
Action onClosed = null,
|
2018-05-01 00:07:27 +02:00
|
|
|
CancellationToken cancellationToken = default(CancellationToken))
|
|
|
|
|
{
|
|
|
|
|
string path = $"{{GetPathExpression .}}";
|
2021-08-09 07:27:32 -07:00
|
|
|
return WatchObjectAsync<{{GetClassName operation}}>(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken);
|
2018-05-01 00:07:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{{/.}}
|
|
|
|
|
}
|
|
|
|
|
}
|