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
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic AuthConfigCreate an instance of AuthConfig given an JSON stringgetAuth()Get authgetEmail()Email is an optional value associated with the username.IdentityToken is used to authenticate the user and get an access token for the registry.Get passwordRegistryToken is a bearer token to be sent to a registryGet serveraddressGet usernameinthashCode()identitytoken(String identitytoken) registrytoken(String registrytoken) serveraddress(String serveraddress) voidvoidvoidsetIdentitytoken(String identitytoken) voidsetPassword(String password) voidsetRegistrytoken(String registrytoken) voidsetServeraddress(String serveraddress) voidsetUsername(String username) toJson()Convert an instance of AuthConfig to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_AUTH
- See Also:
-
SERIALIZED_NAME_EMAIL
- See Also:
-
SERIALIZED_NAME_IDENTITYTOKEN
- See Also:
-
SERIALIZED_NAME_PASSWORD
- See Also:
-
SERIALIZED_NAME_REGISTRYTOKEN
- See Also:
-
SERIALIZED_NAME_SERVERADDRESS
- See Also:
-
SERIALIZED_NAME_USERNAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
AuthConfig
public AuthConfig()
-
-
Method Details
-
auth
-
getAuth
Get auth- Returns:
- auth
-
setAuth
-
email
-
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:
-
setEmail
-
identitytoken
-
getIdentitytoken
IdentityToken is used to authenticate the user and get an access token for the registry.- Returns:
- identitytoken
-
setIdentitytoken
-
password
-
getPassword
Get password- Returns:
- password
-
setPassword
-
registrytoken
-
getRegistrytoken
RegistryToken is a bearer token to be sent to a registry- Returns:
- registrytoken
-
setRegistrytoken
-
serveraddress
-
getServeraddress
Get serveraddress- Returns:
- serveraddress
-
setServeraddress
-
username
-
getUsername
Get username- Returns:
- username
-
setUsername
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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
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
Convert an instance of AuthConfig to an JSON string- Returns:
- JSON string
-