Skip to content

Commit 9d0a4ba

Browse files
authored
Merge pull request #7 from fabra-io/speakeasy-sdk-regen-1683230889
chore: speakeasy sdk regeneration - Generate
2 parents 5ed763a + 9595f6a commit 9d0a4ba

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+1205
-260
lines changed

README.md

Lines changed: 31 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -19,75 +19,66 @@ go get github.com/fabra-io/go-sdk
1919
```go
2020
package main
2121

22-
import (
23-
"context"
24-
"log"
25-
"github.com/fabra-io/go-sdk"
26-
"github.com/fabra-io/go-sdk/pkg/models/shared"
27-
"github.com/fabra-io/go-sdk/pkg/models/operations"
22+
import(
23+
"context"
24+
"log"
25+
"github.com/fabra-io/go-sdk"
26+
"github.com/fabra-io/go-sdk/pkg/models/operations"
2827
)
2928

3029
func main() {
31-
s := fabra.New(fabra.WithSecurity(
32-
shared.Security{
33-
APIKeyAuth: shared.SchemeAPIKeyAuth{
34-
APIKey: "YOUR_API_KEY_HERE",
35-
},
36-
},
37-
))
38-
39-
req := operations.GetNamespacesRequest{
40-
QueryParams: operations.GetNamespacesQueryParams{
41-
ConnectionID: 548814,
42-
},
43-
}
30+
s := fabra.New(
31+
fabra.WithSecurity(shared.Security{
32+
APIKeyAuth: "YOUR_API_KEY_HERE",
33+
}),
34+
)
4435

4536
ctx := context.Background()
46-
res, err := s.Connection.GetNamespaces(ctx, req)
37+
res, err := s.Connection.GetNamespaces(ctx, 548814)
4738
if err != nil {
4839
log.Fatal(err)
4940
}
5041

51-
if res.GetNamespaces200ApplicationJSONObject != nil {
42+
if res.Namespaces != nil {
5243
// handle response
5344
}
5445
}
5546
```
5647
<!-- End SDK Example Usage -->
5748

5849
<!-- Start SDK Available Operations -->
59-
## SDK Available Operations
50+
## Available Resources and Operations
6051

6152

62-
### Connection
53+
### [Connection](docs/connection/README.md)
6354

64-
* `GetNamespaces` - Get all namespaces
65-
* `GetSchema` - Get schema for table
66-
* `GetTables` - Get all tables
55+
* [GetNamespaces](docs/connection/README.md#getnamespaces) - Get all namespaces
56+
* [GetSchema](docs/connection/README.md#getschema) - Get schema for table
57+
* [GetTables](docs/connection/README.md#gettables) - Get all tables
6758

68-
### Destination
59+
### [Destination](docs/destination/README.md)
6960

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

73-
### LinkToken
64+
### [LinkToken](docs/linktoken/README.md)
7465

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

77-
### Object
68+
### [Object](docs/object/README.md)
7869

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

82-
### Source
73+
### [Source](docs/source/README.md)
8374

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

87-
### Sync
78+
### [Sync](docs/sync/README.md)
8879

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

9384
### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)

RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,12 @@ Based on:
7878
- OpenAPI Doc 0.1.0 https://fabra-io.github.io/docs/openapi.yaml
7979
- Speakeasy CLI 1.8.5 https://github.com/speakeasy-api/speakeasy
8080
### Releases
81-
- [Go v0.5.2] https://github.com/fabra-io/go-sdk/releases/tag/v0.5.2 - .
81+
- [Go v0.5.2] https://github.com/fabra-io/go-sdk/releases/tag/v0.5.2 - .
82+
83+
## 2023-05-04 20:08:08
84+
### Changes
85+
Based on:
86+
- OpenAPI Doc 0.1.0
87+
- Speakeasy CLI 1.29.0 (2.26.0) https://github.com/speakeasy-api/speakeasy
88+
### Releases
89+
- [Go v0.6.0] https://github.com/fabra-io/go-sdk/releases/tag/v0.6.0 - .

USAGE.md

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,27 @@
22
```go
33
package main
44

5-
import (
6-
"context"
7-
"log"
8-
"github.com/fabra-io/go-sdk"
9-
"github.com/fabra-io/go-sdk/pkg/models/shared"
10-
"github.com/fabra-io/go-sdk/pkg/models/operations"
5+
import(
6+
"context"
7+
"log"
8+
"github.com/fabra-io/go-sdk"
9+
"github.com/fabra-io/go-sdk/pkg/models/operations"
1110
)
1211

1312
func main() {
14-
s := fabra.New(fabra.WithSecurity(
15-
shared.Security{
16-
APIKeyAuth: shared.SchemeAPIKeyAuth{
17-
APIKey: "YOUR_API_KEY_HERE",
18-
},
19-
},
20-
))
21-
22-
req := operations.GetNamespacesRequest{
23-
QueryParams: operations.GetNamespacesQueryParams{
24-
ConnectionID: 548814,
25-
},
26-
}
13+
s := fabra.New(
14+
fabra.WithSecurity(shared.Security{
15+
APIKeyAuth: "YOUR_API_KEY_HERE",
16+
}),
17+
)
2718

2819
ctx := context.Background()
29-
res, err := s.Connection.GetNamespaces(ctx, req)
20+
res, err := s.Connection.GetNamespaces(ctx, 548814)
3021
if err != nil {
3122
log.Fatal(err)
3223
}
3324

34-
if res.GetNamespaces200ApplicationJSONObject != nil {
25+
if res.Namespaces != nil {
3526
// handle response
3627
}
3728
}

connection.go

Lines changed: 33 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

destination.go

Lines changed: 10 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)