Package net.stickycode.kuuty.model.v18
Class IoK8sApiCoreV1ServiceAccountTokenProjection
- java.lang.Object
-
- net.stickycode.kuuty.model.v18.IoK8sApiCoreV1ServiceAccountTokenProjection
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-11-26T11:01:11.402583+13:00[Pacific/Auckland]") public class IoK8sApiCoreV1ServiceAccountTokenProjection extends Object
ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise).
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AUDIENCEstatic StringJSON_PROPERTY_EXPIRATION_SECONDSstatic StringJSON_PROPERTY_PATH
-
Constructor Summary
Constructors Constructor Description IoK8sApiCoreV1ServiceAccountTokenProjection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IoK8sApiCoreV1ServiceAccountTokenProjectionaudience(String audience)booleanequals(Object o)IoK8sApiCoreV1ServiceAccountTokenProjectionexpirationSeconds(Long expirationSeconds)StringgetAudience()Audience is the intended audience of the token.LonggetExpirationSeconds()ExpirationSeconds is the requested duration of validity of the service account token.StringgetPath()Path is the path relative to the mount point of the file to project the token into.inthashCode()IoK8sApiCoreV1ServiceAccountTokenProjectionpath(String path)voidsetAudience(String audience)voidsetExpirationSeconds(Long expirationSeconds)voidsetPath(String path)StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_AUDIENCE
public static final String JSON_PROPERTY_AUDIENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EXPIRATION_SECONDS
public static final String JSON_PROPERTY_EXPIRATION_SECONDS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PATH
public static final String JSON_PROPERTY_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
audience
public IoK8sApiCoreV1ServiceAccountTokenProjection audience(String audience)
-
getAudience
@Nullable public String getAudience()
Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver.- Returns:
- audience
-
setAudience
public void setAudience(String audience)
-
expirationSeconds
public IoK8sApiCoreV1ServiceAccountTokenProjection expirationSeconds(Long expirationSeconds)
-
getExpirationSeconds
@Nullable public Long getExpirationSeconds()
ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes.- Returns:
- expirationSeconds
-
setExpirationSeconds
public void setExpirationSeconds(Long expirationSeconds)
-
path
public IoK8sApiCoreV1ServiceAccountTokenProjection path(String path)
-
getPath
public String getPath()
Path is the path relative to the mount point of the file to project the token into.- Returns:
- path
-
setPath
public void setPath(String path)
-
-