Interface RuleService
-
- All Implemented Interfaces:
public interface RuleService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceRuleService.WithRawResponseA view of RuleService that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract RuleService.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. abstract RuleServicewithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. abstract WorkspaceServiceworkspaces()FederationRulecreate(RuleCreateParams 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.abstract FederationRulecreate(RuleCreateParams params, RequestOptions requestOptions)FederationRuleretrieve(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.FederationRuleretrieve(String federationRuleId, RuleRetrieveParams params, RequestOptions requestOptions)FederationRuleretrieve(String federationRuleId, RuleRetrieveParams params)abstract FederationRuleretrieve(RuleRetrieveParams params, RequestOptions requestOptions)FederationRuleretrieve(RuleRetrieveParams params)FederationRuleretrieve(String federationRuleId, RequestOptions requestOptions)FederationRuleupdate(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.FederationRuleupdate(String federationRuleId, RuleUpdateParams params, RequestOptions requestOptions)FederationRuleupdate(String federationRuleId, RuleUpdateParams params)abstract FederationRuleupdate(RuleUpdateParams params, RequestOptions requestOptions)FederationRuleupdate(RuleUpdateParams params)FederationRuleupdate(String federationRuleId, RequestOptions requestOptions)RuleListPagelist()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.abstract RuleListPagelist(RuleListParams params, RequestOptions requestOptions)RuleListPagelist(RuleListParams params)RuleListPagelist(RequestOptions requestOptions)FederationRulearchive(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.FederationRulearchive(String federationRuleId, RuleArchiveParams params, RequestOptions requestOptions)FederationRulearchive(String federationRuleId, RuleArchiveParams params)abstract FederationRulearchive(RuleArchiveParams params, RequestOptions requestOptions)FederationRulearchive(RuleArchiveParams params)FederationRulearchive(String federationRuleId, RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
abstract RuleService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract RuleService withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
workspaces
abstract WorkspaceService workspaces()
-
create
FederationRule create(RuleCreateParams 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.Create a federation rule owned by your organization.
The referenced issuer and the target service account must already exist in the same organization; invalid references are rejected with a 400 error. The workspace reference is validated. Membership is not checked at rule creation: token exchange resolves a single enabled workspace per call and is rejected unless the target service account is a member of that workspace (it is implicitly a member of the default workspace). Rules on well-known shared issuers (GitHub Actions, GitLab, Buildkite, Terraform Cloud, Google) must constrain tenant identity via an identity-bearing claim, a tenant-pinning subject prefix (such as
repo:YOUR_ORG/...), or a CEL condition referencing one of those identity claims (e.g.claims.repository_owner). OAuth callers may only manage rules whoseoauth_scopeisworkspace:developerorworkspace:inference; other scopes require a Console session.
-
create
abstract FederationRule create(RuleCreateParams params, RequestOptions requestOptions)
-
retrieve
FederationRule retrieve(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.Retrieve a federation rule by its ID (
fdrl_...).
-
retrieve
FederationRule retrieve(String federationRuleId, RuleRetrieveParams params, RequestOptions requestOptions)
-
retrieve
FederationRule retrieve(String federationRuleId, RuleRetrieveParams params)
-
retrieve
abstract FederationRule retrieve(RuleRetrieveParams params, RequestOptions requestOptions)
-
retrieve
FederationRule retrieve(RuleRetrieveParams params)
-
retrieve
FederationRule retrieve(String federationRuleId, RequestOptions requestOptions)
-
update
FederationRule update(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.Partially update a federation rule.
issuer_idis immutable.matchandtargetare replaced as whole objects when set. Referenced service accounts and workspaces must exist in your organization; invalid references are rejected with a 400 error. Archived rules cannot be updated; this returns 400. Create a new rule instead. Rules on well-known shared issuers (GitHub Actions, GitLab, Buildkite, Terraform Cloud, Google) must constrain tenant identity via an identity-bearing claim, a tenant-pinning subject prefix (such asrepo:YOUR_ORG/...), or a CEL condition referencing one of those identity claims (e.g.claims.repository_owner). On these issuers the requirement is re-checked on every update; if an existing rule's stored match does not yet constrain tenant identity, any update (even a rename or description change) must also supply a conformingmatchin the same request. OAuth callers may only manage rules whoseoauth_scopeisworkspace:developerorworkspace:inference; other scopes require a Console session.
-
update
FederationRule update(String federationRuleId, RuleUpdateParams params, RequestOptions requestOptions)
-
update
FederationRule update(String federationRuleId, RuleUpdateParams params)
-
update
abstract FederationRule update(RuleUpdateParams params, RequestOptions requestOptions)
-
update
FederationRule update(RuleUpdateParams params)
-
update
FederationRule update(String federationRuleId, RequestOptions requestOptions)
-
list
RuleListPage list()
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 federation rules in your organization.
Optionally filter by issuer with
issuer_id. Archived rules are excluded unlessinclude_archived=true.
-
list
abstract RuleListPage list(RuleListParams params, RequestOptions requestOptions)
-
list
RuleListPage list(RuleListParams params)
-
list
RuleListPage list(RequestOptions requestOptions)
-
archive
FederationRule archive(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.Archive a federation rule.
Token exchange through this rule stops immediately. Idempotent; re-archiving returns the rule with its original
archived_at. Archiving clears the rule's workspace targeting (workspace_idandworkspace_idsare emptied). Tokens already minted before archive remain valid until they expire. OAuth callers may only manage rules whoseoauth_scopeisworkspace:developerorworkspace:inference; other scopes require a Console session.
-
archive
FederationRule archive(String federationRuleId, RuleArchiveParams params, RequestOptions requestOptions)
-
archive
FederationRule archive(String federationRuleId, RuleArchiveParams params)
-
archive
abstract FederationRule archive(RuleArchiveParams params, RequestOptions requestOptions)
-
archive
FederationRule archive(RuleArchiveParams params)
-
archive
FederationRule archive(String federationRuleId, RequestOptions requestOptions)
-
-
-
-