Class V1APIResourceList

java.lang.Object
io.kubernetes.client.openapi.models.V1APIResourceList

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1APIResourceList extends Object
APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.
  • Field Details

  • Constructor Details

    • V1APIResourceList

      public V1APIResourceList()
  • Method Details

    • apiVersion

      public V1APIResourceList apiVersion(String apiVersion)
    • getApiVersion

      @Nullable public String getApiVersion()
      APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
      Returns:
      apiVersion
    • setApiVersion

      public void setApiVersion(String apiVersion)
    • groupVersion

      public V1APIResourceList groupVersion(String groupVersion)
    • getGroupVersion

      @Nonnull public String getGroupVersion()
      groupVersion is the group and version this APIResourceList is for.
      Returns:
      groupVersion
    • setGroupVersion

      public void setGroupVersion(String groupVersion)
    • kind

      public V1APIResourceList kind(String kind)
    • getKind

      @Nullable public String getKind()
      Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      Returns:
      kind
    • setKind

      public void setKind(String kind)
    • resources

      public V1APIResourceList resources(List<V1APIResource> resources)
    • addResourcesItem

      public V1APIResourceList addResourcesItem(V1APIResource resourcesItem)
    • getResources

      @Nonnull public List<V1APIResource> getResources()
      resources contains the name of the resources and if they are namespaced.
      Returns:
      resources
    • setResources

      public void setResources(List<V1APIResource> resources)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates the JSON Object and throws an exception if issues found
      Parameters:
      jsonObj - JSON Object
      Throws:
      IOException - if the JSON Object is invalid with respect to V1APIResourceList
    • fromJson

      public static V1APIResourceList fromJson(String jsonString) throws IOException
      Create an instance of V1APIResourceList given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of V1APIResourceList
      Throws:
      IOException - if the JSON string is invalid with respect to V1APIResourceList
    • toJson

      public String toJson()
      Convert an instance of V1APIResourceList to an JSON string
      Returns:
      JSON string