mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 12:50:05 +01:00
Co-authored-by: public-glueops-renovatebot[bot] <186083205+public-glueops-renovatebot[bot]@users.noreply.github.com>
@glueops/autoglue-sdk-go@0.1.0
A TypeScript SDK client for the autoglue.glueopshosted.com API.
Usage
First, install the SDK from npm.
npm install @glueops/autoglue-sdk-go --save
Next, try it out.
import {
Configuration,
AnnotationsApi,
} from '@glueops/autoglue-sdk-go';
import type { CreateAnnotationRequest } from '@glueops/autoglue-sdk-go';
async function example() {
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
const config = new Configuration({
// To configure API key authorization: OrgKeyAuth
apiKey: "YOUR API KEY",
// To configure API key authorization: OrgSecretAuth
apiKey: "YOUR API KEY",
// To configure API key authorization: BearerAuth
apiKey: "YOUR API KEY",
});
const api = new AnnotationsApi(config);
const body = {
// DtoCreateAnnotationRequest | Annotation payload
dtoCreateAnnotationRequest: ...,
// string | Organization UUID (optional)
xOrgID: xOrgID_example,
} satisfies CreateAnnotationRequest;
try {
const data = await api.createAnnotation(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);
Documentation
API Endpoints
All URIs are relative to https://autoglue.glueopshosted.com/api/v1
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AnnotationsApi | createAnnotation | POST /annotations | Create annotation (org scoped) |
| AnnotationsApi | deleteAnnotation | DELETE /annotations/{id} | Delete annotation (org scoped) |
| AnnotationsApi | getAnnotation | GET /annotations/{id} | Get annotation by ID (org scoped) |
| AnnotationsApi | listAnnotations | GET /annotations | List annotations (org scoped) |
| AnnotationsApi | updateAnnotation | PATCH /annotations/{id} | Update annotation (org scoped) |
| ArcherAdminApi | adminCancelArcherJob | POST /admin/archer/jobs/{id}/cancel | Cancel an Archer job (admin) |
| ArcherAdminApi | adminEnqueueArcherJob | POST /admin/archer/jobs | Enqueue a new Archer job (admin) |
| ArcherAdminApi | adminListArcherJobs | GET /admin/archer/jobs | List Archer jobs (admin) |
| ArcherAdminApi | adminListArcherQueues | GET /admin/archer/queues | List Archer queues (admin) |
| ArcherAdminApi | adminRetryArcherJob | POST /admin/archer/jobs/{id}/retry | Retry a failed/canceled Archer job (admin) |
| AuthApi | authCallback | GET /auth/{provider}/callback | Handle social login callback |
| AuthApi | authStart | POST /auth/{provider}/start | Begin social login |
| AuthApi | getJWKS | GET /.well-known/jwks.json | Get JWKS |
| AuthApi | logout | POST /auth/logout | Revoke refresh token family (logout everywhere) |
| AuthApi | refresh | POST /auth/refresh | Rotate refresh token |
| ClustersApi | attachAppsLoadBalancer | POST /clusters/{clusterID}/apps-load-balancer | Attach an apps load balancer to a cluster |
| ClustersApi | attachBastionServer | POST /clusters/{clusterID}/bastion | Attach a bastion server to a cluster |
| ClustersApi | attachCaptainDomain | POST /clusters/{clusterID}/captain-domain | Attach a captain domain to a cluster |
| ClustersApi | attachControlPlaneRecordSet | POST /clusters/{clusterID}/control-plane-record-set | Attach a control plane record set to a cluster |
| ClustersApi | attachGlueOpsLoadBalancer | POST /clusters/{clusterID}/glueops-load-balancer | Attach a GlueOps/control-plane load balancer to a cluster |
| ClustersApi | attachNodePool | POST /clusters/{clusterID}/node-pools | Attach a node pool to a cluster |
| ClustersApi | clearClusterKubeconfig | DELETE /clusters/{clusterID}/kubeconfig | Clear the kubeconfig for a cluster |
| ClustersApi | createCluster | POST /clusters | Create cluster (org scoped) |
| ClustersApi | deleteCluster | DELETE /clusters/{clusterID} | Delete a cluster (org scoped) |
| ClustersApi | detachAppsLoadBalancer | DELETE /clusters/{clusterID}/apps-load-balancer | Detach the apps load balancer from a cluster |
| ClustersApi | detachBastionServer | DELETE /clusters/{clusterID}/bastion | Detach the bastion server from a cluster |
| ClustersApi | detachCaptainDomain | DELETE /clusters/{clusterID}/captain-domain | Detach the captain domain from a cluster |
| ClustersApi | detachControlPlaneRecordSet | DELETE /clusters/{clusterID}/control-plane-record-set | Detach the control plane record set from a cluster |
| ClustersApi | detachGlueOpsLoadBalancer | DELETE /clusters/{clusterID}/glueops-load-balancer | Detach the GlueOps/control-plane load balancer from a cluster |
| ClustersApi | detachNodePool | DELETE /clusters/{clusterID}/node-pools/{nodePoolID} | Detach a node pool from a cluster |
| ClustersApi | getCluster | GET /clusters/{clusterID} | Get a single cluster by ID (org scoped) |
| ClustersApi | listClusters | GET /clusters | List clusters (org scoped) |
| ClustersApi | setClusterKubeconfig | POST /clusters/{clusterID}/kubeconfig | Set (or replace) the kubeconfig for a cluster |
| ClustersApi | updateCluster | PATCH /clusters/{clusterID} | Update basic cluster details (org scoped) |
| CredentialsApi | createCredential | POST /credentials | Create a credential (encrypts secret) |
| CredentialsApi | deleteCredential | DELETE /credentials/{id} | Delete credential |
| CredentialsApi | getCredential | GET /credentials/{id} | Get credential by ID (metadata only) |
| CredentialsApi | listCredentials | GET /credentials | List credentials (metadata only) |
| CredentialsApi | revealCredential | POST /credentials/{id}/reveal | Reveal decrypted secret (one-time read) |
| CredentialsApi | updateCredential | PATCH /credentials/{id} | Update credential metadata and/or rotate secret |
| DNSApi | createDomain | POST /dns/domains | Create a domain (org scoped) |
| DNSApi | createRecordSet | POST /dns/domains/{domain_id}/records | Create a record set (pending; Archer will UPSERT to Route 53) |
| DNSApi | deleteDomain | DELETE /dns/domains/{id} | Delete a domain |
| DNSApi | deleteRecordSet | DELETE /dns/records/{id} | Delete a record set (API removes row; worker can optionally handle external deletion policy) |
| DNSApi | getDomain | GET /dns/domains/{id} | Get a domain (org scoped) |
| DNSApi | listDomains | GET /dns/domains | List domains (org scoped) |
| DNSApi | listRecordSets | GET /dns/domains/{domain_id}/records | List record sets for a domain |
| DNSApi | updateDomain | PATCH /dns/domains/{id} | Update a domain (org scoped) |
| DNSApi | updateRecordSet | PATCH /dns/records/{id} | Update a record set (flips to pending for reconciliation) |
| HealthApi | healthCheckOperationId | GET /healthz | Basic health check |
| LabelsApi | createLabel | POST /labels | Create label (org scoped) |
| LabelsApi | deleteLabel | DELETE /labels/{id} | Delete label (org scoped) |
| LabelsApi | getLabel | GET /labels/{id} | Get label by ID (org scoped) |
| LabelsApi | listLabels | GET /labels | List node labels (org scoped) |
| LabelsApi | updateLabel | PATCH /labels/{id} | Update label (org scoped) |
| LoadBalancersApi | createLoadBalancer | POST /load-balancers | Create a load balancer |
| LoadBalancersApi | deleteLoadBalancer | DELETE /load-balancers/{id} | Delete a load balancer |
| LoadBalancersApi | getLoadBalancers | GET /load-balancers/{id} | Get a load balancer (org scoped) |
| LoadBalancersApi | listLoadBalancers | GET /load-balancers | List load balancers (org scoped) |
| LoadBalancersApi | updateLoadBalancer | PATCH /load-balancers/{id} | Update a load balancer (org scoped) |
| MeApi | getMe | GET /me | Get current user profile |
| MeApi | updateMe | PATCH /me | Update current user profile |
| MeAPIKeysApi | createUserAPIKey | POST /me/api-keys | Create a new user API key |
| MeAPIKeysApi | deleteUserAPIKey | DELETE /me/api-keys/{id} | Delete a user API key |
| MeAPIKeysApi | listUserAPIKeys | GET /me/api-keys | List my API keys |
| MetaApi | versionOperationId | GET /version | Service version information |
| NodePoolsApi | attachNodePoolAnnotations | POST /node-pools/{id}/annotations | Attach annotation to a node pool (org scoped) |
| NodePoolsApi | attachNodePoolLabels | POST /node-pools/{id}/labels | Attach labels to a node pool (org scoped) |
| NodePoolsApi | attachNodePoolServers | POST /node-pools/{id}/servers | Attach servers to a node pool (org scoped) |
| NodePoolsApi | attachNodePoolTaints | POST /node-pools/{id}/taints | Attach taints to a node pool (org scoped) |
| NodePoolsApi | createNodePool | POST /node-pools | Create node pool (org scoped) |
| NodePoolsApi | deleteNodePool | DELETE /node-pools/{id} | Delete node pool (org scoped) |
| NodePoolsApi | detachNodePoolAnnotation | DELETE /node-pools/{id}/annotations/{annotationId} | Detach one annotation from a node pool (org scoped) |
| NodePoolsApi | detachNodePoolLabel | DELETE /node-pools/{id}/labels/{labelId} | Detach one label from a node pool (org scoped) |
| NodePoolsApi | detachNodePoolServer | DELETE /node-pools/{id}/servers/{serverId} | Detach one server from a node pool (org scoped) |
| NodePoolsApi | detachNodePoolTaint | DELETE /node-pools/{id}/taints/{taintId} | Detach one taint from a node pool (org scoped) |
| NodePoolsApi | getNodePool | GET /node-pools/{id} | Get node pool by ID (org scoped) |
| NodePoolsApi | listNodePoolAnnotations | GET /node-pools/{id}/annotations | List annotations attached to a node pool (org scoped) |
| NodePoolsApi | listNodePoolLabels | GET /node-pools/{id}/labels | List labels attached to a node pool (org scoped) |
| NodePoolsApi | listNodePoolServers | GET /node-pools/{id}/servers | List servers attached to a node pool (org scoped) |
| NodePoolsApi | listNodePoolTaints | GET /node-pools/{id}/taints | List taints attached to a node pool (org scoped) |
| NodePoolsApi | listNodePools | GET /node-pools | List node pools (org scoped) |
| NodePoolsApi | updateNodePool | PATCH /node-pools/{id} | Update node pool (org scoped) |
| OrgsApi | addOrUpdateMember | POST /orgs/{id}/members | Add or update a member (owner/admin) |
| OrgsApi | createOrg | POST /orgs | Create organization |
| OrgsApi | createOrgKey | POST /orgs/{id}/api-keys | Create org key/secret pair (owner/admin) |
| OrgsApi | deleteOrg | DELETE /orgs/{id} | Delete organization (owner) |
| OrgsApi | deleteOrgKey | DELETE /orgs/{id}/api-keys/{key_id} | Delete org key (owner/admin) |
| OrgsApi | getOrg | GET /orgs/{id} | Get organization |
| OrgsApi | listMembers | GET /orgs/{id}/members | List members in org |
| OrgsApi | listMyOrgs | GET /orgs | List organizations I belong to |
| OrgsApi | listOrgKeys | GET /orgs/{id}/api-keys | List org-scoped API keys (no secrets) |
| OrgsApi | removeMember | DELETE /orgs/{id}/members/{user_id} | Remove a member (owner/admin) |
| OrgsApi | updateOrg | PATCH /orgs/{id} | Update organization (owner/admin) |
| ServersApi | createServer | POST /servers | Create server (org scoped) |
| ServersApi | deleteServer | DELETE /servers/{id} | Delete server (org scoped) |
| ServersApi | getServer | GET /servers/{id} | Get server by ID (org scoped) |
| ServersApi | listServers | GET /servers | List servers (org scoped) |
| ServersApi | resetServerHostKey | POST /servers/{id}/reset-hostkey | Reset SSH host key (org scoped) |
| ServersApi | updateServer | PATCH /servers/{id} | Update server (org scoped) |
| SshApi | createSSHKey | POST /ssh | Create ssh keypair (org scoped) |
| SshApi | deleteSSHKey | DELETE /ssh/{id} | Delete ssh keypair (org scoped) |
| SshApi | downloadSSHKey | GET /ssh/{id}/download | Download ssh key files by ID (org scoped) |
| SshApi | getSSHKey | GET /ssh/{id} | Get ssh key by ID (org scoped) |
| SshApi | listPublicSshKeys | GET /ssh | List ssh keys (org scoped) |
| TaintsApi | createTaint | POST /taints | Create node taint (org scoped) |
| TaintsApi | deleteTaint | DELETE /taints/{id} | Delete taint (org scoped) |
| TaintsApi | getTaint | GET /taints/{id} | Get node taint by ID (org scoped) |
| TaintsApi | listTaints | GET /taints | List node pool taints (org scoped) |
| TaintsApi | updateTaint | PATCH /taints/{id} | Update node taint (org scoped) |
Models
- DtoAnnotationResponse
- DtoAttachAnnotationsRequest
- DtoAttachBastionRequest
- DtoAttachCaptainDomainRequest
- DtoAttachLabelsRequest
- DtoAttachLoadBalancerRequest
- DtoAttachNodePoolRequest
- DtoAttachRecordSetRequest
- DtoAttachServersRequest
- DtoAttachTaintsRequest
- DtoAuthStartResponse
- DtoClusterResponse
- DtoCreateAnnotationRequest
- DtoCreateClusterRequest
- DtoCreateCredentialRequest
- DtoCreateDomainRequest
- DtoCreateLabelRequest
- DtoCreateLoadBalancerRequest
- DtoCreateNodePoolRequest
- DtoCreateRecordSetRequest
- DtoCreateSSHRequest
- DtoCreateServerRequest
- DtoCreateTaintRequest
- DtoCredentialOut
- DtoDomainResponse
- DtoEnqueueRequest
- DtoJWK
- DtoJWKS
- DtoJob
- DtoJobStatus
- DtoLabelResponse
- DtoLoadBalancerResponse
- DtoLogoutRequest
- DtoNodePoolResponse
- DtoPageJob
- DtoQueueInfo
- DtoRecordSetResponse
- DtoRefreshRequest
- DtoServerResponse
- DtoSetKubeconfigRequest
- DtoSshResponse
- DtoSshRevealResponse
- DtoTaintResponse
- DtoTokenPair
- DtoUpdateAnnotationRequest
- DtoUpdateClusterRequest
- DtoUpdateCredentialRequest
- DtoUpdateDomainRequest
- DtoUpdateLabelRequest
- DtoUpdateLoadBalancerRequest
- DtoUpdateNodePoolRequest
- DtoUpdateRecordSetRequest
- DtoUpdateServerRequest
- DtoUpdateTaintRequest
- GetSSHKey200Response
- HandlersCreateUserKeyRequest
- HandlersHealthStatus
- HandlersMeResponse
- HandlersMemberOut
- HandlersMemberUpsertReq
- HandlersOrgCreateReq
- HandlersOrgKeyCreateReq
- HandlersOrgKeyCreateResp
- HandlersOrgUpdateReq
- HandlersUpdateMeRequest
- HandlersUserAPIKeyOut
- HandlersVersionResponse
- ModelsAPIKey
- ModelsOrganization
- ModelsUser
- ModelsUserEmail
- UtilsErrorResponse
Authorization
Authentication schemes defined for the API:
ApiKeyAuth
BearerAuth
OrgKeyAuth
OrgSecretAuth
- Type: API key
- API key parameter name:
X-ORG-SECRET - Location: HTTP header
About
This TypeScript SDK client supports the Fetch API and is automatically generated by the OpenAPI Generator project:
- API version:
dev - Package version:
0.1.0 - Generator version:
7.17.0 - Build package:
org.openapitools.codegen.languages.TypeScriptFetchClientCodegen
The generated npm module supports the following:
- Environments
- Node.js
- Webpack
- Browserify
- Language levels
- ES5 - you must have a Promises/A+ library installed
- ES6
- Module systems
- CommonJS
- ES6 module system
Development
Building
To build the TypeScript source code, you need to have Node.js and npm installed. After cloning the repository, navigate to the project directory and run:
npm install
npm run build
Publishing
Once you've built the package, you can publish it to npm:
npm publish