Implementing a more modular API (#1627)
* fix typo * Add modular API * Use x-kubernetes-action instead of operationId to generate method names * fix * Clean code style warnings * Refactor client constructors to use Kubernetes type instead of IKubernetes * Add ClientSet tests for Kubernetes pod operations * Fix order of parameters in Pod API calls for consistency * Enhance documentation for ClientSet and ResourceClient classes * Refactor ClientSet and GroupClient for Kubernetes usage * Refactor Pod API calls in tests to use singular form for consistency * Refactor Pod API calls to use 'Create' and 'Update' methods for consistency
This commit is contained in:
16
src/KubernetesClient/ClientSets/ResourceClient.cs
Normal file
16
src/KubernetesClient/ClientSets/ResourceClient.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace k8s.ClientSets
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a set of Kubernetes clients for interacting with the Kubernetes API.
|
||||
/// This class provides access to various client implementations for managing Kubernetes resources.
|
||||
/// </summary>
|
||||
public abstract class ResourceClient
|
||||
{
|
||||
protected Kubernetes Client { get; }
|
||||
|
||||
public ResourceClient(Kubernetes kubernetes)
|
||||
{
|
||||
Client = kubernetes;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user