Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@
- [v0.14.0](services/edge/CHANGELOG.md#v0140)
- **Breaking change**: Removal of deprecated compatibility layer previously found in the root of the SDK module
- `functions`:
- [v0.2.0](services/functions/CHANGELOG.md#v020)
- `v1alphaapi`:
- **Feature**: New `MaxScale` field in `ResourceLimits` model
- **Breaking Change**: Renamed API method `CreateFunctionRevision` to `CreateRevision` and models `CreateFunctionRevisionPayload`/`CreateFunctionRevisionPayloadState` to `CreateRevisionPayload`/`CreateRevisionPayloadState`
- [v0.1.0](services/functions/CHANGELOG.md#v010)
- `v1alphaapi`:
- **Feature**: initial release
Expand Down
4 changes: 2 additions & 2 deletions examples/functions/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ func main() {
}

// Create function revision deployment
revisionData := *functions.NewCreateFunctionRevisionPayload(*functions.NewResourceLimits(100, "f2"), "ghcr.io/stackitcloud/example-image:0.1.0")
functionRevision, err := functionsClient.DefaultAPI.CreateFunctionRevision(context.Background(), projectId, *function.Id).CreateFunctionRevisionPayload(revisionData).Execute()
revisionData := *functions.NewCreateRevisionPayload(*functions.NewResourceLimits(100, "f2"), "ghcr.io/stackitcloud/example-image:0.1.0")
functionRevision, err := functionsClient.DefaultAPI.CreateRevision(context.Background(), projectId, *function.Id).CreateRevisionPayload(revisionData).Execute()
if err != nil || functionRevision.Id == nil {
fmt.Fprintf(os.Stderr, "Error when calling `CreateFunctionRevision`: %v\n", err)
os.Exit(1)
Expand Down
6 changes: 6 additions & 0 deletions services/functions/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## v0.2.0
- Package `v1alphaapi`:
- **Feature**: New `MaxScale` field in `ResourceLimits` model to configure the maximum number of running instances
- **Breaking Change**: Renamed API method `CreateFunctionRevision` to `CreateRevision` (including request type `ApiCreateFunctionRevisionRequest` to `ApiCreateRevisionRequest`)
- **Breaking Change**: Renamed models `CreateFunctionRevisionPayload` to `CreateRevisionPayload` and `CreateFunctionRevisionPayloadState` to `CreateRevisionPayloadState`

## v0.1.0
- Package `v1alphaapi`:
- **Feature**: initial release
2 changes: 1 addition & 1 deletion services/functions/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.1.0
v0.2.0
2 changes: 1 addition & 1 deletion services/functions/oas_commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
44a901bdd528890908c0d4bd761e16115ee9ed5b
6c5332d5f71263507049f2f2ef036fe07937b63a
126 changes: 63 additions & 63 deletions services/functions/v1alphaapi/api_default.go

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

34 changes: 17 additions & 17 deletions services/functions/v1alphaapi/api_default_mock.go

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

Loading
Loading