PawsFunctions | R Documentation |
Class to convert lists to Paws api calls.
to_camel_case()
Convert a snake case string to camel case.
PawsFunctions$to_camel_case(snake_case)
snake_case
(str): String to convert to camel case.
(str): String converted to camel case.
to_snake_case()
Convert a camel case string to snake case.
PawsFunctions$to_snake_case(name)
name
(str): String to convert to snake case.
(str): String converted to snake case.
from_paws()
Convert an UpperCamelCase paws response to a snake case representation.
PawsFunctions$from_paws( paws_list, paws_name_to_member_name, member_name_to_type )
paws_list
(list[str, ?]): A paws response dictionary.
paws_name_to_member_name
(dict[str, str]): A map from paws name to snake_case name. If a given paws name is not in the map then a default mapping is applied.
member_name_to_type
(list[str, (ApiObject, boolean)]): A map from snake case name to a type description tuple. The first element of the tuple, a subclass of ApiObject, is the type of the mapped object. The second element indicates whether the mapped element is a collection or singleton.
list: Paws response in snake case.
to_paws()
Convert a dict of of snake case names to values into a paws UpperCamelCase representation.
PawsFunctions$to_paws( member_vars, member_name_to_paws_name, member_name_to_type )
member_vars
(list[str, ?]): A map from snake case name to value.
member_name_to_paws_name
(list[str, ?]): A map from snake_case name to paws name.
member_name_to_type
(list): A map from UpperCamelCase name to a type description tuple. The first element of the tuple, a subclass of ApiObject, is the type of the mapped object. The second element indicates whether the mapped element is a collection or singleton.
(list): paws dict converted to snake case
clone()
The objects of this class are cloneable with this method.
PawsFunctions$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.