Skip to content

Commit

Permalink
chore(deps): update dependency speakeasy-api/speakeasy to v1.468.5 (#40)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency speakeasy-api/speakeasy to v1.468.5

* 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 <pmalek@users.noreply.github.com>
Co-authored-by: team-k8s-bot <team-k8s-bot@users.noreply.github.com>
  • Loading branch information
3 people authored Jan 14, 2025
1 parent 89061b0 commit 9318b68
Show file tree
Hide file tree
Showing 40 changed files with 257 additions and 93 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bump-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
repo: speakeasy
cli_name: speakeasy
package_type: zip
version: 1.465.0 # renovate: datasource=github-releases depName=speakeasy-api/speakeasy
version: 1.468.5 # renovate: datasource=github-releases depName=speakeasy-api/speakeasy

- name: Checkout
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate_on_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
repo: speakeasy
cli_name: speakeasy
package_type: zip
version: 1.465.0 # renovate: datasource=github-releases depName=speakeasy-api/speakeasy
version: 1.468.5 # renovate: datasource=github-releases depName=speakeasy-api/speakeasy

- name: Checkout current repo
uses: actions/checkout@v4
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ id: b81e5def-5b1e-4753-ae7c-0efccc2e6f61
management:
docChecksum: 3fa21b5bc073d3ea4d54118051e31d65
docVersion: 0.0.1
speakeasyVersion: 1.465.0
generationVersion: 2.486.6
releaseVersion: 0.1.19
configChecksum: c0813351eba42c757e53ec488c78183d
speakeasyVersion: 1.468.5
generationVersion: 2.493.11
releaseVersion: 0.1.20
configChecksum: 2652e074781e0e6dd5da078681ed8fbe
features:
go:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.6
core: 3.6.2
core: 3.6.5
deepObjectParams: 0.1.1
defaultEnabledRetries: 0.2.0
envVarSecurityUsage: 0.3.2
Expand Down Expand Up @@ -3165,7 +3165,7 @@ examples:
patch-team-group-mappings:
speakeasy-default-patch-team-group-mappings:
requestBody:
application/json: {}
application/json: {"data": [{}]}
responses:
"200":
application/json: {"meta": {"page": {"number": 1, "size": 10, "total": 100}}, "data": [{"team_id": "6801e673-cc10-498a-94cd-4271de07a0d3", "groups": ["Tech Leads", "API Engineers"]}]}
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.19
version: 0.1.20
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
Expand Down
8 changes: 6 additions & 2 deletions acls.go
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,9 @@ func (s *ACLs) CreateACLWithConsumer(ctx context.Context, request operations.Cre
}
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
if reqContentType != "" {
req.Header.Set("Content-Type", reqContentType)
}

if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
return nil, err
Expand Down Expand Up @@ -1301,7 +1303,9 @@ func (s *ACLs) UpsertACLWithConsumer(ctx context.Context, request operations.Ups
}
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
if reqContentType != "" {
req.Header.Set("Content-Type", reqContentType)
}

if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
return nil, err
Expand Down
8 changes: 6 additions & 2 deletions apikeys.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,9 @@ func (s *APIKeys) CreateKeyAuthWithConsumer(ctx context.Context, request operati
}
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
if reqContentType != "" {
req.Header.Set("Content-Type", reqContentType)
}

if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
return nil, err
Expand Down Expand Up @@ -856,7 +858,9 @@ func (s *APIKeys) UpsertKeyAuthWithConsumer(ctx context.Context, request operati
}
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
if reqContentType != "" {
req.Header.Set("Content-Type", reqContentType)
}

if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
return nil, err
Expand Down
16 changes: 12 additions & 4 deletions authsettings.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,9 @@ func (s *AuthSettings) UpdateAuthenticationSettings(ctx context.Context, request
}
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
if reqContentType != "" {
req.Header.Set("Content-Type", reqContentType)
}

if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
return nil, err
Expand Down Expand Up @@ -820,7 +822,9 @@ func (s *AuthSettings) UpdateIdpConfiguration(ctx context.Context, request *comp
}
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
if reqContentType != "" {
req.Header.Set("Content-Type", reqContentType)
}

if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
return nil, err
Expand Down Expand Up @@ -1338,7 +1342,9 @@ func (s *AuthSettings) PatchTeamGroupMappings(ctx context.Context, request *comp
}
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
if reqContentType != "" {
req.Header.Set("Content-Type", reqContentType)
}

if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
return nil, err
Expand Down Expand Up @@ -1602,7 +1608,9 @@ func (s *AuthSettings) UpdateIdpTeamMappings(ctx context.Context, request *compo
}
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
if reqContentType != "" {
req.Header.Set("Content-Type", reqContentType)
}

if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
return nil, err
Expand Down
8 changes: 6 additions & 2 deletions basicauthcredentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,9 @@ func (s *BasicAuthCredentials) CreateBasicAuthWithConsumer(ctx context.Context,
}
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
if reqContentType != "" {
req.Header.Set("Content-Type", reqContentType)
}

if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
return nil, err
Expand Down Expand Up @@ -1301,7 +1303,9 @@ func (s *BasicAuthCredentials) UpsertBasicAuthWithConsumer(ctx context.Context,
}
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
if reqContentType != "" {
req.Header.Set("Content-Type", reqContentType)
}

if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
return nil, err
Expand Down
8 changes: 6 additions & 2 deletions cacertificates.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,9 @@ func (s *CACertificates) CreateCaCertificate(ctx context.Context, controlPlaneID
}
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
if reqContentType != "" {
req.Header.Set("Content-Type", reqContentType)
}

if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
return nil, err
Expand Down Expand Up @@ -957,7 +959,9 @@ func (s *CACertificates) UpsertCaCertificate(ctx context.Context, request operat
}
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
if reqContentType != "" {
req.Header.Set("Content-Type", reqContentType)
}

if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
return nil, err
Expand Down
8 changes: 6 additions & 2 deletions certificates.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,9 @@ func (s *Certificates) CreateCertificate(ctx context.Context, controlPlaneID str
}
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
if reqContentType != "" {
req.Header.Set("Content-Type", reqContentType)
}

if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
return nil, err
Expand Down Expand Up @@ -960,7 +962,9 @@ func (s *Certificates) UpsertCertificate(ctx context.Context, request operations
}
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
if reqContentType != "" {
req.Header.Set("Content-Type", reqContentType)
}

if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
return nil, err
Expand Down
16 changes: 12 additions & 4 deletions consumergroups.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,9 @@ func (s *ConsumerGroups) CreateConsumerGroup(ctx context.Context, controlPlaneID
}
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
if reqContentType != "" {
req.Header.Set("Content-Type", reqContentType)
}

if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
return nil, err
Expand Down Expand Up @@ -957,7 +959,9 @@ func (s *ConsumerGroups) UpsertConsumerGroup(ctx context.Context, request operat
}
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
if reqContentType != "" {
req.Header.Set("Content-Type", reqContentType)
}

if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
return nil, err
Expand Down Expand Up @@ -1563,7 +1567,9 @@ func (s *ConsumerGroups) AddConsumerToGroup(ctx context.Context, request operati
}
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
if reqContentType != "" {
req.Header.Set("Content-Type", reqContentType)
}

if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
return nil, err
Expand Down Expand Up @@ -2324,7 +2330,9 @@ func (s *ConsumerGroups) AddConsumerToSpecificConsumerGroup(ctx context.Context,
}
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
if reqContentType != "" {
req.Header.Set("Content-Type", reqContentType)
}

if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
return nil, err
Expand Down
8 changes: 6 additions & 2 deletions consumers.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,9 @@ func (s *Consumers) CreateConsumer(ctx context.Context, controlPlaneID string, c
}
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
if reqContentType != "" {
req.Header.Set("Content-Type", reqContentType)
}

if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
return nil, err
Expand Down Expand Up @@ -957,7 +959,9 @@ func (s *Consumers) UpsertConsumer(ctx context.Context, request operations.Upser
}
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
if reqContentType != "" {
req.Header.Set("Content-Type", reqContentType)
}

if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
return nil, err
Expand Down
12 changes: 9 additions & 3 deletions controlplanegroups.go
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,9 @@ func (s *ControlPlaneGroups) PutControlPlanesIDGroupMemberships(ctx context.Cont
}
req.Header.Set("Accept", "application/problem+json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
if reqContentType != "" {
req.Header.Set("Content-Type", reqContentType)
}

if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
return nil, err
Expand Down Expand Up @@ -987,7 +989,9 @@ func (s *ControlPlaneGroups) PostControlPlanesIDGroupMembershipsAdd(ctx context.
}
req.Header.Set("Accept", "application/problem+json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
if reqContentType != "" {
req.Header.Set("Content-Type", reqContentType)
}

if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
return nil, err
Expand Down Expand Up @@ -1279,7 +1283,9 @@ func (s *ControlPlaneGroups) PostControlPlanesIDGroupMembershipsRemove(ctx conte
}
req.Header.Set("Accept", "application/problem+json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
if reqContentType != "" {
req.Header.Set("Content-Type", reqContentType)
}

if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
return nil, err
Expand Down
8 changes: 6 additions & 2 deletions controlplanes.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,9 @@ func (s *ControlPlanes) CreateControlPlane(ctx context.Context, request componen
}
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
if reqContentType != "" {
req.Header.Set("Content-Type", reqContentType)
}

if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
return nil, err
Expand Down Expand Up @@ -1003,7 +1005,9 @@ func (s *ControlPlanes) UpdateControlPlane(ctx context.Context, id string, updat
}
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
if reqContentType != "" {
req.Header.Set("Content-Type", reqContentType)
}

if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
return nil, err
Expand Down
8 changes: 6 additions & 2 deletions custompluginschemas.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,9 @@ func (s *CustomPluginSchemas) CreatePluginSchemas(ctx context.Context, controlPl
}
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
if reqContentType != "" {
req.Header.Set("Content-Type", reqContentType)
}

if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
return nil, err
Expand Down Expand Up @@ -1143,7 +1145,9 @@ func (s *CustomPluginSchemas) UpdatePluginSchemas(ctx context.Context, request o
}
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
if reqContentType != "" {
req.Header.Set("Content-Type", reqContentType)
}

if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
return nil, err
Expand Down
6 changes: 5 additions & 1 deletion docs/sdks/authsettings/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,11 @@ func main() {
}),
)

res, err := s.AuthSettings.PatchTeamGroupMappings(ctx, &components.PatchTeamGroupMappings{})
res, err := s.AuthSettings.PatchTeamGroupMappings(ctx, &components.PatchTeamGroupMappings{
Data: []components.Data{
components.Data{},
},
})
if err != nil {
log.Fatal(err)
}
Expand Down
4 changes: 3 additions & 1 deletion dpcertificates.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,9 @@ func (s *DPCertificates) CreateDataplaneCertificate(ctx context.Context, control
}
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
if reqContentType != "" {
req.Header.Set("Content-Type", reqContentType)
}

if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
return nil, err
Expand Down
8 changes: 6 additions & 2 deletions hmacauthcredentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,9 @@ func (s *HMACAuthCredentials) CreateHmacAuthWithConsumer(ctx context.Context, re
}
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
if reqContentType != "" {
req.Header.Set("Content-Type", reqContentType)
}

if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
return nil, err
Expand Down Expand Up @@ -856,7 +858,9 @@ func (s *HMACAuthCredentials) UpsertHmacAuthWithConsumer(ctx context.Context, re
}
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
if reqContentType != "" {
req.Header.Set("Content-Type", reqContentType)
}

if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
return nil, err
Expand Down
Loading

0 comments on commit 9318b68

Please sign in to comment.