Skip to content

Commit

Permalink
Merge pull request #201 from stackql/feature/doc-updates
Browse files Browse the repository at this point in the history
anthropic and confluent
  • Loading branch information
jeffreyaven authored Nov 1, 2024
2 parents f802f59 + 4205811 commit 75d27d6
Show file tree
Hide file tree
Showing 146 changed files with 6,187 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
if [ $PROVIDER == "root" ]; then
echo "adding vanity url redirects to _redirects file.."
touch ./build/_redirects
array=( aws azure azure-extras azure-isv azure-stack digitalocean firebase github openai anthropic google googleadmin k8s linode netlify okta sumologic vercel godaddy pagerduty homebrew datadog )
array=( aws azure azure-extras azure-isv azure-stack digitalocean firebase confluent github openai anthropic google googleadmin k8s linode netlify okta sumologic vercel godaddy pagerduty homebrew datadog )
for i in "${array[@]}"
do
echo "adding redirects for $i"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ This repository contains documentation for StackQL providers, which is published
| Netlify Deploy Azure Stack | [![Netlify Status](https://api.netlify.com/api/v1/badges/53abcb20-0194-41dd-b466-4d933cfffcad/deploy-status)](https://app.netlify.com/sites/stackql-azure-stack-docs/deploys) | [azure-stack-docs.stackql.io](https://azure-stack-docs.stackql.io)<br/>[azure-stack.stackql.io](https://azure-stack.stackql.io) |
| Netlify Deploy OpenAI | [![Netlify Status](https://api.netlify.com/api/v1/badges/6df5743b-8c5d-4949-866e-eda4ca3f74d0/deploy-status)](https://app.netlify.com/sites/stackql-openai-docs/deploys) | [openai-docs.stackql.io](https://openai-docs.stackql.io)<br/>[openai.stackql.io](https://openai.stackql.io) |
| Netlify Deploy Anthropic | [![Netlify Status](https://api.netlify.com/api/v1/badges/114c5a2a-9b76-4941-a0e8-3669ee7d2016/deploy-status)](https://app.netlify.com/sites/stackql-anthropic-docs/deploys) | [anthropic-docs.stackql.io](https://anthropic-docs.stackql.io)<br/>[anthropic.stackql.io](https://anthropic.stackql.io) |

| Netlify Deploy Confluent | [![Netlify Status](https://api.netlify.com/api/v1/badges/63149c2f-6c3d-43f1-be38-80c55c223ac0/deploy-status)](https://app.netlify.com/sites/stackql-confluent-docs/deploys) | [confluent-docs.stackql.io](https://confluent-docs.stackql.io)<br/>[confluent.stackql.io](https://confluent.stackql.io) |

## Adding Docs for a New Provider

Expand Down
1 change: 1 addition & 0 deletions ci-scripts/get-providers-to-deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const allProviders = [
'digitalocean',
'firebase',
'github',
'confluent',
'openai',
'anthropic',
'google',
Expand Down
12 changes: 6 additions & 6 deletions docs/anthropic-docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ import CopyableCode from '@site/src/components/CopyableCode/CopyableCode';

AI models including Claude for advanced language understanding and generation.

:::info Provider Summary (v24.10.00267)
:::info Provider Summary (v24.11.00270)

<div class="row">
<div class="providerDocColumn">
<span>total services:&nbsp;<b>1</b></span><br />
<span>total methods:&nbsp;<b>2</b></span><br />
<span>total methods:&nbsp;<b>1</b></span><br />
</div>
<div class="providerDocColumn">
<span>total resources:&nbsp;<b>2</b></span><br />
<span>total selectable resources:&nbsp;<b>2</b></span><br />
<span>total resources:&nbsp;<b>1</b></span><br />
<span>total selectable resources:&nbsp;<b>1</b></span><br />
</div>
</div>

Expand Down Expand Up @@ -63,15 +63,15 @@ To use different environment variables (instead of the defaults), use the `--aut

```bash

AUTH='{ "anthropic": { "type": "bearer", "credentialsenvvar": "MY_ANTHROPIC_API_KEY" }}'
AUTH='{ "anthropic": { "type": "bearer", "credentialsenvvar": "MY_ANTHROPIC_API_KEY_VAR" }}'
stackql shell --auth="${AUTH}"

```
or using PowerShell:

```powershell
$Auth = "{ 'anthropic': { 'type': 'bearer', 'credentialsenvvar': 'MY_ANTHROPIC_API_KEY' }}"
$Auth = "{ 'anthropic': { 'type': 'bearer', 'credentialsenvvar': 'MY_ANTHROPIC_API_KEY_VAR' }}"
stackql.exe shell --auth=$Auth
```
Expand Down
11 changes: 5 additions & 6 deletions docs/anthropic-docs/providers/anthropic/messages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ Given A List Of Messages Comprising A Conversation, The Model Will Return A Resp

<div class="row">
<div class="providerDocColumn">
<span>total resources:&nbsp;<b>2</b></span><br />
<span>total selectable resources:&nbsp;<b>2</b></span><br />
<span>total methods:&nbsp;<b>2</b></span><br />
<span>total resources:&nbsp;<b>1</b></span><br />
<span>total selectable resources:&nbsp;<b>1</b></span><br />
<span>total methods:&nbsp;<b>1</b></span><br />
</div>
</div>

Expand All @@ -34,15 +34,14 @@ Given A List Of Messages Comprising A Conversation, The Model Will Return A Resp
<tr><td><b>Type</b></td><td>Service</td></tr>
<tr><td><b>Title</b></td><td>Anthropic API - Messages</td></tr>
<tr><td><b>Description</b></td><td>Given A List Of Messages Comprising A Conversation, The Model Will Return A Response.</td></tr>
<tr><td><b>Id</b></td><td><code>messages:v24.10.00267</code></td></tr>
<tr><td><b>Id</b></td><td><code>messages:v24.11.00270</code></td></tr>
</tbody></table>

## Resources
<div class="row">
<div class="providerDocColumn">
<a href="/providers/anthropic/messages/claude_35_chat/">claude_35_chat</a><br />
<a href="/providers/anthropic/messages/message/">message</a><br />
</div>
<div class="providerDocColumn">
<a href="/providers/anthropic/messages/message/">message</a><br />
</div>
</div>
109 changes: 109 additions & 0 deletions docs/confluent-docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
---
title: confluent
hide_title: false
hide_table_of_contents: false
keywords:
- confluent
- stackql
- infrastructure-as-code
- configuration-as-data
- cloud inventory
description: Query, deploy, and manage Confluent Cloud resources using SQL.
custom_edit_url: null
image: /img/providers/confluent/stackql-confluent-provider-featured-image.png
id: confluent-doc
slug: /providers/confluent
---

import CopyableCode from '@site/src/components/CopyableCode/CopyableCode';

Confluent Cloud for managing Kafka clusters, topics, and streaming services in a scalable cloud environment.

:::info Provider Summary (v24.11.00270)

<div class="row">
<div class="providerDocColumn">
<span>total services:&nbsp;<b>22</b></span><br />
<span>total methods:&nbsp;<b>391</b></span><br />
</div>
<div class="providerDocColumn">
<span>total resources:&nbsp;<b>111</b></span><br />
<span>total selectable resources:&nbsp;<b>81</b></span><br />
</div>
</div>

:::

See also:
[[` SHOW `]](https://stackql.io/docs/language-spec/show) [[` DESCRIBE `]](https://stackql.io/docs/language-spec/describe) [[` REGISTRY `]](https://stackql.io/docs/language-spec/registry)
* * *

## Installation

To pull the latest version of the `confluent` provider, run the following command:

```bash
REGISTRY PULL confluent;
```
> To view previous provider versions or to pull a specific provider version, see [here](https://stackql.io/docs/language-spec/registry).
## Authentication

The following system environment variables are used for authentication by default:

- <CopyableCode code="CONFLUENT_CLOUD_API_KEY" /> - Confluent Cloud API key (see <a href="https://confluent.cloud/settings/api-keys">Confluent Cloud API keys</a>)
- <CopyableCode code="CONFLUENT_CLOUD_API_SECRET" /> - Confluent Cloud API secret (see <a href="https://confluent.cloud/settings/api-keys">Confluent Cloud API keys</a>)

These variables are sourced at runtime (from the local machine or as CI variables/secrets).

<details>

<summary>Using different environment variables</summary>

To use different environment variables (instead of the defaults), use the `--auth` flag of the `stackql` program. For example:

```bash

AUTH='{ "anthropic": { "type": "basic", "username_var": "MY_CONFLUENT_CLOUD_API_KEY_VAR", "password_var": "MY_CONFLUENT_CLOUD_API_SECRET_VAR" }}'
stackql shell --auth="${AUTH}"

```
or using PowerShell:

```powershell
$Auth = "{ 'anthropic': { 'type': 'basic', 'username_var': 'MY_CONFLUENT_CLOUD_API_KEY_VAR', 'password_var': 'MY_CONFLUENT_CLOUD_API_SECRET_VAR' }}"
stackql.exe shell --auth=$Auth
```
</details>

## Services
<div class="row">
<div class="providerDocColumn">
<a href="/providers/confluent/billing/">billing</a><br />
<a href="/providers/confluent/catalog/">catalog</a><br />
<a href="/providers/confluent/connect/">connect</a><br />
<a href="/providers/confluent/encryption_keys/">encryption_keys</a><br />
<a href="/providers/confluent/flink_artifacts/">flink_artifacts</a><br />
<a href="/providers/confluent/flink_compute_pools/">flink_compute_pools</a><br />
<a href="/providers/confluent/iam/">iam</a><br />
<a href="/providers/confluent/kafka/">kafka</a><br />
<a href="/providers/confluent/ksqldb_clusters/">ksqldb_clusters</a><br />
<a href="/providers/confluent/managed_kafka_clusters/">managed_kafka_clusters</a><br />
<a href="/providers/confluent/networking/">networking</a><br />
</div>
<div class="providerDocColumn">
<a href="/providers/confluent/notifications/">notifications</a><br />
<a href="/providers/confluent/org/">org</a><br />
<a href="/providers/confluent/partner/">partner</a><br />
<a href="/providers/confluent/pipelines/">pipelines</a><br />
<a href="/providers/confluent/provider_integrations/">provider_integrations</a><br />
<a href="/providers/confluent/quotas/">quotas</a><br />
<a href="/providers/confluent/schema_registry/">schema_registry</a><br />
<a href="/providers/confluent/schema_registry_clusters/">schema_registry_clusters</a><br />
<a href="/providers/confluent/sql/">sql</a><br />
<a href="/providers/confluent/stream_sharing/">stream_sharing</a><br />
<a href="/providers/confluent/sts/">sts</a><br />
</div>
</div>
52 changes: 52 additions & 0 deletions docs/confluent-docs/providers/confluent/billing/costs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
title: costs
hide_title: false
hide_table_of_contents: false
keywords:
- costs
- billing
- confluent
- stackql
- infrastructure-as-code
- configuration-as-data
- cloud inventory
description: Query, deploy, and manage Confluent Cloud resources using SQL.
custom_edit_url: null
image: /img/providers/confluent/stackql-confluent-provider-featured-image.png
---

import CopyableCode from '@site/src/components/CopyableCode/CopyableCode';




## Overview
<table><tbody>
<tr><td><b>Name</b></td><td><code>costs</code></td></tr>
<tr><td><b>Type</b></td><td>Resource</td></tr>
<tr><td><b>Id</b></td><td><CopyableCode code="confluent.billing.costs" /></td></tr>
</tbody></table>

## Fields
| Name | Datatype | Description |
|:-----|:---------|:------------|
| <CopyableCode code="id" /> | `string` | ID is the "natural identifier" for an object within its scope/namespace; it is normally unique across time but not space. That is, you can assume that the ID will not be reclaimed and reused after an object is deleted ("time"); however, it may collide with IDs for other object `kinds` or objects of the same `kind` within a different scope/namespace ("space"). |
| <CopyableCode code="amount" /> | `number` | Final amount after deducting discounts. |
| <CopyableCode code="api_version" /> | `string` | APIVersion defines the schema version of this representation of a resource. |
| <CopyableCode code="discount_amount" /> | `number` | Amount discounted from the original amount in dollars. |
| <CopyableCode code="end_date" /> | `string` | End date of time period (exclusive) to retrieve billing costs. It is represented in RFC3339 format and is in UTC. |
| <CopyableCode code="granularity" /> | `string` | Granularity at which each line item is aggregated. |
| <CopyableCode code="kind" /> | `string` | Kind defines the object this REST resource represents. |
| <CopyableCode code="line_type" /> | `string` | Type of the line item. |
| <CopyableCode code="network_access_type" /> | `string` | Network access type for the cluster. |
| <CopyableCode code="original_amount" /> | `number` | Original amount accrued for this line item. |
| <CopyableCode code="price" /> | `number` | Price for the line item in dollars. |
| <CopyableCode code="product" /> | `string` | Product name. |
| <CopyableCode code="quantity" /> | `number` | Quantity of the line item. |
| <CopyableCode code="resource" /> | `object` | The resource for a given object |
| <CopyableCode code="start_date" /> | `string` | Start date of time period (inclusive) to retrieve billing costs. It is represented in RFC3339 format and is in UTC. |
| <CopyableCode code="unit" /> | `string` | Unit of the line item. |
## Methods
| Name | Accessible by | Required Params |
|:-----|:--------------|:----------------|
| <CopyableCode code="list_billing_v1costs" /> | `SELECT` | <CopyableCode code="end_date, start_date" /> |
47 changes: 47 additions & 0 deletions docs/confluent-docs/providers/confluent/billing/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
title: billing
hide_title: false
hide_table_of_contents: false
keywords:
- billing
- confluent
- stackql
- infrastructure-as-code
- configuration-as-data
- cloud inventory
description: Query, deploy, and manage Confluent Cloud resources using SQL.
custom_edit_url: null
image: /img/providers/confluent/stackql-confluent-provider-featured-image.png
---

Billing

:::info Service Summary

<div class="row">
<div class="providerDocColumn">
<span>total resources:&nbsp;<b>1</b></span><br />
<span>total selectable resources:&nbsp;<b>1</b></span><br />
<span>total methods:&nbsp;<b>1</b></span><br />
</div>
</div>

:::

## Overview
<table><tbody>
<tr><td><b>Name</b></td><td><code>confluent.billing</code></td></tr>
<tr><td><b>Type</b></td><td>Service</td></tr>
<tr><td><b>Title</b></td><td>Confluent Cloud APIs - Billing</td></tr>
<tr><td><b>Description</b></td><td>Billing</td></tr>
<tr><td><b>Id</b></td><td><code>billing:v24.10.00268</code></td></tr>
</tbody></table>

## Resources
<div class="row">
<div class="providerDocColumn">
<a href="/providers/confluent/billing/costs/">costs</a><br />
</div>
<div class="providerDocColumn">
</div>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
title: business_metadata
hide_title: false
hide_table_of_contents: false
keywords:
- business_metadata
- catalog
- confluent
- stackql
- infrastructure-as-code
- configuration-as-data
- cloud inventory
description: Query, deploy, and manage Confluent Cloud resources using SQL.
custom_edit_url: null
image: /img/providers/confluent/stackql-confluent-provider-featured-image.png
---

import CopyableCode from '@site/src/components/CopyableCode/CopyableCode';




## Overview
<table><tbody>
<tr><td><b>Name</b></td><td><code>business_metadata</code></td></tr>
<tr><td><b>Type</b></td><td>Resource</td></tr>
<tr><td><b>Id</b></td><td><CopyableCode code="confluent.catalog.business_metadata" /></td></tr>
</tbody></table>

## Fields
| Name | Datatype | Description |
|:-----|:---------|:------------|
| <CopyableCode code="attributes" /> | `object` | The business metadata attributes |
| <CopyableCode code="entityName" /> | `string` | The qualified name of the entity |
| <CopyableCode code="entityType" /> | `string` | The entity type |
| <CopyableCode code="error" /> | `object` | Error message of this operation |
| <CopyableCode code="typeName" /> | `string` | The business metadata name |
## Methods
| Name | Accessible by | Required Params | Description |
|:-----|:--------------|:----------------|:------------|
| <CopyableCode code="get_business_metadata" /> | `SELECT` | <CopyableCode code="qualifiedName, typeName" /> | [![Generally Available](https://img.shields.io/badge/Lifecycle%20Stage-Generally%20Available-%2345c6e8)](#section/Versioning/API-Lifecycle-Policy)<br /><br />Gets the list of business metadata for a given entity represented<br />by a qualified name. |
| <CopyableCode code="create_business_metadata" /> | `INSERT` | | [![Generally Available](https://img.shields.io/badge/Lifecycle%20Stage-Generally%20Available-%2345c6e8)](#section/Versioning/API-Lifecycle-Policy)<br /><br />Bulk API to create multiple business metadata. |
| <CopyableCode code="delete_business_metadata" /> | `DELETE` | <CopyableCode code="bmName, qualifiedName, typeName" /> | [![Generally Available](https://img.shields.io/badge/Lifecycle%20Stage-Generally%20Available-%2345c6e8)](#section/Versioning/API-Lifecycle-Policy)<br /><br />Delete a business metadata on an entity. |
| <CopyableCode code="update_business_metadata" /> | `EXEC` | | [![Generally Available](https://img.shields.io/badge/Lifecycle%20Stage-Generally%20Available-%2345c6e8)](#section/Versioning/API-Lifecycle-Policy)<br /><br />Bulk API to update multiple business metadata. |
Loading

0 comments on commit 75d27d6

Please sign in to comment.