-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
keyvaluetags: Add support for 'ListTags' with pagination methods #10834
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ghost
added
needs-triage
Waiting for first response or review from a maintainer.
size/L
Managed by automation to categorize the size of a PR.
service/backup
Issues and PRs that pertain to the backup service.
tests
PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
size/XL
Managed by automation to categorize the size of a PR.
and removed
size/L
Managed by automation to categorize the size of a PR.
labels
Nov 10, 2019
ewbankkit
changed the title
[WIP] keyvaluetags: Add support for 'ListTags' with pagination methods
keyvaluetags: Add support for 'ListTags' with pagination methods
Nov 11, 2019
The list of pagination tokens was generated by an adaption of @kapilt's script: import boto3
import yaml
def main():
session = boto3.Session()
services = session.get_available_services()
op_missing_paginator = {}
for s in services:
c = session.client(s)
op_to_py = {v: k for k, v in c._PY_TO_OP_NAME.items()}
for op in c.meta.service_model.operation_names:
opm = c.meta.service_model.operation_model(op)
if opm.output_shape is None:
continue
input_token = ''
output_token = ''
if 'NextToken' in opm.output_shape.members or 'nextToken' in opm.output_shape.members:
input_token = 'NextToken'
output_token = 'NextToken'
elif 'PaginationToken' in opm.output_shape.members:
input_token = 'PaginationToken'
output_token = 'PaginationToken'
elif 'PageToken' in opm.output_shape.members or 'pageToken' in opm.output_shape.members:
input_token = 'PageToken'
output_token = 'PageToken'
elif 'NextPageToken' in opm.output_shape.members or 'nextPageToken' in opm.output_shape.members:
input_token = 'NextPageToken'
output_token = 'NextPageToken'
elif 'Marker' in opm.output_shape.members and 'NextMarker' in opm.output_shape.members or 'marker' in opm.output_shape.members and 'nextMarker' in opm.output_shape.members:
input_token = 'Marker'
output_token = 'NextMarker'
elif 'NextMarker' in opm.output_shape.members or 'nextMarker' in opm.output_shape.members:
input_token = 'NextMarker'
output_token = 'NextMarker'
else:
continue
py_name = op_to_py[opm.name]
if 'tags' in py_name:
op_missing_paginator.setdefault(s, []).append((py_name, input_token, output_token))
for s, tokens in op_missing_paginator.items():
print('case "%s":\nreturn &PaginationTokens{InputToken: "%s", OutputToken: "%s"}' % (s, tokens[0][1], tokens[0][2]))
if __name__ == '__main__':
main() |
ewbankkit
changed the title
keyvaluetags: Add support for 'ListTags' with pagination methods
[WIP] keyvaluetags: Add support for 'ListTags' with pagination methods
Nov 13, 2019
ewbankkit
force-pushed
the
issue-10831
branch
from
November 13, 2019 16:18
3623d56
to
b0b6910
Compare
ewbankkit
changed the title
[WIP] keyvaluetags: Add support for 'ListTags' with pagination methods
keyvaluetags: Add support for 'ListTags' with pagination methods
Nov 13, 2019
See issue comments. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
ghost
locked and limited conversation to collaborators
Jan 15, 2020
breathingdust
removed
the
needs-triage
Waiting for first response or review from a maintainer.
label
Sep 17, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
service/backup
Issues and PRs that pertain to the backup service.
size/XL
Managed by automation to categorize the size of a PR.
tests
PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Community Note
Closes #10831.
Release note for CHANGELOG:
Output from acceptance testing: