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 federationRuleId)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 federationRuleId, WorkspaceListParams params, RequestOptions requestOptions)WorkspaceListPagelist(String federationRuleId, WorkspaceListParams params)abstract WorkspaceListPagelist(WorkspaceListParams params, RequestOptions requestOptions)WorkspaceListPagelist(WorkspaceListParams params)WorkspaceListPagelist(String federationRuleId, RequestOptions requestOptions)BetaFederationRuleWorkspaceadd(String federationRuleId, 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.BetaFederationRuleWorkspaceadd(String federationRuleId, WorkspaceAddParams params, RequestOptions requestOptions)BetaFederationRuleWorkspaceadd(WorkspaceAddParams params)abstract BetaFederationRuleWorkspaceadd(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 federationRuleId)
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 workspaces where this federation rule is enabled.
Returns all workspace enablements in a single response; the
limitandpageparameters are accepted but have no effect, andnext_pageis alwaysnull. Returns explicit per-workspace enablements only; for rules withapplies_to_all_workspacesor a legacy singleworkspace_id, check those fields on the rule itself.
-
list
WorkspaceListPage list(String federationRuleId, WorkspaceListParams params, RequestOptions requestOptions)
-
list
WorkspaceListPage list(String federationRuleId, WorkspaceListParams params)
-
list
abstract WorkspaceListPage list(WorkspaceListParams params, RequestOptions requestOptions)
-
list
WorkspaceListPage list(WorkspaceListParams params)
-
list
WorkspaceListPage list(String federationRuleId, RequestOptions requestOptions)
-
add
BetaFederationRuleWorkspace add(String federationRuleId, 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.Enable a federation rule for a workspace.
Idempotent; re-enabling returns the existing enablement. The rule and workspace must both belong to your organization. Membership of the rule's target service account in this workspace is not checked at enablement: token exchange into this workspace is rejected unless the target is a member (it is implicitly a member of the default workspace). Archived rules are rejected with 400. OAuth callers may only manage rules whose
oauth_scopeisworkspace:developerorworkspace:inference; other scopes require a Console session.
-
add
BetaFederationRuleWorkspace add(String federationRuleId, WorkspaceAddParams params, RequestOptions requestOptions)
-
add
BetaFederationRuleWorkspace add(WorkspaceAddParams params)
-
add
abstract BetaFederationRuleWorkspace 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.Disable a federation rule for a workspace.
Idempotent; succeeds even if the enablement was already removed. OAuth callers may only manage rules whose
oauth_scopeisworkspace:developerorworkspace:inference; other scopes require a Console session.
-
remove
WorkspaceRemoveResponse remove(String workspaceId, WorkspaceRemoveParams params, RequestOptions requestOptions)
-
remove
WorkspaceRemoveResponse remove(WorkspaceRemoveParams params)
-
remove
abstract WorkspaceRemoveResponse remove(WorkspaceRemoveParams params, RequestOptions requestOptions)
-
-
-
-