Interface WorkspaceService
-
- All Implemented Interfaces:
public interface WorkspaceService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceWorkspaceService.WithRawResponseA view of WorkspaceService that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract WorkspaceService.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. abstract WorkspaceServicewithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. WorkspaceListPagelist(String serviceAccountId)Requires an OAuth access token with the org:adminscope, fromant auth login --scope org:adminor a workload identity federation rule; Admin API keys are not accepted.WorkspaceListPagelist(String serviceAccountId, WorkspaceListParams params, RequestOptions requestOptions)WorkspaceListPagelist(String serviceAccountId, WorkspaceListParams params)abstract WorkspaceListPagelist(WorkspaceListParams params, RequestOptions requestOptions)WorkspaceListPagelist(WorkspaceListParams params)WorkspaceListPagelist(String serviceAccountId, RequestOptions requestOptions)ServiceAccountWorkspaceMemberadd(String serviceAccountId, WorkspaceAddParams params)Requires an OAuth access token with the org:adminscope, fromant auth login --scope org:adminor a workload identity federation rule; Admin API keys are not accepted.ServiceAccountWorkspaceMemberadd(String serviceAccountId, WorkspaceAddParams params, RequestOptions requestOptions)ServiceAccountWorkspaceMemberadd(WorkspaceAddParams params)abstract ServiceAccountWorkspaceMemberadd(WorkspaceAddParams params, RequestOptions requestOptions)WorkspaceRemoveResponseremove(String workspaceId, WorkspaceRemoveParams params)Requires an OAuth access token with the org:adminscope, fromant auth login --scope org:adminor a workload identity federation rule; Admin API keys are not accepted.WorkspaceRemoveResponseremove(String workspaceId, WorkspaceRemoveParams params, RequestOptions requestOptions)WorkspaceRemoveResponseremove(WorkspaceRemoveParams params)abstract WorkspaceRemoveResponseremove(WorkspaceRemoveParams params, RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
abstract WorkspaceService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract WorkspaceService withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
list
WorkspaceListPage list(String serviceAccountId)
Requires an OAuth access token with the
org:adminscope, fromant auth login --scope org:adminor a workload identity federation rule; Admin API keys are not accepted. See /docs/en/manage-claude/wif-admin-api.List the workspaces a service account is a member of.
Each entry includes the service account's
workspace_rolein that workspace. Uselimitand thenext_pagecursor to paginate. When the service account has no explicit default-workspace membership, the implicit (implicit: true) membership is returned as the first entry on the first page; withlimit=1the first page may return up to 2 entries (the implicit entry plus one explicit membership) so a pagination cursor can be derived. Memberships are returned only while the service account is active. Without apagecursor, an archived service account returns an empty list. Apagecursor that does not match an active membership returns a 400 invalid-request error. A cursor stops matching when the membership is removed, the workspace is deleted, or the service account is archived. Restart pagination from the first page to recover.
-
list
WorkspaceListPage list(String serviceAccountId, WorkspaceListParams params, RequestOptions requestOptions)
-
list
WorkspaceListPage list(String serviceAccountId, WorkspaceListParams params)
-
list
abstract WorkspaceListPage list(WorkspaceListParams params, RequestOptions requestOptions)
-
list
WorkspaceListPage list(WorkspaceListParams params)
-
list
WorkspaceListPage list(String serviceAccountId, RequestOptions requestOptions)
-
add
ServiceAccountWorkspaceMember add(String serviceAccountId, WorkspaceAddParams params)
Requires an OAuth access token with the
org:adminscope, fromant auth login --scope org:adminor a workload identity federation rule; Admin API keys are not accepted. See /docs/en/manage-claude/wif-admin-api.Add a service account to a workspace with the given
workspace_role.Mirror of
POST /workspaces/{workspace_id}/service_accounts, addressed from the service-account side; both create the same membership. If the service account is already an explicit member of the workspace, itsworkspace_roleis replaced with the value supplied here. Archived workspaces return 400. Archived service accounts cannot be added and are rejected.
-
add
ServiceAccountWorkspaceMember add(String serviceAccountId, WorkspaceAddParams params, RequestOptions requestOptions)
-
add
ServiceAccountWorkspaceMember add(WorkspaceAddParams params)
-
add
abstract ServiceAccountWorkspaceMember add(WorkspaceAddParams params, RequestOptions requestOptions)
-
remove
WorkspaceRemoveResponse remove(String workspaceId, WorkspaceRemoveParams params)
Requires an OAuth access token with the
org:adminscope, fromant auth login --scope org:adminor a workload identity federation rule; Admin API keys are not accepted. See /docs/en/manage-claude/wif-admin-api.Remove a service account from a workspace.
Mirror of
DELETE /workspaces/{workspace_id}/service_accounts/{service_account_id}, addressed from the service-account side. Removal is idempotent (returns 200 even if the membership was already removed). A DELETE against the implicit default-workspace membership returns 200 but is a no-op and the membership persists; deleting an explicit default-workspace row reverts to the implicitworkspace_usermembership. Archived workspaces return 400.
-
remove
WorkspaceRemoveResponse remove(String workspaceId, WorkspaceRemoveParams params, RequestOptions requestOptions)
-
remove
WorkspaceRemoveResponse remove(WorkspaceRemoveParams params)
-
remove
abstract WorkspaceRemoveResponse remove(WorkspaceRemoveParams params, RequestOptions requestOptions)
-
-
-
-