class
PlaceOS::Client::APIWrapper::Modules
- PlaceOS::Client::APIWrapper::Modules
- PlaceOS::Client::APIWrapper::Endpoint
- Reference
- Object
Included Modules
- PlaceOS::Client::APIWrapper::Endpoint::Destroy
- PlaceOS::Client::APIWrapper::Endpoint::Fetch(PlaceOS::Client::API::Models::Module)
Defined in:
placeos/api_wrapper/modules.crInstance Method Summary
-
#base : String
The base route for the endpoint
-
#create(driver_id : String, control_system_id : String | Nil = nil, ip : String | Nil = nil, udp : Bool | Nil = nil, port : Int | Nil = nil, makebreak : Bool | Nil = nil, uri : String | Nil = nil, custom_name : String | Nil = nil, settings : Settings | Nil = nil, notes : String | Nil = nil, ignore_connected : Bool | Nil = nil, ignore_startstop : Bool | Nil = nil)
Creates a new module.
-
#ping(id : String)
Performs a connectivity check with the associated device or service.
-
#search(q : String | Nil = nil, limit : Int = 20, offset : Int = 0, control_system_id : String | Nil = nil, driver_id : String | Nil = nil)
List or search for modules.
-
#start(id : String)
Starts a module.
-
#state(id : String, lookup : String | Nil = nil)
Queries the state exposed by a module.
-
#stop(id : String)
Stops a module.
-
#update(id : String, control_system_id : String | Nil = nil, ip : String | Nil = nil, udp : Bool | Nil = nil, port : Int | Nil = nil, makebreak : Bool | Nil = nil, uri : String | Nil = nil, custom_name : String | Nil = nil, settings : Settings | Nil = nil, notes : String | Nil = nil, ignore_connected : Bool | Nil = nil, ignore_startstop : Bool | Nil = nil)
Updates module attributes or configuration.
Instance methods inherited from module PlaceOS::Client::APIWrapper::Endpoint::Destroy
destroy(id : String)
destroy
Instance methods inherited from module PlaceOS::Client::APIWrapper::Endpoint::Fetch(PlaceOS::Client::API::Models::Module)
fetch(id : String)
fetch
Instance methods inherited from class PlaceOS::Client::APIWrapper::Endpoint
base : String
base
Constructor methods inherited from class PlaceOS::Client::APIWrapper::Endpoint
new(client : APIWrapper)
new
Macros inherited from class PlaceOS::Client::APIWrapper::Endpoint
delete(path, params = nil, headers = nil, body = nil, as model = nil)
delete,
get(path, params = nil, headers = nil, body = nil, as model = nil)
get,
head(path, params = nil, headers = nil, body = nil, as model = nil)
head,
options(path, params = nil, headers = nil, body = nil, as model = nil)
options,
patch(path, params = nil, headers = nil, body = nil, as model = nil)
patch,
post(path, params = nil, headers = nil, body = nil, as model = nil)
post,
put(path, params = nil, headers = nil, body = nil, as model = nil)
put
Instance Method Detail
The base route for the endpoint
Creates a new module.
List or search for modules.
Results maybe filtered by specifying a query - q - to search across module attributes. A small query language is supported within this:
Operator | Action
-------- | ------
+ | Matches both terms
| | Matches either terms
- | Negates a single token
" | Wraps tokens to form a phrase
( ) | Provides precedence
~N | Specifies edit distance (fuzziness) after a word
~N | Specifies slop amount (deviation) after a phrase
Up to limit systems will be returned, with a paging based on offset.
Results my also also be limited to those associated with a specific system_id, that are instances of a driver_id, or any combination of these.
Updates module attributes or configuration.