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()BetaFederationRulecreate(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 BetaFederationRulecreate(RuleCreateParams params, RequestOptions requestOptions)BetaFederationRuleretrieve(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.BetaFederationRuleretrieve(String federationRuleId, RuleRetrieveParams params, RequestOptions requestOptions)BetaFederationRuleretrieve(String federationRuleId, RuleRetrieveParams params)abstract BetaFederationRuleretrieve(RuleRetrieveParams params, RequestOptions requestOptions)BetaFederationRuleretrieve(RuleRetrieveParams params)BetaFederationRuleretrieve(String federationRuleId, RequestOptions requestOptions)BetaFederationRuleupdate(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.BetaFederationRuleupdate(String federationRuleId, RuleUpdateParams params, RequestOptions requestOptions)BetaFederationRuleupdate(String federationRuleId, RuleUpdateParams params)abstract BetaFederationRuleupdate(RuleUpdateParams params, RequestOptions requestOptions)BetaFederationRuleupdate(RuleUpdateParams params)BetaFederationRuleupdate(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)BetaFederationRulearchive(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.BetaFederationRulearchive(String federationRuleId, RuleArchiveParams params, RequestOptions requestOptions)BetaFederationRulearchive(String federationRuleId, RuleArchiveParams params)abstract BetaFederationRulearchive(RuleArchiveParams params, RequestOptions requestOptions)BetaFederationRulearchive(RuleArchiveParams params)BetaFederationRulearchive(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
BetaFederationRule 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 BetaFederationRule create(RuleCreateParams params, RequestOptions requestOptions)
-
retrieve
BetaFederationRule 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
BetaFederationRule retrieve(String federationRuleId, RuleRetrieveParams params, RequestOptions requestOptions)
-
retrieve
BetaFederationRule retrieve(String federationRuleId, RuleRetrieveParams params)
-
retrieve
abstract BetaFederationRule retrieve(RuleRetrieveParams params, RequestOptions requestOptions)
-
retrieve
BetaFederationRule retrieve(RuleRetrieveParams params)
-
retrieve
BetaFederationRule retrieve(String federationRuleId, RequestOptions requestOptions)
-
update
BetaFederationRule 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
BetaFederationRule update(String federationRuleId, RuleUpdateParams params, RequestOptions requestOptions)
-
update
BetaFederationRule update(String federationRuleId, RuleUpdateParams params)
-
update
abstract BetaFederationRule update(RuleUpdateParams params, RequestOptions requestOptions)
-
update
BetaFederationRule update(RuleUpdateParams params)
-
update
BetaFederationRule 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
BetaFederationRule 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
BetaFederationRule archive(String federationRuleId, RuleArchiveParams params, RequestOptions requestOptions)
-
archive
BetaFederationRule archive(String federationRuleId, RuleArchiveParams params)
-
archive
abstract BetaFederationRule archive(RuleArchiveParams params, RequestOptions requestOptions)
-
archive
BetaFederationRule archive(RuleArchiveParams params)
-
archive
BetaFederationRule archive(String federationRuleId, RequestOptions requestOptions)
-
-
-
-