Skip to content

Commit

Permalink
Merge pull request #7 from fabra-io/speakeasy-sdk-regen-1683230889
Browse files Browse the repository at this point in the history
chore: speakeasy sdk regeneration - Generate
  • Loading branch information
nfiacco authored May 4, 2023
2 parents 5ed763a + 9595f6a commit 9d0a4ba
Show file tree
Hide file tree
Showing 65 changed files with 1,205 additions and 260 deletions.
71 changes: 31 additions & 40 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,75 +19,66 @@ go get github.com/fabra-io/go-sdk
```go
package main

import (
"context"
"log"
"github.com/fabra-io/go-sdk"
"github.com/fabra-io/go-sdk/pkg/models/shared"
"github.com/fabra-io/go-sdk/pkg/models/operations"
import(
"context"
"log"
"github.com/fabra-io/go-sdk"
"github.com/fabra-io/go-sdk/pkg/models/operations"
)

func main() {
s := fabra.New(fabra.WithSecurity(
shared.Security{
APIKeyAuth: shared.SchemeAPIKeyAuth{
APIKey: "YOUR_API_KEY_HERE",
},
},
))

req := operations.GetNamespacesRequest{
QueryParams: operations.GetNamespacesQueryParams{
ConnectionID: 548814,
},
}
s := fabra.New(
fabra.WithSecurity(shared.Security{
APIKeyAuth: "YOUR_API_KEY_HERE",
}),
)

ctx := context.Background()
res, err := s.Connection.GetNamespaces(ctx, req)
res, err := s.Connection.GetNamespaces(ctx, 548814)
if err != nil {
log.Fatal(err)
}

if res.GetNamespaces200ApplicationJSONObject != nil {
if res.Namespaces != nil {
// handle response
}
}
```
<!-- End SDK Example Usage -->

<!-- Start SDK Available Operations -->
## SDK Available Operations
## Available Resources and Operations


### Connection
### [Connection](docs/connection/README.md)

* `GetNamespaces` - Get all namespaces
* `GetSchema` - Get schema for table
* `GetTables` - Get all tables
* [GetNamespaces](docs/connection/README.md#getnamespaces) - Get all namespaces
* [GetSchema](docs/connection/README.md#getschema) - Get schema for table
* [GetTables](docs/connection/README.md#gettables) - Get all tables

### Destination
### [Destination](docs/destination/README.md)

* `CreateDestination` - Create a new destination
* `GetDestinations` - Get all destinations
* [CreateDestination](docs/destination/README.md#createdestination) - Create a new destination
* [GetDestinations](docs/destination/README.md#getdestinations) - Get all destinations

### LinkToken
### [LinkToken](docs/linktoken/README.md)

* `CreateLinkToken` - Create a new link token
* [CreateLinkToken](docs/linktoken/README.md#createlinktoken) - Create a new link token

### Object
### [Object](docs/object/README.md)

* `CreateObject` - Create a new object
* `GetObjects` - Get all objects
* [CreateObject](docs/object/README.md#createobject) - Create a new object
* [GetObjects](docs/object/README.md#getobjects) - Get all objects

### Source
### [Source](docs/source/README.md)

* `CreateSource` - Create a new source
* `GetSources` - Get all sources
* [CreateSource](docs/source/README.md#createsource) - Create a new source
* [GetSources](docs/source/README.md#getsources) - Get all sources

### Sync
### [Sync](docs/sync/README.md)

* `CreateSync` - Create a new sync
* `GetSyncs` - Get all syncs
* [CreateSync](docs/sync/README.md#createsync) - Create a new sync
* [GetSyncs](docs/sync/README.md#getsyncs) - Get all syncs
<!-- End SDK Available Operations -->

### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)
10 changes: 9 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,12 @@ Based on:
- OpenAPI Doc 0.1.0 https://fabra-io.github.io/docs/openapi.yaml
- Speakeasy CLI 1.8.5 https://github.com/speakeasy-api/speakeasy
### Releases
- [Go v0.5.2] https://github.com/fabra-io/go-sdk/releases/tag/v0.5.2 - .
- [Go v0.5.2] https://github.com/fabra-io/go-sdk/releases/tag/v0.5.2 - .

## 2023-05-04 20:08:08
### Changes
Based on:
- OpenAPI Doc 0.1.0
- Speakeasy CLI 1.29.0 (2.26.0) https://github.com/speakeasy-api/speakeasy
### Releases
- [Go v0.6.0] https://github.com/fabra-io/go-sdk/releases/tag/v0.6.0 - .
33 changes: 12 additions & 21 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,27 @@
```go
package main

import (
"context"
"log"
"github.com/fabra-io/go-sdk"
"github.com/fabra-io/go-sdk/pkg/models/shared"
"github.com/fabra-io/go-sdk/pkg/models/operations"
import(
"context"
"log"
"github.com/fabra-io/go-sdk"
"github.com/fabra-io/go-sdk/pkg/models/operations"
)

func main() {
s := fabra.New(fabra.WithSecurity(
shared.Security{
APIKeyAuth: shared.SchemeAPIKeyAuth{
APIKey: "YOUR_API_KEY_HERE",
},
},
))

req := operations.GetNamespacesRequest{
QueryParams: operations.GetNamespacesQueryParams{
ConnectionID: 548814,
},
}
s := fabra.New(
fabra.WithSecurity(shared.Security{
APIKeyAuth: "YOUR_API_KEY_HERE",
}),
)

ctx := context.Background()
res, err := s.Connection.GetNamespaces(ctx, req)
res, err := s.Connection.GetNamespaces(ctx, 548814)
if err != nil {
log.Fatal(err)
}

if res.GetNamespaces200ApplicationJSONObject != nil {
if res.Namespaces != nil {
// handle response
}
}
Expand Down
41 changes: 33 additions & 8 deletions connection.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 10 additions & 2 deletions destination.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9d0a4ba

Please sign in to comment.