Interface IAMResourceTypes
- All Known Implementing Classes:
IAMResourceTypesImpl
public interface IAMResourceTypes
Client interface for discovering the IAM access model: resource types, actions, action sets,
resource-type-to-action mappings, and per-service policy schemas. All operations are
project-scoped reads.
Most list results are opaque-token paginated: each response carries a nextPageToken;
pass it back as the pageToken argument to fetch the next page. The
listResourceTypeActions operation is an exception - it uses cursor-based pagination keyed
on lastAction (the action of the last item received).
-
Method Summary
Modifier and TypeMethodDescriptiongetServicePolicySchema(String projectId, String serviceId) Gets the policy schema for a service within a project (operationIdgetServicePolicySchema).listActions(String projectId, String serviceId) Lists the available actions for a service within a project, first page (operationIdlistActions).listActions(String projectId, String serviceId, String pageToken, Integer pageSize, String projectErn) Lists the available actions for a service within a project, controlling pagination (operationIdlistActions).listActionSets(String projectId, String serviceId) Lists the action sets for a service within a project, first page (operationIdlistActionSets).listActionSets(String projectId, String serviceId, String pageToken, Integer pageSize, String projectErn) Lists the action sets for a service within a project, controlling pagination (operationIdlistActionSets).listResourceTypeActions(String projectId, String serviceId, String resourceType) Pages the resource-type-to-action mappings for a service and resource type within a project, first page (operationIdpageResourceTypeActions).listResourceTypeActions(String projectId, String serviceId, String resourceType, String resourceTypeServiceId, String lastAction, Integer pageSize, String projectErn) Pages the resource-type-to-action mappings for a service and resource type within a project, controlling cursor-based pagination (operationIdpageResourceTypeActions).listResourceTypes(String projectId, String serviceId) Lists the registered resource types for a service within a project, first page (operationIdlistResourceTypes).listResourceTypes(String projectId, String serviceId, String pageToken, Integer pageSize, String projectErn) Lists the registered resource types for a service within a project, controlling pagination (operationIdlistResourceTypes).
-
Method Details
-
listResourceTypes
Lists the registered resource types for a service within a project, first page (operationIdlistResourceTypes).- 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 fully qualified service id to list resource types for (required)- Returns:
- the first page of resource types
-
listResourceTypes
ResourceTypeList listResourceTypes(String projectId, String serviceId, String pageToken, Integer pageSize, String projectErn) Lists the registered resource types for a service within a project, controlling pagination (operationIdlistResourceTypes).- 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 fully qualified service id to list resource types for (required)pageToken- the opaque page token from a prior response, ornullfor the first pagepageSize- the maximum number of results per page, ornullfor the server defaultprojectErn- the project ERN (optional, mutually exclusive withprojectId), ornull- Returns:
- the requested page of resource types
-
listActions
Lists the available actions for a service within a project, first page (operationIdlistActions).- 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 fully qualified service id to list actions for (required)- Returns:
- the first page of actions
-
listActions
ActionList listActions(String projectId, String serviceId, String pageToken, Integer pageSize, String projectErn) Lists the available actions for a service within a project, controlling pagination (operationIdlistActions).- 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 fully qualified service id to list actions for (required)pageToken- the opaque page token from a prior response, ornullfor the first pagepageSize- the maximum number of results per page, ornullfor the server defaultprojectErn- the project ERN (optional, mutually exclusive withprojectId), ornull- Returns:
- the requested page of actions
-
listActionSets
Lists the action sets for a service within a project, first page (operationIdlistActionSets).- 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 list action sets for- Returns:
- the first page of action sets
-
listActionSets
ServiceActionSetList listActionSets(String projectId, String serviceId, String pageToken, Integer pageSize, String projectErn) Lists the action sets for a service within a project, controlling pagination (operationIdlistActionSets).- 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 list action sets forpageToken- the opaque page token from a prior response, ornullfor the first pagepageSize- the maximum number of results per page, ornullfor the server defaultprojectErn- the project ERN (optional, mutually exclusive withprojectId), ornull- Returns:
- the requested page of action sets
-
listResourceTypeActions
ResourceTypeActionPage listResourceTypeActions(String projectId, String serviceId, String resourceType) Pages the resource-type-to-action mappings for a service and resource type within a project, first page (operationIdpageResourceTypeActions).- 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 fully qualified service id owning the resource type (required)resourceType- the resource type within the service (required)- Returns:
- the first page of resource-type actions
-
listResourceTypeActions
ResourceTypeActionPage listResourceTypeActions(String projectId, String serviceId, String resourceType, String resourceTypeServiceId, String lastAction, Integer pageSize, String projectErn) Pages the resource-type-to-action mappings for a service and resource type within a project, controlling cursor-based pagination (operationIdpageResourceTypeActions).This operation uses cursor-based pagination keyed on
lastAction: pass theactionof the last item received from the previous page aslastActionto retrieve the next page.- 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 fully qualified service id owning the resource type (required)resourceType- the resource type within the service (required)resourceTypeServiceId- the service id of the resource type when different fromserviceId, ornulllastAction- the id of the last action received (the cursor), ornullfor the first pagepageSize- the maximum number of results per page, ornullfor the server defaultprojectErn- the project ERN (optional, mutually exclusive withprojectId), ornull- Returns:
- the requested page of resource-type actions
-
getServicePolicySchema
Gets the policy schema for a service within a project (operationIdgetServicePolicySchema).- 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 fetch the policy schema for- Returns:
- the service policy schema
-