(self, value)
| 165 | return shape.serialization.get('name', default_name) |
| 166 | |
| 167 | def _get_base64(self, value): |
| 168 | # Returns the base64-encoded version of value, handling |
| 169 | # both strings and bytes. The returned value is a string |
| 170 | # via the default encoding. |
| 171 | if isinstance(value, str): |
| 172 | value = value.encode(self.DEFAULT_ENCODING) |
| 173 | return base64.b64encode(value).strip().decode(self.DEFAULT_ENCODING) |
| 174 | |
| 175 | def _expand_host_prefix(self, parameters, operation_model): |
| 176 | operation_endpoint = operation_model.endpoint |
no test coverage detected