mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 21:00:06 +01:00
fix: rename sdk to match repo & introduce git subtree
This commit is contained in:
@@ -24,11 +24,11 @@ Handle social login callback
|
||||
import {
|
||||
Configuration,
|
||||
AuthApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { AuthCallbackRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { AuthCallbackRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const api = new AuthApi();
|
||||
|
||||
const body = {
|
||||
@@ -91,11 +91,11 @@ Returns provider authorization URL for the frontend to redirect
|
||||
import {
|
||||
Configuration,
|
||||
AuthApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { AuthStartRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { AuthStartRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const api = new AuthApi();
|
||||
|
||||
const body = {
|
||||
@@ -158,11 +158,11 @@ Returns the JSON Web Key Set for token verification
|
||||
import {
|
||||
Configuration,
|
||||
AuthApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { GetJWKSRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { GetJWKSRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const api = new AuthApi();
|
||||
|
||||
try {
|
||||
@@ -215,11 +215,11 @@ Revoke refresh token family (logout everywhere)
|
||||
import {
|
||||
Configuration,
|
||||
AuthApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { LogoutRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { LogoutRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const api = new AuthApi();
|
||||
|
||||
const body = {
|
||||
@@ -280,11 +280,11 @@ Rotate refresh token
|
||||
import {
|
||||
Configuration,
|
||||
AuthApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { RefreshRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { RefreshRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const api = new AuthApi();
|
||||
|
||||
const body = {
|
||||
|
||||
@@ -11,7 +11,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { DtoAuthStartResponse } from '@glueops/autoglue-sdk'
|
||||
import type { DtoAuthStartResponse } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
@@ -12,7 +12,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { DtoCreateLabelRequest } from '@glueops/autoglue-sdk'
|
||||
import type { DtoCreateLabelRequest } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
@@ -14,7 +14,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { DtoCreateSSHRequest } from '@glueops/autoglue-sdk'
|
||||
import type { DtoCreateSSHRequest } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
@@ -17,7 +17,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { DtoCreateServerRequest } from '@glueops/autoglue-sdk'
|
||||
import type { DtoCreateServerRequest } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
@@ -13,7 +13,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { DtoCreateTaintRequest } from '@glueops/autoglue-sdk'
|
||||
import type { DtoCreateTaintRequest } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
@@ -17,7 +17,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { DtoJWK } from '@glueops/autoglue-sdk'
|
||||
import type { DtoJWK } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
@@ -11,7 +11,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { DtoJWKS } from '@glueops/autoglue-sdk'
|
||||
import type { DtoJWKS } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
@@ -13,7 +13,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { DtoLabelResponse } from '@glueops/autoglue-sdk'
|
||||
import type { DtoLabelResponse } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
@@ -11,7 +11,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { DtoLogoutRequest } from '@glueops/autoglue-sdk'
|
||||
import type { DtoLogoutRequest } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
@@ -11,7 +11,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { DtoRefreshRequest } from '@glueops/autoglue-sdk'
|
||||
import type { DtoRefreshRequest } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
@@ -21,7 +21,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { DtoServerResponse } from '@glueops/autoglue-sdk'
|
||||
import type { DtoServerResponse } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
@@ -17,7 +17,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { DtoSshResponse } from '@glueops/autoglue-sdk'
|
||||
import type { DtoSshResponse } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
@@ -18,7 +18,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { DtoSshRevealResponse } from '@glueops/autoglue-sdk'
|
||||
import type { DtoSshRevealResponse } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
@@ -14,7 +14,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { DtoTaintResponse } from '@glueops/autoglue-sdk'
|
||||
import type { DtoTaintResponse } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
@@ -14,7 +14,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { DtoTokenPair } from '@glueops/autoglue-sdk'
|
||||
import type { DtoTokenPair } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
@@ -12,7 +12,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { DtoUpdateLabelRequest } from '@glueops/autoglue-sdk'
|
||||
import type { DtoUpdateLabelRequest } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
@@ -17,7 +17,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { DtoUpdateServerRequest } from '@glueops/autoglue-sdk'
|
||||
import type { DtoUpdateServerRequest } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
@@ -13,7 +13,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { DtoUpdateTaintRequest } from '@glueops/autoglue-sdk'
|
||||
import type { DtoUpdateTaintRequest } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
@@ -12,7 +12,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { HandlersCreateUserKeyRequest } from '@glueops/autoglue-sdk'
|
||||
import type { HandlersCreateUserKeyRequest } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
@@ -19,7 +19,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { HandlersMeResponse } from '@glueops/autoglue-sdk'
|
||||
import type { HandlersMeResponse } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
@@ -13,7 +13,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { HandlersMemberOut } from '@glueops/autoglue-sdk'
|
||||
import type { HandlersMemberOut } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
@@ -12,7 +12,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { HandlersMemberUpsertReq } from '@glueops/autoglue-sdk'
|
||||
import type { HandlersMemberUpsertReq } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
@@ -12,7 +12,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { HandlersOrgCreateReq } from '@glueops/autoglue-sdk'
|
||||
import type { HandlersOrgCreateReq } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
@@ -12,7 +12,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { HandlersOrgKeyCreateReq } from '@glueops/autoglue-sdk'
|
||||
import type { HandlersOrgKeyCreateReq } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
@@ -17,7 +17,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { HandlersOrgKeyCreateResp } from '@glueops/autoglue-sdk'
|
||||
import type { HandlersOrgKeyCreateResp } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
@@ -12,7 +12,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { HandlersOrgUpdateReq } from '@glueops/autoglue-sdk'
|
||||
import type { HandlersOrgUpdateReq } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
@@ -11,7 +11,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { HandlersUpdateMeRequest } from '@glueops/autoglue-sdk'
|
||||
import type { HandlersUpdateMeRequest } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
@@ -17,7 +17,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { HandlersUserAPIKeyOut } from '@glueops/autoglue-sdk'
|
||||
import type { HandlersUserAPIKeyOut } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
@@ -26,11 +26,11 @@ Creates a label.
|
||||
import {
|
||||
Configuration,
|
||||
LabelsApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { CreateLabelRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { CreateLabelRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: OrgKeyAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
@@ -108,11 +108,11 @@ Permanently deletes the label.
|
||||
import {
|
||||
Configuration,
|
||||
LabelsApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { DeleteLabelRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { DeleteLabelRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: OrgKeyAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
@@ -190,11 +190,11 @@ Returns one label.
|
||||
import {
|
||||
Configuration,
|
||||
LabelsApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { GetLabelRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { GetLabelRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: OrgKeyAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
@@ -273,11 +273,11 @@ Returns node labels for the organization in X-Org-ID. Filters: `key`,
|
||||
import {
|
||||
Configuration,
|
||||
LabelsApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { ListLabelsRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { ListLabelsRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: OrgKeyAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
@@ -360,11 +360,11 @@ Partially update label fields.
|
||||
import {
|
||||
Configuration,
|
||||
LabelsApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { UpdateLabelRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { UpdateLabelRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: OrgKeyAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
|
||||
@@ -24,11 +24,11 @@ Returns the plaintext key once. Store it securely on the client side.
|
||||
import {
|
||||
Configuration,
|
||||
MeAPIKeysApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { CreateUserAPIKeyRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { CreateUserAPIKeyRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: ApiKeyAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
@@ -95,11 +95,11 @@ Delete a user API key
|
||||
import {
|
||||
Configuration,
|
||||
MeAPIKeysApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { DeleteUserAPIKeyRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { DeleteUserAPIKeyRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: BearerAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
@@ -164,11 +164,11 @@ List my API keys
|
||||
import {
|
||||
Configuration,
|
||||
MeAPIKeysApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { ListUserAPIKeysRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { ListUserAPIKeysRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: ApiKeyAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
|
||||
@@ -21,11 +21,11 @@ Get current user profile
|
||||
import {
|
||||
Configuration,
|
||||
MeApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { GetMeRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { GetMeRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: ApiKeyAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
@@ -84,11 +84,11 @@ Update current user profile
|
||||
import {
|
||||
Configuration,
|
||||
MeApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { UpdateMeRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { UpdateMeRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: ApiKeyAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
|
||||
@@ -21,7 +21,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { ModelsAPIKey } from '@glueops/autoglue-sdk'
|
||||
import type { ModelsAPIKey } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
@@ -15,7 +15,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { ModelsOrganization } from '@glueops/autoglue-sdk'
|
||||
import type { ModelsOrganization } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
@@ -17,7 +17,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { ModelsUser } from '@glueops/autoglue-sdk'
|
||||
import type { ModelsUser } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
@@ -18,7 +18,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { ModelsUserEmail } from '@glueops/autoglue-sdk'
|
||||
import type { ModelsUserEmail } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
@@ -30,11 +30,11 @@ Add or update a member (owner/admin)
|
||||
import {
|
||||
Configuration,
|
||||
OrgsApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { AddOrUpdateMemberRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { AddOrUpdateMemberRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: BearerAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
@@ -103,11 +103,11 @@ Create organization
|
||||
import {
|
||||
Configuration,
|
||||
OrgsApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { CreateOrgRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { CreateOrgRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: BearerAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
@@ -175,11 +175,11 @@ Create org key/secret pair (owner/admin)
|
||||
import {
|
||||
Configuration,
|
||||
OrgsApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { CreateOrgKeyRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { CreateOrgKeyRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: BearerAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
@@ -248,11 +248,11 @@ Delete organization (owner)
|
||||
import {
|
||||
Configuration,
|
||||
OrgsApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { DeleteOrgRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { DeleteOrgRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: BearerAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
@@ -319,11 +319,11 @@ Delete org key (owner/admin)
|
||||
import {
|
||||
Configuration,
|
||||
OrgsApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { DeleteOrgKeyRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { DeleteOrgKeyRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: BearerAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
@@ -392,11 +392,11 @@ Get organization
|
||||
import {
|
||||
Configuration,
|
||||
OrgsApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { GetOrgRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { GetOrgRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: BearerAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
@@ -463,11 +463,11 @@ List members in org
|
||||
import {
|
||||
Configuration,
|
||||
OrgsApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { ListMembersRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { ListMembersRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: BearerAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
@@ -533,11 +533,11 @@ List organizations I belong to
|
||||
import {
|
||||
Configuration,
|
||||
OrgsApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { ListMyOrgsRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { ListMyOrgsRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: BearerAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
@@ -595,11 +595,11 @@ List org-scoped API keys (no secrets)
|
||||
import {
|
||||
Configuration,
|
||||
OrgsApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { ListOrgKeysRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { ListOrgKeysRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: BearerAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
@@ -665,11 +665,11 @@ Remove a member (owner/admin)
|
||||
import {
|
||||
Configuration,
|
||||
OrgsApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { RemoveMemberRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { RemoveMemberRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: BearerAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
@@ -738,11 +738,11 @@ Update organization (owner/admin)
|
||||
import {
|
||||
Configuration,
|
||||
OrgsApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { UpdateOrgRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { UpdateOrgRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: BearerAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
|
||||
@@ -26,11 +26,11 @@ Creates a server bound to the org in X-Org-ID. Validates that ssh_key_id belongs
|
||||
import {
|
||||
Configuration,
|
||||
ServersApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { CreateServerRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { CreateServerRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: OrgKeyAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
@@ -108,11 +108,11 @@ Permanently deletes the server.
|
||||
import {
|
||||
Configuration,
|
||||
ServersApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { DeleteServerRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { DeleteServerRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: OrgKeyAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
@@ -190,11 +190,11 @@ Returns one server in the given organization.
|
||||
import {
|
||||
Configuration,
|
||||
ServersApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { GetServerRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { GetServerRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: OrgKeyAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
@@ -273,11 +273,11 @@ Returns servers for the organization in X-Org-ID. Optional filters: status, role
|
||||
import {
|
||||
Configuration,
|
||||
ServersApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { ListServersRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { ListServersRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: OrgKeyAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
@@ -357,11 +357,11 @@ Partially update fields; changing ssh_key_id validates ownership.
|
||||
import {
|
||||
Configuration,
|
||||
ServersApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { UpdateServerRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { UpdateServerRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: OrgKeyAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
|
||||
@@ -26,11 +26,11 @@ Generates an RSA or ED25519 keypair, saves it, and returns metadata. For RSA you
|
||||
import {
|
||||
Configuration,
|
||||
SshApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { CreateSSHKeyRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { CreateSSHKeyRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: OrgKeyAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
@@ -108,11 +108,11 @@ Permanently deletes a keypair.
|
||||
import {
|
||||
Configuration,
|
||||
SshApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { DeleteSSHKeyRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { DeleteSSHKeyRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: OrgKeyAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
@@ -190,11 +190,11 @@ Download `part=public|private|both` of the keypair. `both&#x
|
||||
import {
|
||||
Configuration,
|
||||
SshApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { DownloadSSHKeyRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { DownloadSSHKeyRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: OrgKeyAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
@@ -276,11 +276,11 @@ Returns public key fields. Append `?reveal=true` to include the p
|
||||
import {
|
||||
Configuration,
|
||||
SshApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { GetSSHKeyRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { GetSSHKeyRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: OrgKeyAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
@@ -362,11 +362,11 @@ Returns ssh keys for the organization in X-Org-ID.
|
||||
import {
|
||||
Configuration,
|
||||
SshApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { ListPublicSshKeysRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { ListPublicSshKeysRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: OrgKeyAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
|
||||
@@ -26,11 +26,11 @@ Creates a taint.
|
||||
import {
|
||||
Configuration,
|
||||
TaintsApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { CreateTaintRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { CreateTaintRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: OrgKeyAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
@@ -108,11 +108,11 @@ Permanently deletes the taint.
|
||||
import {
|
||||
Configuration,
|
||||
TaintsApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { DeleteTaintRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { DeleteTaintRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: OrgKeyAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
@@ -188,11 +188,11 @@ Get node taint by ID (org scoped)
|
||||
import {
|
||||
Configuration,
|
||||
TaintsApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { GetTaintRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { GetTaintRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: OrgKeyAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
@@ -271,11 +271,11 @@ Returns node taints for the organization in X-Org-ID. Filters: `key`,
|
||||
import {
|
||||
Configuration,
|
||||
TaintsApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { ListTaintsRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { ListTaintsRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: OrgKeyAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
@@ -358,11 +358,11 @@ Partially update taint fields.
|
||||
import {
|
||||
Configuration,
|
||||
TaintsApi,
|
||||
} from '@glueops/autoglue-sdk';
|
||||
import type { UpdateTaintRequest } from '@glueops/autoglue-sdk';
|
||||
} from '@glueops/autoglue-sdk-go';
|
||||
import type { UpdateTaintRequest } from '@glueops/autoglue-sdk-go';
|
||||
|
||||
async function example() {
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk SDK...");
|
||||
console.log("🚀 Testing @glueops/autoglue-sdk-go SDK...");
|
||||
const config = new Configuration({
|
||||
// To configure API key authorization: OrgKeyAuth
|
||||
apiKey: "YOUR API KEY",
|
||||
|
||||
@@ -12,7 +12,7 @@ Name | Type
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { UtilsErrorResponse } from '@glueops/autoglue-sdk'
|
||||
import type { UtilsErrorResponse } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
|
||||
Reference in New Issue
Block a user