Skip to content

Commit 191109d

Browse files
Merge pull request #14 from AnilYalavarthi/snapshot
Snapshot Resource changes for Ack
2 parents 6f19c7e + c476ffd commit 191109d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+3022
-45
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2022-04-06T19:12:56Z"
2+
build_date: "2022-04-06T21:44:24Z"
33
build_hash: fc5620cf5fde243ee5124324d26bb7e952049bf2
44
go_version: go1.17.6
5-
version: v0.18.3
6-
api_directory_checksum: c2f6d6769a7f620358ba97b8b9c3ef8c80934448
5+
version: v0.18.3-dirty
6+
api_directory_checksum: f7e376daef64d0c299eb1338df3bd097290b334a
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.42.29
99
generator_config_info:
10-
file_checksum: 2a0a05a38b0ccfb3d749097e815c4533ba9ec868
10+
file_checksum: 7ce497a1a103652e30a5d7c843463da1c834fd3d
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
ignore:
2-
resource_names:
3-
- Snapshot
2+
field_paths:
3+
- DescribeSnapshotsInput.ClusterName
4+
- DescribeSnapshotsInput.Source
45
resources:
56
Cluster:
67
exceptions:
@@ -182,6 +183,50 @@ resources:
182183
- path: Status.Status
183184
in:
184185
- active
186+
Snapshot:
187+
exceptions:
188+
errors:
189+
404:
190+
code: SnapshotNotFoundFault
191+
terminal_codes:
192+
- InvalidParameterCombinationException
193+
- SnapshotAlreadyExistsFault
194+
- SnapshotQuotaExceededFault
195+
- TagQuotaPerResourceExceeded
196+
- InvalidParameterValueException
197+
- InvalidParameter
198+
fields:
199+
SourceSnapshotName:
200+
from:
201+
operation: CopySnapshot
202+
path: SourceSnapshotName
203+
ClusterName:
204+
is_primary_key: false
205+
from:
206+
operation: CreateSnapshot
207+
path: ClusterName
208+
hooks:
209+
sdk_create_pre_build_request:
210+
template_path: hooks/snapshot/sdk_create_pre_build_request.go.tpl
211+
sdk_create_post_set_output:
212+
template_path: hooks/snapshot/sdk_create_post_set_output.go.tpl
213+
sdk_read_many_post_set_output:
214+
template_path: hooks/snapshot/sdk_read_many_post_set_output.go.tpl
215+
sdk_delete_pre_build_request:
216+
template_path: hooks/snapshot/sdk_delete_pre_build_request.go.tpl
217+
sdk_delete_post_request:
218+
template_path: hooks/snapshot/sdk_delete_post_request.go.tpl
219+
renames:
220+
operations:
221+
CreateSnapshot:
222+
input_fields:
223+
SnapshotName: Name
224+
DeleteSnapshot:
225+
input_fields:
226+
SnapshotName: Name
227+
DescribeSnapshots:
228+
input_fields:
229+
SnapshotName: Name
185230
ParameterGroup:
186231
exceptions:
187232
errors:

apis/v1alpha1/snapshot.go

Lines changed: 88 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/v1alpha1/types.go

Lines changed: 28 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)