Creates a Scaleway client with advanced options. You can either use existing factories (like withProfile, withUserAgentSuffix, etc) or write your own using the interface ClientConfig.
withProfile
withUserAgentSuffix
ClientConfig
Creates a client with factories:
createAdvancedClient( (obj: Settings) => ({ ...obj, defaultPageSize: 100 , httpClient: myFetchWrapper, }), withUserAgentSuffix('bot-name/1.0'),) Copy
createAdvancedClient( (obj: Settings) => ({ ...obj, defaultPageSize: 100 , httpClient: myFetchWrapper, }), withUserAgentSuffix('bot-name/1.0'),)
Error Thrown if the setup fails.
Rest
Creates a Scaleway client with advanced options. You can either use existing factories (like
withProfile
,withUserAgentSuffix
, etc) or write your own using the interfaceClientConfig
.Example
Creates a client with factories:
Throws
Error Thrown if the setup fails.