Class RbacRolePermission.Builder
-
- All Implemented Interfaces:
public final class RbacRolePermission.BuilderA builder for RbacRolePermission.
-
-
Method Summary
Modifier and Type Method Description final RbacRolePermission.Builderaction(String action)Action the permission grants on the resource. final RbacRolePermission.Builderaction(JsonField<String> action)Sets Builder.action to an arbitrary JSON value. final RbacRolePermission.Builderresource(RbacRolePermission.Resource resource)What the permission applies to. final RbacRolePermission.Builderresource(JsonField<RbacRolePermission.Resource> resource)Sets Builder.resource to an arbitrary JSON value. final RbacRolePermission.Builderresource(RbacOrganizationPermissionResource organization)Alias for calling resource with Resource.ofOrganization(organization).final RbacRolePermission.Builderresource(RbacConnectorToolPermissionResource connectorTool)Alias for calling resource with Resource.ofConnectorTool(connectorTool).final RbacRolePermission.Builderresource(RbacConnectorScopePermissionResource connectorScope)Alias for calling resource with Resource.ofConnectorScope(connectorScope).final RbacRolePermission.Builderresource(RbacConnectorPermissionResource connector)Alias for calling resource with Resource.ofConnector(connector).final RbacRolePermission.Builderresource(RbacAllConnectorsPermissionResource allConnectors)Alias for calling resource with Resource.ofAllConnectors(allConnectors).final RbacRolePermission.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final RbacRolePermission.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final RbacRolePermission.BuilderorganizationResource(String organizationId)Alias for calling resource with the following: RbacOrganizationPermissionResource.builder() .organizationId(organizationId) .build()final RbacRolePermission.BuilderconnectorResource(String connectorId)Alias for calling resource with the following: RbacConnectorPermissionResource.builder() .connectorId(connectorId) .build()final RbacRolePermission.BuilderputAdditionalProperty(String key, JsonValue value)final RbacRolePermission.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final RbacRolePermission.BuilderremoveAdditionalProperty(String key)final RbacRolePermission.BuilderremoveAllAdditionalProperties(Set<String> keys)final RbacRolePermissionbuild()Returns an immutable instance of RbacRolePermission. -
-
Method Detail
-
action
final RbacRolePermission.Builder action(String action)
Action the permission grants on the resource.
The vocabulary follows the resource: an
organizationgrant carries a product-feature entitlement (for examplechat), an admin-panel permission entitlement (permission_*), or a blanket capability-access mode —capability_access_allgrants every product-feature entitlement exceptinference_hooks_inspection, which a role holds only through its own row, andcapability_access_all_gagrants the subset of those for stable features as it stands at permission-check time; neither mode grants model-access entitlements. A consumer enumerating a role's per-feature grants should treat a blanket row as granting every product-feature entitlement it covers, or it will under-report the role's effective access. Aconnector_toolgrant carries a tool-access action (useoralways_allow); aconnector_scopegrant carries the scope actiongrant(the role may receive the named OAuth scope when tokens are minted for the connector);connectorandall_connectorsgrants carry a tool-access action, the scope action, or an authentication-method action (interactiveormanaged).
-
action
final RbacRolePermission.Builder action(JsonField<String> action)
Sets Builder.action to an arbitrary JSON value.
You should usually call Builder.action with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
resource
final RbacRolePermission.Builder resource(RbacRolePermission.Resource resource)
What the permission applies to.
A tagged union:
typenames the kind of resource and determines which identifier fields are present.
-
resource
final RbacRolePermission.Builder resource(JsonField<RbacRolePermission.Resource> resource)
Sets Builder.resource to an arbitrary JSON value.
You should usually call Builder.resource with a well-typed Resource value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
resource
final RbacRolePermission.Builder resource(RbacOrganizationPermissionResource organization)
Alias for calling resource with
Resource.ofOrganization(organization).
-
resource
final RbacRolePermission.Builder resource(RbacConnectorToolPermissionResource connectorTool)
Alias for calling resource with
Resource.ofConnectorTool(connectorTool).
-
resource
final RbacRolePermission.Builder resource(RbacConnectorScopePermissionResource connectorScope)
Alias for calling resource with
Resource.ofConnectorScope(connectorScope).
-
resource
final RbacRolePermission.Builder resource(RbacConnectorPermissionResource connector)
Alias for calling resource with
Resource.ofConnector(connector).
-
resource
final RbacRolePermission.Builder resource(RbacAllConnectorsPermissionResource allConnectors)
Alias for calling resource with
Resource.ofAllConnectors(allConnectors).
-
type
final RbacRolePermission.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("rbac_role_permission")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final RbacRolePermission.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
organizationResource
final RbacRolePermission.Builder organizationResource(String organizationId)
Alias for calling resource with the following:
RbacOrganizationPermissionResource.builder() .organizationId(organizationId) .build()
-
connectorResource
final RbacRolePermission.Builder connectorResource(String connectorId)
Alias for calling resource with the following:
RbacConnectorPermissionResource.builder() .connectorId(connectorId) .build()
-
putAdditionalProperty
final RbacRolePermission.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RbacRolePermission.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RbacRolePermission.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RbacRolePermission.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RbacRolePermission build()
Returns an immutable instance of RbacRolePermission.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.action() .resource()
-
-
-
-