Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

For EC2, Introduce "allocationId" to IP Address and a new describeRouteTablesWithFilter method for searching RouteTables #202

Closed
qpointsystems wants to merge 3 commits intoapache:masterfrom
qpointsystems:master
Closed

For EC2, Introduce "allocationId" to IP Address and a new describeRouteTablesWithFilter method for searching RouteTables #202
qpointsystems wants to merge 3 commits intoapache:masterfrom
qpointsystems:master

Conversation

@qpointsystems
Copy link
Contributor

Hello JClouds! My first pull request. Wanted to try and get this in as I saw activity picking up on the project recently.

The PublicIPInstanceIdPair was missing the "allocationId" attribute and I had a need for that for tracking purposes.

The RouteTable object lacked a method for searching "WithFilter" which I had a need for. Tried to follow the projects existing pattern for this sort of thing.

Cheers!

…t the describeAddresssesInRegion method of the IP Client will contain this information.
…ility similar to other EC2 objects that have a "describeXXXWithFilter" method along with their base "describeXXX" method.

Also modified the appropriate unit test with a test for this method
@gaul gaul requested a review from nacx April 1, 2024 23:37
Copy link
Member

@nacx nacx left a comment

Choose a reason for hiding this comment

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

Thank you!
This looks good. It just needs a few unit tests.

@FormParams(keys = ACTION, values = "ReleaseAddress")
void releaseAddressInRegionByAllocationId(
@EndpointParam(parser = RegionToEndpointOrProviderIfNull.class) @Nullable String region,
@FormParam("AllocationId") String allocationId);
Copy link
Member

Choose a reason for hiding this comment

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

Can you please add the corresponding unit test to the ElasticIPAddressApiTest?

@Fallback(Fallbacks.EmptyFluentIterableOnNotFoundOr404.class)
FluentIterable<RouteTable> describeRouteTablesWithFilter(
@EndpointParam(parser = RegionToEndpointOrProviderIfNull.class) @Nullable String region,
@BinderParam(BindFiltersToIndexedFormParams.class) Multimap<String, String> filter);
Copy link
Member

Choose a reason for hiding this comment

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

Can you please add the corresponding unit tests to the RouteTableApiMockTest?

@qpointsystems qpointsystems closed this by deleting the head repository Oct 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants