Class AuthConfig

java.lang.Object
io.github.alersrt.pod4j.openapi.model.AuthConfig

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-11-19T11:19:05.435500352+07:00[Asia/Barnaul]", comments="Generator version: 7.7.0") public class AuthConfig extends Object
AuthConfig contains authorization information for connecting to a Registry
  • Field Details

  • Constructor Details

    • AuthConfig

      public AuthConfig()
  • Method Details

    • auth

      public AuthConfig auth(String auth)
    • getAuth

      @Nullable public String getAuth()
      Get auth
      Returns:
      auth
    • setAuth

      public void setAuth(String auth)
    • email

      public AuthConfig email(String email)
    • getEmail

      @Nullable public String getEmail()
      Email is an optional value associated with the username. This field is deprecated and will be removed in a later version of docker.
      Returns:
      email
    • setEmail

      public void setEmail(String email)
    • identitytoken

      public AuthConfig identitytoken(String identitytoken)
    • getIdentitytoken

      @Nullable public String getIdentitytoken()
      IdentityToken is used to authenticate the user and get an access token for the registry.
      Returns:
      identitytoken
    • setIdentitytoken

      public void setIdentitytoken(String identitytoken)
    • password

      public AuthConfig password(String password)
    • getPassword

      @Nullable public String getPassword()
      Get password
      Returns:
      password
    • setPassword

      public void setPassword(String password)
    • registrytoken

      public AuthConfig registrytoken(String registrytoken)
    • getRegistrytoken

      @Nullable public String getRegistrytoken()
      RegistryToken is a bearer token to be sent to a registry
      Returns:
      registrytoken
    • setRegistrytoken

      public void setRegistrytoken(String registrytoken)
    • serveraddress

      public AuthConfig serveraddress(String serveraddress)
    • getServeraddress

      @Nullable public String getServeraddress()
      Get serveraddress
      Returns:
      serveraddress
    • setServeraddress

      public void setServeraddress(String serveraddress)
    • username

      public AuthConfig username(String username)
    • getUsername

      @Nullable public String getUsername()
      Get username
      Returns:
      username
    • setUsername

      public void setUsername(String username)
    • 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 AuthConfig
    • fromJson

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

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