Class V1ResourceAttributes

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-05-20T20:47:13.890592Z[Etc/UTC]", comments="Generator version: 7.13.0") public class V1ResourceAttributes extends Object
ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface
  • Field Details

  • Constructor Details

    • V1ResourceAttributes

      public V1ResourceAttributes()
  • Method Details

    • fieldSelector

      public V1ResourceAttributes fieldSelector(@Nullable V1FieldSelectorAttributes fieldSelector)
    • getFieldSelector

      @Nullable public V1FieldSelectorAttributes getFieldSelector()
      Get fieldSelector
      Returns:
      fieldSelector
    • setFieldSelector

      public void setFieldSelector(@Nullable V1FieldSelectorAttributes fieldSelector)
    • group

      public V1ResourceAttributes group(@Nullable String group)
    • getGroup

      @Nullable public String getGroup()
      Group is the API Group of the Resource. \"*\" means all.
      Returns:
      group
    • setGroup

      public void setGroup(@Nullable String group)
    • labelSelector

      public V1ResourceAttributes labelSelector(@Nullable V1LabelSelectorAttributes labelSelector)
    • getLabelSelector

      @Nullable public V1LabelSelectorAttributes getLabelSelector()
      Get labelSelector
      Returns:
      labelSelector
    • setLabelSelector

      public void setLabelSelector(@Nullable V1LabelSelectorAttributes labelSelector)
    • name

      public V1ResourceAttributes name(@Nullable String name)
    • getName

      @Nullable public String getName()
      Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all.
      Returns:
      name
    • setName

      public void setName(@Nullable String name)
    • namespace

      public V1ResourceAttributes namespace(@Nullable String namespace)
    • getNamespace

      @Nullable public String getNamespace()
      Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview
      Returns:
      namespace
    • setNamespace

      public void setNamespace(@Nullable String namespace)
    • resource

      public V1ResourceAttributes resource(@Nullable String resource)
    • getResource

      @Nullable public String getResource()
      Resource is one of the existing resource types. \"*\" means all.
      Returns:
      resource
    • setResource

      public void setResource(@Nullable String resource)
    • subresource

      public V1ResourceAttributes subresource(@Nullable String subresource)
    • getSubresource

      @Nullable public String getSubresource()
      Subresource is one of the existing resource types. \"\" means none.
      Returns:
      subresource
    • setSubresource

      public void setSubresource(@Nullable String subresource)
    • verb

      public V1ResourceAttributes verb(@Nullable String verb)
    • getVerb

      @Nullable public String getVerb()
      Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all.
      Returns:
      verb
    • setVerb

      public void setVerb(@Nullable String verb)
    • version

      public V1ResourceAttributes version(@Nullable String version)
    • getVersion

      @Nullable public String getVersion()
      Version is the API Version of the Resource. \"*\" means all.
      Returns:
      version
    • setVersion

      public void setVersion(@Nullable String version)
    • 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
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to V1ResourceAttributes
    • fromJson

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

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