MCPcopy Index your code
hub / github.com/O365/python-o365 / convert_case

Method convert_case

O365/connection.py:152–167  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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:

Callers 3

_ccMethod · 0.80
selectMethod · 0.80
_get_mappingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected