Skip to content

Commit 1247ff9

Browse files
renovate[bot]pmalekteam-k8s-bot
authored
chore(deps): update dependency speakeasy-api/speakeasy to v1.494.0 (#74)
* chore(deps): update dependency speakeasy-api/speakeasy to v1.494.0 * Bump .speakeasy/gen.yaml based on label * Update provider based on openapi.yaml changes --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: pmalek <[email protected]> Co-authored-by: team-k8s-bot <[email protected]>
1 parent 074f34f commit 1247ff9

Some content is hidden

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

53 files changed

+2106
-1917
lines changed

.github/workflows/bump-version.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
repo: speakeasy
4141
cli_name: speakeasy
4242
package_type: zip
43-
version: 1.487.0 # renovate: datasource=github-releases depName=speakeasy-api/speakeasy
43+
version: 1.494.0 # renovate: datasource=github-releases depName=speakeasy-api/speakeasy
4444

4545
- name: Checkout
4646
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

.github/workflows/generate_on_pr.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
repo: speakeasy
4949
cli_name: speakeasy
5050
package_type: zip
51-
version: 1.487.0 # renovate: datasource=github-releases depName=speakeasy-api/speakeasy
51+
version: 1.494.0 # renovate: datasource=github-releases depName=speakeasy-api/speakeasy
5252

5353
- name: Checkout current repo
5454
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

.speakeasy/gen.lock

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ id: b81e5def-5b1e-4753-ae7c-0efccc2e6f61
33
management:
44
docChecksum: 1c33de3180335d9e55c4aef1ee457182
55
docVersion: 0.0.1
6-
speakeasyVersion: 1.487.0
7-
generationVersion: 2.506.0
8-
releaseVersion: 0.2.12
9-
configChecksum: 1b8e58a09ee0fc08981e223e73208bca
6+
speakeasyVersion: 1.494.0
7+
generationVersion: 2.515.0
8+
releaseVersion: 0.2.13
9+
configChecksum: fae2ad1cd70335ab70acc81ac52af7a1
1010
features:
1111
go:
1212
additionalDependencies: 0.1.0
13-
constsAndDefaults: 0.1.7
14-
core: 3.7.0
13+
constsAndDefaults: 0.1.9
14+
core: 3.7.1
1515
deepObjectParams: 0.1.1
1616
defaultEnabledRetries: 0.2.0
1717
envVarSecurityUsage: 0.3.2
1818
flattening: 2.81.1
19-
globalSecurity: 2.82.10
19+
globalSecurity: 2.82.11
2020
globalSecurityCallbacks: 0.1.0
2121
globalServerURLs: 2.82.2
2222
groups: 2.81.2

.speakeasy/gen.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ generation:
77
useClassNamesForArrayFields: true
88
fixes:
99
nameResolutionDec2023: true
10+
nameResolutionFeb2025: false
1011
parameterOrderingFeb2024: true
1112
requestResponseComponentNamesFeb2024: true
13+
securityFeb2025: false
1214
auth:
1315
oAuth2ClientCredentialsEnabled: false
1416
oAuth2PasswordEnabled: false
1517
go:
16-
version: 0.2.12
18+
version: 0.2.13
1719
additionalDependencies: {}
1820
allowUnknownFieldsInWeakUnions: false
1921
clientServerStatusCodesAsErrors: true

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ func main() {
8787

8888
You can override the default server globally using the `WithServerIndex(serverIndex int)` option when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
8989

90-
| # | Server |
91-
| --- | ------------------------------- |
92-
| 0 | `https://global.api.konghq.com` |
93-
| 1 | `https://us.api.konghq.com` |
94-
| 2 | `https://eu.api.konghq.com` |
95-
| 3 | `https://au.api.konghq.com` |
90+
| # | Server | Description |
91+
| --- | ------------------------------- | ----------- |
92+
| 0 | `https://global.api.konghq.com` | |
93+
| 1 | `https://us.api.konghq.com` | |
94+
| 2 | `https://eu.api.konghq.com` | |
95+
| 3 | `https://au.api.konghq.com` | |
9696

9797
#### Example
9898

acls.go

+54-49
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,6 @@ func newACLs(sdkConfig sdkConfiguration) *ACLs {
2828
// ListACL - List all ACLs
2929
// List all ACLs
3030
func (s *ACLs) ListACL(ctx context.Context, request operations.ListACLRequest, opts ...operations.Option) (*operations.ListACLResponse, error) {
31-
hookCtx := hooks.HookContext{
32-
Context: ctx,
33-
OperationID: "list-acl",
34-
OAuth2Scopes: []string{},
35-
SecuritySource: s.sdkConfiguration.Security,
36-
}
37-
3831
o := operations.Options{}
3932
supportedOptions := []string{
4033
operations.SupportedOptionRetries,
@@ -58,6 +51,14 @@ func (s *ACLs) ListACL(ctx context.Context, request operations.ListACLRequest, o
5851
return nil, fmt.Errorf("error generating URL: %w", err)
5952
}
6053

54+
hookCtx := hooks.HookContext{
55+
BaseURL: baseURL,
56+
Context: ctx,
57+
OperationID: "list-acl",
58+
OAuth2Scopes: []string{},
59+
SecuritySource: s.sdkConfiguration.Security,
60+
}
61+
6162
timeout := o.Timeout
6263
if timeout == nil {
6364
timeout = s.sdkConfiguration.Timeout
@@ -253,13 +254,6 @@ func (s *ACLs) ListACL(ctx context.Context, request operations.ListACLRequest, o
253254
// GetACL - Fetch an ACL
254255
// Get an ACL using ID.
255256
func (s *ACLs) GetACL(ctx context.Context, aclID string, controlPlaneID string, opts ...operations.Option) (*operations.GetACLResponse, error) {
256-
hookCtx := hooks.HookContext{
257-
Context: ctx,
258-
OperationID: "get-acl",
259-
OAuth2Scopes: []string{},
260-
SecuritySource: s.sdkConfiguration.Security,
261-
}
262-
263257
request := operations.GetACLRequest{
264258
ACLID: aclID,
265259
ControlPlaneID: controlPlaneID,
@@ -288,6 +282,14 @@ func (s *ACLs) GetACL(ctx context.Context, aclID string, controlPlaneID string,
288282
return nil, fmt.Errorf("error generating URL: %w", err)
289283
}
290284

285+
hookCtx := hooks.HookContext{
286+
BaseURL: baseURL,
287+
Context: ctx,
288+
OperationID: "get-acl",
289+
OAuth2Scopes: []string{},
290+
SecuritySource: s.sdkConfiguration.Security,
291+
}
292+
291293
timeout := o.Timeout
292294
if timeout == nil {
293295
timeout = s.sdkConfiguration.Timeout
@@ -481,13 +483,6 @@ func (s *ACLs) GetACL(ctx context.Context, aclID string, controlPlaneID string,
481483
// ListACLWithConsumer - List all ACLs associated with a Consumer
482484
// List all ACLs associated with a Consumer
483485
func (s *ACLs) ListACLWithConsumer(ctx context.Context, request operations.ListACLWithConsumerRequest, opts ...operations.Option) (*operations.ListACLWithConsumerResponse, error) {
484-
hookCtx := hooks.HookContext{
485-
Context: ctx,
486-
OperationID: "list-acl-with-consumer",
487-
OAuth2Scopes: []string{},
488-
SecuritySource: s.sdkConfiguration.Security,
489-
}
490-
491486
o := operations.Options{}
492487
supportedOptions := []string{
493488
operations.SupportedOptionRetries,
@@ -511,6 +506,14 @@ func (s *ACLs) ListACLWithConsumer(ctx context.Context, request operations.ListA
511506
return nil, fmt.Errorf("error generating URL: %w", err)
512507
}
513508

509+
hookCtx := hooks.HookContext{
510+
BaseURL: baseURL,
511+
Context: ctx,
512+
OperationID: "list-acl-with-consumer",
513+
OAuth2Scopes: []string{},
514+
SecuritySource: s.sdkConfiguration.Security,
515+
}
516+
514517
timeout := o.Timeout
515518
if timeout == nil {
516519
timeout = s.sdkConfiguration.Timeout
@@ -685,13 +688,6 @@ func (s *ACLs) ListACLWithConsumer(ctx context.Context, request operations.ListA
685688
// CreateACLWithConsumer - Create a new ACL associated with a Consumer
686689
// Create a new ACL associated with a Consumer
687690
func (s *ACLs) CreateACLWithConsumer(ctx context.Context, request operations.CreateACLWithConsumerRequest, opts ...operations.Option) (*operations.CreateACLWithConsumerResponse, error) {
688-
hookCtx := hooks.HookContext{
689-
Context: ctx,
690-
OperationID: "create-acl-with-consumer",
691-
OAuth2Scopes: []string{},
692-
SecuritySource: s.sdkConfiguration.Security,
693-
}
694-
695691
o := operations.Options{}
696692
supportedOptions := []string{
697693
operations.SupportedOptionRetries,
@@ -715,6 +711,13 @@ func (s *ACLs) CreateACLWithConsumer(ctx context.Context, request operations.Cre
715711
return nil, fmt.Errorf("error generating URL: %w", err)
716712
}
717713

714+
hookCtx := hooks.HookContext{
715+
BaseURL: baseURL,
716+
Context: ctx,
717+
OperationID: "create-acl-with-consumer",
718+
OAuth2Scopes: []string{},
719+
SecuritySource: s.sdkConfiguration.Security,
720+
}
718721
bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "ACLWithoutParents", "json", `request:"mediaType=application/json"`)
719722
if err != nil {
720723
return nil, err
@@ -893,13 +896,6 @@ func (s *ACLs) CreateACLWithConsumer(ctx context.Context, request operations.Cre
893896
// DeleteACLWithConsumer - Delete a an ACL associated with a Consumer
894897
// Delete a an ACL associated with a Consumer using ID.
895898
func (s *ACLs) DeleteACLWithConsumer(ctx context.Context, request operations.DeleteACLWithConsumerRequest, opts ...operations.Option) (*operations.DeleteACLWithConsumerResponse, error) {
896-
hookCtx := hooks.HookContext{
897-
Context: ctx,
898-
OperationID: "delete-acl-with-consumer",
899-
OAuth2Scopes: []string{},
900-
SecuritySource: s.sdkConfiguration.Security,
901-
}
902-
903899
o := operations.Options{}
904900
supportedOptions := []string{
905901
operations.SupportedOptionRetries,
@@ -923,6 +919,14 @@ func (s *ACLs) DeleteACLWithConsumer(ctx context.Context, request operations.Del
923919
return nil, fmt.Errorf("error generating URL: %w", err)
924920
}
925921

922+
hookCtx := hooks.HookContext{
923+
BaseURL: baseURL,
924+
Context: ctx,
925+
OperationID: "delete-acl-with-consumer",
926+
OAuth2Scopes: []string{},
927+
SecuritySource: s.sdkConfiguration.Security,
928+
}
929+
926930
timeout := o.Timeout
927931
if timeout == nil {
928932
timeout = s.sdkConfiguration.Timeout
@@ -1073,13 +1077,6 @@ func (s *ACLs) DeleteACLWithConsumer(ctx context.Context, request operations.Del
10731077
// GetACLWithConsumer - Fetch an ACL associated with a Consumer
10741078
// Get an ACL associated with a Consumer using ID.
10751079
func (s *ACLs) GetACLWithConsumer(ctx context.Context, request operations.GetACLWithConsumerRequest, opts ...operations.Option) (*operations.GetACLWithConsumerResponse, error) {
1076-
hookCtx := hooks.HookContext{
1077-
Context: ctx,
1078-
OperationID: "get-acl-with-consumer",
1079-
OAuth2Scopes: []string{},
1080-
SecuritySource: s.sdkConfiguration.Security,
1081-
}
1082-
10831080
o := operations.Options{}
10841081
supportedOptions := []string{
10851082
operations.SupportedOptionRetries,
@@ -1103,6 +1100,14 @@ func (s *ACLs) GetACLWithConsumer(ctx context.Context, request operations.GetACL
11031100
return nil, fmt.Errorf("error generating URL: %w", err)
11041101
}
11051102

1103+
hookCtx := hooks.HookContext{
1104+
BaseURL: baseURL,
1105+
Context: ctx,
1106+
OperationID: "get-acl-with-consumer",
1107+
OAuth2Scopes: []string{},
1108+
SecuritySource: s.sdkConfiguration.Security,
1109+
}
1110+
11061111
timeout := o.Timeout
11071112
if timeout == nil {
11081113
timeout = s.sdkConfiguration.Timeout
@@ -1275,13 +1280,6 @@ func (s *ACLs) GetACLWithConsumer(ctx context.Context, request operations.GetACL
12751280
// UpsertACLWithConsumer - Upsert an ACL associated with a Consumer
12761281
// Create or Update an ACL associated with a Consumer using ID.
12771282
func (s *ACLs) UpsertACLWithConsumer(ctx context.Context, request operations.UpsertACLWithConsumerRequest, opts ...operations.Option) (*operations.UpsertACLWithConsumerResponse, error) {
1278-
hookCtx := hooks.HookContext{
1279-
Context: ctx,
1280-
OperationID: "upsert-acl-with-consumer",
1281-
OAuth2Scopes: []string{},
1282-
SecuritySource: s.sdkConfiguration.Security,
1283-
}
1284-
12851283
o := operations.Options{}
12861284
supportedOptions := []string{
12871285
operations.SupportedOptionRetries,
@@ -1305,6 +1303,13 @@ func (s *ACLs) UpsertACLWithConsumer(ctx context.Context, request operations.Ups
13051303
return nil, fmt.Errorf("error generating URL: %w", err)
13061304
}
13071305

1306+
hookCtx := hooks.HookContext{
1307+
BaseURL: baseURL,
1308+
Context: ctx,
1309+
OperationID: "upsert-acl-with-consumer",
1310+
OAuth2Scopes: []string{},
1311+
SecuritySource: s.sdkConfiguration.Security,
1312+
}
13081313
bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "ACLWithoutParents", "json", `request:"mediaType=application/json"`)
13091314
if err != nil {
13101315
return nil, err

0 commit comments

Comments
 (0)