Class V1ResourceAttributes

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") 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

    • group

      public V1ResourceAttributes group(String group)
    • getGroup

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

      public void setGroup(String group)
    • name

      public V1ResourceAttributes name(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(String name)
    • namespace

      public V1ResourceAttributes namespace(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(String namespace)
    • resource

      public V1ResourceAttributes resource(String resource)
    • getResource

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

      public void setResource(String resource)
    • subresource

      public V1ResourceAttributes subresource(String subresource)
    • getSubresource

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

      public void setSubresource(String subresource)
    • verb

      public V1ResourceAttributes verb(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(String verb)
    • version

      public V1ResourceAttributes version(String version)
    • getVersion

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

      public void setVersion(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
    • 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 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