94 const DefaultSendEncoding =
"gzip";
97 const OAuth2TokenUriPath =
"oauth2/apitoken/v1";
184 "cls": Class::forName(
"Sap4HanaRestConnection"),
185 "options": RestConnection::ConnectionScheme.options + {
186 "apikey": <ConnectionOptionInfo>{
188 "desc":
"the SAP S/4 Hana API key",
190 "client_id": RestConnection::ConnectionScheme.options.oauth2_client_id,
191 "client_secret": RestConnection::ConnectionScheme.options.oauth2_client_secret,
192 "oauth2_token_url": RestConnection::ConnectionScheme.options.oauth2_token_url + <ConnectionOptionInfo>{
195 "send_encoding": RestConnection::ConnectionScheme.options.send_encoding + <ConnectionOptionInfo>{
199 "required_options":
"client_id,client_secret|apikey",
208 "oauth2_auto_refresh":
"oauth2_auto_refresh",
209 "oauth2_auth_args":
"oauth2_auth_args",
210 "oauth2_auth_url":
"oauth2_auth_url",
211 "client_id":
"oauth2_client_id",
212 "client_secret":
"oauth2_client_secret",
213 "oauth2_redirect_url":
"oauth2_redirect_url",
214 "oauth2_refresh_token":
"oauth2_refresh_token",
215 "oauth2_scopes":
"oauth2_scopes",
216 "oauth2_token_url":
"oauth2_token_url",
217 "password":
"password",
218 "username":
"username",
238 constructor(
string name,
string description,
string url, hash<auto> attributes = {}, hash<auto> options = {})
static raiseError(string fmt)
throws an exception due to an error
static string getString(hash< auto > opts, string key)
gets a string option
const OAuth2TokenUriPath
OAuth2 URI path.
Definition: Sap4HanaRestClient.qm.dox.h:97
constructor(hash< auto > opts, *softbool do_not_connect)
creates the object with the given options (which include the mandatory apikey option for SAP S/4Hana ...
static hash< auto > getOptions(hash< auto > opts)
returns options for the Sap4HanaRestClient::constructor()
const DefaultSendEncoding
default send encoding
Definition: Sap4HanaRestClient.qm.dox.h:94
class for SAP S/4Hana REST connections; returns Sap4HanaRestClient::Sap4HanaRestClient objects
Definition: Sap4HanaRestClient.qm.dox.h:179
const OAuth2StandardToSapOptionMap
Maps standard option names to SAP REST option names.
Definition: Sap4HanaRestClient.qm.dox.h:222
Sap4HanaRestClient getImpl(bool connect=True, *hash< auto > rtopts)
returns a Sap4HanaRestClient::Sap4HanaRestClient object
string getType()
returns "sap4hanarests"
string getOAuth2OptionName(string opt)
Returns the OAuth2 option name for this connection.
const OAuth2Options
Maps SAP REST options to standard options.
Definition: Sap4HanaRestClient.qm.dox.h:207
hash< ConnectionSchemeInfo > getConnectionSchemeInfoImpl()
Returns the ConnectionSchemeInfo hash for this object.
const OAuth2DifferentOptionMap
Different OAuth2 option map; standard name => extern name.
Definition: Sap4HanaRestClient.qm.dox.h:225
const OAuth2AuthRequestOptions
options required to support the OAuth2 authorization code grant flow
Definition: Sap4HanaRestClient.qm.dox.h:203
hash< auto > getOAuth2Options()
Returns OAuth2 options in a standard format.
constructor(string name, string description, string url, hash< auto > attributes={}, hash< auto > options={})
creates the Sap4HanaRestConnection object
const ConnectionScheme
Connection entry info.
Definition: Sap4HanaRestClient.qm.dox.h:183
the Sap4HanaRestClient namespace contains all the objects in the Sap4HanaRestClient module
Definition: Sap4HanaRestClient.qm.dox.h:85