Skip to content

Commit 9e85142

Browse files
authored
Adding code for Layer_version resource (#67)
Description of changes: Adding code for Layer_version resource. This contains hook code and e2e tests for creation and deletion. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 2ee7a29 commit 9e85142

27 files changed

+2375
-11
lines changed
+5-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2022-11-17T22:06:28Z"
3-
build_hash: 7cd74c3a855e38ea3fb5e1cf40b26fbe96283870
2+
build_date: "2022-12-05T18:19:52Z"
3+
build_hash: 20e82a5acd263bcd13d8278e7efe54cea2b5b084
44
go_version: go1.19
5-
version: v0.19.3-15-g7cd74c3-dirty
6-
api_directory_checksum: f01a03847a7bb58e935fdca90ecfb910f645ea61
5+
version: v0.20.1-12-g20e82a5
6+
api_directory_checksum: 90c9337a64415662f698cf6cd270706cd560bd16
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.44.93
99
generator_config_info:
10-
file_checksum: ea74be1ffb53a2cc383f2a741d46c8facad26df0
10+
file_checksum: e007d88ecf6ad1c45cb6451f5fda9401af9d7305
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

+36-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ ignore:
55
# CodeSigningConfig
66
# EventSourceMapping
77
# FunctionUrlConfig
8+
# LayerVersion
9+
operations:
10+
PublishLayerVersion:
11+
operation_type:
12+
- Create
13+
- Update
14+
resource_name: LayerVersion
815
resources:
916
Function:
1017
synced:
@@ -131,4 +138,32 @@ resources:
131138
references:
132139
resource: Function
133140
path: Spec.Name
134-
is_primary_key: true
141+
is_primary_key: true
142+
LayerVersion:
143+
fields:
144+
LayerName:
145+
is_required: true
146+
is_primary_key: true
147+
Content:
148+
is_required: true
149+
compare:
150+
is_ignored: true
151+
set:
152+
- ignore: true
153+
operation: ReadOne
154+
tags:
155+
ignore: true
156+
renames:
157+
operations:
158+
GetLayerVersion:
159+
input_fields:
160+
Version: VersionNumber
161+
PublishLayerVersion:
162+
input_fields:
163+
Version: VersionNumber
164+
DeleteLayerVersion:
165+
input_fields:
166+
Version: VersionNumber
167+
ListLayerVersions:
168+
input_fields:
169+
Version: VersionNumber

apis/v1alpha1/layer_version.go

+94
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/v1alpha1/types.go

+15-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)