Skip to content

Conversation

a-hilaly
Copy link
Member

@a-hilaly a-hilaly commented Jun 2, 2021

Issue N/A

In some AWS APIs Describe operations output contains the
wanted information in a wrapper field like TableDescription and
GlobalTableDescription ... However in some other APIs for the same
operation type, the wanted information is wrapped in different nested
object, like BackupDescription.BackupDetails for example.

Description of changes:
This patch adds a new operation configuration that instructs the
code-generator to use a specific field path, in order to find the
struct that contains the information we want to set the output from.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ack-bot ack-bot requested review from jaypipes and vijtrip2 June 2, 2021 19:24
@a-hilaly a-hilaly force-pushed the config/set_output_wrapper_field_path branch 2 times, most recently from d018804 to 153df1d Compare June 14, 2021 22:24
Copy link
Collaborator

@jaypipes jaypipes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@a-hilaly left a little suggestion to replace the goto with a simple recursion.

In some AWS APIs `Describe` operations output contains the
wanted information in a wrapper field like `TableDescription` and
`GlobalTableDescription` ... However in some other APIs for the same
operation type, the wanted information is wrapped in different nested
object, like `BackupDescription.BackupDetails` for example.

This patch adds a new operation configuration that instructs the
code-generator to use a specific field path, in order to find the
struct that contains the information we want to set the output from.
@a-hilaly a-hilaly force-pushed the config/set_output_wrapper_field_path branch from 153df1d to 42c735f Compare June 15, 2021 10:18
Copy link
Collaborator

@jaypipes jaypipes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merci beaucoup, monsieur :)

@jaypipes
Copy link
Collaborator

/lgtm

@ack-bot ack-bot added the lgtm Indicates that a PR is ready to be merged. label Jun 15, 2021
@ack-bot
Copy link
Collaborator

ack-bot commented Jun 15, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: A-Hilaly, jaypipes

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ack-bot ack-bot merged commit 99e7023 into aws-controllers-k8s:main Jun 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants