Class BetaRbacRolePermission.Builder
-
- All Implemented Interfaces:
public final class BetaRbacRolePermission.BuilderA builder for BetaRbacRolePermission.
-
-
Method Summary
-
-
Method Detail
-
action
final BetaRbacRolePermission.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 BetaRbacRolePermission.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 BetaRbacRolePermission.Builder resource(BetaRbacRolePermission.Resource resource)
What the permission applies to.
A tagged union:
typenames the kind of resource and determines which identifier fields are present.
-
resource
final BetaRbacRolePermission.Builder resource(JsonField<BetaRbacRolePermission.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 BetaRbacRolePermission.Builder resource(BetaRbacOrganizationPermissionResource organization)
Alias for calling resource with
Resource.ofOrganization(organization).
-
resource
final BetaRbacRolePermission.Builder resource(BetaRbacConnectorToolPermissionResource connectorTool)
Alias for calling resource with
Resource.ofConnectorTool(connectorTool).
-
resource
final BetaRbacRolePermission.Builder resource(BetaRbacConnectorScopePermissionResource connectorScope)
Alias for calling resource with
Resource.ofConnectorScope(connectorScope).
-
resource
final BetaRbacRolePermission.Builder resource(BetaRbacConnectorPermissionResource connector)
Alias for calling resource with
Resource.ofConnector(connector).
-
resource
final BetaRbacRolePermission.Builder resource(BetaRbacAllConnectorsPermissionResource allConnectors)
Alias for calling resource with
Resource.ofAllConnectors(allConnectors).
-
type
final BetaRbacRolePermission.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 BetaRbacRolePermission.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
organizationResource
final BetaRbacRolePermission.Builder organizationResource(String organizationId)
Alias for calling resource with the following:
BetaRbacOrganizationPermissionResource.builder() .organizationId(organizationId) .build()
-
connectorResource
final BetaRbacRolePermission.Builder connectorResource(String connectorId)
Alias for calling resource with the following:
BetaRbacConnectorPermissionResource.builder() .connectorId(connectorId) .build()
-
putAdditionalProperty
final BetaRbacRolePermission.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaRbacRolePermission.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaRbacRolePermission.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaRbacRolePermission.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaRbacRolePermission build()
Returns an immutable instance of BetaRbacRolePermission.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.action() .resource()
-
-
-
-