Build the configuration components of the User-Agent header string. Returns a list of components with prefix "cfg" followed by the config setting name and its value. Tracked configuration settings may be added or removed in future versions.
(self)
| 563 | ] |
| 564 | |
| 565 | def _build_config_metadata(self): |
| 566 | """ |
| 567 | Build the configuration components of the User-Agent header string. |
| 568 | |
| 569 | Returns a list of components with prefix "cfg" followed by the config |
| 570 | setting name and its value. Tracked configuration settings may be |
| 571 | added or removed in future versions. |
| 572 | """ |
| 573 | if not self._client_config or not self._client_config.retries: |
| 574 | return [] |
| 575 | retry_mode = self._client_config.retries.get('mode') |
| 576 | cfg_md = [UserAgentComponent('cfg', 'retry-mode', retry_mode)] |
| 577 | if self._client_config.endpoint_discovery_enabled: |
| 578 | cfg_md.append(UserAgentComponent('cfg', 'endpoint-discovery')) |
| 579 | return cfg_md |
| 580 | |
| 581 | def _build_app_id(self): |
| 582 | """ |
no test coverage detected