class PlaceOS::Model::SignageAIProvider

Overview

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.

Included Modules

Defined in:

placeos-models/signage_ai_provider.cr

Constant Summary

CALLBACKS = {before_save: [do if (__temp_1599 = @authority) && __temp_1599.new_record? __temp_1599.save self.authority_id = __temp_1599.id.not_nil! end end, do self.credentials = PlaceOS::Encryption.encrypt(credentials, level: level, id: encryption_id) end] of Nil, after_save: [] of Nil, before_create: [do self.created_at = self.updated_at = Time.utc end] of Nil, after_create: [] of Nil, before_update: [do self.updated_at = Time.utc end] of Nil, after_update: [] of Nil, before_destroy: [] of Nil, after_destroy: [do end] of Nil}

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.

Log = ::Log.for(self)
PRIMARY_KEY_TYPES = {:id => UUID} of Nil => Nil

macro level key => type

PRIMARY_KEYS = [{:id}]

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.from_json(string_or_io : String | IO, trusted : Bool = false) : self #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def self.from_json(string_or_io : String | IO, root : String, trusted : Bool = false) : self #

Deserializes the given JSON in string_or_io into an instance of self, assuming the JSON consists of an JSON object with key root, and whose value is the value to deserialize. Will not deserialise from fields with mass_assign: false

class User < ActiveModel::Model
  attribute name : String
  attribute google_id : UUID, mass_assign: false
end

User.from_json(%({"main": {"name": "Jason", "google_id": "f6f70bfb-c882-446d-8758-7ce47db39620"}}), root: "main") # => #<User:0x103131b20 @name="Jason">

def self.from_trusted_json(string_or_io : String | IO, root : String) : self #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def self.from_trusted_json(string_or_io : String | IO) : self #

Serialize from a trusted JSON source


def self.from_trusted_yaml(string_or_io : String | IO) : self #

Serialize from a trusted YAML source


def self.from_yaml(string_or_io : String | IO, trusted : Bool = false) : self #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


[View source]
def self.new(pull : JSON::PullParser) #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


[View source]
def self.new(rs : DB::ResultSet) #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def self.new(created_at : Time | ActiveModel::Model::None = ::ActiveModel::Model::None.new, updated_at : Time | ActiveModel::Model::None = ::ActiveModel::Model::None.new, id : UUID | ActiveModel::Model::None = ::ActiveModel::Model::None.new, name : String | ActiveModel::Model::None = ::ActiveModel::Model::None.new, provider : PlaceOS::Model::SignageAIProvider::Provider | ActiveModel::Model::None = ::ActiveModel::Model::None.new, authority_id : String | Nil | ActiveModel::Model::None = ::ActiveModel::Model::None.new, credentials : String | ActiveModel::Model::None = ::ActiveModel::Model::None.new, endpoint : String | Nil | ActiveModel::Model::None = ::ActiveModel::Model::None.new, location : String | Nil | ActiveModel::Model::None = ::ActiveModel::Model::None.new, default_model : String | Nil | ActiveModel::Model::None = ::ActiveModel::Model::None.new, text_model : String | Nil | ActiveModel::Model::None = ::ActiveModel::Model::None.new, allowed_models : Array(String) | ActiveModel::Model::None = ::ActiveModel::Model::None.new, enabled : Bool | ActiveModel::Model::None = ::ActiveModel::Model::None.new, is_default : Bool | ActiveModel::Model::None = ::ActiveModel::Model::None.new, quotas : JSON::Any | ActiveModel::Model::None = ::ActiveModel::Model::None.new) #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def self.new(params : HTTP::Params | Hash(String, String) | Tuple(String, String)) #

Initialize PlaceOS::Model::SignageAIProvider from HTTP::Params.


Class Method Detail

def self.attributes : Array(Symbol) #

Returns all attribute keys.


def self.available_for(authority_id : String | Nil) : Array(SignageAIProvider) #

Rows a domain may use: its own, plus the shared fallback.


[View source]
def self.by_authority_id(id) #

[View source]
def self.changefeed_ignored_update_columns : Array(String) | Nil #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def self.changes(id : UUID | Nil = nil) : ChangeFeed #

Changefeed at row (if #id passed) or whole table level. Returns a ChangeFeed instance which can be used to invoke async callbacks via on or use blocking Iterator via each method.


def self.default_for(authority_id : String | Nil) : SignageAIProvider | Nil #

The provider used for a domain: its own default, then its own first enabled row, then the shared fallback.


[View source]
def self.elastic #

def self.from_rs(__temp_2687 : DB::ResultSet) #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def self.on_error(err : Exception | IO::Error) #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def self.primary_key #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


[View source]
def self.table_name #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


Instance Method Detail

def after_create #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def after_destroy #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def after_initialize(trusted : Bool) #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def after_save #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def after_update #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def allowed_models : Array(String) #

def allowed_models=(value : Array(String)) #

def allowed_models? : Array(String) | Nil #

NOTE use getter / getter! (not property / property!) so that the setter defined later in __create_initializer__ is the only setter on the field. Crystal's overload resolution silently fails to replace a property-defined setter with one of identical signature for generic types (e.g. Set(String)?, Array(String)?, String | Array(String)), although it does work for non-generic ones like String?. Defining the setter only once via __create_initializer__ ensures change tracking, sanitization, and custom setter blocks run uniformly across all types.


def allowed_models_assigned? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def allowed_models_change : Tuple(Array(String) | Nil, Array(String) | Nil) | Nil #

Returns a Tuple of the previous and the current value of an instance variable if it has changed


def allowed_models_changed? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def allowed_models_default : Array(String) #

#allowed_models's default value


[View source]
def allowed_models_present? : Bool #

def allowed_models_removed? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def allowed_models_was : Array(String) | Nil #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def allowed_models_will_change! : Nil #

Include #allowed_models in the set of changed attributes, whether it has changed or not.


def apply_defaults #

Generate code to apply default values


def as_json #

Rendered by the API in place of to_json: the same row without credentials.


[View source]
def assign_attributes(created_at : Time | Missing = Missing, updated_at : Time | Missing = Missing, id : UUID | Missing = Missing, name : String | Missing = Missing, provider : PlaceOS::Model::SignageAIProvider::Provider | Missing = Missing, authority_id : String | Nil | Missing = Missing, credentials : String | Missing = Missing, endpoint : String | Nil | Missing = Missing, location : String | Nil | Missing = Missing, default_model : String | Nil | Missing = Missing, text_model : String | Nil | Missing = Missing, allowed_models : Array(String) | Missing = Missing, enabled : Bool | Missing = Missing, is_default : Bool | Missing = Missing, quotas : JSON::Any | Missing = Missing) #

Assign to multiple attributes.


def assign_attributes(params : HTTP::Params | Hash(String, String) | Tuple(String, String)) #

Assign to multiple attributes via HTTP::Params.


def assign_attributes(model : PlaceOS::Model::SignageAIProvider) #

Assign to multiple attributes from a model object


def assign_attributes_from_json(json, root : String) #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def assign_attributes_from_json(json) #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def assign_attributes_from_trusted_json(json, root : String) #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def assign_attributes_from_trusted_json(json) #

Assign each field from JSON if field exists in JSON and has changed in model


def assign_attributes_from_trusted_yaml(yaml) #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def assign_attributes_from_yaml(yaml) #

Uses the YAML parser as JSON is valid YAML


def attributes #

Returns a Hash of all attribute values


def attributes_json(io : IO) : Nil #

Serialize attributes to JSON, without any other properties to_json may include, as .from_json expects them.

Values are serialized as in to_json, applying any attribute converters.


def attributes_json(json : JSON::Builder) : Nil #

Serialize attributes to JSON, without any other properties to_json may include, as .from_json expects them.

Values are serialized as in to_json, applying any attribute converters.


def attributes_json : String #

Serialize attributes to JSON, without any other properties to_json may include, as .from_json expects them.

Values are serialized as in to_json, applying any attribute converters.


def attributes_tuple #

Returns a NamedTuple of all attribute values.


def authority : PlaceOS::Model::Authority #

[View source]
def authority! : PlaceOS::Model::Authority #

[View source]

[View source]
def authority? : PlaceOS::Model::Authority | Nil #

[View source]
def authority_id : String | Nil #

#authority_id getter


def authority_id=(value : String | Nil) #

#authority_id setter


def authority_id_assigned? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def authority_id_change : Tuple(String | Nil | Nil, String | Nil | Nil) | Nil #

Returns a Tuple of the previous and the current value of an instance variable if it has changed


def authority_id_changed? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def authority_id_default : String | Nil #

#authority_id's default value


[View source]
def authority_id_present? : Bool #

def authority_id_removed? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def authority_id_was : String | Nil | Nil #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def authority_id_will_change! : Nil #

Include #authority_id in the set of changed attributes, whether it has changed or not.


def before_create #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def before_destroy #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def before_save #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def before_update #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def build_authority(**attributes) : PlaceOS::Model::Authority #

[View source]
def changed? #

Check if any attributes have changed.


def changed_attributes #

Returns a Hash with all changed attributes.


def changed_json(io : IO) : Nil #

Serialize the set of changed attributes to JSON.


def changed_json : String #

Serialize the set of changed attributes to JSON.


def changed_persist_attributes #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def changed_yaml(io : IO) : Nil #

Serialize the set of changed attributes to YAML.


def changed_yaml : String #

Serialize the set of changed attributes to YAML.


def changes #

Returns a Hash of changed attributes, mapping each to a {previous, current} tuple.


def changes_json(io : IO) : Nil #

Serialize changed attributes to JSON as {"attribute": [previous, current]}.

Values are serialized as in to_json, applying any attribute converters.


def changes_json(json : JSON::Builder) : Nil #

Serialize changed attributes to JSON as {"attribute": [previous, current]}.

Values are serialized as in to_json, applying any attribute converters.


def changes_json : String #

Serialize changed attributes to JSON as {"attribute": [previous, current]}.

Values are serialized as in to_json, applying any attribute converters.


def clear_changes_information #

Reset changes for all attributes.


def create_authority(**attributes) : PlaceOS::Model::Authority #

[View source]
def create_authority!(**attributes) : PlaceOS::Model::Authority #

[View source]
def created_at : Time #

#created_at getter


def created_at=(value : Time) #

Setters #created_at setter


def created_at? : Time | Nil #

NOTE use getter / getter! (not property / property!) so that the setter defined later in __create_initializer__ is the only setter on the field. Crystal's overload resolution silently fails to replace a property-defined setter with one of identical signature for generic types (e.g. Set(String)?, Array(String)?, String | Array(String)), although it does work for non-generic ones like String?. Defining the setter only once via __create_initializer__ ensures change tracking, sanitization, and custom setter blocks run uniformly across all types.


def created_at_assigned? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def created_at_change : Tuple(Time | Nil, Time | Nil) | Nil #

Returns a Tuple of the previous and the current value of an instance variable if it has changed


def created_at_changed? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def created_at_default : Time #

#created_at's default value


def created_at_present? : Bool #

def created_at_removed? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def created_at_was : Time | Nil #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def created_at_will_change! : Nil #

Include #created_at in the set of changed attributes, whether it has changed or not.


def credentials : String #

#credentials getter


def credentials=(value : String) #

#credentials setter


def credentials? : String | Nil #

NOTE use getter / getter! (not property / property!) so that the setter defined later in __create_initializer__ is the only setter on the field. Crystal's overload resolution silently fails to replace a property-defined setter with one of identical signature for generic types (e.g. Set(String)?, Array(String)?, String | Array(String)), although it does work for non-generic ones like String?. Defining the setter only once via __create_initializer__ ensures change tracking, sanitization, and custom setter blocks run uniformly across all types.


def credentials_assigned? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def credentials_change : Tuple(String | Nil, String | Nil) | Nil #

Returns a Tuple of the previous and the current value of an instance variable if it has changed


def credentials_changed? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def credentials_default : String #

#credentials's default value


[View source]
def credentials_encrypted? : Bool #

[View source]
def credentials_json : Hash(String, JSON::Any) #

Parsed credentials. Raises Model::Error when the stored value is not an object, which is what a wrong PLACE_SERVER_SECRET looks like from here.


[View source]
def credentials_json=(value : Hash(String, JSON::Any) | JSON::Any) #

[View source]
def credentials_present? : Bool #

encrypted JSON object, see #credentials_json


def credentials_removed? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def credentials_was : String | Nil #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def credentials_will_change! : Nil #

Include #credentials in the set of changed attributes, whether it has changed or not.


def decrypt_credentials : String #

[View source]
def default_model : String | Nil #

def default_model=(value : String | Nil) #

def default_model_assigned? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def default_model_change : Tuple(String | Nil | Nil, String | Nil | Nil) | Nil #

Returns a Tuple of the previous and the current value of an instance variable if it has changed


def default_model_changed? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def default_model_default : String | Nil #

#default_model's default value


[View source]
def default_model_present? : Bool #

def default_model_removed? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def default_model_was : String | Nil | Nil #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def default_model_will_change! : Nil #

Include #default_model in the set of changed attributes, whether it has changed or not.


def enabled : Bool #

#enabled getter


def enabled=(value : Bool) #

#enabled setter


def enabled? : Bool | Nil #

NOTE use getter / getter! (not property / property!) so that the setter defined later in __create_initializer__ is the only setter on the field. Crystal's overload resolution silently fails to replace a property-defined setter with one of identical signature for generic types (e.g. Set(String)?, Array(String)?, String | Array(String)), although it does work for non-generic ones like String?. Defining the setter only once via __create_initializer__ ensures change tracking, sanitization, and custom setter blocks run uniformly across all types.


def enabled_assigned? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def enabled_change : Tuple(Bool | Nil, Bool | Nil) | Nil #

Returns a Tuple of the previous and the current value of an instance variable if it has changed


def enabled_changed? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def enabled_default : Bool #

#enabled's default value


[View source]
def enabled_present? : Bool #

def enabled_removed? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def enabled_was : Bool | Nil #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def enabled_will_change! : Nil #

Include #enabled in the set of changed attributes, whether it has changed or not.


def endpoint : String | Nil #

#endpoint getter


def endpoint=(value : String | Nil) #

#endpoint setter


def endpoint_assigned? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def endpoint_change : Tuple(String | Nil | Nil, String | Nil | Nil) | Nil #

Returns a Tuple of the previous and the current value of an instance variable if it has changed


def endpoint_changed? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def endpoint_default : String | Nil #

#endpoint's default value


[View source]
def endpoint_present? : Bool #

optional overrides. #endpoint also lets a deployment point at a gateway or, locally, at a stub vendor.


def endpoint_removed? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def endpoint_was : String | Nil | Nil #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def endpoint_will_change! : Nil #

Include #endpoint in the set of changed attributes, whether it has changed or not.


def id : UUID #

#id getter


def id=(value : UUID) #

#id setter


def id? #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def id_assigned? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def id_change : Tuple(UUID | Nil, UUID | Nil) | Nil #

Returns a Tuple of the previous and the current value of an instance variable if it has changed


def id_changed? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def id_default : UUID #

#id's default value


def id_present? : Bool #

def id_removed? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def id_was : UUID | Nil #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def id_will_change! : Nil #

Include #id in the set of changed attributes, whether it has changed or not.


def invoke_props #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def is_default : Bool #

#is_default getter


def is_default=(value : Bool) #

#is_default setter


def is_default? : Bool | Nil #

NOTE use getter / getter! (not property / property!) so that the setter defined later in __create_initializer__ is the only setter on the field. Crystal's overload resolution silently fails to replace a property-defined setter with one of identical signature for generic types (e.g. Set(String)?, Array(String)?, String | Array(String)), although it does work for non-generic ones like String?. Defining the setter only once via __create_initializer__ ensures change tracking, sanitization, and custom setter blocks run uniformly across all types.


def is_default_assigned? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def is_default_change : Tuple(Bool | Nil, Bool | Nil) | Nil #

Returns a Tuple of the previous and the current value of an instance variable if it has changed


def is_default_changed? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def is_default_default : Bool #

#is_default's default value


[View source]
def is_default_present? : Bool #

def is_default_removed? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def is_default_was : Bool | Nil #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def is_default_will_change! : Nil #

Include #is_default in the set of changed attributes, whether it has changed or not.


def location : String | Nil #

#location getter


def location=(value : String | Nil) #

#location setter


def location_assigned? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def location_change : Tuple(String | Nil | Nil, String | Nil | Nil) | Nil #

Returns a Tuple of the previous and the current value of an instance variable if it has changed


def location_changed? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def location_default : String | Nil #

#location's default value


[View source]
def location_present? : Bool #

def location_removed? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def location_was : String | Nil | Nil #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def location_will_change! : Nil #

Include #location in the set of changed attributes, whether it has changed or not.


def name : String #

#name getter


def name=(value : String) #

#name setter


def name? : String | Nil #

NOTE use getter / getter! (not property / property!) so that the setter defined later in __create_initializer__ is the only setter on the field. Crystal's overload resolution silently fails to replace a property-defined setter with one of identical signature for generic types (e.g. Set(String)?, Array(String)?, String | Array(String)), although it does work for non-generic ones like String?. Defining the setter only once via __create_initializer__ ensures change tracking, sanitization, and custom setter blocks run uniformly across all types.


def name_assigned? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def name_change : Tuple(String | Nil, String | Nil) | Nil #

Returns a Tuple of the previous and the current value of an instance variable if it has changed


def name_changed? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def name_default : String #

#name's default value


[View source]
def name_present? : Bool #

def name_removed? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def name_was : String | Nil #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def name_will_change! : Nil #

Include #name in the set of changed attributes, whether it has changed or not.


def persistent_attributes #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def primary_key #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


[View source]
def primary_key_hash #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


#provider getter


#provider setter


NOTE use getter / getter! (not property / property!) so that the setter defined later in __create_initializer__ is the only setter on the field. Crystal's overload resolution silently fails to replace a property-defined setter with one of identical signature for generic types (e.g. Set(String)?, Array(String)?, String | Array(String)), although it does work for non-generic ones like String?. Defining the setter only once via __create_initializer__ ensures change tracking, sanitization, and custom setter blocks run uniformly across all types.


def provider_assigned? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


Returns a Tuple of the previous and the current value of an instance variable if it has changed


def provider_changed? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def provider_default : Provider #

#provider's default value


[View source]
def provider_present? : Bool #

def provider_removed? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def provider_will_change! : Nil #

Include #provider in the set of changed attributes, whether it has changed or not.


def quota(key : String) : Int32 | Nil #

[View source]
def quotas : JSON::Any #

#quotas getter


def quotas=(value : JSON::Any) #

#quotas setter


def quotas? : JSON::Any | Nil #

NOTE use getter / getter! (not property / property!) so that the setter defined later in __create_initializer__ is the only setter on the field. Crystal's overload resolution silently fails to replace a property-defined setter with one of identical signature for generic types (e.g. Set(String)?, Array(String)?, String | Array(String)), although it does work for non-generic ones like String?. Defining the setter only once via __create_initializer__ ensures change tracking, sanitization, and custom setter blocks run uniformly across all types.


def quotas_assigned? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def quotas_change : Tuple(JSON::Any | Nil, JSON::Any | Nil) | Nil #

Returns a Tuple of the previous and the current value of an instance variable if it has changed


def quotas_changed? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def quotas_default : JSON::Any #

#quotas's default value


[View source]
def quotas_present? : Bool #

{"user_per_day": 60, "domain_per_month": 2000, "map_user_per_day": 40, "map_domain_per_month": 1000}


def quotas_removed? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def quotas_was : JSON::Any | Nil #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def quotas_will_change! : Nil #

Include #quotas in the set of changed attributes, whether it has changed or not.


def reload_authority : PlaceOS::Model::Authority #

[View source]
def reload_authority? : PlaceOS::Model::Authority | Nil #

[View source]
def restore_attributes #

Reset each attribute to their previous values and clears all changes.


def table_name #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def text_model : String | Nil #

#text_model getter


def text_model=(value : String | Nil) #

#text_model setter


def text_model_assigned? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def text_model_change : Tuple(String | Nil | Nil, String | Nil | Nil) | Nil #

Returns a Tuple of the previous and the current value of an instance variable if it has changed


def text_model_changed? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def text_model_default : String | Nil #

#text_model's default value


[View source]
def text_model_present? : Bool #

the text/vision model used for map editing, nil for the adapter's default


def text_model_removed? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def text_model_was : String | Nil | Nil #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def text_model_will_change! : Nil #

Include #text_model in the set of changed attributes, whether it has changed or not.


def updated_at : Time #

#updated_at getter


def updated_at=(value : Time) #

#updated_at setter


def updated_at? : Time | Nil #

NOTE use getter / getter! (not property / property!) so that the setter defined later in __create_initializer__ is the only setter on the field. Crystal's overload resolution silently fails to replace a property-defined setter with one of identical signature for generic types (e.g. Set(String)?, Array(String)?, String | Array(String)), although it does work for non-generic ones like String?. Defining the setter only once via __create_initializer__ ensures change tracking, sanitization, and custom setter blocks run uniformly across all types.


def updated_at_assigned? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def updated_at_change : Tuple(Time | Nil, Time | Nil) | Nil #

Returns a Tuple of the previous and the current value of an instance variable if it has changed


def updated_at_changed? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def updated_at_default : Time #

#updated_at's default value


def updated_at_present? : Bool #

def updated_at_removed? : Bool #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def updated_at_was : Time | Nil #

Vendor credentials used to generate or edit signage artwork and to edit maps.

A row with a nil authority_id is the shared fallback, the same arrangement Storage uses. Credentials are a JSON object whose shape depends on the provider, encrypted at rest and never rendered by the API.


def updated_at_will_change! : Nil #

Include #updated_at in the set of changed attributes, whether it has changed or not.


def validate_nilability #

Validate that all non-nillable fields have values.