Package com.influxdb.client.domain
Class Authorization
java.lang.Object
com.influxdb.client.domain.AuthorizationUpdateRequest
com.influxdb.client.domain.Authorization
Authorization
-
Nested Class Summary
Nested classes/interfaces inherited from class com.influxdb.client.domain.AuthorizationUpdateRequest
AuthorizationUpdateRequest.StatusEnum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class com.influxdb.client.domain.AuthorizationUpdateRequest
SERIALIZED_NAME_DESCRIPTION, SERIALIZED_NAME_STATUS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddPermissionsItem
(Permission permissionsItem) boolean
Get createdAtgetId()
Get idgetLinks()
Get linksgetOrg()
Name of the organization that the token is scoped to.getOrgID()
ID of the organization that the authorization is scoped to.List of permissions for an authorization.getToken()
Token used to authenticate API requests.Get updatedAtgetUser()
Name of the user that created and owns the token.ID of the user that created and owns the token.int
hashCode()
links
(AuthorizationLinks links) permissions
(List<Permission> permissions) void
setLinks
(AuthorizationLinks links) void
void
setPermissions
(List<Permission> permissions) toString()
Methods inherited from class com.influxdb.client.domain.AuthorizationUpdateRequest
description, getDescription, getStatus, setDescription, setStatus, status
-
Field Details
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
SERIALIZED_NAME_ORG_I_D
- See Also:
-
SERIALIZED_NAME_PERMISSIONS
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_TOKEN
- See Also:
-
SERIALIZED_NAME_USER_I_D
- See Also:
-
SERIALIZED_NAME_USER
- See Also:
-
SERIALIZED_NAME_ORG
- See Also:
-
SERIALIZED_NAME_LINKS
- See Also:
-
-
Constructor Details
-
Authorization
public Authorization()
-
-
Method Details
-
getCreatedAt
Get createdAt- Returns:
- createdAt
-
getUpdatedAt
Get updatedAt- Returns:
- updatedAt
-
orgID
-
getOrgID
ID of the organization that the authorization is scoped to.- Returns:
- orgID
-
setOrgID
-
permissions
-
addPermissionsItem
-
getPermissions
List of permissions for an authorization. An authorization must have at least one permission.- Returns:
- permissions
-
setPermissions
-
getId
Get id- Returns:
- id
-
getToken
Token used to authenticate API requests.- Returns:
- token
-
getUserID
ID of the user that created and owns the token.- Returns:
- userID
-
getUser
Name of the user that created and owns the token.- Returns:
- user
-
getOrg
Name of the organization that the token is scoped to.- Returns:
- org
-
links
-
getLinks
Get links- Returns:
- links
-
setLinks
-
equals
- Overrides:
equals
in classAuthorizationUpdateRequest
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAuthorizationUpdateRequest
-
toString
- Overrides:
toString
in classAuthorizationUpdateRequest
-