Package dev.tripswitch.admin
Class AdminClient
java.lang.Object
dev.tripswitch.admin.AdminClient
- All Implemented Interfaces:
Closeable,AutoCloseable
Client for the Tripswitch admin API.
AdminClient client = AdminClient.builder()
.apiKey("eb_admin_...")
.build();
Project project = client.getProject("proj_123");
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbatchGetBreakerStates(String projectId, BatchGetBreakerStatesInput input, RequestOptions... opts) breakerPager(String projectId, ListParams params, RequestOptions... opts) static AdminClient.Builderbuilder()voidclose()createBreaker(String projectId, CreateBreakerInput input, RequestOptions... opts) createNotificationChannel(String projectId, CreateNotificationChannelInput input, RequestOptions... opts) createProject(CreateProjectInput input, RequestOptions... opts) createProjectKey(String projectId, CreateProjectKeyInput input, RequestOptions... opts) createRouter(String projectId, CreateRouterInput input, RequestOptions... opts) createWorkspace(CreateWorkspaceInput input, RequestOptions... opts) voiddeleteBreaker(String projectId, String breakerId, RequestOptions... opts) voiddeleteNotificationChannel(String projectId, String channelId, RequestOptions... opts) voiddeleteProject(String projectId, DeleteProjectOptions options) voiddeleteProjectKey(String projectId, String keyId, RequestOptions... opts) voiddeleteRouter(String projectId, String routerId, RequestOptions... opts) voiddeleteWorkspace(String workspaceId, RequestOptions... opts) eventPager(String projectId, ListEventsParams params, RequestOptions... opts) getBreaker(String projectId, String breakerId, RequestOptions... opts) getBreakerState(String projectId, String breakerId, RequestOptions... opts) getNotificationChannel(String projectId, String channelId, RequestOptions... opts) getProject(String projectId, RequestOptions... opts) getRouter(String projectId, String routerId, RequestOptions... opts) getWorkspace(String workspaceId, RequestOptions... opts) voidlinkBreaker(String projectId, String routerId, LinkBreakerInput input, RequestOptions... opts) listBreakers(String projectId, ListParams params, RequestOptions... opts) listEvents(String projectId, ListEventsParams params, RequestOptions... opts) listNotificationChannels(String projectId, ListParams params, RequestOptions... opts) listProjectKeys(String projectId, RequestOptions... opts) listProjects(RequestOptions... opts) listRouters(String projectId, ListParams params, RequestOptions... opts) listWorkspaces(RequestOptions... opts) notificationChannelPager(String projectId, ListParams params, RequestOptions... opts) rotateIngestSecret(String projectId, RequestOptions... opts) routerPager(String projectId, ListParams params, RequestOptions... opts) syncBreakers(String projectId, SyncBreakersInput input, RequestOptions... opts) voidtestNotificationChannel(String projectId, String channelId, RequestOptions... opts) voidunlinkBreaker(String projectId, String routerId, String breakerId, RequestOptions... opts) updateBreaker(String projectId, String breakerId, UpdateBreakerInput input, RequestOptions... opts) voidupdateBreakerMetadata(String projectId, String breakerId, Map<String, String> metadata, RequestOptions... opts) updateNotificationChannel(String projectId, String channelId, UpdateNotificationChannelInput input, RequestOptions... opts) updateProject(String projectId, UpdateProjectInput input, RequestOptions... opts) updateRouter(String projectId, String routerId, UpdateRouterInput input, RequestOptions... opts) voidupdateRouterMetadata(String projectId, String routerId, Map<String, String> metadata, RequestOptions... opts) updateWorkspace(String workspaceId, UpdateWorkspaceInput input, RequestOptions... opts)
-
Method Details
-
builder
-
listProjects
-
createProject
-
getProject
-
updateProject
-
deleteProject
-
rotateIngestSecret
-
listBreakers
public ListBreakersResponse listBreakers(String projectId, ListParams params, RequestOptions... opts) -
createBreaker
-
getBreaker
-
updateBreaker
public Breaker updateBreaker(String projectId, String breakerId, UpdateBreakerInput input, RequestOptions... opts) -
deleteBreaker
-
syncBreakers
public List<Breaker> syncBreakers(String projectId, SyncBreakersInput input, RequestOptions... opts) -
getBreakerState
-
batchGetBreakerStates
public List<BreakerState> batchGetBreakerStates(String projectId, BatchGetBreakerStatesInput input, RequestOptions... opts) -
listRouters
-
createRouter
-
getRouter
-
updateRouter
public Router updateRouter(String projectId, String routerId, UpdateRouterInput input, RequestOptions... opts) -
deleteRouter
-
linkBreaker
public void linkBreaker(String projectId, String routerId, LinkBreakerInput input, RequestOptions... opts) -
unlinkBreaker
public void unlinkBreaker(String projectId, String routerId, String breakerId, RequestOptions... opts) -
listEvents
public ListEventsResponse listEvents(String projectId, ListEventsParams params, RequestOptions... opts) -
listNotificationChannels
public ListNotificationChannelsResponse listNotificationChannels(String projectId, ListParams params, RequestOptions... opts) -
createNotificationChannel
public NotificationChannel createNotificationChannel(String projectId, CreateNotificationChannelInput input, RequestOptions... opts) -
getNotificationChannel
public NotificationChannel getNotificationChannel(String projectId, String channelId, RequestOptions... opts) -
updateNotificationChannel
public NotificationChannel updateNotificationChannel(String projectId, String channelId, UpdateNotificationChannelInput input, RequestOptions... opts) -
deleteNotificationChannel
-
testNotificationChannel
-
listProjectKeys
-
createProjectKey
public CreateProjectKeyResponse createProjectKey(String projectId, CreateProjectKeyInput input, RequestOptions... opts) -
deleteProjectKey
-
updateBreakerMetadata
-
updateRouterMetadata
-
breakerPager
-
routerPager
-
eventPager
-
notificationChannelPager
public Pager<NotificationChannel> notificationChannelPager(String projectId, ListParams params, RequestOptions... opts) -
listWorkspaces
-
createWorkspace
-
getWorkspace
-
updateWorkspace
public Workspace updateWorkspace(String workspaceId, UpdateWorkspaceInput input, RequestOptions... opts) -
deleteWorkspace
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-