Interface IAMEffectivePermissions
- All Known Implementing Classes:
IAMEffectivePermissionsImpl
public interface IAMEffectivePermissions
Client interface for resolving IAM effective (computed) permissions.
Resolves the permissions a principal effectively holds within a project for a given service
(GET /v1/projects/{projectId}/effectivePermissions, operationId
getEffectivePermissions).
-
Method Summary
Modifier and TypeMethodDescriptionResolves the effective permissions for a project and service (operationIdgetEffectivePermissions).Resolves the effective permissions for a project and service, optionally scoped by project ERN (operationIdgetEffectivePermissions).
-
Method Details
-
get
Resolves the effective permissions for a project and service (operationIdgetEffectivePermissions).- Parameters:
projectId- the IAM project id,project:<id>(for exampleproject:abc-123); a bare Resource Manager UUID is rejected, convert it withProjectIds.of(String). Project-scoped endpoints need an STS access-policy token (new IAM(BearerTokenProvider))serviceId- the service to resolve permissions for- Returns:
- the resolved effective permissions
-
get
Resolves the effective permissions for a project and service, optionally scoped by project ERN (operationIdgetEffectivePermissions).- Parameters:
projectId- the IAM project id,project:<id>(for exampleproject:abc-123); a bare Resource Manager UUID is rejected, convert it withProjectIds.of(String). Project-scoped endpoints need an STS access-policy token (new IAM(BearerTokenProvider))serviceId- the service to resolve permissions forprojectErn- the project ERN to scope resolution to, ornull- Returns:
- the resolved effective permissions
-