Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.62.1 (#9)
Browse files Browse the repository at this point in the history
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
  • Loading branch information
github-actions[bot] and speakeasybot authored Jul 27, 2023
1 parent c1c2f33 commit f2c48e2
Show file tree
Hide file tree
Showing 41 changed files with 489 additions and 482 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ func main() {
* [Unarchive](docs/sdks/connection/README.md#unarchive) - Unarchive a connection
* [Unpause](docs/sdks/connection/README.md#unpause) - Unpause a connection
* [Update](docs/sdks/connection/README.md#update) - Update a connection
* [Upsert](docs/sdks/connection/README.md#upsert) - Update or create a connection

### [ConnectionNumberUpdate](docs/sdks/connectionnumberupdate/README.md)

* [Upsert](docs/sdks/connectionnumberupdate/README.md#upsert) - Update or create a connection

### [Connections](docs/sdks/connections/README.md)

Expand Down
10 changes: 9 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,12 @@ Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.61.0 (2.70.0) https://github.com/speakeasy-api/speakeasy
### Releases
- [Go v1.4.2] https://github.com/speakeasy-sdks/hookdeck-go/releases/tag/v1.4.2 - .
- [Go v1.4.2] https://github.com/speakeasy-sdks/hookdeck-go/releases/tag/v1.4.2 - .

## 2023-07-19 02:34:11
### Changes
Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.62.1 (2.70.2) https://github.com/speakeasy-api/speakeasy
### Releases
- [Go v1.4.3] https://github.com/speakeasy-sdks/hookdeck-go/releases/tag/v1.4.3 - .
83 changes: 0 additions & 83 deletions connection.go

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

109 changes: 109 additions & 0 deletions connectionnumberupdate.go

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

3 changes: 0 additions & 3 deletions docs/models/operations/getconnectionsrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@
| `Dir` | [*GetConnectionsDir](../../models/operations/getconnectionsdir.md) | :heavy_minus_sign: | N/A |
| `FullName` | **string* | :heavy_minus_sign: | N/A |
| `ID` | [*GetConnectionsID](../../models/operations/getconnectionsid.md) | :heavy_minus_sign: | N/A |
| `Limit` | **int64* | :heavy_minus_sign: | N/A |
| `Name` | [*GetConnectionsName](../../models/operations/getconnectionsname.md) | :heavy_minus_sign: | N/A |
| `Next` | **string* | :heavy_minus_sign: | N/A |
| `OrderBy` | [*GetConnectionsOrderBy](../../models/operations/getconnectionsorderby.md) | :heavy_minus_sign: | N/A |
| `PausedAt` | [*GetConnectionsPausedAt](../../models/operations/getconnectionspausedat.md) | :heavy_minus_sign: | N/A |
| `Prev` | **string* | :heavy_minus_sign: | N/A |
| `SourceID` | [*GetConnectionsSourceID](../../models/operations/getconnectionssourceid.md) | :heavy_minus_sign: | N/A |
120 changes: 0 additions & 120 deletions docs/sdks/connection/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
* [Unarchive](#unarchive) - Unarchive a connection
* [Unpause](#unpause) - Unpause a connection
* [Update](#update) - Update a connection
* [Upsert](#upsert) - Update or create a connection

## Archive

Expand Down Expand Up @@ -536,122 +535,3 @@ func main() {

**[*operations.UpdateConnectionResponse](../../models/operations/updateconnectionresponse.md), error**


## Upsert

Update or create a connection

### Example Usage

```go
package main

import(
"context"
"log"
"github.com/speakeasy-sdks/hookdeck-go"
"github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared"
"github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations"
)

func main() {
s := hookdeck.New(
hookdeck.WithSecurity(shared.Security{
BasicAuth: &shared.SchemeBasicAuth{
Password: "",
Username: "",
},
}),
)

ctx := context.Background()
res, err := s.Connection.Upsert(ctx, operations.UpsertConnectionRequestBody{
Destination: &operations.UpsertConnectionRequestBodyDestination{
AuthMethod: &shared.HookdeckSignature{
Config: &shared.DestinationAuthMethodSignatureConfig{},
Type: shared.HookdeckSignatureTypeHookdeckSignature,
},
CliPath: hookdeck.String("reiciendis"),
HTTPMethod: shared.DestinationHTTPMethodDelete.ToPointer(),
Name: "Jessie Langosh V",
PathForwardingDisabled: hookdeck.Bool(false),
RateLimit: hookdeck.Int64(739264),
RateLimitPeriod: operations.UpsertConnectionRequestBodyDestinationRateLimitPeriodSecond.ToPointer(),
URL: hookdeck.String("doloremque"),
},
DestinationID: hookdeck.String("reprehenderit"),
Name: "Shawna Carter",
Rules: []interface{}{
shared.RetryRule{
Count: hookdeck.Int64(688661),
Interval: hookdeck.Int64(317983),
Strategy: shared.RetryStrategyExponential,
Type: shared.RetryRuleTypeRetry,
},
shared.FilterRule{
Body: &shared.ConnectionFilterProperty{},
Headers: &shared.ConnectionFilterProperty{},
Path: &shared.ConnectionFilterProperty{},
Query: &shared.ConnectionFilterProperty{},
Type: shared.FilterRuleTypeFilter,
},
},
Ruleset: &operations.UpsertConnectionRequestBodyRuleset{
IsTeamDefault: hookdeck.Bool(false),
Name: "Eric Emmerich",
Rules: []interface{}{
shared.DelayRule{
Delay: 265389,
Type: shared.DelayRuleTypeDelay,
},
shared.FilterRule{
Body: &shared.ConnectionFilterProperty{},
Headers: &shared.ConnectionFilterProperty{},
Path: &shared.ConnectionFilterProperty{},
Query: &shared.ConnectionFilterProperty{},
Type: shared.FilterRuleTypeFilter,
},
shared.FilterRule{
Body: &shared.ConnectionFilterProperty{},
Headers: &shared.ConnectionFilterProperty{},
Path: &shared.ConnectionFilterProperty{},
Query: &shared.ConnectionFilterProperty{},
Type: shared.FilterRuleTypeFilter,
},
},
},
RulesetID: hookdeck.String("voluptates"),
Source: &operations.UpsertConnectionRequestBodySource{
AllowedHTTPMethods: []shared.SourceAllowedHTTPMethod{
shared.SourceAllowedHTTPMethodDelete,
},
CustomResponse: &shared.SourceCustomResponse{
Body: "sint",
ContentType: shared.SourceCustomResponseContentTypeJSON,
},
Name: "Miss Randall Hamill",
},
SourceID: hookdeck.String("explicabo"),
})
if err != nil {
log.Fatal(err)
}

if res.Connection != nil {
// handle response
}
}
```

### Parameters

| Parameter | Type | Required | Description |
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. |
| `request` | [operations.UpsertConnectionRequestBody](../../models/operations/upsertconnectionrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |


### Response

**[*operations.UpsertConnectionResponse](../../models/operations/upsertconnectionresponse.md), error**

Loading

0 comments on commit f2c48e2

Please sign in to comment.