All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.k8s.api.apiserverinternal.v1alpha1.ServerStorageVersion Maven / Gradle / Ivy

There is a newer version: 1.30.4
Show newest version
package io.k8s.api.apiserverinternal.v1alpha1;

import java.lang.String;
import java.util.List;

/**
 * An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend.
 */
public class ServerStorageVersion {
  public String apiServerID;

  public List decodableVersions;

  public String encodingVersion;

  public List servedVersions;

  /**
   * The ID of the reporting API server.
   */
  public ServerStorageVersion apiServerID(String apiServerID) {
    this.apiServerID = apiServerID;
    return this;
  }

  /**
   * The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions.
   */
  public ServerStorageVersion decodableVersions(List decodableVersions) {
    this.decodableVersions = decodableVersions;
    return this;
  }

  /**
   * The API server encodes the object to this version when persisting it in the backend (e.g., etcd).
   */
  public ServerStorageVersion encodingVersion(String encodingVersion) {
    this.encodingVersion = encodingVersion;
    return this;
  }

  /**
   * The API server can serve these versions. DecodableVersions must include all ServedVersions.
   */
  public ServerStorageVersion servedVersions(List servedVersions) {
    this.servedVersions = servedVersions;
    return this;
  }

  public static ServerStorageVersion serverStorageVersion() {
    return new ServerStorageVersion();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy