Interface WorkspaceServiceAsync
-
- All Implemented Interfaces:
public interface WorkspaceServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceWorkspaceServiceAsync.WithRawResponseA view of WorkspaceServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract WorkspaceServiceAsync.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. abstract WorkspaceServiceAsyncwithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. CompletableFuture<WorkspaceListPageAsync>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.CompletableFuture<WorkspaceListPageAsync>list(String federationRuleId, WorkspaceListParams params, RequestOptions requestOptions)CompletableFuture<WorkspaceListPageAsync>list(String federationRuleId, WorkspaceListParams params)abstract CompletableFuture<WorkspaceListPageAsync>list(WorkspaceListParams params, RequestOptions requestOptions)CompletableFuture<WorkspaceListPageAsync>list(WorkspaceListParams params)CompletableFuture<WorkspaceListPageAsync>list(String federationRuleId, RequestOptions requestOptions)CompletableFuture<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.CompletableFuture<BetaFederationRuleWorkspace>add(String federationRuleId, WorkspaceAddParams params, RequestOptions requestOptions)CompletableFuture<BetaFederationRuleWorkspace>add(WorkspaceAddParams params)abstract CompletableFuture<BetaFederationRuleWorkspace>add(WorkspaceAddParams params, RequestOptions requestOptions)CompletableFuture<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.CompletableFuture<WorkspaceRemoveResponse>remove(String workspaceId, WorkspaceRemoveParams params, RequestOptions requestOptions)CompletableFuture<WorkspaceRemoveResponse>remove(WorkspaceRemoveParams params)abstract CompletableFuture<WorkspaceRemoveResponse>remove(WorkspaceRemoveParams params, RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
abstract WorkspaceServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract WorkspaceServiceAsync withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
list
CompletableFuture<WorkspaceListPageAsync> 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
CompletableFuture<WorkspaceListPageAsync> list(String federationRuleId, WorkspaceListParams params, RequestOptions requestOptions)
-
list
CompletableFuture<WorkspaceListPageAsync> list(String federationRuleId, WorkspaceListParams params)
-
list
abstract CompletableFuture<WorkspaceListPageAsync> list(WorkspaceListParams params, RequestOptions requestOptions)
-
list
CompletableFuture<WorkspaceListPageAsync> list(WorkspaceListParams params)
-
list
CompletableFuture<WorkspaceListPageAsync> list(String federationRuleId, RequestOptions requestOptions)
-
add
CompletableFuture<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
CompletableFuture<BetaFederationRuleWorkspace> add(String federationRuleId, WorkspaceAddParams params, RequestOptions requestOptions)
-
add
abstract CompletableFuture<BetaFederationRuleWorkspace> add(WorkspaceAddParams params, RequestOptions requestOptions)
-
remove
CompletableFuture<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
CompletableFuture<WorkspaceRemoveResponse> remove(String workspaceId, WorkspaceRemoveParams params, RequestOptions requestOptions)
-
remove
CompletableFuture<WorkspaceRemoveResponse> remove(WorkspaceRemoveParams params)
-
remove
abstract CompletableFuture<WorkspaceRemoveResponse> remove(WorkspaceRemoveParams params, RequestOptions requestOptions)
-
-
-
-