Class OperationPermissionPlan
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.OperationPermissionPlan
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class OperationPermissionPlan
extends Object
What a conferral would add to the actor. required and confersNew always answer; alreadyHeld and toAdd name scopes and are null unless the caller holds admin.tenant.actor.roles.read — namesVisible says which of the two shapes this is, so a withheld list is never confused with an empty one. No member states how MANY scopes would be added: without roles.read the caller learns only whether anything would be.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAlreadyHeldItem(String alreadyHeldItem) addRequiredItem(String requiredItem) addToAddItem(String toAddItem) alreadyHeld(List<String> alreadyHeld) confersNew(Boolean confersNew) booleanstatic OperationPermissionPlanCreate an instance of OperationPermissionPlan given an JSON stringThe required scopes the actor already holds, sorted. null when the caller does not hold admin.tenant.actor.roles.read.true when the conferral would add at least one operation scope the actor does not already hold; false when it would add none.true when alreadyHeld and toAdd carry names; false when they are withheld and are null.Every operation scope the chosen capability set requires, sorted.getToAdd()The required scopes this conferral would add, sorted. null when the caller does not hold admin.tenant.actor.roles.read.inthashCode()namesVisible(Boolean namesVisible) voidsetAlreadyHeld(List<String> alreadyHeld) voidsetConfersNew(Boolean confersNew) voidsetNamesVisible(Boolean namesVisible) voidsetRequired(List<String> required) voidtoJson()Convert an instance of OperationPermissionPlan to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundstatic voidvalidateJsonElementAsCandidate(com.google.gson.JsonElement jsonElement) Validates the JSON Element as a candidate of a oneOf schema: the checks ofvalidateJsonElement(JsonElement), and the element carries no member this model does not declare.
-
Field Details
-
SERIALIZED_NAME_ALREADY_HELD
- See Also:
-
SERIALIZED_NAME_CONFERS_NEW
- See Also:
-
SERIALIZED_NAME_NAMES_VISIBLE
- See Also:
-
SERIALIZED_NAME_REQUIRED
- See Also:
-
SERIALIZED_NAME_TO_ADD
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
OperationPermissionPlan
public OperationPermissionPlan()
-
-
Method Details
-
alreadyHeld
-
addAlreadyHeldItem
-
getAlreadyHeld
The required scopes the actor already holds, sorted. null when the caller does not hold admin.tenant.actor.roles.read.- Returns:
- alreadyHeld
-
setAlreadyHeld
-
confersNew
-
getConfersNew
true when the conferral would add at least one operation scope the actor does not already hold; false when it would add none. Always answers, including when the names are withheld. Without admin.tenant.actor.roles.read it is the only thing the caller learns about the actor's holdings, and the write itself reveals it anyway by being admitted or refused.- Returns:
- confersNew
-
setConfersNew
-
namesVisible
-
getNamesVisible
true when alreadyHeld and toAdd carry names; false when they are withheld and are null.- Returns:
- namesVisible
-
setNamesVisible
-
required
-
addRequiredItem
-
getRequired
Every operation scope the chosen capability set requires, sorted. Always present.- Returns:
- required
-
setRequired
-
toAdd
-
addToAddItem
-
getToAdd
The required scopes this conferral would add, sorted. null when the caller does not hold admin.tenant.actor.roles.read.- Returns:
- toAdd
-
setToAdd
-
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 OperationPermissionPlan
-
validateJsonElementAsCandidate
public static void validateJsonElementAsCandidate(com.google.gson.JsonElement jsonElement) throws IOException Validates the JSON Element as a candidate of a oneOf schema: the checks ofvalidateJsonElement(JsonElement), and the element carries no member this model does not declare. A oneOf schema without a discriminator tells its candidates apart by their member sets, so a candidate is matched on its closed member set.- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is not a OperationPermissionPlan
-
fromJson
Create an instance of OperationPermissionPlan given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of OperationPermissionPlan
- Throws:
IOException- if the JSON string is invalid with respect to OperationPermissionPlan
-
toJson
Convert an instance of OperationPermissionPlan to an JSON string- Returns:
- JSON string
-