Skip to content
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

Consistent casing for parameters #240

Merged
merged 3 commits into from
Mar 10, 2014
Merged

Conversation

jlafon
Copy link
Contributor

@jlafon jlafon commented Feb 21, 2014

This PR adds support for consistent, camel cased parameters (See #217).
I chose to implement camel cased names to be consistent with the AWS APIs, and because the
alternative is to recursively check and convert snake case to camel case names - which could prove troublesome.

The following, which did not work before, works now:

update_table_operation({
    'ProvisionedThroughput': {
        'WriteCapacityUnits': 2, 
        'ReadCapacityUnits': 2
    }, 
    'TableName': 'test-table'
})

* upstream/develop:
  Redirect file-like object, don't use isinstance
  Update JSON model with latest versions
  Allow for ETS to SkipTest for HTTP status of 429
  Fixed failing tests from pagination changes.
  Updated pagination tests to add expressions.
  Pagination changes from feedback.
  Updated pagination for jmespath ``result_key``s.
  Altered pagination to use ``more_results``.
  Add more special cases for case conversions
  Fix case conversion issue with SwapEnvironmentCNAMEs
  fix json -> xml request payload conversion
  Bumping version to 0.33.0
  Update route53 to the latest model
  Never catch a bare except clause
import re


def pythonic(var_name):
Copy link
Member

Choose a reason for hiding this comment

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

You should be able to use botocore.xform_name for this.

@disruptek
Copy link

Thanks very much for fixing this.

danielgtaylor added a commit that referenced this pull request Mar 10, 2014
Consistent casing for parameters. Fixes #240, #217.
@danielgtaylor danielgtaylor merged commit c735c09 into boto:develop Mar 10, 2014
jamesls added a commit to jamesls/botocore that referenced this pull request Apr 1, 2014
This is a regression introduced from boto#240

The fix here is to not translate names if they already appear
to be translated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants