Package ai.vectros.types
Class PingResponse
java.lang.Object
ai.vectros.types.PingResponse
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic final classstatic interfacestatic interfacestatic interfacestatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptionstatic PingResponse.StatusStagebuilder()booleaninthashCode()toString()
-
Method Details
-
getStatus
- Returns:
- Always "ok" on a successful (2xx) response. Failures are returned as a non-2xx status, so this value is never anything but "ok".
-
getTenantId
- Returns:
- Identifier of the account this credential authenticates under.
-
getEnvironment
- Returns:
- The environment that served this response.
-
getPrincipalType
- Returns:
- The kind of credential you authenticated with:
root_key= an unscopedsk_*API key;scoped_key= anssk_*API key with a bound access profile;token= a short-livedst_*token (its expiry is intokenExpiresAt).
-
getPrincipalKeyId
- Returns:
- Stable identifier for your credential. For
sk_*andssk_*keys this is the key id; forst_*tokens it is the token's JWT id (jti).
-
getPrincipalLabel
- Returns:
- The label you set on the originating
sk_*orssk_*key. Omitted when no label is set, or when the credential is anst_*token.
-
getAllowedActions
- Returns:
- The actions this credential is allowed to perform. Present only when
principalTypeisscoped_key.
-
getDataScope
-
getTokenExpiresAt
- Returns:
- When the token expires, as seconds since the Unix epoch (mirrors the JWT
expclaim). Present only whenprincipalTypeistoken.
-
equals
-
getAdditionalProperties
-
hashCode
public int hashCode() -
toString
-
builder
-