Skip to content

add support for APIMethodResponse #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 8, 2025
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
6 changes: 3 additions & 3 deletions apis/v1alpha1/ack-generate-metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
ack_generate_info:
build_date: "2025-04-07T21:09:22Z"
build_date: "2025-04-07T23:58:36Z"
build_hash: 66ad2d04c2b520425a0682aae523d45cad967248
go_version: go1.24.1
version: v0.44.0-2-g66ad2d0
api_directory_checksum: 4b900e2ea6b8bb0fbf91c7d161d9f5b47318f754
api_directory_checksum: 2f02e62d48a5fd74f9b1805dd92b72c1a0889da6
api_version: v1alpha1
aws_sdk_go_version: v1.32.6
generator_config_info:
file_checksum: 1af493bcc7996c56ee9ac15879a2160531307c5e
file_checksum: af76833060020df86ea19a4b48879ce795d1169b
original_file_name: generator.yaml
last_modification:
reason: API generation
95 changes: 95 additions & 0 deletions apis/v1alpha1/api_method_response.go

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

46 changes: 46 additions & 0 deletions apis/v1alpha1/generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,22 @@ operations:
operation_type:
- Create
resource_name: Method
PutMethodResponse:
operation_type:
- Create
resource_name: ApiMethodResponse
DeleteMethodResponse:
operation_type:
- Delete
resource_name: ApiMethodResponse
UpdateMethodResponse:
operation_type:
- Update
resource_name: ApiMethodResponse
GetMethodResponse:
operation_type:
- READ_ONE
resource_name: ApiMethodResponse
ignore:
resource_names:
- ApiKey
Expand Down Expand Up @@ -231,3 +247,33 @@ resources:
- InvalidParameter
tags:
ignore: true
ApiMethodResponse:
fields:
ResourceID:
references:
resource: Resource
path: Status.ID
is_required: true
is_immutable: true
is_primary_key: true
RestAPIID:
references:
resource: RestAPI
path: Status.ID
is_required: true
is_immutable: true
HTTPMethod:
is_required: true
is_immutable: true
StatusCode:
is_required: true
is_immutable: true
tags:
ignore: true
hooks:
sdk_update_post_build_request:
template_path: hooks/api_method_response/sdk_update_post_build_request.go.tpl
exceptions:
terminal_codes:
- BadRequestException
- InvalidParameter
167 changes: 167 additions & 0 deletions apis/v1alpha1/zz_generated.deepcopy.go

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

1 change: 1 addition & 0 deletions cmd/controller/main.go

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

Loading