Returns a key converted with this protocol casing method Converts case to send/read from the cloud When using Microsoft Graph API, the keywords of the API use lowerCamelCase Casing When using Office 365 API, the keywords of the API use PascalCase Casing D
(self, key: str)
| 150 | return self.keyword_data_store.get(keyword, None) |
| 151 | |
| 152 | def convert_case(self, key: str) -> str: |
| 153 | """ Returns a key converted with this protocol casing method |
| 154 | |
| 155 | Converts case to send/read from the cloud |
| 156 | |
| 157 | When using Microsoft Graph API, the keywords of the API use |
| 158 | lowerCamelCase Casing |
| 159 | |
| 160 | When using Office 365 API, the keywords of the API use PascalCase Casing |
| 161 | |
| 162 | Default case in this API is lowerCamelCase |
| 163 | |
| 164 | :param key: a dictionary key to convert |
| 165 | :return: key after case conversion |
| 166 | """ |
| 167 | return key if self.use_default_casing else self.casing_function(key) |
| 168 | |
| 169 | @staticmethod |
| 170 | def to_api_case(key: str) -> str: |
no outgoing calls
no test coverage detected