Qore SwaggerDataProvider Module Reference  1.2.2
SwaggerDataProvider::SwaggerDataProvider Class Reference

The Swagger data provider class. More...

Inherits AbstractDataProvider.

Public Member Functions

 constructor (__7_ hash< auto > options)
 Creates the object from constructor options.
 
 constructor (SwaggerSchema schema, __7_ RestClient rest)
 Creates the object from the arguments.
 
__7_ string getDesc ()
 Returns the data provider description.
 
string getName ()
 Returns the data provider name.
 

Public Attributes

const ConstructorOptions
 Constructor options.
 
string display_name
 The value to returns as the name of the object.
 
const HttpMethods
 Hash of HTTP Methods.
 
const ProviderInfo
 Provider info.
 
__7_ RestClient rest
 The REST client object for API calls.
 
SwaggerSchema schema
 The Swagger schema.
 
string uri_path = "/"
 current URI path
 

Protected Member Functions

 checkRestClient (RestClient rest)
 Checks the REST client.
 
 constructor (hash< auto > path_tree, string uri_path, SwaggerSchema schema, __7_ RestClient rest)
 Private constructor; used when traversing the tree.
 
AbstractDataProvider getChildIntern (string name, __7_ string real_name)
 Returns the child provider for the given path component.
 
__7_ AbstractDataProvider getChildProviderImpl (string name)
 Returns the given child provider or NOTHING if the given child is unknown. More...
 
__7_ list< stringgetChildProviderNamesImpl ()
 Returns a list of child data provider names, if any. More...
 
object getSchemaObjectImpl ()
 Returns the schema supporting this data provider.
 
hash< DataProviderInfo > getStaticInfoImpl ()
 Returns data provider static info.
 

Protected Attributes

hash< auto > path_tree
 hash of valid paths
 

Detailed Description

The Swagger data provider class.

Member Function Documentation

◆ getChildProviderImpl()

__7_ AbstractDataProvider SwaggerDataProvider::SwaggerDataProvider::getChildProviderImpl ( string  name)
protected

Returns the given child provider or NOTHING if the given child is unknown.

Returns
the given child provider or NOTHING if the given child is unknown
See also
getChildProviderEx()

◆ getChildProviderNamesImpl()

__7_ list<string> SwaggerDataProvider::SwaggerDataProvider::getChildProviderNamesImpl ( )
protected

Returns a list of child data provider names, if any.

Returns
a list of child data provider names, if any