+ 404 Not Found +
+ ++ This page is unavailable in this version of the API docs. +
+ ++ You can use the sidebar to search for your page, or try a different + Crystal version. +
+ +From c61ae7557dc3171a7cf9d98c712cea1e92799f25 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 19 Nov 2024 07:11:34 +0000 Subject: [PATCH] docs: update for refs/tags/v2.11.8 --- 404.html | 557 +++++++ PlaceOS.html | 753 ++++++++++ PlaceOS/Client.html | 1298 ++++++++++++++++ PlaceOS/Client/API.html | 607 ++++++++ PlaceOS/Client/API/Error.html | 689 +++++++++ PlaceOS/Client/API/Models.html | 741 ++++++++++ PlaceOS/Client/API/Models/APIKey.html | 1032 +++++++++++++ PlaceOS/Client/API/Models/Asset.html | 1086 ++++++++++++++ PlaceOS/Client/API/Models/AssetInstance.html | 937 ++++++++++++ .../API/Models/AssetInstance/Tracking.html | 791 ++++++++++ PlaceOS/Client/API/Models/Authority.html | 989 +++++++++++++ PlaceOS/Client/API/Models/Cluster.html | 737 +++++++++ PlaceOS/Client/API/Models/Driver.html | 1024 +++++++++++++ PlaceOS/Client/API/Models/Function.html | 829 +++++++++++ .../Client/API/Models/Function/Parameter.html | 628 ++++++++ .../API/Models/Function/ParameterKind.html | 790 ++++++++++ .../Client/API/Models/LdapAuthentication.html | 1038 +++++++++++++ PlaceOS/Client/API/Models/Metadata.html | 892 +++++++++++ PlaceOS/Client/API/Models/Module.html | 1219 +++++++++++++++ .../Client/API/Models/OAuthApplication.html | 990 +++++++++++++ .../API/Models/OAuthAuthentication.html | 1112 ++++++++++++++ PlaceOS/Client/API/Models/Ping.html | 835 +++++++++++ PlaceOS/Client/API/Models/Repository.html | 737 +++++++++ PlaceOS/Client/API/Models/ResourceToken.html | 797 ++++++++++ PlaceOS/Client/API/Models/Role.html | 617 ++++++++ .../Client/API/Models/SamlAuthentication.html | 1196 +++++++++++++++ PlaceOS/Client/API/Models/Settings.html | 873 +++++++++++ PlaceOS/Client/API/Models/System.html | 1294 ++++++++++++++++ PlaceOS/Client/API/Models/Timestamps.html | 711 +++++++++ PlaceOS/Client/API/Models/Trigger.html | 937 ++++++++++++ .../Client/API/Models/Trigger/Actions.html | 797 ++++++++++ .../API/Models/Trigger/Actions/Email.html | 797 ++++++++++ .../API/Models/Trigger/Actions/Function.html | 816 ++++++++++ .../Client/API/Models/Trigger/Conditions.html | 797 ++++++++++ .../Models/Trigger/Conditions/Comparison.html | 835 +++++++++++ .../Conditions/Comparison/Constant.html | 628 ++++++++ .../Conditions/Comparison/StatusVariable.html | 628 ++++++++ .../Trigger/Conditions/Comparison/Value.html | 617 ++++++++ .../Trigger/Conditions/TimeDependent.html | 816 ++++++++++ .../Conditions/TimeDependent/Type.html | 743 ++++++++++ .../Client/API/Models/TriggerInstance.html | 930 ++++++++++++ PlaceOS/Client/API/Models/User.html | 1316 +++++++++++++++++ PlaceOS/Client/API/Models/Version.html | 863 +++++++++++ PlaceOS/Client/API/Models/Websocket.html | 607 ++++++++ .../Client/API/Models/Websocket/Request.html | 921 ++++++++++++ .../API/Models/Websocket/Request/Type.html | 815 ++++++++++ .../Client/API/Models/Websocket/Response.html | 781 ++++++++++ .../API/Models/Websocket/Response/Debug.html | 868 +++++++++++ .../Websocket/Response/Debug/Level.html | 839 +++++++++++ .../API/Models/Websocket/Response/Error.html | 816 ++++++++++ .../Models/Websocket/Response/Error/Code.html | 887 +++++++++++ .../API/Models/Websocket/Response/Meta.html | 842 +++++++++++ .../API/Models/Websocket/Response/Notify.html | 827 +++++++++++ .../Models/Websocket/Response/Success.html | 790 ++++++++++ .../API/Models/Websocket/Response/Type.html | 810 ++++++++++ PlaceOS/Client/API/Models/Zone.html | 1190 +++++++++++++++ PlaceOS/Client/APIWrapper.html | 763 ++++++++++ PlaceOS/Client/APIWrapper/APIKeys.html | 975 ++++++++++++ PlaceOS/Client/APIWrapper/AssetInstances.html | 888 +++++++++++ PlaceOS/Client/APIWrapper/Assets.html | 907 ++++++++++++ PlaceOS/Client/APIWrapper/AuthBase.html | 922 ++++++++++++ PlaceOS/Client/APIWrapper/Authority.html | 783 ++++++++++ PlaceOS/Client/APIWrapper/Cluster.html | 757 ++++++++++ PlaceOS/Client/APIWrapper/Domains.html | 817 ++++++++++ PlaceOS/Client/APIWrapper/Drivers.html | 893 +++++++++++ PlaceOS/Client/APIWrapper/Ldap.html | 921 ++++++++++++ PlaceOS/Client/APIWrapper/Metadata.html | 852 +++++++++++ PlaceOS/Client/APIWrapper/Modules.html | 1014 +++++++++++++ PlaceOS/Client/APIWrapper/OAuth.html | 921 ++++++++++++ .../Client/APIWrapper/OAuthApplications.html | 893 +++++++++++ PlaceOS/Client/APIWrapper/Repositories.html | 817 ++++++++++ PlaceOS/Client/APIWrapper/Root.html | 802 ++++++++++ PlaceOS/Client/APIWrapper/Saml.html | 921 ++++++++++++ PlaceOS/Client/APIWrapper/Settings.html | 914 ++++++++++++ PlaceOS/Client/APIWrapper/SystemTriggers.html | 753 ++++++++++ PlaceOS/Client/APIWrapper/Systems.html | 1182 +++++++++++++++ PlaceOS/Client/APIWrapper/Triggers.html | 817 ++++++++++ PlaceOS/Client/APIWrapper/Users.html | 909 ++++++++++++ PlaceOS/Client/APIWrapper/Zones.html | 968 ++++++++++++ css/style.css | 980 ++++++++++++ index.html | 620 ++++++++ index.json | 1 + js/doc.js | 1099 ++++++++++++++ search-index.js | 1 + 84 files changed, 71402 insertions(+) create mode 100644 404.html create mode 100644 PlaceOS.html create mode 100644 PlaceOS/Client.html create mode 100644 PlaceOS/Client/API.html create mode 100644 PlaceOS/Client/API/Error.html create mode 100644 PlaceOS/Client/API/Models.html create mode 100644 PlaceOS/Client/API/Models/APIKey.html create mode 100644 PlaceOS/Client/API/Models/Asset.html create mode 100644 PlaceOS/Client/API/Models/AssetInstance.html create mode 100644 PlaceOS/Client/API/Models/AssetInstance/Tracking.html create mode 100644 PlaceOS/Client/API/Models/Authority.html create mode 100644 PlaceOS/Client/API/Models/Cluster.html create mode 100644 PlaceOS/Client/API/Models/Driver.html create mode 100644 PlaceOS/Client/API/Models/Function.html create mode 100644 PlaceOS/Client/API/Models/Function/Parameter.html create mode 100644 PlaceOS/Client/API/Models/Function/ParameterKind.html create mode 100644 PlaceOS/Client/API/Models/LdapAuthentication.html create mode 100644 PlaceOS/Client/API/Models/Metadata.html create mode 100644 PlaceOS/Client/API/Models/Module.html create mode 100644 PlaceOS/Client/API/Models/OAuthApplication.html create mode 100644 PlaceOS/Client/API/Models/OAuthAuthentication.html create mode 100644 PlaceOS/Client/API/Models/Ping.html create mode 100644 PlaceOS/Client/API/Models/Repository.html create mode 100644 PlaceOS/Client/API/Models/ResourceToken.html create mode 100644 PlaceOS/Client/API/Models/Role.html create mode 100644 PlaceOS/Client/API/Models/SamlAuthentication.html create mode 100644 PlaceOS/Client/API/Models/Settings.html create mode 100644 PlaceOS/Client/API/Models/System.html create mode 100644 PlaceOS/Client/API/Models/Timestamps.html create mode 100644 PlaceOS/Client/API/Models/Trigger.html create mode 100644 PlaceOS/Client/API/Models/Trigger/Actions.html create mode 100644 PlaceOS/Client/API/Models/Trigger/Actions/Email.html create mode 100644 PlaceOS/Client/API/Models/Trigger/Actions/Function.html create mode 100644 PlaceOS/Client/API/Models/Trigger/Conditions.html create mode 100644 PlaceOS/Client/API/Models/Trigger/Conditions/Comparison.html create mode 100644 PlaceOS/Client/API/Models/Trigger/Conditions/Comparison/Constant.html create mode 100644 PlaceOS/Client/API/Models/Trigger/Conditions/Comparison/StatusVariable.html create mode 100644 PlaceOS/Client/API/Models/Trigger/Conditions/Comparison/Value.html create mode 100644 PlaceOS/Client/API/Models/Trigger/Conditions/TimeDependent.html create mode 100644 PlaceOS/Client/API/Models/Trigger/Conditions/TimeDependent/Type.html create mode 100644 PlaceOS/Client/API/Models/TriggerInstance.html create mode 100644 PlaceOS/Client/API/Models/User.html create mode 100644 PlaceOS/Client/API/Models/Version.html create mode 100644 PlaceOS/Client/API/Models/Websocket.html create mode 100644 PlaceOS/Client/API/Models/Websocket/Request.html create mode 100644 PlaceOS/Client/API/Models/Websocket/Request/Type.html create mode 100644 PlaceOS/Client/API/Models/Websocket/Response.html create mode 100644 PlaceOS/Client/API/Models/Websocket/Response/Debug.html create mode 100644 PlaceOS/Client/API/Models/Websocket/Response/Debug/Level.html create mode 100644 PlaceOS/Client/API/Models/Websocket/Response/Error.html create mode 100644 PlaceOS/Client/API/Models/Websocket/Response/Error/Code.html create mode 100644 PlaceOS/Client/API/Models/Websocket/Response/Meta.html create mode 100644 PlaceOS/Client/API/Models/Websocket/Response/Notify.html create mode 100644 PlaceOS/Client/API/Models/Websocket/Response/Success.html create mode 100644 PlaceOS/Client/API/Models/Websocket/Response/Type.html create mode 100644 PlaceOS/Client/API/Models/Zone.html create mode 100644 PlaceOS/Client/APIWrapper.html create mode 100644 PlaceOS/Client/APIWrapper/APIKeys.html create mode 100644 PlaceOS/Client/APIWrapper/AssetInstances.html create mode 100644 PlaceOS/Client/APIWrapper/Assets.html create mode 100644 PlaceOS/Client/APIWrapper/AuthBase.html create mode 100644 PlaceOS/Client/APIWrapper/Authority.html create mode 100644 PlaceOS/Client/APIWrapper/Cluster.html create mode 100644 PlaceOS/Client/APIWrapper/Domains.html create mode 100644 PlaceOS/Client/APIWrapper/Drivers.html create mode 100644 PlaceOS/Client/APIWrapper/Ldap.html create mode 100644 PlaceOS/Client/APIWrapper/Metadata.html create mode 100644 PlaceOS/Client/APIWrapper/Modules.html create mode 100644 PlaceOS/Client/APIWrapper/OAuth.html create mode 100644 PlaceOS/Client/APIWrapper/OAuthApplications.html create mode 100644 PlaceOS/Client/APIWrapper/Repositories.html create mode 100644 PlaceOS/Client/APIWrapper/Root.html create mode 100644 PlaceOS/Client/APIWrapper/Saml.html create mode 100644 PlaceOS/Client/APIWrapper/Settings.html create mode 100644 PlaceOS/Client/APIWrapper/SystemTriggers.html create mode 100644 PlaceOS/Client/APIWrapper/Systems.html create mode 100644 PlaceOS/Client/APIWrapper/Triggers.html create mode 100644 PlaceOS/Client/APIWrapper/Users.html create mode 100644 PlaceOS/Client/APIWrapper/Zones.html create mode 100644 css/style.css create mode 100644 index.html create mode 100644 index.json create mode 100644 js/doc.js create mode 100644 search-index.js diff --git a/404.html b/404.html new file mode 100644 index 0000000..45347e9 --- /dev/null +++ b/404.html @@ -0,0 +1,557 @@ + + +
+ + + + + + + + + + + + + ++ This page is unavailable in this version of the API docs. +
+ ++ You can use the sidebar to search for your page, or try a different + Crystal version. +
+ +Low-level wrapper for the PlaceOS API.
+Each method maps one-to-one with an API endpoint. All invocations will either
+provide a type-safe response object, or raise an PlaceOS::Client::API::Error
.
It's possible to use this class directly if you require the extra flexibility,
+however in most cases the abstractions provided by the higher-level
+PlaceOS::Client
may be the better choice.
"/api/engine/v2"
+ "/auth"
+ {{ (`shards version \"/__w/crystal-client/crystal-client/src/placeos\"`).chomp.stringify.downcase }}
+ Provide an object for managing APIKeys.
Provide an object for managing Authority.
Provide an object for managing Cluster.
Provide an object for managing Domains.
Provide an object for managing Drivers.
Provide an object for managing Ldap.
Provide an object for managing Metadata.
Provide an object for managing Modules.
Provide an object for managing OAuth.
Provide an object for managing OAuthApplications.
Provide an object for managing Root.
Provide an object for managing Saml.
Provide an object for managing Settings.
Provide an object for managing Systems.
Provide an object for managing Users.
Provide an object for managing Zones.
Provide an object for managing APIKeys. See PlaceOS::Client::APIWrapper::APIKeys
.
Provide an object for managing Authority. See PlaceOS::Client::APIWrapper::Authority
.
Provide an object for managing Cluster. See PlaceOS::Client::APIWrapper::Cluster
.
Provide an object for managing Domains. See PlaceOS::Client::APIWrapper::Domains
.
Provide an object for managing Drivers. See PlaceOS::Client::APIWrapper::Drivers
.
Provide an object for managing Ldap. See PlaceOS::Client::APIWrapper::Ldap
.
Provide an object for managing Metadata. See PlaceOS::Client::APIWrapper::Metadata
.
Provide an object for managing Modules. See PlaceOS::Client::APIWrapper::Modules
.
Provide an object for managing OAuth. See PlaceOS::Client::APIWrapper::OAuth
.
Provide an object for managing OAuthApplications. See PlaceOS::Client::APIWrapper::OAuthApplications
.
Provide an object for managing Root. See PlaceOS::Client::APIWrapper::Root
.
Provide an object for managing Saml. See PlaceOS::Client::APIWrapper::Saml
.
Provide an object for managing Settings. See PlaceOS::Client::APIWrapper::Settings
.
Provide an object for managing Systems. See PlaceOS::Client::APIWrapper::Systems
.
Provide an object for managing Users. See PlaceOS::Client::APIWrapper::Users
.
Provide an object for managing Zones. See PlaceOS::Client::APIWrapper::Zones
.
Markdown formatted text that describes the zone.
A universally unique identifier for the zone.
A human readable identifier.
The permission level of the user
API scopes
The auth key, only returned on create
PlaceOS::Client::API::Models::Timestamps
PlaceOS::Client::API::Models::Response
Markdown formatted text that describes the zone.
+The permission level of the user
+Markdown formatted text that describes the asset.
A universally unique identifier for the Asset.
Array of URLs to images for an asset
URL of downloadable receipt
A human readable identifier.
TODO define currency for #purchase_price
PlaceOS::Client::API::Models::Response
Markdown formatted text that describes the asset.
+TODO define currency for #purchase_price
A universally unique identifier for the Asset.
PlaceOS::Client::API::Models::Response
0
+ 1
+ 2
+ 3
+ Metadata about the PlaceOS instance connected to.
+This provides information that may be of relevance for authentication or +providing client-side configuration information.
+ + + + + + + + + + + + + + +Metadata about the PlaceOS instance connected to.
Additional configuration / context for clients.
Authority description (markdown).
FQDN or IP address this authority serves.
A universally unique identifier that represents the Authority.
Path that clients should use for initiating authentication.
Path that clients should use for revoking authentication.
Human readable name
Version of application
PlaceOS::Client::API::Models::Response
Metadata about the PlaceOS instance connected to.
+This provides information that may be of relevance for authentication or +providing client-side configuration information.
+Additional configuration / context for clients.
+Authority description (markdown).
+A universally unique identifier that represents the Authority.
+Path that clients should use for initiating authentication.
+Path that clients should use for revoking authentication.
+PlaceOS::Client::API::Models::Response
Don't include this module in statistics or disconnected searches Might be a device that commonly goes offline (like a PC or Display that only supports Wake on Lan)
Module instance configuration
PlaceOS::Client::API::Models::Timestamps
PlaceOS::Client::API::Models::Response
Don't include this module in statistics or disconnected searches +Might be a device that commonly goes offline (like a PC or Display that only supports Wake on Lan)
+Invocation information for interaction with an exposed driver behaviour.
+ + + + + + + + + + + + + + +Invocation information for interaction with an exposed driver behaviour.
The number of parameters that the function accepts.
Parameter information.
PlaceOS::Client::API::Models::Response
Invocation information for interaction with an exposed driver behaviour.
+The number of parameters that the function accepts.
+Parameter information as {kind, name}.
+ + + +{PlaceOS::Client::API::Models::Function::ParameterKind, String}
+
+
+
+
+
+
+
+
+
+
+
+
+ Possible parameter kinds.
+ + + + + + + + + + + + + + +0
+ Required
+1
+ Optional
+2
+ A capture all for all trailing arguments.
+Options are: plain, ssl, tls
BaseDN such as dc=intridea, dc=com
:bind_dn and :password is the default credentials to perform user lookup
LDAP filter like: (&(uid=%{username})(memberOf=cn=myapp-users,ou=groups,dc=example,dc=com)) Can be used instead of UID
PlaceOS::Client::API::Models::Timestamps
PlaceOS::Client::API::Models::Response
:bind_dn and :password is the default credentials to perform user lookup
+LDAP filter like: (&(uid=%{username})(memberOf=cn=myapp-users,ou=groups,dc=example,dc=com)) +Can be used instead of UID
+PlaceOS::Client::API::Models::Response
Flag for connectivity state.
The system this module is bound to (logic modules only).
The modules class name (Display, Lighting etc) if it should differ from the default defined in the driver.
The driver that defines this module.
A universally unique identifier for the module.
If enabled, system metrics ignore connectivity state.
If enabled, system level start and stop actions are ignored.
IP address or resolvable hostname of the device this module connects to.
If enabled, provides an ephemeral connection that disconnects during idle periods.
Driver's default name for the module
The TCP or UDP port that the associated device communicates on.
The associated driver type.
Module start/stop state.
True if the device communicates securely.
Protocol uses UDP rather that TCP.
The based URI of the remote service (service modules only).
PlaceOS::Client::API::Models::Timestamps
PlaceOS::Client::API::Models::Response
The system this module is bound to (logic modules only).
+The modules class name (Display, Lighting etc) if it should differ from the +default defined in the driver.
+If enabled, system metrics ignore connectivity state.
+If enabled, system level start and stop actions are ignored. This is +recommended for modules shared by many systems (e.g. a lighting gateway).
+IP address or resolvable hostname of the device this module connects to.
+If enabled, provides an ephemeral connection that disconnects during idle +periods.
+The TCP or UDP port that the associated device communicates on.
+The based URI of the remote service (service modules only).
+PlaceOS::Client::API::Models::Timestamps
PlaceOS::Client::API::Models::Response
If not set it defaults to "request_body", others include "basic_auth"
The SSO providers URL for authorization, defaults to: oauth/authorize
Google is /o/oauth2/auth
The client ID and secret configured for this application
Maps an expected key to a provided key i.e.
URL to call with a valid token to obtain the users profile data (name, email etc)
Space seperated scope strings i.e.
The HTTP URL of the SSO provider
If not set it defaults to "post"
defaults to: oauth/token
however google is: /o/oauth2/token
PlaceOS::Client::API::Models::Timestamps
PlaceOS::Client::API::Models::Response
If not set it defaults to "request_body", others include "basic_auth"
+The SSO providers URL for authorization, defaults to: oauth/authorize
+Google is /o/oauth2/auth
The client ID and secret configured for this application
+Maps an expected key to a provided key i.e. {used_in_engine => used_by_remote}
+URL to call with a valid token to obtain the users profile data (name, email etc)
+Space seperated scope strings
+i.e. https://www.googleapis.com/auth/devstorage.readonly https://www.googleapis.com/auth/prediction
defaults to: oauth/token
however google is: /o/oauth2/token
PlaceOS::Client::API::Models::Response
PlaceOS::Client::API::Models::Response
PlaceOS::Client::API::Models::Response
PlaceOS::Model::Driver::Role
+
+
+
+
+
+
+
+
+
+
+
+
+ The URL at which the SAML assertion should be received (SSO Service => Engine URL)
Name for the getter service (Defaults to Required getters)
Used to map getter Names in a SAMLResponse to entries in the OmniAuth info hash
The identity provider's certificate in PEM format (this or fingerprint is required)
The SHA1 fingerprint of the certificate
The URL to which the single logout request and response should be sent
The URL to which the authentication request should be sent (Engine => SSO Service)
mapping of request params that exist during the request phase of OmniAuth that should to be sent to the IdP
The name of your application
Describes the format of the username required by this application
Used to map getter Names in a SAMLResponse to entries in the OmniAuth info hash
The value to use as default RelayState for single log outs
getter that uniquely identifies the user (If unset, the name identifier returned by the IdP is used.)
PlaceOS::Client::API::Models::Timestamps
PlaceOS::Client::API::Models::Response
The URL at which the SAML assertion should be received (SSO Service => Engine URL)
+Name for the getter service (Defaults to Required getters)
+Used to map getter Names in a SAMLResponse to entries in the OmniAuth info hash
+The identity provider's certificate in PEM format (this or fingerprint is required)
+The SHA1 fingerprint of the certificate
+The URL to which the single logout request and response should be sent
+The URL to which the authentication request should be sent (Engine => SSO Service)
+mapping of request params that exist during the request phase of OmniAuth that should to be sent to the IdP
+Describes the format of the username required by this application
+Used to map getter Names in a SAMLResponse to entries in the OmniAuth info hash
+The value to use as default RelayState for single log outs
+getter that uniquely identifies the user +(If unset, the name identifier returned by the IdP is used.)
+PlaceOS::Client::API::Models::Response
Flag for signifying the space as reservable.
Number of people that can be accommodated in this space.
the room identification code, like 3-04 etc.
Markdown formatted text that describes the system.
an alternative to the full name that is easier to read.
Calendar URI that is associated with this system.
List of features in the room for searching and filtering spaces.
A universally unique identifier for the system.
images of this room
Expected number of fixed installation touch panels.
a map identifier that can be used to locate this system.
Module ID's that this system contains.
A human readable identifier.
is the system intended for public access?
A URL linking to the primary interface for controlling this system.
timezone the system is located
the system type, like a small meeting room etc.
Incrementing counter for handling stale updates.
Zone IDs that this system is a member of.
PlaceOS::Client::API::Models::Timestamps
PlaceOS::Client::API::Models::Response
Flag for signifying the space as reservable.
+Number of people that can be accommodated in this space.
+the room identification code, like 3-04 etc.
+Markdown formatted text that describes the system.
+an alternative to the full name that is easier to read.
+Calendar URI that is associated with this system.
+List of features in the room for searching and filtering spaces.
+Expected number of fixed installation touch panels.
+a map identifier that can be used to locate this system.
+Module ID's that this system contains.
+is the system intended for public access?
+A URL linking to the primary interface for controlling this system.
+the system type, like a small meeting room etc.
+Incrementing counter for handling stale updates.
+Zone IDs that this system is a member of.
+Creation time.
Update time.
In milliseconds
PlaceOS::Client::API::Models::Response
PlaceOS::Client::API::Models::Response
PlaceOS::Client::API::Models::Response
PlaceOS::Client::API::Models::Response
PlaceOS::Client::API::Models::Response
{"equal", "not_equal", "greater_than", "greater_than_or_equal", "less_than", "less_than_or_equal", "and", "or", "exclusive_or"}
+ PlaceOS::Client::API::Models::Response
Constant value
+ + + +Bool | Float64 | Int64 | String
+
+
+
+
+
+
+
+
+
+
+
+
+ Status of a Module
+ + + +{mod: String, status: String, keys: Array(String)}
+
+
+
+
+
+
+
+
+
+
+
+
+ Bool | Float64 | Int64 | {mod: String, status: String, keys: Array(String)} | String
+
+
+
+
+
+
+
+
+
+
+
+
+ PlaceOS::Client::API::Models::Response
0
+ 1
+ PlaceOS::Client::API::Models::Response
Metadata about the current user
+ + + + + + + + + + + + + + +Metadata about the current user
Admin only fields
PlaceOS::Client::API::Models::Response
Metadata about the current user
+The PlaceOS application name
The build time of the docker container
the commit hash for the running build
The version in the shard yml
PlaceOS::Client::API::Models::Response
Associated arguments for the command.
The command type.
A unique identifier to associate with the command.
The module index the command targets.
The module name the command targets.
Name of the status variable of method being interacted with.
The system identified the command targets.
Associated arguments for the command.
+A unique identifier to associate with the command. This will be returned as +part of the response.
+The module index the command targets. Defaults to 1.
+Name of the status variable of method being interacted with.
+0
+ 1
+ 2
+ 3
+ 4
+ Parses a websocket response into a concrete response type.
Parses a websocket response into a concrete response type.
+FIXME currently this is parsing twice - this is a quick hack to get things +going. When time allows this should be refactored to work as a single pass, +or provide a more efficient method for identifying the message type.
+The identifier included with the original request.
Class of the originating message source.
Message verbosity level.
ID of the module the event originated from.
Log message.
The identifier included with the original request.
+0
+ 1
+ 2
+ 3
+ 4
+ 5
+ Error type.
The identifier included with the original request.
Additional error info.
The identifier included with the original request.
+0
+ 1
+ 2
+ 3
+ 4
+ 5
+ 6
+ 7
+ Module index.
Module name.
Name of the method or status key.
The system ID.
Asyncronous state update from an active binding.
+ + + + + +The identifier included with the original request.
Associated metadata.
New status value
The identifier included with the original request.
+The identifier included with the original request.
Associated metadata.
The identifier included with the original request.
+0
+ 1
+ 2
+ 3
+ Could be used as people capacity
Could be used as floor code or building code etc
Could be used as desk count for a level
Markdown formatted text that describes the zone.
A human readable identifier for displaying on interfaces
A universally unique identifier for the zone.
Geo-location string (lat,long) or any other location
Map identifier, could be a URL or id
A human readable identifier.
Parent id
Space seperated list of tags for categorizing the zone.
Timezone location of the zone
Trigger data returned when param complete
is true
List of trigger ID's to be applied to all systems that associate with this zone.
Could be used as floor type or building type etc
PlaceOS::Client::API::Models::Timestamps
PlaceOS::Client::API::Models::Response
Could be used as floor code or building code etc
+Markdown formatted text that describes the zone.
+A human readable identifier for displaying on interfaces
+Geo-location string (lat,long) or any other location
+Space seperated list of tags for categorizing the zone.
+Timezone location of the zone
+Trigger data returned when param complete
is true
List of trigger ID's to be applied to all systems that associate with this zone.
+Could be used as floor type or building type etc
+The base route for the endpoint
Creates a new zone.
Get a clear text version of the JWT token
List or search for zones.
Updates zone attributes or configuration.
PlaceOS::Client::APIWrapper::Endpoint::Destroy
PlaceOS::Client::APIWrapper::Endpoint::Fetch(PlaceOS::Client::API::Models::APIKey)
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
The base route for the endpoint
+Creates a new zone.
+List or search for zones.
+Results maybe filtered by specifying a query - q - to search across zone +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 zones will be returned, with a paging based on offset.
+Results my also also be limited to those associated with specific tags.
+Updates zone attributes or configuration.
+The base route for the endpoint
Creates a new asset instance.
Updates asset instance attributes or configuration.
PlaceOS::Client::APIWrapper::Endpoint::Destroy
PlaceOS::Client::APIWrapper::Endpoint::Fetch(PlaceOS::Client::API::Models::AssetInstance)
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
The base route for the endpoint
+Creates a new asset instance.
+Updates asset instance attributes or configuration.
+The base route for the endpoint
Creates a new asset.
Updates asset attributes or configuration.
PlaceOS::Client::APIWrapper::Endpoint::Destroy
PlaceOS::Client::APIWrapper::Endpoint::Fetch(PlaceOS::Client::API::Models::Asset)
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
The base route for the endpoint
+Creates a new asset.
+Updates asset attributes or configuration.
+List or search.
PlaceOS::Client::APIWrapper::Endpoint::Destroy
PlaceOS::Client::APIWrapper::Endpoint::Fetch(Model)
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
List or search.
+Results maybe filtered by specifying a query - q - to search across +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 documents will be returned, with a paging based on offset.
+The base route for the endpoint
Gets the authority metadata for the attached instance.
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
The base route for the endpoint
+Gets the authority metadata for the attached instance.
+The base route for the endpoint
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
The base route for the endpoint
+The base route for the endpoint
PlaceOS::Client::APIWrapper::Endpoint::Destroy
PlaceOS::Client::APIWrapper::Endpoint::Fetch(PlaceOS::Client::APIWrapper::Authority)
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
The base route for the endpoint
+The base route for the endpoint
List or search for drivers.
PlaceOS::Client::APIWrapper::Endpoint::Destroy
PlaceOS::Client::APIWrapper::Endpoint::Fetch(PlaceOS::Client::API::Models::Driver)
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
The base route for the endpoint
+List or search for drivers.
+Results maybe filtered by specifying a query - q - to search across driver +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 drivers will be returned, with a paging based on offset.
+The base route for the endpoint
PlaceOS::Client::APIWrapper::AuthBase(PlaceOS::Client::API::Models::LdapAuthentication)
PlaceOS::Client::APIWrapper::AuthBase(PlaceOS::Client::API::Models::LdapAuthentication)
PlaceOS::Client::APIWrapper::Endpoint::Destroy
PlaceOS::Client::APIWrapper::Endpoint::Fetch(PlaceOS::Client::API::Models::LdapAuthentication)
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
The base route for the endpoint
+The base route for the endpoint
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
The base route for the endpoint
+The base route for the endpoint
Creates a new module.
Performs a connectivity check with the associated device or service.
List or search for modules.
Starts a module.
Queries the state exposed by a module.
Stops a module.
Updates module attributes or configuration.
PlaceOS::Client::APIWrapper::Endpoint::Destroy
PlaceOS::Client::APIWrapper::Endpoint::Fetch(PlaceOS::Client::API::Models::Module)
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
The base route for the endpoint
+Creates a new module.
+Performs a connectivity check with the associated device or service.
+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.
+Queries the state exposed by a module.
+Updates module attributes or configuration.
+The base route for the endpoint
PlaceOS::Client::APIWrapper::AuthBase(PlaceOS::Client::API::Models::OAuthAuthentication)
PlaceOS::Client::APIWrapper::AuthBase(PlaceOS::Client::API::Models::OAuthAuthentication)
PlaceOS::Client::APIWrapper::Endpoint::Destroy
PlaceOS::Client::APIWrapper::Endpoint::Fetch(PlaceOS::Client::API::Models::OAuthAuthentication)
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
The base route for the endpoint
+The base route for the endpoint
List or search for applications.
PlaceOS::Client::APIWrapper::Endpoint::Destroy
PlaceOS::Client::APIWrapper::Endpoint::Fetch(PlaceOS::Client::API::Models::OAuthApplication)
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
The base route for the endpoint
+List or search for applications.
+Results maybe filtered by specifying a query - q - to search across application +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 application will be returned, with a paging based on offset.
+The base route for the endpoint
PlaceOS::Client::APIWrapper::Endpoint::Destroy
PlaceOS::Client::APIWrapper::Endpoint::Fetch(PlaceOS::Client::API::Models::Repository)
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
The base route for the endpoint
+The base route for the endpoint
send data to listening drivers
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
The base route for the endpoint
+send data to listening drivers
+The base route for the endpoint
PlaceOS::Client::APIWrapper::AuthBase(PlaceOS::Client::API::Models::SamlAuthentication)
PlaceOS::Client::APIWrapper::AuthBase(PlaceOS::Client::API::Models::SamlAuthentication)
PlaceOS::Client::APIWrapper::Endpoint::Destroy
PlaceOS::Client::APIWrapper::Endpoint::Fetch(PlaceOS::Client::API::Models::SamlAuthentication)
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
The base route for the endpoint
+The base route for the endpoint
Create new settings.
List or search for systems.
Update settings.
PlaceOS::Client::APIWrapper::Endpoint::Destroy
PlaceOS::Client::APIWrapper::Endpoint::Fetch(PlaceOS::Client::API::Models::Settings)
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
The base route for the endpoint
+Create new settings.
+List or search for systems.
+Update settings.
+SystemTriggers are embedded beneath a systems route
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
SystemTriggers are embedded beneath a systems route
+The base route for the endpoint
Gets the number of module_name instances available in system id.
Creates a new system.
Executes a behaviour exposed by a module within the passed system id.
Queries the behaviour exposed by a module within system id.
List or search for systems.
Start all modules within a system.
Queries the state exposed by a module within the passed system id.
Stops all modules within a system.
Queries the types of modules available in system id.
Requests a change to an existing system.
Returns systems with a specified email address(es)
PlaceOS::Client::APIWrapper::Endpoint::Destroy
PlaceOS::Client::APIWrapper::Endpoint::Fetch(PlaceOS::Client::API::Models::System)
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
The base route for the endpoint
+Gets the number of module_name instances available in system id.
+Creates a new system.
+Systems must be given a unique name within the PlaceOS instance they are +running from. Additionally, a system must be a member of at least one +zone. All other attributes are optional at the time of creation.
+Executes a behaviour exposed by a module within the passed system id.
+Queries the behaviour exposed by a module within system id.
+List or search for systems.
+Results maybe filtered by specifying a query - q - to search across system +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.
+Queries the state exposed by a module within the passed system id.
+Queries the types of modules available in system id.
+Requests a change to an existing system.
+In addition to specifying the ID of the system to update, you must reference +the the current system metadata version for the update to be allowed. This +must match the current version attribute of the system and will be +incrememented following a successful update.
+Returns systems with a specified email address(es)
+The base route for the endpoint
PlaceOS::Client::APIWrapper::Endpoint::Destroy
PlaceOS::Client::APIWrapper::Endpoint::Fetch(PlaceOS::Client::API::Models::Trigger)
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
The base route for the endpoint
+TODO
+The base route for the endpoint
List or search for users.
PlaceOS::Client::APIWrapper::Endpoint::Destroy
PlaceOS::Client::APIWrapper::Endpoint::Fetch(PlaceOS::Client::API::Models::User)
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
The base route for the endpoint
+List or search for users.
+Results maybe filtered by specifying a query - q - to search across zone +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 zones will be returned, with a paging based on offset.
+Results my also also be limited to those associated with specific tags.
+The base route for the endpoint
Creates a new zone.
List or search for zones.
Updates zone attributes or configuration.
PlaceOS::Client::APIWrapper::Endpoint::Destroy
PlaceOS::Client::APIWrapper::Endpoint::Fetch(PlaceOS::Client::API::Models::Zone)
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
PlaceOS::Client::APIWrapper::Endpoint
The base route for the endpoint
+Creates a new zone.
+List or search for zones.
+Results maybe filtered by specifying a query - q - to search across zone +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 zones will be returned, with a paging based on offset.
+Results my also also be limited to those associated with specific tags.
+Updates zone attributes or configuration.
+A library for building crystal applications that utilise PlaceOS.
+Add the dependency to your shard.yml
:
dependencies:
+ placeos:
+ github: placeos/crystal-client
+ version: ~> 1.0
+Run shards install
When initialialized via the host environment, the key PLACE_URI
is expected.
from environment
+require "placeos"
+
+# Extracts user credentials from the following environment keys...
+# - PLACE_URI
+# - PLACE_EMAIL
+# - PLACE_PASSWORD
+# - PLACE_AUTH_CLIENT_ID
+# - PLACE_AUTH_SECRET
+client = PlaceOS::Client.from_environment_user
+Run crystal spec
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)Low-level wrapper for the PlaceOS API.
","types":[{"html_id":"placeos/PlaceOS/Client","path":"PlaceOS/Client.html","kind":"class","full_name":"PlaceOS::Client","name":"Client","abstract":false,"superclass":{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/client.cr","line_number":10,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"constants":[{"id":"API_ROOT","name":"API_ROOT","value":"\"/api/engine/v2\""},{"id":"AUTH_API_ROOT","name":"AUTH_API_ROOT","value":"\"/auth\""},{"id":"VERSION","name":"VERSION","value":"{{ (`shards version \\\"/__w/crystal-client/crystal-client/src/placeos\\\"`).chomp.stringify.downcase }}"}],"namespace":{"html_id":"placeos/PlaceOS","kind":"module","full_name":"PlaceOS","name":"PlaceOS"},"class_methods":[{"html_id":"from_environment_user-class-method","name":"from_environment_user","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":23,"url":null},"def":{"name":"from_environment_user","visibility":"Public","body":"environment = {\"PLACE_URI\", \"PLACE_EMAIL\", \"PLACE_PASSWORD\", \"PLACE_AUTH_CLIENT_ID\", \"PLACE_AUTH_SECRET\"}.map do |key|\n ENV[key]? || (abort(\"missing #{key} in environment\"))\nend\nuri, email, password, client_id, client_secret = environment\nnew(uri, email: email, password: password, client_id: client_id, client_secret: client_secret)\n"}},{"html_id":"from_environment_user(&)-class-method","name":"from_environment_user","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":32,"url":null},"def":{"name":"from_environment_user","yields":1,"block_arity":1,"visibility":"Public","body":"begin\n client = self.from_environment_user\n yield client\nensure\n client.close\nend"}}],"constructors":[{"html_id":"new(base_uri:URI|String,email:String|Nil=nil,password:String|Nil=nil,client_id:String|Nil=nil,client_secret:String|Nil=nil,token:OAuth2::AccessToken|Nil=nil,host_header:String|Nil=nil,insecure:Bool=false,x_api_key:String|Nil=nil)-class-method","name":"new","abstract":false,"args":[{"name":"base_uri","external_name":"base_uri","restriction":"URI | String"},{"name":"email","default_value":"nil","external_name":"email","restriction":"String | ::Nil"},{"name":"password","default_value":"nil","external_name":"password","restriction":"String | ::Nil"},{"name":"client_id","default_value":"nil","external_name":"client_id","restriction":"String | ::Nil"},{"name":"client_secret","default_value":"nil","external_name":"client_secret","restriction":"String | ::Nil"},{"name":"token","default_value":"nil","external_name":"token","restriction":"OAuth2::AccessToken | ::Nil"},{"name":"host_header","default_value":"nil","external_name":"host_header","restriction":"String | ::Nil"},{"name":"insecure","default_value":"false","external_name":"insecure","restriction":"Bool"},{"name":"x_api_key","default_value":"nil","external_name":"x_api_key","restriction":"String | ::Nil"}],"args_string":"(base_uri : URI | String, email : String | Nil = nil, password : String | Nil = nil, client_id : String | Nil = nil, client_secret : String | Nil = nil, token : OAuth2::AccessToken | Nil = nil, host_header : String | Nil = nil, insecure : Bool = false, x_api_key : String | Nil = nil)","args_html":"(base_uri : URI | String, email : String | Nil = nil, password : String | Nil = nil, client_id : String | Nil = nil, client_secret : String | Nil = nil, token : OAuth2::AccessToken | Nil = nil, host_header : String | Nil = nil, insecure : Bool = false, x_api_key : String | Nil = nil)","location":{"filename":"src/placeos/client.cr","line_number":39,"url":null},"def":{"name":"new","args":[{"name":"base_uri","external_name":"base_uri","restriction":"URI | String"},{"name":"email","default_value":"nil","external_name":"email","restriction":"String | ::Nil"},{"name":"password","default_value":"nil","external_name":"password","restriction":"String | ::Nil"},{"name":"client_id","default_value":"nil","external_name":"client_id","restriction":"String | ::Nil"},{"name":"client_secret","default_value":"nil","external_name":"client_secret","restriction":"String | ::Nil"},{"name":"token","default_value":"nil","external_name":"token","restriction":"OAuth2::AccessToken | ::Nil"},{"name":"host_header","default_value":"nil","external_name":"host_header","restriction":"String | ::Nil"},{"name":"insecure","default_value":"false","external_name":"insecure","restriction":"Bool"},{"name":"x_api_key","default_value":"nil","external_name":"x_api_key","restriction":"String | ::Nil"}],"visibility":"Public","body":"_ = allocate\n_.initialize(base_uri, email, password, client_id, client_secret, token, host_header, insecure, x_api_key)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"api_wrapper:APIWrapper-instance-method","name":"api_wrapper","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":19,"url":null},"def":{"name":"api_wrapper","return_type":"APIWrapper","visibility":"Public","body":"@api_wrapper"}},{"html_id":"apikeys:APIWrapper::APIKeys-instance-method","name":"apikeys","doc":"Provide an object for managing APIKeys. See `PlaceOS::Client::APIWrapper::APIKeys`.","summary":"Provide an object for managing APIKeys.
","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":120,"url":null},"def":{"name":"apikeys","return_type":"APIWrapper::APIKeys","visibility":"Public","body":"@apikeys || (@apikeys = APIWrapper::APIKeys.new(api_wrapper))"}},{"html_id":"authenticated?-instance-method","name":"authenticated?","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":57,"url":null},"def":{"name":"authenticated?","visibility":"Public","body":"if @session || @x_api_key\n return true\nend\n!(((@email.nil? || @password.nil?) || @client_id.nil?) || @client_secret.nil?)\n"}},{"html_id":"authority:APIWrapper::Authority-instance-method","name":"authority","doc":"Provide an object for managing Authority. See `PlaceOS::Client::APIWrapper::Authority`.","summary":"Provide an object for managing Authority.
","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":120,"url":null},"def":{"name":"authority","return_type":"APIWrapper::Authority","visibility":"Public","body":"@authority || (@authority = APIWrapper::Authority.new(api_wrapper))"}},{"html_id":"close(*args,**options)-instance-method","name":"close","abstract":false,"args":[{"name":"args","external_name":"args","restriction":""}],"args_string":"(*args, **options)","args_html":"(*args, **options)","location":{"filename":"src/placeos/client.cr","line_number":21,"url":null},"def":{"name":"close","args":[{"name":"args","external_name":"args","restriction":""}],"double_splat":{"name":"options","external_name":"options","restriction":""},"splat_index":0,"visibility":"Public","body":"api_wrapper.close(*args, **options)"}},{"html_id":"close(*args,**options,&)-instance-method","name":"close","abstract":false,"args":[{"name":"args","external_name":"args","restriction":""}],"args_string":"(*args, **options, &)","args_html":"(*args, **options, &)","location":{"filename":"src/placeos/client.cr","line_number":21,"url":null},"def":{"name":"close","args":[{"name":"args","external_name":"args","restriction":""}],"double_splat":{"name":"options","external_name":"options","restriction":""},"splat_index":0,"yields":1,"block_arity":1,"visibility":"Public","body":"api_wrapper.close(*args, **options) do |*yield_args|\n yield *yield_args\nend"}},{"html_id":"cluster:APIWrapper::Cluster-instance-method","name":"cluster","doc":"Provide an object for managing Cluster. See `PlaceOS::Client::APIWrapper::Cluster`.","summary":"Provide an object for managing Cluster.
","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":120,"url":null},"def":{"name":"cluster","return_type":"APIWrapper::Cluster","visibility":"Public","body":"@cluster || (@cluster = APIWrapper::Cluster.new(api_wrapper))"}},{"html_id":"domains:APIWrapper::Domains-instance-method","name":"domains","doc":"Provide an object for managing Domains. See `PlaceOS::Client::APIWrapper::Domains`.","summary":"Provide an object for managing Domains.
","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":120,"url":null},"def":{"name":"domains","return_type":"APIWrapper::Domains","visibility":"Public","body":"@domains || (@domains = APIWrapper::Domains.new(api_wrapper))"}},{"html_id":"drivers:APIWrapper::Drivers-instance-method","name":"drivers","doc":"Provide an object for managing Drivers. See `PlaceOS::Client::APIWrapper::Drivers`.","summary":"Provide an object for managing Drivers.
","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":120,"url":null},"def":{"name":"drivers","return_type":"APIWrapper::Drivers","visibility":"Public","body":"@drivers || (@drivers = APIWrapper::Drivers.new(api_wrapper))"}},{"html_id":"ldap:APIWrapper::Ldap-instance-method","name":"ldap","doc":"Provide an object for managing Ldap. See `PlaceOS::Client::APIWrapper::Ldap`.","summary":"Provide an object for managing Ldap.
","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":120,"url":null},"def":{"name":"ldap","return_type":"APIWrapper::Ldap","visibility":"Public","body":"@ldap || (@ldap = APIWrapper::Ldap.new(api_wrapper))"}},{"html_id":"metadata:APIWrapper::Metadata-instance-method","name":"metadata","doc":"Provide an object for managing Metadata. See `PlaceOS::Client::APIWrapper::Metadata`.","summary":"Provide an object for managing Metadata.
","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":120,"url":null},"def":{"name":"metadata","return_type":"APIWrapper::Metadata","visibility":"Public","body":"@metadata || (@metadata = APIWrapper::Metadata.new(api_wrapper))"}},{"html_id":"modules:APIWrapper::Modules-instance-method","name":"modules","doc":"Provide an object for managing Modules. See `PlaceOS::Client::APIWrapper::Modules`.","summary":"Provide an object for managing Modules.
","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":120,"url":null},"def":{"name":"modules","return_type":"APIWrapper::Modules","visibility":"Public","body":"@modules || (@modules = APIWrapper::Modules.new(api_wrapper))"}},{"html_id":"oauth:APIWrapper::OAuth-instance-method","name":"oauth","doc":"Provide an object for managing OAuth. See `PlaceOS::Client::APIWrapper::OAuth`.","summary":"Provide an object for managing OAuth.
","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":120,"url":null},"def":{"name":"oauth","return_type":"APIWrapper::OAuth","visibility":"Public","body":"@oauth || (@oauth = APIWrapper::OAuth.new(api_wrapper))"}},{"html_id":"oauthapplications:APIWrapper::OAuthApplications-instance-method","name":"oauthapplications","doc":"Provide an object for managing OAuthApplications. See `PlaceOS::Client::APIWrapper::OAuthApplications`.","summary":"Provide an object for managing OAuthApplications.
","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":120,"url":null},"def":{"name":"oauthapplications","return_type":"APIWrapper::OAuthApplications","visibility":"Public","body":"@oauthapplications || (@oauthapplications = APIWrapper::OAuthApplications.new(api_wrapper))"}},{"html_id":"root:APIWrapper::Root-instance-method","name":"root","doc":"Provide an object for managing Root. See `PlaceOS::Client::APIWrapper::Root`.","summary":"Provide an object for managing Root.
","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":120,"url":null},"def":{"name":"root","return_type":"APIWrapper::Root","visibility":"Public","body":"@root || (@root = APIWrapper::Root.new(api_wrapper))"}},{"html_id":"saml:APIWrapper::Saml-instance-method","name":"saml","doc":"Provide an object for managing Saml. See `PlaceOS::Client::APIWrapper::Saml`.","summary":"Provide an object for managing Saml.
","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":120,"url":null},"def":{"name":"saml","return_type":"APIWrapper::Saml","visibility":"Public","body":"@saml || (@saml = APIWrapper::Saml.new(api_wrapper))"}},{"html_id":"settings:APIWrapper::Settings-instance-method","name":"settings","doc":"Provide an object for managing Settings. See `PlaceOS::Client::APIWrapper::Settings`.","summary":"Provide an object for managing Settings.
","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":120,"url":null},"def":{"name":"settings","return_type":"APIWrapper::Settings","visibility":"Public","body":"@settings || (@settings = APIWrapper::Settings.new(api_wrapper))"}},{"html_id":"systems:APIWrapper::Systems-instance-method","name":"systems","doc":"Provide an object for managing Systems. See `PlaceOS::Client::APIWrapper::Systems`.","summary":"Provide an object for managing Systems.
","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":120,"url":null},"def":{"name":"systems","return_type":"APIWrapper::Systems","visibility":"Public","body":"@systems || (@systems = APIWrapper::Systems.new(api_wrapper))"}},{"html_id":"uri:URI-instance-method","name":"uri","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":18,"url":null},"def":{"name":"uri","return_type":"URI","visibility":"Public","body":"@uri"}},{"html_id":"users:APIWrapper::Users-instance-method","name":"users","doc":"Provide an object for managing Users. See `PlaceOS::Client::APIWrapper::Users`.","summary":"Provide an object for managing Users.
","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":120,"url":null},"def":{"name":"users","return_type":"APIWrapper::Users","visibility":"Public","body":"@users || (@users = APIWrapper::Users.new(api_wrapper))"}},{"html_id":"zones:APIWrapper::Zones-instance-method","name":"zones","doc":"Provide an object for managing Zones. See `PlaceOS::Client::APIWrapper::Zones`.","summary":"Provide an object for managing Zones.
","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":120,"url":null},"def":{"name":"zones","return_type":"APIWrapper::Zones","visibility":"Public","body":"@zones || (@zones = APIWrapper::Zones.new(api_wrapper))"}}],"types":[{"html_id":"placeos/PlaceOS/Client/API","path":"PlaceOS/Client/API.html","kind":"module","full_name":"PlaceOS::Client::API","name":"API","abstract":false,"locations":[{"filename":"src/placeos/api/error.cr","line_number":3,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client","kind":"class","full_name":"PlaceOS::Client","name":"Client"},"types":[{"html_id":"placeos/PlaceOS/Client/API/Error","path":"PlaceOS/Client/API/Error.html","kind":"class","full_name":"PlaceOS::Client::API::Error","name":"Error","abstract":false,"superclass":{"html_id":"placeos/Exception","kind":"class","full_name":"Exception","name":"Exception"},"ancestors":[{"html_id":"placeos/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/error.cr","line_number":3,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API","kind":"module","full_name":"PlaceOS::Client::API","name":"API"},"class_methods":[{"html_id":"from_response(response:HTTP::Client::Response)-class-method","name":"from_response","abstract":false,"args":[{"name":"response","external_name":"response","restriction":"HTTP::Client::Response"}],"args_string":"(response : HTTP::Client::Response)","args_html":"(response : HTTP::Client::Response)","location":{"filename":"src/placeos/api/error.cr","line_number":4,"url":null},"def":{"name":"from_response","args":[{"name":"response","external_name":"response","restriction":"HTTP::Client::Response"}],"visibility":"Public","body":"if response.success?\n raise(ArgumentError.new(\"response is valid\"))\nelse\n if response.status_message\n new(\"#{response.status_message}\\n#{response.body}\")\n else\n new(\"HTTP error #{response.status_code}\\n#{response.body}\")\n end\nend"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models","path":"PlaceOS/Client/API/Models.html","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models","abstract":false,"locations":[{"filename":"src/placeos/api/models.cr","line_number":1,"url":null},{"filename":"src/placeos/api/models/api_key.cr","line_number":4,"url":null},{"filename":"src/placeos/api/models/asset.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/asset_instance.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/authority.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/auths/ldap.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/auths/oauth.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/auths/saml.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/cluster.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/driver.cr","line_number":4,"url":null},{"filename":"src/placeos/api/models/function.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/metadata.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/module.cr","line_number":4,"url":null},{"filename":"src/placeos/api/models/oauth_application.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/ping.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/repository.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/response.cr","line_number":4,"url":null},{"filename":"src/placeos/api/models/role.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/settings.cr","line_number":5,"url":null},{"filename":"src/placeos/api/models/system.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/trigger.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/trigger_instance.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/user.cr","line_number":4,"url":null},{"filename":"src/placeos/api/models/version.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/zone.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"including_types":[{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API","kind":"module","full_name":"PlaceOS::Client::API","name":"API"},"types":[{"html_id":"placeos/PlaceOS/Client/API/Models/APIKey","path":"PlaceOS/Client/API/Models/APIKey.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::APIKey","name":"APIKey","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/api_key.cr","line_number":5,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/api_key.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"authority:Authority-instance-method","name":"authority","abstract":false,"location":{"filename":"src/placeos/api/models/api_key.cr","line_number":32,"url":null},"def":{"name":"authority","return_type":"Authority","visibility":"Public","body":"@authority"}},{"html_id":"authority_id:String-instance-method","name":"authority_id","abstract":false,"location":{"filename":"src/placeos/api/models/api_key.cr","line_number":30,"url":null},"def":{"name":"authority_id","return_type":"String","visibility":"Public","body":"@authority_id"}},{"html_id":"description:String|Nil-instance-method","name":"description","doc":"Markdown formatted text that describes the zone.","summary":"Markdown formatted text that describes the zone.
","abstract":false,"location":{"filename":"src/placeos/api/models/api_key.cr","line_number":18,"url":null},"def":{"name":"description","return_type":"String | ::Nil","visibility":"Public","body":"@description"}},{"html_id":"id:String-instance-method","name":"id","doc":"A universally unique identifier for the zone.","summary":"A universally unique identifier for the zone.
","abstract":false,"location":{"filename":"src/placeos/api/models/api_key.cr","line_number":9,"url":null},"def":{"name":"id","return_type":"String","visibility":"Public","body":"@id"}},{"html_id":"name:String-instance-method","name":"name","doc":"A human readable identifier.","summary":"A human readable identifier.
","abstract":false,"location":{"filename":"src/placeos/api/models/api_key.cr","line_number":12,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"permissions:PlaceOS::Model::UserJWT::Permissions-instance-method","name":"permissions","doc":"The permission level of the user","summary":"The permission level of the user
","abstract":false,"location":{"filename":"src/placeos/api/models/api_key.cr","line_number":24,"url":null},"def":{"name":"permissions","return_type":"::PlaceOS::Model::UserJWT::Permissions","visibility":"Public","body":"@permissions"}},{"html_id":"scopes:Array(String)-instance-method","name":"scopes","doc":"API scopes","summary":"API scopes
","abstract":false,"location":{"filename":"src/placeos/api/models/api_key.cr","line_number":21,"url":null},"def":{"name":"scopes","return_type":"Array(String)","visibility":"Public","body":"@scopes"}},{"html_id":"user:User-instance-method","name":"user","abstract":false,"location":{"filename":"src/placeos/api/models/api_key.cr","line_number":28,"url":null},"def":{"name":"user","return_type":"User","visibility":"Public","body":"@user"}},{"html_id":"user_id:String-instance-method","name":"user_id","abstract":false,"location":{"filename":"src/placeos/api/models/api_key.cr","line_number":26,"url":null},"def":{"name":"user_id","return_type":"String","visibility":"Public","body":"@user_id"}},{"html_id":"x_api_key:String-instance-method","name":"x_api_key","doc":"The auth key, only returned on create","summary":"The auth key, only returned on create
","abstract":false,"location":{"filename":"src/placeos/api/models/api_key.cr","line_number":15,"url":null},"def":{"name":"x_api_key","return_type":"String","visibility":"Public","body":"@x_api_key"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Asset","path":"PlaceOS/Client/API/Models/Asset.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Asset","name":"Asset","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/asset.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/asset.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"brand:String|Nil-instance-method","name":"brand","abstract":false,"location":{"filename":"src/placeos/api/models/asset.cr","line_number":20,"url":null},"def":{"name":"brand","return_type":"String | ::Nil","visibility":"Public","body":"@brand"}},{"html_id":"category:String|Nil-instance-method","name":"category","abstract":false,"location":{"filename":"src/placeos/api/models/asset.cr","line_number":11,"url":null},"def":{"name":"category","return_type":"String | ::Nil","visibility":"Public","body":"@category"}},{"html_id":"description:String|Nil-instance-method","name":"description","doc":"Markdown formatted text that describes the asset.","summary":"Markdown formatted text that describes the asset.
","abstract":false,"location":{"filename":"src/placeos/api/models/asset.cr","line_number":14,"url":null},"def":{"name":"description","return_type":"String | ::Nil","visibility":"Public","body":"@description"}},{"html_id":"good_until_date:Time|Nil-instance-method","name":"good_until_date","abstract":false,"location":{"filename":"src/placeos/api/models/asset.cr","line_number":17,"url":null},"def":{"name":"good_until_date","return_type":"Time | ::Nil","visibility":"Public","body":"@good_until_date"}},{"html_id":"id:String-instance-method","name":"id","doc":"A universally unique identifier for the Asset.","summary":"A universally unique identifier for the Asset.
","abstract":false,"location":{"filename":"src/placeos/api/models/asset.cr","line_number":6,"url":null},"def":{"name":"id","return_type":"String","visibility":"Public","body":"@id"}},{"html_id":"identifier:String|Nil-instance-method","name":"identifier","abstract":false,"location":{"filename":"src/placeos/api/models/asset.cr","line_number":19,"url":null},"def":{"name":"identifier","return_type":"String | ::Nil","visibility":"Public","body":"@identifier"}},{"html_id":"images:Array(String)-instance-method","name":"images","doc":"Array of URLs to images for an asset","summary":"Array of URLs to images for an asset
","abstract":false,"location":{"filename":"src/placeos/api/models/asset.cr","line_number":26,"url":null},"def":{"name":"images","return_type":"Array(String)","visibility":"Public","body":"@images"}},{"html_id":"in_use:Int32-instance-method","name":"in_use","abstract":false,"location":{"filename":"src/placeos/api/models/asset.cr","line_number":32,"url":null},"def":{"name":"in_use","return_type":"Int32","visibility":"Public","body":"@in_use"}},{"html_id":"invoice:String|Nil-instance-method","name":"invoice","doc":"URL of downloadable receipt","summary":"URL of downloadable receipt
","abstract":false,"location":{"filename":"src/placeos/api/models/asset.cr","line_number":29,"url":null},"def":{"name":"invoice","return_type":"String | ::Nil","visibility":"Public","body":"@invoice"}},{"html_id":"name:String-instance-method","name":"name","doc":"A human readable identifier.","summary":"A human readable identifier.
","abstract":false,"location":{"filename":"src/placeos/api/models/asset.cr","line_number":9,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"other_data:JSON::Any-instance-method","name":"other_data","abstract":false,"location":{"filename":"src/placeos/api/models/asset.cr","line_number":34,"url":null},"def":{"name":"other_data","return_type":"JSON::Any","visibility":"Public","body":"@other_data"}},{"html_id":"parent_id:String|Nil-instance-method","name":"parent_id","abstract":false,"location":{"filename":"src/placeos/api/models/asset.cr","line_number":36,"url":null},"def":{"name":"parent_id","return_type":"String | ::Nil","visibility":"Public","body":"@parent_id"}},{"html_id":"purchase_date:Time-instance-method","name":"purchase_date","abstract":false,"location":{"filename":"src/placeos/api/models/asset.cr","line_number":16,"url":null},"def":{"name":"purchase_date","return_type":"Time","visibility":"Public","body":"@purchase_date"}},{"html_id":"purchase_price:Int32|Nil-instance-method","name":"purchase_price","doc":"TODO: define currency for `purchase_price`","summary":"TODO define currency for #purchase_price
A universally unique identifier for the Asset.
","abstract":false,"location":{"filename":"src/placeos/api/models/asset_instance.cr","line_number":13,"url":null},"def":{"name":"id","return_type":"String","visibility":"Public","body":"@id"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"location":{"filename":"src/placeos/api/models/asset_instance.cr","line_number":15,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"requester_id:String|Nil-instance-method","name":"requester_id","abstract":false,"location":{"filename":"src/placeos/api/models/asset_instance.cr","line_number":21,"url":null},"def":{"name":"requester_id","return_type":"String | ::Nil","visibility":"Public","body":"@requester_id"}},{"html_id":"tracking:Tracking-instance-method","name":"tracking","abstract":false,"location":{"filename":"src/placeos/api/models/asset_instance.cr","line_number":17,"url":null},"def":{"name":"tracking","return_type":"Tracking","visibility":"Public","body":"@tracking"}},{"html_id":"usage_end:Time|Nil-instance-method","name":"usage_end","abstract":false,"location":{"filename":"src/placeos/api/models/asset_instance.cr","line_number":25,"url":null},"def":{"name":"usage_end","return_type":"Time | ::Nil","visibility":"Public","body":"@usage_end"}},{"html_id":"usage_start:Time|Nil-instance-method","name":"usage_start","abstract":false,"location":{"filename":"src/placeos/api/models/asset_instance.cr","line_number":24,"url":null},"def":{"name":"usage_start","return_type":"Time | ::Nil","visibility":"Public","body":"@usage_start"}},{"html_id":"zone_id:String|Nil-instance-method","name":"zone_id","abstract":false,"location":{"filename":"src/placeos/api/models/asset_instance.cr","line_number":22,"url":null},"def":{"name":"zone_id","return_type":"String | ::Nil","visibility":"Public","body":"@zone_id"}}],"types":[{"html_id":"placeos/PlaceOS/Client/API/Models/AssetInstance/Tracking","path":"PlaceOS/Client/API/Models/AssetInstance/Tracking.html","kind":"enum","full_name":"PlaceOS::Client::API::Models::AssetInstance::Tracking","name":"Tracking","abstract":false,"ancestors":[{"html_id":"placeos/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"placeos/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/asset_instance.cr","line_number":5,"url":null}],"repository_name":"placeos","program":false,"enum":true,"alias":false,"const":false,"constants":[{"id":"InStorage","name":"InStorage","value":"0"},{"id":"OnTheWay","name":"OnTheWay","value":"1"},{"id":"InRoom","name":"InRoom","value":"2"},{"id":"Returned","name":"Returned","value":"3"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/AssetInstance","kind":"struct","full_name":"PlaceOS::Client::API::Models::AssetInstance","name":"AssetInstance"},"instance_methods":[{"html_id":"in_room?-instance-method","name":"in_room?","abstract":false,"location":{"filename":"src/placeos/api/models/asset_instance.cr","line_number":8,"url":null},"def":{"name":"in_room?","visibility":"Public","body":"self == InRoom"}},{"html_id":"in_storage?-instance-method","name":"in_storage?","abstract":false,"location":{"filename":"src/placeos/api/models/asset_instance.cr","line_number":6,"url":null},"def":{"name":"in_storage?","visibility":"Public","body":"self == InStorage"}},{"html_id":"on_the_way?-instance-method","name":"on_the_way?","abstract":false,"location":{"filename":"src/placeos/api/models/asset_instance.cr","line_number":7,"url":null},"def":{"name":"on_the_way?","visibility":"Public","body":"self == OnTheWay"}},{"html_id":"returned?-instance-method","name":"returned?","abstract":false,"location":{"filename":"src/placeos/api/models/asset_instance.cr","line_number":9,"url":null},"def":{"name":"returned?","visibility":"Public","body":"self == Returned"}}]}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Authority","path":"PlaceOS/Client/API/Models/Authority.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Authority","name":"Authority","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/authority.cr","line_number":8,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"doc":"Metadata about the PlaceOS instance connected to.\n\nThis provides information that may be of relevance for authentication or\nproviding client-side configuration information.","summary":"Metadata about the PlaceOS instance connected to.
","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Metadata about the PlaceOS instance connected to.\n\nThis provides information that may be of relevance for authentication or\nproviding client-side configuration information.","summary":"Metadata about the PlaceOS instance connected to.
","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/authority.cr","line_number":8,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"config:Hash(String,JSON::Any)-instance-method","name":"config","doc":"Additional configuration / context for clients.","summary":"Additional configuration / context for clients.
","abstract":false,"location":{"filename":"src/placeos/api/models/authority.cr","line_number":28,"url":null},"def":{"name":"config","return_type":"Hash(String, ::JSON::Any)","visibility":"Public","body":"@config"}},{"html_id":"description:String|Nil-instance-method","name":"description","doc":"Authority description (markdown).","summary":"Authority description (markdown).
","abstract":false,"location":{"filename":"src/placeos/api/models/authority.cr","line_number":19,"url":null},"def":{"name":"description","return_type":"String | ::Nil","visibility":"Public","body":"@description"}},{"html_id":"domain:String-instance-method","name":"domain","doc":"FQDN or IP address this authority serves.","summary":"FQDN or IP address this authority serves.
","abstract":false,"location":{"filename":"src/placeos/api/models/authority.cr","line_number":16,"url":null},"def":{"name":"domain","return_type":"String","visibility":"Public","body":"@domain"}},{"html_id":"id:String-instance-method","name":"id","doc":"A universally unique identifier that represents the Authority.","summary":"A universally unique identifier that represents the Authority.
","abstract":false,"location":{"filename":"src/placeos/api/models/authority.cr","line_number":10,"url":null},"def":{"name":"id","return_type":"String","visibility":"Public","body":"@id"}},{"html_id":"login_url:String-instance-method","name":"login_url","doc":"Path that clients should use for initiating authentication.","summary":"Path that clients should use for initiating authentication.
","abstract":false,"location":{"filename":"src/placeos/api/models/authority.cr","line_number":22,"url":null},"def":{"name":"login_url","return_type":"String","visibility":"Public","body":"@login_url"}},{"html_id":"logout_url:String-instance-method","name":"logout_url","doc":"Path that clients should use for revoking authentication.","summary":"Path that clients should use for revoking authentication.
","abstract":false,"location":{"filename":"src/placeos/api/models/authority.cr","line_number":25,"url":null},"def":{"name":"logout_url","return_type":"String","visibility":"Public","body":"@logout_url"}},{"html_id":"name:String-instance-method","name":"name","doc":"Human readable name","summary":"Human readable name
","abstract":false,"location":{"filename":"src/placeos/api/models/authority.cr","line_number":13,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"version:String-instance-method","name":"version","doc":"Version of application","summary":"Version of application
","abstract":false,"location":{"filename":"src/placeos/api/models/authority.cr","line_number":31,"url":null},"def":{"name":"version","return_type":"String","visibility":"Public","body":"@version"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Cluster","path":"PlaceOS/Client/API/Models/Cluster.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Cluster","name":"Cluster","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/cluster.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/cluster.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Driver","path":"PlaceOS/Client/API/Models/Driver.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Driver","name":"Driver","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/driver.cr","line_number":5,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/driver.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"commit:String-instance-method","name":"commit","abstract":false,"location":{"filename":"src/placeos/api/models/driver.cr","line_number":25,"url":null},"def":{"name":"commit","return_type":"String","visibility":"Public","body":"@commit"}},{"html_id":"default_port:Int32|Nil-instance-method","name":"default_port","abstract":false,"location":{"filename":"src/placeos/api/models/driver.cr","line_number":14,"url":null},"def":{"name":"default_port","return_type":"Int32 | ::Nil","visibility":"Public","body":"@default_port"}},{"html_id":"default_uri:String|Nil-instance-method","name":"default_uri","abstract":false,"location":{"filename":"src/placeos/api/models/driver.cr","line_number":13,"url":null},"def":{"name":"default_uri","return_type":"String | ::Nil","visibility":"Public","body":"@default_uri"}},{"html_id":"description:String|Nil-instance-method","name":"description","abstract":false,"location":{"filename":"src/placeos/api/models/driver.cr","line_number":11,"url":null},"def":{"name":"description","return_type":"String | ::Nil","visibility":"Public","body":"@description"}},{"html_id":"file_name:String-instance-method","name":"file_name","abstract":false,"location":{"filename":"src/placeos/api/models/driver.cr","line_number":24,"url":null},"def":{"name":"file_name","return_type":"String","visibility":"Public","body":"@file_name"}},{"html_id":"id:String-instance-method","name":"id","abstract":false,"location":{"filename":"src/placeos/api/models/driver.cr","line_number":8,"url":null},"def":{"name":"id","return_type":"String","visibility":"Public","body":"@id"}},{"html_id":"ignore_connected:Bool-instance-method","name":"ignore_connected","doc":"Don't include this module in statistics or disconnected searches\nMight be a device that commonly goes offline (like a PC or Display that only supports Wake on Lan)","summary":"Don't include this module in statistics or disconnected searches Might be a device that commonly goes offline (like a PC or Display that only supports Wake on Lan)
","abstract":false,"location":{"filename":"src/placeos/api/models/driver.cr","line_number":34,"url":null},"def":{"name":"ignore_connected","return_type":"Bool","visibility":"Public","body":"@ignore_connected"}},{"html_id":"module_name:String-instance-method","name":"module_name","doc":"Module instance configuration","summary":"Module instance configuration
","abstract":false,"location":{"filename":"src/placeos/api/models/driver.cr","line_number":30,"url":null},"def":{"name":"module_name","return_type":"String","visibility":"Public","body":"@module_name"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"location":{"filename":"src/placeos/api/models/driver.cr","line_number":10,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"repository_id:String-instance-method","name":"repository_id","abstract":false,"location":{"filename":"src/placeos/api/models/driver.cr","line_number":27,"url":null},"def":{"name":"repository_id","return_type":"String","visibility":"Public","body":"@repository_id"}},{"html_id":"role:Role-instance-method","name":"role","abstract":false,"location":{"filename":"src/placeos/api/models/driver.cr","line_number":18,"url":null},"def":{"name":"role","return_type":"Role","visibility":"Public","body":"Role.from_value(@role)"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Function","path":"PlaceOS/Client/API/Models/Function.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Function","name":"Function","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/function.cr","line_number":5,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"doc":"Invocation information for interaction with an exposed driver behaviour.","summary":"Invocation information for interaction with an exposed driver behaviour.
","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Invocation information for interaction with an exposed driver behaviour.","summary":"Invocation information for interaction with an exposed driver behaviour.
","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/function.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"arity:Int32-instance-method","name":"arity","doc":"The number of parameters that the function accepts.","summary":"The number of parameters that the function accepts.
","abstract":false,"location":{"filename":"src/placeos/api/models/function.cr","line_number":7,"url":null},"def":{"name":"arity","return_type":"Int32","visibility":"Public","body":"@arity"}},{"html_id":"params:Array(Parameter)-instance-method","name":"params","doc":"Parameter information.","summary":"Parameter information.
","abstract":false,"location":{"filename":"src/placeos/api/models/function.cr","line_number":25,"url":null},"def":{"name":"params","return_type":"Array(Parameter)","visibility":"Public","body":"@params"}}],"types":[{"html_id":"placeos/PlaceOS/Client/API/Models/Function/Parameter","path":"PlaceOS/Client/API/Models/Function/Parameter.html","kind":"alias","full_name":"PlaceOS::Client::API::Models::Function::Parameter","name":"Parameter","abstract":false,"locations":[{"filename":"src/placeos/api/models/function.cr","line_number":22,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":true,"aliased":"Tuple(PlaceOS::Client::API::Models::Function::ParameterKind, String)","aliased_html":"{PlaceOS::Client::API::Models::Function::ParameterKind, String}","const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Function","kind":"struct","full_name":"PlaceOS::Client::API::Models::Function","name":"Function"},"doc":"Parameter information as {kind, name}.","summary":"Parameter information as {kind, name}.
"},{"html_id":"placeos/PlaceOS/Client/API/Models/Function/ParameterKind","path":"PlaceOS/Client/API/Models/Function/ParameterKind.html","kind":"enum","full_name":"PlaceOS::Client::API::Models::Function::ParameterKind","name":"ParameterKind","abstract":false,"ancestors":[{"html_id":"placeos/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"placeos/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/function.cr","line_number":10,"url":null}],"repository_name":"placeos","program":false,"enum":true,"alias":false,"const":false,"constants":[{"id":"Req","name":"Req","value":"0","doc":"Required","summary":"Required
"},{"id":"Opt","name":"Opt","value":"1","doc":"Optional","summary":"Optional
"},{"id":"Rest","name":"Rest","value":"2","doc":"A capture all for all trailing arguments.","summary":"A capture all for all trailing arguments.
"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Function","kind":"struct","full_name":"PlaceOS::Client::API::Models::Function","name":"Function"},"doc":"Possible parameter kinds.","summary":"Possible parameter kinds.
","instance_methods":[{"html_id":"opt?-instance-method","name":"opt?","abstract":false,"location":{"filename":"src/placeos/api/models/function.cr","line_number":15,"url":null},"def":{"name":"opt?","visibility":"Public","body":"self == Opt"}},{"html_id":"req?-instance-method","name":"req?","abstract":false,"location":{"filename":"src/placeos/api/models/function.cr","line_number":12,"url":null},"def":{"name":"req?","visibility":"Public","body":"self == Req"}},{"html_id":"rest?-instance-method","name":"rest?","abstract":false,"location":{"filename":"src/placeos/api/models/function.cr","line_number":18,"url":null},"def":{"name":"rest?","visibility":"Public","body":"self == Rest"}}]}]},{"html_id":"placeos/PlaceOS/Client/API/Models/LdapAuthentication","path":"PlaceOS/Client/API/Models/LdapAuthentication.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::LdapAuthentication","name":"LdapAuthentication","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/auths/ldap.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/auths/ldap.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"auth_method:String-instance-method","name":"auth_method","doc":"Options are: plain, ssl, tls","summary":"Options are: plain, ssl, tls
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/ldap.cr","line_number":13,"url":null},"def":{"name":"auth_method","return_type":"String","visibility":"Public","body":"@auth_method"}},{"html_id":"authority_id:String-instance-method","name":"authority_id","abstract":false,"location":{"filename":"src/placeos/api/models/auths/ldap.cr","line_number":9,"url":null},"def":{"name":"authority_id","return_type":"String","visibility":"Public","body":"@authority_id"}},{"html_id":"base:String-instance-method","name":"base","doc":"BaseDN such as dc=intridea, dc=com","summary":"BaseDN such as dc=intridea, dc=com
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/ldap.cr","line_number":18,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"bind_dn:String-instance-method","name":"bind_dn","doc":":bind_dn and :password is the default credentials to perform user lookup","summary":":bind_dn and :password is the default credentials to perform user lookup
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/ldap.cr","line_number":21,"url":null},"def":{"name":"bind_dn","return_type":"String","visibility":"Public","body":"@bind_dn"}},{"html_id":"filter:String-instance-method","name":"filter","doc":"LDAP filter like: (&(uid=%{username})(memberOf=cn=myapp-users,ou=groups,dc=example,dc=com))\nCan be used instead of UID","summary":"LDAP filter like: (&(uid=%{username})(memberOf=cn=myapp-users,ou=groups,dc=example,dc=com)) Can be used instead of UID
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/ldap.cr","line_number":26,"url":null},"def":{"name":"filter","return_type":"String","visibility":"Public","body":"@filter"}},{"html_id":"host:String-instance-method","name":"host","abstract":false,"location":{"filename":"src/placeos/api/models/auths/ldap.cr","line_number":15,"url":null},"def":{"name":"host","return_type":"String","visibility":"Public","body":"@host"}},{"html_id":"id:String-instance-method","name":"id","abstract":false,"location":{"filename":"src/placeos/api/models/auths/ldap.cr","line_number":7,"url":null},"def":{"name":"id","return_type":"String","visibility":"Public","body":"@id"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"location":{"filename":"src/placeos/api/models/auths/ldap.cr","line_number":8,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"password:String-instance-method","name":"password","abstract":false,"location":{"filename":"src/placeos/api/models/auths/ldap.cr","line_number":22,"url":null},"def":{"name":"password","return_type":"String","visibility":"Public","body":"@password"}},{"html_id":"port:Int32-instance-method","name":"port","abstract":false,"location":{"filename":"src/placeos/api/models/auths/ldap.cr","line_number":10,"url":null},"def":{"name":"port","return_type":"Int32","visibility":"Public","body":"@port"}},{"html_id":"uid:String-instance-method","name":"uid","abstract":false,"location":{"filename":"src/placeos/api/models/auths/ldap.cr","line_number":14,"url":null},"def":{"name":"uid","return_type":"String","visibility":"Public","body":"@uid"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Metadata","path":"PlaceOS/Client/API/Models/Metadata.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Metadata","name":"Metadata","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/metadata.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/metadata.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"description:String-instance-method","name":"description","abstract":false,"location":{"filename":"src/placeos/api/models/metadata.cr","line_number":6,"url":null},"def":{"name":"description","return_type":"String","visibility":"Public","body":"@description"}},{"html_id":"details:JSON::Any-instance-method","name":"details","abstract":false,"location":{"filename":"src/placeos/api/models/metadata.cr","line_number":7,"url":null},"def":{"name":"details","return_type":"JSON::Any","visibility":"Public","body":"@details"}},{"html_id":"editors:Array(String)|Nil-instance-method","name":"editors","abstract":false,"location":{"filename":"src/placeos/api/models/metadata.cr","line_number":10,"url":null},"def":{"name":"editors","return_type":"Array(String) | ::Nil","visibility":"Public","body":"@editors"}},{"html_id":"modified_by_id:String|Nil-instance-method","name":"modified_by_id","abstract":false,"location":{"filename":"src/placeos/api/models/metadata.cr","line_number":11,"url":null},"def":{"name":"modified_by_id","return_type":"String | ::Nil","visibility":"Public","body":"@modified_by_id"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"location":{"filename":"src/placeos/api/models/metadata.cr","line_number":5,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"parent_id:String-instance-method","name":"parent_id","abstract":false,"location":{"filename":"src/placeos/api/models/metadata.cr","line_number":8,"url":null},"def":{"name":"parent_id","return_type":"String","visibility":"Public","body":"@parent_id"}},{"html_id":"schema_id:String|Nil-instance-method","name":"schema_id","abstract":false,"location":{"filename":"src/placeos/api/models/metadata.cr","line_number":9,"url":null},"def":{"name":"schema_id","return_type":"String | ::Nil","visibility":"Public","body":"@schema_id"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Module","path":"PlaceOS/Client/API/Models/Module.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Module","name":"Module","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/module.cr","line_number":5,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/module.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"connected:Bool-instance-method","name":"connected","doc":"Flag for connectivity state.","summary":"Flag for connectivity state.
","abstract":false,"location":{"filename":"src/placeos/api/models/module.cr","line_number":48,"url":null},"def":{"name":"connected","return_type":"Bool","visibility":"Public","body":"@connected"}},{"html_id":"control_sytem_id:String|Nil-instance-method","name":"control_sytem_id","doc":"The system this module is bound to (logic modules only).","summary":"The system this module is bound to (logic modules only).
","abstract":false,"location":{"filename":"src/placeos/api/models/module.cr","line_number":15,"url":null},"def":{"name":"control_sytem_id","return_type":"String | ::Nil","visibility":"Public","body":"@control_sytem_id"}},{"html_id":"custom_name:String|Nil-instance-method","name":"custom_name","doc":"The modules class name (Display, Lighting etc) if it should differ from the\ndefault defined in the driver.","summary":"The modules class name (Display, Lighting etc) if it should differ from the default defined in the driver.
","abstract":false,"location":{"filename":"src/placeos/api/models/module.cr","line_number":38,"url":null},"def":{"name":"custom_name","return_type":"String | ::Nil","visibility":"Public","body":"@custom_name"}},{"html_id":"driver_id:String-instance-method","name":"driver_id","doc":"The driver that defines this module.","summary":"The driver that defines this module.
","abstract":false,"location":{"filename":"src/placeos/api/models/module.cr","line_number":12,"url":null},"def":{"name":"driver_id","return_type":"String","visibility":"Public","body":"@driver_id"}},{"html_id":"id:String-instance-method","name":"id","doc":"A universally unique identifier for the module.","summary":"A universally unique identifier for the module.
","abstract":false,"location":{"filename":"src/placeos/api/models/module.cr","line_number":9,"url":null},"def":{"name":"id","return_type":"String","visibility":"Public","body":"@id"}},{"html_id":"ignore_connected:Bool-instance-method","name":"ignore_connected","doc":"If enabled, system metrics ignore connectivity state.","summary":"If enabled, system metrics ignore connectivity state.
","abstract":false,"location":{"filename":"src/placeos/api/models/module.cr","line_number":54,"url":null},"def":{"name":"ignore_connected","return_type":"Bool","visibility":"Public","body":"@ignore_connected"}},{"html_id":"ignore_startstop:Bool-instance-method","name":"ignore_startstop","doc":"If enabled, system level start and stop actions are ignored. This is\nrecommended for modules shared by many systems (e.g. a lighting gateway).","summary":"If enabled, system level start and stop actions are ignored.
","abstract":false,"location":{"filename":"src/placeos/api/models/module.cr","line_number":58,"url":null},"def":{"name":"ignore_startstop","return_type":"Bool","visibility":"Public","body":"@ignore_startstop"}},{"html_id":"ip:String|Nil-instance-method","name":"ip","doc":"IP address or resolvable hostname of the device this module connects to.","summary":"IP address or resolvable hostname of the device this module connects to.
","abstract":false,"location":{"filename":"src/placeos/api/models/module.cr","line_number":18,"url":null},"def":{"name":"ip","return_type":"String | ::Nil","visibility":"Public","body":"@ip"}},{"html_id":"makebreak:Bool-instance-method","name":"makebreak","doc":"If enabled, provides an ephemeral connection that disconnects during idle\nperiods.","summary":"If enabled, provides an ephemeral connection that disconnects during idle periods.
","abstract":false,"location":{"filename":"src/placeos/api/models/module.cr","line_number":31,"url":null},"def":{"name":"makebreak","return_type":"Bool","visibility":"Public","body":"@makebreak"}},{"html_id":"name:String-instance-method","name":"name","doc":"Driver's default name for the module","summary":"Driver's default name for the module
","abstract":false,"location":{"filename":"src/placeos/api/models/module.cr","line_number":41,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"port:Int32|Nil-instance-method","name":"port","doc":"The TCP or UDP port that the associated device communicates on.","summary":"The TCP or UDP port that the associated device communicates on.
","abstract":false,"location":{"filename":"src/placeos/api/models/module.cr","line_number":27,"url":null},"def":{"name":"port","return_type":"Int32 | ::Nil","visibility":"Public","body":"@port"}},{"html_id":"role:Role-instance-method","name":"role","doc":"The associated driver type.","summary":"The associated driver type.
","abstract":false,"location":{"filename":"src/placeos/api/models/module.cr","line_number":45,"url":null},"def":{"name":"role","return_type":"Role","visibility":"Public","body":"@role"}},{"html_id":"running:Bool-instance-method","name":"running","doc":"Module start/stop state.","summary":"Module start/stop state.
","abstract":false,"location":{"filename":"src/placeos/api/models/module.cr","line_number":51,"url":null},"def":{"name":"running","return_type":"Bool","visibility":"Public","body":"@running"}},{"html_id":"tls:Bool|Nil-instance-method","name":"tls","doc":"True if the device communicates securely.","summary":"True if the device communicates securely.
","abstract":false,"location":{"filename":"src/placeos/api/models/module.cr","line_number":21,"url":null},"def":{"name":"tls","return_type":"Bool | ::Nil","visibility":"Public","body":"@tls"}},{"html_id":"udp:Bool|Nil-instance-method","name":"udp","doc":"Protocol uses UDP rather that TCP.","summary":"Protocol uses UDP rather that TCP.
","abstract":false,"location":{"filename":"src/placeos/api/models/module.cr","line_number":24,"url":null},"def":{"name":"udp","return_type":"Bool | ::Nil","visibility":"Public","body":"@udp"}},{"html_id":"uri:URI|Nil-instance-method","name":"uri","doc":"The based URI of the remote service (service modules only).","summary":"The based URI of the remote service (service modules only).
","abstract":false,"location":{"filename":"src/placeos/api/models/module.cr","line_number":34,"url":null},"def":{"name":"uri","return_type":"URI | ::Nil","visibility":"Public","body":"@uri"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/OAuthApplication","path":"PlaceOS/Client/API/Models/OAuthApplication.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::OAuthApplication","name":"OAuthApplication","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/oauth_application.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/oauth_application.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"confidential:Bool-instance-method","name":"confidential","abstract":false,"location":{"filename":"src/placeos/api/models/oauth_application.cr","line_number":14,"url":null},"def":{"name":"confidential","return_type":"Bool","visibility":"Public","body":"@confidential"}},{"html_id":"id:String-instance-method","name":"id","abstract":false,"location":{"filename":"src/placeos/api/models/oauth_application.cr","line_number":6,"url":null},"def":{"name":"id","return_type":"String","visibility":"Public","body":"@id"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"location":{"filename":"src/placeos/api/models/oauth_application.cr","line_number":7,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"owner_id:String-instance-method","name":"owner_id","abstract":false,"location":{"filename":"src/placeos/api/models/oauth_application.cr","line_number":11,"url":null},"def":{"name":"owner_id","return_type":"String","visibility":"Public","body":"@owner_id"}},{"html_id":"redirect_uri:String-instance-method","name":"redirect_uri","abstract":false,"location":{"filename":"src/placeos/api/models/oauth_application.cr","line_number":12,"url":null},"def":{"name":"redirect_uri","return_type":"String","visibility":"Public","body":"@redirect_uri"}},{"html_id":"revoked_at:Time-instance-method","name":"revoked_at","abstract":false,"location":{"filename":"src/placeos/api/models/oauth_application.cr","line_number":16,"url":null},"def":{"name":"revoked_at","return_type":"Time","visibility":"Public","body":"@revoked_at"}},{"html_id":"scopes:String-instance-method","name":"scopes","abstract":false,"location":{"filename":"src/placeos/api/models/oauth_application.cr","line_number":10,"url":null},"def":{"name":"scopes","return_type":"String","visibility":"Public","body":"@scopes"}},{"html_id":"secret:String-instance-method","name":"secret","abstract":false,"location":{"filename":"src/placeos/api/models/oauth_application.cr","line_number":9,"url":null},"def":{"name":"secret","return_type":"String","visibility":"Public","body":"@secret"}},{"html_id":"skip_authorization:Bool-instance-method","name":"skip_authorization","abstract":false,"location":{"filename":"src/placeos/api/models/oauth_application.cr","line_number":13,"url":null},"def":{"name":"skip_authorization","return_type":"Bool","visibility":"Public","body":"@skip_authorization"}},{"html_id":"uid:String-instance-method","name":"uid","abstract":false,"location":{"filename":"src/placeos/api/models/oauth_application.cr","line_number":8,"url":null},"def":{"name":"uid","return_type":"String","visibility":"Public","body":"@uid"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/OAuthAuthentication","path":"PlaceOS/Client/API/Models/OAuthAuthentication.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::OAuthAuthentication","name":"OAuthAuthentication","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/auths/oauth.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/auths/oauth.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"auth_scheme:String-instance-method","name":"auth_scheme","doc":"If not set it defaults to \"request_body\", others include \"basic_auth\"","summary":"If not set it defaults to "request_body", others include "basic_auth"
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/oauth.cr","line_number":29,"url":null},"def":{"name":"auth_scheme","return_type":"String","visibility":"Public","body":"@auth_scheme"}},{"html_id":"authority_id:String-instance-method","name":"authority_id","abstract":false,"location":{"filename":"src/placeos/api/models/auths/oauth.cr","line_number":9,"url":null},"def":{"name":"authority_id","return_type":"String","visibility":"Public","body":"@authority_id"}},{"html_id":"authorize_url:String-instance-method","name":"authorize_url","doc":"The SSO providers URL for authorization, defaults to: `oauth/authorize`\nGoogle is `/o/oauth2/auth`","summary":"The SSO providers URL for authorization, defaults to: oauth/authorize
Google is /o/oauth2/auth
The client ID and secret configured for this application
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/oauth.cr","line_number":12,"url":null},"def":{"name":"client_id","return_type":"String","visibility":"Public","body":"@client_id"}},{"html_id":"client_secret:String-instance-method","name":"client_secret","abstract":false,"location":{"filename":"src/placeos/api/models/auths/oauth.cr","line_number":13,"url":null},"def":{"name":"client_secret","return_type":"String","visibility":"Public","body":"@client_secret"}},{"html_id":"id:String-instance-method","name":"id","abstract":false,"location":{"filename":"src/placeos/api/models/auths/oauth.cr","line_number":7,"url":null},"def":{"name":"id","return_type":"String","visibility":"Public","body":"@id"}},{"html_id":"info_mappings:Hash(String,String)-instance-method","name":"info_mappings","doc":"Maps an expected key to a provided key i.e. {used_in_engine => used_by_remote}","summary":"Maps an expected key to a provided key i.e.
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/oauth.cr","line_number":16,"url":null},"def":{"name":"info_mappings","return_type":"Hash(String, String)","visibility":"Public","body":"@info_mappings"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"location":{"filename":"src/placeos/api/models/auths/oauth.cr","line_number":8,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"raw_info_url:String-instance-method","name":"raw_info_url","doc":"URL to call with a valid token to obtain the users profile data (name, email etc)","summary":"URL to call with a valid token to obtain the users profile data (name, email etc)
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/oauth.cr","line_number":39,"url":null},"def":{"name":"raw_info_url","return_type":"String","visibility":"Public","body":"@raw_info_url"}},{"html_id":"scope:String-instance-method","name":"scope","doc":"Space seperated scope strings\ni.e. `https://www.googleapis.com/auth/devstorage.readonly https://www.googleapis.com/auth/prediction`","summary":"Space seperated scope strings i.e.
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/oauth.cr","line_number":36,"url":null},"def":{"name":"scope","return_type":"String","visibility":"Public","body":"@scope"}},{"html_id":"site:String-instance-method","name":"site","doc":"The HTTP URL of the SSO provider","summary":"The HTTP URL of the SSO provider
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/oauth.cr","line_number":19,"url":null},"def":{"name":"site","return_type":"String","visibility":"Public","body":"@site"}},{"html_id":"token_method:String-instance-method","name":"token_method","doc":"If not set it defaults to \"post\"","summary":"If not set it defaults to "post"
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/oauth.cr","line_number":26,"url":null},"def":{"name":"token_method","return_type":"String","visibility":"Public","body":"@token_method"}},{"html_id":"token_url:String-instance-method","name":"token_url","doc":"defaults to: `oauth/token` however google is: `/o/oauth2/token`","summary":"defaults to: oauth/token
however google is: /o/oauth2/token
The URL at which the SAML assertion should be received (SSO Service => Engine URL)
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/saml.cr","line_number":25,"url":null},"def":{"name":"assertion_consumer_service_url","return_type":"String","visibility":"Public","body":"@assertion_consumer_service_url"}},{"html_id":"authority_id:String-instance-method","name":"authority_id","abstract":false,"location":{"filename":"src/placeos/api/models/auths/saml.cr","line_number":9,"url":null},"def":{"name":"authority_id","return_type":"String","visibility":"Public","body":"@authority_id"}},{"html_id":"getter_service_name:String-instance-method","name":"getter_service_name","doc":"Name for the getter service (Defaults to Required getters)","summary":"Name for the getter service (Defaults to Required getters)
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/saml.cr","line_number":37,"url":null},"def":{"name":"getter_service_name","return_type":"String","visibility":"Public","body":"@getter_service_name"}},{"html_id":"getter_statements:Hash(String,Array(String))-instance-method","name":"getter_statements","doc":"Used to map getter Names in a SAMLResponse to entries in the OmniAuth info hash","summary":"Used to map getter Names in a SAMLResponse to entries in the OmniAuth info hash
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/saml.cr","line_number":40,"url":null},"def":{"name":"getter_statements","return_type":"Hash(String, Array(String))","visibility":"Public","body":"@getter_statements"}},{"html_id":"id:String-instance-method","name":"id","abstract":false,"location":{"filename":"src/placeos/api/models/auths/saml.cr","line_number":7,"url":null},"def":{"name":"id","return_type":"String","visibility":"Public","body":"@id"}},{"html_id":"idp_cert:String-instance-method","name":"idp_cert","doc":"The identity provider's certificate in PEM format (this or fingerprint is required)","summary":"The identity provider's certificate in PEM format (this or fingerprint is required)
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/saml.cr","line_number":31,"url":null},"def":{"name":"idp_cert","return_type":"String","visibility":"Public","body":"@idp_cert"}},{"html_id":"idp_cert_fingerprint:String-instance-method","name":"idp_cert_fingerprint","doc":"The SHA1 fingerprint of the certificate","summary":"The SHA1 fingerprint of the certificate
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/saml.cr","line_number":34,"url":null},"def":{"name":"idp_cert_fingerprint","return_type":"String","visibility":"Public","body":"@idp_cert_fingerprint"}},{"html_id":"idp_slo_target_url:String-instance-method","name":"idp_slo_target_url","doc":"The URL to which the single logout request and response should be sent","summary":"The URL to which the single logout request and response should be sent
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/saml.cr","line_number":46,"url":null},"def":{"name":"idp_slo_target_url","return_type":"String","visibility":"Public","body":"@idp_slo_target_url"}},{"html_id":"idp_sso_target_url:String-instance-method","name":"idp_sso_target_url","doc":"The URL to which the authentication request should be sent (Engine => SSO Service)","summary":"The URL to which the authentication request should be sent (Engine => SSO Service)
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/saml.cr","line_number":28,"url":null},"def":{"name":"idp_sso_target_url","return_type":"String","visibility":"Public","body":"@idp_sso_target_url"}},{"html_id":"idp_sso_target_url_runtime_params:Hash(String,String)-instance-method","name":"idp_sso_target_url_runtime_params","doc":"mapping of request params that exist during the request phase of OmniAuth that should to be sent to the IdP","summary":"mapping of request params that exist during the request phase of OmniAuth that should to be sent to the IdP
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/saml.cr","line_number":15,"url":null},"def":{"name":"idp_sso_target_url_runtime_params","return_type":"Hash(String, String)","visibility":"Public","body":"@idp_sso_target_url_runtime_params"}},{"html_id":"issuer:String-instance-method","name":"issuer","doc":"The name of your application","summary":"The name of your application
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/saml.cr","line_number":12,"url":null},"def":{"name":"issuer","return_type":"String","visibility":"Public","body":"@issuer"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"location":{"filename":"src/placeos/api/models/auths/saml.cr","line_number":8,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"name_identifier_format:String-instance-method","name":"name_identifier_format","doc":"Describes the format of the username required by this application","summary":"Describes the format of the username required by this application
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/saml.cr","line_number":18,"url":null},"def":{"name":"name_identifier_format","return_type":"String","visibility":"Public","body":"@name_identifier_format"}},{"html_id":"request_getters:Array(NamedTuple(name:String,name_format:String,friendly_name:String))-instance-method","name":"request_getters","doc":"Used to map getter Names in a SAMLResponse to entries in the OmniAuth info hash","summary":"Used to map getter Names in a SAMLResponse to entries in the OmniAuth info hash
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/saml.cr","line_number":43,"url":null},"def":{"name":"request_getters","return_type":"Array(NamedTuple(name: String, name_format: String, friendly_name: String))","visibility":"Public","body":"@request_getters"}},{"html_id":"slo_default_relay_state:String-instance-method","name":"slo_default_relay_state","doc":"The value to use as default RelayState for single log outs","summary":"The value to use as default RelayState for single log outs
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/saml.cr","line_number":49,"url":null},"def":{"name":"slo_default_relay_state","return_type":"String","visibility":"Public","body":"@slo_default_relay_state"}},{"html_id":"uid_getter:String-instance-method","name":"uid_getter","doc":"getter that uniquely identifies the user\n(If unset, the name identifier returned by the IdP is used.)","summary":"getter that uniquely identifies the user (If unset, the name identifier returned by the IdP is used.)
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/saml.cr","line_number":22,"url":null},"def":{"name":"uid_getter","return_type":"String","visibility":"Public","body":"@uid_getter"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Settings","path":"PlaceOS/Client/API/Models/Settings.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Settings","name":"Settings","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/settings.cr","line_number":6,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/settings.cr","line_number":6,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"encryption_level:Encryption::Level-instance-method","name":"encryption_level","abstract":false,"location":{"filename":"src/placeos/api/models/settings.cr","line_number":9,"url":null},"def":{"name":"encryption_level","return_type":"Encryption::Level","visibility":"Public","body":"@encryption_level"}},{"html_id":"id:String-instance-method","name":"id","abstract":false,"location":{"filename":"src/placeos/api/models/settings.cr","line_number":7,"url":null},"def":{"name":"id","return_type":"String","visibility":"Public","body":"@id"}},{"html_id":"keys:Array(String)-instance-method","name":"keys","abstract":false,"location":{"filename":"src/placeos/api/models/settings.cr","line_number":11,"url":null},"def":{"name":"keys","return_type":"Array(String)","visibility":"Public","body":"@keys"}},{"html_id":"parent_id:String-instance-method","name":"parent_id","abstract":false,"location":{"filename":"src/placeos/api/models/settings.cr","line_number":12,"url":null},"def":{"name":"parent_id","return_type":"String","visibility":"Public","body":"@parent_id"}},{"html_id":"parent_type:String-instance-method","name":"parent_type","abstract":false,"location":{"filename":"src/placeos/api/models/settings.cr","line_number":13,"url":null},"def":{"name":"parent_type","return_type":"String","visibility":"Public","body":"@parent_type"}},{"html_id":"settings_string:String-instance-method","name":"settings_string","abstract":false,"location":{"filename":"src/placeos/api/models/settings.cr","line_number":10,"url":null},"def":{"name":"settings_string","return_type":"String","visibility":"Public","body":"@settings_string"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/System","path":"PlaceOS/Client/API/Models/System.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::System","name":"System","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/system.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/system.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"bookable:Bool-instance-method","name":"bookable","doc":"Flag for signifying the space as reservable.","summary":"Flag for signifying the space as reservable.
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":50,"url":null},"def":{"name":"bookable","return_type":"Bool","visibility":"Public","body":"@bookable"}},{"html_id":"capacity:Int32-instance-method","name":"capacity","doc":"Number of people that can be accommodated in this space.","summary":"Number of people that can be accommodated in this space.
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":44,"url":null},"def":{"name":"capacity","return_type":"Int32","visibility":"Public","body":"@capacity"}},{"html_id":"code:String|Nil-instance-method","name":"code","doc":"the room identification code, like 3-04 etc.","summary":"the room identification code, like 3-04 etc.
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":32,"url":null},"def":{"name":"code","return_type":"String | ::Nil","visibility":"Public","body":"@code"}},{"html_id":"description:String|Nil-instance-method","name":"description","doc":"Markdown formatted text that describes the system.","summary":"Markdown formatted text that describes the system.
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":20,"url":null},"def":{"name":"description","return_type":"String | ::Nil","visibility":"Public","body":"@description"}},{"html_id":"display_name:String|Nil-instance-method","name":"display_name","doc":"an alternative to the full name that is easier to read.","summary":"an alternative to the full name that is easier to read.
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":26,"url":null},"def":{"name":"display_name","return_type":"String | ::Nil","visibility":"Public","body":"@display_name"}},{"html_id":"email:String|Nil-instance-method","name":"email","doc":"Calendar URI that is associated with this system.","summary":"Calendar URI that is associated with this system.
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":23,"url":null},"def":{"name":"email","return_type":"String | ::Nil","visibility":"Public","body":"@email"}},{"html_id":"features:Set(String)-instance-method","name":"features","doc":"List of features in the room for searching and filtering spaces.","summary":"List of features in the room for searching and filtering spaces.
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":47,"url":null},"def":{"name":"features","return_type":"Set(String)","visibility":"Public","body":"@features"}},{"html_id":"id:String-instance-method","name":"id","doc":"A universally unique identifier for the system.","summary":"A universally unique identifier for the system.
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":8,"url":null},"def":{"name":"id","return_type":"String","visibility":"Public","body":"@id"}},{"html_id":"images:Array(String)|Nil-instance-method","name":"images","doc":"images of this room","summary":"images of this room
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":41,"url":null},"def":{"name":"images","return_type":"Array(String) | ::Nil","visibility":"Public","body":"@images"}},{"html_id":"installed_ui_devices:Int32-instance-method","name":"installed_ui_devices","doc":"Expected number of fixed installation touch panels.","summary":"Expected number of fixed installation touch panels.
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":56,"url":null},"def":{"name":"installed_ui_devices","return_type":"Int32","visibility":"Public","body":"@installed_ui_devices"}},{"html_id":"map_id:String|Nil-instance-method","name":"map_id","doc":"a map identifier that can be used to locate this system.","summary":"a map identifier that can be used to locate this system.
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":38,"url":null},"def":{"name":"map_id","return_type":"String | ::Nil","visibility":"Public","body":"@map_id"}},{"html_id":"modules:Array(String)-instance-method","name":"modules","doc":"Module ID's that this system contains.","summary":"Module ID's that this system contains.
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":17,"url":null},"def":{"name":"modules","return_type":"Array(String)","visibility":"Public","body":"@modules"}},{"html_id":"name:String-instance-method","name":"name","doc":"A human readable identifier.","summary":"A human readable identifier.
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":11,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"public:Bool|Nil-instance-method","name":"public","doc":"is the system intended for public access?","summary":"is the system intended for public access?
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":53,"url":null},"def":{"name":"public","return_type":"Bool | ::Nil","visibility":"Public","body":"@public"}},{"html_id":"support_url:String|Nil-instance-method","name":"support_url","doc":"A URL linking to the primary interface for controlling this system.","summary":"A URL linking to the primary interface for controlling this system.
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":59,"url":null},"def":{"name":"support_url","return_type":"String | ::Nil","visibility":"Public","body":"@support_url"}},{"html_id":"timezone:String|Nil-instance-method","name":"timezone","doc":"timezone the system is located","summary":"timezone the system is located
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":29,"url":null},"def":{"name":"timezone","return_type":"String | ::Nil","visibility":"Public","body":"@timezone"}},{"html_id":"type:String|Nil-instance-method","name":"type","doc":"the system type, like a small meeting room etc.","summary":"the system type, like a small meeting room etc.
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":35,"url":null},"def":{"name":"type","return_type":"String | ::Nil","visibility":"Public","body":"@type"}},{"html_id":"version:Int32-instance-method","name":"version","doc":"Incrementing counter for handling stale updates.","summary":"Incrementing counter for handling stale updates.
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":62,"url":null},"def":{"name":"version","return_type":"Int32","visibility":"Public","body":"@version"}},{"html_id":"zones:Array(String)-instance-method","name":"zones","doc":"Zone IDs that this system is a member of.","summary":"Zone IDs that this system is a member of.
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":14,"url":null},"def":{"name":"zones","return_type":"Array(String)","visibility":"Public","body":"@zones"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","path":"PlaceOS/Client/API/Models/Timestamps.html","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps","abstract":false,"locations":[{"filename":"src/placeos/api/models/response.cr","line_number":29,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"including_types":[{"html_id":"placeos/PlaceOS/Client/API/Models/APIKey","kind":"struct","full_name":"PlaceOS::Client::API::Models::APIKey","name":"APIKey"},{"html_id":"placeos/PlaceOS/Client/API/Models/Driver","kind":"struct","full_name":"PlaceOS::Client::API::Models::Driver","name":"Driver"},{"html_id":"placeos/PlaceOS/Client/API/Models/LdapAuthentication","kind":"struct","full_name":"PlaceOS::Client::API::Models::LdapAuthentication","name":"LdapAuthentication"},{"html_id":"placeos/PlaceOS/Client/API/Models/Module","kind":"struct","full_name":"PlaceOS::Client::API::Models::Module","name":"Module"},{"html_id":"placeos/PlaceOS/Client/API/Models/OAuthApplication","kind":"struct","full_name":"PlaceOS::Client::API::Models::OAuthApplication","name":"OAuthApplication"},{"html_id":"placeos/PlaceOS/Client/API/Models/OAuthAuthentication","kind":"struct","full_name":"PlaceOS::Client::API::Models::OAuthAuthentication","name":"OAuthAuthentication"},{"html_id":"placeos/PlaceOS/Client/API/Models/SamlAuthentication","kind":"struct","full_name":"PlaceOS::Client::API::Models::SamlAuthentication","name":"SamlAuthentication"},{"html_id":"placeos/PlaceOS/Client/API/Models/System","kind":"struct","full_name":"PlaceOS::Client::API::Models::System","name":"System"},{"html_id":"placeos/PlaceOS/Client/API/Models/Zone","kind":"struct","full_name":"PlaceOS::Client::API::Models::Zone","name":"Zone"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"instance_methods":[{"html_id":"created_at:Time-instance-method","name":"created_at","doc":"Creation time.","summary":"Creation time.
","abstract":false,"location":{"filename":"src/placeos/api/models/response.cr","line_number":32,"url":null},"def":{"name":"created_at","return_type":"Time","visibility":"Public","body":"@created_at"}},{"html_id":"updated_at:Time-instance-method","name":"updated_at","doc":"Update time.","summary":"Update time.
","abstract":false,"location":{"filename":"src/placeos/api/models/response.cr","line_number":36,"url":null},"def":{"name":"updated_at","return_type":"Time","visibility":"Public","body":"@updated_at"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger","path":"PlaceOS/Client/API/Models/Trigger.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger","name":"Trigger","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/trigger.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/trigger.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"actions:Actions-instance-method","name":"actions","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":9,"url":null},"def":{"name":"actions","return_type":"Actions","visibility":"Public","body":"@actions"}},{"html_id":"conditions:Conditions-instance-method","name":"conditions","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":10,"url":null},"def":{"name":"conditions","return_type":"Conditions","visibility":"Public","body":"@conditions"}},{"html_id":"control_system_id:String-instance-method","name":"control_system_id","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":7,"url":null},"def":{"name":"control_system_id","return_type":"String","visibility":"Public","body":"@control_system_id"}},{"html_id":"debounce_period:Int32-instance-method","name":"debounce_period","doc":"In milliseconds","summary":"In milliseconds
","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":13,"url":null},"def":{"name":"debounce_period","return_type":"Int32","visibility":"Public","body":"@debounce_period"}},{"html_id":"description:String-instance-method","name":"description","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":6,"url":null},"def":{"name":"description","return_type":"String","visibility":"Public","body":"@description"}},{"html_id":"enable_webhook:Bool-instance-method","name":"enable_webhook","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":16,"url":null},"def":{"name":"enable_webhook","return_type":"Bool","visibility":"Public","body":"@enable_webhook"}},{"html_id":"important:Bool-instance-method","name":"important","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":14,"url":null},"def":{"name":"important","return_type":"Bool","visibility":"Public","body":"@important"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":5,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"supported_methods:Array(String)-instance-method","name":"supported_methods","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":17,"url":null},"def":{"name":"supported_methods","return_type":"Array(String)","visibility":"Public","body":"@supported_methods"}}],"types":[{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Actions","path":"PlaceOS/Client/API/Models/Trigger/Actions.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger::Actions","name":"Actions","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/trigger.cr","line_number":19,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger","name":"Trigger"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/trigger.cr","line_number":19,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"functions:Array(Function)-instance-method","name":"functions","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":20,"url":null},"def":{"name":"functions","return_type":"Array(Function)","visibility":"Public","body":"@functions"}},{"html_id":"mailers:Array(Email)-instance-method","name":"mailers","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":21,"url":null},"def":{"name":"mailers","return_type":"Array(Email)","visibility":"Public","body":"@mailers"}}],"types":[{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Actions/Email","path":"PlaceOS/Client/API/Models/Trigger/Actions/Email.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger::Actions::Email","name":"Email","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/trigger.cr","line_number":23,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Actions","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger::Actions","name":"Actions"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/trigger.cr","line_number":23,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"content:String-instance-method","name":"content","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":25,"url":null},"def":{"name":"content","return_type":"String","visibility":"Public","body":"@content"}},{"html_id":"emails:Array(String)-instance-method","name":"emails","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":24,"url":null},"def":{"name":"emails","return_type":"Array(String)","visibility":"Public","body":"@emails"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Actions/Function","path":"PlaceOS/Client/API/Models/Trigger/Actions/Function.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger::Actions::Function","name":"Function","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/trigger.cr","line_number":28,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Actions","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger::Actions","name":"Actions"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/trigger.cr","line_number":28,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"args:Hash(String,JSON::Any)-instance-method","name":"args","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":31,"url":null},"def":{"name":"args","return_type":"Hash(String, JSON::Any)","visibility":"Public","body":"@args"}},{"html_id":"method:String-instance-method","name":"method","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":30,"url":null},"def":{"name":"method","return_type":"String","visibility":"Public","body":"@method"}},{"html_id":"mod:String-instance-method","name":"mod","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":29,"url":null},"def":{"name":"mod","return_type":"String","visibility":"Public","body":"@mod"}}]}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Conditions","path":"PlaceOS/Client/API/Models/Trigger/Conditions.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger::Conditions","name":"Conditions","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/trigger.cr","line_number":35,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger","name":"Trigger"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/trigger.cr","line_number":35,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"comparisons:Array(Comparison)-instance-method","name":"comparisons","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":36,"url":null},"def":{"name":"comparisons","return_type":"Array(Comparison)","visibility":"Public","body":"@comparisons"}},{"html_id":"time_dependents:Array(TimeDependent)-instance-method","name":"time_dependents","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":37,"url":null},"def":{"name":"time_dependents","return_type":"Array(TimeDependent)","visibility":"Public","body":"@time_dependents"}}],"types":[{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Conditions/Comparison","path":"PlaceOS/Client/API/Models/Trigger/Conditions/Comparison.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger::Conditions::Comparison","name":"Comparison","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/trigger.cr","line_number":39,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"constants":[{"id":"OPERATORS","name":"OPERATORS","value":"{\"equal\", \"not_equal\", \"greater_than\", \"greater_than_or_equal\", \"less_than\", \"less_than_or_equal\", \"and\", \"or\", \"exclusive_or\"}"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Conditions","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger::Conditions","name":"Conditions"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/trigger.cr","line_number":39,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"left:Value-instance-method","name":"left","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":40,"url":null},"def":{"name":"left","return_type":"Value","visibility":"Public","body":"@left"}},{"html_id":"operator:String-instance-method","name":"operator","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":41,"url":null},"def":{"name":"operator","return_type":"String","visibility":"Public","body":"@operator"}},{"html_id":"right:Value-instance-method","name":"right","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":42,"url":null},"def":{"name":"right","return_type":"Value","visibility":"Public","body":"@right"}}],"types":[{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Conditions/Comparison/Constant","path":"PlaceOS/Client/API/Models/Trigger/Conditions/Comparison/Constant.html","kind":"alias","full_name":"PlaceOS::Client::API::Models::Trigger::Conditions::Comparison::Constant","name":"Constant","abstract":false,"locations":[{"filename":"src/placeos/api/models/trigger.cr","line_number":47,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":true,"aliased":"(Bool | Float64 | Int64 | String)","aliased_html":"Bool | Float64 | Int64 | String","const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Conditions/Comparison","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger::Conditions::Comparison","name":"Comparison"},"doc":"Constant value","summary":"Constant value
"},{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Conditions/Comparison/StatusVariable","path":"PlaceOS/Client/API/Models/Trigger/Conditions/Comparison/StatusVariable.html","kind":"alias","full_name":"PlaceOS::Client::API::Models::Trigger::Conditions::Comparison::StatusVariable","name":"StatusVariable","abstract":false,"locations":[{"filename":"src/placeos/api/models/trigger.cr","line_number":50,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":true,"aliased":"NamedTuple(mod: String, status: String, keys: Array(String))","aliased_html":"{mod: String, status: String, keys: Array(String)}","const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Conditions/Comparison","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger::Conditions::Comparison","name":"Comparison"},"doc":"Status of a Module","summary":"Status of a Module
"},{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Conditions/Comparison/Value","path":"PlaceOS/Client/API/Models/Trigger/Conditions/Comparison/Value.html","kind":"alias","full_name":"PlaceOS::Client::API::Models::Trigger::Conditions::Comparison::Value","name":"Value","abstract":false,"locations":[{"filename":"src/placeos/api/models/trigger.cr","line_number":44,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":true,"aliased":"(Bool | Float64 | Int64 | NamedTuple(mod: String, status: String, keys: Array(String)) | String)","aliased_html":"Bool | Float64 | Int64 | {mod: String, status: String, keys: Array(String)} | String","const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Conditions/Comparison","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger::Conditions::Comparison","name":"Comparison"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Conditions/TimeDependent","path":"PlaceOS/Client/API/Models/Trigger/Conditions/TimeDependent.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger::Conditions::TimeDependent","name":"TimeDependent","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/trigger.cr","line_number":65,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Conditions","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger::Conditions","name":"Conditions"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/trigger.cr","line_number":65,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"cron:String|Nil-instance-method","name":"cron","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":76,"url":null},"def":{"name":"cron","return_type":"String | ::Nil","visibility":"Public","body":"@cron"}},{"html_id":"time:Time|Nil-instance-method","name":"time","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":74,"url":null},"def":{"name":"time","return_type":"Time | ::Nil","visibility":"Public","body":"@time"}},{"html_id":"type:Type-instance-method","name":"type","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":71,"url":null},"def":{"name":"type","return_type":"Type","visibility":"Public","body":"@type"}}],"types":[{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Conditions/TimeDependent/Type","path":"PlaceOS/Client/API/Models/Trigger/Conditions/TimeDependent/Type.html","kind":"enum","full_name":"PlaceOS::Client::API::Models::Trigger::Conditions::TimeDependent::Type","name":"Type","abstract":false,"ancestors":[{"html_id":"placeos/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"placeos/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/trigger.cr","line_number":66,"url":null}],"repository_name":"placeos","program":false,"enum":true,"alias":false,"const":false,"constants":[{"id":"At","name":"At","value":"0"},{"id":"Cron","name":"Cron","value":"1"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Conditions/TimeDependent","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger::Conditions::TimeDependent","name":"TimeDependent"},"instance_methods":[{"html_id":"at?-instance-method","name":"at?","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":67,"url":null},"def":{"name":"at?","visibility":"Public","body":"self == At"}},{"html_id":"cron?-instance-method","name":"cron?","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":68,"url":null},"def":{"name":"cron?","visibility":"Public","body":"self == Cron"}}]}]}]}]},{"html_id":"placeos/PlaceOS/Client/API/Models/TriggerInstance","path":"PlaceOS/Client/API/Models/TriggerInstance.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::TriggerInstance","name":"TriggerInstance","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/trigger_instance.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/trigger_instance.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"control_system_id:String|Nil-instance-method","name":"control_system_id","abstract":false,"location":{"filename":"src/placeos/api/models/trigger_instance.cr","line_number":5,"url":null},"def":{"name":"control_system_id","return_type":"String | ::Nil","visibility":"Public","body":"@control_system_id"}},{"html_id":"enabled:Bool-instance-method","name":"enabled","abstract":false,"location":{"filename":"src/placeos/api/models/trigger_instance.cr","line_number":9,"url":null},"def":{"name":"enabled","return_type":"Bool","visibility":"Public","body":"@enabled"}},{"html_id":"exec_enabled:Bool-instance-method","name":"exec_enabled","abstract":false,"location":{"filename":"src/placeos/api/models/trigger_instance.cr","line_number":12,"url":null},"def":{"name":"exec_enabled","return_type":"Bool","visibility":"Public","body":"@exec_enabled"}},{"html_id":"important:Bool-instance-method","name":"important","abstract":false,"location":{"filename":"src/placeos/api/models/trigger_instance.cr","line_number":11,"url":null},"def":{"name":"important","return_type":"Bool","visibility":"Public","body":"@important"}},{"html_id":"trigger_count:Int32-instance-method","name":"trigger_count","abstract":false,"location":{"filename":"src/placeos/api/models/trigger_instance.cr","line_number":15,"url":null},"def":{"name":"trigger_count","return_type":"Int32","visibility":"Public","body":"@trigger_count"}},{"html_id":"trigger_id:String|Nil-instance-method","name":"trigger_id","abstract":false,"location":{"filename":"src/placeos/api/models/trigger_instance.cr","line_number":6,"url":null},"def":{"name":"trigger_id","return_type":"String | ::Nil","visibility":"Public","body":"@trigger_id"}},{"html_id":"triggered:Bool-instance-method","name":"triggered","abstract":false,"location":{"filename":"src/placeos/api/models/trigger_instance.cr","line_number":10,"url":null},"def":{"name":"triggered","return_type":"Bool","visibility":"Public","body":"@triggered"}},{"html_id":"webhook_secret:String-instance-method","name":"webhook_secret","abstract":false,"location":{"filename":"src/placeos/api/models/trigger_instance.cr","line_number":14,"url":null},"def":{"name":"webhook_secret","return_type":"String","visibility":"Public","body":"@webhook_secret"}},{"html_id":"zone_id:String|Nil-instance-method","name":"zone_id","abstract":false,"location":{"filename":"src/placeos/api/models/trigger_instance.cr","line_number":7,"url":null},"def":{"name":"zone_id","return_type":"String | ::Nil","visibility":"Public","body":"@zone_id"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/User","path":"PlaceOS/Client/API/Models/User.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::User","name":"User","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/user.cr","line_number":6,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"doc":"Metadata about the current user","summary":"Metadata about the current user
","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Metadata about the current user","summary":"Metadata about the current user
","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/user.cr","line_number":6,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"associated_metadata:Hash(String,Metadata)|Nil-instance-method","name":"associated_metadata","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":39,"url":null},"def":{"name":"associated_metadata","return_type":"Hash(String, Metadata) | ::Nil","visibility":"Public","body":"@associated_metadata"}},{"html_id":"authority_id:String-instance-method","name":"authority_id","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":20,"url":null},"def":{"name":"authority_id","return_type":"String","visibility":"Public","body":"@authority_id"}},{"html_id":"building:String|Nil-instance-method","name":"building","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":18,"url":null},"def":{"name":"building","return_type":"String | ::Nil","visibility":"Public","body":"@building"}},{"html_id":"card_number:String|Nil-instance-method","name":"card_number","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":36,"url":null},"def":{"name":"card_number","return_type":"String | ::Nil","visibility":"Public","body":"@card_number"}},{"html_id":"country:String|Nil-instance-method","name":"country","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":17,"url":null},"def":{"name":"country","return_type":"String | ::Nil","visibility":"Public","body":"@country"}},{"html_id":"created_at:Time-instance-method","name":"created_at","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":8,"url":null},"def":{"name":"created_at","return_type":"Time","visibility":"Public","body":"@created_at"}},{"html_id":"deleted:Bool|Nil-instance-method","name":"deleted","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":21,"url":null},"def":{"name":"deleted","return_type":"Bool | ::Nil","visibility":"Public","body":"@deleted"}},{"html_id":"department:String|Nil-instance-method","name":"department","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":22,"url":null},"def":{"name":"department","return_type":"String | ::Nil","visibility":"Public","body":"@department"}},{"html_id":"email:String-instance-method","name":"email","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":30,"url":null},"def":{"name":"email","return_type":"String","visibility":"Public","body":"@email"}},{"html_id":"email_digest:String-instance-method","name":"email_digest","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":11,"url":null},"def":{"name":"email_digest","return_type":"String","visibility":"Public","body":"@email_digest"}},{"html_id":"first_name:String|Nil-instance-method","name":"first_name","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":14,"url":null},"def":{"name":"first_name","return_type":"String | ::Nil","visibility":"Public","body":"@first_name"}},{"html_id":"groups:Array(String)|Nil-instance-method","name":"groups","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":16,"url":null},"def":{"name":"groups","return_type":"Array(String) | ::Nil","visibility":"Public","body":"@groups"}},{"html_id":"id:String-instance-method","name":"id","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":10,"url":null},"def":{"name":"id","return_type":"String","visibility":"Public","body":"@id"}},{"html_id":"image:String|Nil-instance-method","name":"image","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":19,"url":null},"def":{"name":"image","return_type":"String | ::Nil","visibility":"Public","body":"@image"}},{"html_id":"last_name:String|Nil-instance-method","name":"last_name","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":15,"url":null},"def":{"name":"last_name","return_type":"String | ::Nil","visibility":"Public","body":"@last_name"}},{"html_id":"login_name:String|Nil-instance-method","name":"login_name","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":34,"url":null},"def":{"name":"login_name","return_type":"String | ::Nil","visibility":"Public","body":"@login_name"}},{"html_id":"metadata:String|Nil-instance-method","name":"metadata","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":33,"url":null},"def":{"name":"metadata","return_type":"String | ::Nil","visibility":"Public","body":"@metadata"}},{"html_id":"misc:String|Nil-instance-method","name":"misc","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":37,"url":null},"def":{"name":"misc","return_type":"String | ::Nil","visibility":"Public","body":"@misc"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":13,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"nickname:String|Nil-instance-method","name":"nickname","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":12,"url":null},"def":{"name":"nickname","return_type":"String | ::Nil","visibility":"Public","body":"@nickname"}},{"html_id":"phone:String|Nil-instance-method","name":"phone","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":31,"url":null},"def":{"name":"phone","return_type":"String | ::Nil","visibility":"Public","body":"@phone"}},{"html_id":"preferred_language:String|Nil-instance-method","name":"preferred_language","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":23,"url":null},"def":{"name":"preferred_language","return_type":"String | ::Nil","visibility":"Public","body":"@preferred_language"}},{"html_id":"staff_id:String|Nil-instance-method","name":"staff_id","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":35,"url":null},"def":{"name":"staff_id","return_type":"String | ::Nil","visibility":"Public","body":"@staff_id"}},{"html_id":"support:Bool|Nil-instance-method","name":"support","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":29,"url":null},"def":{"name":"support","return_type":"Bool | ::Nil","visibility":"Public","body":"@support"}},{"html_id":"sys_admin:Bool|Nil-instance-method","name":"sys_admin","doc":"Admin only fields","summary":"Admin only fields
","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":28,"url":null},"def":{"name":"sys_admin","return_type":"Bool | ::Nil","visibility":"Public","body":"@sys_admin"}},{"html_id":"ui_theme:String|Nil-instance-method","name":"ui_theme","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":32,"url":null},"def":{"name":"ui_theme","return_type":"String | ::Nil","visibility":"Public","body":"@ui_theme"}},{"html_id":"work_overrides:Hash(String,PlaceOS::Model::User::WorktimePreference)-instance-method","name":"work_overrides","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":25,"url":null},"def":{"name":"work_overrides","return_type":"Hash(String, PlaceOS::Model::User::WorktimePreference)","visibility":"Public","body":"@work_overrides"}},{"html_id":"work_preferences:Array(PlaceOS::Model::User::WorktimePreference)-instance-method","name":"work_preferences","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":24,"url":null},"def":{"name":"work_preferences","return_type":"Array(PlaceOS::Model::User::WorktimePreference)","visibility":"Public","body":"@work_preferences"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Version","path":"PlaceOS/Client/API/Models/Version.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Version","name":"Version","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/version.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/version.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"app:String-instance-method","name":"app","doc":"The PlaceOS application name","summary":"The PlaceOS application name
","abstract":false,"location":{"filename":"src/placeos/api/models/version.cr","line_number":6,"url":null},"def":{"name":"app","return_type":"String","visibility":"Public","body":"@app"}},{"html_id":"build_time:String-instance-method","name":"build_time","doc":"The build time of the docker container","summary":"The build time of the docker container
","abstract":false,"location":{"filename":"src/placeos/api/models/version.cr","line_number":15,"url":null},"def":{"name":"build_time","return_type":"String","visibility":"Public","body":"@build_time"}},{"html_id":"commit:String-instance-method","name":"commit","doc":"the commit hash for the running build","summary":"the commit hash for the running build
","abstract":false,"location":{"filename":"src/placeos/api/models/version.cr","line_number":12,"url":null},"def":{"name":"commit","return_type":"String","visibility":"Public","body":"@commit"}},{"html_id":"version:String-instance-method","name":"version","doc":"The version in the shard yml","summary":"The version in the shard yml
","abstract":false,"location":{"filename":"src/placeos/api/models/version.cr","line_number":9,"url":null},"def":{"name":"version","return_type":"String","visibility":"Public","body":"@version"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket","path":"PlaceOS/Client/API/Models/Websocket.html","kind":"module","full_name":"PlaceOS::Client::API::Models::Websocket","name":"Websocket","abstract":false,"locations":[{"filename":"src/placeos/api/models/websocket/request.cr","line_number":3,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"types":[{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Request","path":"PlaceOS/Client/API/Models/Websocket/Request.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Websocket::Request","name":"Request","abstract":false,"superclass":{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/websocket/request.cr","line_number":3,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket","kind":"module","full_name":"PlaceOS::Client::API::Models::Websocket","name":"Websocket"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/websocket/request.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"args:Array(JSON::Any::Type)|Nil-instance-method","name":"args","doc":"Associated arguments for the command.","summary":"Associated arguments for the command.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/request.cr","line_number":34,"url":null},"def":{"name":"args","return_type":"Array(::JSON::Any::Type) | ::Nil","visibility":"Public","body":"@args"}},{"html_id":"cmd:Type-instance-method","name":"cmd","doc":"The command type.","summary":"The command type.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/request.cr","line_number":19,"url":null},"def":{"name":"cmd","return_type":"Type","visibility":"Public","body":"@cmd"}},{"html_id":"id:String|Int32|Int64-instance-method","name":"id","doc":"A unique identifier to associate with the command. This will be returned as\npart of the response.","summary":"A unique identifier to associate with the command.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/request.cr","line_number":16,"url":null},"def":{"name":"id","return_type":"String | Int32 | Int64","visibility":"Public","body":"@id"}},{"html_id":"index:Int32|Nil-instance-method","name":"index","doc":"The module index the command targets. Defaults to 1.","summary":"The module index the command targets.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/request.cr","line_number":28,"url":null},"def":{"name":"index","return_type":"Int32 | ::Nil","visibility":"Public","body":"@index"}},{"html_id":"mod:String-instance-method","name":"mod","doc":"The module name the command targets.","summary":"The module name the command targets.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/request.cr","line_number":25,"url":null},"def":{"name":"mod","return_type":"String","visibility":"Public","body":"@mod"}},{"html_id":"name:String-instance-method","name":"name","doc":"Name of the status variable of method being interacted with.","summary":"Name of the status variable of method being interacted with.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/request.cr","line_number":31,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"sys:String-instance-method","name":"sys","doc":"The system identified the command targets.","summary":"The system identified the command targets.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/request.cr","line_number":22,"url":null},"def":{"name":"sys","return_type":"String","visibility":"Public","body":"@sys"}}],"types":[{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Request/Type","path":"PlaceOS/Client/API/Models/Websocket/Request/Type.html","kind":"enum","full_name":"PlaceOS::Client::API::Models::Websocket::Request::Type","name":"Type","abstract":false,"ancestors":[{"html_id":"placeos/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"placeos/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/websocket/request.cr","line_number":6,"url":null}],"repository_name":"placeos","program":false,"enum":true,"alias":false,"const":false,"constants":[{"id":"Bind","name":"Bind","value":"0"},{"id":"Unbind","name":"Unbind","value":"1"},{"id":"Exec","name":"Exec","value":"2"},{"id":"Debug","name":"Debug","value":"3"},{"id":"Ignore","name":"Ignore","value":"4"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Request","kind":"struct","full_name":"PlaceOS::Client::API::Models::Websocket::Request","name":"Request"},"instance_methods":[{"html_id":"bind?-instance-method","name":"bind?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/request.cr","line_number":7,"url":null},"def":{"name":"bind?","visibility":"Public","body":"self == Bind"}},{"html_id":"debug?-instance-method","name":"debug?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/request.cr","line_number":10,"url":null},"def":{"name":"debug?","visibility":"Public","body":"self == Debug"}},{"html_id":"exec?-instance-method","name":"exec?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/request.cr","line_number":9,"url":null},"def":{"name":"exec?","visibility":"Public","body":"self == Exec"}},{"html_id":"ignore?-instance-method","name":"ignore?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/request.cr","line_number":11,"url":null},"def":{"name":"ignore?","visibility":"Public","body":"self == Ignore"}},{"html_id":"unbind?-instance-method","name":"unbind?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/request.cr","line_number":8,"url":null},"def":{"name":"unbind?","visibility":"Public","body":"self == Unbind"}}]}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response","path":"PlaceOS/Client/API/Models/Websocket/Response.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Websocket::Response","name":"Response","abstract":false,"superclass":{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/websocket/response.cr","line_number":3,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket","kind":"module","full_name":"PlaceOS::Client::API::Models::Websocket","name":"Websocket"},"class_methods":[{"html_id":"from_json(input)-class-method","name":"from_json","doc":"Parses a websocket response into a concrete response type.\n\nFIXME: currently this is parsing twice - this is a quick hack to get things\ngoing. When time allows this should be refactored to work as a single pass,\nor provide a more efficient method for identifying the message type.","summary":"Parses a websocket response into a concrete response type.
","abstract":false,"args":[{"name":"input","external_name":"input","restriction":""}],"args_string":"(input)","args_html":"(input)","location":{"filename":"src/placeos/api/models/websocket/response.cr","line_number":30,"url":null},"def":{"name":"from_json","args":[{"name":"input","external_name":"input","restriction":""}],"visibility":"Public","body":"json = JSON.parse(input)\ntype = Type.parse(json[\"type\"].as_s)\ntype.model.from_json(input)\n"}}],"constructors":[{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response.cr","line_number":3,"url":null},"def":{"name":"new","visibility":"Public","body":"x = allocate\nif x.responds_to?(:finalize)\n ::GC.add_finalizer(x)\nend\nx\n"}}],"instance_methods":[{"html_id":"initialize-instance-method","name":"initialize","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response.cr","line_number":3,"url":null},"def":{"name":"initialize","visibility":"Public","body":""}}],"types":[{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response/Debug","path":"PlaceOS/Client/API/Models/Websocket/Response/Debug.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Websocket::Response::Debug","name":"Debug","abstract":false,"superclass":{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/websocket/response/debug.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Websocket::Response","name":"Response"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/websocket/response/debug.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"id:String|Int32|Int64-instance-method","name":"id","doc":"The identifier included with the original request.","summary":"The identifier included with the original request.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/debug.cr","line_number":17,"url":null},"def":{"name":"id","return_type":"String | Int32 | Int64","visibility":"Public","body":"@id"}},{"html_id":"klass:String-instance-method","name":"klass","doc":"Class of the originating message source.","summary":"Class of the originating message source.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/debug.cr","line_number":23,"url":null},"def":{"name":"klass","return_type":"String","visibility":"Public","body":"@klass"}},{"html_id":"level:Level-instance-method","name":"level","doc":"Message verbosity level.","summary":"Message verbosity level.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/debug.cr","line_number":26,"url":null},"def":{"name":"level","return_type":"Level","visibility":"Public","body":"@level"}},{"html_id":"mod:String-instance-method","name":"mod","doc":"ID of the module the event originated from.","summary":"ID of the module the event originated from.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/debug.cr","line_number":20,"url":null},"def":{"name":"mod","return_type":"String","visibility":"Public","body":"@mod"}},{"html_id":"msg:String-instance-method","name":"msg","doc":"Log message.","summary":"Log message.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/debug.cr","line_number":29,"url":null},"def":{"name":"msg","return_type":"String","visibility":"Public","body":"@msg"}}],"types":[{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response/Debug/Level","path":"PlaceOS/Client/API/Models/Websocket/Response/Debug/Level.html","kind":"enum","full_name":"PlaceOS::Client::API::Models::Websocket::Response::Debug::Level","name":"Level","abstract":false,"ancestors":[{"html_id":"placeos/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"placeos/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/websocket/response/debug.cr","line_number":7,"url":null}],"repository_name":"placeos","program":false,"enum":true,"alias":false,"const":false,"constants":[{"id":"Unknown","name":"Unknown","value":"0"},{"id":"Fatal","name":"Fatal","value":"1"},{"id":"Error","name":"Error","value":"2"},{"id":"Warn","name":"Warn","value":"3"},{"id":"Info","name":"Info","value":"4"},{"id":"Debug","name":"Debug","value":"5"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response/Debug","kind":"struct","full_name":"PlaceOS::Client::API::Models::Websocket::Response::Debug","name":"Debug"},"instance_methods":[{"html_id":"debug?-instance-method","name":"debug?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/debug.cr","line_number":13,"url":null},"def":{"name":"debug?","visibility":"Public","body":"self == Debug"}},{"html_id":"error?-instance-method","name":"error?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/debug.cr","line_number":10,"url":null},"def":{"name":"error?","visibility":"Public","body":"self == Error"}},{"html_id":"fatal?-instance-method","name":"fatal?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/debug.cr","line_number":9,"url":null},"def":{"name":"fatal?","visibility":"Public","body":"self == Fatal"}},{"html_id":"info?-instance-method","name":"info?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/debug.cr","line_number":12,"url":null},"def":{"name":"info?","visibility":"Public","body":"self == Info"}},{"html_id":"unknown?-instance-method","name":"unknown?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/debug.cr","line_number":8,"url":null},"def":{"name":"unknown?","visibility":"Public","body":"self == Unknown"}},{"html_id":"warn?-instance-method","name":"warn?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/debug.cr","line_number":11,"url":null},"def":{"name":"warn?","visibility":"Public","body":"self == Warn"}}]}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response/Error","path":"PlaceOS/Client/API/Models/Websocket/Response/Error.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Websocket::Response::Error","name":"Error","abstract":false,"superclass":{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/websocket/response/error.cr","line_number":3,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Websocket::Response","name":"Response"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/websocket/response/error.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"code:Code-instance-method","name":"code","doc":"Error type.","summary":"Error type.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/error.cr","line_number":21,"url":null},"def":{"name":"code","return_type":"Code","visibility":"Public","body":"@code"}},{"html_id":"id:String|Int32|Int64-instance-method","name":"id","doc":"The identifier included with the original request.","summary":"The identifier included with the original request.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/error.cr","line_number":18,"url":null},"def":{"name":"id","return_type":"String | Int32 | Int64","visibility":"Public","body":"@id"}},{"html_id":"msg:String-instance-method","name":"msg","doc":"Additional error info.","summary":"Additional error info.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/error.cr","line_number":24,"url":null},"def":{"name":"msg","return_type":"String","visibility":"Public","body":"@msg"}}],"types":[{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response/Error/Code","path":"PlaceOS/Client/API/Models/Websocket/Response/Error/Code.html","kind":"enum","full_name":"PlaceOS::Client::API::Models::Websocket::Response::Error::Code","name":"Code","abstract":false,"ancestors":[{"html_id":"placeos/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"placeos/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/websocket/response/error.cr","line_number":6,"url":null}],"repository_name":"placeos","program":false,"enum":true,"alias":false,"const":false,"constants":[{"id":"ParseError","name":"ParseError","value":"0"},{"id":"BadRequest","name":"BadRequest","value":"1"},{"id":"AccessDenied","name":"AccessDenied","value":"2"},{"id":"RequestFailed","name":"RequestFailed","value":"3"},{"id":"UnknownCommand","name":"UnknownCommand","value":"4"},{"id":"SystemNotFound","name":"SystemNotFound","value":"5"},{"id":"ModuleNotFound","name":"ModuleNotFound","value":"6"},{"id":"UnexpectedFailure","name":"UnexpectedFailure","value":"7"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response/Error","kind":"struct","full_name":"PlaceOS::Client::API::Models::Websocket::Response::Error","name":"Error"},"instance_methods":[{"html_id":"access_denied?-instance-method","name":"access_denied?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/error.cr","line_number":9,"url":null},"def":{"name":"access_denied?","visibility":"Public","body":"self == AccessDenied"}},{"html_id":"bad_request?-instance-method","name":"bad_request?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/error.cr","line_number":8,"url":null},"def":{"name":"bad_request?","visibility":"Public","body":"self == BadRequest"}},{"html_id":"module_not_found?-instance-method","name":"module_not_found?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/error.cr","line_number":13,"url":null},"def":{"name":"module_not_found?","visibility":"Public","body":"self == ModuleNotFound"}},{"html_id":"parse_error?-instance-method","name":"parse_error?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/error.cr","line_number":7,"url":null},"def":{"name":"parse_error?","visibility":"Public","body":"self == ParseError"}},{"html_id":"request_failed?-instance-method","name":"request_failed?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/error.cr","line_number":10,"url":null},"def":{"name":"request_failed?","visibility":"Public","body":"self == RequestFailed"}},{"html_id":"system_not_found?-instance-method","name":"system_not_found?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/error.cr","line_number":12,"url":null},"def":{"name":"system_not_found?","visibility":"Public","body":"self == SystemNotFound"}},{"html_id":"unexpected_failure?-instance-method","name":"unexpected_failure?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/error.cr","line_number":14,"url":null},"def":{"name":"unexpected_failure?","visibility":"Public","body":"self == UnexpectedFailure"}},{"html_id":"unknown_command?-instance-method","name":"unknown_command?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/error.cr","line_number":11,"url":null},"def":{"name":"unknown_command?","visibility":"Public","body":"self == UnknownCommand"}}]}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response/Meta","path":"PlaceOS/Client/API/Models/Websocket/Response/Meta.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Websocket::Response::Meta","name":"Meta","abstract":false,"superclass":{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/websocket/response/meta.cr","line_number":3,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Websocket::Response","name":"Response"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/websocket/response/meta.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"index:Int32-instance-method","name":"index","doc":"Module index.","summary":"Module index.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/meta.cr","line_number":13,"url":null},"def":{"name":"index","return_type":"Int32","visibility":"Public","body":"@index"}},{"html_id":"mod:String-instance-method","name":"mod","doc":"Module name.","summary":"Module name.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/meta.cr","line_number":10,"url":null},"def":{"name":"mod","return_type":"String","visibility":"Public","body":"@mod"}},{"html_id":"name:String|Nil-instance-method","name":"name","doc":"Name of the method or status key.","summary":"Name of the method or status key.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/meta.cr","line_number":16,"url":null},"def":{"name":"name","return_type":"String | ::Nil","visibility":"Public","body":"@name"}},{"html_id":"sys:String-instance-method","name":"sys","doc":"The system ID.","summary":"The system ID.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/meta.cr","line_number":7,"url":null},"def":{"name":"sys","return_type":"String","visibility":"Public","body":"@sys"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response/Notify","path":"PlaceOS/Client/API/Models/Websocket/Response/Notify.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Websocket::Response::Notify","name":"Notify","abstract":false,"superclass":{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/websocket/response/notify.cr","line_number":5,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Websocket::Response","name":"Response"},"doc":"Asyncronous state update from an active binding.","summary":"Asyncronous state update from an active binding.
","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/websocket/response/notify.cr","line_number":6,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"id:String|Int32|Int64-instance-method","name":"id","doc":"The identifier included with the original request.","summary":"The identifier included with the original request.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/notify.cr","line_number":9,"url":null},"def":{"name":"id","return_type":"String | Int32 | Int64","visibility":"Public","body":"@id"}},{"html_id":"meta:Meta|Nil-instance-method","name":"meta","doc":"Associated metadata.","summary":"Associated metadata.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/notify.cr","line_number":15,"url":null},"def":{"name":"meta","return_type":"Meta | ::Nil","visibility":"Public","body":"@meta"}},{"html_id":"value:JSON::Any-instance-method","name":"value","doc":"New status value","summary":"New status value
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/notify.cr","line_number":12,"url":null},"def":{"name":"value","return_type":"::JSON::Any","visibility":"Public","body":"@value"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response/Success","path":"PlaceOS/Client/API/Models/Websocket/Response/Success.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Websocket::Response::Success","name":"Success","abstract":false,"superclass":{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/websocket/response/success.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Websocket::Response","name":"Response"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/websocket/response/success.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"id:String|Int32|Int64-instance-method","name":"id","doc":"The identifier included with the original request.","summary":"The identifier included with the original request.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/success.cr","line_number":8,"url":null},"def":{"name":"id","return_type":"String | Int32 | Int64","visibility":"Public","body":"@id"}},{"html_id":"meta:Meta|Nil-instance-method","name":"meta","doc":"Associated metadata.","summary":"Associated metadata.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/success.cr","line_number":11,"url":null},"def":{"name":"meta","return_type":"Meta | ::Nil","visibility":"Public","body":"@meta"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response/Type","path":"PlaceOS/Client/API/Models/Websocket/Response/Type.html","kind":"enum","full_name":"PlaceOS::Client::API::Models::Websocket::Response::Type","name":"Type","abstract":false,"ancestors":[{"html_id":"placeos/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"placeos/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/websocket/response.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":true,"alias":false,"const":false,"constants":[{"id":"Success","name":"Success","value":"0"},{"id":"Error","name":"Error","value":"1"},{"id":"Notify","name":"Notify","value":"2"},{"id":"Debug","name":"Debug","value":"3"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Websocket::Response","name":"Response"},"instance_methods":[{"html_id":"debug?-instance-method","name":"debug?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response.cr","line_number":8,"url":null},"def":{"name":"debug?","visibility":"Public","body":"self == Debug"}},{"html_id":"error?-instance-method","name":"error?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response.cr","line_number":6,"url":null},"def":{"name":"error?","visibility":"Public","body":"self == Error"}},{"html_id":"model-instance-method","name":"model","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response.cr","line_number":10,"url":null},"def":{"name":"model","visibility":"Public","body":"{% if true %}\n case self\n {% for type in @type.constants %}\n when {{ type }} then Response::{{ type }}\n {% end %}\n else\n # Will never happen, but required to stop nil for sneaking into the\n # returned type union.\n raise \"\"\n end\n {% end %}"}},{"html_id":"notify?-instance-method","name":"notify?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response.cr","line_number":7,"url":null},"def":{"name":"notify?","visibility":"Public","body":"self == Notify"}},{"html_id":"success?-instance-method","name":"success?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response.cr","line_number":5,"url":null},"def":{"name":"success?","visibility":"Public","body":"self == Success"}}]}]}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Zone","path":"PlaceOS/Client/API/Models/Zone.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Zone","name":"Zone","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/zone.cr","line_number":5,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/zone.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"capacity:Int32-instance-method","name":"capacity","doc":"Could be used as people capacity","summary":"Could be used as people capacity
","abstract":false,"location":{"filename":"src/placeos/api/models/zone.cr","line_number":33,"url":null},"def":{"name":"capacity","return_type":"Int32","visibility":"Public","body":"@capacity"}},{"html_id":"code:String|Nil-instance-method","name":"code","doc":"Could be used as floor code or building code etc","summary":"Could be used as floor code or building code etc
","abstract":false,"location":{"filename":"src/placeos/api/models/zone.cr","line_number":24,"url":null},"def":{"name":"code","return_type":"String | ::Nil","visibility":"Public","body":"@code"}},{"html_id":"count:Int32-instance-method","name":"count","doc":"Could be used as desk count for a level","summary":"Could be used as desk count for a level
","abstract":false,"location":{"filename":"src/placeos/api/models/zone.cr","line_number":30,"url":null},"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"description:String|Nil-instance-method","name":"description","doc":"Markdown formatted text that describes the zone.","summary":"Markdown formatted text that describes the zone.
","abstract":false,"location":{"filename":"src/placeos/api/models/zone.cr","line_number":21,"url":null},"def":{"name":"description","return_type":"String | ::Nil","visibility":"Public","body":"@description"}},{"html_id":"display_name:String|Nil-instance-method","name":"display_name","doc":"A human readable identifier for displaying on interfaces","summary":"A human readable identifier for displaying on interfaces
","abstract":false,"location":{"filename":"src/placeos/api/models/zone.cr","line_number":15,"url":null},"def":{"name":"display_name","return_type":"String | ::Nil","visibility":"Public","body":"@display_name"}},{"html_id":"id:String-instance-method","name":"id","doc":"A universally unique identifier for the zone.","summary":"A universally unique identifier for the zone.
","abstract":false,"location":{"filename":"src/placeos/api/models/zone.cr","line_number":9,"url":null},"def":{"name":"id","return_type":"String","visibility":"Public","body":"@id"}},{"html_id":"location:String|Nil-instance-method","name":"location","doc":"Geo-location string (lat,long) or any other location","summary":"Geo-location string (lat,long) or any other location
","abstract":false,"location":{"filename":"src/placeos/api/models/zone.cr","line_number":18,"url":null},"def":{"name":"location","return_type":"String | ::Nil","visibility":"Public","body":"@location"}},{"html_id":"map_id:String|Nil-instance-method","name":"map_id","doc":"Map identifier, could be a URL or id","summary":"Map identifier, could be a URL or id
","abstract":false,"location":{"filename":"src/placeos/api/models/zone.cr","line_number":36,"url":null},"def":{"name":"map_id","return_type":"String | ::Nil","visibility":"Public","body":"@map_id"}},{"html_id":"name:String-instance-method","name":"name","doc":"A human readable identifier.","summary":"A human readable identifier.
","abstract":false,"location":{"filename":"src/placeos/api/models/zone.cr","line_number":12,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"parent_id:String|Nil-instance-method","name":"parent_id","doc":"Parent id","summary":"Parent id
","abstract":false,"location":{"filename":"src/placeos/api/models/zone.cr","line_number":45,"url":null},"def":{"name":"parent_id","return_type":"String | ::Nil","visibility":"Public","body":"@parent_id"}},{"html_id":"tags:Array(String)-instance-method","name":"tags","doc":"Space seperated list of tags for categorizing the zone.","summary":"Space seperated list of tags for categorizing the zone.
","abstract":false,"location":{"filename":"src/placeos/api/models/zone.cr","line_number":39,"url":null},"def":{"name":"tags","return_type":"Array(String)","visibility":"Public","body":"@tags"}},{"html_id":"timezone:Time::Location|Nil-instance-method","name":"timezone","doc":"Timezone location of the zone","summary":"Timezone location of the zone
","abstract":false,"location":{"filename":"src/placeos/api/models/zone.cr","line_number":52,"url":null},"def":{"name":"timezone","return_type":"Time::Location | ::Nil","visibility":"Public","body":"@timezone"}},{"html_id":"trigger_data:Array(Trigger)|Nil-instance-method","name":"trigger_data","doc":"Trigger data returned when param `complete` is `true`","summary":"Trigger data returned when param complete
is true
List of trigger ID's to be applied to all systems that associate with this zone.
","abstract":false,"location":{"filename":"src/placeos/api/models/zone.cr","line_number":42,"url":null},"def":{"name":"triggers","return_type":"Array(String)","visibility":"Public","body":"@triggers"}},{"html_id":"type:String|Nil-instance-method","name":"type","doc":"Could be used as floor type or building type etc","summary":"Could be used as floor type or building type etc
","abstract":false,"location":{"filename":"src/placeos/api/models/zone.cr","line_number":27,"url":null},"def":{"name":"type","return_type":"String | ::Nil","visibility":"Public","body":"@type"}}]}]}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper","path":"PlaceOS/Client/APIWrapper.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper","abstract":false,"superclass":{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper.cr","line_number":18,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"}],"namespace":{"html_id":"placeos/PlaceOS/Client","kind":"class","full_name":"PlaceOS::Client","name":"Client"},"constructors":[{"html_id":"new(uri:URI|String,host_header:String|Nil=nil,insecure:Bool=false,&authenticate:HTTP::Client->)-class-method","name":"new","abstract":false,"args":[{"name":"uri","external_name":"uri","restriction":"URI | String"},{"name":"host_header","default_value":"nil","external_name":"host_header","restriction":"String | ::Nil"},{"name":"insecure","default_value":"false","external_name":"insecure","restriction":"::Bool"}],"args_string":"(uri : URI | String, host_header : String | Nil = nil, insecure : Bool = false, &authenticate : HTTP::Client -> )","args_html":"(uri : URI | String, host_header : String | Nil = nil, insecure : Bool = false, &authenticate : HTTP::Client -> )","location":{"filename":"src/placeos/api_wrapper.cr","line_number":31,"url":null},"def":{"name":"new","args":[{"name":"uri","external_name":"uri","restriction":"URI | String"},{"name":"host_header","default_value":"nil","external_name":"host_header","restriction":"String | ::Nil"},{"name":"insecure","default_value":"false","external_name":"insecure","restriction":"::Bool"}],"yields":1,"block_arity":1,"block_arg":{"name":"authenticate","external_name":"authenticate","restriction":"(HTTP::Client ->)"},"visibility":"Public","body":"_ = allocate\n_.initialize(uri, host_header, insecure, &authenticate) do |_arg0|\n yield _arg0\nend\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"html_id":"new(uri:URI|String,host_header:String|Nil=nil,insecure:Bool=false)-class-method","name":"new","abstract":false,"args":[{"name":"uri","external_name":"uri","restriction":"URI | String"},{"name":"host_header","default_value":"nil","external_name":"host_header","restriction":"String | ::Nil"},{"name":"insecure","default_value":"false","external_name":"insecure","restriction":"::Bool"}],"args_string":"(uri : URI | String, host_header : String | Nil = nil, insecure : Bool = false)","args_html":"(uri : URI | String, host_header : String | Nil = nil, insecure : Bool = false)","location":{"filename":"src/placeos/api_wrapper.cr","line_number":36,"url":null},"def":{"name":"new","args":[{"name":"uri","external_name":"uri","restriction":"URI | String"},{"name":"host_header","default_value":"nil","external_name":"host_header","restriction":"String | ::Nil"},{"name":"insecure","default_value":"false","external_name":"insecure","restriction":"::Bool"}],"visibility":"Public","body":"_ = allocate\n_.initialize(uri, host_header, insecure)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"connection(&)-instance-method","name":"connection","abstract":false,"location":{"filename":"src/placeos/api_wrapper.cr","line_number":40,"url":null},"def":{"name":"connection","yields":1,"block_arity":1,"visibility":"Public","body":"HTTP::Client.new(uri) do |client|\n if insecure\n client.tls?.try(&.verify_mode = :NONE)\n end\n authenticate.call(client)\n yield client\nend"}}],"types":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/APIKeys","path":"PlaceOS/Client/APIWrapper/APIKeys.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::APIKeys","name":"APIKeys","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/api_keys.cr","line_number":5,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"}],"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"constructors":[{"html_id":"new(client:APIWrapper)-class-method","name":"new","abstract":false,"args":[{"name":"client","external_name":"client","restriction":"APIWrapper"}],"args_string":"(client : APIWrapper)","args_html":"(client : APIWrapper)","location":{"filename":"src/placeos/api_wrapper/api_keys.cr","line_number":74,"url":null},"def":{"name":"new","args":[{"name":"client","external_name":"client","restriction":"APIWrapper"}],"visibility":"Public","body":"_ = allocate\n_.initialize(client)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/api_keys.cr","line_number":9,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"create(name:String,user_id:String,description:String|Nil=nil,scopes:Array(String)|Nil=nil,permissions:PlaceOS::Model::UserJWT::Permissions|Nil=nil)-instance-method","name":"create","doc":"Creates a new zone.","summary":"Creates a new zone.
","abstract":false,"args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"user_id","external_name":"user_id","restriction":"String"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"},{"name":"scopes","default_value":"nil","external_name":"scopes","restriction":"Array(String) | ::Nil"},{"name":"permissions","default_value":"nil","external_name":"permissions","restriction":"::PlaceOS::Model::UserJWT::Permissions | ::Nil"}],"args_string":"(name : String, user_id : String, description : String | Nil = nil, scopes : Array(String) | Nil = nil, permissions : PlaceOS::Model::UserJWT::Permissions | Nil = nil)","args_html":"(name : String, user_id : String, description : String | Nil = nil, scopes : Array(String) | Nil = nil, permissions : PlaceOS::Model::UserJWT::Permissions | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/api_keys.cr","line_number":15,"url":null},"def":{"name":"create","args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"user_id","external_name":"user_id","restriction":"String"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"},{"name":"scopes","default_value":"nil","external_name":"scopes","restriction":"Array(String) | ::Nil"},{"name":"permissions","default_value":"nil","external_name":"permissions","restriction":"::PlaceOS::Model::UserJWT::Permissions | ::Nil"}],"visibility":"Public","body":"post(base, body: from_args, as: API::Models::APIKey)"}},{"html_id":"inspect_jwt-instance-method","name":"inspect_jwt","doc":"Get a clear text version of the JWT token","summary":"Get a clear text version of the JWT token
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/api_keys.cr","line_number":38,"url":null},"def":{"name":"inspect_jwt","visibility":"Public","body":"get(\"#{base}/inspect\", as: ::PlaceOS::Model::UserJWT)"}},{"html_id":"search(q:String|Nil=nil,limit:Int=20,offset:Int=0,authority_id:String|Nil=nil)-instance-method","name":"search","doc":"List or search for zones.\n\nResults maybe filtered by specifying a query - *q* - to search across zone\nattributes. A small query language is supported within this:\n\nOperator | Action\n-------- | ------\n`+` | Matches both terms\n`|` | Matches either terms\n`-` | Negates a single token\n`\"` | Wraps tokens to form a phrase\n`(` `)` | Provides precedence\n`~N` | Specifies edit distance (fuzziness) after a word\n`~N` | Specifies slop amount (deviation) after a phrase\n\nUp to *limit* zones will be returned, with a paging based on *offset*.\n\nResults my also also be limited to those associated with specific *tags*.","summary":"List or search for zones.
","abstract":false,"args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"authority_id","default_value":"nil","external_name":"authority_id","restriction":"String | ::Nil"}],"args_string":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0, authority_id : String | Nil = nil)","args_html":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0, authority_id : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/api_keys.cr","line_number":63,"url":null},"def":{"name":"search","args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"authority_id","default_value":"nil","external_name":"authority_id","restriction":"String | ::Nil"}],"visibility":"Public","body":"get(base, params: from_args, as: Array(API::Models::APIKey))"}},{"html_id":"update(id:String,name:String|Nil=nil,user_id:String|Nil=nil,description:String|Nil=nil,scopes:Array(String)|Nil=nil,permissions:PlaceOS::Model::UserJWT::Permissions|Nil=nil)-instance-method","name":"update","doc":"Updates zone attributes or configuration.","summary":"Updates zone attributes or configuration.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"user_id","default_value":"nil","external_name":"user_id","restriction":"String | ::Nil"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"},{"name":"scopes","default_value":"nil","external_name":"scopes","restriction":"Array(String) | ::Nil"},{"name":"permissions","default_value":"nil","external_name":"permissions","restriction":"::PlaceOS::Model::UserJWT::Permissions | ::Nil"}],"args_string":"(id : String, name : String | Nil = nil, user_id : String | Nil = nil, description : String | Nil = nil, scopes : Array(String) | Nil = nil, permissions : PlaceOS::Model::UserJWT::Permissions | Nil = nil)","args_html":"(id : String, name : String | Nil = nil, user_id : String | Nil = nil, description : String | Nil = nil, scopes : Array(String) | Nil = nil, permissions : PlaceOS::Model::UserJWT::Permissions | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/api_keys.cr","line_number":26,"url":null},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"user_id","default_value":"nil","external_name":"user_id","restriction":"String | ::Nil"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"},{"name":"scopes","default_value":"nil","external_name":"scopes","restriction":"Array(String) | ::Nil"},{"name":"permissions","default_value":"nil","external_name":"permissions","restriction":"::PlaceOS::Model::UserJWT::Permissions | ::Nil"}],"visibility":"Public","body":"put(\"#{base}/#{id}\", body: from_args, as: API::Models::APIKey)"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/AssetInstances","path":"PlaceOS/Client/APIWrapper/AssetInstances.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::AssetInstances","name":"AssetInstances","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/asset_instances.cr","line_number":5,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"}],"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/asset_instances.cr","line_number":9,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"create(name:String,usage_start:Time,usage_end:Time)-instance-method","name":"create","doc":"Creates a new asset instance.","summary":"Creates a new asset instance.
","abstract":false,"args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"usage_start","external_name":"usage_start","restriction":"Time"},{"name":"usage_end","external_name":"usage_end","restriction":"Time"}],"args_string":"(name : String, usage_start : Time, usage_end : Time)","args_html":"(name : String, usage_start : Time, usage_end : Time)","location":{"filename":"src/placeos/api_wrapper/asset_instances.cr","line_number":15,"url":null},"def":{"name":"create","args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"usage_start","external_name":"usage_start","restriction":"Time"},{"name":"usage_end","external_name":"usage_end","restriction":"Time"}],"visibility":"Public","body":"post(base, body: from_args, as: API::Models::AssetInstance)"}},{"html_id":"search(q:String|Nil=nil,limit:Int=20,offset:Int=0)-instance-method","name":"search","abstract":false,"args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"}],"args_string":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0)","args_html":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0)","location":{"filename":"src/placeos/api_wrapper/asset_instances.cr","line_number":55,"url":null},"def":{"name":"search","args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"}],"visibility":"Public","body":"get(base, params: from_args, as: Array(API::Models::AssetInstance))"}},{"html_id":"update(id:String,name:String|Nil=nil,purchase_date:Time|Nil=nil,identifier:String|Nil=nil,purchase_price:Int32|Nil=nil)-instance-method","name":"update","doc":"Updates asset instance attributes or configuration.","summary":"Updates asset instance attributes or configuration.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"purchase_date","default_value":"nil","external_name":"purchase_date","restriction":"Time | ::Nil"},{"name":"identifier","default_value":"nil","external_name":"identifier","restriction":"String | ::Nil"},{"name":"purchase_price","default_value":"nil","external_name":"purchase_price","restriction":"Int32 | ::Nil"}],"args_string":"(id : String, name : String | Nil = nil, purchase_date : Time | Nil = nil, identifier : String | Nil = nil, purchase_price : Int32 | Nil = nil)","args_html":"(id : String, name : String | Nil = nil, purchase_date : Time | Nil = nil, identifier : String | Nil = nil, purchase_price : Int32 | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/asset_instances.cr","line_number":24,"url":null},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"purchase_date","default_value":"nil","external_name":"purchase_date","restriction":"Time | ::Nil"},{"name":"identifier","default_value":"nil","external_name":"identifier","restriction":"String | ::Nil"},{"name":"purchase_price","default_value":"nil","external_name":"purchase_price","restriction":"Int32 | ::Nil"}],"visibility":"Public","body":"put(\"#{base}/#{id}\", body: from_args, as: API::Models::AssetInstance)"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Assets","path":"PlaceOS/Client/APIWrapper/Assets.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Assets","name":"Assets","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/assets.cr","line_number":5,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"}],"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"instance_methods":[{"html_id":"asset_instances(id:String)-instance-method","name":"asset_instances","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"}],"args_string":"(id : String)","args_html":"(id : String)","location":{"filename":"src/placeos/api_wrapper/assets.cr","line_number":35,"url":null},"def":{"name":"asset_instances","args":[{"name":"id","external_name":"id","restriction":"String"}],"visibility":"Public","body":"get(\"#{base}/#{id}/asset_instances\", as: Array(API::Models::AssetInstance))"}},{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/assets.cr","line_number":9,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"create(name:String,purchase_date:Time,identifier:String|Nil=nil,purchase_price:Int32|Nil=nil)-instance-method","name":"create","doc":"Creates a new asset.","summary":"Creates a new asset.
","abstract":false,"args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"purchase_date","external_name":"purchase_date","restriction":"Time"},{"name":"identifier","default_value":"nil","external_name":"identifier","restriction":"String | ::Nil"},{"name":"purchase_price","default_value":"nil","external_name":"purchase_price","restriction":"Int32 | ::Nil"}],"args_string":"(name : String, purchase_date : Time, identifier : String | Nil = nil, purchase_price : Int32 | Nil = nil)","args_html":"(name : String, purchase_date : Time, identifier : String | Nil = nil, purchase_price : Int32 | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/assets.cr","line_number":15,"url":null},"def":{"name":"create","args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"purchase_date","external_name":"purchase_date","restriction":"Time"},{"name":"identifier","default_value":"nil","external_name":"identifier","restriction":"String | ::Nil"},{"name":"purchase_price","default_value":"nil","external_name":"purchase_price","restriction":"Int32 | ::Nil"}],"visibility":"Public","body":"post(base, body: from_args, as: API::Models::Asset)"}},{"html_id":"search(q:String|Nil=nil,limit:Int=20,offset:Int=0,parent:String|Nil=nil)-instance-method","name":"search","abstract":false,"args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"parent","default_value":"nil","external_name":"parent","restriction":"String | ::Nil"}],"args_string":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0, parent : String | Nil = nil)","args_html":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0, parent : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/assets.cr","line_number":60,"url":null},"def":{"name":"search","args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"parent","default_value":"nil","external_name":"parent","restriction":"String | ::Nil"}],"visibility":"Public","body":"get(base, params: from_args, as: Array(API::Models::Asset))"}},{"html_id":"update(id:String,name:String|Nil=nil,purchase_date:Time|Nil=nil,identifier:String|Nil=nil,purchase_price:Int32|Nil=nil)-instance-method","name":"update","doc":"Updates asset attributes or configuration.","summary":"Updates asset attributes or configuration.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"purchase_date","default_value":"nil","external_name":"purchase_date","restriction":"Time | ::Nil"},{"name":"identifier","default_value":"nil","external_name":"identifier","restriction":"String | ::Nil"},{"name":"purchase_price","default_value":"nil","external_name":"purchase_price","restriction":"Int32 | ::Nil"}],"args_string":"(id : String, name : String | Nil = nil, purchase_date : Time | Nil = nil, identifier : String | Nil = nil, purchase_price : Int32 | Nil = nil)","args_html":"(id : String, name : String | Nil = nil, purchase_date : Time | Nil = nil, identifier : String | Nil = nil, purchase_price : Int32 | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/assets.cr","line_number":25,"url":null},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"purchase_date","default_value":"nil","external_name":"purchase_date","restriction":"Time | ::Nil"},{"name":"identifier","default_value":"nil","external_name":"identifier","restriction":"String | ::Nil"},{"name":"purchase_price","default_value":"nil","external_name":"purchase_price","restriction":"Int32 | ::Nil"}],"visibility":"Public","body":"put(\"#{base}/#{id}\", body: from_args, as: API::Models::Asset)"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/AuthBase","path":"PlaceOS/Client/APIWrapper/AuthBase.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::AuthBase(Model)","name":"AuthBase","abstract":true,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/auths/base.cr","line_number":5,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"}],"subclasses":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Ldap","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Ldap","name":"Ldap"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/OAuth","kind":"class","full_name":"PlaceOS::Client::APIWrapper::OAuth","name":"OAuth"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Saml","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Saml","name":"Saml"}],"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"constructors":[{"html_id":"new(client:APIWrapper)-class-method","name":"new","abstract":false,"args":[{"name":"client","external_name":"client","restriction":"APIWrapper"}],"args_string":"(client : APIWrapper)","args_html":"(client : APIWrapper)","location":{"filename":"src/placeos/api_wrapper/endpoint.cr","line_number":11,"url":null},"def":{"name":"new","args":[{"name":"client","external_name":"client","restriction":"APIWrapper"}],"visibility":"Public","body":"_ = AuthBase(Model).allocate\n_.initialize(client)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"create(**args):Model-instance-method","name":"create","abstract":false,"location":{"filename":"src/placeos/api_wrapper/auths/base.cr","line_number":38,"url":null},"def":{"name":"create","double_splat":{"name":"args","external_name":"args","restriction":""},"return_type":"Model","visibility":"Public","body":"post(base, body: from_args, as: Model)"}},{"html_id":"search(q:String|Nil=nil,limit:Int=20,offset:Int=0,authority_id:String|Nil=nil)-instance-method","name":"search","doc":"List or search.\n\nResults maybe filtered by specifying a query - *q* - to search across\nattributes. A small query language is supported within this:\n\nOperator | Action\n-------- | ------\n`+` | Matches both terms\n`|` | Matches either terms\n`-` | Negates a single token\n`\"` | Wraps tokens to form a phrase\n`(` `)` | Provides precedence\n`~N` | Specifies edit distance (fuzziness) after a word\n`~N` | Specifies slop amount (deviation) after a phrase\n\nUp to *limit* documents will be returned, with a paging based on *offset*.","summary":"List or search.
","abstract":false,"args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"authority_id","default_value":"nil","external_name":"authority_id","restriction":"String | ::Nil"}],"args_string":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0, authority_id : String | Nil = nil)","args_html":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0, authority_id : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/auths/base.cr","line_number":25,"url":null},"def":{"name":"search","args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"authority_id","default_value":"nil","external_name":"authority_id","restriction":"String | ::Nil"}],"visibility":"Public","body":"get(base, params: from_args, as: Array(Model))"}},{"html_id":"update(**args)-instance-method","name":"update","abstract":false,"location":{"filename":"src/placeos/api_wrapper/auths/base.cr","line_number":34,"url":null},"def":{"name":"update","double_splat":{"name":"args","external_name":"args","restriction":""},"visibility":"Public","body":"put(\"#{base}/#{id}\", body: from_args, as: Model)"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Authority","path":"PlaceOS/Client/APIWrapper/Authority.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Authority","name":"Authority","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/authority.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/authority.cr","line_number":5,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"fetch-instance-method","name":"fetch","doc":"Gets the authority metadata for the attached instance.","summary":"Gets the authority metadata for the attached instance.
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/authority.cr","line_number":8,"url":null},"def":{"name":"fetch","visibility":"Public","body":"get(base, as: API::Models::Authority)"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Cluster","path":"PlaceOS/Client/APIWrapper/Cluster.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Cluster","name":"Cluster","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/cluster.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/cluster.cr","line_number":5,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Domains","path":"PlaceOS/Client/APIWrapper/Domains.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Domains","name":"Domains","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/domains.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"}],"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/domains.cr","line_number":8,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Drivers","path":"PlaceOS/Client/APIWrapper/Drivers.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Drivers","name":"Drivers","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/drivers.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"}],"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/drivers.cr","line_number":8,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"create(name:String,role:Role,commit:String,file_name:String,module_name:String,repository_id:String,default_uri:String|Nil=nil,default_port:Int32|Nil=nil,description:String|Nil=nil,ignore_connected:Bool|Nil=nil)-instance-method","name":"create","abstract":false,"args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"role","external_name":"role","restriction":"Role"},{"name":"commit","external_name":"commit","restriction":"String"},{"name":"file_name","external_name":"file_name","restriction":"String"},{"name":"module_name","external_name":"module_name","restriction":"String"},{"name":"repository_id","external_name":"repository_id","restriction":"String"},{"name":"default_uri","default_value":"nil","external_name":"default_uri","restriction":"String | ::Nil"},{"name":"default_port","default_value":"nil","external_name":"default_port","restriction":"Int32 | ::Nil"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"},{"name":"ignore_connected","default_value":"nil","external_name":"ignore_connected","restriction":"Bool | ::Nil"}],"args_string":"(name : String, role : Role, commit : String, file_name : String, module_name : String, repository_id : String, default_uri : String | Nil = nil, default_port : Int32 | Nil = nil, description : String | Nil = nil, ignore_connected : Bool | Nil = nil)","args_html":"(name : String, role : Role, commit : String, file_name : String, module_name : String, repository_id : String, default_uri : String | Nil = nil, default_port : Int32 | Nil = nil, description : String | Nil = nil, ignore_connected : Bool | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/drivers.cr","line_number":30,"url":null},"def":{"name":"create","args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"role","external_name":"role","restriction":"Role"},{"name":"commit","external_name":"commit","restriction":"String"},{"name":"file_name","external_name":"file_name","restriction":"String"},{"name":"module_name","external_name":"module_name","restriction":"String"},{"name":"repository_id","external_name":"repository_id","restriction":"String"},{"name":"default_uri","default_value":"nil","external_name":"default_uri","restriction":"String | ::Nil"},{"name":"default_port","default_value":"nil","external_name":"default_port","restriction":"Int32 | ::Nil"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"},{"name":"ignore_connected","default_value":"nil","external_name":"ignore_connected","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"post(base, body: from_args, as: Driver)"}},{"html_id":"search(q:String|Nil=nil,limit:Int=20,offset:Int=0)-instance-method","name":"search","doc":"List or search for drivers.\n\nResults maybe filtered by specifying a query - *q* - to search across driver\nattributes. A small query language is supported within this:\n\nOperator | Action\n-------- | ------\n`+` | Matches both terms\n`|` | Matches either terms\n`-` | Negates a single token\n`\"` | Wraps tokens to form a phrase\n`(` `)` | Provides precedence\n`~N` | Specifies edit distance (fuzziness) after a word\n`~N` | Specifies slop amount (deviation) after a phrase\n\nUp to *limit* drivers will be returned, with a paging based on *offset*.","summary":"List or search for drivers.
","abstract":false,"args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"}],"args_string":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0)","args_html":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0)","location":{"filename":"src/placeos/api_wrapper/drivers.cr","line_number":26,"url":null},"def":{"name":"search","args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"}],"visibility":"Public","body":"get(base, params: from_args, as: Array(Driver))"}},{"html_id":"update(id:String,name:String|Nil=nil,role:Role|Nil=nil,commit:String|Nil=nil,file_name:String|Nil=nil,module_name:String|Nil=nil,default_uri:String|Nil=nil,default_port:Int32|Nil=nil,description:String|Nil=nil,ignore_connected:Bool|Nil=nil)-instance-method","name":"update","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"role","default_value":"nil","external_name":"role","restriction":"Role | ::Nil"},{"name":"commit","default_value":"nil","external_name":"commit","restriction":"String | ::Nil"},{"name":"file_name","default_value":"nil","external_name":"file_name","restriction":"String | ::Nil"},{"name":"module_name","default_value":"nil","external_name":"module_name","restriction":"String | ::Nil"},{"name":"default_uri","default_value":"nil","external_name":"default_uri","restriction":"String | ::Nil"},{"name":"default_port","default_value":"nil","external_name":"default_port","restriction":"Int32 | ::Nil"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"},{"name":"ignore_connected","default_value":"nil","external_name":"ignore_connected","restriction":"Bool | ::Nil"}],"args_string":"(id : String, name : String | Nil = nil, role : Role | Nil = nil, commit : String | Nil = nil, file_name : String | Nil = nil, module_name : String | Nil = nil, default_uri : String | Nil = nil, default_port : Int32 | Nil = nil, description : String | Nil = nil, ignore_connected : Bool | Nil = nil)","args_html":"(id : String, name : String | Nil = nil, role : Role | Nil = nil, commit : String | Nil = nil, file_name : String | Nil = nil, module_name : String | Nil = nil, default_uri : String | Nil = nil, default_port : Int32 | Nil = nil, description : String | Nil = nil, ignore_connected : Bool | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/drivers.cr","line_number":45,"url":null},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"role","default_value":"nil","external_name":"role","restriction":"Role | ::Nil"},{"name":"commit","default_value":"nil","external_name":"commit","restriction":"String | ::Nil"},{"name":"file_name","default_value":"nil","external_name":"file_name","restriction":"String | ::Nil"},{"name":"module_name","default_value":"nil","external_name":"module_name","restriction":"String | ::Nil"},{"name":"default_uri","default_value":"nil","external_name":"default_uri","restriction":"String | ::Nil"},{"name":"default_port","default_value":"nil","external_name":"default_port","restriction":"Int32 | ::Nil"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"},{"name":"ignore_connected","default_value":"nil","external_name":"ignore_connected","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"put(\"#{base}/#{id}\", body: from_args, as: Driver)"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Ldap","path":"PlaceOS/Client/APIWrapper/Ldap.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Ldap","name":"Ldap","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/AuthBase","kind":"class","full_name":"PlaceOS::Client::APIWrapper::AuthBase","name":"AuthBase"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/AuthBase","kind":"class","full_name":"PlaceOS::Client::APIWrapper::AuthBase","name":"AuthBase"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/auths/ldap.cr","line_number":7,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"constructors":[{"html_id":"new(client:APIWrapper)-class-method","name":"new","abstract":false,"args":[{"name":"client","external_name":"client","restriction":"APIWrapper"}],"args_string":"(client : APIWrapper)","args_html":"(client : APIWrapper)","location":{"filename":"src/placeos/api_wrapper/endpoint.cr","line_number":11,"url":null},"def":{"name":"new","args":[{"name":"client","external_name":"client","restriction":"APIWrapper"}],"visibility":"Public","body":"_ = allocate\n_.initialize(client)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/auths/ldap.cr","line_number":8,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"create(name:String,authority_id:String,host:String,base:String,port:Int32|Nil=nil,auth_method:String|Nil=nil,uid:String|Nil=nil,bind_dn:String|Nil=nil,password:String|Nil=nil,filter:String|Nil=nil)-instance-method","name":"create","abstract":false,"args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"authority_id","external_name":"authority_id","restriction":"String"},{"name":"host","external_name":"host","restriction":"String"},{"name":"base","external_name":"base","restriction":"String"},{"name":"port","default_value":"nil","external_name":"port","restriction":"Int32 | ::Nil"},{"name":"auth_method","default_value":"nil","external_name":"auth_method","restriction":"String | ::Nil"},{"name":"uid","default_value":"nil","external_name":"uid","restriction":"String | ::Nil"},{"name":"bind_dn","default_value":"nil","external_name":"bind_dn","restriction":"String | ::Nil"},{"name":"password","default_value":"nil","external_name":"password","restriction":"String | ::Nil"},{"name":"filter","default_value":"nil","external_name":"filter","restriction":"String | ::Nil"}],"args_string":"(name : String, authority_id : String, host : String, base : String, port : Int32 | Nil = nil, auth_method : String | Nil = nil, uid : String | Nil = nil, bind_dn : String | Nil = nil, password : String | Nil = nil, filter : String | Nil = nil)","args_html":"(name : String, authority_id : String, host : String, base : String, port : Int32 | Nil = nil, auth_method : String | Nil = nil, uid : String | Nil = nil, bind_dn : String | Nil = nil, password : String | Nil = nil, filter : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/auths/ldap.cr","line_number":10,"url":null},"def":{"name":"create","args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"authority_id","external_name":"authority_id","restriction":"String"},{"name":"host","external_name":"host","restriction":"String"},{"name":"base","external_name":"base","restriction":"String"},{"name":"port","default_value":"nil","external_name":"port","restriction":"Int32 | ::Nil"},{"name":"auth_method","default_value":"nil","external_name":"auth_method","restriction":"String | ::Nil"},{"name":"uid","default_value":"nil","external_name":"uid","restriction":"String | ::Nil"},{"name":"bind_dn","default_value":"nil","external_name":"bind_dn","restriction":"String | ::Nil"},{"name":"password","default_value":"nil","external_name":"password","restriction":"String | ::Nil"},{"name":"filter","default_value":"nil","external_name":"filter","restriction":"String | ::Nil"}],"visibility":"Public","body":"super(**args)"}},{"html_id":"update(id:String,name:String|Nil=nil,authority_id:String|Nil=nil,port:Int32|Nil=nil,auth_method:String|Nil=nil,uid:String|Nil=nil,host:String|Nil=nil,base:String|Nil=nil,bind_dn:String|Nil=nil,password:String|Nil=nil,filter:String|Nil=nil)-instance-method","name":"update","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"authority_id","default_value":"nil","external_name":"authority_id","restriction":"String | ::Nil"},{"name":"port","default_value":"nil","external_name":"port","restriction":"Int32 | ::Nil"},{"name":"auth_method","default_value":"nil","external_name":"auth_method","restriction":"String | ::Nil"},{"name":"uid","default_value":"nil","external_name":"uid","restriction":"String | ::Nil"},{"name":"host","default_value":"nil","external_name":"host","restriction":"String | ::Nil"},{"name":"base","default_value":"nil","external_name":"base","restriction":"String | ::Nil"},{"name":"bind_dn","default_value":"nil","external_name":"bind_dn","restriction":"String | ::Nil"},{"name":"password","default_value":"nil","external_name":"password","restriction":"String | ::Nil"},{"name":"filter","default_value":"nil","external_name":"filter","restriction":"String | ::Nil"}],"args_string":"(id : String, name : String | Nil = nil, authority_id : String | Nil = nil, port : Int32 | Nil = nil, auth_method : String | Nil = nil, uid : String | Nil = nil, host : String | Nil = nil, base : String | Nil = nil, bind_dn : String | Nil = nil, password : String | Nil = nil, filter : String | Nil = nil)","args_html":"(id : String, name : String | Nil = nil, authority_id : String | Nil = nil, port : Int32 | Nil = nil, auth_method : String | Nil = nil, uid : String | Nil = nil, host : String | Nil = nil, base : String | Nil = nil, bind_dn : String | Nil = nil, password : String | Nil = nil, filter : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/auths/ldap.cr","line_number":25,"url":null},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"authority_id","default_value":"nil","external_name":"authority_id","restriction":"String | ::Nil"},{"name":"port","default_value":"nil","external_name":"port","restriction":"Int32 | ::Nil"},{"name":"auth_method","default_value":"nil","external_name":"auth_method","restriction":"String | ::Nil"},{"name":"uid","default_value":"nil","external_name":"uid","restriction":"String | ::Nil"},{"name":"host","default_value":"nil","external_name":"host","restriction":"String | ::Nil"},{"name":"base","default_value":"nil","external_name":"base","restriction":"String | ::Nil"},{"name":"bind_dn","default_value":"nil","external_name":"bind_dn","restriction":"String | ::Nil"},{"name":"password","default_value":"nil","external_name":"password","restriction":"String | ::Nil"},{"name":"filter","default_value":"nil","external_name":"filter","restriction":"String | ::Nil"}],"visibility":"Public","body":"super(**args)"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Metadata","path":"PlaceOS/Client/APIWrapper/Metadata.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Metadata","name":"Metadata","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/metadata.cr","line_number":5,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/metadata.cr","line_number":6,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"children(id:String,name:String|Nil=nil)-instance-method","name":"children","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"}],"args_string":"(id : String, name : String | Nil = nil)","args_html":"(id : String, name : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/metadata.cr","line_number":12,"url":null},"def":{"name":"children","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"}],"visibility":"Public","body":"get(\"#{base}/#{id}/children\", params: from_args, as: Array(NamedTuple(zone: API::Models::Zone, metadata: Hash(String, API::Models::Metadata))))"}},{"html_id":"destroy(id:String,name:String)-instance-method","name":"destroy","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","external_name":"name","restriction":"String"}],"args_string":"(id : String, name : String)","args_html":"(id : String, name : String)","location":{"filename":"src/placeos/api_wrapper/metadata.cr","line_number":38,"url":null},"def":{"name":"destroy","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","external_name":"name","restriction":"String"}],"visibility":"Public","body":"delete(\"#{base}/#{id}\", params: from_args)\nnil\n"}},{"html_id":"fetch(id:String,name:String|Nil=nil)-instance-method","name":"fetch","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"}],"args_string":"(id : String, name : String | Nil = nil)","args_html":"(id : String, name : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/metadata.cr","line_number":8,"url":null},"def":{"name":"fetch","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"}],"visibility":"Public","body":"get(\"#{base}/#{id}\", params: from_args, as: Hash(String, API::Models::Metadata))"}},{"html_id":"merge(id:String,name:String,details:JSON::Any|Hash|NamedTuple|Array,description:String|Nil=nil)-instance-method","name":"merge","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","external_name":"name","restriction":"String"},{"name":"details","external_name":"details","restriction":"JSON::Any | Hash | NamedTuple | Array"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"}],"args_string":"(id : String, name : String, details : JSON::Any | Hash | NamedTuple | Array, description : String | Nil = nil)","args_html":"(id : String, name : String, details : JSON::Any | Hash | NamedTuple | Array, description : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/metadata.cr","line_number":27,"url":null},"def":{"name":"merge","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","external_name":"name","restriction":"String"},{"name":"details","external_name":"details","restriction":"JSON::Any | Hash | NamedTuple | Array"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"}],"visibility":"Public","body":"params = HTTP::Params {\"name\" => name}\nbody = {name: name, description: description, details: details, parent_id: id}\npatch(\"#{base}/#{id}?#{params}\", body: body, as: API::Models::Metadata)\n"}},{"html_id":"update(id:String,name:String,details:JSON::Any|Hash|NamedTuple|Array,description:String|Nil=nil)-instance-method","name":"update","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","external_name":"name","restriction":"String"},{"name":"details","external_name":"details","restriction":"JSON::Any | Hash | NamedTuple | Array"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"}],"args_string":"(id : String, name : String, details : JSON::Any | Hash | NamedTuple | Array, description : String | Nil = nil)","args_html":"(id : String, name : String, details : JSON::Any | Hash | NamedTuple | Array, description : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/metadata.cr","line_number":16,"url":null},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","external_name":"name","restriction":"String"},{"name":"details","external_name":"details","restriction":"JSON::Any | Hash | NamedTuple | Array"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"}],"visibility":"Public","body":"params = HTTP::Params {\"name\" => name}\nbody = {name: name, description: description, details: details, parent_id: id}\nput(\"#{base}/#{id}?#{params}\", body: body, as: API::Models::Metadata)\n"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Modules","path":"PlaceOS/Client/APIWrapper/Modules.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Modules","name":"Modules","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/modules.cr","line_number":7,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"}],"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/modules.cr","line_number":11,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"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)-instance-method","name":"create","doc":"Creates a new module.","summary":"Creates a new module.
","abstract":false,"args":[{"name":"driver_id","external_name":"driver_id","restriction":"String"},{"name":"control_system_id","default_value":"nil","external_name":"control_system_id","restriction":"String | ::Nil"},{"name":"ip","default_value":"nil","external_name":"ip","restriction":"String | ::Nil"},{"name":"udp","default_value":"nil","external_name":"udp","restriction":"Bool | ::Nil"},{"name":"port","default_value":"nil","external_name":"port","restriction":"Int | ::Nil"},{"name":"makebreak","default_value":"nil","external_name":"makebreak","restriction":"Bool | ::Nil"},{"name":"uri","default_value":"nil","external_name":"uri","restriction":"String | ::Nil"},{"name":"custom_name","default_value":"nil","external_name":"custom_name","restriction":"String | ::Nil"},{"name":"settings","default_value":"nil","external_name":"settings","restriction":"Settings | ::Nil"},{"name":"notes","default_value":"nil","external_name":"notes","restriction":"String | ::Nil"},{"name":"ignore_connected","default_value":"nil","external_name":"ignore_connected","restriction":"Bool | ::Nil"},{"name":"ignore_startstop","default_value":"nil","external_name":"ignore_startstop","restriction":"Bool | ::Nil"}],"args_string":"(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)","args_html":"(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)","location":{"filename":"src/placeos/api_wrapper/modules.cr","line_number":78,"url":null},"def":{"name":"create","args":[{"name":"driver_id","external_name":"driver_id","restriction":"String"},{"name":"control_system_id","default_value":"nil","external_name":"control_system_id","restriction":"String | ::Nil"},{"name":"ip","default_value":"nil","external_name":"ip","restriction":"String | ::Nil"},{"name":"udp","default_value":"nil","external_name":"udp","restriction":"Bool | ::Nil"},{"name":"port","default_value":"nil","external_name":"port","restriction":"Int | ::Nil"},{"name":"makebreak","default_value":"nil","external_name":"makebreak","restriction":"Bool | ::Nil"},{"name":"uri","default_value":"nil","external_name":"uri","restriction":"String | ::Nil"},{"name":"custom_name","default_value":"nil","external_name":"custom_name","restriction":"String | ::Nil"},{"name":"settings","default_value":"nil","external_name":"settings","restriction":"Settings | ::Nil"},{"name":"notes","default_value":"nil","external_name":"notes","restriction":"String | ::Nil"},{"name":"ignore_connected","default_value":"nil","external_name":"ignore_connected","restriction":"Bool | ::Nil"},{"name":"ignore_startstop","default_value":"nil","external_name":"ignore_startstop","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"post(base, body: from_args, as: API::Models::Module)"}},{"html_id":"ping(id:String)-instance-method","name":"ping","doc":"Performs a connectivity check with the associated device or service.","summary":"Performs a connectivity check with the associated device or service.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"}],"args_string":"(id : String)","args_html":"(id : String)","location":{"filename":"src/placeos/api_wrapper/modules.cr","line_number":29,"url":null},"def":{"name":"ping","args":[{"name":"id","external_name":"id","restriction":"String"}],"visibility":"Public","body":"post(\"#{base}/#{id}/ping\", as: API::Models::Ping)"}},{"html_id":"search(q:String|Nil=nil,limit:Int=20,offset:Int=0,control_system_id:String|Nil=nil,driver_id:String|Nil=nil)-instance-method","name":"search","doc":"List or search for modules.\n\nResults maybe filtered by specifying a query - *q* - to search across module\nattributes. A small query language is supported within this:\n\nOperator | Action\n-------- | ------\n`+` | Matches both terms\n`|` | Matches either terms\n`-` | Negates a single token\n`\"` | Wraps tokens to form a phrase\n`(` `)` | Provides precedence\n`~N` | Specifies edit distance (fuzziness) after a word\n`~N` | Specifies slop amount (deviation) after a phrase\n\nUp to *limit* systems will be returned, with a paging based on *offset*.\n\nResults my also also be limited to those associated with a specific\n*system_id*, that are instances of a *driver_id*, or any combination of\nthese.","summary":"List or search for modules.
","abstract":false,"args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"control_system_id","default_value":"nil","external_name":"control_system_id","restriction":"String | ::Nil"},{"name":"driver_id","default_value":"nil","external_name":"driver_id","restriction":"String | ::Nil"}],"args_string":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0, control_system_id : String | Nil = nil, driver_id : String | Nil = nil)","args_html":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0, control_system_id : String | Nil = nil, driver_id : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/modules.cr","line_number":64,"url":null},"def":{"name":"search","args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"control_system_id","default_value":"nil","external_name":"control_system_id","restriction":"String | ::Nil"},{"name":"driver_id","default_value":"nil","external_name":"driver_id","restriction":"String | ::Nil"}],"visibility":"Public","body":"get(base, params: from_args, as: Array(API::Models::Module))"}},{"html_id":"start(id:String)-instance-method","name":"start","doc":"Starts a module.","summary":"Starts a module.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"}],"args_string":"(id : String)","args_html":"(id : String)","location":{"filename":"src/placeos/api_wrapper/modules.cr","line_number":17,"url":null},"def":{"name":"start","args":[{"name":"id","external_name":"id","restriction":"String"}],"visibility":"Public","body":"post(\"#{base}/#{id}/start\")\nnil\n"}},{"html_id":"state(id:String,lookup:String|Nil=nil)-instance-method","name":"state","doc":"Queries the state exposed by a module.","summary":"Queries the state exposed by a module.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"lookup","default_value":"nil","external_name":"lookup","restriction":"String | ::Nil"}],"args_string":"(id : String, lookup : String | Nil = nil)","args_html":"(id : String, lookup : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/modules.cr","line_number":34,"url":null},"def":{"name":"state","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"lookup","default_value":"nil","external_name":"lookup","restriction":"String | ::Nil"}],"visibility":"Public","body":"path = \"#{base}/#{id}/state\"\nif lookup\n path = path + \"/#{lookup}\"\nend\nget(path)\n"}},{"html_id":"stop(id:String)-instance-method","name":"stop","doc":"Stops a module.","summary":"Stops a module.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"}],"args_string":"(id : String)","args_html":"(id : String)","location":{"filename":"src/placeos/api_wrapper/modules.cr","line_number":23,"url":null},"def":{"name":"stop","args":[{"name":"id","external_name":"id","restriction":"String"}],"visibility":"Public","body":"post(\"#{base}/#{id}/stop\")\nnil\n"}},{"html_id":"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)-instance-method","name":"update","doc":"Updates module attributes or configuration.","summary":"Updates module attributes or configuration.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"control_system_id","default_value":"nil","external_name":"control_system_id","restriction":"String | ::Nil"},{"name":"ip","default_value":"nil","external_name":"ip","restriction":"String | ::Nil"},{"name":"udp","default_value":"nil","external_name":"udp","restriction":"Bool | ::Nil"},{"name":"port","default_value":"nil","external_name":"port","restriction":"Int | ::Nil"},{"name":"makebreak","default_value":"nil","external_name":"makebreak","restriction":"Bool | ::Nil"},{"name":"uri","default_value":"nil","external_name":"uri","restriction":"String | ::Nil"},{"name":"custom_name","default_value":"nil","external_name":"custom_name","restriction":"String | ::Nil"},{"name":"settings","default_value":"nil","external_name":"settings","restriction":"Settings | ::Nil"},{"name":"notes","default_value":"nil","external_name":"notes","restriction":"String | ::Nil"},{"name":"ignore_connected","default_value":"nil","external_name":"ignore_connected","restriction":"Bool | ::Nil"},{"name":"ignore_startstop","default_value":"nil","external_name":"ignore_startstop","restriction":"Bool | ::Nil"}],"args_string":"(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)","args_html":"(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)","location":{"filename":"src/placeos/api_wrapper/modules.cr","line_number":96,"url":null},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"control_system_id","default_value":"nil","external_name":"control_system_id","restriction":"String | ::Nil"},{"name":"ip","default_value":"nil","external_name":"ip","restriction":"String | ::Nil"},{"name":"udp","default_value":"nil","external_name":"udp","restriction":"Bool | ::Nil"},{"name":"port","default_value":"nil","external_name":"port","restriction":"Int | ::Nil"},{"name":"makebreak","default_value":"nil","external_name":"makebreak","restriction":"Bool | ::Nil"},{"name":"uri","default_value":"nil","external_name":"uri","restriction":"String | ::Nil"},{"name":"custom_name","default_value":"nil","external_name":"custom_name","restriction":"String | ::Nil"},{"name":"settings","default_value":"nil","external_name":"settings","restriction":"Settings | ::Nil"},{"name":"notes","default_value":"nil","external_name":"notes","restriction":"String | ::Nil"},{"name":"ignore_connected","default_value":"nil","external_name":"ignore_connected","restriction":"Bool | ::Nil"},{"name":"ignore_startstop","default_value":"nil","external_name":"ignore_startstop","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"put(\"#{base}/#{id}\", body: from_args, as: API::Models::Module)"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/OAuth","path":"PlaceOS/Client/APIWrapper/OAuth.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::OAuth","name":"OAuth","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/AuthBase","kind":"class","full_name":"PlaceOS::Client::APIWrapper::AuthBase","name":"AuthBase"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/AuthBase","kind":"class","full_name":"PlaceOS::Client::APIWrapper::AuthBase","name":"AuthBase"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/auths/oauth.cr","line_number":7,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"constructors":[{"html_id":"new(client:APIWrapper)-class-method","name":"new","abstract":false,"args":[{"name":"client","external_name":"client","restriction":"APIWrapper"}],"args_string":"(client : APIWrapper)","args_html":"(client : APIWrapper)","location":{"filename":"src/placeos/api_wrapper/endpoint.cr","line_number":11,"url":null},"def":{"name":"new","args":[{"name":"client","external_name":"client","restriction":"APIWrapper"}],"visibility":"Public","body":"_ = allocate\n_.initialize(client)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/auths/oauth.cr","line_number":8,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"create(name:String,authority_id:String,client_id:String|Nil=nil,client_secret:String|Nil=nil,info_mappings:Hash(String,String)|Nil=nil,site:String|Nil=nil,authorize_url:String|Nil=nil,token_method:String|Nil=nil,auth_scheme:String|Nil=nil,token_url:String|Nil=nil,scope:String|Nil=nil,raw_info_url:String|Nil=nil)-instance-method","name":"create","abstract":false,"args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"authority_id","external_name":"authority_id","restriction":"String"},{"name":"client_id","default_value":"nil","external_name":"client_id","restriction":"String | ::Nil"},{"name":"client_secret","default_value":"nil","external_name":"client_secret","restriction":"String | ::Nil"},{"name":"info_mappings","default_value":"nil","external_name":"info_mappings","restriction":"Hash(String, String) | ::Nil"},{"name":"site","default_value":"nil","external_name":"site","restriction":"String | ::Nil"},{"name":"authorize_url","default_value":"nil","external_name":"authorize_url","restriction":"String | ::Nil"},{"name":"token_method","default_value":"nil","external_name":"token_method","restriction":"String | ::Nil"},{"name":"auth_scheme","default_value":"nil","external_name":"auth_scheme","restriction":"String | ::Nil"},{"name":"token_url","default_value":"nil","external_name":"token_url","restriction":"String | ::Nil"},{"name":"scope","default_value":"nil","external_name":"scope","restriction":"String | ::Nil"},{"name":"raw_info_url","default_value":"nil","external_name":"raw_info_url","restriction":"String | ::Nil"}],"args_string":"(name : String, authority_id : String, client_id : String | Nil = nil, client_secret : String | Nil = nil, info_mappings : Hash(String, String) | Nil = nil, site : String | Nil = nil, authorize_url : String | Nil = nil, token_method : String | Nil = nil, auth_scheme : String | Nil = nil, token_url : String | Nil = nil, scope : String | Nil = nil, raw_info_url : String | Nil = nil)","args_html":"(name : String, authority_id : String, client_id : String | Nil = nil, client_secret : String | Nil = nil, info_mappings : Hash(String, String) | Nil = nil, site : String | Nil = nil, authorize_url : String | Nil = nil, token_method : String | Nil = nil, auth_scheme : String | Nil = nil, token_url : String | Nil = nil, scope : String | Nil = nil, raw_info_url : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/auths/oauth.cr","line_number":10,"url":null},"def":{"name":"create","args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"authority_id","external_name":"authority_id","restriction":"String"},{"name":"client_id","default_value":"nil","external_name":"client_id","restriction":"String | ::Nil"},{"name":"client_secret","default_value":"nil","external_name":"client_secret","restriction":"String | ::Nil"},{"name":"info_mappings","default_value":"nil","external_name":"info_mappings","restriction":"Hash(String, String) | ::Nil"},{"name":"site","default_value":"nil","external_name":"site","restriction":"String | ::Nil"},{"name":"authorize_url","default_value":"nil","external_name":"authorize_url","restriction":"String | ::Nil"},{"name":"token_method","default_value":"nil","external_name":"token_method","restriction":"String | ::Nil"},{"name":"auth_scheme","default_value":"nil","external_name":"auth_scheme","restriction":"String | ::Nil"},{"name":"token_url","default_value":"nil","external_name":"token_url","restriction":"String | ::Nil"},{"name":"scope","default_value":"nil","external_name":"scope","restriction":"String | ::Nil"},{"name":"raw_info_url","default_value":"nil","external_name":"raw_info_url","restriction":"String | ::Nil"}],"visibility":"Public","body":"super(**args)"}},{"html_id":"update(id:String,name:String|Nil=nil,authority_id:String|Nil=nil,client_id:String|Nil=nil,client_secret:String|Nil=nil,info_mappings:Hash(String,String)|Nil=nil,site:String|Nil=nil,authorize_url:String|Nil=nil,token_method:String|Nil=nil,auth_scheme:String|Nil=nil,token_url:String|Nil=nil,scope:String|Nil=nil,raw_info_url:String|Nil=nil)-instance-method","name":"update","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"authority_id","default_value":"nil","external_name":"authority_id","restriction":"String | ::Nil"},{"name":"client_id","default_value":"nil","external_name":"client_id","restriction":"String | ::Nil"},{"name":"client_secret","default_value":"nil","external_name":"client_secret","restriction":"String | ::Nil"},{"name":"info_mappings","default_value":"nil","external_name":"info_mappings","restriction":"Hash(String, String) | ::Nil"},{"name":"site","default_value":"nil","external_name":"site","restriction":"String | ::Nil"},{"name":"authorize_url","default_value":"nil","external_name":"authorize_url","restriction":"String | ::Nil"},{"name":"token_method","default_value":"nil","external_name":"token_method","restriction":"String | ::Nil"},{"name":"auth_scheme","default_value":"nil","external_name":"auth_scheme","restriction":"String | ::Nil"},{"name":"token_url","default_value":"nil","external_name":"token_url","restriction":"String | ::Nil"},{"name":"scope","default_value":"nil","external_name":"scope","restriction":"String | ::Nil"},{"name":"raw_info_url","default_value":"nil","external_name":"raw_info_url","restriction":"String | ::Nil"}],"args_string":"(id : String, name : String | Nil = nil, authority_id : String | Nil = nil, client_id : String | Nil = nil, client_secret : String | Nil = nil, info_mappings : Hash(String, String) | Nil = nil, site : String | Nil = nil, authorize_url : String | Nil = nil, token_method : String | Nil = nil, auth_scheme : String | Nil = nil, token_url : String | Nil = nil, scope : String | Nil = nil, raw_info_url : String | Nil = nil)","args_html":"(id : String, name : String | Nil = nil, authority_id : String | Nil = nil, client_id : String | Nil = nil, client_secret : String | Nil = nil, info_mappings : Hash(String, String) | Nil = nil, site : String | Nil = nil, authorize_url : String | Nil = nil, token_method : String | Nil = nil, auth_scheme : String | Nil = nil, token_url : String | Nil = nil, scope : String | Nil = nil, raw_info_url : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/auths/oauth.cr","line_number":27,"url":null},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"authority_id","default_value":"nil","external_name":"authority_id","restriction":"String | ::Nil"},{"name":"client_id","default_value":"nil","external_name":"client_id","restriction":"String | ::Nil"},{"name":"client_secret","default_value":"nil","external_name":"client_secret","restriction":"String | ::Nil"},{"name":"info_mappings","default_value":"nil","external_name":"info_mappings","restriction":"Hash(String, String) | ::Nil"},{"name":"site","default_value":"nil","external_name":"site","restriction":"String | ::Nil"},{"name":"authorize_url","default_value":"nil","external_name":"authorize_url","restriction":"String | ::Nil"},{"name":"token_method","default_value":"nil","external_name":"token_method","restriction":"String | ::Nil"},{"name":"auth_scheme","default_value":"nil","external_name":"auth_scheme","restriction":"String | ::Nil"},{"name":"token_url","default_value":"nil","external_name":"token_url","restriction":"String | ::Nil"},{"name":"scope","default_value":"nil","external_name":"scope","restriction":"String | ::Nil"},{"name":"raw_info_url","default_value":"nil","external_name":"raw_info_url","restriction":"String | ::Nil"}],"visibility":"Public","body":"super(**args)"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/OAuthApplications","path":"PlaceOS/Client/APIWrapper/OAuthApplications.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::OAuthApplications","name":"OAuthApplications","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/oauth_applications.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"}],"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/oauth_applications.cr","line_number":8,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"create(name:String,uid:String|Nil=nil,secret:String|Nil=nil,scopes:String|Nil=nil,owner_id:String|Nil=nil,redirect_uri:String|Nil=nil,skip_authorization:Bool|Nil=nil,confidential:Bool|Nil=nil,revoked_at:Time|Nil=nil)-instance-method","name":"create","abstract":false,"args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"uid","default_value":"nil","external_name":"uid","restriction":"String | ::Nil"},{"name":"secret","default_value":"nil","external_name":"secret","restriction":"String | ::Nil"},{"name":"scopes","default_value":"nil","external_name":"scopes","restriction":"String | ::Nil"},{"name":"owner_id","default_value":"nil","external_name":"owner_id","restriction":"String | ::Nil"},{"name":"redirect_uri","default_value":"nil","external_name":"redirect_uri","restriction":"String | ::Nil"},{"name":"skip_authorization","default_value":"nil","external_name":"skip_authorization","restriction":"Bool | ::Nil"},{"name":"confidential","default_value":"nil","external_name":"confidential","restriction":"Bool | ::Nil"},{"name":"revoked_at","default_value":"nil","external_name":"revoked_at","restriction":"Time | ::Nil"}],"args_string":"(name : String, uid : String | Nil = nil, secret : String | Nil = nil, scopes : String | Nil = nil, owner_id : String | Nil = nil, redirect_uri : String | Nil = nil, skip_authorization : Bool | Nil = nil, confidential : Bool | Nil = nil, revoked_at : Time | Nil = nil)","args_html":"(name : String, uid : String | Nil = nil, secret : String | Nil = nil, scopes : String | Nil = nil, owner_id : String | Nil = nil, redirect_uri : String | Nil = nil, skip_authorization : Bool | Nil = nil, confidential : Bool | Nil = nil, revoked_at : Time | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/oauth_applications.cr","line_number":50,"url":null},"def":{"name":"create","args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"uid","default_value":"nil","external_name":"uid","restriction":"String | ::Nil"},{"name":"secret","default_value":"nil","external_name":"secret","restriction":"String | ::Nil"},{"name":"scopes","default_value":"nil","external_name":"scopes","restriction":"String | ::Nil"},{"name":"owner_id","default_value":"nil","external_name":"owner_id","restriction":"String | ::Nil"},{"name":"redirect_uri","default_value":"nil","external_name":"redirect_uri","restriction":"String | ::Nil"},{"name":"skip_authorization","default_value":"nil","external_name":"skip_authorization","restriction":"Bool | ::Nil"},{"name":"confidential","default_value":"nil","external_name":"confidential","restriction":"Bool | ::Nil"},{"name":"revoked_at","default_value":"nil","external_name":"revoked_at","restriction":"Time | ::Nil"}],"visibility":"Public","body":"post(base, body: from_args, as: OAuthApplication)"}},{"html_id":"search(q:String|Nil=nil,limit:Int=20,offset:Int=0,authority:String|Nil=nil)-instance-method","name":"search","doc":"List or search for applications.\n\nResults maybe filtered by specifying a query - *q* - to search across application\nattributes. A small query language is supported within this:\n\nOperator | Action\n-------- | ------\n`+` | Matches both terms\n`|` | Matches either terms\n`-` | Negates a single token\n`\"` | Wraps tokens to form a phrase\n`(` `)` | Provides precedence\n`~N` | Specifies edit distance (fuzziness) after a word\n`~N` | Specifies slop amount (deviation) after a phrase\n\nUp to *limit* application will be returned, with a paging based on *offset*.","summary":"List or search for applications.
","abstract":false,"args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"authority","default_value":"nil","external_name":"authority","restriction":"String | ::Nil"}],"args_string":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0, authority : String | Nil = nil)","args_html":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0, authority : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/oauth_applications.cr","line_number":26,"url":null},"def":{"name":"search","args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"authority","default_value":"nil","external_name":"authority","restriction":"String | ::Nil"}],"visibility":"Public","body":"get(base, params: from_args, as: Array(OAuthApplication))"}},{"html_id":"update(id:String,name:String|Nil=nil,uid:String|Nil=nil,secret:String|Nil=nil,scopes:String|Nil=nil,owner_id:String|Nil=nil,redirect_uri:String|Nil=nil,skip_authorization:Bool|Nil=nil,confidential:Bool|Nil=nil,revoked_at:Time|Nil=nil)-instance-method","name":"update","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"uid","default_value":"nil","external_name":"uid","restriction":"String | ::Nil"},{"name":"secret","default_value":"nil","external_name":"secret","restriction":"String | ::Nil"},{"name":"scopes","default_value":"nil","external_name":"scopes","restriction":"String | ::Nil"},{"name":"owner_id","default_value":"nil","external_name":"owner_id","restriction":"String | ::Nil"},{"name":"redirect_uri","default_value":"nil","external_name":"redirect_uri","restriction":"String | ::Nil"},{"name":"skip_authorization","default_value":"nil","external_name":"skip_authorization","restriction":"Bool | ::Nil"},{"name":"confidential","default_value":"nil","external_name":"confidential","restriction":"Bool | ::Nil"},{"name":"revoked_at","default_value":"nil","external_name":"revoked_at","restriction":"Time | ::Nil"}],"args_string":"(id : String, name : String | Nil = nil, uid : String | Nil = nil, secret : String | Nil = nil, scopes : String | Nil = nil, owner_id : String | Nil = nil, redirect_uri : String | Nil = nil, skip_authorization : Bool | Nil = nil, confidential : Bool | Nil = nil, revoked_at : Time | Nil = nil)","args_html":"(id : String, name : String | Nil = nil, uid : String | Nil = nil, secret : String | Nil = nil, scopes : String | Nil = nil, owner_id : String | Nil = nil, redirect_uri : String | Nil = nil, skip_authorization : Bool | Nil = nil, confidential : Bool | Nil = nil, revoked_at : Time | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/oauth_applications.cr","line_number":35,"url":null},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"uid","default_value":"nil","external_name":"uid","restriction":"String | ::Nil"},{"name":"secret","default_value":"nil","external_name":"secret","restriction":"String | ::Nil"},{"name":"scopes","default_value":"nil","external_name":"scopes","restriction":"String | ::Nil"},{"name":"owner_id","default_value":"nil","external_name":"owner_id","restriction":"String | ::Nil"},{"name":"redirect_uri","default_value":"nil","external_name":"redirect_uri","restriction":"String | ::Nil"},{"name":"skip_authorization","default_value":"nil","external_name":"skip_authorization","restriction":"Bool | ::Nil"},{"name":"confidential","default_value":"nil","external_name":"confidential","restriction":"Bool | ::Nil"},{"name":"revoked_at","default_value":"nil","external_name":"revoked_at","restriction":"Time | ::Nil"}],"visibility":"Public","body":"put(\"#{base}/#{id}\", body: from_args, as: OAuthApplication)"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Repositories","path":"PlaceOS/Client/APIWrapper/Repositories.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Repositories","name":"Repositories","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/repositories.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"}],"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/repositories.cr","line_number":8,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Root","path":"PlaceOS/Client/APIWrapper/Root.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Root","name":"Root","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/root.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/root.cr","line_number":5,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"signal(channel:String,payload)-instance-method","name":"signal","doc":"send data to listening drivers","summary":"send data to listening drivers
","abstract":false,"args":[{"name":"channel","external_name":"channel","restriction":"String"},{"name":"payload","external_name":"payload","restriction":""}],"args_string":"(channel : String, payload)","args_html":"(channel : String, payload)","location":{"filename":"src/placeos/api_wrapper/root.cr","line_number":8,"url":null},"def":{"name":"signal","args":[{"name":"channel","external_name":"channel","restriction":"String"},{"name":"payload","external_name":"payload","restriction":""}],"visibility":"Public","body":"post(\"#{base}/signal?channel=#{channel}\", body: payload)"}},{"html_id":"version-instance-method","name":"version","abstract":false,"location":{"filename":"src/placeos/api_wrapper/root.cr","line_number":15,"url":null},"def":{"name":"version","visibility":"Public","body":"get(\"#{base}/version\", as: API::Models::Version)"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Saml","path":"PlaceOS/Client/APIWrapper/Saml.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Saml","name":"Saml","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/AuthBase","kind":"class","full_name":"PlaceOS::Client::APIWrapper::AuthBase","name":"AuthBase"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/AuthBase","kind":"class","full_name":"PlaceOS::Client::APIWrapper::AuthBase","name":"AuthBase"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/auths/saml.cr","line_number":7,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"constructors":[{"html_id":"new(client:APIWrapper)-class-method","name":"new","abstract":false,"args":[{"name":"client","external_name":"client","restriction":"APIWrapper"}],"args_string":"(client : APIWrapper)","args_html":"(client : APIWrapper)","location":{"filename":"src/placeos/api_wrapper/endpoint.cr","line_number":11,"url":null},"def":{"name":"new","args":[{"name":"client","external_name":"client","restriction":"APIWrapper"}],"visibility":"Public","body":"_ = allocate\n_.initialize(client)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/auths/saml.cr","line_number":8,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"create(name:String,authority_id:String,issuer:String,idp_sso_target_url:String,name_identifier_format:String,assertion_consumer_service_url:String,request_attributes:Array(NamedTuple(name:String,name_format:String,friendly_name:String)),idp_sso_target_url_runtime_params:Hash(String,String)|Nil=nil,uid_getter:String|Nil=nil,idp_cert:String|Nil=nil,idp_cert_fingerprint:String|Nil=nil,getter_service_name:String|Nil=nil,getter_statements:Hash(String,Array(String))|Nil=nil,idp_slo_target_url:String|Nil=nil,slo_default_relay_state:String|Nil=nil)-instance-method","name":"create","abstract":false,"args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"authority_id","external_name":"authority_id","restriction":"String"},{"name":"issuer","external_name":"issuer","restriction":"String"},{"name":"idp_sso_target_url","external_name":"idp_sso_target_url","restriction":"String"},{"name":"name_identifier_format","external_name":"name_identifier_format","restriction":"String"},{"name":"assertion_consumer_service_url","external_name":"assertion_consumer_service_url","restriction":"String"},{"name":"request_attributes","external_name":"request_attributes","restriction":"Array(NamedTuple(name: String, name_format: String, friendly_name: String))"},{"name":"idp_sso_target_url_runtime_params","default_value":"nil","external_name":"idp_sso_target_url_runtime_params","restriction":"Hash(String, String) | ::Nil"},{"name":"uid_getter","default_value":"nil","external_name":"uid_getter","restriction":"String | ::Nil"},{"name":"idp_cert","default_value":"nil","external_name":"idp_cert","restriction":"String | ::Nil"},{"name":"idp_cert_fingerprint","default_value":"nil","external_name":"idp_cert_fingerprint","restriction":"String | ::Nil"},{"name":"getter_service_name","default_value":"nil","external_name":"getter_service_name","restriction":"String | ::Nil"},{"name":"getter_statements","default_value":"nil","external_name":"getter_statements","restriction":"Hash(String, Array(String)) | ::Nil"},{"name":"idp_slo_target_url","default_value":"nil","external_name":"idp_slo_target_url","restriction":"String | ::Nil"},{"name":"slo_default_relay_state","default_value":"nil","external_name":"slo_default_relay_state","restriction":"String | ::Nil"}],"args_string":"(name : String, authority_id : String, issuer : String, idp_sso_target_url : String, name_identifier_format : String, assertion_consumer_service_url : String, request_attributes : Array(NamedTuple(name: String, name_format: String, friendly_name: String)), idp_sso_target_url_runtime_params : Hash(String, String) | Nil = nil, uid_getter : String | Nil = nil, idp_cert : String | Nil = nil, idp_cert_fingerprint : String | Nil = nil, getter_service_name : String | Nil = nil, getter_statements : Hash(String, Array(String)) | Nil = nil, idp_slo_target_url : String | Nil = nil, slo_default_relay_state : String | Nil = nil)","args_html":"(name : String, authority_id : String, issuer : String, idp_sso_target_url : String, name_identifier_format : String, assertion_consumer_service_url : String, request_attributes : Array(NamedTuple(name: String, name_format: String, friendly_name: String)), idp_sso_target_url_runtime_params : Hash(String, String) | Nil = nil, uid_getter : String | Nil = nil, idp_cert : String | Nil = nil, idp_cert_fingerprint : String | Nil = nil, getter_service_name : String | Nil = nil, getter_statements : Hash(String, Array(String)) | Nil = nil, idp_slo_target_url : String | Nil = nil, slo_default_relay_state : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/auths/saml.cr","line_number":10,"url":null},"def":{"name":"create","args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"authority_id","external_name":"authority_id","restriction":"String"},{"name":"issuer","external_name":"issuer","restriction":"String"},{"name":"idp_sso_target_url","external_name":"idp_sso_target_url","restriction":"String"},{"name":"name_identifier_format","external_name":"name_identifier_format","restriction":"String"},{"name":"assertion_consumer_service_url","external_name":"assertion_consumer_service_url","restriction":"String"},{"name":"request_attributes","external_name":"request_attributes","restriction":"Array(NamedTuple(name: String, name_format: String, friendly_name: String))"},{"name":"idp_sso_target_url_runtime_params","default_value":"nil","external_name":"idp_sso_target_url_runtime_params","restriction":"Hash(String, String) | ::Nil"},{"name":"uid_getter","default_value":"nil","external_name":"uid_getter","restriction":"String | ::Nil"},{"name":"idp_cert","default_value":"nil","external_name":"idp_cert","restriction":"String | ::Nil"},{"name":"idp_cert_fingerprint","default_value":"nil","external_name":"idp_cert_fingerprint","restriction":"String | ::Nil"},{"name":"getter_service_name","default_value":"nil","external_name":"getter_service_name","restriction":"String | ::Nil"},{"name":"getter_statements","default_value":"nil","external_name":"getter_statements","restriction":"Hash(String, Array(String)) | ::Nil"},{"name":"idp_slo_target_url","default_value":"nil","external_name":"idp_slo_target_url","restriction":"String | ::Nil"},{"name":"slo_default_relay_state","default_value":"nil","external_name":"slo_default_relay_state","restriction":"String | ::Nil"}],"visibility":"Public","body":"super(**args)"}},{"html_id":"update(id:String,name:String|Nil=nil,authority_id:String|Nil=nil,issuer:String|Nil=nil,idp_sso_target_url:String|Nil=nil,name_identifier_format:String|Nil=nil,assertion_consumer_service_url:String|Nil=nil,request_attributes:Array(NamedTuple(name:String,name_format:String,friendly_name:String))|Nil=nil,idp_sso_target_url_runtime_params:Hash(String,String)|Nil=nil,uid_getter:String|Nil=nil,idp_cert:String|Nil=nil,idp_cert_fingerprint:String|Nil=nil,getter_service_name:String|Nil=nil,getter_statements:Hash(String,Array(String))|Nil=nil,idp_slo_target_url:String|Nil=nil,slo_default_relay_state:String|Nil=nil)-instance-method","name":"update","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"authority_id","default_value":"nil","external_name":"authority_id","restriction":"String | ::Nil"},{"name":"issuer","default_value":"nil","external_name":"issuer","restriction":"String | ::Nil"},{"name":"idp_sso_target_url","default_value":"nil","external_name":"idp_sso_target_url","restriction":"String | ::Nil"},{"name":"name_identifier_format","default_value":"nil","external_name":"name_identifier_format","restriction":"String | ::Nil"},{"name":"assertion_consumer_service_url","default_value":"nil","external_name":"assertion_consumer_service_url","restriction":"String | ::Nil"},{"name":"request_attributes","default_value":"nil","external_name":"request_attributes","restriction":"Array(NamedTuple(name: String, name_format: String, friendly_name: String)) | ::Nil"},{"name":"idp_sso_target_url_runtime_params","default_value":"nil","external_name":"idp_sso_target_url_runtime_params","restriction":"Hash(String, String) | ::Nil"},{"name":"uid_getter","default_value":"nil","external_name":"uid_getter","restriction":"String | ::Nil"},{"name":"idp_cert","default_value":"nil","external_name":"idp_cert","restriction":"String | ::Nil"},{"name":"idp_cert_fingerprint","default_value":"nil","external_name":"idp_cert_fingerprint","restriction":"String | ::Nil"},{"name":"getter_service_name","default_value":"nil","external_name":"getter_service_name","restriction":"String | ::Nil"},{"name":"getter_statements","default_value":"nil","external_name":"getter_statements","restriction":"Hash(String, Array(String)) | ::Nil"},{"name":"idp_slo_target_url","default_value":"nil","external_name":"idp_slo_target_url","restriction":"String | ::Nil"},{"name":"slo_default_relay_state","default_value":"nil","external_name":"slo_default_relay_state","restriction":"String | ::Nil"}],"args_string":"(id : String, name : String | Nil = nil, authority_id : String | Nil = nil, issuer : String | Nil = nil, idp_sso_target_url : String | Nil = nil, name_identifier_format : String | Nil = nil, assertion_consumer_service_url : String | Nil = nil, request_attributes : Array(NamedTuple(name: String, name_format: String, friendly_name: String)) | Nil = nil, idp_sso_target_url_runtime_params : Hash(String, String) | Nil = nil, uid_getter : String | Nil = nil, idp_cert : String | Nil = nil, idp_cert_fingerprint : String | Nil = nil, getter_service_name : String | Nil = nil, getter_statements : Hash(String, Array(String)) | Nil = nil, idp_slo_target_url : String | Nil = nil, slo_default_relay_state : String | Nil = nil)","args_html":"(id : String, name : String | Nil = nil, authority_id : String | Nil = nil, issuer : String | Nil = nil, idp_sso_target_url : String | Nil = nil, name_identifier_format : String | Nil = nil, assertion_consumer_service_url : String | Nil = nil, request_attributes : Array(NamedTuple(name: String, name_format: String, friendly_name: String)) | Nil = nil, idp_sso_target_url_runtime_params : Hash(String, String) | Nil = nil, uid_getter : String | Nil = nil, idp_cert : String | Nil = nil, idp_cert_fingerprint : String | Nil = nil, getter_service_name : String | Nil = nil, getter_statements : Hash(String, Array(String)) | Nil = nil, idp_slo_target_url : String | Nil = nil, slo_default_relay_state : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/auths/saml.cr","line_number":30,"url":null},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"authority_id","default_value":"nil","external_name":"authority_id","restriction":"String | ::Nil"},{"name":"issuer","default_value":"nil","external_name":"issuer","restriction":"String | ::Nil"},{"name":"idp_sso_target_url","default_value":"nil","external_name":"idp_sso_target_url","restriction":"String | ::Nil"},{"name":"name_identifier_format","default_value":"nil","external_name":"name_identifier_format","restriction":"String | ::Nil"},{"name":"assertion_consumer_service_url","default_value":"nil","external_name":"assertion_consumer_service_url","restriction":"String | ::Nil"},{"name":"request_attributes","default_value":"nil","external_name":"request_attributes","restriction":"Array(NamedTuple(name: String, name_format: String, friendly_name: String)) | ::Nil"},{"name":"idp_sso_target_url_runtime_params","default_value":"nil","external_name":"idp_sso_target_url_runtime_params","restriction":"Hash(String, String) | ::Nil"},{"name":"uid_getter","default_value":"nil","external_name":"uid_getter","restriction":"String | ::Nil"},{"name":"idp_cert","default_value":"nil","external_name":"idp_cert","restriction":"String | ::Nil"},{"name":"idp_cert_fingerprint","default_value":"nil","external_name":"idp_cert_fingerprint","restriction":"String | ::Nil"},{"name":"getter_service_name","default_value":"nil","external_name":"getter_service_name","restriction":"String | ::Nil"},{"name":"getter_statements","default_value":"nil","external_name":"getter_statements","restriction":"Hash(String, Array(String)) | ::Nil"},{"name":"idp_slo_target_url","default_value":"nil","external_name":"idp_slo_target_url","restriction":"String | ::Nil"},{"name":"slo_default_relay_state","default_value":"nil","external_name":"slo_default_relay_state","restriction":"String | ::Nil"}],"visibility":"Public","body":"super(**args)"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Settings","path":"PlaceOS/Client/APIWrapper/Settings.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Settings","name":"Settings","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/settings.cr","line_number":5,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"}],"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/settings.cr","line_number":56,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"create(parent_id:String,settings_string:String,encryption_level:Encryption::Level=Encryption::Level::Support)-instance-method","name":"create","doc":"Create new settings.","summary":"Create new settings.
","abstract":false,"args":[{"name":"parent_id","external_name":"parent_id","restriction":"String"},{"name":"settings_string","external_name":"settings_string","restriction":"String"},{"name":"encryption_level","default_value":"Encryption::Level::Support","external_name":"encryption_level","restriction":"Encryption::Level"}],"args_string":"(parent_id : String, settings_string : String, encryption_level : Encryption::Level = Encryption::Level::Support)","args_html":"(parent_id : String, settings_string : String, encryption_level : Encryption::Level = Encryption::Level::Support)","location":{"filename":"src/placeos/api_wrapper/settings.cr","line_number":13,"url":null},"def":{"name":"create","args":[{"name":"parent_id","external_name":"parent_id","restriction":"String"},{"name":"settings_string","external_name":"settings_string","restriction":"String"},{"name":"encryption_level","default_value":"Encryption::Level::Support","external_name":"encryption_level","restriction":"Encryption::Level"}],"visibility":"Public","body":"YAML.parse(settings_string)\ncreate_actual(parent_id, settings_string, encryption_level.to_i)\n"}},{"html_id":"search(parent_ids:Array(String))-instance-method","name":"search","abstract":false,"args":[{"name":"parent_ids","external_name":"parent_ids","restriction":"Array(String)"}],"args_string":"(parent_ids : Array(String))","args_html":"(parent_ids : Array(String))","location":{"filename":"src/placeos/api_wrapper/settings.cr","line_number":42,"url":null},"def":{"name":"search","args":[{"name":"parent_ids","external_name":"parent_ids","restriction":"Array(String)"}],"visibility":"Public","body":"search(parent_id: parent_ids.join(\",\"))"}},{"html_id":"search(q:String|Nil=nil,limit:Int=1000,offset:Int=0,parent_id:String|Nil=nil)-instance-method","name":"search","doc":"List or search for systems.","summary":"List or search for systems.
","abstract":false,"args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"1000","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"parent_id","default_value":"nil","external_name":"parent_id","restriction":"String | ::Nil"}],"args_string":"(q : String | Nil = nil, limit : Int = 1000, offset : Int = 0, parent_id : String | Nil = nil)","args_html":"(q : String | Nil = nil, limit : Int = 1000, offset : Int = 0, parent_id : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/settings.cr","line_number":47,"url":null},"def":{"name":"search","args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"1000","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"parent_id","default_value":"nil","external_name":"parent_id","restriction":"String | ::Nil"}],"visibility":"Public","body":"get(base, params: from_args, as: Array(API::Models::Settings))"}},{"html_id":"update(id:String,settings_string:String)-instance-method","name":"update","doc":"Update settings.","summary":"Update settings.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"settings_string","external_name":"settings_string","restriction":"String"}],"args_string":"(id : String, settings_string : String)","args_html":"(id : String, settings_string : String)","location":{"filename":"src/placeos/api_wrapper/settings.cr","line_number":31,"url":null},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"settings_string","external_name":"settings_string","restriction":"String"}],"visibility":"Public","body":"YAML.parse(settings_string)\nput(\"#{base}/#{id}\", body: from_args, as: API::Models::Settings)\n"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Systems","path":"PlaceOS/Client/APIWrapper/Systems.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Systems","name":"Systems","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/systems.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"}],"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"constructors":[{"html_id":"new(client:APIWrapper)-class-method","name":"new","abstract":false,"args":[{"name":"client","external_name":"client","restriction":"APIWrapper"}],"args_string":"(client : APIWrapper)","args_html":"(client : APIWrapper)","location":{"filename":"src/placeos/api_wrapper/systems.cr","line_number":163,"url":null},"def":{"name":"new","args":[{"name":"client","external_name":"client","restriction":"APIWrapper"}],"visibility":"Public","body":"_ = allocate\n_.initialize(client)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/systems.cr","line_number":7,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"count(id:String,module_name:String):Int32|Nil-instance-method","name":"count","doc":"Gets the number of *module_name* instances available in system *id*.","summary":"Gets the number of module_name instances available in system id.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"module_name","external_name":"module_name","restriction":"String"}],"args_string":"(id : String, module_name : String) : Int32 | Nil","args_html":"(id : String, module_name : String) : Int32 | Nil","location":{"filename":"src/placeos/api_wrapper/systems.cr","line_number":48,"url":null},"def":{"name":"count","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"module_name","external_name":"module_name","restriction":"String"}],"return_type":"Int32 | ::Nil","visibility":"Public","body":"(types(id))[module_name]?"}},{"html_id":"create(name:String,zones:Array(String),description:String|Nil=nil,email:String|Nil=nil,capacity:Int|Nil=nil,bookable:Bool|Nil=nil,installed_ui_devices:Int|Nil=nil,modules:Array(String)|Nil=nil,support_url:String|Nil=nil,display_name:String|Nil=nil,timezone:String|Nil=nil,code:String|Nil=nil,type:String|Nil=nil,map_id:String|Nil=nil,images:Array(String)|Nil=nil,features:Array(String)|Nil=nil,public:Bool|Nil=nil)-instance-method","name":"create","doc":"Creates a new system.\n\nSystems must be given a unique *name* within the PlaceOS instance they are\nrunning from. Additionally, a system must be a member of at least one\n*zone*. All other attributes are optional at the time of creation.","summary":"Creates a new system.
","abstract":false,"args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"zones","external_name":"zones","restriction":"Array(String)"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"},{"name":"email","default_value":"nil","external_name":"email","restriction":"String | ::Nil"},{"name":"capacity","default_value":"nil","external_name":"capacity","restriction":"Int | ::Nil"},{"name":"bookable","default_value":"nil","external_name":"bookable","restriction":"Bool | ::Nil"},{"name":"installed_ui_devices","default_value":"nil","external_name":"installed_ui_devices","restriction":"Int | ::Nil"},{"name":"modules","default_value":"nil","external_name":"modules","restriction":"Array(String) | ::Nil"},{"name":"support_url","default_value":"nil","external_name":"support_url","restriction":"String | ::Nil"},{"name":"display_name","default_value":"nil","external_name":"display_name","restriction":"String | ::Nil"},{"name":"timezone","default_value":"nil","external_name":"timezone","restriction":"String | ::Nil"},{"name":"code","default_value":"nil","external_name":"code","restriction":"String | ::Nil"},{"name":"type","default_value":"nil","external_name":"type","restriction":"String | ::Nil"},{"name":"map_id","default_value":"nil","external_name":"map_id","restriction":"String | ::Nil"},{"name":"images","default_value":"nil","external_name":"images","restriction":"Array(String) | ::Nil"},{"name":"features","default_value":"nil","external_name":"features","restriction":"Array(String) | ::Nil"},{"name":"public","default_value":"nil","external_name":"public","restriction":"Bool | ::Nil"}],"args_string":"(name : String, zones : Array(String), description : String | Nil = nil, email : String | Nil = nil, capacity : Int | Nil = nil, bookable : Bool | Nil = nil, installed_ui_devices : Int | Nil = nil, modules : Array(String) | Nil = nil, support_url : String | Nil = nil, display_name : String | Nil = nil, timezone : String | Nil = nil, code : String | Nil = nil, type : String | Nil = nil, map_id : String | Nil = nil, images : Array(String) | Nil = nil, features : Array(String) | Nil = nil, public : Bool | Nil = nil)","args_html":"(name : String, zones : Array(String), description : String | Nil = nil, email : String | Nil = nil, capacity : Int | Nil = nil, bookable : Bool | Nil = nil, installed_ui_devices : Int | Nil = nil, modules : Array(String) | Nil = nil, support_url : String | Nil = nil, display_name : String | Nil = nil, timezone : String | Nil = nil, code : String | Nil = nil, type : String | Nil = nil, map_id : String | Nil = nil, images : Array(String) | Nil = nil, features : Array(String) | Nil = nil, public : Bool | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/systems.cr","line_number":69,"url":null},"def":{"name":"create","args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"zones","external_name":"zones","restriction":"Array(String)"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"},{"name":"email","default_value":"nil","external_name":"email","restriction":"String | ::Nil"},{"name":"capacity","default_value":"nil","external_name":"capacity","restriction":"Int | ::Nil"},{"name":"bookable","default_value":"nil","external_name":"bookable","restriction":"Bool | ::Nil"},{"name":"installed_ui_devices","default_value":"nil","external_name":"installed_ui_devices","restriction":"Int | ::Nil"},{"name":"modules","default_value":"nil","external_name":"modules","restriction":"Array(String) | ::Nil"},{"name":"support_url","default_value":"nil","external_name":"support_url","restriction":"String | ::Nil"},{"name":"display_name","default_value":"nil","external_name":"display_name","restriction":"String | ::Nil"},{"name":"timezone","default_value":"nil","external_name":"timezone","restriction":"String | ::Nil"},{"name":"code","default_value":"nil","external_name":"code","restriction":"String | ::Nil"},{"name":"type","default_value":"nil","external_name":"type","restriction":"String | ::Nil"},{"name":"map_id","default_value":"nil","external_name":"map_id","restriction":"String | ::Nil"},{"name":"images","default_value":"nil","external_name":"images","restriction":"Array(String) | ::Nil"},{"name":"features","default_value":"nil","external_name":"features","restriction":"Array(String) | ::Nil"},{"name":"public","default_value":"nil","external_name":"public","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"post(base, body: from_args, as: System)"}},{"html_id":"execute(id:String,module_name:String,method:String,index:Int32=1,*args:Array(JSON::Any::Type))-instance-method","name":"execute","doc":"Executes a behaviour exposed by a module within the passed system *id*.","summary":"Executes a behaviour exposed by a module within the passed system id.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"module_name","external_name":"module_name","restriction":"String"},{"name":"method","external_name":"method","restriction":"String"},{"name":"index","default_value":"1","external_name":"index","restriction":"Int32"},{"name":"args","external_name":"args","restriction":"Array(JSON::Any::Type)"}],"args_string":"(id : String, module_name : String, method : String, index : Int32 = 1, *args : Array(JSON::Any::Type))","args_html":"(id : String, module_name : String, method : String, index : Int32 = 1, *args : Array(JSON::Any::Type))","location":{"filename":"src/placeos/api_wrapper/systems.cr","line_number":25,"url":null},"def":{"name":"execute","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"module_name","external_name":"module_name","restriction":"String"},{"name":"method","external_name":"method","restriction":"String"},{"name":"index","default_value":"1","external_name":"index","restriction":"Int32"},{"name":"args","external_name":"args","restriction":"Array(JSON::Any::Type)"}],"splat_index":4,"visibility":"Public","body":"post(\"#{base}/#{id}/#{module_name}_#{index}/#{method}\", body: args)"}},{"html_id":"functions(id:String,module_name:String,index:Int=1)-instance-method","name":"functions","doc":"Queries the behaviour exposed by a module within system *id*.","summary":"Queries the behaviour exposed by a module within system id.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"module_name","external_name":"module_name","restriction":"String"},{"name":"index","default_value":"1","external_name":"index","restriction":"Int"}],"args_string":"(id : String, module_name : String, index : Int = 1)","args_html":"(id : String, module_name : String, index : Int = 1)","location":{"filename":"src/placeos/api_wrapper/systems.cr","line_number":43,"url":null},"def":{"name":"functions","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"module_name","external_name":"module_name","restriction":"String"},{"name":"index","default_value":"1","external_name":"index","restriction":"Int"}],"visibility":"Public","body":"get(\"#{base}/#{id}/functions/#{module_name}_#{index}\", as: Hash(String, Function))"}},{"html_id":"search(q:String|Nil=nil,limit:Int=1000,offset:Int=0,zone_id:String|Nil=nil,module_id:String|Nil=nil,features:String|Nil=nil,capacity:Int32|Nil=nil,bookable:Bool|Nil=nil)-instance-method","name":"search","doc":"List or search for systems.\n\nResults maybe filtered by specifying a query - *q* - to search across system\nattributes. A small query language is supported within this:\n\nOperator | Action\n-------- | ------\n`+` | Matches both terms\n`|` | Matches either terms\n`-` | Negates a single token\n`\"` | Wraps tokens to form a phrase\n`(` `)` | Provides precedence\n`~N` | Specifies edit distance (fuzziness) after a word\n`~N` | Specifies slop amount (deviation) after a phrase\n\nUp to *limit* systems will be returned, with a paging based on *offset*.","summary":"List or search for systems.
","abstract":false,"args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"1000","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"zone_id","default_value":"nil","external_name":"zone_id","restriction":"String | ::Nil"},{"name":"module_id","default_value":"nil","external_name":"module_id","restriction":"String | ::Nil"},{"name":"features","default_value":"nil","external_name":"features","restriction":"String | ::Nil"},{"name":"capacity","default_value":"nil","external_name":"capacity","restriction":"Int32 | ::Nil"},{"name":"bookable","default_value":"nil","external_name":"bookable","restriction":"Bool | ::Nil"}],"args_string":"(q : String | Nil = nil, limit : Int = 1000, offset : Int = 0, zone_id : String | Nil = nil, module_id : String | Nil = nil, features : String | Nil = nil, capacity : Int32 | Nil = nil, bookable : Bool | Nil = nil)","args_html":"(q : String | Nil = nil, limit : Int = 1000, offset : Int = 0, zone_id : String | Nil = nil, module_id : String | Nil = nil, features : String | Nil = nil, capacity : Int32 | Nil = nil, bookable : Bool | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/systems.cr","line_number":140,"url":null},"def":{"name":"search","args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"1000","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"zone_id","default_value":"nil","external_name":"zone_id","restriction":"String | ::Nil"},{"name":"module_id","default_value":"nil","external_name":"module_id","restriction":"String | ::Nil"},{"name":"features","default_value":"nil","external_name":"features","restriction":"String | ::Nil"},{"name":"capacity","default_value":"nil","external_name":"capacity","restriction":"Int32 | ::Nil"},{"name":"bookable","default_value":"nil","external_name":"bookable","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"get(base, params: from_args, as: Array(System))"}},{"html_id":"settings(id:String)-instance-method","name":"settings","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"}],"args_string":"(id : String)","args_html":"(id : String)","location":{"filename":"src/placeos/api_wrapper/systems.cr","line_number":57,"url":null},"def":{"name":"settings","args":[{"name":"id","external_name":"id","restriction":"String"}],"visibility":"Public","body":"get(\"#{base}/#{id}/settings\", as: Array(Settings))"}},{"html_id":"start(id:String)-instance-method","name":"start","doc":"Start all modules within a system.","summary":"Start all modules within a system.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"}],"args_string":"(id : String)","args_html":"(id : String)","location":{"filename":"src/placeos/api_wrapper/systems.cr","line_number":13,"url":null},"def":{"name":"start","args":[{"name":"id","external_name":"id","restriction":"String"}],"visibility":"Public","body":"post(\"#{base}/#{id}/start\")\nnil\n"}},{"html_id":"state(id:String,module_name:String,index:Int=1,lookup:String|Nil=nil)-instance-method","name":"state","doc":"Queries the state exposed by a module within the passed system *id*.","summary":"Queries the state exposed by a module within the passed system id.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"module_name","external_name":"module_name","restriction":"String"},{"name":"index","default_value":"1","external_name":"index","restriction":"Int"},{"name":"lookup","default_value":"nil","external_name":"lookup","restriction":"String | ::Nil"}],"args_string":"(id : String, module_name : String, index : Int = 1, lookup : String | Nil = nil)","args_html":"(id : String, module_name : String, index : Int = 1, lookup : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/systems.cr","line_number":36,"url":null},"def":{"name":"state","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"module_name","external_name":"module_name","restriction":"String"},{"name":"index","default_value":"1","external_name":"index","restriction":"Int"},{"name":"lookup","default_value":"nil","external_name":"lookup","restriction":"String | ::Nil"}],"visibility":"Public","body":"path = \"#{base}/#{id}/#{module_name}_#{index}\"\nif lookup.nil?\nelse\n path = path + \"/#{lookup}\"\nend\nget(path)\n"}},{"html_id":"stop(id:String)-instance-method","name":"stop","doc":"Stops all modules within a system.","summary":"Stops all modules within a system.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"}],"args_string":"(id : String)","args_html":"(id : String)","location":{"filename":"src/placeos/api_wrapper/systems.cr","line_number":19,"url":null},"def":{"name":"stop","args":[{"name":"id","external_name":"id","restriction":"String"}],"visibility":"Public","body":"post(\"#{base}/#{id}/stop\")\nnil\n"}},{"html_id":"types(id:String)-instance-method","name":"types","doc":"Queries the types of modules available in system *id*.","summary":"Queries the types of modules available in system id.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"}],"args_string":"(id : String)","args_html":"(id : String)","location":{"filename":"src/placeos/api_wrapper/systems.cr","line_number":53,"url":null},"def":{"name":"types","args":[{"name":"id","external_name":"id","restriction":"String"}],"visibility":"Public","body":"get(\"#{base}/#{id}/types\", as: Hash(String, Int32))"}},{"html_id":"update(id:String,version:Int,name:String|Nil=nil,zones:Array(String)|Nil=nil,description:String|Nil=nil,email:String|Nil=nil,capacity:Int|Nil=nil,bookable:Bool|Nil=nil,installed_ui_devices:Int|Nil=nil,modules:Array(String)|Nil=nil,support_url:String|Nil=nil,display_name:String|Nil=nil,timezone:String|Nil=nil,code:String|Nil=nil,type:String|Nil=nil,map_id:String|Nil=nil,images:Array(String)|Nil=nil,features:Array(String)|Nil=nil,public:Bool|Nil=nil)-instance-method","name":"update","doc":"Requests a change to an existing system.\n\nIn addition to specifying the ID of the system to update, you must reference\nthe the current system metadata *version* for the update to be allowed. This\nmust match the current version attribute of the system and will be\nincrememented following a successful update.","summary":"Requests a change to an existing system.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"version","external_name":"version","restriction":"Int"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"zones","default_value":"nil","external_name":"zones","restriction":"Array(String) | ::Nil"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"},{"name":"email","default_value":"nil","external_name":"email","restriction":"String | ::Nil"},{"name":"capacity","default_value":"nil","external_name":"capacity","restriction":"Int | ::Nil"},{"name":"bookable","default_value":"nil","external_name":"bookable","restriction":"Bool | ::Nil"},{"name":"installed_ui_devices","default_value":"nil","external_name":"installed_ui_devices","restriction":"Int | ::Nil"},{"name":"modules","default_value":"nil","external_name":"modules","restriction":"Array(String) | ::Nil"},{"name":"support_url","default_value":"nil","external_name":"support_url","restriction":"String | ::Nil"},{"name":"display_name","default_value":"nil","external_name":"display_name","restriction":"String | ::Nil"},{"name":"timezone","default_value":"nil","external_name":"timezone","restriction":"String | ::Nil"},{"name":"code","default_value":"nil","external_name":"code","restriction":"String | ::Nil"},{"name":"type","default_value":"nil","external_name":"type","restriction":"String | ::Nil"},{"name":"map_id","default_value":"nil","external_name":"map_id","restriction":"String | ::Nil"},{"name":"images","default_value":"nil","external_name":"images","restriction":"Array(String) | ::Nil"},{"name":"features","default_value":"nil","external_name":"features","restriction":"Array(String) | ::Nil"},{"name":"public","default_value":"nil","external_name":"public","restriction":"Bool | ::Nil"}],"args_string":"(id : String, version : Int, name : String | Nil = nil, zones : Array(String) | Nil = nil, description : String | Nil = nil, email : String | Nil = nil, capacity : Int | Nil = nil, bookable : Bool | Nil = nil, installed_ui_devices : Int | Nil = nil, modules : Array(String) | Nil = nil, support_url : String | Nil = nil, display_name : String | Nil = nil, timezone : String | Nil = nil, code : String | Nil = nil, type : String | Nil = nil, map_id : String | Nil = nil, images : Array(String) | Nil = nil, features : Array(String) | Nil = nil, public : Bool | Nil = nil)","args_html":"(id : String, version : Int, name : String | Nil = nil, zones : Array(String) | Nil = nil, description : String | Nil = nil, email : String | Nil = nil, capacity : Int | Nil = nil, bookable : Bool | Nil = nil, installed_ui_devices : Int | Nil = nil, modules : Array(String) | Nil = nil, support_url : String | Nil = nil, display_name : String | Nil = nil, timezone : String | Nil = nil, code : String | Nil = nil, type : String | Nil = nil, map_id : String | Nil = nil, images : Array(String) | Nil = nil, features : Array(String) | Nil = nil, public : Bool | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/systems.cr","line_number":97,"url":null},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"version","external_name":"version","restriction":"Int"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"zones","default_value":"nil","external_name":"zones","restriction":"Array(String) | ::Nil"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"},{"name":"email","default_value":"nil","external_name":"email","restriction":"String | ::Nil"},{"name":"capacity","default_value":"nil","external_name":"capacity","restriction":"Int | ::Nil"},{"name":"bookable","default_value":"nil","external_name":"bookable","restriction":"Bool | ::Nil"},{"name":"installed_ui_devices","default_value":"nil","external_name":"installed_ui_devices","restriction":"Int | ::Nil"},{"name":"modules","default_value":"nil","external_name":"modules","restriction":"Array(String) | ::Nil"},{"name":"support_url","default_value":"nil","external_name":"support_url","restriction":"String | ::Nil"},{"name":"display_name","default_value":"nil","external_name":"display_name","restriction":"String | ::Nil"},{"name":"timezone","default_value":"nil","external_name":"timezone","restriction":"String | ::Nil"},{"name":"code","default_value":"nil","external_name":"code","restriction":"String | ::Nil"},{"name":"type","default_value":"nil","external_name":"type","restriction":"String | ::Nil"},{"name":"map_id","default_value":"nil","external_name":"map_id","restriction":"String | ::Nil"},{"name":"images","default_value":"nil","external_name":"images","restriction":"Array(String) | ::Nil"},{"name":"features","default_value":"nil","external_name":"features","restriction":"Array(String) | ::Nil"},{"name":"public","default_value":"nil","external_name":"public","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"put(\"#{base}/#{id}\", params: \"version=#{version}\", body: from_args, as: System)"}},{"html_id":"with_emails(list:Array(String)|String)-instance-method","name":"with_emails","doc":"Returns systems with a specified email address(es)\n","summary":"Returns systems with a specified email address(es)
","abstract":false,"args":[{"name":"list","external_name":"list","restriction":"Array(String) | String"}],"args_string":"(list : Array(String) | String)","args_html":"(list : Array(String) | String)","location":{"filename":"src/placeos/api_wrapper/systems.cr","line_number":155,"url":null},"def":{"name":"with_emails","args":[{"name":"list","external_name":"list","restriction":"Array(String) | String"}],"visibility":"Public","body":"query = list.is_a?(Array) ? list.join(',') : list\nget(\"#{base}/with_emails\", params: HTTP::Params {\"in\" => query}, as: Array(System))\n"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/SystemTriggers","path":"PlaceOS/Client/APIWrapper/SystemTriggers.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::SystemTriggers","name":"SystemTriggers","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/system_triggers.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"SystemTriggers are embedded beneath a systems route","summary":"SystemTriggers are embedded beneath a systems route
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/system_triggers.cr","line_number":6,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Triggers","path":"PlaceOS/Client/APIWrapper/Triggers.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Triggers","name":"Triggers","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/triggers.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"}],"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/triggers.cr","line_number":8,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Users","path":"PlaceOS/Client/APIWrapper/Users.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Users","name":"Users","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/users.cr","line_number":7,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"}],"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"doc":"TODO:\n- create\n- update","summary":"TODO - create - update
","instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/users.cr","line_number":11,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"current-instance-method","name":"current","abstract":false,"location":{"filename":"src/placeos/api_wrapper/users.cr","line_number":13,"url":null},"def":{"name":"current","visibility":"Public","body":"get(\"#{base}/current\", as: User)"}},{"html_id":"resource_token-instance-method","name":"resource_token","abstract":false,"location":{"filename":"src/placeos/api_wrapper/users.cr","line_number":17,"url":null},"def":{"name":"resource_token","visibility":"Public","body":"post(\"#{base}/resource_token\", as: ResourceToken)"}},{"html_id":"search(q:String|Nil=nil,limit:Int=20,offset:Int=0,authority_id:String|Nil=nil,include_deleted:Bool=false,include_metadata:Bool=false)-instance-method","name":"search","doc":"List or search for users.\n\nResults maybe filtered by specifying a query - *q* - to search across zone\nattributes. A small query language is supported within this:\n\nOperator | Action\n-------- | ------\n`+` | Matches both terms\n`|` | Matches either terms\n`-` | Negates a single token\n`\"` | Wraps tokens to form a phrase\n`(` `)` | Provides precedence\n`~N` | Specifies edit distance (fuzziness) after a word\n`~N` | Specifies slop amount (deviation) after a phrase\n\nUp to *limit* zones will be returned, with a paging based on *offset*.\n\nResults my also also be limited to those associated with specific *tags*.","summary":"List or search for users.
","abstract":false,"args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"authority_id","default_value":"nil","external_name":"authority_id","restriction":"String | ::Nil"},{"name":"include_deleted","default_value":"false","external_name":"include_deleted","restriction":"Bool"},{"name":"include_metadata","default_value":"false","external_name":"include_metadata","restriction":"Bool"}],"args_string":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0, authority_id : String | Nil = nil, include_deleted : Bool = false, include_metadata : Bool = false)","args_html":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0, authority_id : String | Nil = nil, include_deleted : Bool = false, include_metadata : Bool = false)","location":{"filename":"src/placeos/api_wrapper/users.cr","line_number":39,"url":null},"def":{"name":"search","args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"authority_id","default_value":"nil","external_name":"authority_id","restriction":"String | ::Nil"},{"name":"include_deleted","default_value":"false","external_name":"include_deleted","restriction":"Bool"},{"name":"include_metadata","default_value":"false","external_name":"include_metadata","restriction":"Bool"}],"visibility":"Public","body":"get(base, params: from_args, as: Array(API::Models::User))"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Zones","path":"PlaceOS/Client/APIWrapper/Zones.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Zones","name":"Zones","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/zones.cr","line_number":5,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"}],"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"constructors":[{"html_id":"new(client:APIWrapper)-class-method","name":"new","abstract":false,"args":[{"name":"client","external_name":"client","restriction":"APIWrapper"}],"args_string":"(client : APIWrapper)","args_html":"(client : APIWrapper)","location":{"filename":"src/placeos/api_wrapper/zones.cr","line_number":99,"url":null},"def":{"name":"new","args":[{"name":"client","external_name":"client","restriction":"APIWrapper"}],"visibility":"Public","body":"_ = allocate\n_.initialize(client)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/zones.cr","line_number":9,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"create(name:String,description:String|Nil=nil,tags:Array(String)|Nil=nil,settings:Settings|Nil=nil,triggers:Array(String)|Nil=nil,display_name:String|Nil=nil,location:String|Nil=nil,code:String|Nil=nil,type:String|Nil=nil,count:Int32|Nil=nil,capacity:Int32|Nil=nil,map_id:String|Nil=nil,parent_id:String|Nil=nil)-instance-method","name":"create","doc":"Creates a new zone.","summary":"Creates a new zone.
","abstract":false,"args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"},{"name":"tags","default_value":"nil","external_name":"tags","restriction":"Array(String) | ::Nil"},{"name":"settings","default_value":"nil","external_name":"settings","restriction":"Settings | ::Nil"},{"name":"triggers","default_value":"nil","external_name":"triggers","restriction":"Array(String) | ::Nil"},{"name":"display_name","default_value":"nil","external_name":"display_name","restriction":"String | ::Nil"},{"name":"location","default_value":"nil","external_name":"location","restriction":"String | ::Nil"},{"name":"code","default_value":"nil","external_name":"code","restriction":"String | ::Nil"},{"name":"type","default_value":"nil","external_name":"type","restriction":"String | ::Nil"},{"name":"count","default_value":"nil","external_name":"count","restriction":"Int32 | ::Nil"},{"name":"capacity","default_value":"nil","external_name":"capacity","restriction":"Int32 | ::Nil"},{"name":"map_id","default_value":"nil","external_name":"map_id","restriction":"String | ::Nil"},{"name":"parent_id","default_value":"nil","external_name":"parent_id","restriction":"String | ::Nil"}],"args_string":"(name : String, description : String | Nil = nil, tags : Array(String) | Nil = nil, settings : Settings | Nil = nil, triggers : Array(String) | Nil = nil, display_name : String | Nil = nil, location : String | Nil = nil, code : String | Nil = nil, type : String | Nil = nil, count : Int32 | Nil = nil, capacity : Int32 | Nil = nil, map_id : String | Nil = nil, parent_id : String | Nil = nil)","args_html":"(name : String, description : String | Nil = nil, tags : Array(String) | Nil = nil, settings : Settings | Nil = nil, triggers : Array(String) | Nil = nil, display_name : String | Nil = nil, location : String | Nil = nil, code : String | Nil = nil, type : String | Nil = nil, count : Int32 | Nil = nil, capacity : Int32 | Nil = nil, map_id : String | Nil = nil, parent_id : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/zones.cr","line_number":28,"url":null},"def":{"name":"create","args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"},{"name":"tags","default_value":"nil","external_name":"tags","restriction":"Array(String) | ::Nil"},{"name":"settings","default_value":"nil","external_name":"settings","restriction":"Settings | ::Nil"},{"name":"triggers","default_value":"nil","external_name":"triggers","restriction":"Array(String) | ::Nil"},{"name":"display_name","default_value":"nil","external_name":"display_name","restriction":"String | ::Nil"},{"name":"location","default_value":"nil","external_name":"location","restriction":"String | ::Nil"},{"name":"code","default_value":"nil","external_name":"code","restriction":"String | ::Nil"},{"name":"type","default_value":"nil","external_name":"type","restriction":"String | ::Nil"},{"name":"count","default_value":"nil","external_name":"count","restriction":"Int32 | ::Nil"},{"name":"capacity","default_value":"nil","external_name":"capacity","restriction":"Int32 | ::Nil"},{"name":"map_id","default_value":"nil","external_name":"map_id","restriction":"String | ::Nil"},{"name":"parent_id","default_value":"nil","external_name":"parent_id","restriction":"String | ::Nil"}],"visibility":"Public","body":"post(base, body: from_args, as: API::Models::Zone)"}},{"html_id":"execute(id:String,method:String,module_name:String,index:Int32=1,args=nil)-instance-method","name":"execute","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"method","external_name":"method","restriction":"String"},{"name":"module_name","external_name":"module_name","restriction":"String"},{"name":"index","default_value":"1","external_name":"index","restriction":"Int32"},{"name":"args","default_value":"nil","external_name":"args","restriction":""}],"args_string":"(id : String, method : String, module_name : String, index : Int32 = 1, args = nil)","args_html":"(id : String, method : String, module_name : String, index : Int32 = 1, args = nil)","location":{"filename":"src/placeos/api_wrapper/zones.cr","line_number":14,"url":null},"def":{"name":"execute","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"method","external_name":"method","restriction":"String"},{"name":"module_name","external_name":"module_name","restriction":"String"},{"name":"index","default_value":"1","external_name":"index","restriction":"Int32"},{"name":"args","default_value":"nil","external_name":"args","restriction":""}],"visibility":"Public","body":"post(\"#{base}/#{id}/#{module_name}_#{index}/#{method}\", body: args)"}},{"html_id":"search(q:String|Nil=nil,limit:Int=20,offset:Int=0,parent_id:String|Nil=nil,tags:Array(String)|String|Nil=nil)-instance-method","name":"search","doc":"List or search for zones.\n\nResults maybe filtered by specifying a query - *q* - to search across zone\nattributes. A small query language is supported within this:\n\nOperator | Action\n-------- | ------\n`+` | Matches both terms\n`|` | Matches either terms\n`-` | Negates a single token\n`\"` | Wraps tokens to form a phrase\n`(` `)` | Provides precedence\n`~N` | Specifies edit distance (fuzziness) after a word\n`~N` | Specifies slop amount (deviation) after a phrase\n\nUp to *limit* zones will be returned, with a paging based on *offset*.\n\nResults my also also be limited to those associated with specific *tags*.","summary":"List or search for zones.
","abstract":false,"args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"parent_id","default_value":"nil","external_name":"parent_id","restriction":"String | ::Nil"},{"name":"tags","default_value":"nil","external_name":"tags","restriction":"Array(String) | String | ::Nil"}],"args_string":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0, parent_id : String | Nil = nil, tags : Array(String) | String | Nil = nil)","args_html":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0, parent_id : String | Nil = nil, tags : Array(String) | String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/zones.cr","line_number":87,"url":null},"def":{"name":"search","args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"parent_id","default_value":"nil","external_name":"parent_id","restriction":"String | ::Nil"},{"name":"tags","default_value":"nil","external_name":"tags","restriction":"Array(String) | String | ::Nil"}],"visibility":"Public","body":"get(base, params: from_args, as: Array(API::Models::Zone))"}},{"html_id":"update(id:String,name:String|Nil=nil,description:String|Nil=nil,tags:Array(String)|Nil=nil,settings:Settings|Nil=nil,triggers:Array(String)|Nil=nil,display_name:String|Nil=nil,location:String|Nil=nil,code:String|Nil=nil,type:String|Nil=nil,count:Int32|Nil=nil,capacity:Int32|Nil=nil,map_id:String|Nil=nil,parent_id:String|Nil=nil)-instance-method","name":"update","doc":"Updates zone attributes or configuration.","summary":"Updates zone attributes or configuration.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"},{"name":"tags","default_value":"nil","external_name":"tags","restriction":"Array(String) | ::Nil"},{"name":"settings","default_value":"nil","external_name":"settings","restriction":"Settings | ::Nil"},{"name":"triggers","default_value":"nil","external_name":"triggers","restriction":"Array(String) | ::Nil"},{"name":"display_name","default_value":"nil","external_name":"display_name","restriction":"String | ::Nil"},{"name":"location","default_value":"nil","external_name":"location","restriction":"String | ::Nil"},{"name":"code","default_value":"nil","external_name":"code","restriction":"String | ::Nil"},{"name":"type","default_value":"nil","external_name":"type","restriction":"String | ::Nil"},{"name":"count","default_value":"nil","external_name":"count","restriction":"Int32 | ::Nil"},{"name":"capacity","default_value":"nil","external_name":"capacity","restriction":"Int32 | ::Nil"},{"name":"map_id","default_value":"nil","external_name":"map_id","restriction":"String | ::Nil"},{"name":"parent_id","default_value":"nil","external_name":"parent_id","restriction":"String | ::Nil"}],"args_string":"(id : String, name : String | Nil = nil, description : String | Nil = nil, tags : Array(String) | Nil = nil, settings : Settings | Nil = nil, triggers : Array(String) | Nil = nil, display_name : String | Nil = nil, location : String | Nil = nil, code : String | Nil = nil, type : String | Nil = nil, count : Int32 | Nil = nil, capacity : Int32 | Nil = nil, map_id : String | Nil = nil, parent_id : String | Nil = nil)","args_html":"(id : String, name : String | Nil = nil, description : String | Nil = nil, tags : Array(String) | Nil = nil, settings : Settings | Nil = nil, triggers : Array(String) | Nil = nil, display_name : String | Nil = nil, location : String | Nil = nil, code : String | Nil = nil, type : String | Nil = nil, count : Int32 | Nil = nil, capacity : Int32 | Nil = nil, map_id : String | Nil = nil, parent_id : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/zones.cr","line_number":47,"url":null},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"},{"name":"tags","default_value":"nil","external_name":"tags","restriction":"Array(String) | ::Nil"},{"name":"settings","default_value":"nil","external_name":"settings","restriction":"Settings | ::Nil"},{"name":"triggers","default_value":"nil","external_name":"triggers","restriction":"Array(String) | ::Nil"},{"name":"display_name","default_value":"nil","external_name":"display_name","restriction":"String | ::Nil"},{"name":"location","default_value":"nil","external_name":"location","restriction":"String | ::Nil"},{"name":"code","default_value":"nil","external_name":"code","restriction":"String | ::Nil"},{"name":"type","default_value":"nil","external_name":"type","restriction":"String | ::Nil"},{"name":"count","default_value":"nil","external_name":"count","restriction":"Int32 | ::Nil"},{"name":"capacity","default_value":"nil","external_name":"capacity","restriction":"Int32 | ::Nil"},{"name":"map_id","default_value":"nil","external_name":"map_id","restriction":"String | ::Nil"},{"name":"parent_id","default_value":"nil","external_name":"parent_id","restriction":"String | ::Nil"}],"visibility":"Public","body":"put(\"#{base}/#{id}\", body: from_args, as: API::Models::Zone)"}}]}]}]}]}]}} \ No newline at end of file diff --git a/js/doc.js b/js/doc.js new file mode 100644 index 0000000..eaedd5c --- /dev/null +++ b/js/doc.js @@ -0,0 +1,1099 @@ +window.CrystalDocs = (window.CrystalDocs || {}); + +CrystalDocs.base_path = (CrystalDocs.base_path || ""); + +CrystalDocs.searchIndex = (CrystalDocs.searchIndex || false); +CrystalDocs.MAX_RESULTS_DISPLAY = 140; + +CrystalDocs.runQuery = function(query) { + function searchType(type, query, results) { + var matches = []; + var matchedFields = []; + var name = type.full_name; + var i = name.lastIndexOf("::"); + if (i > 0) { + name = name.substring(i + 2); + } + var nameMatches = query.matches(name); + if (nameMatches){ + matches = matches.concat(nameMatches); + matchedFields.push("name"); + } + + var namespaceMatches = query.matchesNamespace(type.full_name); + if(namespaceMatches){ + matches = matches.concat(namespaceMatches); + matchedFields.push("name"); + } + + var docMatches = query.matches(type.doc); + if(docMatches){ + matches = matches.concat(docMatches); + matchedFields.push("doc"); + } + if (matches.length > 0) { + results.push({ + id: type.html_id, + result_type: "type", + kind: type.kind, + name: name, + full_name: type.full_name, + href: type.path, + summary: type.summary, + matched_fields: matchedFields, + matched_terms: matches + }); + } + + if (type.instance_methods) { + type.instance_methods.forEach(function(method) { + searchMethod(method, type, "instance_method", query, results); + }) + } + if (type.class_methods) { + type.class_methods.forEach(function(method) { + searchMethod(method, type, "class_method", query, results); + }) + } + if (type.constructors) { + type.constructors.forEach(function(constructor) { + searchMethod(constructor, type, "constructor", query, results); + }) + } + if (type.macros) { + type.macros.forEach(function(macro) { + searchMethod(macro, type, "macro", query, results); + }) + } + if (type.constants) { + type.constants.forEach(function(constant){ + searchConstant(constant, type, query, results); + }); + } + if (type.types) { + type.types.forEach(function(subtype){ + searchType(subtype, query, results); + }); + } + }; + + function searchMethod(method, type, kind, query, results) { + var matches = []; + var matchedFields = []; + var nameMatches = query.matchesMethod(method.name, kind, type); + if (nameMatches){ + matches = matches.concat(nameMatches); + matchedFields.push("name"); + } + + if (method.args) { + method.args.forEach(function(arg){ + var argMatches = query.matches(arg.external_name); + if (argMatches) { + matches = matches.concat(argMatches); + matchedFields.push("args"); + } + }); + } + + var docMatches = query.matches(type.doc); + if(docMatches){ + matches = matches.concat(docMatches); + matchedFields.push("doc"); + } + + if (matches.length > 0) { + var typeMatches = query.matches(type.full_name); + if (typeMatches) { + matchedFields.push("type"); + matches = matches.concat(typeMatches); + } + results.push({ + id: method.html_id, + type: type.full_name, + result_type: kind, + name: method.name, + full_name: type.full_name + "#" + method.name, + args_string: method.args_string, + summary: method.summary, + href: type.path + "#" + method.html_id, + matched_fields: matchedFields, + matched_terms: matches + }); + } + } + + function searchConstant(constant, type, query, results) { + var matches = []; + var matchedFields = []; + var nameMatches = query.matches(constant.name); + if (nameMatches){ + matches = matches.concat(nameMatches); + matchedFields.push("name"); + } + var docMatches = query.matches(constant.doc); + if(docMatches){ + matches = matches.concat(docMatches); + matchedFields.push("doc"); + } + if (matches.length > 0) { + var typeMatches = query.matches(type.full_name); + if (typeMatches) { + matchedFields.push("type"); + matches = matches.concat(typeMatches); + } + results.push({ + id: constant.id, + type: type.full_name, + result_type: "constant", + name: constant.name, + full_name: type.full_name + "#" + constant.name, + value: constant.value, + summary: constant.summary, + href: type.path + "#" + constant.id, + matched_fields: matchedFields, + matched_terms: matches + }); + } + } + + var results = []; + searchType(CrystalDocs.searchIndex.program, query, results); + return results; +}; + +CrystalDocs.rankResults = function(results, query) { + function uniqueArray(ar) { + var j = {}; + + ar.forEach(function(v) { + j[v + "::" + typeof v] = v; + }); + + return Object.keys(j).map(function(v) { + return j[v]; + }); + } + + results = results.sort(function(a, b) { + var matchedTermsDiff = uniqueArray(b.matched_terms).length - uniqueArray(a.matched_terms).length; + var aHasDocs = b.matched_fields.includes("doc"); + var bHasDocs = b.matched_fields.includes("doc"); + + var aOnlyDocs = aHasDocs && a.matched_fields.length == 1; + var bOnlyDocs = bHasDocs && b.matched_fields.length == 1; + + if (a.result_type == "type" && b.result_type != "type" && !aOnlyDocs) { + if(CrystalDocs.DEBUG) { console.log("a is type b not"); } + return -1; + } else if (b.result_type == "type" && a.result_type != "type" && !bOnlyDocs) { + if(CrystalDocs.DEBUG) { console.log("b is type, a not"); } + return 1; + } + if (a.matched_fields.includes("name")) { + if (b.matched_fields.includes("name")) { + var a_name = (CrystalDocs.prefixForType(a.result_type) || "") + ((a.result_type == "type") ? a.full_name : a.name); + var b_name = (CrystalDocs.prefixForType(b.result_type) || "") + ((b.result_type == "type") ? b.full_name : b.name); + a_name = a_name.toLowerCase(); + b_name = b_name.toLowerCase(); + for(var i = 0; i < query.normalizedTerms.length; i++) { + var term = query.terms[i].replace(/^::?|::?$/, ""); + var a_orig_index = a_name.indexOf(term); + var b_orig_index = b_name.indexOf(term); + if(CrystalDocs.DEBUG) { console.log("term: " + term + " a: " + a_name + " b: " + b_name); } + if(CrystalDocs.DEBUG) { console.log(a_orig_index, b_orig_index, a_orig_index - b_orig_index); } + if (a_orig_index >= 0) { + if (b_orig_index >= 0) { + if(CrystalDocs.DEBUG) { console.log("both have exact match", a_orig_index > b_orig_index ? -1 : 1); } + if(a_orig_index != b_orig_index) { + if(CrystalDocs.DEBUG) { console.log("both have exact match at different positions", a_orig_index > b_orig_index ? 1 : -1); } + return a_orig_index > b_orig_index ? 1 : -1; + } + } else { + if(CrystalDocs.DEBUG) { console.log("a has exact match, b not"); } + return -1; + } + } else if (b_orig_index >= 0) { + if(CrystalDocs.DEBUG) { console.log("b has exact match, a not"); } + return 1; + } + } + } else { + if(CrystalDocs.DEBUG) { console.log("a has match in name, b not"); } + return -1; + } + } else if ( + !a.matched_fields.includes("name") && + b.matched_fields.includes("name") + ) { + return 1; + } + + if (matchedTermsDiff != 0 || (aHasDocs != bHasDocs)) { + if(CrystalDocs.DEBUG) { console.log("matchedTermsDiff: " + matchedTermsDiff, aHasDocs, bHasDocs); } + return matchedTermsDiff; + } + + var matchedFieldsDiff = b.matched_fields.length - a.matched_fields.length; + if (matchedFieldsDiff != 0) { + if(CrystalDocs.DEBUG) { console.log("matched to different number of fields: " + matchedFieldsDiff); } + return matchedFieldsDiff > 0 ? 1 : -1; + } + + var nameCompare = a.name.localeCompare(b.name); + if(nameCompare != 0){ + if(CrystalDocs.DEBUG) { console.log("nameCompare resulted in: " + a.name + "<=>" + b.name + ": " + nameCompare); } + return nameCompare > 0 ? 1 : -1; + } + + if(a.matched_fields.includes("args") && b.matched_fields.includes("args")) { + for(var i = 0; i < query.terms.length; i++) { + var term = query.terms[i]; + var aIndex = a.args_string.indexOf(term); + var bIndex = b.args_string.indexOf(term); + if(CrystalDocs.DEBUG) { console.log("index of " + term + " in args_string: " + aIndex + " - " + bIndex); } + if(aIndex >= 0){ + if(bIndex >= 0){ + if(aIndex != bIndex){ + return aIndex > bIndex ? 1 : -1; + } + }else{ + return -1; + } + }else if(bIndex >= 0) { + return 1; + } + } + } + + return 0; + }); + + if (results.length > 1) { + // if we have more than two search terms, only include results with the most matches + var bestMatchedTerms = uniqueArray(results[0].matched_terms).length; + + results = results.filter(function(result) { + return uniqueArray(result.matched_terms).length + 1 >= bestMatchedTerms; + }); + } + return results; +}; + +CrystalDocs.prefixForType = function(type) { + switch (type) { + case "instance_method": + return "#"; + + case "class_method": + case "macro": + case "constructor": + return "."; + + default: + return false; + } +}; + +CrystalDocs.displaySearchResults = function(results, query) { + function sanitize(html){ + return html.replace(/<(?!\/?code)[^>]+>/g, ""); + } + + // limit results + if (results.length > CrystalDocs.MAX_RESULTS_DISPLAY) { + results = results.slice(0, CrystalDocs.MAX_RESULTS_DISPLAY); + } + + var $frag = document.createDocumentFragment(); + var $resultsElem = document.querySelector(".search-list"); + $resultsElem.innerHTML = ""; + + results.forEach(function(result, i) { + var url = CrystalDocs.base_path + result.href; + var type = false; + + var title = query.highlight(result.result_type == "type" ? result.full_name : result.name); + + var prefix = CrystalDocs.prefixForType(result.result_type); + if (prefix) { + title = "" + prefix + "" + title; + } + + title = "" + title + ""; + + if (result.args_string) { + title += + "" + query.highlight(result.args_string) + ""; + } + + $elem = document.createElement("li"); + $elem.className = "search-result search-result--" + result.result_type; + $elem.dataset.href = url; + $elem.setAttribute("title", result.full_name + " docs page"); + + var $title = document.createElement("div"); + $title.setAttribute("class", "search-result__title"); + var $titleLink = document.createElement("a"); + $titleLink.setAttribute("href", url); + + $titleLink.innerHTML = title; + $title.appendChild($titleLink); + $elem.appendChild($title); + $elem.addEventListener("click", function() { + $titleLink.click(); + }); + + if (result.result_type !== "type") { + var $type = document.createElement("div"); + $type.setAttribute("class", "search-result__type"); + $type.innerHTML = query.highlight(result.type); + $elem.appendChild($type); + } + + if(result.summary){ + var $doc = document.createElement("div"); + $doc.setAttribute("class", "search-result__doc"); + $doc.innerHTML = query.highlight(sanitize(result.summary)); + $elem.appendChild($doc); + } + + $elem.appendChild(document.createComment(JSON.stringify(result))); + $frag.appendChild($elem); + }); + + $resultsElem.appendChild($frag); + + CrystalDocs.toggleResultsList(true); +}; + +CrystalDocs.toggleResultsList = function(visible) { + if (visible) { + document.querySelector(".types-list").classList.add("hidden"); + document.querySelector(".search-results").classList.remove("hidden"); + } else { + document.querySelector(".types-list").classList.remove("hidden"); + document.querySelector(".search-results").classList.add("hidden"); + } +}; + +CrystalDocs.Query = function(string) { + this.original = string; + this.terms = string.split(/\s+/).filter(function(word) { + return CrystalDocs.Query.stripModifiers(word).length > 0; + }); + + var normalized = this.terms.map(CrystalDocs.Query.normalizeTerm); + this.normalizedTerms = normalized; + + function runMatcher(field, matcher) { + if (!field) { + return false; + } + var normalizedValue = CrystalDocs.Query.normalizeTerm(field); + + var matches = []; + normalized.forEach(function(term) { + if (matcher(normalizedValue, term)) { + matches.push(term); + } + }); + return matches.length > 0 ? matches : false; + } + + this.matches = function(field) { + return runMatcher(field, function(normalized, term) { + if (term[0] == "#" || term[0] == ".") { + return false; + } + return normalized.indexOf(term) >= 0; + }); + }; + + function namespaceMatcher(normalized, term){ + var i = term.indexOf(":"); + if(i >= 0){ + term = term.replace(/^::?|::?$/, ""); + var index = normalized.indexOf(term); + if((index == 0) || (index > 0 && normalized[index-1] == ":")){ + return true; + } + } + return false; + } + this.matchesMethod = function(name, kind, type) { + return runMatcher(name, function(normalized, term) { + var i = term.indexOf("#"); + if(i >= 0){ + if (kind != "instance_method") { + return false; + } + }else{ + i = term.indexOf("."); + if(i >= 0){ + if (kind != "class_method" && kind != "macro" && kind != "constructor") { + return false; + } + }else{ + //neither # nor . + if(term.indexOf(":") && namespaceMatcher(normalized, term)){ + return true; + } + } + } + + var methodName = term; + if(i >= 0){ + var termType = term.substring(0, i); + methodName = term.substring(i+1); + + if(termType != "") { + if(CrystalDocs.Query.normalizeTerm(type.full_name).indexOf(termType) < 0){ + return false; + } + } + } + return normalized.indexOf(methodName) >= 0; + }); + }; + + this.matchesNamespace = function(namespace){ + return runMatcher(namespace, namespaceMatcher); + }; + + this.highlight = function(string) { + if (typeof string == "undefined") { + return ""; + } + function escapeRegExp(s) { + return s.replace(/[.*+?\^${}()|\[\]\\]/g, "\\$&").replace(/^[#\.:]+/, ""); + } + return string.replace( + new RegExp("(" + this.normalizedTerms.map(escapeRegExp).join("|") + ")", "gi"), + "$1" + ); + }; +}; +CrystalDocs.Query.normalizeTerm = function(term) { + return term.toLowerCase(); +}; +CrystalDocs.Query.stripModifiers = function(term) { + switch (term[0]) { + case "#": + case ".": + case ":": + return term.substr(1); + + default: + return term; + } +} + +CrystalDocs.search = function(string) { + if(!CrystalDocs.searchIndex) { + console.log("CrystalDocs search index not initialized, delaying search"); + + document.addEventListener("CrystalDocs:loaded", function listener(){ + document.removeEventListener("CrystalDocs:loaded", listener); + CrystalDocs.search(string); + }); + return; + } + + document.dispatchEvent(new Event("CrystalDocs:searchStarted")); + + var query = new CrystalDocs.Query(string); + var results = CrystalDocs.runQuery(query); + results = CrystalDocs.rankResults(results, query); + CrystalDocs.displaySearchResults(results, query); + + document.dispatchEvent(new Event("CrystalDocs:searchPerformed")); +}; + +CrystalDocs.initializeIndex = function(data) { + CrystalDocs.searchIndex = data; + + document.dispatchEvent(new Event("CrystalDocs:loaded")); +}; + +CrystalDocs.loadIndex = function() { + function loadJSON(file, callback) { + var xobj = new XMLHttpRequest(); + xobj.overrideMimeType("application/json"); + xobj.open("GET", file, true); + xobj.onreadystatechange = function() { + if (xobj.readyState == 4 && xobj.status == "200") { + callback(xobj.responseText); + } + }; + xobj.send(null); + } + + function loadScript(file) { + script = document.createElement("script"); + script.src = file; + document.body.appendChild(script); + } + + function parseJSON(json) { + CrystalDocs.initializeIndex(JSON.parse(json)); + } + + for(var i = 0; i < document.scripts.length; i++){ + var script = document.scripts[i]; + if (script.src && script.src.indexOf("js/doc.js") >= 0) { + if (script.src.indexOf("file://") == 0) { + // We need to support JSONP files for the search to work on local file system. + var jsonPath = script.src.replace("js/doc.js", "search-index.js"); + loadScript(jsonPath); + return; + } else { + var jsonPath = script.src.replace("js/doc.js", "index.json"); + loadJSON(jsonPath, parseJSON); + return; + } + } + } + console.error("Could not find location of js/doc.js"); +}; + +// Callback for jsonp +function crystal_doc_search_index_callback(data) { + CrystalDocs.initializeIndex(data); +} + +Navigator = function(sidebar, searchInput, list, leaveSearchScope){ + this.list = list; + var self = this; + + var performingSearch = false; + + document.addEventListener('CrystalDocs:searchStarted', function(){ + performingSearch = true; + }); + document.addEventListener('CrystalDocs:searchDebounceStarted', function(){ + performingSearch = true; + }); + document.addEventListener('CrystalDocs:searchPerformed', function(){ + performingSearch = false; + }); + document.addEventListener('CrystalDocs:searchDebounceStopped', function(event){ + performingSearch = false; + }); + + function delayWhileSearching(callback) { + if(performingSearch){ + document.addEventListener('CrystalDocs:searchPerformed', function listener(){ + document.removeEventListener('CrystalDocs:searchPerformed', listener); + + // add some delay to let search results display kick in + setTimeout(callback, 100); + }); + }else{ + callback(); + } + } + + function clearMoveTimeout() { + clearTimeout(self.moveTimeout); + self.moveTimeout = null; + } + + function startMoveTimeout(upwards){ + /*if(self.moveTimeout) { + clearMoveTimeout(); + } + + var go = function() { + if (!self.moveTimeout) return; + self.move(upwards); + self.moveTimeout = setTimeout(go, 600); + }; + self.moveTimeout = setTimeout(go, 800);*/ + } + + function scrollCenter(element) { + var rect = element.getBoundingClientRect(); + var middle = sidebar.clientHeight / 2; + sidebar.scrollTop += rect.top + rect.height / 2 - middle; + } + + var move = this.move = function(upwards){ + if(!this.current){ + this.highlightFirst(); + return true; + } + var next = upwards ? this.current.previousElementSibling : this.current.nextElementSibling; + if(next && next.classList) { + this.highlight(next); + scrollCenter(next); + return true; + } + return false; + }; + + this.moveRight = function(){ + }; + this.moveLeft = function(){ + }; + + this.highlight = function(elem) { + if(!elem){ + return; + } + this.removeHighlight(); + + this.current = elem; + this.current.classList.add("current"); + }; + + this.highlightFirst = function(){ + this.highlight(this.list.querySelector('li:first-child')); + }; + + this.removeHighlight = function() { + if(this.current){ + this.current.classList.remove("current"); + } + this.current = null; + } + + this.openSelectedResult = function() { + if(this.current) { + this.current.click(); + } + } + + this.focus = function() { + searchInput.focus(); + searchInput.select(); + this.highlightFirst(); + } + + function handleKeyUp(event) { + switch(event.key) { + case "ArrowUp": + case "ArrowDown": + case "i": + case "j": + case "k": + case "l": + case "c": + case "h": + case "t": + case "n": + event.stopPropagation(); + clearMoveTimeout(); + } + } + + function handleKeyDown(event) { + switch(event.key) { + case "Enter": + event.stopPropagation(); + event.preventDefault(); + leaveSearchScope(); + self.openSelectedResult(); + break; + case "Escape": + event.stopPropagation(); + event.preventDefault(); + leaveSearchScope(); + break; + case "j": + case "c": + case "ArrowUp": + if(event.ctrlKey || event.key == "ArrowUp") { + event.stopPropagation(); + self.move(true); + startMoveTimeout(true); + } + break; + case "k": + case "h": + case "ArrowDown": + if(event.ctrlKey || event.key == "ArrowDown") { + event.stopPropagation(); + self.move(false); + startMoveTimeout(false); + } + break; + case "k": + case "t": + case "ArrowLeft": + if(event.ctrlKey || event.key == "ArrowLeft") { + event.stopPropagation(); + self.moveLeft(); + } + break; + case "l": + case "n": + case "ArrowRight": + if(event.ctrlKey || event.key == "ArrowRight") { + event.stopPropagation(); + self.moveRight(); + } + break; + } + } + + function handleInputKeyUp(event) { + switch(event.key) { + case "ArrowUp": + case "ArrowDown": + event.stopPropagation(); + event.preventDefault(); + clearMoveTimeout(); + } + } + + function handleInputKeyDown(event) { + switch(event.key) { + case "Enter": + event.stopPropagation(); + event.preventDefault(); + delayWhileSearching(function(){ + self.openSelectedResult(); + leaveSearchScope(); + }); + break; + case "Escape": + event.stopPropagation(); + event.preventDefault(); + // remove focus from search input + leaveSearchScope(); + sidebar.focus(); + break; + case "ArrowUp": + event.stopPropagation(); + event.preventDefault(); + self.move(true); + startMoveTimeout(true); + break; + + case "ArrowDown": + event.stopPropagation(); + event.preventDefault(); + self.move(false); + startMoveTimeout(false); + break; + } + } + + sidebar.tabIndex = 100; // set tabIndex to enable keylistener + sidebar.addEventListener('keyup', function(event) { + handleKeyUp(event); + }); + sidebar.addEventListener('keydown', function(event) { + handleKeyDown(event); + }); + searchInput.addEventListener('keydown', function(event) { + handleInputKeyDown(event); + }); + searchInput.addEventListener('keyup', function(event) { + handleInputKeyUp(event); + }); + this.move(); +}; + +CrystalDocs.initializeVersions = function () { + function loadJSON(file, callback) { + var xobj = new XMLHttpRequest(); + xobj.overrideMimeType("application/json"); + xobj.open("GET", file, true); + xobj.onreadystatechange = function() { + if (xobj.readyState == 4 && xobj.status == "200") { + callback(xobj.responseText); + } + }; + xobj.send(null); + } + + function parseJSON(json) { + CrystalDocs.loadConfig(JSON.parse(json)); + } + + $elem = document.querySelector("html > head > meta[name=\"crystal_docs.json_config_url\"]") + if ($elem == undefined) { + return + } + jsonURL = $elem.getAttribute("content") + if (jsonURL && jsonURL != "") { + loadJSON(jsonURL, parseJSON); + } +} + +CrystalDocs.loadConfig = function (config) { + var projectVersions = config["versions"] + var currentVersion = document.querySelector("html > head > meta[name=\"crystal_docs.project_version\"]").getAttribute("content") + + var currentVersionInList = projectVersions.find(function (element) { + return element.name == currentVersion + }) + + if (!currentVersionInList) { + projectVersions.unshift({ name: currentVersion, url: '#' }) + } + + $version = document.querySelector(".project-summary > .project-version") + $version.innerHTML = "" + + $select = document.createElement("select") + $select.classList.add("project-versions-nav") + $select.addEventListener("change", function () { + window.location.href = this.value + }) + projectVersions.forEach(function (version) { + $item = document.createElement("option") + $item.setAttribute("value", version.url) + $item.append(document.createTextNode(version.name)) + + if (version.name == currentVersion) { + $item.setAttribute("selected", true) + $item.setAttribute("disabled", true) + } + $select.append($item) + }); + $form = document.createElement("form") + $form.setAttribute("autocomplete", "off") + $form.append($select) + $version.append($form) +} + +document.addEventListener("DOMContentLoaded", function () { + CrystalDocs.initializeVersions() +}) + +var UsageModal = function(title, content) { + var $body = document.body; + var self = this; + var $modalBackground = document.createElement("div"); + $modalBackground.classList.add("modal-background"); + var $usageModal = document.createElement("div"); + $usageModal.classList.add("usage-modal"); + $modalBackground.appendChild($usageModal); + var $title = document.createElement("h3"); + $title.classList.add("modal-title"); + $title.innerHTML = title + $usageModal.appendChild($title); + var $closeButton = document.createElement("span"); + $closeButton.classList.add("close-button"); + $closeButton.setAttribute("title", "Close modal"); + $closeButton.innerText = '×'; + $usageModal.appendChild($closeButton); + $usageModal.insertAdjacentHTML("beforeend", content); + + $modalBackground.addEventListener('click', function(event) { + var element = event.target || event.srcElement; + + if(element == $modalBackground) { + self.hide(); + } + }); + $closeButton.addEventListener('click', function(event) { + self.hide(); + }); + + $body.insertAdjacentElement('beforeend', $modalBackground); + + this.show = function(){ + $body.classList.add("js-modal-visible"); + }; + this.hide = function(){ + $body.classList.remove("js-modal-visible"); + }; + this.isVisible = function(){ + return $body.classList.contains("js-modal-visible"); + } +} + + +document.addEventListener('DOMContentLoaded', function() { + var sessionStorage; + try { + sessionStorage = window.sessionStorage; + } catch (e) { } + if(!sessionStorage) { + sessionStorage = { + setItem: function() {}, + getItem: function() {}, + removeItem: function() {} + }; + } + + var repositoryName = document.querySelector('[name=repository-name]').getAttribute('content'); + var typesList = document.querySelector('.types-list'); + var searchInput = document.querySelector('.search-input'); + var parents = document.querySelectorAll('.types-list li.parent'); + + var scrollSidebarToOpenType = function(){ + var openTypes = typesList.querySelectorAll('.current'); + if (openTypes.length > 0) { + var lastOpenType = openTypes[openTypes.length - 1]; + lastOpenType.scrollIntoView(!(window.matchMedia('only screen and (max-width: 635px)')).matches); + } + } + + scrollSidebarToOpenType(); + + var setPersistentSearchQuery = function(value){ + sessionStorage.setItem(repositoryName + '::search-input:value', value); + } + + for(var i = 0; i < parents.length; i++) { + var _parent = parents[i]; + _parent.addEventListener('click', function(e) { + e.stopPropagation(); + + if(e.target.tagName.toLowerCase() == 'li') { + if(e.target.className.match(/open/)) { + sessionStorage.removeItem(e.target.getAttribute('data-id')); + e.target.className = e.target.className.replace(/ +open/g, ''); + } else { + sessionStorage.setItem(e.target.getAttribute('data-id'), '1'); + if(e.target.className.indexOf('open') == -1) { + e.target.className += ' open'; + } + } + } + }); + + if(sessionStorage.getItem(_parent.getAttribute('data-id')) == '1') { + _parent.className += ' open'; + } + } + + var leaveSearchScope = function(){ + CrystalDocs.toggleResultsList(false); + window.focus(); + } + + var navigator = new Navigator(document.querySelector('.types-list'), searchInput, document.querySelector(".search-results"), leaveSearchScope); + + CrystalDocs.loadIndex(); + var searchTimeout; + var lastSearchText = false; + var performSearch = function() { + document.dispatchEvent(new Event("CrystalDocs:searchDebounceStarted")); + + clearTimeout(searchTimeout); + searchTimeout = setTimeout(function() { + var text = searchInput.value; + + if(text == "") { + CrystalDocs.toggleResultsList(false); + }else if(text == lastSearchText){ + document.dispatchEvent(new Event("CrystalDocs:searchDebounceStopped")); + }else{ + CrystalDocs.search(text); + navigator.highlightFirst(); + searchInput.focus(); + } + lastSearchText = text; + setPersistentSearchQuery(text); + }, 200); + }; + + if(location.hash.length > 3 && location.hash.substring(0,3) == "#q="){ + // allows directly linking a search query which is then executed on the client + // this comes handy for establishing a custom browser search engine with https://crystal-lang.org/api/#q=%s as a search URL + // TODO: Add OpenSearch description + var searchQuery = location.hash.substring(3); + history.pushState({searchQuery: searchQuery}, "Search for " + searchQuery, location.href.replace(/#q=.*/, "")); + searchInput.value = decodeURIComponent(searchQuery); + document.addEventListener('CrystalDocs:loaded', performSearch); + } + + if (searchInput.value.length == 0) { + var searchText = sessionStorage.getItem(repositoryName + '::search-input:value'); + if(searchText){ + searchInput.value = searchText; + } + } + searchInput.addEventListener('keyup', performSearch); + searchInput.addEventListener('input', performSearch); + + var usageModal = new UsageModal('Keyboard Shortcuts', '' + + 'Low-level wrapper for the PlaceOS API.
","types":[{"html_id":"placeos/PlaceOS/Client","path":"PlaceOS/Client.html","kind":"class","full_name":"PlaceOS::Client","name":"Client","abstract":false,"superclass":{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/client.cr","line_number":10,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"constants":[{"id":"API_ROOT","name":"API_ROOT","value":"\"/api/engine/v2\""},{"id":"AUTH_API_ROOT","name":"AUTH_API_ROOT","value":"\"/auth\""},{"id":"VERSION","name":"VERSION","value":"{{ (`shards version \\\"/__w/crystal-client/crystal-client/src/placeos\\\"`).chomp.stringify.downcase }}"}],"namespace":{"html_id":"placeos/PlaceOS","kind":"module","full_name":"PlaceOS","name":"PlaceOS"},"class_methods":[{"html_id":"from_environment_user-class-method","name":"from_environment_user","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":23,"url":null},"def":{"name":"from_environment_user","visibility":"Public","body":"environment = {\"PLACE_URI\", \"PLACE_EMAIL\", \"PLACE_PASSWORD\", \"PLACE_AUTH_CLIENT_ID\", \"PLACE_AUTH_SECRET\"}.map do |key|\n ENV[key]? || (abort(\"missing #{key} in environment\"))\nend\nuri, email, password, client_id, client_secret = environment\nnew(uri, email: email, password: password, client_id: client_id, client_secret: client_secret)\n"}},{"html_id":"from_environment_user(&)-class-method","name":"from_environment_user","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":32,"url":null},"def":{"name":"from_environment_user","yields":1,"block_arity":1,"visibility":"Public","body":"begin\n client = self.from_environment_user\n yield client\nensure\n client.close\nend"}}],"constructors":[{"html_id":"new(base_uri:URI|String,email:String|Nil=nil,password:String|Nil=nil,client_id:String|Nil=nil,client_secret:String|Nil=nil,token:OAuth2::AccessToken|Nil=nil,host_header:String|Nil=nil,insecure:Bool=false,x_api_key:String|Nil=nil)-class-method","name":"new","abstract":false,"args":[{"name":"base_uri","external_name":"base_uri","restriction":"URI | String"},{"name":"email","default_value":"nil","external_name":"email","restriction":"String | ::Nil"},{"name":"password","default_value":"nil","external_name":"password","restriction":"String | ::Nil"},{"name":"client_id","default_value":"nil","external_name":"client_id","restriction":"String | ::Nil"},{"name":"client_secret","default_value":"nil","external_name":"client_secret","restriction":"String | ::Nil"},{"name":"token","default_value":"nil","external_name":"token","restriction":"OAuth2::AccessToken | ::Nil"},{"name":"host_header","default_value":"nil","external_name":"host_header","restriction":"String | ::Nil"},{"name":"insecure","default_value":"false","external_name":"insecure","restriction":"Bool"},{"name":"x_api_key","default_value":"nil","external_name":"x_api_key","restriction":"String | ::Nil"}],"args_string":"(base_uri : URI | String, email : String | Nil = nil, password : String | Nil = nil, client_id : String | Nil = nil, client_secret : String | Nil = nil, token : OAuth2::AccessToken | Nil = nil, host_header : String | Nil = nil, insecure : Bool = false, x_api_key : String | Nil = nil)","args_html":"(base_uri : URI | String, email : String | Nil = nil, password : String | Nil = nil, client_id : String | Nil = nil, client_secret : String | Nil = nil, token : OAuth2::AccessToken | Nil = nil, host_header : String | Nil = nil, insecure : Bool = false, x_api_key : String | Nil = nil)","location":{"filename":"src/placeos/client.cr","line_number":39,"url":null},"def":{"name":"new","args":[{"name":"base_uri","external_name":"base_uri","restriction":"URI | String"},{"name":"email","default_value":"nil","external_name":"email","restriction":"String | ::Nil"},{"name":"password","default_value":"nil","external_name":"password","restriction":"String | ::Nil"},{"name":"client_id","default_value":"nil","external_name":"client_id","restriction":"String | ::Nil"},{"name":"client_secret","default_value":"nil","external_name":"client_secret","restriction":"String | ::Nil"},{"name":"token","default_value":"nil","external_name":"token","restriction":"OAuth2::AccessToken | ::Nil"},{"name":"host_header","default_value":"nil","external_name":"host_header","restriction":"String | ::Nil"},{"name":"insecure","default_value":"false","external_name":"insecure","restriction":"Bool"},{"name":"x_api_key","default_value":"nil","external_name":"x_api_key","restriction":"String | ::Nil"}],"visibility":"Public","body":"_ = allocate\n_.initialize(base_uri, email, password, client_id, client_secret, token, host_header, insecure, x_api_key)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"api_wrapper:APIWrapper-instance-method","name":"api_wrapper","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":19,"url":null},"def":{"name":"api_wrapper","return_type":"APIWrapper","visibility":"Public","body":"@api_wrapper"}},{"html_id":"apikeys:APIWrapper::APIKeys-instance-method","name":"apikeys","doc":"Provide an object for managing APIKeys. See `PlaceOS::Client::APIWrapper::APIKeys`.","summary":"Provide an object for managing APIKeys.
","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":120,"url":null},"def":{"name":"apikeys","return_type":"APIWrapper::APIKeys","visibility":"Public","body":"@apikeys || (@apikeys = APIWrapper::APIKeys.new(api_wrapper))"}},{"html_id":"authenticated?-instance-method","name":"authenticated?","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":57,"url":null},"def":{"name":"authenticated?","visibility":"Public","body":"if @session || @x_api_key\n return true\nend\n!(((@email.nil? || @password.nil?) || @client_id.nil?) || @client_secret.nil?)\n"}},{"html_id":"authority:APIWrapper::Authority-instance-method","name":"authority","doc":"Provide an object for managing Authority. See `PlaceOS::Client::APIWrapper::Authority`.","summary":"Provide an object for managing Authority.
","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":120,"url":null},"def":{"name":"authority","return_type":"APIWrapper::Authority","visibility":"Public","body":"@authority || (@authority = APIWrapper::Authority.new(api_wrapper))"}},{"html_id":"close(*args,**options)-instance-method","name":"close","abstract":false,"args":[{"name":"args","external_name":"args","restriction":""}],"args_string":"(*args, **options)","args_html":"(*args, **options)","location":{"filename":"src/placeos/client.cr","line_number":21,"url":null},"def":{"name":"close","args":[{"name":"args","external_name":"args","restriction":""}],"double_splat":{"name":"options","external_name":"options","restriction":""},"splat_index":0,"visibility":"Public","body":"api_wrapper.close(*args, **options)"}},{"html_id":"close(*args,**options,&)-instance-method","name":"close","abstract":false,"args":[{"name":"args","external_name":"args","restriction":""}],"args_string":"(*args, **options, &)","args_html":"(*args, **options, &)","location":{"filename":"src/placeos/client.cr","line_number":21,"url":null},"def":{"name":"close","args":[{"name":"args","external_name":"args","restriction":""}],"double_splat":{"name":"options","external_name":"options","restriction":""},"splat_index":0,"yields":1,"block_arity":1,"visibility":"Public","body":"api_wrapper.close(*args, **options) do |*yield_args|\n yield *yield_args\nend"}},{"html_id":"cluster:APIWrapper::Cluster-instance-method","name":"cluster","doc":"Provide an object for managing Cluster. See `PlaceOS::Client::APIWrapper::Cluster`.","summary":"Provide an object for managing Cluster.
","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":120,"url":null},"def":{"name":"cluster","return_type":"APIWrapper::Cluster","visibility":"Public","body":"@cluster || (@cluster = APIWrapper::Cluster.new(api_wrapper))"}},{"html_id":"domains:APIWrapper::Domains-instance-method","name":"domains","doc":"Provide an object for managing Domains. See `PlaceOS::Client::APIWrapper::Domains`.","summary":"Provide an object for managing Domains.
","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":120,"url":null},"def":{"name":"domains","return_type":"APIWrapper::Domains","visibility":"Public","body":"@domains || (@domains = APIWrapper::Domains.new(api_wrapper))"}},{"html_id":"drivers:APIWrapper::Drivers-instance-method","name":"drivers","doc":"Provide an object for managing Drivers. See `PlaceOS::Client::APIWrapper::Drivers`.","summary":"Provide an object for managing Drivers.
","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":120,"url":null},"def":{"name":"drivers","return_type":"APIWrapper::Drivers","visibility":"Public","body":"@drivers || (@drivers = APIWrapper::Drivers.new(api_wrapper))"}},{"html_id":"ldap:APIWrapper::Ldap-instance-method","name":"ldap","doc":"Provide an object for managing Ldap. See `PlaceOS::Client::APIWrapper::Ldap`.","summary":"Provide an object for managing Ldap.
","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":120,"url":null},"def":{"name":"ldap","return_type":"APIWrapper::Ldap","visibility":"Public","body":"@ldap || (@ldap = APIWrapper::Ldap.new(api_wrapper))"}},{"html_id":"metadata:APIWrapper::Metadata-instance-method","name":"metadata","doc":"Provide an object for managing Metadata. See `PlaceOS::Client::APIWrapper::Metadata`.","summary":"Provide an object for managing Metadata.
","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":120,"url":null},"def":{"name":"metadata","return_type":"APIWrapper::Metadata","visibility":"Public","body":"@metadata || (@metadata = APIWrapper::Metadata.new(api_wrapper))"}},{"html_id":"modules:APIWrapper::Modules-instance-method","name":"modules","doc":"Provide an object for managing Modules. See `PlaceOS::Client::APIWrapper::Modules`.","summary":"Provide an object for managing Modules.
","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":120,"url":null},"def":{"name":"modules","return_type":"APIWrapper::Modules","visibility":"Public","body":"@modules || (@modules = APIWrapper::Modules.new(api_wrapper))"}},{"html_id":"oauth:APIWrapper::OAuth-instance-method","name":"oauth","doc":"Provide an object for managing OAuth. See `PlaceOS::Client::APIWrapper::OAuth`.","summary":"Provide an object for managing OAuth.
","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":120,"url":null},"def":{"name":"oauth","return_type":"APIWrapper::OAuth","visibility":"Public","body":"@oauth || (@oauth = APIWrapper::OAuth.new(api_wrapper))"}},{"html_id":"oauthapplications:APIWrapper::OAuthApplications-instance-method","name":"oauthapplications","doc":"Provide an object for managing OAuthApplications. See `PlaceOS::Client::APIWrapper::OAuthApplications`.","summary":"Provide an object for managing OAuthApplications.
","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":120,"url":null},"def":{"name":"oauthapplications","return_type":"APIWrapper::OAuthApplications","visibility":"Public","body":"@oauthapplications || (@oauthapplications = APIWrapper::OAuthApplications.new(api_wrapper))"}},{"html_id":"root:APIWrapper::Root-instance-method","name":"root","doc":"Provide an object for managing Root. See `PlaceOS::Client::APIWrapper::Root`.","summary":"Provide an object for managing Root.
","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":120,"url":null},"def":{"name":"root","return_type":"APIWrapper::Root","visibility":"Public","body":"@root || (@root = APIWrapper::Root.new(api_wrapper))"}},{"html_id":"saml:APIWrapper::Saml-instance-method","name":"saml","doc":"Provide an object for managing Saml. See `PlaceOS::Client::APIWrapper::Saml`.","summary":"Provide an object for managing Saml.
","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":120,"url":null},"def":{"name":"saml","return_type":"APIWrapper::Saml","visibility":"Public","body":"@saml || (@saml = APIWrapper::Saml.new(api_wrapper))"}},{"html_id":"settings:APIWrapper::Settings-instance-method","name":"settings","doc":"Provide an object for managing Settings. See `PlaceOS::Client::APIWrapper::Settings`.","summary":"Provide an object for managing Settings.
","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":120,"url":null},"def":{"name":"settings","return_type":"APIWrapper::Settings","visibility":"Public","body":"@settings || (@settings = APIWrapper::Settings.new(api_wrapper))"}},{"html_id":"systems:APIWrapper::Systems-instance-method","name":"systems","doc":"Provide an object for managing Systems. See `PlaceOS::Client::APIWrapper::Systems`.","summary":"Provide an object for managing Systems.
","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":120,"url":null},"def":{"name":"systems","return_type":"APIWrapper::Systems","visibility":"Public","body":"@systems || (@systems = APIWrapper::Systems.new(api_wrapper))"}},{"html_id":"uri:URI-instance-method","name":"uri","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":18,"url":null},"def":{"name":"uri","return_type":"URI","visibility":"Public","body":"@uri"}},{"html_id":"users:APIWrapper::Users-instance-method","name":"users","doc":"Provide an object for managing Users. See `PlaceOS::Client::APIWrapper::Users`.","summary":"Provide an object for managing Users.
","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":120,"url":null},"def":{"name":"users","return_type":"APIWrapper::Users","visibility":"Public","body":"@users || (@users = APIWrapper::Users.new(api_wrapper))"}},{"html_id":"zones:APIWrapper::Zones-instance-method","name":"zones","doc":"Provide an object for managing Zones. See `PlaceOS::Client::APIWrapper::Zones`.","summary":"Provide an object for managing Zones.
","abstract":false,"location":{"filename":"src/placeos/client.cr","line_number":120,"url":null},"def":{"name":"zones","return_type":"APIWrapper::Zones","visibility":"Public","body":"@zones || (@zones = APIWrapper::Zones.new(api_wrapper))"}}],"types":[{"html_id":"placeos/PlaceOS/Client/API","path":"PlaceOS/Client/API.html","kind":"module","full_name":"PlaceOS::Client::API","name":"API","abstract":false,"locations":[{"filename":"src/placeos/api/error.cr","line_number":3,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client","kind":"class","full_name":"PlaceOS::Client","name":"Client"},"types":[{"html_id":"placeos/PlaceOS/Client/API/Error","path":"PlaceOS/Client/API/Error.html","kind":"class","full_name":"PlaceOS::Client::API::Error","name":"Error","abstract":false,"superclass":{"html_id":"placeos/Exception","kind":"class","full_name":"Exception","name":"Exception"},"ancestors":[{"html_id":"placeos/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/error.cr","line_number":3,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API","kind":"module","full_name":"PlaceOS::Client::API","name":"API"},"class_methods":[{"html_id":"from_response(response:HTTP::Client::Response)-class-method","name":"from_response","abstract":false,"args":[{"name":"response","external_name":"response","restriction":"HTTP::Client::Response"}],"args_string":"(response : HTTP::Client::Response)","args_html":"(response : HTTP::Client::Response)","location":{"filename":"src/placeos/api/error.cr","line_number":4,"url":null},"def":{"name":"from_response","args":[{"name":"response","external_name":"response","restriction":"HTTP::Client::Response"}],"visibility":"Public","body":"if response.success?\n raise(ArgumentError.new(\"response is valid\"))\nelse\n if response.status_message\n new(\"#{response.status_message}\\n#{response.body}\")\n else\n new(\"HTTP error #{response.status_code}\\n#{response.body}\")\n end\nend"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models","path":"PlaceOS/Client/API/Models.html","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models","abstract":false,"locations":[{"filename":"src/placeos/api/models.cr","line_number":1,"url":null},{"filename":"src/placeos/api/models/api_key.cr","line_number":4,"url":null},{"filename":"src/placeos/api/models/asset.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/asset_instance.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/authority.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/auths/ldap.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/auths/oauth.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/auths/saml.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/cluster.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/driver.cr","line_number":4,"url":null},{"filename":"src/placeos/api/models/function.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/metadata.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/module.cr","line_number":4,"url":null},{"filename":"src/placeos/api/models/oauth_application.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/ping.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/repository.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/response.cr","line_number":4,"url":null},{"filename":"src/placeos/api/models/role.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/settings.cr","line_number":5,"url":null},{"filename":"src/placeos/api/models/system.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/trigger.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/trigger_instance.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/user.cr","line_number":4,"url":null},{"filename":"src/placeos/api/models/version.cr","line_number":3,"url":null},{"filename":"src/placeos/api/models/zone.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"including_types":[{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API","kind":"module","full_name":"PlaceOS::Client::API","name":"API"},"types":[{"html_id":"placeos/PlaceOS/Client/API/Models/APIKey","path":"PlaceOS/Client/API/Models/APIKey.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::APIKey","name":"APIKey","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/api_key.cr","line_number":5,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/api_key.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"authority:Authority-instance-method","name":"authority","abstract":false,"location":{"filename":"src/placeos/api/models/api_key.cr","line_number":32,"url":null},"def":{"name":"authority","return_type":"Authority","visibility":"Public","body":"@authority"}},{"html_id":"authority_id:String-instance-method","name":"authority_id","abstract":false,"location":{"filename":"src/placeos/api/models/api_key.cr","line_number":30,"url":null},"def":{"name":"authority_id","return_type":"String","visibility":"Public","body":"@authority_id"}},{"html_id":"description:String|Nil-instance-method","name":"description","doc":"Markdown formatted text that describes the zone.","summary":"Markdown formatted text that describes the zone.
","abstract":false,"location":{"filename":"src/placeos/api/models/api_key.cr","line_number":18,"url":null},"def":{"name":"description","return_type":"String | ::Nil","visibility":"Public","body":"@description"}},{"html_id":"id:String-instance-method","name":"id","doc":"A universally unique identifier for the zone.","summary":"A universally unique identifier for the zone.
","abstract":false,"location":{"filename":"src/placeos/api/models/api_key.cr","line_number":9,"url":null},"def":{"name":"id","return_type":"String","visibility":"Public","body":"@id"}},{"html_id":"name:String-instance-method","name":"name","doc":"A human readable identifier.","summary":"A human readable identifier.
","abstract":false,"location":{"filename":"src/placeos/api/models/api_key.cr","line_number":12,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"permissions:PlaceOS::Model::UserJWT::Permissions-instance-method","name":"permissions","doc":"The permission level of the user","summary":"The permission level of the user
","abstract":false,"location":{"filename":"src/placeos/api/models/api_key.cr","line_number":24,"url":null},"def":{"name":"permissions","return_type":"::PlaceOS::Model::UserJWT::Permissions","visibility":"Public","body":"@permissions"}},{"html_id":"scopes:Array(String)-instance-method","name":"scopes","doc":"API scopes","summary":"API scopes
","abstract":false,"location":{"filename":"src/placeos/api/models/api_key.cr","line_number":21,"url":null},"def":{"name":"scopes","return_type":"Array(String)","visibility":"Public","body":"@scopes"}},{"html_id":"user:User-instance-method","name":"user","abstract":false,"location":{"filename":"src/placeos/api/models/api_key.cr","line_number":28,"url":null},"def":{"name":"user","return_type":"User","visibility":"Public","body":"@user"}},{"html_id":"user_id:String-instance-method","name":"user_id","abstract":false,"location":{"filename":"src/placeos/api/models/api_key.cr","line_number":26,"url":null},"def":{"name":"user_id","return_type":"String","visibility":"Public","body":"@user_id"}},{"html_id":"x_api_key:String-instance-method","name":"x_api_key","doc":"The auth key, only returned on create","summary":"The auth key, only returned on create
","abstract":false,"location":{"filename":"src/placeos/api/models/api_key.cr","line_number":15,"url":null},"def":{"name":"x_api_key","return_type":"String","visibility":"Public","body":"@x_api_key"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Asset","path":"PlaceOS/Client/API/Models/Asset.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Asset","name":"Asset","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/asset.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/asset.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"brand:String|Nil-instance-method","name":"brand","abstract":false,"location":{"filename":"src/placeos/api/models/asset.cr","line_number":20,"url":null},"def":{"name":"brand","return_type":"String | ::Nil","visibility":"Public","body":"@brand"}},{"html_id":"category:String|Nil-instance-method","name":"category","abstract":false,"location":{"filename":"src/placeos/api/models/asset.cr","line_number":11,"url":null},"def":{"name":"category","return_type":"String | ::Nil","visibility":"Public","body":"@category"}},{"html_id":"description:String|Nil-instance-method","name":"description","doc":"Markdown formatted text that describes the asset.","summary":"Markdown formatted text that describes the asset.
","abstract":false,"location":{"filename":"src/placeos/api/models/asset.cr","line_number":14,"url":null},"def":{"name":"description","return_type":"String | ::Nil","visibility":"Public","body":"@description"}},{"html_id":"good_until_date:Time|Nil-instance-method","name":"good_until_date","abstract":false,"location":{"filename":"src/placeos/api/models/asset.cr","line_number":17,"url":null},"def":{"name":"good_until_date","return_type":"Time | ::Nil","visibility":"Public","body":"@good_until_date"}},{"html_id":"id:String-instance-method","name":"id","doc":"A universally unique identifier for the Asset.","summary":"A universally unique identifier for the Asset.
","abstract":false,"location":{"filename":"src/placeos/api/models/asset.cr","line_number":6,"url":null},"def":{"name":"id","return_type":"String","visibility":"Public","body":"@id"}},{"html_id":"identifier:String|Nil-instance-method","name":"identifier","abstract":false,"location":{"filename":"src/placeos/api/models/asset.cr","line_number":19,"url":null},"def":{"name":"identifier","return_type":"String | ::Nil","visibility":"Public","body":"@identifier"}},{"html_id":"images:Array(String)-instance-method","name":"images","doc":"Array of URLs to images for an asset","summary":"Array of URLs to images for an asset
","abstract":false,"location":{"filename":"src/placeos/api/models/asset.cr","line_number":26,"url":null},"def":{"name":"images","return_type":"Array(String)","visibility":"Public","body":"@images"}},{"html_id":"in_use:Int32-instance-method","name":"in_use","abstract":false,"location":{"filename":"src/placeos/api/models/asset.cr","line_number":32,"url":null},"def":{"name":"in_use","return_type":"Int32","visibility":"Public","body":"@in_use"}},{"html_id":"invoice:String|Nil-instance-method","name":"invoice","doc":"URL of downloadable receipt","summary":"URL of downloadable receipt
","abstract":false,"location":{"filename":"src/placeos/api/models/asset.cr","line_number":29,"url":null},"def":{"name":"invoice","return_type":"String | ::Nil","visibility":"Public","body":"@invoice"}},{"html_id":"name:String-instance-method","name":"name","doc":"A human readable identifier.","summary":"A human readable identifier.
","abstract":false,"location":{"filename":"src/placeos/api/models/asset.cr","line_number":9,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"other_data:JSON::Any-instance-method","name":"other_data","abstract":false,"location":{"filename":"src/placeos/api/models/asset.cr","line_number":34,"url":null},"def":{"name":"other_data","return_type":"JSON::Any","visibility":"Public","body":"@other_data"}},{"html_id":"parent_id:String|Nil-instance-method","name":"parent_id","abstract":false,"location":{"filename":"src/placeos/api/models/asset.cr","line_number":36,"url":null},"def":{"name":"parent_id","return_type":"String | ::Nil","visibility":"Public","body":"@parent_id"}},{"html_id":"purchase_date:Time-instance-method","name":"purchase_date","abstract":false,"location":{"filename":"src/placeos/api/models/asset.cr","line_number":16,"url":null},"def":{"name":"purchase_date","return_type":"Time","visibility":"Public","body":"@purchase_date"}},{"html_id":"purchase_price:Int32|Nil-instance-method","name":"purchase_price","doc":"TODO: define currency for `purchase_price`","summary":"TODO define currency for #purchase_price
A universally unique identifier for the Asset.
","abstract":false,"location":{"filename":"src/placeos/api/models/asset_instance.cr","line_number":13,"url":null},"def":{"name":"id","return_type":"String","visibility":"Public","body":"@id"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"location":{"filename":"src/placeos/api/models/asset_instance.cr","line_number":15,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"requester_id:String|Nil-instance-method","name":"requester_id","abstract":false,"location":{"filename":"src/placeos/api/models/asset_instance.cr","line_number":21,"url":null},"def":{"name":"requester_id","return_type":"String | ::Nil","visibility":"Public","body":"@requester_id"}},{"html_id":"tracking:Tracking-instance-method","name":"tracking","abstract":false,"location":{"filename":"src/placeos/api/models/asset_instance.cr","line_number":17,"url":null},"def":{"name":"tracking","return_type":"Tracking","visibility":"Public","body":"@tracking"}},{"html_id":"usage_end:Time|Nil-instance-method","name":"usage_end","abstract":false,"location":{"filename":"src/placeos/api/models/asset_instance.cr","line_number":25,"url":null},"def":{"name":"usage_end","return_type":"Time | ::Nil","visibility":"Public","body":"@usage_end"}},{"html_id":"usage_start:Time|Nil-instance-method","name":"usage_start","abstract":false,"location":{"filename":"src/placeos/api/models/asset_instance.cr","line_number":24,"url":null},"def":{"name":"usage_start","return_type":"Time | ::Nil","visibility":"Public","body":"@usage_start"}},{"html_id":"zone_id:String|Nil-instance-method","name":"zone_id","abstract":false,"location":{"filename":"src/placeos/api/models/asset_instance.cr","line_number":22,"url":null},"def":{"name":"zone_id","return_type":"String | ::Nil","visibility":"Public","body":"@zone_id"}}],"types":[{"html_id":"placeos/PlaceOS/Client/API/Models/AssetInstance/Tracking","path":"PlaceOS/Client/API/Models/AssetInstance/Tracking.html","kind":"enum","full_name":"PlaceOS::Client::API::Models::AssetInstance::Tracking","name":"Tracking","abstract":false,"ancestors":[{"html_id":"placeos/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"placeos/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/asset_instance.cr","line_number":5,"url":null}],"repository_name":"placeos","program":false,"enum":true,"alias":false,"const":false,"constants":[{"id":"InStorage","name":"InStorage","value":"0"},{"id":"OnTheWay","name":"OnTheWay","value":"1"},{"id":"InRoom","name":"InRoom","value":"2"},{"id":"Returned","name":"Returned","value":"3"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/AssetInstance","kind":"struct","full_name":"PlaceOS::Client::API::Models::AssetInstance","name":"AssetInstance"},"instance_methods":[{"html_id":"in_room?-instance-method","name":"in_room?","abstract":false,"location":{"filename":"src/placeos/api/models/asset_instance.cr","line_number":8,"url":null},"def":{"name":"in_room?","visibility":"Public","body":"self == InRoom"}},{"html_id":"in_storage?-instance-method","name":"in_storage?","abstract":false,"location":{"filename":"src/placeos/api/models/asset_instance.cr","line_number":6,"url":null},"def":{"name":"in_storage?","visibility":"Public","body":"self == InStorage"}},{"html_id":"on_the_way?-instance-method","name":"on_the_way?","abstract":false,"location":{"filename":"src/placeos/api/models/asset_instance.cr","line_number":7,"url":null},"def":{"name":"on_the_way?","visibility":"Public","body":"self == OnTheWay"}},{"html_id":"returned?-instance-method","name":"returned?","abstract":false,"location":{"filename":"src/placeos/api/models/asset_instance.cr","line_number":9,"url":null},"def":{"name":"returned?","visibility":"Public","body":"self == Returned"}}]}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Authority","path":"PlaceOS/Client/API/Models/Authority.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Authority","name":"Authority","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/authority.cr","line_number":8,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"doc":"Metadata about the PlaceOS instance connected to.\n\nThis provides information that may be of relevance for authentication or\nproviding client-side configuration information.","summary":"Metadata about the PlaceOS instance connected to.
","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Metadata about the PlaceOS instance connected to.\n\nThis provides information that may be of relevance for authentication or\nproviding client-side configuration information.","summary":"Metadata about the PlaceOS instance connected to.
","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/authority.cr","line_number":8,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"config:Hash(String,JSON::Any)-instance-method","name":"config","doc":"Additional configuration / context for clients.","summary":"Additional configuration / context for clients.
","abstract":false,"location":{"filename":"src/placeos/api/models/authority.cr","line_number":28,"url":null},"def":{"name":"config","return_type":"Hash(String, ::JSON::Any)","visibility":"Public","body":"@config"}},{"html_id":"description:String|Nil-instance-method","name":"description","doc":"Authority description (markdown).","summary":"Authority description (markdown).
","abstract":false,"location":{"filename":"src/placeos/api/models/authority.cr","line_number":19,"url":null},"def":{"name":"description","return_type":"String | ::Nil","visibility":"Public","body":"@description"}},{"html_id":"domain:String-instance-method","name":"domain","doc":"FQDN or IP address this authority serves.","summary":"FQDN or IP address this authority serves.
","abstract":false,"location":{"filename":"src/placeos/api/models/authority.cr","line_number":16,"url":null},"def":{"name":"domain","return_type":"String","visibility":"Public","body":"@domain"}},{"html_id":"id:String-instance-method","name":"id","doc":"A universally unique identifier that represents the Authority.","summary":"A universally unique identifier that represents the Authority.
","abstract":false,"location":{"filename":"src/placeos/api/models/authority.cr","line_number":10,"url":null},"def":{"name":"id","return_type":"String","visibility":"Public","body":"@id"}},{"html_id":"login_url:String-instance-method","name":"login_url","doc":"Path that clients should use for initiating authentication.","summary":"Path that clients should use for initiating authentication.
","abstract":false,"location":{"filename":"src/placeos/api/models/authority.cr","line_number":22,"url":null},"def":{"name":"login_url","return_type":"String","visibility":"Public","body":"@login_url"}},{"html_id":"logout_url:String-instance-method","name":"logout_url","doc":"Path that clients should use for revoking authentication.","summary":"Path that clients should use for revoking authentication.
","abstract":false,"location":{"filename":"src/placeos/api/models/authority.cr","line_number":25,"url":null},"def":{"name":"logout_url","return_type":"String","visibility":"Public","body":"@logout_url"}},{"html_id":"name:String-instance-method","name":"name","doc":"Human readable name","summary":"Human readable name
","abstract":false,"location":{"filename":"src/placeos/api/models/authority.cr","line_number":13,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"version:String-instance-method","name":"version","doc":"Version of application","summary":"Version of application
","abstract":false,"location":{"filename":"src/placeos/api/models/authority.cr","line_number":31,"url":null},"def":{"name":"version","return_type":"String","visibility":"Public","body":"@version"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Cluster","path":"PlaceOS/Client/API/Models/Cluster.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Cluster","name":"Cluster","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/cluster.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/cluster.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Driver","path":"PlaceOS/Client/API/Models/Driver.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Driver","name":"Driver","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/driver.cr","line_number":5,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/driver.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"commit:String-instance-method","name":"commit","abstract":false,"location":{"filename":"src/placeos/api/models/driver.cr","line_number":25,"url":null},"def":{"name":"commit","return_type":"String","visibility":"Public","body":"@commit"}},{"html_id":"default_port:Int32|Nil-instance-method","name":"default_port","abstract":false,"location":{"filename":"src/placeos/api/models/driver.cr","line_number":14,"url":null},"def":{"name":"default_port","return_type":"Int32 | ::Nil","visibility":"Public","body":"@default_port"}},{"html_id":"default_uri:String|Nil-instance-method","name":"default_uri","abstract":false,"location":{"filename":"src/placeos/api/models/driver.cr","line_number":13,"url":null},"def":{"name":"default_uri","return_type":"String | ::Nil","visibility":"Public","body":"@default_uri"}},{"html_id":"description:String|Nil-instance-method","name":"description","abstract":false,"location":{"filename":"src/placeos/api/models/driver.cr","line_number":11,"url":null},"def":{"name":"description","return_type":"String | ::Nil","visibility":"Public","body":"@description"}},{"html_id":"file_name:String-instance-method","name":"file_name","abstract":false,"location":{"filename":"src/placeos/api/models/driver.cr","line_number":24,"url":null},"def":{"name":"file_name","return_type":"String","visibility":"Public","body":"@file_name"}},{"html_id":"id:String-instance-method","name":"id","abstract":false,"location":{"filename":"src/placeos/api/models/driver.cr","line_number":8,"url":null},"def":{"name":"id","return_type":"String","visibility":"Public","body":"@id"}},{"html_id":"ignore_connected:Bool-instance-method","name":"ignore_connected","doc":"Don't include this module in statistics or disconnected searches\nMight be a device that commonly goes offline (like a PC or Display that only supports Wake on Lan)","summary":"Don't include this module in statistics or disconnected searches Might be a device that commonly goes offline (like a PC or Display that only supports Wake on Lan)
","abstract":false,"location":{"filename":"src/placeos/api/models/driver.cr","line_number":34,"url":null},"def":{"name":"ignore_connected","return_type":"Bool","visibility":"Public","body":"@ignore_connected"}},{"html_id":"module_name:String-instance-method","name":"module_name","doc":"Module instance configuration","summary":"Module instance configuration
","abstract":false,"location":{"filename":"src/placeos/api/models/driver.cr","line_number":30,"url":null},"def":{"name":"module_name","return_type":"String","visibility":"Public","body":"@module_name"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"location":{"filename":"src/placeos/api/models/driver.cr","line_number":10,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"repository_id:String-instance-method","name":"repository_id","abstract":false,"location":{"filename":"src/placeos/api/models/driver.cr","line_number":27,"url":null},"def":{"name":"repository_id","return_type":"String","visibility":"Public","body":"@repository_id"}},{"html_id":"role:Role-instance-method","name":"role","abstract":false,"location":{"filename":"src/placeos/api/models/driver.cr","line_number":18,"url":null},"def":{"name":"role","return_type":"Role","visibility":"Public","body":"Role.from_value(@role)"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Function","path":"PlaceOS/Client/API/Models/Function.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Function","name":"Function","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/function.cr","line_number":5,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"doc":"Invocation information for interaction with an exposed driver behaviour.","summary":"Invocation information for interaction with an exposed driver behaviour.
","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Invocation information for interaction with an exposed driver behaviour.","summary":"Invocation information for interaction with an exposed driver behaviour.
","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/function.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"arity:Int32-instance-method","name":"arity","doc":"The number of parameters that the function accepts.","summary":"The number of parameters that the function accepts.
","abstract":false,"location":{"filename":"src/placeos/api/models/function.cr","line_number":7,"url":null},"def":{"name":"arity","return_type":"Int32","visibility":"Public","body":"@arity"}},{"html_id":"params:Array(Parameter)-instance-method","name":"params","doc":"Parameter information.","summary":"Parameter information.
","abstract":false,"location":{"filename":"src/placeos/api/models/function.cr","line_number":25,"url":null},"def":{"name":"params","return_type":"Array(Parameter)","visibility":"Public","body":"@params"}}],"types":[{"html_id":"placeos/PlaceOS/Client/API/Models/Function/Parameter","path":"PlaceOS/Client/API/Models/Function/Parameter.html","kind":"alias","full_name":"PlaceOS::Client::API::Models::Function::Parameter","name":"Parameter","abstract":false,"locations":[{"filename":"src/placeos/api/models/function.cr","line_number":22,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":true,"aliased":"Tuple(PlaceOS::Client::API::Models::Function::ParameterKind, String)","aliased_html":"{PlaceOS::Client::API::Models::Function::ParameterKind, String}","const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Function","kind":"struct","full_name":"PlaceOS::Client::API::Models::Function","name":"Function"},"doc":"Parameter information as {kind, name}.","summary":"Parameter information as {kind, name}.
"},{"html_id":"placeos/PlaceOS/Client/API/Models/Function/ParameterKind","path":"PlaceOS/Client/API/Models/Function/ParameterKind.html","kind":"enum","full_name":"PlaceOS::Client::API::Models::Function::ParameterKind","name":"ParameterKind","abstract":false,"ancestors":[{"html_id":"placeos/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"placeos/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/function.cr","line_number":10,"url":null}],"repository_name":"placeos","program":false,"enum":true,"alias":false,"const":false,"constants":[{"id":"Req","name":"Req","value":"0","doc":"Required","summary":"Required
"},{"id":"Opt","name":"Opt","value":"1","doc":"Optional","summary":"Optional
"},{"id":"Rest","name":"Rest","value":"2","doc":"A capture all for all trailing arguments.","summary":"A capture all for all trailing arguments.
"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Function","kind":"struct","full_name":"PlaceOS::Client::API::Models::Function","name":"Function"},"doc":"Possible parameter kinds.","summary":"Possible parameter kinds.
","instance_methods":[{"html_id":"opt?-instance-method","name":"opt?","abstract":false,"location":{"filename":"src/placeos/api/models/function.cr","line_number":15,"url":null},"def":{"name":"opt?","visibility":"Public","body":"self == Opt"}},{"html_id":"req?-instance-method","name":"req?","abstract":false,"location":{"filename":"src/placeos/api/models/function.cr","line_number":12,"url":null},"def":{"name":"req?","visibility":"Public","body":"self == Req"}},{"html_id":"rest?-instance-method","name":"rest?","abstract":false,"location":{"filename":"src/placeos/api/models/function.cr","line_number":18,"url":null},"def":{"name":"rest?","visibility":"Public","body":"self == Rest"}}]}]},{"html_id":"placeos/PlaceOS/Client/API/Models/LdapAuthentication","path":"PlaceOS/Client/API/Models/LdapAuthentication.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::LdapAuthentication","name":"LdapAuthentication","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/auths/ldap.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/auths/ldap.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"auth_method:String-instance-method","name":"auth_method","doc":"Options are: plain, ssl, tls","summary":"Options are: plain, ssl, tls
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/ldap.cr","line_number":13,"url":null},"def":{"name":"auth_method","return_type":"String","visibility":"Public","body":"@auth_method"}},{"html_id":"authority_id:String-instance-method","name":"authority_id","abstract":false,"location":{"filename":"src/placeos/api/models/auths/ldap.cr","line_number":9,"url":null},"def":{"name":"authority_id","return_type":"String","visibility":"Public","body":"@authority_id"}},{"html_id":"base:String-instance-method","name":"base","doc":"BaseDN such as dc=intridea, dc=com","summary":"BaseDN such as dc=intridea, dc=com
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/ldap.cr","line_number":18,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"bind_dn:String-instance-method","name":"bind_dn","doc":":bind_dn and :password is the default credentials to perform user lookup","summary":":bind_dn and :password is the default credentials to perform user lookup
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/ldap.cr","line_number":21,"url":null},"def":{"name":"bind_dn","return_type":"String","visibility":"Public","body":"@bind_dn"}},{"html_id":"filter:String-instance-method","name":"filter","doc":"LDAP filter like: (&(uid=%{username})(memberOf=cn=myapp-users,ou=groups,dc=example,dc=com))\nCan be used instead of UID","summary":"LDAP filter like: (&(uid=%{username})(memberOf=cn=myapp-users,ou=groups,dc=example,dc=com)) Can be used instead of UID
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/ldap.cr","line_number":26,"url":null},"def":{"name":"filter","return_type":"String","visibility":"Public","body":"@filter"}},{"html_id":"host:String-instance-method","name":"host","abstract":false,"location":{"filename":"src/placeos/api/models/auths/ldap.cr","line_number":15,"url":null},"def":{"name":"host","return_type":"String","visibility":"Public","body":"@host"}},{"html_id":"id:String-instance-method","name":"id","abstract":false,"location":{"filename":"src/placeos/api/models/auths/ldap.cr","line_number":7,"url":null},"def":{"name":"id","return_type":"String","visibility":"Public","body":"@id"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"location":{"filename":"src/placeos/api/models/auths/ldap.cr","line_number":8,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"password:String-instance-method","name":"password","abstract":false,"location":{"filename":"src/placeos/api/models/auths/ldap.cr","line_number":22,"url":null},"def":{"name":"password","return_type":"String","visibility":"Public","body":"@password"}},{"html_id":"port:Int32-instance-method","name":"port","abstract":false,"location":{"filename":"src/placeos/api/models/auths/ldap.cr","line_number":10,"url":null},"def":{"name":"port","return_type":"Int32","visibility":"Public","body":"@port"}},{"html_id":"uid:String-instance-method","name":"uid","abstract":false,"location":{"filename":"src/placeos/api/models/auths/ldap.cr","line_number":14,"url":null},"def":{"name":"uid","return_type":"String","visibility":"Public","body":"@uid"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Metadata","path":"PlaceOS/Client/API/Models/Metadata.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Metadata","name":"Metadata","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/metadata.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/metadata.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"description:String-instance-method","name":"description","abstract":false,"location":{"filename":"src/placeos/api/models/metadata.cr","line_number":6,"url":null},"def":{"name":"description","return_type":"String","visibility":"Public","body":"@description"}},{"html_id":"details:JSON::Any-instance-method","name":"details","abstract":false,"location":{"filename":"src/placeos/api/models/metadata.cr","line_number":7,"url":null},"def":{"name":"details","return_type":"JSON::Any","visibility":"Public","body":"@details"}},{"html_id":"editors:Array(String)|Nil-instance-method","name":"editors","abstract":false,"location":{"filename":"src/placeos/api/models/metadata.cr","line_number":10,"url":null},"def":{"name":"editors","return_type":"Array(String) | ::Nil","visibility":"Public","body":"@editors"}},{"html_id":"modified_by_id:String|Nil-instance-method","name":"modified_by_id","abstract":false,"location":{"filename":"src/placeos/api/models/metadata.cr","line_number":11,"url":null},"def":{"name":"modified_by_id","return_type":"String | ::Nil","visibility":"Public","body":"@modified_by_id"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"location":{"filename":"src/placeos/api/models/metadata.cr","line_number":5,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"parent_id:String-instance-method","name":"parent_id","abstract":false,"location":{"filename":"src/placeos/api/models/metadata.cr","line_number":8,"url":null},"def":{"name":"parent_id","return_type":"String","visibility":"Public","body":"@parent_id"}},{"html_id":"schema_id:String|Nil-instance-method","name":"schema_id","abstract":false,"location":{"filename":"src/placeos/api/models/metadata.cr","line_number":9,"url":null},"def":{"name":"schema_id","return_type":"String | ::Nil","visibility":"Public","body":"@schema_id"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Module","path":"PlaceOS/Client/API/Models/Module.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Module","name":"Module","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/module.cr","line_number":5,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/module.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"connected:Bool-instance-method","name":"connected","doc":"Flag for connectivity state.","summary":"Flag for connectivity state.
","abstract":false,"location":{"filename":"src/placeos/api/models/module.cr","line_number":48,"url":null},"def":{"name":"connected","return_type":"Bool","visibility":"Public","body":"@connected"}},{"html_id":"control_sytem_id:String|Nil-instance-method","name":"control_sytem_id","doc":"The system this module is bound to (logic modules only).","summary":"The system this module is bound to (logic modules only).
","abstract":false,"location":{"filename":"src/placeos/api/models/module.cr","line_number":15,"url":null},"def":{"name":"control_sytem_id","return_type":"String | ::Nil","visibility":"Public","body":"@control_sytem_id"}},{"html_id":"custom_name:String|Nil-instance-method","name":"custom_name","doc":"The modules class name (Display, Lighting etc) if it should differ from the\ndefault defined in the driver.","summary":"The modules class name (Display, Lighting etc) if it should differ from the default defined in the driver.
","abstract":false,"location":{"filename":"src/placeos/api/models/module.cr","line_number":38,"url":null},"def":{"name":"custom_name","return_type":"String | ::Nil","visibility":"Public","body":"@custom_name"}},{"html_id":"driver_id:String-instance-method","name":"driver_id","doc":"The driver that defines this module.","summary":"The driver that defines this module.
","abstract":false,"location":{"filename":"src/placeos/api/models/module.cr","line_number":12,"url":null},"def":{"name":"driver_id","return_type":"String","visibility":"Public","body":"@driver_id"}},{"html_id":"id:String-instance-method","name":"id","doc":"A universally unique identifier for the module.","summary":"A universally unique identifier for the module.
","abstract":false,"location":{"filename":"src/placeos/api/models/module.cr","line_number":9,"url":null},"def":{"name":"id","return_type":"String","visibility":"Public","body":"@id"}},{"html_id":"ignore_connected:Bool-instance-method","name":"ignore_connected","doc":"If enabled, system metrics ignore connectivity state.","summary":"If enabled, system metrics ignore connectivity state.
","abstract":false,"location":{"filename":"src/placeos/api/models/module.cr","line_number":54,"url":null},"def":{"name":"ignore_connected","return_type":"Bool","visibility":"Public","body":"@ignore_connected"}},{"html_id":"ignore_startstop:Bool-instance-method","name":"ignore_startstop","doc":"If enabled, system level start and stop actions are ignored. This is\nrecommended for modules shared by many systems (e.g. a lighting gateway).","summary":"If enabled, system level start and stop actions are ignored.
","abstract":false,"location":{"filename":"src/placeos/api/models/module.cr","line_number":58,"url":null},"def":{"name":"ignore_startstop","return_type":"Bool","visibility":"Public","body":"@ignore_startstop"}},{"html_id":"ip:String|Nil-instance-method","name":"ip","doc":"IP address or resolvable hostname of the device this module connects to.","summary":"IP address or resolvable hostname of the device this module connects to.
","abstract":false,"location":{"filename":"src/placeos/api/models/module.cr","line_number":18,"url":null},"def":{"name":"ip","return_type":"String | ::Nil","visibility":"Public","body":"@ip"}},{"html_id":"makebreak:Bool-instance-method","name":"makebreak","doc":"If enabled, provides an ephemeral connection that disconnects during idle\nperiods.","summary":"If enabled, provides an ephemeral connection that disconnects during idle periods.
","abstract":false,"location":{"filename":"src/placeos/api/models/module.cr","line_number":31,"url":null},"def":{"name":"makebreak","return_type":"Bool","visibility":"Public","body":"@makebreak"}},{"html_id":"name:String-instance-method","name":"name","doc":"Driver's default name for the module","summary":"Driver's default name for the module
","abstract":false,"location":{"filename":"src/placeos/api/models/module.cr","line_number":41,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"port:Int32|Nil-instance-method","name":"port","doc":"The TCP or UDP port that the associated device communicates on.","summary":"The TCP or UDP port that the associated device communicates on.
","abstract":false,"location":{"filename":"src/placeos/api/models/module.cr","line_number":27,"url":null},"def":{"name":"port","return_type":"Int32 | ::Nil","visibility":"Public","body":"@port"}},{"html_id":"role:Role-instance-method","name":"role","doc":"The associated driver type.","summary":"The associated driver type.
","abstract":false,"location":{"filename":"src/placeos/api/models/module.cr","line_number":45,"url":null},"def":{"name":"role","return_type":"Role","visibility":"Public","body":"@role"}},{"html_id":"running:Bool-instance-method","name":"running","doc":"Module start/stop state.","summary":"Module start/stop state.
","abstract":false,"location":{"filename":"src/placeos/api/models/module.cr","line_number":51,"url":null},"def":{"name":"running","return_type":"Bool","visibility":"Public","body":"@running"}},{"html_id":"tls:Bool|Nil-instance-method","name":"tls","doc":"True if the device communicates securely.","summary":"True if the device communicates securely.
","abstract":false,"location":{"filename":"src/placeos/api/models/module.cr","line_number":21,"url":null},"def":{"name":"tls","return_type":"Bool | ::Nil","visibility":"Public","body":"@tls"}},{"html_id":"udp:Bool|Nil-instance-method","name":"udp","doc":"Protocol uses UDP rather that TCP.","summary":"Protocol uses UDP rather that TCP.
","abstract":false,"location":{"filename":"src/placeos/api/models/module.cr","line_number":24,"url":null},"def":{"name":"udp","return_type":"Bool | ::Nil","visibility":"Public","body":"@udp"}},{"html_id":"uri:URI|Nil-instance-method","name":"uri","doc":"The based URI of the remote service (service modules only).","summary":"The based URI of the remote service (service modules only).
","abstract":false,"location":{"filename":"src/placeos/api/models/module.cr","line_number":34,"url":null},"def":{"name":"uri","return_type":"URI | ::Nil","visibility":"Public","body":"@uri"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/OAuthApplication","path":"PlaceOS/Client/API/Models/OAuthApplication.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::OAuthApplication","name":"OAuthApplication","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/oauth_application.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/oauth_application.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"confidential:Bool-instance-method","name":"confidential","abstract":false,"location":{"filename":"src/placeos/api/models/oauth_application.cr","line_number":14,"url":null},"def":{"name":"confidential","return_type":"Bool","visibility":"Public","body":"@confidential"}},{"html_id":"id:String-instance-method","name":"id","abstract":false,"location":{"filename":"src/placeos/api/models/oauth_application.cr","line_number":6,"url":null},"def":{"name":"id","return_type":"String","visibility":"Public","body":"@id"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"location":{"filename":"src/placeos/api/models/oauth_application.cr","line_number":7,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"owner_id:String-instance-method","name":"owner_id","abstract":false,"location":{"filename":"src/placeos/api/models/oauth_application.cr","line_number":11,"url":null},"def":{"name":"owner_id","return_type":"String","visibility":"Public","body":"@owner_id"}},{"html_id":"redirect_uri:String-instance-method","name":"redirect_uri","abstract":false,"location":{"filename":"src/placeos/api/models/oauth_application.cr","line_number":12,"url":null},"def":{"name":"redirect_uri","return_type":"String","visibility":"Public","body":"@redirect_uri"}},{"html_id":"revoked_at:Time-instance-method","name":"revoked_at","abstract":false,"location":{"filename":"src/placeos/api/models/oauth_application.cr","line_number":16,"url":null},"def":{"name":"revoked_at","return_type":"Time","visibility":"Public","body":"@revoked_at"}},{"html_id":"scopes:String-instance-method","name":"scopes","abstract":false,"location":{"filename":"src/placeos/api/models/oauth_application.cr","line_number":10,"url":null},"def":{"name":"scopes","return_type":"String","visibility":"Public","body":"@scopes"}},{"html_id":"secret:String-instance-method","name":"secret","abstract":false,"location":{"filename":"src/placeos/api/models/oauth_application.cr","line_number":9,"url":null},"def":{"name":"secret","return_type":"String","visibility":"Public","body":"@secret"}},{"html_id":"skip_authorization:Bool-instance-method","name":"skip_authorization","abstract":false,"location":{"filename":"src/placeos/api/models/oauth_application.cr","line_number":13,"url":null},"def":{"name":"skip_authorization","return_type":"Bool","visibility":"Public","body":"@skip_authorization"}},{"html_id":"uid:String-instance-method","name":"uid","abstract":false,"location":{"filename":"src/placeos/api/models/oauth_application.cr","line_number":8,"url":null},"def":{"name":"uid","return_type":"String","visibility":"Public","body":"@uid"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/OAuthAuthentication","path":"PlaceOS/Client/API/Models/OAuthAuthentication.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::OAuthAuthentication","name":"OAuthAuthentication","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/auths/oauth.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/auths/oauth.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"auth_scheme:String-instance-method","name":"auth_scheme","doc":"If not set it defaults to \"request_body\", others include \"basic_auth\"","summary":"If not set it defaults to "request_body", others include "basic_auth"
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/oauth.cr","line_number":29,"url":null},"def":{"name":"auth_scheme","return_type":"String","visibility":"Public","body":"@auth_scheme"}},{"html_id":"authority_id:String-instance-method","name":"authority_id","abstract":false,"location":{"filename":"src/placeos/api/models/auths/oauth.cr","line_number":9,"url":null},"def":{"name":"authority_id","return_type":"String","visibility":"Public","body":"@authority_id"}},{"html_id":"authorize_url:String-instance-method","name":"authorize_url","doc":"The SSO providers URL for authorization, defaults to: `oauth/authorize`\nGoogle is `/o/oauth2/auth`","summary":"The SSO providers URL for authorization, defaults to: oauth/authorize
Google is /o/oauth2/auth
The client ID and secret configured for this application
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/oauth.cr","line_number":12,"url":null},"def":{"name":"client_id","return_type":"String","visibility":"Public","body":"@client_id"}},{"html_id":"client_secret:String-instance-method","name":"client_secret","abstract":false,"location":{"filename":"src/placeos/api/models/auths/oauth.cr","line_number":13,"url":null},"def":{"name":"client_secret","return_type":"String","visibility":"Public","body":"@client_secret"}},{"html_id":"id:String-instance-method","name":"id","abstract":false,"location":{"filename":"src/placeos/api/models/auths/oauth.cr","line_number":7,"url":null},"def":{"name":"id","return_type":"String","visibility":"Public","body":"@id"}},{"html_id":"info_mappings:Hash(String,String)-instance-method","name":"info_mappings","doc":"Maps an expected key to a provided key i.e. {used_in_engine => used_by_remote}","summary":"Maps an expected key to a provided key i.e.
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/oauth.cr","line_number":16,"url":null},"def":{"name":"info_mappings","return_type":"Hash(String, String)","visibility":"Public","body":"@info_mappings"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"location":{"filename":"src/placeos/api/models/auths/oauth.cr","line_number":8,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"raw_info_url:String-instance-method","name":"raw_info_url","doc":"URL to call with a valid token to obtain the users profile data (name, email etc)","summary":"URL to call with a valid token to obtain the users profile data (name, email etc)
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/oauth.cr","line_number":39,"url":null},"def":{"name":"raw_info_url","return_type":"String","visibility":"Public","body":"@raw_info_url"}},{"html_id":"scope:String-instance-method","name":"scope","doc":"Space seperated scope strings\ni.e. `https://www.googleapis.com/auth/devstorage.readonly https://www.googleapis.com/auth/prediction`","summary":"Space seperated scope strings i.e.
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/oauth.cr","line_number":36,"url":null},"def":{"name":"scope","return_type":"String","visibility":"Public","body":"@scope"}},{"html_id":"site:String-instance-method","name":"site","doc":"The HTTP URL of the SSO provider","summary":"The HTTP URL of the SSO provider
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/oauth.cr","line_number":19,"url":null},"def":{"name":"site","return_type":"String","visibility":"Public","body":"@site"}},{"html_id":"token_method:String-instance-method","name":"token_method","doc":"If not set it defaults to \"post\"","summary":"If not set it defaults to "post"
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/oauth.cr","line_number":26,"url":null},"def":{"name":"token_method","return_type":"String","visibility":"Public","body":"@token_method"}},{"html_id":"token_url:String-instance-method","name":"token_url","doc":"defaults to: `oauth/token` however google is: `/o/oauth2/token`","summary":"defaults to: oauth/token
however google is: /o/oauth2/token
The URL at which the SAML assertion should be received (SSO Service => Engine URL)
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/saml.cr","line_number":25,"url":null},"def":{"name":"assertion_consumer_service_url","return_type":"String","visibility":"Public","body":"@assertion_consumer_service_url"}},{"html_id":"authority_id:String-instance-method","name":"authority_id","abstract":false,"location":{"filename":"src/placeos/api/models/auths/saml.cr","line_number":9,"url":null},"def":{"name":"authority_id","return_type":"String","visibility":"Public","body":"@authority_id"}},{"html_id":"getter_service_name:String-instance-method","name":"getter_service_name","doc":"Name for the getter service (Defaults to Required getters)","summary":"Name for the getter service (Defaults to Required getters)
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/saml.cr","line_number":37,"url":null},"def":{"name":"getter_service_name","return_type":"String","visibility":"Public","body":"@getter_service_name"}},{"html_id":"getter_statements:Hash(String,Array(String))-instance-method","name":"getter_statements","doc":"Used to map getter Names in a SAMLResponse to entries in the OmniAuth info hash","summary":"Used to map getter Names in a SAMLResponse to entries in the OmniAuth info hash
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/saml.cr","line_number":40,"url":null},"def":{"name":"getter_statements","return_type":"Hash(String, Array(String))","visibility":"Public","body":"@getter_statements"}},{"html_id":"id:String-instance-method","name":"id","abstract":false,"location":{"filename":"src/placeos/api/models/auths/saml.cr","line_number":7,"url":null},"def":{"name":"id","return_type":"String","visibility":"Public","body":"@id"}},{"html_id":"idp_cert:String-instance-method","name":"idp_cert","doc":"The identity provider's certificate in PEM format (this or fingerprint is required)","summary":"The identity provider's certificate in PEM format (this or fingerprint is required)
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/saml.cr","line_number":31,"url":null},"def":{"name":"idp_cert","return_type":"String","visibility":"Public","body":"@idp_cert"}},{"html_id":"idp_cert_fingerprint:String-instance-method","name":"idp_cert_fingerprint","doc":"The SHA1 fingerprint of the certificate","summary":"The SHA1 fingerprint of the certificate
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/saml.cr","line_number":34,"url":null},"def":{"name":"idp_cert_fingerprint","return_type":"String","visibility":"Public","body":"@idp_cert_fingerprint"}},{"html_id":"idp_slo_target_url:String-instance-method","name":"idp_slo_target_url","doc":"The URL to which the single logout request and response should be sent","summary":"The URL to which the single logout request and response should be sent
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/saml.cr","line_number":46,"url":null},"def":{"name":"idp_slo_target_url","return_type":"String","visibility":"Public","body":"@idp_slo_target_url"}},{"html_id":"idp_sso_target_url:String-instance-method","name":"idp_sso_target_url","doc":"The URL to which the authentication request should be sent (Engine => SSO Service)","summary":"The URL to which the authentication request should be sent (Engine => SSO Service)
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/saml.cr","line_number":28,"url":null},"def":{"name":"idp_sso_target_url","return_type":"String","visibility":"Public","body":"@idp_sso_target_url"}},{"html_id":"idp_sso_target_url_runtime_params:Hash(String,String)-instance-method","name":"idp_sso_target_url_runtime_params","doc":"mapping of request params that exist during the request phase of OmniAuth that should to be sent to the IdP","summary":"mapping of request params that exist during the request phase of OmniAuth that should to be sent to the IdP
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/saml.cr","line_number":15,"url":null},"def":{"name":"idp_sso_target_url_runtime_params","return_type":"Hash(String, String)","visibility":"Public","body":"@idp_sso_target_url_runtime_params"}},{"html_id":"issuer:String-instance-method","name":"issuer","doc":"The name of your application","summary":"The name of your application
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/saml.cr","line_number":12,"url":null},"def":{"name":"issuer","return_type":"String","visibility":"Public","body":"@issuer"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"location":{"filename":"src/placeos/api/models/auths/saml.cr","line_number":8,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"name_identifier_format:String-instance-method","name":"name_identifier_format","doc":"Describes the format of the username required by this application","summary":"Describes the format of the username required by this application
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/saml.cr","line_number":18,"url":null},"def":{"name":"name_identifier_format","return_type":"String","visibility":"Public","body":"@name_identifier_format"}},{"html_id":"request_getters:Array(NamedTuple(name:String,name_format:String,friendly_name:String))-instance-method","name":"request_getters","doc":"Used to map getter Names in a SAMLResponse to entries in the OmniAuth info hash","summary":"Used to map getter Names in a SAMLResponse to entries in the OmniAuth info hash
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/saml.cr","line_number":43,"url":null},"def":{"name":"request_getters","return_type":"Array(NamedTuple(name: String, name_format: String, friendly_name: String))","visibility":"Public","body":"@request_getters"}},{"html_id":"slo_default_relay_state:String-instance-method","name":"slo_default_relay_state","doc":"The value to use as default RelayState for single log outs","summary":"The value to use as default RelayState for single log outs
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/saml.cr","line_number":49,"url":null},"def":{"name":"slo_default_relay_state","return_type":"String","visibility":"Public","body":"@slo_default_relay_state"}},{"html_id":"uid_getter:String-instance-method","name":"uid_getter","doc":"getter that uniquely identifies the user\n(If unset, the name identifier returned by the IdP is used.)","summary":"getter that uniquely identifies the user (If unset, the name identifier returned by the IdP is used.)
","abstract":false,"location":{"filename":"src/placeos/api/models/auths/saml.cr","line_number":22,"url":null},"def":{"name":"uid_getter","return_type":"String","visibility":"Public","body":"@uid_getter"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Settings","path":"PlaceOS/Client/API/Models/Settings.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Settings","name":"Settings","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/settings.cr","line_number":6,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/settings.cr","line_number":6,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"encryption_level:Encryption::Level-instance-method","name":"encryption_level","abstract":false,"location":{"filename":"src/placeos/api/models/settings.cr","line_number":9,"url":null},"def":{"name":"encryption_level","return_type":"Encryption::Level","visibility":"Public","body":"@encryption_level"}},{"html_id":"id:String-instance-method","name":"id","abstract":false,"location":{"filename":"src/placeos/api/models/settings.cr","line_number":7,"url":null},"def":{"name":"id","return_type":"String","visibility":"Public","body":"@id"}},{"html_id":"keys:Array(String)-instance-method","name":"keys","abstract":false,"location":{"filename":"src/placeos/api/models/settings.cr","line_number":11,"url":null},"def":{"name":"keys","return_type":"Array(String)","visibility":"Public","body":"@keys"}},{"html_id":"parent_id:String-instance-method","name":"parent_id","abstract":false,"location":{"filename":"src/placeos/api/models/settings.cr","line_number":12,"url":null},"def":{"name":"parent_id","return_type":"String","visibility":"Public","body":"@parent_id"}},{"html_id":"parent_type:String-instance-method","name":"parent_type","abstract":false,"location":{"filename":"src/placeos/api/models/settings.cr","line_number":13,"url":null},"def":{"name":"parent_type","return_type":"String","visibility":"Public","body":"@parent_type"}},{"html_id":"settings_string:String-instance-method","name":"settings_string","abstract":false,"location":{"filename":"src/placeos/api/models/settings.cr","line_number":10,"url":null},"def":{"name":"settings_string","return_type":"String","visibility":"Public","body":"@settings_string"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/System","path":"PlaceOS/Client/API/Models/System.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::System","name":"System","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/system.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/system.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"bookable:Bool-instance-method","name":"bookable","doc":"Flag for signifying the space as reservable.","summary":"Flag for signifying the space as reservable.
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":50,"url":null},"def":{"name":"bookable","return_type":"Bool","visibility":"Public","body":"@bookable"}},{"html_id":"capacity:Int32-instance-method","name":"capacity","doc":"Number of people that can be accommodated in this space.","summary":"Number of people that can be accommodated in this space.
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":44,"url":null},"def":{"name":"capacity","return_type":"Int32","visibility":"Public","body":"@capacity"}},{"html_id":"code:String|Nil-instance-method","name":"code","doc":"the room identification code, like 3-04 etc.","summary":"the room identification code, like 3-04 etc.
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":32,"url":null},"def":{"name":"code","return_type":"String | ::Nil","visibility":"Public","body":"@code"}},{"html_id":"description:String|Nil-instance-method","name":"description","doc":"Markdown formatted text that describes the system.","summary":"Markdown formatted text that describes the system.
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":20,"url":null},"def":{"name":"description","return_type":"String | ::Nil","visibility":"Public","body":"@description"}},{"html_id":"display_name:String|Nil-instance-method","name":"display_name","doc":"an alternative to the full name that is easier to read.","summary":"an alternative to the full name that is easier to read.
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":26,"url":null},"def":{"name":"display_name","return_type":"String | ::Nil","visibility":"Public","body":"@display_name"}},{"html_id":"email:String|Nil-instance-method","name":"email","doc":"Calendar URI that is associated with this system.","summary":"Calendar URI that is associated with this system.
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":23,"url":null},"def":{"name":"email","return_type":"String | ::Nil","visibility":"Public","body":"@email"}},{"html_id":"features:Set(String)-instance-method","name":"features","doc":"List of features in the room for searching and filtering spaces.","summary":"List of features in the room for searching and filtering spaces.
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":47,"url":null},"def":{"name":"features","return_type":"Set(String)","visibility":"Public","body":"@features"}},{"html_id":"id:String-instance-method","name":"id","doc":"A universally unique identifier for the system.","summary":"A universally unique identifier for the system.
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":8,"url":null},"def":{"name":"id","return_type":"String","visibility":"Public","body":"@id"}},{"html_id":"images:Array(String)|Nil-instance-method","name":"images","doc":"images of this room","summary":"images of this room
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":41,"url":null},"def":{"name":"images","return_type":"Array(String) | ::Nil","visibility":"Public","body":"@images"}},{"html_id":"installed_ui_devices:Int32-instance-method","name":"installed_ui_devices","doc":"Expected number of fixed installation touch panels.","summary":"Expected number of fixed installation touch panels.
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":56,"url":null},"def":{"name":"installed_ui_devices","return_type":"Int32","visibility":"Public","body":"@installed_ui_devices"}},{"html_id":"map_id:String|Nil-instance-method","name":"map_id","doc":"a map identifier that can be used to locate this system.","summary":"a map identifier that can be used to locate this system.
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":38,"url":null},"def":{"name":"map_id","return_type":"String | ::Nil","visibility":"Public","body":"@map_id"}},{"html_id":"modules:Array(String)-instance-method","name":"modules","doc":"Module ID's that this system contains.","summary":"Module ID's that this system contains.
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":17,"url":null},"def":{"name":"modules","return_type":"Array(String)","visibility":"Public","body":"@modules"}},{"html_id":"name:String-instance-method","name":"name","doc":"A human readable identifier.","summary":"A human readable identifier.
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":11,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"public:Bool|Nil-instance-method","name":"public","doc":"is the system intended for public access?","summary":"is the system intended for public access?
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":53,"url":null},"def":{"name":"public","return_type":"Bool | ::Nil","visibility":"Public","body":"@public"}},{"html_id":"support_url:String|Nil-instance-method","name":"support_url","doc":"A URL linking to the primary interface for controlling this system.","summary":"A URL linking to the primary interface for controlling this system.
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":59,"url":null},"def":{"name":"support_url","return_type":"String | ::Nil","visibility":"Public","body":"@support_url"}},{"html_id":"timezone:String|Nil-instance-method","name":"timezone","doc":"timezone the system is located","summary":"timezone the system is located
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":29,"url":null},"def":{"name":"timezone","return_type":"String | ::Nil","visibility":"Public","body":"@timezone"}},{"html_id":"type:String|Nil-instance-method","name":"type","doc":"the system type, like a small meeting room etc.","summary":"the system type, like a small meeting room etc.
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":35,"url":null},"def":{"name":"type","return_type":"String | ::Nil","visibility":"Public","body":"@type"}},{"html_id":"version:Int32-instance-method","name":"version","doc":"Incrementing counter for handling stale updates.","summary":"Incrementing counter for handling stale updates.
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":62,"url":null},"def":{"name":"version","return_type":"Int32","visibility":"Public","body":"@version"}},{"html_id":"zones:Array(String)-instance-method","name":"zones","doc":"Zone IDs that this system is a member of.","summary":"Zone IDs that this system is a member of.
","abstract":false,"location":{"filename":"src/placeos/api/models/system.cr","line_number":14,"url":null},"def":{"name":"zones","return_type":"Array(String)","visibility":"Public","body":"@zones"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","path":"PlaceOS/Client/API/Models/Timestamps.html","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps","abstract":false,"locations":[{"filename":"src/placeos/api/models/response.cr","line_number":29,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"including_types":[{"html_id":"placeos/PlaceOS/Client/API/Models/APIKey","kind":"struct","full_name":"PlaceOS::Client::API::Models::APIKey","name":"APIKey"},{"html_id":"placeos/PlaceOS/Client/API/Models/Driver","kind":"struct","full_name":"PlaceOS::Client::API::Models::Driver","name":"Driver"},{"html_id":"placeos/PlaceOS/Client/API/Models/LdapAuthentication","kind":"struct","full_name":"PlaceOS::Client::API::Models::LdapAuthentication","name":"LdapAuthentication"},{"html_id":"placeos/PlaceOS/Client/API/Models/Module","kind":"struct","full_name":"PlaceOS::Client::API::Models::Module","name":"Module"},{"html_id":"placeos/PlaceOS/Client/API/Models/OAuthApplication","kind":"struct","full_name":"PlaceOS::Client::API::Models::OAuthApplication","name":"OAuthApplication"},{"html_id":"placeos/PlaceOS/Client/API/Models/OAuthAuthentication","kind":"struct","full_name":"PlaceOS::Client::API::Models::OAuthAuthentication","name":"OAuthAuthentication"},{"html_id":"placeos/PlaceOS/Client/API/Models/SamlAuthentication","kind":"struct","full_name":"PlaceOS::Client::API::Models::SamlAuthentication","name":"SamlAuthentication"},{"html_id":"placeos/PlaceOS/Client/API/Models/System","kind":"struct","full_name":"PlaceOS::Client::API::Models::System","name":"System"},{"html_id":"placeos/PlaceOS/Client/API/Models/Zone","kind":"struct","full_name":"PlaceOS::Client::API::Models::Zone","name":"Zone"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"instance_methods":[{"html_id":"created_at:Time-instance-method","name":"created_at","doc":"Creation time.","summary":"Creation time.
","abstract":false,"location":{"filename":"src/placeos/api/models/response.cr","line_number":32,"url":null},"def":{"name":"created_at","return_type":"Time","visibility":"Public","body":"@created_at"}},{"html_id":"updated_at:Time-instance-method","name":"updated_at","doc":"Update time.","summary":"Update time.
","abstract":false,"location":{"filename":"src/placeos/api/models/response.cr","line_number":36,"url":null},"def":{"name":"updated_at","return_type":"Time","visibility":"Public","body":"@updated_at"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger","path":"PlaceOS/Client/API/Models/Trigger.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger","name":"Trigger","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/trigger.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/trigger.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"actions:Actions-instance-method","name":"actions","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":9,"url":null},"def":{"name":"actions","return_type":"Actions","visibility":"Public","body":"@actions"}},{"html_id":"conditions:Conditions-instance-method","name":"conditions","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":10,"url":null},"def":{"name":"conditions","return_type":"Conditions","visibility":"Public","body":"@conditions"}},{"html_id":"control_system_id:String-instance-method","name":"control_system_id","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":7,"url":null},"def":{"name":"control_system_id","return_type":"String","visibility":"Public","body":"@control_system_id"}},{"html_id":"debounce_period:Int32-instance-method","name":"debounce_period","doc":"In milliseconds","summary":"In milliseconds
","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":13,"url":null},"def":{"name":"debounce_period","return_type":"Int32","visibility":"Public","body":"@debounce_period"}},{"html_id":"description:String-instance-method","name":"description","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":6,"url":null},"def":{"name":"description","return_type":"String","visibility":"Public","body":"@description"}},{"html_id":"enable_webhook:Bool-instance-method","name":"enable_webhook","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":16,"url":null},"def":{"name":"enable_webhook","return_type":"Bool","visibility":"Public","body":"@enable_webhook"}},{"html_id":"important:Bool-instance-method","name":"important","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":14,"url":null},"def":{"name":"important","return_type":"Bool","visibility":"Public","body":"@important"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":5,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"supported_methods:Array(String)-instance-method","name":"supported_methods","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":17,"url":null},"def":{"name":"supported_methods","return_type":"Array(String)","visibility":"Public","body":"@supported_methods"}}],"types":[{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Actions","path":"PlaceOS/Client/API/Models/Trigger/Actions.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger::Actions","name":"Actions","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/trigger.cr","line_number":19,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger","name":"Trigger"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/trigger.cr","line_number":19,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"functions:Array(Function)-instance-method","name":"functions","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":20,"url":null},"def":{"name":"functions","return_type":"Array(Function)","visibility":"Public","body":"@functions"}},{"html_id":"mailers:Array(Email)-instance-method","name":"mailers","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":21,"url":null},"def":{"name":"mailers","return_type":"Array(Email)","visibility":"Public","body":"@mailers"}}],"types":[{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Actions/Email","path":"PlaceOS/Client/API/Models/Trigger/Actions/Email.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger::Actions::Email","name":"Email","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/trigger.cr","line_number":23,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Actions","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger::Actions","name":"Actions"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/trigger.cr","line_number":23,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"content:String-instance-method","name":"content","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":25,"url":null},"def":{"name":"content","return_type":"String","visibility":"Public","body":"@content"}},{"html_id":"emails:Array(String)-instance-method","name":"emails","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":24,"url":null},"def":{"name":"emails","return_type":"Array(String)","visibility":"Public","body":"@emails"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Actions/Function","path":"PlaceOS/Client/API/Models/Trigger/Actions/Function.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger::Actions::Function","name":"Function","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/trigger.cr","line_number":28,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Actions","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger::Actions","name":"Actions"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/trigger.cr","line_number":28,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"args:Hash(String,JSON::Any)-instance-method","name":"args","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":31,"url":null},"def":{"name":"args","return_type":"Hash(String, JSON::Any)","visibility":"Public","body":"@args"}},{"html_id":"method:String-instance-method","name":"method","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":30,"url":null},"def":{"name":"method","return_type":"String","visibility":"Public","body":"@method"}},{"html_id":"mod:String-instance-method","name":"mod","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":29,"url":null},"def":{"name":"mod","return_type":"String","visibility":"Public","body":"@mod"}}]}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Conditions","path":"PlaceOS/Client/API/Models/Trigger/Conditions.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger::Conditions","name":"Conditions","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/trigger.cr","line_number":35,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger","name":"Trigger"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/trigger.cr","line_number":35,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"comparisons:Array(Comparison)-instance-method","name":"comparisons","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":36,"url":null},"def":{"name":"comparisons","return_type":"Array(Comparison)","visibility":"Public","body":"@comparisons"}},{"html_id":"time_dependents:Array(TimeDependent)-instance-method","name":"time_dependents","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":37,"url":null},"def":{"name":"time_dependents","return_type":"Array(TimeDependent)","visibility":"Public","body":"@time_dependents"}}],"types":[{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Conditions/Comparison","path":"PlaceOS/Client/API/Models/Trigger/Conditions/Comparison.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger::Conditions::Comparison","name":"Comparison","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/trigger.cr","line_number":39,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"constants":[{"id":"OPERATORS","name":"OPERATORS","value":"{\"equal\", \"not_equal\", \"greater_than\", \"greater_than_or_equal\", \"less_than\", \"less_than_or_equal\", \"and\", \"or\", \"exclusive_or\"}"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Conditions","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger::Conditions","name":"Conditions"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/trigger.cr","line_number":39,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"left:Value-instance-method","name":"left","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":40,"url":null},"def":{"name":"left","return_type":"Value","visibility":"Public","body":"@left"}},{"html_id":"operator:String-instance-method","name":"operator","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":41,"url":null},"def":{"name":"operator","return_type":"String","visibility":"Public","body":"@operator"}},{"html_id":"right:Value-instance-method","name":"right","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":42,"url":null},"def":{"name":"right","return_type":"Value","visibility":"Public","body":"@right"}}],"types":[{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Conditions/Comparison/Constant","path":"PlaceOS/Client/API/Models/Trigger/Conditions/Comparison/Constant.html","kind":"alias","full_name":"PlaceOS::Client::API::Models::Trigger::Conditions::Comparison::Constant","name":"Constant","abstract":false,"locations":[{"filename":"src/placeos/api/models/trigger.cr","line_number":47,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":true,"aliased":"(Bool | Float64 | Int64 | String)","aliased_html":"Bool | Float64 | Int64 | String","const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Conditions/Comparison","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger::Conditions::Comparison","name":"Comparison"},"doc":"Constant value","summary":"Constant value
"},{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Conditions/Comparison/StatusVariable","path":"PlaceOS/Client/API/Models/Trigger/Conditions/Comparison/StatusVariable.html","kind":"alias","full_name":"PlaceOS::Client::API::Models::Trigger::Conditions::Comparison::StatusVariable","name":"StatusVariable","abstract":false,"locations":[{"filename":"src/placeos/api/models/trigger.cr","line_number":50,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":true,"aliased":"NamedTuple(mod: String, status: String, keys: Array(String))","aliased_html":"{mod: String, status: String, keys: Array(String)}","const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Conditions/Comparison","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger::Conditions::Comparison","name":"Comparison"},"doc":"Status of a Module","summary":"Status of a Module
"},{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Conditions/Comparison/Value","path":"PlaceOS/Client/API/Models/Trigger/Conditions/Comparison/Value.html","kind":"alias","full_name":"PlaceOS::Client::API::Models::Trigger::Conditions::Comparison::Value","name":"Value","abstract":false,"locations":[{"filename":"src/placeos/api/models/trigger.cr","line_number":44,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":true,"aliased":"(Bool | Float64 | Int64 | NamedTuple(mod: String, status: String, keys: Array(String)) | String)","aliased_html":"Bool | Float64 | Int64 | {mod: String, status: String, keys: Array(String)} | String","const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Conditions/Comparison","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger::Conditions::Comparison","name":"Comparison"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Conditions/TimeDependent","path":"PlaceOS/Client/API/Models/Trigger/Conditions/TimeDependent.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger::Conditions::TimeDependent","name":"TimeDependent","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/trigger.cr","line_number":65,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Conditions","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger::Conditions","name":"Conditions"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/trigger.cr","line_number":65,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"cron:String|Nil-instance-method","name":"cron","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":76,"url":null},"def":{"name":"cron","return_type":"String | ::Nil","visibility":"Public","body":"@cron"}},{"html_id":"time:Time|Nil-instance-method","name":"time","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":74,"url":null},"def":{"name":"time","return_type":"Time | ::Nil","visibility":"Public","body":"@time"}},{"html_id":"type:Type-instance-method","name":"type","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":71,"url":null},"def":{"name":"type","return_type":"Type","visibility":"Public","body":"@type"}}],"types":[{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Conditions/TimeDependent/Type","path":"PlaceOS/Client/API/Models/Trigger/Conditions/TimeDependent/Type.html","kind":"enum","full_name":"PlaceOS::Client::API::Models::Trigger::Conditions::TimeDependent::Type","name":"Type","abstract":false,"ancestors":[{"html_id":"placeos/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"placeos/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/trigger.cr","line_number":66,"url":null}],"repository_name":"placeos","program":false,"enum":true,"alias":false,"const":false,"constants":[{"id":"At","name":"At","value":"0"},{"id":"Cron","name":"Cron","value":"1"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Trigger/Conditions/TimeDependent","kind":"struct","full_name":"PlaceOS::Client::API::Models::Trigger::Conditions::TimeDependent","name":"TimeDependent"},"instance_methods":[{"html_id":"at?-instance-method","name":"at?","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":67,"url":null},"def":{"name":"at?","visibility":"Public","body":"self == At"}},{"html_id":"cron?-instance-method","name":"cron?","abstract":false,"location":{"filename":"src/placeos/api/models/trigger.cr","line_number":68,"url":null},"def":{"name":"cron?","visibility":"Public","body":"self == Cron"}}]}]}]}]},{"html_id":"placeos/PlaceOS/Client/API/Models/TriggerInstance","path":"PlaceOS/Client/API/Models/TriggerInstance.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::TriggerInstance","name":"TriggerInstance","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/trigger_instance.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/trigger_instance.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"control_system_id:String|Nil-instance-method","name":"control_system_id","abstract":false,"location":{"filename":"src/placeos/api/models/trigger_instance.cr","line_number":5,"url":null},"def":{"name":"control_system_id","return_type":"String | ::Nil","visibility":"Public","body":"@control_system_id"}},{"html_id":"enabled:Bool-instance-method","name":"enabled","abstract":false,"location":{"filename":"src/placeos/api/models/trigger_instance.cr","line_number":9,"url":null},"def":{"name":"enabled","return_type":"Bool","visibility":"Public","body":"@enabled"}},{"html_id":"exec_enabled:Bool-instance-method","name":"exec_enabled","abstract":false,"location":{"filename":"src/placeos/api/models/trigger_instance.cr","line_number":12,"url":null},"def":{"name":"exec_enabled","return_type":"Bool","visibility":"Public","body":"@exec_enabled"}},{"html_id":"important:Bool-instance-method","name":"important","abstract":false,"location":{"filename":"src/placeos/api/models/trigger_instance.cr","line_number":11,"url":null},"def":{"name":"important","return_type":"Bool","visibility":"Public","body":"@important"}},{"html_id":"trigger_count:Int32-instance-method","name":"trigger_count","abstract":false,"location":{"filename":"src/placeos/api/models/trigger_instance.cr","line_number":15,"url":null},"def":{"name":"trigger_count","return_type":"Int32","visibility":"Public","body":"@trigger_count"}},{"html_id":"trigger_id:String|Nil-instance-method","name":"trigger_id","abstract":false,"location":{"filename":"src/placeos/api/models/trigger_instance.cr","line_number":6,"url":null},"def":{"name":"trigger_id","return_type":"String | ::Nil","visibility":"Public","body":"@trigger_id"}},{"html_id":"triggered:Bool-instance-method","name":"triggered","abstract":false,"location":{"filename":"src/placeos/api/models/trigger_instance.cr","line_number":10,"url":null},"def":{"name":"triggered","return_type":"Bool","visibility":"Public","body":"@triggered"}},{"html_id":"webhook_secret:String-instance-method","name":"webhook_secret","abstract":false,"location":{"filename":"src/placeos/api/models/trigger_instance.cr","line_number":14,"url":null},"def":{"name":"webhook_secret","return_type":"String","visibility":"Public","body":"@webhook_secret"}},{"html_id":"zone_id:String|Nil-instance-method","name":"zone_id","abstract":false,"location":{"filename":"src/placeos/api/models/trigger_instance.cr","line_number":7,"url":null},"def":{"name":"zone_id","return_type":"String | ::Nil","visibility":"Public","body":"@zone_id"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/User","path":"PlaceOS/Client/API/Models/User.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::User","name":"User","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/user.cr","line_number":6,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"doc":"Metadata about the current user","summary":"Metadata about the current user
","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Metadata about the current user","summary":"Metadata about the current user
","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/user.cr","line_number":6,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"associated_metadata:Hash(String,Metadata)|Nil-instance-method","name":"associated_metadata","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":39,"url":null},"def":{"name":"associated_metadata","return_type":"Hash(String, Metadata) | ::Nil","visibility":"Public","body":"@associated_metadata"}},{"html_id":"authority_id:String-instance-method","name":"authority_id","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":20,"url":null},"def":{"name":"authority_id","return_type":"String","visibility":"Public","body":"@authority_id"}},{"html_id":"building:String|Nil-instance-method","name":"building","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":18,"url":null},"def":{"name":"building","return_type":"String | ::Nil","visibility":"Public","body":"@building"}},{"html_id":"card_number:String|Nil-instance-method","name":"card_number","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":36,"url":null},"def":{"name":"card_number","return_type":"String | ::Nil","visibility":"Public","body":"@card_number"}},{"html_id":"country:String|Nil-instance-method","name":"country","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":17,"url":null},"def":{"name":"country","return_type":"String | ::Nil","visibility":"Public","body":"@country"}},{"html_id":"created_at:Time-instance-method","name":"created_at","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":8,"url":null},"def":{"name":"created_at","return_type":"Time","visibility":"Public","body":"@created_at"}},{"html_id":"deleted:Bool|Nil-instance-method","name":"deleted","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":21,"url":null},"def":{"name":"deleted","return_type":"Bool | ::Nil","visibility":"Public","body":"@deleted"}},{"html_id":"department:String|Nil-instance-method","name":"department","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":22,"url":null},"def":{"name":"department","return_type":"String | ::Nil","visibility":"Public","body":"@department"}},{"html_id":"email:String-instance-method","name":"email","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":30,"url":null},"def":{"name":"email","return_type":"String","visibility":"Public","body":"@email"}},{"html_id":"email_digest:String-instance-method","name":"email_digest","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":11,"url":null},"def":{"name":"email_digest","return_type":"String","visibility":"Public","body":"@email_digest"}},{"html_id":"first_name:String|Nil-instance-method","name":"first_name","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":14,"url":null},"def":{"name":"first_name","return_type":"String | ::Nil","visibility":"Public","body":"@first_name"}},{"html_id":"groups:Array(String)|Nil-instance-method","name":"groups","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":16,"url":null},"def":{"name":"groups","return_type":"Array(String) | ::Nil","visibility":"Public","body":"@groups"}},{"html_id":"id:String-instance-method","name":"id","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":10,"url":null},"def":{"name":"id","return_type":"String","visibility":"Public","body":"@id"}},{"html_id":"image:String|Nil-instance-method","name":"image","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":19,"url":null},"def":{"name":"image","return_type":"String | ::Nil","visibility":"Public","body":"@image"}},{"html_id":"last_name:String|Nil-instance-method","name":"last_name","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":15,"url":null},"def":{"name":"last_name","return_type":"String | ::Nil","visibility":"Public","body":"@last_name"}},{"html_id":"login_name:String|Nil-instance-method","name":"login_name","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":34,"url":null},"def":{"name":"login_name","return_type":"String | ::Nil","visibility":"Public","body":"@login_name"}},{"html_id":"metadata:String|Nil-instance-method","name":"metadata","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":33,"url":null},"def":{"name":"metadata","return_type":"String | ::Nil","visibility":"Public","body":"@metadata"}},{"html_id":"misc:String|Nil-instance-method","name":"misc","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":37,"url":null},"def":{"name":"misc","return_type":"String | ::Nil","visibility":"Public","body":"@misc"}},{"html_id":"name:String-instance-method","name":"name","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":13,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"nickname:String|Nil-instance-method","name":"nickname","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":12,"url":null},"def":{"name":"nickname","return_type":"String | ::Nil","visibility":"Public","body":"@nickname"}},{"html_id":"phone:String|Nil-instance-method","name":"phone","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":31,"url":null},"def":{"name":"phone","return_type":"String | ::Nil","visibility":"Public","body":"@phone"}},{"html_id":"preferred_language:String|Nil-instance-method","name":"preferred_language","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":23,"url":null},"def":{"name":"preferred_language","return_type":"String | ::Nil","visibility":"Public","body":"@preferred_language"}},{"html_id":"staff_id:String|Nil-instance-method","name":"staff_id","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":35,"url":null},"def":{"name":"staff_id","return_type":"String | ::Nil","visibility":"Public","body":"@staff_id"}},{"html_id":"support:Bool|Nil-instance-method","name":"support","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":29,"url":null},"def":{"name":"support","return_type":"Bool | ::Nil","visibility":"Public","body":"@support"}},{"html_id":"sys_admin:Bool|Nil-instance-method","name":"sys_admin","doc":"Admin only fields","summary":"Admin only fields
","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":28,"url":null},"def":{"name":"sys_admin","return_type":"Bool | ::Nil","visibility":"Public","body":"@sys_admin"}},{"html_id":"ui_theme:String|Nil-instance-method","name":"ui_theme","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":32,"url":null},"def":{"name":"ui_theme","return_type":"String | ::Nil","visibility":"Public","body":"@ui_theme"}},{"html_id":"work_overrides:Hash(String,PlaceOS::Model::User::WorktimePreference)-instance-method","name":"work_overrides","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":25,"url":null},"def":{"name":"work_overrides","return_type":"Hash(String, PlaceOS::Model::User::WorktimePreference)","visibility":"Public","body":"@work_overrides"}},{"html_id":"work_preferences:Array(PlaceOS::Model::User::WorktimePreference)-instance-method","name":"work_preferences","abstract":false,"location":{"filename":"src/placeos/api/models/user.cr","line_number":24,"url":null},"def":{"name":"work_preferences","return_type":"Array(PlaceOS::Model::User::WorktimePreference)","visibility":"Public","body":"@work_preferences"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Version","path":"PlaceOS/Client/API/Models/Version.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Version","name":"Version","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/version.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/version.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"app:String-instance-method","name":"app","doc":"The PlaceOS application name","summary":"The PlaceOS application name
","abstract":false,"location":{"filename":"src/placeos/api/models/version.cr","line_number":6,"url":null},"def":{"name":"app","return_type":"String","visibility":"Public","body":"@app"}},{"html_id":"build_time:String-instance-method","name":"build_time","doc":"The build time of the docker container","summary":"The build time of the docker container
","abstract":false,"location":{"filename":"src/placeos/api/models/version.cr","line_number":15,"url":null},"def":{"name":"build_time","return_type":"String","visibility":"Public","body":"@build_time"}},{"html_id":"commit:String-instance-method","name":"commit","doc":"the commit hash for the running build","summary":"the commit hash for the running build
","abstract":false,"location":{"filename":"src/placeos/api/models/version.cr","line_number":12,"url":null},"def":{"name":"commit","return_type":"String","visibility":"Public","body":"@commit"}},{"html_id":"version:String-instance-method","name":"version","doc":"The version in the shard yml","summary":"The version in the shard yml
","abstract":false,"location":{"filename":"src/placeos/api/models/version.cr","line_number":9,"url":null},"def":{"name":"version","return_type":"String","visibility":"Public","body":"@version"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket","path":"PlaceOS/Client/API/Models/Websocket.html","kind":"module","full_name":"PlaceOS::Client::API::Models::Websocket","name":"Websocket","abstract":false,"locations":[{"filename":"src/placeos/api/models/websocket/request.cr","line_number":3,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"types":[{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Request","path":"PlaceOS/Client/API/Models/Websocket/Request.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Websocket::Request","name":"Request","abstract":false,"superclass":{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/websocket/request.cr","line_number":3,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket","kind":"module","full_name":"PlaceOS::Client::API::Models::Websocket","name":"Websocket"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/websocket/request.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"args:Array(JSON::Any::Type)|Nil-instance-method","name":"args","doc":"Associated arguments for the command.","summary":"Associated arguments for the command.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/request.cr","line_number":34,"url":null},"def":{"name":"args","return_type":"Array(::JSON::Any::Type) | ::Nil","visibility":"Public","body":"@args"}},{"html_id":"cmd:Type-instance-method","name":"cmd","doc":"The command type.","summary":"The command type.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/request.cr","line_number":19,"url":null},"def":{"name":"cmd","return_type":"Type","visibility":"Public","body":"@cmd"}},{"html_id":"id:String|Int32|Int64-instance-method","name":"id","doc":"A unique identifier to associate with the command. This will be returned as\npart of the response.","summary":"A unique identifier to associate with the command.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/request.cr","line_number":16,"url":null},"def":{"name":"id","return_type":"String | Int32 | Int64","visibility":"Public","body":"@id"}},{"html_id":"index:Int32|Nil-instance-method","name":"index","doc":"The module index the command targets. Defaults to 1.","summary":"The module index the command targets.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/request.cr","line_number":28,"url":null},"def":{"name":"index","return_type":"Int32 | ::Nil","visibility":"Public","body":"@index"}},{"html_id":"mod:String-instance-method","name":"mod","doc":"The module name the command targets.","summary":"The module name the command targets.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/request.cr","line_number":25,"url":null},"def":{"name":"mod","return_type":"String","visibility":"Public","body":"@mod"}},{"html_id":"name:String-instance-method","name":"name","doc":"Name of the status variable of method being interacted with.","summary":"Name of the status variable of method being interacted with.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/request.cr","line_number":31,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"sys:String-instance-method","name":"sys","doc":"The system identified the command targets.","summary":"The system identified the command targets.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/request.cr","line_number":22,"url":null},"def":{"name":"sys","return_type":"String","visibility":"Public","body":"@sys"}}],"types":[{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Request/Type","path":"PlaceOS/Client/API/Models/Websocket/Request/Type.html","kind":"enum","full_name":"PlaceOS::Client::API::Models::Websocket::Request::Type","name":"Type","abstract":false,"ancestors":[{"html_id":"placeos/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"placeos/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/websocket/request.cr","line_number":6,"url":null}],"repository_name":"placeos","program":false,"enum":true,"alias":false,"const":false,"constants":[{"id":"Bind","name":"Bind","value":"0"},{"id":"Unbind","name":"Unbind","value":"1"},{"id":"Exec","name":"Exec","value":"2"},{"id":"Debug","name":"Debug","value":"3"},{"id":"Ignore","name":"Ignore","value":"4"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Request","kind":"struct","full_name":"PlaceOS::Client::API::Models::Websocket::Request","name":"Request"},"instance_methods":[{"html_id":"bind?-instance-method","name":"bind?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/request.cr","line_number":7,"url":null},"def":{"name":"bind?","visibility":"Public","body":"self == Bind"}},{"html_id":"debug?-instance-method","name":"debug?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/request.cr","line_number":10,"url":null},"def":{"name":"debug?","visibility":"Public","body":"self == Debug"}},{"html_id":"exec?-instance-method","name":"exec?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/request.cr","line_number":9,"url":null},"def":{"name":"exec?","visibility":"Public","body":"self == Exec"}},{"html_id":"ignore?-instance-method","name":"ignore?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/request.cr","line_number":11,"url":null},"def":{"name":"ignore?","visibility":"Public","body":"self == Ignore"}},{"html_id":"unbind?-instance-method","name":"unbind?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/request.cr","line_number":8,"url":null},"def":{"name":"unbind?","visibility":"Public","body":"self == Unbind"}}]}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response","path":"PlaceOS/Client/API/Models/Websocket/Response.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Websocket::Response","name":"Response","abstract":false,"superclass":{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/websocket/response.cr","line_number":3,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket","kind":"module","full_name":"PlaceOS::Client::API::Models::Websocket","name":"Websocket"},"class_methods":[{"html_id":"from_json(input)-class-method","name":"from_json","doc":"Parses a websocket response into a concrete response type.\n\nFIXME: currently this is parsing twice - this is a quick hack to get things\ngoing. When time allows this should be refactored to work as a single pass,\nor provide a more efficient method for identifying the message type.","summary":"Parses a websocket response into a concrete response type.
","abstract":false,"args":[{"name":"input","external_name":"input","restriction":""}],"args_string":"(input)","args_html":"(input)","location":{"filename":"src/placeos/api/models/websocket/response.cr","line_number":30,"url":null},"def":{"name":"from_json","args":[{"name":"input","external_name":"input","restriction":""}],"visibility":"Public","body":"json = JSON.parse(input)\ntype = Type.parse(json[\"type\"].as_s)\ntype.model.from_json(input)\n"}}],"constructors":[{"html_id":"new-class-method","name":"new","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response.cr","line_number":3,"url":null},"def":{"name":"new","visibility":"Public","body":"x = allocate\nif x.responds_to?(:finalize)\n ::GC.add_finalizer(x)\nend\nx\n"}}],"instance_methods":[{"html_id":"initialize-instance-method","name":"initialize","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response.cr","line_number":3,"url":null},"def":{"name":"initialize","visibility":"Public","body":""}}],"types":[{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response/Debug","path":"PlaceOS/Client/API/Models/Websocket/Response/Debug.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Websocket::Response::Debug","name":"Debug","abstract":false,"superclass":{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/websocket/response/debug.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Websocket::Response","name":"Response"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/websocket/response/debug.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"id:String|Int32|Int64-instance-method","name":"id","doc":"The identifier included with the original request.","summary":"The identifier included with the original request.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/debug.cr","line_number":17,"url":null},"def":{"name":"id","return_type":"String | Int32 | Int64","visibility":"Public","body":"@id"}},{"html_id":"klass:String-instance-method","name":"klass","doc":"Class of the originating message source.","summary":"Class of the originating message source.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/debug.cr","line_number":23,"url":null},"def":{"name":"klass","return_type":"String","visibility":"Public","body":"@klass"}},{"html_id":"level:Level-instance-method","name":"level","doc":"Message verbosity level.","summary":"Message verbosity level.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/debug.cr","line_number":26,"url":null},"def":{"name":"level","return_type":"Level","visibility":"Public","body":"@level"}},{"html_id":"mod:String-instance-method","name":"mod","doc":"ID of the module the event originated from.","summary":"ID of the module the event originated from.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/debug.cr","line_number":20,"url":null},"def":{"name":"mod","return_type":"String","visibility":"Public","body":"@mod"}},{"html_id":"msg:String-instance-method","name":"msg","doc":"Log message.","summary":"Log message.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/debug.cr","line_number":29,"url":null},"def":{"name":"msg","return_type":"String","visibility":"Public","body":"@msg"}}],"types":[{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response/Debug/Level","path":"PlaceOS/Client/API/Models/Websocket/Response/Debug/Level.html","kind":"enum","full_name":"PlaceOS::Client::API::Models::Websocket::Response::Debug::Level","name":"Level","abstract":false,"ancestors":[{"html_id":"placeos/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"placeos/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/websocket/response/debug.cr","line_number":7,"url":null}],"repository_name":"placeos","program":false,"enum":true,"alias":false,"const":false,"constants":[{"id":"Unknown","name":"Unknown","value":"0"},{"id":"Fatal","name":"Fatal","value":"1"},{"id":"Error","name":"Error","value":"2"},{"id":"Warn","name":"Warn","value":"3"},{"id":"Info","name":"Info","value":"4"},{"id":"Debug","name":"Debug","value":"5"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response/Debug","kind":"struct","full_name":"PlaceOS::Client::API::Models::Websocket::Response::Debug","name":"Debug"},"instance_methods":[{"html_id":"debug?-instance-method","name":"debug?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/debug.cr","line_number":13,"url":null},"def":{"name":"debug?","visibility":"Public","body":"self == Debug"}},{"html_id":"error?-instance-method","name":"error?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/debug.cr","line_number":10,"url":null},"def":{"name":"error?","visibility":"Public","body":"self == Error"}},{"html_id":"fatal?-instance-method","name":"fatal?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/debug.cr","line_number":9,"url":null},"def":{"name":"fatal?","visibility":"Public","body":"self == Fatal"}},{"html_id":"info?-instance-method","name":"info?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/debug.cr","line_number":12,"url":null},"def":{"name":"info?","visibility":"Public","body":"self == Info"}},{"html_id":"unknown?-instance-method","name":"unknown?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/debug.cr","line_number":8,"url":null},"def":{"name":"unknown?","visibility":"Public","body":"self == Unknown"}},{"html_id":"warn?-instance-method","name":"warn?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/debug.cr","line_number":11,"url":null},"def":{"name":"warn?","visibility":"Public","body":"self == Warn"}}]}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response/Error","path":"PlaceOS/Client/API/Models/Websocket/Response/Error.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Websocket::Response::Error","name":"Error","abstract":false,"superclass":{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/websocket/response/error.cr","line_number":3,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Websocket::Response","name":"Response"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/websocket/response/error.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"code:Code-instance-method","name":"code","doc":"Error type.","summary":"Error type.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/error.cr","line_number":21,"url":null},"def":{"name":"code","return_type":"Code","visibility":"Public","body":"@code"}},{"html_id":"id:String|Int32|Int64-instance-method","name":"id","doc":"The identifier included with the original request.","summary":"The identifier included with the original request.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/error.cr","line_number":18,"url":null},"def":{"name":"id","return_type":"String | Int32 | Int64","visibility":"Public","body":"@id"}},{"html_id":"msg:String-instance-method","name":"msg","doc":"Additional error info.","summary":"Additional error info.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/error.cr","line_number":24,"url":null},"def":{"name":"msg","return_type":"String","visibility":"Public","body":"@msg"}}],"types":[{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response/Error/Code","path":"PlaceOS/Client/API/Models/Websocket/Response/Error/Code.html","kind":"enum","full_name":"PlaceOS::Client::API::Models::Websocket::Response::Error::Code","name":"Code","abstract":false,"ancestors":[{"html_id":"placeos/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"placeos/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/websocket/response/error.cr","line_number":6,"url":null}],"repository_name":"placeos","program":false,"enum":true,"alias":false,"const":false,"constants":[{"id":"ParseError","name":"ParseError","value":"0"},{"id":"BadRequest","name":"BadRequest","value":"1"},{"id":"AccessDenied","name":"AccessDenied","value":"2"},{"id":"RequestFailed","name":"RequestFailed","value":"3"},{"id":"UnknownCommand","name":"UnknownCommand","value":"4"},{"id":"SystemNotFound","name":"SystemNotFound","value":"5"},{"id":"ModuleNotFound","name":"ModuleNotFound","value":"6"},{"id":"UnexpectedFailure","name":"UnexpectedFailure","value":"7"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response/Error","kind":"struct","full_name":"PlaceOS::Client::API::Models::Websocket::Response::Error","name":"Error"},"instance_methods":[{"html_id":"access_denied?-instance-method","name":"access_denied?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/error.cr","line_number":9,"url":null},"def":{"name":"access_denied?","visibility":"Public","body":"self == AccessDenied"}},{"html_id":"bad_request?-instance-method","name":"bad_request?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/error.cr","line_number":8,"url":null},"def":{"name":"bad_request?","visibility":"Public","body":"self == BadRequest"}},{"html_id":"module_not_found?-instance-method","name":"module_not_found?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/error.cr","line_number":13,"url":null},"def":{"name":"module_not_found?","visibility":"Public","body":"self == ModuleNotFound"}},{"html_id":"parse_error?-instance-method","name":"parse_error?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/error.cr","line_number":7,"url":null},"def":{"name":"parse_error?","visibility":"Public","body":"self == ParseError"}},{"html_id":"request_failed?-instance-method","name":"request_failed?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/error.cr","line_number":10,"url":null},"def":{"name":"request_failed?","visibility":"Public","body":"self == RequestFailed"}},{"html_id":"system_not_found?-instance-method","name":"system_not_found?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/error.cr","line_number":12,"url":null},"def":{"name":"system_not_found?","visibility":"Public","body":"self == SystemNotFound"}},{"html_id":"unexpected_failure?-instance-method","name":"unexpected_failure?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/error.cr","line_number":14,"url":null},"def":{"name":"unexpected_failure?","visibility":"Public","body":"self == UnexpectedFailure"}},{"html_id":"unknown_command?-instance-method","name":"unknown_command?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/error.cr","line_number":11,"url":null},"def":{"name":"unknown_command?","visibility":"Public","body":"self == UnknownCommand"}}]}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response/Meta","path":"PlaceOS/Client/API/Models/Websocket/Response/Meta.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Websocket::Response::Meta","name":"Meta","abstract":false,"superclass":{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/websocket/response/meta.cr","line_number":3,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Websocket::Response","name":"Response"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/websocket/response/meta.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"index:Int32-instance-method","name":"index","doc":"Module index.","summary":"Module index.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/meta.cr","line_number":13,"url":null},"def":{"name":"index","return_type":"Int32","visibility":"Public","body":"@index"}},{"html_id":"mod:String-instance-method","name":"mod","doc":"Module name.","summary":"Module name.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/meta.cr","line_number":10,"url":null},"def":{"name":"mod","return_type":"String","visibility":"Public","body":"@mod"}},{"html_id":"name:String|Nil-instance-method","name":"name","doc":"Name of the method or status key.","summary":"Name of the method or status key.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/meta.cr","line_number":16,"url":null},"def":{"name":"name","return_type":"String | ::Nil","visibility":"Public","body":"@name"}},{"html_id":"sys:String-instance-method","name":"sys","doc":"The system ID.","summary":"The system ID.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/meta.cr","line_number":7,"url":null},"def":{"name":"sys","return_type":"String","visibility":"Public","body":"@sys"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response/Notify","path":"PlaceOS/Client/API/Models/Websocket/Response/Notify.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Websocket::Response::Notify","name":"Notify","abstract":false,"superclass":{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/websocket/response/notify.cr","line_number":5,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Websocket::Response","name":"Response"},"doc":"Asyncronous state update from an active binding.","summary":"Asyncronous state update from an active binding.
","constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/websocket/response/notify.cr","line_number":6,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"id:String|Int32|Int64-instance-method","name":"id","doc":"The identifier included with the original request.","summary":"The identifier included with the original request.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/notify.cr","line_number":9,"url":null},"def":{"name":"id","return_type":"String | Int32 | Int64","visibility":"Public","body":"@id"}},{"html_id":"meta:Meta|Nil-instance-method","name":"meta","doc":"Associated metadata.","summary":"Associated metadata.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/notify.cr","line_number":15,"url":null},"def":{"name":"meta","return_type":"Meta | ::Nil","visibility":"Public","body":"@meta"}},{"html_id":"value:JSON::Any-instance-method","name":"value","doc":"New status value","summary":"New status value
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/notify.cr","line_number":12,"url":null},"def":{"name":"value","return_type":"::JSON::Any","visibility":"Public","body":"@value"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response/Success","path":"PlaceOS/Client/API/Models/Websocket/Response/Success.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Websocket::Response::Success","name":"Success","abstract":false,"superclass":{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/websocket/response/success.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Websocket::Response","name":"Response"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/websocket/response/success.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"id:String|Int32|Int64-instance-method","name":"id","doc":"The identifier included with the original request.","summary":"The identifier included with the original request.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/success.cr","line_number":8,"url":null},"def":{"name":"id","return_type":"String | Int32 | Int64","visibility":"Public","body":"@id"}},{"html_id":"meta:Meta|Nil-instance-method","name":"meta","doc":"Associated metadata.","summary":"Associated metadata.
","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response/success.cr","line_number":11,"url":null},"def":{"name":"meta","return_type":"Meta | ::Nil","visibility":"Public","body":"@meta"}}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response/Type","path":"PlaceOS/Client/API/Models/Websocket/Response/Type.html","kind":"enum","full_name":"PlaceOS::Client::API::Models::Websocket::Response::Type","name":"Type","abstract":false,"ancestors":[{"html_id":"placeos/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"placeos/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/websocket/response.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":true,"alias":false,"const":false,"constants":[{"id":"Success","name":"Success","value":"0"},{"id":"Error","name":"Error","value":"1"},{"id":"Notify","name":"Notify","value":"2"},{"id":"Debug","name":"Debug","value":"3"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models/Websocket/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Websocket::Response","name":"Response"},"instance_methods":[{"html_id":"debug?-instance-method","name":"debug?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response.cr","line_number":8,"url":null},"def":{"name":"debug?","visibility":"Public","body":"self == Debug"}},{"html_id":"error?-instance-method","name":"error?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response.cr","line_number":6,"url":null},"def":{"name":"error?","visibility":"Public","body":"self == Error"}},{"html_id":"model-instance-method","name":"model","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response.cr","line_number":10,"url":null},"def":{"name":"model","visibility":"Public","body":"{% if true %}\n case self\n {% for type in @type.constants %}\n when {{ type }} then Response::{{ type }}\n {% end %}\n else\n # Will never happen, but required to stop nil for sneaking into the\n # returned type union.\n raise \"\"\n end\n {% end %}"}},{"html_id":"notify?-instance-method","name":"notify?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response.cr","line_number":7,"url":null},"def":{"name":"notify?","visibility":"Public","body":"self == Notify"}},{"html_id":"success?-instance-method","name":"success?","abstract":false,"location":{"filename":"src/placeos/api/models/websocket/response.cr","line_number":5,"url":null},"def":{"name":"success?","visibility":"Public","body":"self == Success"}}]}]}]},{"html_id":"placeos/PlaceOS/Client/API/Models/Zone","path":"PlaceOS/Client/API/Models/Zone.html","kind":"struct","full_name":"PlaceOS::Client::API::Models::Zone","name":"Zone","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response","kind":"struct","full_name":"PlaceOS::Client::API::Models::Response","name":"Response"},{"html_id":"placeos/PlaceOS/Client/API/Models/Response/Init","kind":"module","full_name":"PlaceOS::Client::API::Models::Response::Init","name":"Init"},{"html_id":"placeos/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"placeos/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"placeos/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api/models/zone.cr","line_number":5,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/API/Models/Timestamps","kind":"module","full_name":"PlaceOS::Client::API::Models::Timestamps","name":"Timestamps"}],"namespace":{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},"constructors":[{"html_id":"new(pull:JSON::PullParser)-class-method","name":"new","abstract":false,"args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/placeos/api/models/zone.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"pull","external_name":"pull","restriction":"::JSON::PullParser"}],"visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"html_id":"capacity:Int32-instance-method","name":"capacity","doc":"Could be used as people capacity","summary":"Could be used as people capacity
","abstract":false,"location":{"filename":"src/placeos/api/models/zone.cr","line_number":33,"url":null},"def":{"name":"capacity","return_type":"Int32","visibility":"Public","body":"@capacity"}},{"html_id":"code:String|Nil-instance-method","name":"code","doc":"Could be used as floor code or building code etc","summary":"Could be used as floor code or building code etc
","abstract":false,"location":{"filename":"src/placeos/api/models/zone.cr","line_number":24,"url":null},"def":{"name":"code","return_type":"String | ::Nil","visibility":"Public","body":"@code"}},{"html_id":"count:Int32-instance-method","name":"count","doc":"Could be used as desk count for a level","summary":"Could be used as desk count for a level
","abstract":false,"location":{"filename":"src/placeos/api/models/zone.cr","line_number":30,"url":null},"def":{"name":"count","return_type":"Int32","visibility":"Public","body":"@count"}},{"html_id":"description:String|Nil-instance-method","name":"description","doc":"Markdown formatted text that describes the zone.","summary":"Markdown formatted text that describes the zone.
","abstract":false,"location":{"filename":"src/placeos/api/models/zone.cr","line_number":21,"url":null},"def":{"name":"description","return_type":"String | ::Nil","visibility":"Public","body":"@description"}},{"html_id":"display_name:String|Nil-instance-method","name":"display_name","doc":"A human readable identifier for displaying on interfaces","summary":"A human readable identifier for displaying on interfaces
","abstract":false,"location":{"filename":"src/placeos/api/models/zone.cr","line_number":15,"url":null},"def":{"name":"display_name","return_type":"String | ::Nil","visibility":"Public","body":"@display_name"}},{"html_id":"id:String-instance-method","name":"id","doc":"A universally unique identifier for the zone.","summary":"A universally unique identifier for the zone.
","abstract":false,"location":{"filename":"src/placeos/api/models/zone.cr","line_number":9,"url":null},"def":{"name":"id","return_type":"String","visibility":"Public","body":"@id"}},{"html_id":"location:String|Nil-instance-method","name":"location","doc":"Geo-location string (lat,long) or any other location","summary":"Geo-location string (lat,long) or any other location
","abstract":false,"location":{"filename":"src/placeos/api/models/zone.cr","line_number":18,"url":null},"def":{"name":"location","return_type":"String | ::Nil","visibility":"Public","body":"@location"}},{"html_id":"map_id:String|Nil-instance-method","name":"map_id","doc":"Map identifier, could be a URL or id","summary":"Map identifier, could be a URL or id
","abstract":false,"location":{"filename":"src/placeos/api/models/zone.cr","line_number":36,"url":null},"def":{"name":"map_id","return_type":"String | ::Nil","visibility":"Public","body":"@map_id"}},{"html_id":"name:String-instance-method","name":"name","doc":"A human readable identifier.","summary":"A human readable identifier.
","abstract":false,"location":{"filename":"src/placeos/api/models/zone.cr","line_number":12,"url":null},"def":{"name":"name","return_type":"String","visibility":"Public","body":"@name"}},{"html_id":"parent_id:String|Nil-instance-method","name":"parent_id","doc":"Parent id","summary":"Parent id
","abstract":false,"location":{"filename":"src/placeos/api/models/zone.cr","line_number":45,"url":null},"def":{"name":"parent_id","return_type":"String | ::Nil","visibility":"Public","body":"@parent_id"}},{"html_id":"tags:Array(String)-instance-method","name":"tags","doc":"Space seperated list of tags for categorizing the zone.","summary":"Space seperated list of tags for categorizing the zone.
","abstract":false,"location":{"filename":"src/placeos/api/models/zone.cr","line_number":39,"url":null},"def":{"name":"tags","return_type":"Array(String)","visibility":"Public","body":"@tags"}},{"html_id":"timezone:Time::Location|Nil-instance-method","name":"timezone","doc":"Timezone location of the zone","summary":"Timezone location of the zone
","abstract":false,"location":{"filename":"src/placeos/api/models/zone.cr","line_number":52,"url":null},"def":{"name":"timezone","return_type":"Time::Location | ::Nil","visibility":"Public","body":"@timezone"}},{"html_id":"trigger_data:Array(Trigger)|Nil-instance-method","name":"trigger_data","doc":"Trigger data returned when param `complete` is `true`","summary":"Trigger data returned when param complete
is true
List of trigger ID's to be applied to all systems that associate with this zone.
","abstract":false,"location":{"filename":"src/placeos/api/models/zone.cr","line_number":42,"url":null},"def":{"name":"triggers","return_type":"Array(String)","visibility":"Public","body":"@triggers"}},{"html_id":"type:String|Nil-instance-method","name":"type","doc":"Could be used as floor type or building type etc","summary":"Could be used as floor type or building type etc
","abstract":false,"location":{"filename":"src/placeos/api/models/zone.cr","line_number":27,"url":null},"def":{"name":"type","return_type":"String | ::Nil","visibility":"Public","body":"@type"}}]}]}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper","path":"PlaceOS/Client/APIWrapper.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper","abstract":false,"superclass":{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper.cr","line_number":18,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/API/Models","kind":"module","full_name":"PlaceOS::Client::API::Models","name":"Models"}],"namespace":{"html_id":"placeos/PlaceOS/Client","kind":"class","full_name":"PlaceOS::Client","name":"Client"},"constructors":[{"html_id":"new(uri:URI|String,host_header:String|Nil=nil,insecure:Bool=false,&authenticate:HTTP::Client->)-class-method","name":"new","abstract":false,"args":[{"name":"uri","external_name":"uri","restriction":"URI | String"},{"name":"host_header","default_value":"nil","external_name":"host_header","restriction":"String | ::Nil"},{"name":"insecure","default_value":"false","external_name":"insecure","restriction":"::Bool"}],"args_string":"(uri : URI | String, host_header : String | Nil = nil, insecure : Bool = false, &authenticate : HTTP::Client -> )","args_html":"(uri : URI | String, host_header : String | Nil = nil, insecure : Bool = false, &authenticate : HTTP::Client -> )","location":{"filename":"src/placeos/api_wrapper.cr","line_number":31,"url":null},"def":{"name":"new","args":[{"name":"uri","external_name":"uri","restriction":"URI | String"},{"name":"host_header","default_value":"nil","external_name":"host_header","restriction":"String | ::Nil"},{"name":"insecure","default_value":"false","external_name":"insecure","restriction":"::Bool"}],"yields":1,"block_arity":1,"block_arg":{"name":"authenticate","external_name":"authenticate","restriction":"(HTTP::Client ->)"},"visibility":"Public","body":"_ = allocate\n_.initialize(uri, host_header, insecure, &authenticate) do |_arg0|\n yield _arg0\nend\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"html_id":"new(uri:URI|String,host_header:String|Nil=nil,insecure:Bool=false)-class-method","name":"new","abstract":false,"args":[{"name":"uri","external_name":"uri","restriction":"URI | String"},{"name":"host_header","default_value":"nil","external_name":"host_header","restriction":"String | ::Nil"},{"name":"insecure","default_value":"false","external_name":"insecure","restriction":"::Bool"}],"args_string":"(uri : URI | String, host_header : String | Nil = nil, insecure : Bool = false)","args_html":"(uri : URI | String, host_header : String | Nil = nil, insecure : Bool = false)","location":{"filename":"src/placeos/api_wrapper.cr","line_number":36,"url":null},"def":{"name":"new","args":[{"name":"uri","external_name":"uri","restriction":"URI | String"},{"name":"host_header","default_value":"nil","external_name":"host_header","restriction":"String | ::Nil"},{"name":"insecure","default_value":"false","external_name":"insecure","restriction":"::Bool"}],"visibility":"Public","body":"_ = allocate\n_.initialize(uri, host_header, insecure)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"connection(&)-instance-method","name":"connection","abstract":false,"location":{"filename":"src/placeos/api_wrapper.cr","line_number":40,"url":null},"def":{"name":"connection","yields":1,"block_arity":1,"visibility":"Public","body":"HTTP::Client.new(uri) do |client|\n if insecure\n client.tls?.try(&.verify_mode = :NONE)\n end\n authenticate.call(client)\n yield client\nend"}}],"types":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/APIKeys","path":"PlaceOS/Client/APIWrapper/APIKeys.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::APIKeys","name":"APIKeys","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/api_keys.cr","line_number":5,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"}],"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"constructors":[{"html_id":"new(client:APIWrapper)-class-method","name":"new","abstract":false,"args":[{"name":"client","external_name":"client","restriction":"APIWrapper"}],"args_string":"(client : APIWrapper)","args_html":"(client : APIWrapper)","location":{"filename":"src/placeos/api_wrapper/api_keys.cr","line_number":74,"url":null},"def":{"name":"new","args":[{"name":"client","external_name":"client","restriction":"APIWrapper"}],"visibility":"Public","body":"_ = allocate\n_.initialize(client)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/api_keys.cr","line_number":9,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"create(name:String,user_id:String,description:String|Nil=nil,scopes:Array(String)|Nil=nil,permissions:PlaceOS::Model::UserJWT::Permissions|Nil=nil)-instance-method","name":"create","doc":"Creates a new zone.","summary":"Creates a new zone.
","abstract":false,"args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"user_id","external_name":"user_id","restriction":"String"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"},{"name":"scopes","default_value":"nil","external_name":"scopes","restriction":"Array(String) | ::Nil"},{"name":"permissions","default_value":"nil","external_name":"permissions","restriction":"::PlaceOS::Model::UserJWT::Permissions | ::Nil"}],"args_string":"(name : String, user_id : String, description : String | Nil = nil, scopes : Array(String) | Nil = nil, permissions : PlaceOS::Model::UserJWT::Permissions | Nil = nil)","args_html":"(name : String, user_id : String, description : String | Nil = nil, scopes : Array(String) | Nil = nil, permissions : PlaceOS::Model::UserJWT::Permissions | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/api_keys.cr","line_number":15,"url":null},"def":{"name":"create","args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"user_id","external_name":"user_id","restriction":"String"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"},{"name":"scopes","default_value":"nil","external_name":"scopes","restriction":"Array(String) | ::Nil"},{"name":"permissions","default_value":"nil","external_name":"permissions","restriction":"::PlaceOS::Model::UserJWT::Permissions | ::Nil"}],"visibility":"Public","body":"post(base, body: from_args, as: API::Models::APIKey)"}},{"html_id":"inspect_jwt-instance-method","name":"inspect_jwt","doc":"Get a clear text version of the JWT token","summary":"Get a clear text version of the JWT token
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/api_keys.cr","line_number":38,"url":null},"def":{"name":"inspect_jwt","visibility":"Public","body":"get(\"#{base}/inspect\", as: ::PlaceOS::Model::UserJWT)"}},{"html_id":"search(q:String|Nil=nil,limit:Int=20,offset:Int=0,authority_id:String|Nil=nil)-instance-method","name":"search","doc":"List or search for zones.\n\nResults maybe filtered by specifying a query - *q* - to search across zone\nattributes. A small query language is supported within this:\n\nOperator | Action\n-------- | ------\n`+` | Matches both terms\n`|` | Matches either terms\n`-` | Negates a single token\n`\"` | Wraps tokens to form a phrase\n`(` `)` | Provides precedence\n`~N` | Specifies edit distance (fuzziness) after a word\n`~N` | Specifies slop amount (deviation) after a phrase\n\nUp to *limit* zones will be returned, with a paging based on *offset*.\n\nResults my also also be limited to those associated with specific *tags*.","summary":"List or search for zones.
","abstract":false,"args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"authority_id","default_value":"nil","external_name":"authority_id","restriction":"String | ::Nil"}],"args_string":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0, authority_id : String | Nil = nil)","args_html":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0, authority_id : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/api_keys.cr","line_number":63,"url":null},"def":{"name":"search","args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"authority_id","default_value":"nil","external_name":"authority_id","restriction":"String | ::Nil"}],"visibility":"Public","body":"get(base, params: from_args, as: Array(API::Models::APIKey))"}},{"html_id":"update(id:String,name:String|Nil=nil,user_id:String|Nil=nil,description:String|Nil=nil,scopes:Array(String)|Nil=nil,permissions:PlaceOS::Model::UserJWT::Permissions|Nil=nil)-instance-method","name":"update","doc":"Updates zone attributes or configuration.","summary":"Updates zone attributes or configuration.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"user_id","default_value":"nil","external_name":"user_id","restriction":"String | ::Nil"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"},{"name":"scopes","default_value":"nil","external_name":"scopes","restriction":"Array(String) | ::Nil"},{"name":"permissions","default_value":"nil","external_name":"permissions","restriction":"::PlaceOS::Model::UserJWT::Permissions | ::Nil"}],"args_string":"(id : String, name : String | Nil = nil, user_id : String | Nil = nil, description : String | Nil = nil, scopes : Array(String) | Nil = nil, permissions : PlaceOS::Model::UserJWT::Permissions | Nil = nil)","args_html":"(id : String, name : String | Nil = nil, user_id : String | Nil = nil, description : String | Nil = nil, scopes : Array(String) | Nil = nil, permissions : PlaceOS::Model::UserJWT::Permissions | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/api_keys.cr","line_number":26,"url":null},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"user_id","default_value":"nil","external_name":"user_id","restriction":"String | ::Nil"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"},{"name":"scopes","default_value":"nil","external_name":"scopes","restriction":"Array(String) | ::Nil"},{"name":"permissions","default_value":"nil","external_name":"permissions","restriction":"::PlaceOS::Model::UserJWT::Permissions | ::Nil"}],"visibility":"Public","body":"put(\"#{base}/#{id}\", body: from_args, as: API::Models::APIKey)"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/AssetInstances","path":"PlaceOS/Client/APIWrapper/AssetInstances.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::AssetInstances","name":"AssetInstances","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/asset_instances.cr","line_number":5,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"}],"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/asset_instances.cr","line_number":9,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"create(name:String,usage_start:Time,usage_end:Time)-instance-method","name":"create","doc":"Creates a new asset instance.","summary":"Creates a new asset instance.
","abstract":false,"args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"usage_start","external_name":"usage_start","restriction":"Time"},{"name":"usage_end","external_name":"usage_end","restriction":"Time"}],"args_string":"(name : String, usage_start : Time, usage_end : Time)","args_html":"(name : String, usage_start : Time, usage_end : Time)","location":{"filename":"src/placeos/api_wrapper/asset_instances.cr","line_number":15,"url":null},"def":{"name":"create","args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"usage_start","external_name":"usage_start","restriction":"Time"},{"name":"usage_end","external_name":"usage_end","restriction":"Time"}],"visibility":"Public","body":"post(base, body: from_args, as: API::Models::AssetInstance)"}},{"html_id":"search(q:String|Nil=nil,limit:Int=20,offset:Int=0)-instance-method","name":"search","abstract":false,"args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"}],"args_string":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0)","args_html":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0)","location":{"filename":"src/placeos/api_wrapper/asset_instances.cr","line_number":55,"url":null},"def":{"name":"search","args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"}],"visibility":"Public","body":"get(base, params: from_args, as: Array(API::Models::AssetInstance))"}},{"html_id":"update(id:String,name:String|Nil=nil,purchase_date:Time|Nil=nil,identifier:String|Nil=nil,purchase_price:Int32|Nil=nil)-instance-method","name":"update","doc":"Updates asset instance attributes or configuration.","summary":"Updates asset instance attributes or configuration.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"purchase_date","default_value":"nil","external_name":"purchase_date","restriction":"Time | ::Nil"},{"name":"identifier","default_value":"nil","external_name":"identifier","restriction":"String | ::Nil"},{"name":"purchase_price","default_value":"nil","external_name":"purchase_price","restriction":"Int32 | ::Nil"}],"args_string":"(id : String, name : String | Nil = nil, purchase_date : Time | Nil = nil, identifier : String | Nil = nil, purchase_price : Int32 | Nil = nil)","args_html":"(id : String, name : String | Nil = nil, purchase_date : Time | Nil = nil, identifier : String | Nil = nil, purchase_price : Int32 | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/asset_instances.cr","line_number":24,"url":null},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"purchase_date","default_value":"nil","external_name":"purchase_date","restriction":"Time | ::Nil"},{"name":"identifier","default_value":"nil","external_name":"identifier","restriction":"String | ::Nil"},{"name":"purchase_price","default_value":"nil","external_name":"purchase_price","restriction":"Int32 | ::Nil"}],"visibility":"Public","body":"put(\"#{base}/#{id}\", body: from_args, as: API::Models::AssetInstance)"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Assets","path":"PlaceOS/Client/APIWrapper/Assets.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Assets","name":"Assets","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/assets.cr","line_number":5,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"}],"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"instance_methods":[{"html_id":"asset_instances(id:String)-instance-method","name":"asset_instances","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"}],"args_string":"(id : String)","args_html":"(id : String)","location":{"filename":"src/placeos/api_wrapper/assets.cr","line_number":35,"url":null},"def":{"name":"asset_instances","args":[{"name":"id","external_name":"id","restriction":"String"}],"visibility":"Public","body":"get(\"#{base}/#{id}/asset_instances\", as: Array(API::Models::AssetInstance))"}},{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/assets.cr","line_number":9,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"create(name:String,purchase_date:Time,identifier:String|Nil=nil,purchase_price:Int32|Nil=nil)-instance-method","name":"create","doc":"Creates a new asset.","summary":"Creates a new asset.
","abstract":false,"args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"purchase_date","external_name":"purchase_date","restriction":"Time"},{"name":"identifier","default_value":"nil","external_name":"identifier","restriction":"String | ::Nil"},{"name":"purchase_price","default_value":"nil","external_name":"purchase_price","restriction":"Int32 | ::Nil"}],"args_string":"(name : String, purchase_date : Time, identifier : String | Nil = nil, purchase_price : Int32 | Nil = nil)","args_html":"(name : String, purchase_date : Time, identifier : String | Nil = nil, purchase_price : Int32 | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/assets.cr","line_number":15,"url":null},"def":{"name":"create","args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"purchase_date","external_name":"purchase_date","restriction":"Time"},{"name":"identifier","default_value":"nil","external_name":"identifier","restriction":"String | ::Nil"},{"name":"purchase_price","default_value":"nil","external_name":"purchase_price","restriction":"Int32 | ::Nil"}],"visibility":"Public","body":"post(base, body: from_args, as: API::Models::Asset)"}},{"html_id":"search(q:String|Nil=nil,limit:Int=20,offset:Int=0,parent:String|Nil=nil)-instance-method","name":"search","abstract":false,"args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"parent","default_value":"nil","external_name":"parent","restriction":"String | ::Nil"}],"args_string":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0, parent : String | Nil = nil)","args_html":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0, parent : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/assets.cr","line_number":60,"url":null},"def":{"name":"search","args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"parent","default_value":"nil","external_name":"parent","restriction":"String | ::Nil"}],"visibility":"Public","body":"get(base, params: from_args, as: Array(API::Models::Asset))"}},{"html_id":"update(id:String,name:String|Nil=nil,purchase_date:Time|Nil=nil,identifier:String|Nil=nil,purchase_price:Int32|Nil=nil)-instance-method","name":"update","doc":"Updates asset attributes or configuration.","summary":"Updates asset attributes or configuration.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"purchase_date","default_value":"nil","external_name":"purchase_date","restriction":"Time | ::Nil"},{"name":"identifier","default_value":"nil","external_name":"identifier","restriction":"String | ::Nil"},{"name":"purchase_price","default_value":"nil","external_name":"purchase_price","restriction":"Int32 | ::Nil"}],"args_string":"(id : String, name : String | Nil = nil, purchase_date : Time | Nil = nil, identifier : String | Nil = nil, purchase_price : Int32 | Nil = nil)","args_html":"(id : String, name : String | Nil = nil, purchase_date : Time | Nil = nil, identifier : String | Nil = nil, purchase_price : Int32 | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/assets.cr","line_number":25,"url":null},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"purchase_date","default_value":"nil","external_name":"purchase_date","restriction":"Time | ::Nil"},{"name":"identifier","default_value":"nil","external_name":"identifier","restriction":"String | ::Nil"},{"name":"purchase_price","default_value":"nil","external_name":"purchase_price","restriction":"Int32 | ::Nil"}],"visibility":"Public","body":"put(\"#{base}/#{id}\", body: from_args, as: API::Models::Asset)"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/AuthBase","path":"PlaceOS/Client/APIWrapper/AuthBase.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::AuthBase(Model)","name":"AuthBase","abstract":true,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/auths/base.cr","line_number":5,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"}],"subclasses":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Ldap","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Ldap","name":"Ldap"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/OAuth","kind":"class","full_name":"PlaceOS::Client::APIWrapper::OAuth","name":"OAuth"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Saml","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Saml","name":"Saml"}],"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"constructors":[{"html_id":"new(client:APIWrapper)-class-method","name":"new","abstract":false,"args":[{"name":"client","external_name":"client","restriction":"APIWrapper"}],"args_string":"(client : APIWrapper)","args_html":"(client : APIWrapper)","location":{"filename":"src/placeos/api_wrapper/endpoint.cr","line_number":11,"url":null},"def":{"name":"new","args":[{"name":"client","external_name":"client","restriction":"APIWrapper"}],"visibility":"Public","body":"_ = AuthBase(Model).allocate\n_.initialize(client)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"create(**args):Model-instance-method","name":"create","abstract":false,"location":{"filename":"src/placeos/api_wrapper/auths/base.cr","line_number":38,"url":null},"def":{"name":"create","double_splat":{"name":"args","external_name":"args","restriction":""},"return_type":"Model","visibility":"Public","body":"post(base, body: from_args, as: Model)"}},{"html_id":"search(q:String|Nil=nil,limit:Int=20,offset:Int=0,authority_id:String|Nil=nil)-instance-method","name":"search","doc":"List or search.\n\nResults maybe filtered by specifying a query - *q* - to search across\nattributes. A small query language is supported within this:\n\nOperator | Action\n-------- | ------\n`+` | Matches both terms\n`|` | Matches either terms\n`-` | Negates a single token\n`\"` | Wraps tokens to form a phrase\n`(` `)` | Provides precedence\n`~N` | Specifies edit distance (fuzziness) after a word\n`~N` | Specifies slop amount (deviation) after a phrase\n\nUp to *limit* documents will be returned, with a paging based on *offset*.","summary":"List or search.
","abstract":false,"args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"authority_id","default_value":"nil","external_name":"authority_id","restriction":"String | ::Nil"}],"args_string":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0, authority_id : String | Nil = nil)","args_html":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0, authority_id : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/auths/base.cr","line_number":25,"url":null},"def":{"name":"search","args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"authority_id","default_value":"nil","external_name":"authority_id","restriction":"String | ::Nil"}],"visibility":"Public","body":"get(base, params: from_args, as: Array(Model))"}},{"html_id":"update(**args)-instance-method","name":"update","abstract":false,"location":{"filename":"src/placeos/api_wrapper/auths/base.cr","line_number":34,"url":null},"def":{"name":"update","double_splat":{"name":"args","external_name":"args","restriction":""},"visibility":"Public","body":"put(\"#{base}/#{id}\", body: from_args, as: Model)"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Authority","path":"PlaceOS/Client/APIWrapper/Authority.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Authority","name":"Authority","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/authority.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/authority.cr","line_number":5,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"fetch-instance-method","name":"fetch","doc":"Gets the authority metadata for the attached instance.","summary":"Gets the authority metadata for the attached instance.
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/authority.cr","line_number":8,"url":null},"def":{"name":"fetch","visibility":"Public","body":"get(base, as: API::Models::Authority)"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Cluster","path":"PlaceOS/Client/APIWrapper/Cluster.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Cluster","name":"Cluster","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/cluster.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/cluster.cr","line_number":5,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Domains","path":"PlaceOS/Client/APIWrapper/Domains.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Domains","name":"Domains","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/domains.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"}],"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/domains.cr","line_number":8,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Drivers","path":"PlaceOS/Client/APIWrapper/Drivers.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Drivers","name":"Drivers","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/drivers.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"}],"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/drivers.cr","line_number":8,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"create(name:String,role:Role,commit:String,file_name:String,module_name:String,repository_id:String,default_uri:String|Nil=nil,default_port:Int32|Nil=nil,description:String|Nil=nil,ignore_connected:Bool|Nil=nil)-instance-method","name":"create","abstract":false,"args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"role","external_name":"role","restriction":"Role"},{"name":"commit","external_name":"commit","restriction":"String"},{"name":"file_name","external_name":"file_name","restriction":"String"},{"name":"module_name","external_name":"module_name","restriction":"String"},{"name":"repository_id","external_name":"repository_id","restriction":"String"},{"name":"default_uri","default_value":"nil","external_name":"default_uri","restriction":"String | ::Nil"},{"name":"default_port","default_value":"nil","external_name":"default_port","restriction":"Int32 | ::Nil"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"},{"name":"ignore_connected","default_value":"nil","external_name":"ignore_connected","restriction":"Bool | ::Nil"}],"args_string":"(name : String, role : Role, commit : String, file_name : String, module_name : String, repository_id : String, default_uri : String | Nil = nil, default_port : Int32 | Nil = nil, description : String | Nil = nil, ignore_connected : Bool | Nil = nil)","args_html":"(name : String, role : Role, commit : String, file_name : String, module_name : String, repository_id : String, default_uri : String | Nil = nil, default_port : Int32 | Nil = nil, description : String | Nil = nil, ignore_connected : Bool | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/drivers.cr","line_number":30,"url":null},"def":{"name":"create","args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"role","external_name":"role","restriction":"Role"},{"name":"commit","external_name":"commit","restriction":"String"},{"name":"file_name","external_name":"file_name","restriction":"String"},{"name":"module_name","external_name":"module_name","restriction":"String"},{"name":"repository_id","external_name":"repository_id","restriction":"String"},{"name":"default_uri","default_value":"nil","external_name":"default_uri","restriction":"String | ::Nil"},{"name":"default_port","default_value":"nil","external_name":"default_port","restriction":"Int32 | ::Nil"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"},{"name":"ignore_connected","default_value":"nil","external_name":"ignore_connected","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"post(base, body: from_args, as: Driver)"}},{"html_id":"search(q:String|Nil=nil,limit:Int=20,offset:Int=0)-instance-method","name":"search","doc":"List or search for drivers.\n\nResults maybe filtered by specifying a query - *q* - to search across driver\nattributes. A small query language is supported within this:\n\nOperator | Action\n-------- | ------\n`+` | Matches both terms\n`|` | Matches either terms\n`-` | Negates a single token\n`\"` | Wraps tokens to form a phrase\n`(` `)` | Provides precedence\n`~N` | Specifies edit distance (fuzziness) after a word\n`~N` | Specifies slop amount (deviation) after a phrase\n\nUp to *limit* drivers will be returned, with a paging based on *offset*.","summary":"List or search for drivers.
","abstract":false,"args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"}],"args_string":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0)","args_html":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0)","location":{"filename":"src/placeos/api_wrapper/drivers.cr","line_number":26,"url":null},"def":{"name":"search","args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"}],"visibility":"Public","body":"get(base, params: from_args, as: Array(Driver))"}},{"html_id":"update(id:String,name:String|Nil=nil,role:Role|Nil=nil,commit:String|Nil=nil,file_name:String|Nil=nil,module_name:String|Nil=nil,default_uri:String|Nil=nil,default_port:Int32|Nil=nil,description:String|Nil=nil,ignore_connected:Bool|Nil=nil)-instance-method","name":"update","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"role","default_value":"nil","external_name":"role","restriction":"Role | ::Nil"},{"name":"commit","default_value":"nil","external_name":"commit","restriction":"String | ::Nil"},{"name":"file_name","default_value":"nil","external_name":"file_name","restriction":"String | ::Nil"},{"name":"module_name","default_value":"nil","external_name":"module_name","restriction":"String | ::Nil"},{"name":"default_uri","default_value":"nil","external_name":"default_uri","restriction":"String | ::Nil"},{"name":"default_port","default_value":"nil","external_name":"default_port","restriction":"Int32 | ::Nil"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"},{"name":"ignore_connected","default_value":"nil","external_name":"ignore_connected","restriction":"Bool | ::Nil"}],"args_string":"(id : String, name : String | Nil = nil, role : Role | Nil = nil, commit : String | Nil = nil, file_name : String | Nil = nil, module_name : String | Nil = nil, default_uri : String | Nil = nil, default_port : Int32 | Nil = nil, description : String | Nil = nil, ignore_connected : Bool | Nil = nil)","args_html":"(id : String, name : String | Nil = nil, role : Role | Nil = nil, commit : String | Nil = nil, file_name : String | Nil = nil, module_name : String | Nil = nil, default_uri : String | Nil = nil, default_port : Int32 | Nil = nil, description : String | Nil = nil, ignore_connected : Bool | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/drivers.cr","line_number":45,"url":null},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"role","default_value":"nil","external_name":"role","restriction":"Role | ::Nil"},{"name":"commit","default_value":"nil","external_name":"commit","restriction":"String | ::Nil"},{"name":"file_name","default_value":"nil","external_name":"file_name","restriction":"String | ::Nil"},{"name":"module_name","default_value":"nil","external_name":"module_name","restriction":"String | ::Nil"},{"name":"default_uri","default_value":"nil","external_name":"default_uri","restriction":"String | ::Nil"},{"name":"default_port","default_value":"nil","external_name":"default_port","restriction":"Int32 | ::Nil"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"},{"name":"ignore_connected","default_value":"nil","external_name":"ignore_connected","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"put(\"#{base}/#{id}\", body: from_args, as: Driver)"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Ldap","path":"PlaceOS/Client/APIWrapper/Ldap.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Ldap","name":"Ldap","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/AuthBase","kind":"class","full_name":"PlaceOS::Client::APIWrapper::AuthBase","name":"AuthBase"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/AuthBase","kind":"class","full_name":"PlaceOS::Client::APIWrapper::AuthBase","name":"AuthBase"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/auths/ldap.cr","line_number":7,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"constructors":[{"html_id":"new(client:APIWrapper)-class-method","name":"new","abstract":false,"args":[{"name":"client","external_name":"client","restriction":"APIWrapper"}],"args_string":"(client : APIWrapper)","args_html":"(client : APIWrapper)","location":{"filename":"src/placeos/api_wrapper/endpoint.cr","line_number":11,"url":null},"def":{"name":"new","args":[{"name":"client","external_name":"client","restriction":"APIWrapper"}],"visibility":"Public","body":"_ = allocate\n_.initialize(client)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/auths/ldap.cr","line_number":8,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"create(name:String,authority_id:String,host:String,base:String,port:Int32|Nil=nil,auth_method:String|Nil=nil,uid:String|Nil=nil,bind_dn:String|Nil=nil,password:String|Nil=nil,filter:String|Nil=nil)-instance-method","name":"create","abstract":false,"args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"authority_id","external_name":"authority_id","restriction":"String"},{"name":"host","external_name":"host","restriction":"String"},{"name":"base","external_name":"base","restriction":"String"},{"name":"port","default_value":"nil","external_name":"port","restriction":"Int32 | ::Nil"},{"name":"auth_method","default_value":"nil","external_name":"auth_method","restriction":"String | ::Nil"},{"name":"uid","default_value":"nil","external_name":"uid","restriction":"String | ::Nil"},{"name":"bind_dn","default_value":"nil","external_name":"bind_dn","restriction":"String | ::Nil"},{"name":"password","default_value":"nil","external_name":"password","restriction":"String | ::Nil"},{"name":"filter","default_value":"nil","external_name":"filter","restriction":"String | ::Nil"}],"args_string":"(name : String, authority_id : String, host : String, base : String, port : Int32 | Nil = nil, auth_method : String | Nil = nil, uid : String | Nil = nil, bind_dn : String | Nil = nil, password : String | Nil = nil, filter : String | Nil = nil)","args_html":"(name : String, authority_id : String, host : String, base : String, port : Int32 | Nil = nil, auth_method : String | Nil = nil, uid : String | Nil = nil, bind_dn : String | Nil = nil, password : String | Nil = nil, filter : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/auths/ldap.cr","line_number":10,"url":null},"def":{"name":"create","args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"authority_id","external_name":"authority_id","restriction":"String"},{"name":"host","external_name":"host","restriction":"String"},{"name":"base","external_name":"base","restriction":"String"},{"name":"port","default_value":"nil","external_name":"port","restriction":"Int32 | ::Nil"},{"name":"auth_method","default_value":"nil","external_name":"auth_method","restriction":"String | ::Nil"},{"name":"uid","default_value":"nil","external_name":"uid","restriction":"String | ::Nil"},{"name":"bind_dn","default_value":"nil","external_name":"bind_dn","restriction":"String | ::Nil"},{"name":"password","default_value":"nil","external_name":"password","restriction":"String | ::Nil"},{"name":"filter","default_value":"nil","external_name":"filter","restriction":"String | ::Nil"}],"visibility":"Public","body":"super(**args)"}},{"html_id":"update(id:String,name:String|Nil=nil,authority_id:String|Nil=nil,port:Int32|Nil=nil,auth_method:String|Nil=nil,uid:String|Nil=nil,host:String|Nil=nil,base:String|Nil=nil,bind_dn:String|Nil=nil,password:String|Nil=nil,filter:String|Nil=nil)-instance-method","name":"update","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"authority_id","default_value":"nil","external_name":"authority_id","restriction":"String | ::Nil"},{"name":"port","default_value":"nil","external_name":"port","restriction":"Int32 | ::Nil"},{"name":"auth_method","default_value":"nil","external_name":"auth_method","restriction":"String | ::Nil"},{"name":"uid","default_value":"nil","external_name":"uid","restriction":"String | ::Nil"},{"name":"host","default_value":"nil","external_name":"host","restriction":"String | ::Nil"},{"name":"base","default_value":"nil","external_name":"base","restriction":"String | ::Nil"},{"name":"bind_dn","default_value":"nil","external_name":"bind_dn","restriction":"String | ::Nil"},{"name":"password","default_value":"nil","external_name":"password","restriction":"String | ::Nil"},{"name":"filter","default_value":"nil","external_name":"filter","restriction":"String | ::Nil"}],"args_string":"(id : String, name : String | Nil = nil, authority_id : String | Nil = nil, port : Int32 | Nil = nil, auth_method : String | Nil = nil, uid : String | Nil = nil, host : String | Nil = nil, base : String | Nil = nil, bind_dn : String | Nil = nil, password : String | Nil = nil, filter : String | Nil = nil)","args_html":"(id : String, name : String | Nil = nil, authority_id : String | Nil = nil, port : Int32 | Nil = nil, auth_method : String | Nil = nil, uid : String | Nil = nil, host : String | Nil = nil, base : String | Nil = nil, bind_dn : String | Nil = nil, password : String | Nil = nil, filter : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/auths/ldap.cr","line_number":25,"url":null},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"authority_id","default_value":"nil","external_name":"authority_id","restriction":"String | ::Nil"},{"name":"port","default_value":"nil","external_name":"port","restriction":"Int32 | ::Nil"},{"name":"auth_method","default_value":"nil","external_name":"auth_method","restriction":"String | ::Nil"},{"name":"uid","default_value":"nil","external_name":"uid","restriction":"String | ::Nil"},{"name":"host","default_value":"nil","external_name":"host","restriction":"String | ::Nil"},{"name":"base","default_value":"nil","external_name":"base","restriction":"String | ::Nil"},{"name":"bind_dn","default_value":"nil","external_name":"bind_dn","restriction":"String | ::Nil"},{"name":"password","default_value":"nil","external_name":"password","restriction":"String | ::Nil"},{"name":"filter","default_value":"nil","external_name":"filter","restriction":"String | ::Nil"}],"visibility":"Public","body":"super(**args)"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Metadata","path":"PlaceOS/Client/APIWrapper/Metadata.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Metadata","name":"Metadata","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/metadata.cr","line_number":5,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/metadata.cr","line_number":6,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"children(id:String,name:String|Nil=nil)-instance-method","name":"children","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"}],"args_string":"(id : String, name : String | Nil = nil)","args_html":"(id : String, name : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/metadata.cr","line_number":12,"url":null},"def":{"name":"children","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"}],"visibility":"Public","body":"get(\"#{base}/#{id}/children\", params: from_args, as: Array(NamedTuple(zone: API::Models::Zone, metadata: Hash(String, API::Models::Metadata))))"}},{"html_id":"destroy(id:String,name:String)-instance-method","name":"destroy","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","external_name":"name","restriction":"String"}],"args_string":"(id : String, name : String)","args_html":"(id : String, name : String)","location":{"filename":"src/placeos/api_wrapper/metadata.cr","line_number":38,"url":null},"def":{"name":"destroy","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","external_name":"name","restriction":"String"}],"visibility":"Public","body":"delete(\"#{base}/#{id}\", params: from_args)\nnil\n"}},{"html_id":"fetch(id:String,name:String|Nil=nil)-instance-method","name":"fetch","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"}],"args_string":"(id : String, name : String | Nil = nil)","args_html":"(id : String, name : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/metadata.cr","line_number":8,"url":null},"def":{"name":"fetch","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"}],"visibility":"Public","body":"get(\"#{base}/#{id}\", params: from_args, as: Hash(String, API::Models::Metadata))"}},{"html_id":"merge(id:String,name:String,details:JSON::Any|Hash|NamedTuple|Array,description:String|Nil=nil)-instance-method","name":"merge","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","external_name":"name","restriction":"String"},{"name":"details","external_name":"details","restriction":"JSON::Any | Hash | NamedTuple | Array"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"}],"args_string":"(id : String, name : String, details : JSON::Any | Hash | NamedTuple | Array, description : String | Nil = nil)","args_html":"(id : String, name : String, details : JSON::Any | Hash | NamedTuple | Array, description : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/metadata.cr","line_number":27,"url":null},"def":{"name":"merge","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","external_name":"name","restriction":"String"},{"name":"details","external_name":"details","restriction":"JSON::Any | Hash | NamedTuple | Array"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"}],"visibility":"Public","body":"params = HTTP::Params {\"name\" => name}\nbody = {name: name, description: description, details: details, parent_id: id}\npatch(\"#{base}/#{id}?#{params}\", body: body, as: API::Models::Metadata)\n"}},{"html_id":"update(id:String,name:String,details:JSON::Any|Hash|NamedTuple|Array,description:String|Nil=nil)-instance-method","name":"update","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","external_name":"name","restriction":"String"},{"name":"details","external_name":"details","restriction":"JSON::Any | Hash | NamedTuple | Array"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"}],"args_string":"(id : String, name : String, details : JSON::Any | Hash | NamedTuple | Array, description : String | Nil = nil)","args_html":"(id : String, name : String, details : JSON::Any | Hash | NamedTuple | Array, description : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/metadata.cr","line_number":16,"url":null},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","external_name":"name","restriction":"String"},{"name":"details","external_name":"details","restriction":"JSON::Any | Hash | NamedTuple | Array"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"}],"visibility":"Public","body":"params = HTTP::Params {\"name\" => name}\nbody = {name: name, description: description, details: details, parent_id: id}\nput(\"#{base}/#{id}?#{params}\", body: body, as: API::Models::Metadata)\n"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Modules","path":"PlaceOS/Client/APIWrapper/Modules.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Modules","name":"Modules","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/modules.cr","line_number":7,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"}],"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/modules.cr","line_number":11,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"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)-instance-method","name":"create","doc":"Creates a new module.","summary":"Creates a new module.
","abstract":false,"args":[{"name":"driver_id","external_name":"driver_id","restriction":"String"},{"name":"control_system_id","default_value":"nil","external_name":"control_system_id","restriction":"String | ::Nil"},{"name":"ip","default_value":"nil","external_name":"ip","restriction":"String | ::Nil"},{"name":"udp","default_value":"nil","external_name":"udp","restriction":"Bool | ::Nil"},{"name":"port","default_value":"nil","external_name":"port","restriction":"Int | ::Nil"},{"name":"makebreak","default_value":"nil","external_name":"makebreak","restriction":"Bool | ::Nil"},{"name":"uri","default_value":"nil","external_name":"uri","restriction":"String | ::Nil"},{"name":"custom_name","default_value":"nil","external_name":"custom_name","restriction":"String | ::Nil"},{"name":"settings","default_value":"nil","external_name":"settings","restriction":"Settings | ::Nil"},{"name":"notes","default_value":"nil","external_name":"notes","restriction":"String | ::Nil"},{"name":"ignore_connected","default_value":"nil","external_name":"ignore_connected","restriction":"Bool | ::Nil"},{"name":"ignore_startstop","default_value":"nil","external_name":"ignore_startstop","restriction":"Bool | ::Nil"}],"args_string":"(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)","args_html":"(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)","location":{"filename":"src/placeos/api_wrapper/modules.cr","line_number":78,"url":null},"def":{"name":"create","args":[{"name":"driver_id","external_name":"driver_id","restriction":"String"},{"name":"control_system_id","default_value":"nil","external_name":"control_system_id","restriction":"String | ::Nil"},{"name":"ip","default_value":"nil","external_name":"ip","restriction":"String | ::Nil"},{"name":"udp","default_value":"nil","external_name":"udp","restriction":"Bool | ::Nil"},{"name":"port","default_value":"nil","external_name":"port","restriction":"Int | ::Nil"},{"name":"makebreak","default_value":"nil","external_name":"makebreak","restriction":"Bool | ::Nil"},{"name":"uri","default_value":"nil","external_name":"uri","restriction":"String | ::Nil"},{"name":"custom_name","default_value":"nil","external_name":"custom_name","restriction":"String | ::Nil"},{"name":"settings","default_value":"nil","external_name":"settings","restriction":"Settings | ::Nil"},{"name":"notes","default_value":"nil","external_name":"notes","restriction":"String | ::Nil"},{"name":"ignore_connected","default_value":"nil","external_name":"ignore_connected","restriction":"Bool | ::Nil"},{"name":"ignore_startstop","default_value":"nil","external_name":"ignore_startstop","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"post(base, body: from_args, as: API::Models::Module)"}},{"html_id":"ping(id:String)-instance-method","name":"ping","doc":"Performs a connectivity check with the associated device or service.","summary":"Performs a connectivity check with the associated device or service.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"}],"args_string":"(id : String)","args_html":"(id : String)","location":{"filename":"src/placeos/api_wrapper/modules.cr","line_number":29,"url":null},"def":{"name":"ping","args":[{"name":"id","external_name":"id","restriction":"String"}],"visibility":"Public","body":"post(\"#{base}/#{id}/ping\", as: API::Models::Ping)"}},{"html_id":"search(q:String|Nil=nil,limit:Int=20,offset:Int=0,control_system_id:String|Nil=nil,driver_id:String|Nil=nil)-instance-method","name":"search","doc":"List or search for modules.\n\nResults maybe filtered by specifying a query - *q* - to search across module\nattributes. A small query language is supported within this:\n\nOperator | Action\n-------- | ------\n`+` | Matches both terms\n`|` | Matches either terms\n`-` | Negates a single token\n`\"` | Wraps tokens to form a phrase\n`(` `)` | Provides precedence\n`~N` | Specifies edit distance (fuzziness) after a word\n`~N` | Specifies slop amount (deviation) after a phrase\n\nUp to *limit* systems will be returned, with a paging based on *offset*.\n\nResults my also also be limited to those associated with a specific\n*system_id*, that are instances of a *driver_id*, or any combination of\nthese.","summary":"List or search for modules.
","abstract":false,"args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"control_system_id","default_value":"nil","external_name":"control_system_id","restriction":"String | ::Nil"},{"name":"driver_id","default_value":"nil","external_name":"driver_id","restriction":"String | ::Nil"}],"args_string":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0, control_system_id : String | Nil = nil, driver_id : String | Nil = nil)","args_html":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0, control_system_id : String | Nil = nil, driver_id : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/modules.cr","line_number":64,"url":null},"def":{"name":"search","args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"control_system_id","default_value":"nil","external_name":"control_system_id","restriction":"String | ::Nil"},{"name":"driver_id","default_value":"nil","external_name":"driver_id","restriction":"String | ::Nil"}],"visibility":"Public","body":"get(base, params: from_args, as: Array(API::Models::Module))"}},{"html_id":"start(id:String)-instance-method","name":"start","doc":"Starts a module.","summary":"Starts a module.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"}],"args_string":"(id : String)","args_html":"(id : String)","location":{"filename":"src/placeos/api_wrapper/modules.cr","line_number":17,"url":null},"def":{"name":"start","args":[{"name":"id","external_name":"id","restriction":"String"}],"visibility":"Public","body":"post(\"#{base}/#{id}/start\")\nnil\n"}},{"html_id":"state(id:String,lookup:String|Nil=nil)-instance-method","name":"state","doc":"Queries the state exposed by a module.","summary":"Queries the state exposed by a module.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"lookup","default_value":"nil","external_name":"lookup","restriction":"String | ::Nil"}],"args_string":"(id : String, lookup : String | Nil = nil)","args_html":"(id : String, lookup : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/modules.cr","line_number":34,"url":null},"def":{"name":"state","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"lookup","default_value":"nil","external_name":"lookup","restriction":"String | ::Nil"}],"visibility":"Public","body":"path = \"#{base}/#{id}/state\"\nif lookup\n path = path + \"/#{lookup}\"\nend\nget(path)\n"}},{"html_id":"stop(id:String)-instance-method","name":"stop","doc":"Stops a module.","summary":"Stops a module.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"}],"args_string":"(id : String)","args_html":"(id : String)","location":{"filename":"src/placeos/api_wrapper/modules.cr","line_number":23,"url":null},"def":{"name":"stop","args":[{"name":"id","external_name":"id","restriction":"String"}],"visibility":"Public","body":"post(\"#{base}/#{id}/stop\")\nnil\n"}},{"html_id":"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)-instance-method","name":"update","doc":"Updates module attributes or configuration.","summary":"Updates module attributes or configuration.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"control_system_id","default_value":"nil","external_name":"control_system_id","restriction":"String | ::Nil"},{"name":"ip","default_value":"nil","external_name":"ip","restriction":"String | ::Nil"},{"name":"udp","default_value":"nil","external_name":"udp","restriction":"Bool | ::Nil"},{"name":"port","default_value":"nil","external_name":"port","restriction":"Int | ::Nil"},{"name":"makebreak","default_value":"nil","external_name":"makebreak","restriction":"Bool | ::Nil"},{"name":"uri","default_value":"nil","external_name":"uri","restriction":"String | ::Nil"},{"name":"custom_name","default_value":"nil","external_name":"custom_name","restriction":"String | ::Nil"},{"name":"settings","default_value":"nil","external_name":"settings","restriction":"Settings | ::Nil"},{"name":"notes","default_value":"nil","external_name":"notes","restriction":"String | ::Nil"},{"name":"ignore_connected","default_value":"nil","external_name":"ignore_connected","restriction":"Bool | ::Nil"},{"name":"ignore_startstop","default_value":"nil","external_name":"ignore_startstop","restriction":"Bool | ::Nil"}],"args_string":"(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)","args_html":"(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)","location":{"filename":"src/placeos/api_wrapper/modules.cr","line_number":96,"url":null},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"control_system_id","default_value":"nil","external_name":"control_system_id","restriction":"String | ::Nil"},{"name":"ip","default_value":"nil","external_name":"ip","restriction":"String | ::Nil"},{"name":"udp","default_value":"nil","external_name":"udp","restriction":"Bool | ::Nil"},{"name":"port","default_value":"nil","external_name":"port","restriction":"Int | ::Nil"},{"name":"makebreak","default_value":"nil","external_name":"makebreak","restriction":"Bool | ::Nil"},{"name":"uri","default_value":"nil","external_name":"uri","restriction":"String | ::Nil"},{"name":"custom_name","default_value":"nil","external_name":"custom_name","restriction":"String | ::Nil"},{"name":"settings","default_value":"nil","external_name":"settings","restriction":"Settings | ::Nil"},{"name":"notes","default_value":"nil","external_name":"notes","restriction":"String | ::Nil"},{"name":"ignore_connected","default_value":"nil","external_name":"ignore_connected","restriction":"Bool | ::Nil"},{"name":"ignore_startstop","default_value":"nil","external_name":"ignore_startstop","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"put(\"#{base}/#{id}\", body: from_args, as: API::Models::Module)"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/OAuth","path":"PlaceOS/Client/APIWrapper/OAuth.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::OAuth","name":"OAuth","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/AuthBase","kind":"class","full_name":"PlaceOS::Client::APIWrapper::AuthBase","name":"AuthBase"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/AuthBase","kind":"class","full_name":"PlaceOS::Client::APIWrapper::AuthBase","name":"AuthBase"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/auths/oauth.cr","line_number":7,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"constructors":[{"html_id":"new(client:APIWrapper)-class-method","name":"new","abstract":false,"args":[{"name":"client","external_name":"client","restriction":"APIWrapper"}],"args_string":"(client : APIWrapper)","args_html":"(client : APIWrapper)","location":{"filename":"src/placeos/api_wrapper/endpoint.cr","line_number":11,"url":null},"def":{"name":"new","args":[{"name":"client","external_name":"client","restriction":"APIWrapper"}],"visibility":"Public","body":"_ = allocate\n_.initialize(client)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/auths/oauth.cr","line_number":8,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"create(name:String,authority_id:String,client_id:String|Nil=nil,client_secret:String|Nil=nil,info_mappings:Hash(String,String)|Nil=nil,site:String|Nil=nil,authorize_url:String|Nil=nil,token_method:String|Nil=nil,auth_scheme:String|Nil=nil,token_url:String|Nil=nil,scope:String|Nil=nil,raw_info_url:String|Nil=nil)-instance-method","name":"create","abstract":false,"args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"authority_id","external_name":"authority_id","restriction":"String"},{"name":"client_id","default_value":"nil","external_name":"client_id","restriction":"String | ::Nil"},{"name":"client_secret","default_value":"nil","external_name":"client_secret","restriction":"String | ::Nil"},{"name":"info_mappings","default_value":"nil","external_name":"info_mappings","restriction":"Hash(String, String) | ::Nil"},{"name":"site","default_value":"nil","external_name":"site","restriction":"String | ::Nil"},{"name":"authorize_url","default_value":"nil","external_name":"authorize_url","restriction":"String | ::Nil"},{"name":"token_method","default_value":"nil","external_name":"token_method","restriction":"String | ::Nil"},{"name":"auth_scheme","default_value":"nil","external_name":"auth_scheme","restriction":"String | ::Nil"},{"name":"token_url","default_value":"nil","external_name":"token_url","restriction":"String | ::Nil"},{"name":"scope","default_value":"nil","external_name":"scope","restriction":"String | ::Nil"},{"name":"raw_info_url","default_value":"nil","external_name":"raw_info_url","restriction":"String | ::Nil"}],"args_string":"(name : String, authority_id : String, client_id : String | Nil = nil, client_secret : String | Nil = nil, info_mappings : Hash(String, String) | Nil = nil, site : String | Nil = nil, authorize_url : String | Nil = nil, token_method : String | Nil = nil, auth_scheme : String | Nil = nil, token_url : String | Nil = nil, scope : String | Nil = nil, raw_info_url : String | Nil = nil)","args_html":"(name : String, authority_id : String, client_id : String | Nil = nil, client_secret : String | Nil = nil, info_mappings : Hash(String, String) | Nil = nil, site : String | Nil = nil, authorize_url : String | Nil = nil, token_method : String | Nil = nil, auth_scheme : String | Nil = nil, token_url : String | Nil = nil, scope : String | Nil = nil, raw_info_url : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/auths/oauth.cr","line_number":10,"url":null},"def":{"name":"create","args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"authority_id","external_name":"authority_id","restriction":"String"},{"name":"client_id","default_value":"nil","external_name":"client_id","restriction":"String | ::Nil"},{"name":"client_secret","default_value":"nil","external_name":"client_secret","restriction":"String | ::Nil"},{"name":"info_mappings","default_value":"nil","external_name":"info_mappings","restriction":"Hash(String, String) | ::Nil"},{"name":"site","default_value":"nil","external_name":"site","restriction":"String | ::Nil"},{"name":"authorize_url","default_value":"nil","external_name":"authorize_url","restriction":"String | ::Nil"},{"name":"token_method","default_value":"nil","external_name":"token_method","restriction":"String | ::Nil"},{"name":"auth_scheme","default_value":"nil","external_name":"auth_scheme","restriction":"String | ::Nil"},{"name":"token_url","default_value":"nil","external_name":"token_url","restriction":"String | ::Nil"},{"name":"scope","default_value":"nil","external_name":"scope","restriction":"String | ::Nil"},{"name":"raw_info_url","default_value":"nil","external_name":"raw_info_url","restriction":"String | ::Nil"}],"visibility":"Public","body":"super(**args)"}},{"html_id":"update(id:String,name:String|Nil=nil,authority_id:String|Nil=nil,client_id:String|Nil=nil,client_secret:String|Nil=nil,info_mappings:Hash(String,String)|Nil=nil,site:String|Nil=nil,authorize_url:String|Nil=nil,token_method:String|Nil=nil,auth_scheme:String|Nil=nil,token_url:String|Nil=nil,scope:String|Nil=nil,raw_info_url:String|Nil=nil)-instance-method","name":"update","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"authority_id","default_value":"nil","external_name":"authority_id","restriction":"String | ::Nil"},{"name":"client_id","default_value":"nil","external_name":"client_id","restriction":"String | ::Nil"},{"name":"client_secret","default_value":"nil","external_name":"client_secret","restriction":"String | ::Nil"},{"name":"info_mappings","default_value":"nil","external_name":"info_mappings","restriction":"Hash(String, String) | ::Nil"},{"name":"site","default_value":"nil","external_name":"site","restriction":"String | ::Nil"},{"name":"authorize_url","default_value":"nil","external_name":"authorize_url","restriction":"String | ::Nil"},{"name":"token_method","default_value":"nil","external_name":"token_method","restriction":"String | ::Nil"},{"name":"auth_scheme","default_value":"nil","external_name":"auth_scheme","restriction":"String | ::Nil"},{"name":"token_url","default_value":"nil","external_name":"token_url","restriction":"String | ::Nil"},{"name":"scope","default_value":"nil","external_name":"scope","restriction":"String | ::Nil"},{"name":"raw_info_url","default_value":"nil","external_name":"raw_info_url","restriction":"String | ::Nil"}],"args_string":"(id : String, name : String | Nil = nil, authority_id : String | Nil = nil, client_id : String | Nil = nil, client_secret : String | Nil = nil, info_mappings : Hash(String, String) | Nil = nil, site : String | Nil = nil, authorize_url : String | Nil = nil, token_method : String | Nil = nil, auth_scheme : String | Nil = nil, token_url : String | Nil = nil, scope : String | Nil = nil, raw_info_url : String | Nil = nil)","args_html":"(id : String, name : String | Nil = nil, authority_id : String | Nil = nil, client_id : String | Nil = nil, client_secret : String | Nil = nil, info_mappings : Hash(String, String) | Nil = nil, site : String | Nil = nil, authorize_url : String | Nil = nil, token_method : String | Nil = nil, auth_scheme : String | Nil = nil, token_url : String | Nil = nil, scope : String | Nil = nil, raw_info_url : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/auths/oauth.cr","line_number":27,"url":null},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"authority_id","default_value":"nil","external_name":"authority_id","restriction":"String | ::Nil"},{"name":"client_id","default_value":"nil","external_name":"client_id","restriction":"String | ::Nil"},{"name":"client_secret","default_value":"nil","external_name":"client_secret","restriction":"String | ::Nil"},{"name":"info_mappings","default_value":"nil","external_name":"info_mappings","restriction":"Hash(String, String) | ::Nil"},{"name":"site","default_value":"nil","external_name":"site","restriction":"String | ::Nil"},{"name":"authorize_url","default_value":"nil","external_name":"authorize_url","restriction":"String | ::Nil"},{"name":"token_method","default_value":"nil","external_name":"token_method","restriction":"String | ::Nil"},{"name":"auth_scheme","default_value":"nil","external_name":"auth_scheme","restriction":"String | ::Nil"},{"name":"token_url","default_value":"nil","external_name":"token_url","restriction":"String | ::Nil"},{"name":"scope","default_value":"nil","external_name":"scope","restriction":"String | ::Nil"},{"name":"raw_info_url","default_value":"nil","external_name":"raw_info_url","restriction":"String | ::Nil"}],"visibility":"Public","body":"super(**args)"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/OAuthApplications","path":"PlaceOS/Client/APIWrapper/OAuthApplications.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::OAuthApplications","name":"OAuthApplications","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/oauth_applications.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"}],"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/oauth_applications.cr","line_number":8,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"create(name:String,uid:String|Nil=nil,secret:String|Nil=nil,scopes:String|Nil=nil,owner_id:String|Nil=nil,redirect_uri:String|Nil=nil,skip_authorization:Bool|Nil=nil,confidential:Bool|Nil=nil,revoked_at:Time|Nil=nil)-instance-method","name":"create","abstract":false,"args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"uid","default_value":"nil","external_name":"uid","restriction":"String | ::Nil"},{"name":"secret","default_value":"nil","external_name":"secret","restriction":"String | ::Nil"},{"name":"scopes","default_value":"nil","external_name":"scopes","restriction":"String | ::Nil"},{"name":"owner_id","default_value":"nil","external_name":"owner_id","restriction":"String | ::Nil"},{"name":"redirect_uri","default_value":"nil","external_name":"redirect_uri","restriction":"String | ::Nil"},{"name":"skip_authorization","default_value":"nil","external_name":"skip_authorization","restriction":"Bool | ::Nil"},{"name":"confidential","default_value":"nil","external_name":"confidential","restriction":"Bool | ::Nil"},{"name":"revoked_at","default_value":"nil","external_name":"revoked_at","restriction":"Time | ::Nil"}],"args_string":"(name : String, uid : String | Nil = nil, secret : String | Nil = nil, scopes : String | Nil = nil, owner_id : String | Nil = nil, redirect_uri : String | Nil = nil, skip_authorization : Bool | Nil = nil, confidential : Bool | Nil = nil, revoked_at : Time | Nil = nil)","args_html":"(name : String, uid : String | Nil = nil, secret : String | Nil = nil, scopes : String | Nil = nil, owner_id : String | Nil = nil, redirect_uri : String | Nil = nil, skip_authorization : Bool | Nil = nil, confidential : Bool | Nil = nil, revoked_at : Time | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/oauth_applications.cr","line_number":50,"url":null},"def":{"name":"create","args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"uid","default_value":"nil","external_name":"uid","restriction":"String | ::Nil"},{"name":"secret","default_value":"nil","external_name":"secret","restriction":"String | ::Nil"},{"name":"scopes","default_value":"nil","external_name":"scopes","restriction":"String | ::Nil"},{"name":"owner_id","default_value":"nil","external_name":"owner_id","restriction":"String | ::Nil"},{"name":"redirect_uri","default_value":"nil","external_name":"redirect_uri","restriction":"String | ::Nil"},{"name":"skip_authorization","default_value":"nil","external_name":"skip_authorization","restriction":"Bool | ::Nil"},{"name":"confidential","default_value":"nil","external_name":"confidential","restriction":"Bool | ::Nil"},{"name":"revoked_at","default_value":"nil","external_name":"revoked_at","restriction":"Time | ::Nil"}],"visibility":"Public","body":"post(base, body: from_args, as: OAuthApplication)"}},{"html_id":"search(q:String|Nil=nil,limit:Int=20,offset:Int=0,authority:String|Nil=nil)-instance-method","name":"search","doc":"List or search for applications.\n\nResults maybe filtered by specifying a query - *q* - to search across application\nattributes. A small query language is supported within this:\n\nOperator | Action\n-------- | ------\n`+` | Matches both terms\n`|` | Matches either terms\n`-` | Negates a single token\n`\"` | Wraps tokens to form a phrase\n`(` `)` | Provides precedence\n`~N` | Specifies edit distance (fuzziness) after a word\n`~N` | Specifies slop amount (deviation) after a phrase\n\nUp to *limit* application will be returned, with a paging based on *offset*.","summary":"List or search for applications.
","abstract":false,"args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"authority","default_value":"nil","external_name":"authority","restriction":"String | ::Nil"}],"args_string":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0, authority : String | Nil = nil)","args_html":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0, authority : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/oauth_applications.cr","line_number":26,"url":null},"def":{"name":"search","args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"authority","default_value":"nil","external_name":"authority","restriction":"String | ::Nil"}],"visibility":"Public","body":"get(base, params: from_args, as: Array(OAuthApplication))"}},{"html_id":"update(id:String,name:String|Nil=nil,uid:String|Nil=nil,secret:String|Nil=nil,scopes:String|Nil=nil,owner_id:String|Nil=nil,redirect_uri:String|Nil=nil,skip_authorization:Bool|Nil=nil,confidential:Bool|Nil=nil,revoked_at:Time|Nil=nil)-instance-method","name":"update","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"uid","default_value":"nil","external_name":"uid","restriction":"String | ::Nil"},{"name":"secret","default_value":"nil","external_name":"secret","restriction":"String | ::Nil"},{"name":"scopes","default_value":"nil","external_name":"scopes","restriction":"String | ::Nil"},{"name":"owner_id","default_value":"nil","external_name":"owner_id","restriction":"String | ::Nil"},{"name":"redirect_uri","default_value":"nil","external_name":"redirect_uri","restriction":"String | ::Nil"},{"name":"skip_authorization","default_value":"nil","external_name":"skip_authorization","restriction":"Bool | ::Nil"},{"name":"confidential","default_value":"nil","external_name":"confidential","restriction":"Bool | ::Nil"},{"name":"revoked_at","default_value":"nil","external_name":"revoked_at","restriction":"Time | ::Nil"}],"args_string":"(id : String, name : String | Nil = nil, uid : String | Nil = nil, secret : String | Nil = nil, scopes : String | Nil = nil, owner_id : String | Nil = nil, redirect_uri : String | Nil = nil, skip_authorization : Bool | Nil = nil, confidential : Bool | Nil = nil, revoked_at : Time | Nil = nil)","args_html":"(id : String, name : String | Nil = nil, uid : String | Nil = nil, secret : String | Nil = nil, scopes : String | Nil = nil, owner_id : String | Nil = nil, redirect_uri : String | Nil = nil, skip_authorization : Bool | Nil = nil, confidential : Bool | Nil = nil, revoked_at : Time | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/oauth_applications.cr","line_number":35,"url":null},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"uid","default_value":"nil","external_name":"uid","restriction":"String | ::Nil"},{"name":"secret","default_value":"nil","external_name":"secret","restriction":"String | ::Nil"},{"name":"scopes","default_value":"nil","external_name":"scopes","restriction":"String | ::Nil"},{"name":"owner_id","default_value":"nil","external_name":"owner_id","restriction":"String | ::Nil"},{"name":"redirect_uri","default_value":"nil","external_name":"redirect_uri","restriction":"String | ::Nil"},{"name":"skip_authorization","default_value":"nil","external_name":"skip_authorization","restriction":"Bool | ::Nil"},{"name":"confidential","default_value":"nil","external_name":"confidential","restriction":"Bool | ::Nil"},{"name":"revoked_at","default_value":"nil","external_name":"revoked_at","restriction":"Time | ::Nil"}],"visibility":"Public","body":"put(\"#{base}/#{id}\", body: from_args, as: OAuthApplication)"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Repositories","path":"PlaceOS/Client/APIWrapper/Repositories.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Repositories","name":"Repositories","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/repositories.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"}],"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/repositories.cr","line_number":8,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Root","path":"PlaceOS/Client/APIWrapper/Root.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Root","name":"Root","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/root.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/root.cr","line_number":5,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"signal(channel:String,payload)-instance-method","name":"signal","doc":"send data to listening drivers","summary":"send data to listening drivers
","abstract":false,"args":[{"name":"channel","external_name":"channel","restriction":"String"},{"name":"payload","external_name":"payload","restriction":""}],"args_string":"(channel : String, payload)","args_html":"(channel : String, payload)","location":{"filename":"src/placeos/api_wrapper/root.cr","line_number":8,"url":null},"def":{"name":"signal","args":[{"name":"channel","external_name":"channel","restriction":"String"},{"name":"payload","external_name":"payload","restriction":""}],"visibility":"Public","body":"post(\"#{base}/signal?channel=#{channel}\", body: payload)"}},{"html_id":"version-instance-method","name":"version","abstract":false,"location":{"filename":"src/placeos/api_wrapper/root.cr","line_number":15,"url":null},"def":{"name":"version","visibility":"Public","body":"get(\"#{base}/version\", as: API::Models::Version)"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Saml","path":"PlaceOS/Client/APIWrapper/Saml.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Saml","name":"Saml","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/AuthBase","kind":"class","full_name":"PlaceOS::Client::APIWrapper::AuthBase","name":"AuthBase"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/AuthBase","kind":"class","full_name":"PlaceOS::Client::APIWrapper::AuthBase","name":"AuthBase"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/auths/saml.cr","line_number":7,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"constructors":[{"html_id":"new(client:APIWrapper)-class-method","name":"new","abstract":false,"args":[{"name":"client","external_name":"client","restriction":"APIWrapper"}],"args_string":"(client : APIWrapper)","args_html":"(client : APIWrapper)","location":{"filename":"src/placeos/api_wrapper/endpoint.cr","line_number":11,"url":null},"def":{"name":"new","args":[{"name":"client","external_name":"client","restriction":"APIWrapper"}],"visibility":"Public","body":"_ = allocate\n_.initialize(client)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/auths/saml.cr","line_number":8,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"create(name:String,authority_id:String,issuer:String,idp_sso_target_url:String,name_identifier_format:String,assertion_consumer_service_url:String,request_attributes:Array(NamedTuple(name:String,name_format:String,friendly_name:String)),idp_sso_target_url_runtime_params:Hash(String,String)|Nil=nil,uid_getter:String|Nil=nil,idp_cert:String|Nil=nil,idp_cert_fingerprint:String|Nil=nil,getter_service_name:String|Nil=nil,getter_statements:Hash(String,Array(String))|Nil=nil,idp_slo_target_url:String|Nil=nil,slo_default_relay_state:String|Nil=nil)-instance-method","name":"create","abstract":false,"args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"authority_id","external_name":"authority_id","restriction":"String"},{"name":"issuer","external_name":"issuer","restriction":"String"},{"name":"idp_sso_target_url","external_name":"idp_sso_target_url","restriction":"String"},{"name":"name_identifier_format","external_name":"name_identifier_format","restriction":"String"},{"name":"assertion_consumer_service_url","external_name":"assertion_consumer_service_url","restriction":"String"},{"name":"request_attributes","external_name":"request_attributes","restriction":"Array(NamedTuple(name: String, name_format: String, friendly_name: String))"},{"name":"idp_sso_target_url_runtime_params","default_value":"nil","external_name":"idp_sso_target_url_runtime_params","restriction":"Hash(String, String) | ::Nil"},{"name":"uid_getter","default_value":"nil","external_name":"uid_getter","restriction":"String | ::Nil"},{"name":"idp_cert","default_value":"nil","external_name":"idp_cert","restriction":"String | ::Nil"},{"name":"idp_cert_fingerprint","default_value":"nil","external_name":"idp_cert_fingerprint","restriction":"String | ::Nil"},{"name":"getter_service_name","default_value":"nil","external_name":"getter_service_name","restriction":"String | ::Nil"},{"name":"getter_statements","default_value":"nil","external_name":"getter_statements","restriction":"Hash(String, Array(String)) | ::Nil"},{"name":"idp_slo_target_url","default_value":"nil","external_name":"idp_slo_target_url","restriction":"String | ::Nil"},{"name":"slo_default_relay_state","default_value":"nil","external_name":"slo_default_relay_state","restriction":"String | ::Nil"}],"args_string":"(name : String, authority_id : String, issuer : String, idp_sso_target_url : String, name_identifier_format : String, assertion_consumer_service_url : String, request_attributes : Array(NamedTuple(name: String, name_format: String, friendly_name: String)), idp_sso_target_url_runtime_params : Hash(String, String) | Nil = nil, uid_getter : String | Nil = nil, idp_cert : String | Nil = nil, idp_cert_fingerprint : String | Nil = nil, getter_service_name : String | Nil = nil, getter_statements : Hash(String, Array(String)) | Nil = nil, idp_slo_target_url : String | Nil = nil, slo_default_relay_state : String | Nil = nil)","args_html":"(name : String, authority_id : String, issuer : String, idp_sso_target_url : String, name_identifier_format : String, assertion_consumer_service_url : String, request_attributes : Array(NamedTuple(name: String, name_format: String, friendly_name: String)), idp_sso_target_url_runtime_params : Hash(String, String) | Nil = nil, uid_getter : String | Nil = nil, idp_cert : String | Nil = nil, idp_cert_fingerprint : String | Nil = nil, getter_service_name : String | Nil = nil, getter_statements : Hash(String, Array(String)) | Nil = nil, idp_slo_target_url : String | Nil = nil, slo_default_relay_state : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/auths/saml.cr","line_number":10,"url":null},"def":{"name":"create","args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"authority_id","external_name":"authority_id","restriction":"String"},{"name":"issuer","external_name":"issuer","restriction":"String"},{"name":"idp_sso_target_url","external_name":"idp_sso_target_url","restriction":"String"},{"name":"name_identifier_format","external_name":"name_identifier_format","restriction":"String"},{"name":"assertion_consumer_service_url","external_name":"assertion_consumer_service_url","restriction":"String"},{"name":"request_attributes","external_name":"request_attributes","restriction":"Array(NamedTuple(name: String, name_format: String, friendly_name: String))"},{"name":"idp_sso_target_url_runtime_params","default_value":"nil","external_name":"idp_sso_target_url_runtime_params","restriction":"Hash(String, String) | ::Nil"},{"name":"uid_getter","default_value":"nil","external_name":"uid_getter","restriction":"String | ::Nil"},{"name":"idp_cert","default_value":"nil","external_name":"idp_cert","restriction":"String | ::Nil"},{"name":"idp_cert_fingerprint","default_value":"nil","external_name":"idp_cert_fingerprint","restriction":"String | ::Nil"},{"name":"getter_service_name","default_value":"nil","external_name":"getter_service_name","restriction":"String | ::Nil"},{"name":"getter_statements","default_value":"nil","external_name":"getter_statements","restriction":"Hash(String, Array(String)) | ::Nil"},{"name":"idp_slo_target_url","default_value":"nil","external_name":"idp_slo_target_url","restriction":"String | ::Nil"},{"name":"slo_default_relay_state","default_value":"nil","external_name":"slo_default_relay_state","restriction":"String | ::Nil"}],"visibility":"Public","body":"super(**args)"}},{"html_id":"update(id:String,name:String|Nil=nil,authority_id:String|Nil=nil,issuer:String|Nil=nil,idp_sso_target_url:String|Nil=nil,name_identifier_format:String|Nil=nil,assertion_consumer_service_url:String|Nil=nil,request_attributes:Array(NamedTuple(name:String,name_format:String,friendly_name:String))|Nil=nil,idp_sso_target_url_runtime_params:Hash(String,String)|Nil=nil,uid_getter:String|Nil=nil,idp_cert:String|Nil=nil,idp_cert_fingerprint:String|Nil=nil,getter_service_name:String|Nil=nil,getter_statements:Hash(String,Array(String))|Nil=nil,idp_slo_target_url:String|Nil=nil,slo_default_relay_state:String|Nil=nil)-instance-method","name":"update","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"authority_id","default_value":"nil","external_name":"authority_id","restriction":"String | ::Nil"},{"name":"issuer","default_value":"nil","external_name":"issuer","restriction":"String | ::Nil"},{"name":"idp_sso_target_url","default_value":"nil","external_name":"idp_sso_target_url","restriction":"String | ::Nil"},{"name":"name_identifier_format","default_value":"nil","external_name":"name_identifier_format","restriction":"String | ::Nil"},{"name":"assertion_consumer_service_url","default_value":"nil","external_name":"assertion_consumer_service_url","restriction":"String | ::Nil"},{"name":"request_attributes","default_value":"nil","external_name":"request_attributes","restriction":"Array(NamedTuple(name: String, name_format: String, friendly_name: String)) | ::Nil"},{"name":"idp_sso_target_url_runtime_params","default_value":"nil","external_name":"idp_sso_target_url_runtime_params","restriction":"Hash(String, String) | ::Nil"},{"name":"uid_getter","default_value":"nil","external_name":"uid_getter","restriction":"String | ::Nil"},{"name":"idp_cert","default_value":"nil","external_name":"idp_cert","restriction":"String | ::Nil"},{"name":"idp_cert_fingerprint","default_value":"nil","external_name":"idp_cert_fingerprint","restriction":"String | ::Nil"},{"name":"getter_service_name","default_value":"nil","external_name":"getter_service_name","restriction":"String | ::Nil"},{"name":"getter_statements","default_value":"nil","external_name":"getter_statements","restriction":"Hash(String, Array(String)) | ::Nil"},{"name":"idp_slo_target_url","default_value":"nil","external_name":"idp_slo_target_url","restriction":"String | ::Nil"},{"name":"slo_default_relay_state","default_value":"nil","external_name":"slo_default_relay_state","restriction":"String | ::Nil"}],"args_string":"(id : String, name : String | Nil = nil, authority_id : String | Nil = nil, issuer : String | Nil = nil, idp_sso_target_url : String | Nil = nil, name_identifier_format : String | Nil = nil, assertion_consumer_service_url : String | Nil = nil, request_attributes : Array(NamedTuple(name: String, name_format: String, friendly_name: String)) | Nil = nil, idp_sso_target_url_runtime_params : Hash(String, String) | Nil = nil, uid_getter : String | Nil = nil, idp_cert : String | Nil = nil, idp_cert_fingerprint : String | Nil = nil, getter_service_name : String | Nil = nil, getter_statements : Hash(String, Array(String)) | Nil = nil, idp_slo_target_url : String | Nil = nil, slo_default_relay_state : String | Nil = nil)","args_html":"(id : String, name : String | Nil = nil, authority_id : String | Nil = nil, issuer : String | Nil = nil, idp_sso_target_url : String | Nil = nil, name_identifier_format : String | Nil = nil, assertion_consumer_service_url : String | Nil = nil, request_attributes : Array(NamedTuple(name: String, name_format: String, friendly_name: String)) | Nil = nil, idp_sso_target_url_runtime_params : Hash(String, String) | Nil = nil, uid_getter : String | Nil = nil, idp_cert : String | Nil = nil, idp_cert_fingerprint : String | Nil = nil, getter_service_name : String | Nil = nil, getter_statements : Hash(String, Array(String)) | Nil = nil, idp_slo_target_url : String | Nil = nil, slo_default_relay_state : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/auths/saml.cr","line_number":30,"url":null},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"authority_id","default_value":"nil","external_name":"authority_id","restriction":"String | ::Nil"},{"name":"issuer","default_value":"nil","external_name":"issuer","restriction":"String | ::Nil"},{"name":"idp_sso_target_url","default_value":"nil","external_name":"idp_sso_target_url","restriction":"String | ::Nil"},{"name":"name_identifier_format","default_value":"nil","external_name":"name_identifier_format","restriction":"String | ::Nil"},{"name":"assertion_consumer_service_url","default_value":"nil","external_name":"assertion_consumer_service_url","restriction":"String | ::Nil"},{"name":"request_attributes","default_value":"nil","external_name":"request_attributes","restriction":"Array(NamedTuple(name: String, name_format: String, friendly_name: String)) | ::Nil"},{"name":"idp_sso_target_url_runtime_params","default_value":"nil","external_name":"idp_sso_target_url_runtime_params","restriction":"Hash(String, String) | ::Nil"},{"name":"uid_getter","default_value":"nil","external_name":"uid_getter","restriction":"String | ::Nil"},{"name":"idp_cert","default_value":"nil","external_name":"idp_cert","restriction":"String | ::Nil"},{"name":"idp_cert_fingerprint","default_value":"nil","external_name":"idp_cert_fingerprint","restriction":"String | ::Nil"},{"name":"getter_service_name","default_value":"nil","external_name":"getter_service_name","restriction":"String | ::Nil"},{"name":"getter_statements","default_value":"nil","external_name":"getter_statements","restriction":"Hash(String, Array(String)) | ::Nil"},{"name":"idp_slo_target_url","default_value":"nil","external_name":"idp_slo_target_url","restriction":"String | ::Nil"},{"name":"slo_default_relay_state","default_value":"nil","external_name":"slo_default_relay_state","restriction":"String | ::Nil"}],"visibility":"Public","body":"super(**args)"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Settings","path":"PlaceOS/Client/APIWrapper/Settings.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Settings","name":"Settings","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/settings.cr","line_number":5,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"}],"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/settings.cr","line_number":56,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"create(parent_id:String,settings_string:String,encryption_level:Encryption::Level=Encryption::Level::Support)-instance-method","name":"create","doc":"Create new settings.","summary":"Create new settings.
","abstract":false,"args":[{"name":"parent_id","external_name":"parent_id","restriction":"String"},{"name":"settings_string","external_name":"settings_string","restriction":"String"},{"name":"encryption_level","default_value":"Encryption::Level::Support","external_name":"encryption_level","restriction":"Encryption::Level"}],"args_string":"(parent_id : String, settings_string : String, encryption_level : Encryption::Level = Encryption::Level::Support)","args_html":"(parent_id : String, settings_string : String, encryption_level : Encryption::Level = Encryption::Level::Support)","location":{"filename":"src/placeos/api_wrapper/settings.cr","line_number":13,"url":null},"def":{"name":"create","args":[{"name":"parent_id","external_name":"parent_id","restriction":"String"},{"name":"settings_string","external_name":"settings_string","restriction":"String"},{"name":"encryption_level","default_value":"Encryption::Level::Support","external_name":"encryption_level","restriction":"Encryption::Level"}],"visibility":"Public","body":"YAML.parse(settings_string)\ncreate_actual(parent_id, settings_string, encryption_level.to_i)\n"}},{"html_id":"search(parent_ids:Array(String))-instance-method","name":"search","abstract":false,"args":[{"name":"parent_ids","external_name":"parent_ids","restriction":"Array(String)"}],"args_string":"(parent_ids : Array(String))","args_html":"(parent_ids : Array(String))","location":{"filename":"src/placeos/api_wrapper/settings.cr","line_number":42,"url":null},"def":{"name":"search","args":[{"name":"parent_ids","external_name":"parent_ids","restriction":"Array(String)"}],"visibility":"Public","body":"search(parent_id: parent_ids.join(\",\"))"}},{"html_id":"search(q:String|Nil=nil,limit:Int=1000,offset:Int=0,parent_id:String|Nil=nil)-instance-method","name":"search","doc":"List or search for systems.","summary":"List or search for systems.
","abstract":false,"args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"1000","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"parent_id","default_value":"nil","external_name":"parent_id","restriction":"String | ::Nil"}],"args_string":"(q : String | Nil = nil, limit : Int = 1000, offset : Int = 0, parent_id : String | Nil = nil)","args_html":"(q : String | Nil = nil, limit : Int = 1000, offset : Int = 0, parent_id : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/settings.cr","line_number":47,"url":null},"def":{"name":"search","args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"1000","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"parent_id","default_value":"nil","external_name":"parent_id","restriction":"String | ::Nil"}],"visibility":"Public","body":"get(base, params: from_args, as: Array(API::Models::Settings))"}},{"html_id":"update(id:String,settings_string:String)-instance-method","name":"update","doc":"Update settings.","summary":"Update settings.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"settings_string","external_name":"settings_string","restriction":"String"}],"args_string":"(id : String, settings_string : String)","args_html":"(id : String, settings_string : String)","location":{"filename":"src/placeos/api_wrapper/settings.cr","line_number":31,"url":null},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"settings_string","external_name":"settings_string","restriction":"String"}],"visibility":"Public","body":"YAML.parse(settings_string)\nput(\"#{base}/#{id}\", body: from_args, as: API::Models::Settings)\n"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Systems","path":"PlaceOS/Client/APIWrapper/Systems.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Systems","name":"Systems","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/systems.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"}],"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"constructors":[{"html_id":"new(client:APIWrapper)-class-method","name":"new","abstract":false,"args":[{"name":"client","external_name":"client","restriction":"APIWrapper"}],"args_string":"(client : APIWrapper)","args_html":"(client : APIWrapper)","location":{"filename":"src/placeos/api_wrapper/systems.cr","line_number":163,"url":null},"def":{"name":"new","args":[{"name":"client","external_name":"client","restriction":"APIWrapper"}],"visibility":"Public","body":"_ = allocate\n_.initialize(client)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/systems.cr","line_number":7,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"count(id:String,module_name:String):Int32|Nil-instance-method","name":"count","doc":"Gets the number of *module_name* instances available in system *id*.","summary":"Gets the number of module_name instances available in system id.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"module_name","external_name":"module_name","restriction":"String"}],"args_string":"(id : String, module_name : String) : Int32 | Nil","args_html":"(id : String, module_name : String) : Int32 | Nil","location":{"filename":"src/placeos/api_wrapper/systems.cr","line_number":48,"url":null},"def":{"name":"count","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"module_name","external_name":"module_name","restriction":"String"}],"return_type":"Int32 | ::Nil","visibility":"Public","body":"(types(id))[module_name]?"}},{"html_id":"create(name:String,zones:Array(String),description:String|Nil=nil,email:String|Nil=nil,capacity:Int|Nil=nil,bookable:Bool|Nil=nil,installed_ui_devices:Int|Nil=nil,modules:Array(String)|Nil=nil,support_url:String|Nil=nil,display_name:String|Nil=nil,timezone:String|Nil=nil,code:String|Nil=nil,type:String|Nil=nil,map_id:String|Nil=nil,images:Array(String)|Nil=nil,features:Array(String)|Nil=nil,public:Bool|Nil=nil)-instance-method","name":"create","doc":"Creates a new system.\n\nSystems must be given a unique *name* within the PlaceOS instance they are\nrunning from. Additionally, a system must be a member of at least one\n*zone*. All other attributes are optional at the time of creation.","summary":"Creates a new system.
","abstract":false,"args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"zones","external_name":"zones","restriction":"Array(String)"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"},{"name":"email","default_value":"nil","external_name":"email","restriction":"String | ::Nil"},{"name":"capacity","default_value":"nil","external_name":"capacity","restriction":"Int | ::Nil"},{"name":"bookable","default_value":"nil","external_name":"bookable","restriction":"Bool | ::Nil"},{"name":"installed_ui_devices","default_value":"nil","external_name":"installed_ui_devices","restriction":"Int | ::Nil"},{"name":"modules","default_value":"nil","external_name":"modules","restriction":"Array(String) | ::Nil"},{"name":"support_url","default_value":"nil","external_name":"support_url","restriction":"String | ::Nil"},{"name":"display_name","default_value":"nil","external_name":"display_name","restriction":"String | ::Nil"},{"name":"timezone","default_value":"nil","external_name":"timezone","restriction":"String | ::Nil"},{"name":"code","default_value":"nil","external_name":"code","restriction":"String | ::Nil"},{"name":"type","default_value":"nil","external_name":"type","restriction":"String | ::Nil"},{"name":"map_id","default_value":"nil","external_name":"map_id","restriction":"String | ::Nil"},{"name":"images","default_value":"nil","external_name":"images","restriction":"Array(String) | ::Nil"},{"name":"features","default_value":"nil","external_name":"features","restriction":"Array(String) | ::Nil"},{"name":"public","default_value":"nil","external_name":"public","restriction":"Bool | ::Nil"}],"args_string":"(name : String, zones : Array(String), description : String | Nil = nil, email : String | Nil = nil, capacity : Int | Nil = nil, bookable : Bool | Nil = nil, installed_ui_devices : Int | Nil = nil, modules : Array(String) | Nil = nil, support_url : String | Nil = nil, display_name : String | Nil = nil, timezone : String | Nil = nil, code : String | Nil = nil, type : String | Nil = nil, map_id : String | Nil = nil, images : Array(String) | Nil = nil, features : Array(String) | Nil = nil, public : Bool | Nil = nil)","args_html":"(name : String, zones : Array(String), description : String | Nil = nil, email : String | Nil = nil, capacity : Int | Nil = nil, bookable : Bool | Nil = nil, installed_ui_devices : Int | Nil = nil, modules : Array(String) | Nil = nil, support_url : String | Nil = nil, display_name : String | Nil = nil, timezone : String | Nil = nil, code : String | Nil = nil, type : String | Nil = nil, map_id : String | Nil = nil, images : Array(String) | Nil = nil, features : Array(String) | Nil = nil, public : Bool | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/systems.cr","line_number":69,"url":null},"def":{"name":"create","args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"zones","external_name":"zones","restriction":"Array(String)"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"},{"name":"email","default_value":"nil","external_name":"email","restriction":"String | ::Nil"},{"name":"capacity","default_value":"nil","external_name":"capacity","restriction":"Int | ::Nil"},{"name":"bookable","default_value":"nil","external_name":"bookable","restriction":"Bool | ::Nil"},{"name":"installed_ui_devices","default_value":"nil","external_name":"installed_ui_devices","restriction":"Int | ::Nil"},{"name":"modules","default_value":"nil","external_name":"modules","restriction":"Array(String) | ::Nil"},{"name":"support_url","default_value":"nil","external_name":"support_url","restriction":"String | ::Nil"},{"name":"display_name","default_value":"nil","external_name":"display_name","restriction":"String | ::Nil"},{"name":"timezone","default_value":"nil","external_name":"timezone","restriction":"String | ::Nil"},{"name":"code","default_value":"nil","external_name":"code","restriction":"String | ::Nil"},{"name":"type","default_value":"nil","external_name":"type","restriction":"String | ::Nil"},{"name":"map_id","default_value":"nil","external_name":"map_id","restriction":"String | ::Nil"},{"name":"images","default_value":"nil","external_name":"images","restriction":"Array(String) | ::Nil"},{"name":"features","default_value":"nil","external_name":"features","restriction":"Array(String) | ::Nil"},{"name":"public","default_value":"nil","external_name":"public","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"post(base, body: from_args, as: System)"}},{"html_id":"execute(id:String,module_name:String,method:String,index:Int32=1,*args:Array(JSON::Any::Type))-instance-method","name":"execute","doc":"Executes a behaviour exposed by a module within the passed system *id*.","summary":"Executes a behaviour exposed by a module within the passed system id.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"module_name","external_name":"module_name","restriction":"String"},{"name":"method","external_name":"method","restriction":"String"},{"name":"index","default_value":"1","external_name":"index","restriction":"Int32"},{"name":"args","external_name":"args","restriction":"Array(JSON::Any::Type)"}],"args_string":"(id : String, module_name : String, method : String, index : Int32 = 1, *args : Array(JSON::Any::Type))","args_html":"(id : String, module_name : String, method : String, index : Int32 = 1, *args : Array(JSON::Any::Type))","location":{"filename":"src/placeos/api_wrapper/systems.cr","line_number":25,"url":null},"def":{"name":"execute","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"module_name","external_name":"module_name","restriction":"String"},{"name":"method","external_name":"method","restriction":"String"},{"name":"index","default_value":"1","external_name":"index","restriction":"Int32"},{"name":"args","external_name":"args","restriction":"Array(JSON::Any::Type)"}],"splat_index":4,"visibility":"Public","body":"post(\"#{base}/#{id}/#{module_name}_#{index}/#{method}\", body: args)"}},{"html_id":"functions(id:String,module_name:String,index:Int=1)-instance-method","name":"functions","doc":"Queries the behaviour exposed by a module within system *id*.","summary":"Queries the behaviour exposed by a module within system id.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"module_name","external_name":"module_name","restriction":"String"},{"name":"index","default_value":"1","external_name":"index","restriction":"Int"}],"args_string":"(id : String, module_name : String, index : Int = 1)","args_html":"(id : String, module_name : String, index : Int = 1)","location":{"filename":"src/placeos/api_wrapper/systems.cr","line_number":43,"url":null},"def":{"name":"functions","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"module_name","external_name":"module_name","restriction":"String"},{"name":"index","default_value":"1","external_name":"index","restriction":"Int"}],"visibility":"Public","body":"get(\"#{base}/#{id}/functions/#{module_name}_#{index}\", as: Hash(String, Function))"}},{"html_id":"search(q:String|Nil=nil,limit:Int=1000,offset:Int=0,zone_id:String|Nil=nil,module_id:String|Nil=nil,features:String|Nil=nil,capacity:Int32|Nil=nil,bookable:Bool|Nil=nil)-instance-method","name":"search","doc":"List or search for systems.\n\nResults maybe filtered by specifying a query - *q* - to search across system\nattributes. A small query language is supported within this:\n\nOperator | Action\n-------- | ------\n`+` | Matches both terms\n`|` | Matches either terms\n`-` | Negates a single token\n`\"` | Wraps tokens to form a phrase\n`(` `)` | Provides precedence\n`~N` | Specifies edit distance (fuzziness) after a word\n`~N` | Specifies slop amount (deviation) after a phrase\n\nUp to *limit* systems will be returned, with a paging based on *offset*.","summary":"List or search for systems.
","abstract":false,"args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"1000","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"zone_id","default_value":"nil","external_name":"zone_id","restriction":"String | ::Nil"},{"name":"module_id","default_value":"nil","external_name":"module_id","restriction":"String | ::Nil"},{"name":"features","default_value":"nil","external_name":"features","restriction":"String | ::Nil"},{"name":"capacity","default_value":"nil","external_name":"capacity","restriction":"Int32 | ::Nil"},{"name":"bookable","default_value":"nil","external_name":"bookable","restriction":"Bool | ::Nil"}],"args_string":"(q : String | Nil = nil, limit : Int = 1000, offset : Int = 0, zone_id : String | Nil = nil, module_id : String | Nil = nil, features : String | Nil = nil, capacity : Int32 | Nil = nil, bookable : Bool | Nil = nil)","args_html":"(q : String | Nil = nil, limit : Int = 1000, offset : Int = 0, zone_id : String | Nil = nil, module_id : String | Nil = nil, features : String | Nil = nil, capacity : Int32 | Nil = nil, bookable : Bool | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/systems.cr","line_number":140,"url":null},"def":{"name":"search","args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"1000","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"zone_id","default_value":"nil","external_name":"zone_id","restriction":"String | ::Nil"},{"name":"module_id","default_value":"nil","external_name":"module_id","restriction":"String | ::Nil"},{"name":"features","default_value":"nil","external_name":"features","restriction":"String | ::Nil"},{"name":"capacity","default_value":"nil","external_name":"capacity","restriction":"Int32 | ::Nil"},{"name":"bookable","default_value":"nil","external_name":"bookable","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"get(base, params: from_args, as: Array(System))"}},{"html_id":"settings(id:String)-instance-method","name":"settings","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"}],"args_string":"(id : String)","args_html":"(id : String)","location":{"filename":"src/placeos/api_wrapper/systems.cr","line_number":57,"url":null},"def":{"name":"settings","args":[{"name":"id","external_name":"id","restriction":"String"}],"visibility":"Public","body":"get(\"#{base}/#{id}/settings\", as: Array(Settings))"}},{"html_id":"start(id:String)-instance-method","name":"start","doc":"Start all modules within a system.","summary":"Start all modules within a system.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"}],"args_string":"(id : String)","args_html":"(id : String)","location":{"filename":"src/placeos/api_wrapper/systems.cr","line_number":13,"url":null},"def":{"name":"start","args":[{"name":"id","external_name":"id","restriction":"String"}],"visibility":"Public","body":"post(\"#{base}/#{id}/start\")\nnil\n"}},{"html_id":"state(id:String,module_name:String,index:Int=1,lookup:String|Nil=nil)-instance-method","name":"state","doc":"Queries the state exposed by a module within the passed system *id*.","summary":"Queries the state exposed by a module within the passed system id.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"module_name","external_name":"module_name","restriction":"String"},{"name":"index","default_value":"1","external_name":"index","restriction":"Int"},{"name":"lookup","default_value":"nil","external_name":"lookup","restriction":"String | ::Nil"}],"args_string":"(id : String, module_name : String, index : Int = 1, lookup : String | Nil = nil)","args_html":"(id : String, module_name : String, index : Int = 1, lookup : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/systems.cr","line_number":36,"url":null},"def":{"name":"state","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"module_name","external_name":"module_name","restriction":"String"},{"name":"index","default_value":"1","external_name":"index","restriction":"Int"},{"name":"lookup","default_value":"nil","external_name":"lookup","restriction":"String | ::Nil"}],"visibility":"Public","body":"path = \"#{base}/#{id}/#{module_name}_#{index}\"\nif lookup.nil?\nelse\n path = path + \"/#{lookup}\"\nend\nget(path)\n"}},{"html_id":"stop(id:String)-instance-method","name":"stop","doc":"Stops all modules within a system.","summary":"Stops all modules within a system.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"}],"args_string":"(id : String)","args_html":"(id : String)","location":{"filename":"src/placeos/api_wrapper/systems.cr","line_number":19,"url":null},"def":{"name":"stop","args":[{"name":"id","external_name":"id","restriction":"String"}],"visibility":"Public","body":"post(\"#{base}/#{id}/stop\")\nnil\n"}},{"html_id":"types(id:String)-instance-method","name":"types","doc":"Queries the types of modules available in system *id*.","summary":"Queries the types of modules available in system id.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"}],"args_string":"(id : String)","args_html":"(id : String)","location":{"filename":"src/placeos/api_wrapper/systems.cr","line_number":53,"url":null},"def":{"name":"types","args":[{"name":"id","external_name":"id","restriction":"String"}],"visibility":"Public","body":"get(\"#{base}/#{id}/types\", as: Hash(String, Int32))"}},{"html_id":"update(id:String,version:Int,name:String|Nil=nil,zones:Array(String)|Nil=nil,description:String|Nil=nil,email:String|Nil=nil,capacity:Int|Nil=nil,bookable:Bool|Nil=nil,installed_ui_devices:Int|Nil=nil,modules:Array(String)|Nil=nil,support_url:String|Nil=nil,display_name:String|Nil=nil,timezone:String|Nil=nil,code:String|Nil=nil,type:String|Nil=nil,map_id:String|Nil=nil,images:Array(String)|Nil=nil,features:Array(String)|Nil=nil,public:Bool|Nil=nil)-instance-method","name":"update","doc":"Requests a change to an existing system.\n\nIn addition to specifying the ID of the system to update, you must reference\nthe the current system metadata *version* for the update to be allowed. This\nmust match the current version attribute of the system and will be\nincrememented following a successful update.","summary":"Requests a change to an existing system.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"version","external_name":"version","restriction":"Int"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"zones","default_value":"nil","external_name":"zones","restriction":"Array(String) | ::Nil"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"},{"name":"email","default_value":"nil","external_name":"email","restriction":"String | ::Nil"},{"name":"capacity","default_value":"nil","external_name":"capacity","restriction":"Int | ::Nil"},{"name":"bookable","default_value":"nil","external_name":"bookable","restriction":"Bool | ::Nil"},{"name":"installed_ui_devices","default_value":"nil","external_name":"installed_ui_devices","restriction":"Int | ::Nil"},{"name":"modules","default_value":"nil","external_name":"modules","restriction":"Array(String) | ::Nil"},{"name":"support_url","default_value":"nil","external_name":"support_url","restriction":"String | ::Nil"},{"name":"display_name","default_value":"nil","external_name":"display_name","restriction":"String | ::Nil"},{"name":"timezone","default_value":"nil","external_name":"timezone","restriction":"String | ::Nil"},{"name":"code","default_value":"nil","external_name":"code","restriction":"String | ::Nil"},{"name":"type","default_value":"nil","external_name":"type","restriction":"String | ::Nil"},{"name":"map_id","default_value":"nil","external_name":"map_id","restriction":"String | ::Nil"},{"name":"images","default_value":"nil","external_name":"images","restriction":"Array(String) | ::Nil"},{"name":"features","default_value":"nil","external_name":"features","restriction":"Array(String) | ::Nil"},{"name":"public","default_value":"nil","external_name":"public","restriction":"Bool | ::Nil"}],"args_string":"(id : String, version : Int, name : String | Nil = nil, zones : Array(String) | Nil = nil, description : String | Nil = nil, email : String | Nil = nil, capacity : Int | Nil = nil, bookable : Bool | Nil = nil, installed_ui_devices : Int | Nil = nil, modules : Array(String) | Nil = nil, support_url : String | Nil = nil, display_name : String | Nil = nil, timezone : String | Nil = nil, code : String | Nil = nil, type : String | Nil = nil, map_id : String | Nil = nil, images : Array(String) | Nil = nil, features : Array(String) | Nil = nil, public : Bool | Nil = nil)","args_html":"(id : String, version : Int, name : String | Nil = nil, zones : Array(String) | Nil = nil, description : String | Nil = nil, email : String | Nil = nil, capacity : Int | Nil = nil, bookable : Bool | Nil = nil, installed_ui_devices : Int | Nil = nil, modules : Array(String) | Nil = nil, support_url : String | Nil = nil, display_name : String | Nil = nil, timezone : String | Nil = nil, code : String | Nil = nil, type : String | Nil = nil, map_id : String | Nil = nil, images : Array(String) | Nil = nil, features : Array(String) | Nil = nil, public : Bool | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/systems.cr","line_number":97,"url":null},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"version","external_name":"version","restriction":"Int"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"zones","default_value":"nil","external_name":"zones","restriction":"Array(String) | ::Nil"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"},{"name":"email","default_value":"nil","external_name":"email","restriction":"String | ::Nil"},{"name":"capacity","default_value":"nil","external_name":"capacity","restriction":"Int | ::Nil"},{"name":"bookable","default_value":"nil","external_name":"bookable","restriction":"Bool | ::Nil"},{"name":"installed_ui_devices","default_value":"nil","external_name":"installed_ui_devices","restriction":"Int | ::Nil"},{"name":"modules","default_value":"nil","external_name":"modules","restriction":"Array(String) | ::Nil"},{"name":"support_url","default_value":"nil","external_name":"support_url","restriction":"String | ::Nil"},{"name":"display_name","default_value":"nil","external_name":"display_name","restriction":"String | ::Nil"},{"name":"timezone","default_value":"nil","external_name":"timezone","restriction":"String | ::Nil"},{"name":"code","default_value":"nil","external_name":"code","restriction":"String | ::Nil"},{"name":"type","default_value":"nil","external_name":"type","restriction":"String | ::Nil"},{"name":"map_id","default_value":"nil","external_name":"map_id","restriction":"String | ::Nil"},{"name":"images","default_value":"nil","external_name":"images","restriction":"Array(String) | ::Nil"},{"name":"features","default_value":"nil","external_name":"features","restriction":"Array(String) | ::Nil"},{"name":"public","default_value":"nil","external_name":"public","restriction":"Bool | ::Nil"}],"visibility":"Public","body":"put(\"#{base}/#{id}\", params: \"version=#{version}\", body: from_args, as: System)"}},{"html_id":"with_emails(list:Array(String)|String)-instance-method","name":"with_emails","doc":"Returns systems with a specified email address(es)\n","summary":"Returns systems with a specified email address(es)
","abstract":false,"args":[{"name":"list","external_name":"list","restriction":"Array(String) | String"}],"args_string":"(list : Array(String) | String)","args_html":"(list : Array(String) | String)","location":{"filename":"src/placeos/api_wrapper/systems.cr","line_number":155,"url":null},"def":{"name":"with_emails","args":[{"name":"list","external_name":"list","restriction":"Array(String) | String"}],"visibility":"Public","body":"query = list.is_a?(Array) ? list.join(',') : list\nget(\"#{base}/with_emails\", params: HTTP::Params {\"in\" => query}, as: Array(System))\n"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/SystemTriggers","path":"PlaceOS/Client/APIWrapper/SystemTriggers.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::SystemTriggers","name":"SystemTriggers","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/system_triggers.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"SystemTriggers are embedded beneath a systems route","summary":"SystemTriggers are embedded beneath a systems route
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/system_triggers.cr","line_number":6,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Triggers","path":"PlaceOS/Client/APIWrapper/Triggers.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Triggers","name":"Triggers","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/triggers.cr","line_number":4,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"}],"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/triggers.cr","line_number":8,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Users","path":"PlaceOS/Client/APIWrapper/Users.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Users","name":"Users","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/users.cr","line_number":7,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"}],"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"doc":"TODO:\n- create\n- update","summary":"TODO - create - update
","instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/users.cr","line_number":11,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"current-instance-method","name":"current","abstract":false,"location":{"filename":"src/placeos/api_wrapper/users.cr","line_number":13,"url":null},"def":{"name":"current","visibility":"Public","body":"get(\"#{base}/current\", as: User)"}},{"html_id":"resource_token-instance-method","name":"resource_token","abstract":false,"location":{"filename":"src/placeos/api_wrapper/users.cr","line_number":17,"url":null},"def":{"name":"resource_token","visibility":"Public","body":"post(\"#{base}/resource_token\", as: ResourceToken)"}},{"html_id":"search(q:String|Nil=nil,limit:Int=20,offset:Int=0,authority_id:String|Nil=nil,include_deleted:Bool=false,include_metadata:Bool=false)-instance-method","name":"search","doc":"List or search for users.\n\nResults maybe filtered by specifying a query - *q* - to search across zone\nattributes. A small query language is supported within this:\n\nOperator | Action\n-------- | ------\n`+` | Matches both terms\n`|` | Matches either terms\n`-` | Negates a single token\n`\"` | Wraps tokens to form a phrase\n`(` `)` | Provides precedence\n`~N` | Specifies edit distance (fuzziness) after a word\n`~N` | Specifies slop amount (deviation) after a phrase\n\nUp to *limit* zones will be returned, with a paging based on *offset*.\n\nResults my also also be limited to those associated with specific *tags*.","summary":"List or search for users.
","abstract":false,"args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"authority_id","default_value":"nil","external_name":"authority_id","restriction":"String | ::Nil"},{"name":"include_deleted","default_value":"false","external_name":"include_deleted","restriction":"Bool"},{"name":"include_metadata","default_value":"false","external_name":"include_metadata","restriction":"Bool"}],"args_string":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0, authority_id : String | Nil = nil, include_deleted : Bool = false, include_metadata : Bool = false)","args_html":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0, authority_id : String | Nil = nil, include_deleted : Bool = false, include_metadata : Bool = false)","location":{"filename":"src/placeos/api_wrapper/users.cr","line_number":39,"url":null},"def":{"name":"search","args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"authority_id","default_value":"nil","external_name":"authority_id","restriction":"String | ::Nil"},{"name":"include_deleted","default_value":"false","external_name":"include_deleted","restriction":"Bool"},{"name":"include_metadata","default_value":"false","external_name":"include_metadata","restriction":"Bool"}],"visibility":"Public","body":"get(base, params: from_args, as: Array(API::Models::User))"}}]},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Zones","path":"PlaceOS/Client/APIWrapper/Zones.html","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Zones","name":"Zones","abstract":false,"superclass":{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},"ancestors":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint","kind":"class","full_name":"PlaceOS::Client::APIWrapper::Endpoint","name":"Endpoint"},{"html_id":"placeos/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"placeos/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"src/placeos/api_wrapper/zones.cr","line_number":5,"url":null}],"repository_name":"placeos","program":false,"enum":false,"alias":false,"const":false,"included_modules":[{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Destroy","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Destroy","name":"Destroy"},{"html_id":"placeos/PlaceOS/Client/APIWrapper/Endpoint/Fetch","kind":"module","full_name":"PlaceOS::Client::APIWrapper::Endpoint::Fetch","name":"Fetch"}],"namespace":{"html_id":"placeos/PlaceOS/Client/APIWrapper","kind":"class","full_name":"PlaceOS::Client::APIWrapper","name":"APIWrapper"},"constructors":[{"html_id":"new(client:APIWrapper)-class-method","name":"new","abstract":false,"args":[{"name":"client","external_name":"client","restriction":"APIWrapper"}],"args_string":"(client : APIWrapper)","args_html":"(client : APIWrapper)","location":{"filename":"src/placeos/api_wrapper/zones.cr","line_number":99,"url":null},"def":{"name":"new","args":[{"name":"client","external_name":"client","restriction":"APIWrapper"}],"visibility":"Public","body":"_ = allocate\n_.initialize(client)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"html_id":"base:String-instance-method","name":"base","doc":"The base route for the endpoint","summary":"The base route for the endpoint
","abstract":false,"location":{"filename":"src/placeos/api_wrapper/zones.cr","line_number":9,"url":null},"def":{"name":"base","return_type":"String","visibility":"Public","body":"@base"}},{"html_id":"create(name:String,description:String|Nil=nil,tags:Array(String)|Nil=nil,settings:Settings|Nil=nil,triggers:Array(String)|Nil=nil,display_name:String|Nil=nil,location:String|Nil=nil,code:String|Nil=nil,type:String|Nil=nil,count:Int32|Nil=nil,capacity:Int32|Nil=nil,map_id:String|Nil=nil,parent_id:String|Nil=nil)-instance-method","name":"create","doc":"Creates a new zone.","summary":"Creates a new zone.
","abstract":false,"args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"},{"name":"tags","default_value":"nil","external_name":"tags","restriction":"Array(String) | ::Nil"},{"name":"settings","default_value":"nil","external_name":"settings","restriction":"Settings | ::Nil"},{"name":"triggers","default_value":"nil","external_name":"triggers","restriction":"Array(String) | ::Nil"},{"name":"display_name","default_value":"nil","external_name":"display_name","restriction":"String | ::Nil"},{"name":"location","default_value":"nil","external_name":"location","restriction":"String | ::Nil"},{"name":"code","default_value":"nil","external_name":"code","restriction":"String | ::Nil"},{"name":"type","default_value":"nil","external_name":"type","restriction":"String | ::Nil"},{"name":"count","default_value":"nil","external_name":"count","restriction":"Int32 | ::Nil"},{"name":"capacity","default_value":"nil","external_name":"capacity","restriction":"Int32 | ::Nil"},{"name":"map_id","default_value":"nil","external_name":"map_id","restriction":"String | ::Nil"},{"name":"parent_id","default_value":"nil","external_name":"parent_id","restriction":"String | ::Nil"}],"args_string":"(name : String, description : String | Nil = nil, tags : Array(String) | Nil = nil, settings : Settings | Nil = nil, triggers : Array(String) | Nil = nil, display_name : String | Nil = nil, location : String | Nil = nil, code : String | Nil = nil, type : String | Nil = nil, count : Int32 | Nil = nil, capacity : Int32 | Nil = nil, map_id : String | Nil = nil, parent_id : String | Nil = nil)","args_html":"(name : String, description : String | Nil = nil, tags : Array(String) | Nil = nil, settings : Settings | Nil = nil, triggers : Array(String) | Nil = nil, display_name : String | Nil = nil, location : String | Nil = nil, code : String | Nil = nil, type : String | Nil = nil, count : Int32 | Nil = nil, capacity : Int32 | Nil = nil, map_id : String | Nil = nil, parent_id : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/zones.cr","line_number":28,"url":null},"def":{"name":"create","args":[{"name":"name","external_name":"name","restriction":"String"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"},{"name":"tags","default_value":"nil","external_name":"tags","restriction":"Array(String) | ::Nil"},{"name":"settings","default_value":"nil","external_name":"settings","restriction":"Settings | ::Nil"},{"name":"triggers","default_value":"nil","external_name":"triggers","restriction":"Array(String) | ::Nil"},{"name":"display_name","default_value":"nil","external_name":"display_name","restriction":"String | ::Nil"},{"name":"location","default_value":"nil","external_name":"location","restriction":"String | ::Nil"},{"name":"code","default_value":"nil","external_name":"code","restriction":"String | ::Nil"},{"name":"type","default_value":"nil","external_name":"type","restriction":"String | ::Nil"},{"name":"count","default_value":"nil","external_name":"count","restriction":"Int32 | ::Nil"},{"name":"capacity","default_value":"nil","external_name":"capacity","restriction":"Int32 | ::Nil"},{"name":"map_id","default_value":"nil","external_name":"map_id","restriction":"String | ::Nil"},{"name":"parent_id","default_value":"nil","external_name":"parent_id","restriction":"String | ::Nil"}],"visibility":"Public","body":"post(base, body: from_args, as: API::Models::Zone)"}},{"html_id":"execute(id:String,method:String,module_name:String,index:Int32=1,args=nil)-instance-method","name":"execute","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"method","external_name":"method","restriction":"String"},{"name":"module_name","external_name":"module_name","restriction":"String"},{"name":"index","default_value":"1","external_name":"index","restriction":"Int32"},{"name":"args","default_value":"nil","external_name":"args","restriction":""}],"args_string":"(id : String, method : String, module_name : String, index : Int32 = 1, args = nil)","args_html":"(id : String, method : String, module_name : String, index : Int32 = 1, args = nil)","location":{"filename":"src/placeos/api_wrapper/zones.cr","line_number":14,"url":null},"def":{"name":"execute","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"method","external_name":"method","restriction":"String"},{"name":"module_name","external_name":"module_name","restriction":"String"},{"name":"index","default_value":"1","external_name":"index","restriction":"Int32"},{"name":"args","default_value":"nil","external_name":"args","restriction":""}],"visibility":"Public","body":"post(\"#{base}/#{id}/#{module_name}_#{index}/#{method}\", body: args)"}},{"html_id":"search(q:String|Nil=nil,limit:Int=20,offset:Int=0,parent_id:String|Nil=nil,tags:Array(String)|String|Nil=nil)-instance-method","name":"search","doc":"List or search for zones.\n\nResults maybe filtered by specifying a query - *q* - to search across zone\nattributes. A small query language is supported within this:\n\nOperator | Action\n-------- | ------\n`+` | Matches both terms\n`|` | Matches either terms\n`-` | Negates a single token\n`\"` | Wraps tokens to form a phrase\n`(` `)` | Provides precedence\n`~N` | Specifies edit distance (fuzziness) after a word\n`~N` | Specifies slop amount (deviation) after a phrase\n\nUp to *limit* zones will be returned, with a paging based on *offset*.\n\nResults my also also be limited to those associated with specific *tags*.","summary":"List or search for zones.
","abstract":false,"args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"parent_id","default_value":"nil","external_name":"parent_id","restriction":"String | ::Nil"},{"name":"tags","default_value":"nil","external_name":"tags","restriction":"Array(String) | String | ::Nil"}],"args_string":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0, parent_id : String | Nil = nil, tags : Array(String) | String | Nil = nil)","args_html":"(q : String | Nil = nil, limit : Int = 20, offset : Int = 0, parent_id : String | Nil = nil, tags : Array(String) | String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/zones.cr","line_number":87,"url":null},"def":{"name":"search","args":[{"name":"q","default_value":"nil","external_name":"q","restriction":"String | ::Nil"},{"name":"limit","default_value":"20","external_name":"limit","restriction":"Int"},{"name":"offset","default_value":"0","external_name":"offset","restriction":"Int"},{"name":"parent_id","default_value":"nil","external_name":"parent_id","restriction":"String | ::Nil"},{"name":"tags","default_value":"nil","external_name":"tags","restriction":"Array(String) | String | ::Nil"}],"visibility":"Public","body":"get(base, params: from_args, as: Array(API::Models::Zone))"}},{"html_id":"update(id:String,name:String|Nil=nil,description:String|Nil=nil,tags:Array(String)|Nil=nil,settings:Settings|Nil=nil,triggers:Array(String)|Nil=nil,display_name:String|Nil=nil,location:String|Nil=nil,code:String|Nil=nil,type:String|Nil=nil,count:Int32|Nil=nil,capacity:Int32|Nil=nil,map_id:String|Nil=nil,parent_id:String|Nil=nil)-instance-method","name":"update","doc":"Updates zone attributes or configuration.","summary":"Updates zone attributes or configuration.
","abstract":false,"args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"},{"name":"tags","default_value":"nil","external_name":"tags","restriction":"Array(String) | ::Nil"},{"name":"settings","default_value":"nil","external_name":"settings","restriction":"Settings | ::Nil"},{"name":"triggers","default_value":"nil","external_name":"triggers","restriction":"Array(String) | ::Nil"},{"name":"display_name","default_value":"nil","external_name":"display_name","restriction":"String | ::Nil"},{"name":"location","default_value":"nil","external_name":"location","restriction":"String | ::Nil"},{"name":"code","default_value":"nil","external_name":"code","restriction":"String | ::Nil"},{"name":"type","default_value":"nil","external_name":"type","restriction":"String | ::Nil"},{"name":"count","default_value":"nil","external_name":"count","restriction":"Int32 | ::Nil"},{"name":"capacity","default_value":"nil","external_name":"capacity","restriction":"Int32 | ::Nil"},{"name":"map_id","default_value":"nil","external_name":"map_id","restriction":"String | ::Nil"},{"name":"parent_id","default_value":"nil","external_name":"parent_id","restriction":"String | ::Nil"}],"args_string":"(id : String, name : String | Nil = nil, description : String | Nil = nil, tags : Array(String) | Nil = nil, settings : Settings | Nil = nil, triggers : Array(String) | Nil = nil, display_name : String | Nil = nil, location : String | Nil = nil, code : String | Nil = nil, type : String | Nil = nil, count : Int32 | Nil = nil, capacity : Int32 | Nil = nil, map_id : String | Nil = nil, parent_id : String | Nil = nil)","args_html":"(id : String, name : String | Nil = nil, description : String | Nil = nil, tags : Array(String) | Nil = nil, settings : Settings | Nil = nil, triggers : Array(String) | Nil = nil, display_name : String | Nil = nil, location : String | Nil = nil, code : String | Nil = nil, type : String | Nil = nil, count : Int32 | Nil = nil, capacity : Int32 | Nil = nil, map_id : String | Nil = nil, parent_id : String | Nil = nil)","location":{"filename":"src/placeos/api_wrapper/zones.cr","line_number":47,"url":null},"def":{"name":"update","args":[{"name":"id","external_name":"id","restriction":"String"},{"name":"name","default_value":"nil","external_name":"name","restriction":"String | ::Nil"},{"name":"description","default_value":"nil","external_name":"description","restriction":"String | ::Nil"},{"name":"tags","default_value":"nil","external_name":"tags","restriction":"Array(String) | ::Nil"},{"name":"settings","default_value":"nil","external_name":"settings","restriction":"Settings | ::Nil"},{"name":"triggers","default_value":"nil","external_name":"triggers","restriction":"Array(String) | ::Nil"},{"name":"display_name","default_value":"nil","external_name":"display_name","restriction":"String | ::Nil"},{"name":"location","default_value":"nil","external_name":"location","restriction":"String | ::Nil"},{"name":"code","default_value":"nil","external_name":"code","restriction":"String | ::Nil"},{"name":"type","default_value":"nil","external_name":"type","restriction":"String | ::Nil"},{"name":"count","default_value":"nil","external_name":"count","restriction":"Int32 | ::Nil"},{"name":"capacity","default_value":"nil","external_name":"capacity","restriction":"Int32 | ::Nil"},{"name":"map_id","default_value":"nil","external_name":"map_id","restriction":"String | ::Nil"},{"name":"parent_id","default_value":"nil","external_name":"parent_id","restriction":"String | ::Nil"}],"visibility":"Public","body":"put(\"#{base}/#{id}\", body: from_args, as: API::Models::Zone)"}}]}]}]}]}]}}) \ No newline at end of file