from_parameters#
- static Configuration.from_parameters(uri: str, headers: dict | None = None, security: ConnectionSecurity | None = None) Configuration#
Build a configuration from programmatic parameters.
- Parameters:
- uri
str URI of the PIM gRPC service.
- headers
dict,optional Metadata headers. The default is
None(no headers).- security
ConnectionSecurity,optional Transport security. The default is
None(insecure).
- uri
- Returns:
ConfigurationThe resolved configuration.
- Raises:
InvalidConfigurationErrorThe
tlstransport is selected but no bearer token header is present, or theudstransport is selected buturiis not a valid, existing UDS socket path.