Skip to content

Commit

Permalink
feat(sdk): automated oas update (#86)
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 Mar 5, 2025
1 parent 33f499a commit 7b58782
Show file tree
Hide file tree
Showing 49 changed files with 391 additions and 329 deletions.
58 changes: 29 additions & 29 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ generation:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
go:
version: 0.2.20
version: 0.2.21
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
Expand Down
4 changes: 2 additions & 2 deletions cloudgateways.go
Original file line number Diff line number Diff line change
Expand Up @@ -3860,7 +3860,7 @@ func (s *CloudGateways) GetNetwork(ctx context.Context, networkID string, opts .

// UpdateNetwork - Update Network
// Updates a network by ID.
func (s *CloudGateways) UpdateNetwork(ctx context.Context, networkID string, patchNetworkRequest *components.PatchNetworkRequest, opts ...operations.Option) (*operations.UpdateNetworkResponse, error) {
func (s *CloudGateways) UpdateNetwork(ctx context.Context, networkID string, patchNetworkRequest components.PatchNetworkRequest, opts ...operations.Option) (*operations.UpdateNetworkResponse, error) {
request := operations.UpdateNetworkRequest{
NetworkID: networkID,
PatchNetworkRequest: patchNetworkRequest,
Expand Down Expand Up @@ -3895,7 +3895,7 @@ func (s *CloudGateways) UpdateNetwork(ctx context.Context, networkID string, pat
OAuth2Scopes: []string{},
SecuritySource: s.sdkConfiguration.Security,
}
bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, true, false, "PatchNetworkRequest", "json", `request:"mediaType=application/json"`)
bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "PatchNetworkRequest", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, err
}
Expand Down
6 changes: 3 additions & 3 deletions configstores.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ func (s *ConfigStores) ListConfigStores(ctx context.Context, request operations.

// CreateConfigStore - Create Config Store
// Create a Config Store
func (s *ConfigStores) CreateConfigStore(ctx context.Context, controlPlaneID string, createConfigStore *components.CreateConfigStore, opts ...operations.Option) (*operations.CreateConfigStoreResponse, error) {
func (s *ConfigStores) CreateConfigStore(ctx context.Context, controlPlaneID string, createConfigStore components.CreateConfigStore, opts ...operations.Option) (*operations.CreateConfigStoreResponse, error) {
request := operations.CreateConfigStoreRequest{
ControlPlaneID: controlPlaneID,
CreateConfigStore: createConfigStore,
Expand Down Expand Up @@ -331,7 +331,7 @@ func (s *ConfigStores) CreateConfigStore(ctx context.Context, controlPlaneID str
OAuth2Scopes: []string{},
SecuritySource: s.sdkConfiguration.Security,
}
bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, true, false, "CreateConfigStore", "json", `request:"mediaType=application/json"`)
bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "CreateConfigStore", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -871,7 +871,7 @@ func (s *ConfigStores) UpdateConfigStore(ctx context.Context, request operations
OAuth2Scopes: []string{},
SecuritySource: s.sdkConfiguration.Security,
}
bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, true, false, "UpdateConfigStore", "json", `request:"mediaType=application/json"`)
bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "UpdateConfigStore", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, err
}
Expand Down
4 changes: 2 additions & 2 deletions consumergroups.go
Original file line number Diff line number Diff line change
Expand Up @@ -1578,7 +1578,7 @@ func (s *ConsumerGroups) AddConsumerToGroup(ctx context.Context, request operati
OAuth2Scopes: []string{},
SecuritySource: s.sdkConfiguration.Security,
}
bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, true, true, "RequestBody", "json", `request:"mediaType=application/json"`)
bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RequestBody", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -2360,7 +2360,7 @@ func (s *ConsumerGroups) AddConsumerToSpecificConsumerGroup(ctx context.Context,
OAuth2Scopes: []string{},
SecuritySource: s.sdkConfiguration.Security,
}
bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, true, true, "RequestBody", "json", `request:"mediaType=application/json"`)
bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RequestBody", "json", `request:"mediaType=application/json"`)
if err != nil {
return nil, err
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CreateAWSVpcPeeringGatewayAWSTransitGateway
# AWSVPCPeeringGateway


## Fields
Expand Down
4 changes: 2 additions & 2 deletions docs/models/components/createtransitgatewayrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ Request schema for creating a transit gateway.
createTransitGatewayRequest := components.CreateCreateTransitGatewayRequestAWSTransitGateway(components.AWSTransitGateway{/* values here */})
```

### CreateAWSVpcPeeringGatewayAWSTransitGateway
### AWSVPCPeeringGateway

```go
createTransitGatewayRequest := components.CreateCreateTransitGatewayRequestCreateAWSVpcPeeringGatewayAWSTransitGateway(components.CreateAWSVpcPeeringGatewayAWSTransitGateway{/* values here */})
createTransitGatewayRequest := components.CreateCreateTransitGatewayRequestAWSVPCPeeringGateway(components.AWSVPCPeeringGateway{/* values here */})
```

### AzureTransitGateway
Expand Down
1 change: 1 addition & 0 deletions docs/models/components/plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ A Plugin entity represents a plugin configuration that will be executed during t
| `InstanceName` | **string* | :heavy_minus_sign: | N/A |
| `Name` | *string* | :heavy_check_mark: | The name of the Plugin that's going to be added. Currently, the Plugin must be installed in every Kong instance separately. |
| `Ordering` | [*components.Ordering](../../models/components/ordering.md) | :heavy_minus_sign: | N/A |
| `Partials` | []map[string]*any* | :heavy_minus_sign: | N/A |
| `Protocols` | [][components.Protocols](../../models/components/protocols.md) | :heavy_minus_sign: | A list of the request protocols that will trigger this plugin. The default value, as well as the possible values allowed on this field, may change depending on the plugin type. For example, plugins that only work in stream mode will only support `"tcp"` and `"tls"`. |
| `Route` | [*components.PluginRoute](../../models/components/pluginroute.md) | :heavy_minus_sign: | If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the Route being used. |
| `Service` | [*components.PluginService](../../models/components/pluginservice.md) | :heavy_minus_sign: | If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched. |
Expand Down
1 change: 1 addition & 0 deletions docs/models/components/plugininput.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ A Plugin entity represents a plugin configuration that will be executed during t
| `InstanceName` | **string* | :heavy_minus_sign: | N/A |
| `Name` | *string* | :heavy_check_mark: | The name of the Plugin that's going to be added. Currently, the Plugin must be installed in every Kong instance separately. |
| `Ordering` | [*components.Ordering](../../models/components/ordering.md) | :heavy_minus_sign: | N/A |
| `Partials` | []map[string]*any* | :heavy_minus_sign: | N/A |
| `Protocols` | [][components.Protocols](../../models/components/protocols.md) | :heavy_minus_sign: | A list of the request protocols that will trigger this plugin. The default value, as well as the possible values allowed on this field, may change depending on the plugin type. For example, plugins that only work in stream mode will only support `"tcp"` and `"tls"`. |
| `Route` | [*components.PluginRoute](../../models/components/pluginroute.md) | :heavy_minus_sign: | If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the Route being used. |
| `Service` | [*components.PluginService](../../models/components/pluginservice.md) | :heavy_minus_sign: | If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched. |
Expand Down
Loading

0 comments on commit 7b58782

Please sign in to comment.