Skip to content

Commit

Permalink
feat(sdk): automated oas update (#24)
Browse files Browse the repository at this point in the history
* feat(sdk): automated oas update

* Bump .speakeasy/gen.yaml based on label

* Update provider based on openapi.yaml changes

---------

Co-authored-by: pmalek <[email protected]>
Co-authored-by: team-k8s-bot <[email protected]>
  • Loading branch information
3 people authored Nov 26, 2024
1 parent 9e62c1f commit 4334aa3
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: b81e5def-5b1e-4753-ae7c-0efccc2e6f61
management:
docChecksum: 63fbac813a0aa3fa24ffb199de5fa858
docChecksum: fa29cc9e179c247d0bd4fc3d22a986e7
docVersion: 0.0.1
speakeasyVersion: 1.446.1
generationVersion: 2.462.1
releaseVersion: 0.1.9
configChecksum: ea4943250fc3728ab6d9fca49f8d3212
speakeasyVersion: 1.447.0
generationVersion: 2.463.0
releaseVersion: 0.1.10
configChecksum: c8dc9502d5252fed4b14ed4eff9888c2
features:
go:
additionalDependencies: 0.1.0
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
go:
version: 0.1.9
version: 0.1.10
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
Expand Down
1 change: 1 addition & 0 deletions docs/models/components/assignroleentityregion.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ The region of the team.
| `AssignRoleEntityRegionUs` | us |
| `AssignRoleEntityRegionEu` | eu |
| `AssignRoleEntityRegionAu` | au |
| `AssignRoleEntityRegionMe` | me |
| `AssignRoleEntityRegionWildcard` | * |
1 change: 1 addition & 0 deletions docs/models/components/entityregion.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ Region of the entity.
| `EntityRegionUs` | us |
| `EntityRegionEu` | eu |
| `EntityRegionAu` | au |
| `EntityRegionMe` | me |
| `EntityRegionWildcard` | * |
3 changes: 3 additions & 0 deletions models/components/assignedrole.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const (
EntityRegionUs EntityRegion = "us"
EntityRegionEu EntityRegion = "eu"
EntityRegionAu EntityRegion = "au"
EntityRegionMe EntityRegion = "me"
EntityRegionWildcard EntityRegion = "*"
)

Expand All @@ -32,6 +33,8 @@ func (e *EntityRegion) UnmarshalJSON(data []byte) error {
fallthrough
case "au":
fallthrough
case "me":
fallthrough
case "*":
*e = EntityRegion(v)
return nil
Expand Down
3 changes: 3 additions & 0 deletions models/components/assignrole.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ const (
AssignRoleEntityRegionUs AssignRoleEntityRegion = "us"
AssignRoleEntityRegionEu AssignRoleEntityRegion = "eu"
AssignRoleEntityRegionAu AssignRoleEntityRegion = "au"
AssignRoleEntityRegionMe AssignRoleEntityRegion = "me"
AssignRoleEntityRegionWildcard AssignRoleEntityRegion = "*"
)

Expand All @@ -200,6 +201,8 @@ func (e *AssignRoleEntityRegion) UnmarshalJSON(data []byte) error {
fallthrough
case "au":
fallthrough
case "me":
fallthrough
case "*":
*e = AssignRoleEntityRegion(v)
return nil
Expand Down
2 changes: 2 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6650,6 +6650,7 @@ components:
- us
- eu
- au
- me
- '*'
example:
id: 54cc6168-ebb1-4300-8168-d62a0dd08fc8
Expand Down Expand Up @@ -9269,6 +9270,7 @@ components:
- us
- eu
- au
- me
- '*'
description: The request schema for assigning a role.
InviteUser:
Expand Down
6 changes: 3 additions & 3 deletions sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,9 @@ func New(opts ...SDKOption) *SDK {
sdkConfiguration: sdkConfiguration{
Language: "go",
OpenAPIDocVersion: "0.0.1",
SDKVersion: "0.1.9",
GenVersion: "2.462.1",
UserAgent: "speakeasy-sdk/go 0.1.9 2.462.1 0.0.1 github.com/Kong/sdk-konnect-go",
SDKVersion: "0.1.10",
GenVersion: "2.463.0",
UserAgent: "speakeasy-sdk/go 0.1.10 2.463.0 0.0.1 github.com/Kong/sdk-konnect-go",
Hooks: hooks.New(),
},
}
Expand Down

0 comments on commit 4334aa3

Please sign in to comment.