oadr3/schema
Types
pub type Anon25ddbf1f {
Anon25ddbf1f(url: String)
}
Constructors
-
Anon25ddbf1f(url: String)
pub type Anon818bb683 {
Anon818bb683(
interval_period: option.Option(IntervalPeriod),
intervals: List(Interval),
resource_name: String,
)
}
Constructors
-
Anon818bb683( interval_period: option.Option(IntervalPeriod), intervals: List(Interval), resource_name: String, )
pub type Anon85c77f13 {
Anon85c77f13(
bearer_token: option.Option(String),
callback_url: String,
objects: List(String),
operations: List(String),
)
}
Constructors
-
Anon85c77f13( bearer_token: option.Option(String), callback_url: String, objects: List(String), operations: List(String), )
pub type Anon97535fea {
Anon97535fea(client_id: String)
}
Constructors
-
Anon97535fea(client_id: String)
pub type AuthError {
AuthError(
error: String,
error_description: option.Option(String),
error_uri: option.Option(String),
)
}
Constructors
-
AuthError( error: String, error_description: option.Option(String), error_uri: option.Option(String), )
pub type AuthServerInfo {
AuthServerInfo(token_url: String)
}
Constructors
-
AuthServerInfo(token_url: String)
pub type BlResourceRequest {
BlResourceRequest(
attributes: option.Option(List(ValuesMap)),
client_id: String,
object_type: String,
resource_name: String,
targets: option.Option(List(String)),
ven_id: String,
)
}
Constructors
-
BlResourceRequest( attributes: option.Option(List(ValuesMap)), client_id: String, object_type: String, resource_name: String, targets: option.Option(List(String)), ven_id: String, )
pub type BlVenRequest {
BlVenRequest(
attributes: option.Option(List(ValuesMap)),
client_id: String,
object_type: String,
targets: option.Option(List(String)),
ven_name: String,
)
}
Constructors
-
BlVenRequest( attributes: option.Option(List(ValuesMap)), client_id: String, object_type: String, targets: option.Option(List(String)), ven_name: String, )
pub type ClientCredentialRequest {
ClientCredentialRequest(
client_id: String,
client_secret: String,
grant_type: String,
scope: option.Option(String),
)
}
Constructors
-
ClientCredentialRequest( client_id: String, client_secret: String, grant_type: String, scope: option.Option(String), )
pub type ClientCredentialResponse {
ClientCredentialResponse(
access_token: String,
expires_in: option.Option(Int),
refresh_token: option.Option(String),
scope: option.Option(String),
token_type: String,
)
}
Constructors
-
ClientCredentialResponse( access_token: String, expires_in: option.Option(Int), refresh_token: option.Option(String), scope: option.Option(String), token_type: String, )
pub type ClientName =
String
pub type Event =
#(ObjectMetadata, EventRequest)
pub type EventPayloadDescriptor {
EventPayloadDescriptor(
currency: option.Option(String),
object_type: String,
payload_type: String,
units: option.Option(String),
)
}
Constructors
-
EventPayloadDescriptor( currency: option.Option(String), object_type: String, payload_type: String, units: option.Option(String), )
pub type EventRequest {
EventRequest(
duration: option.Option(String),
event_name: option.Option(String),
interval_period: option.Option(IntervalPeriod),
intervals: option.Option(List(Interval)),
payload_descriptors: option.Option(
List(EventPayloadDescriptor),
),
priority: option.Option(Int),
program_id: String,
report_descriptors: option.Option(List(ReportDescriptor)),
targets: option.Option(List(String)),
)
}
Constructors
-
EventRequest( duration: option.Option(String), event_name: option.Option(String), interval_period: option.Option(IntervalPeriod), intervals: option.Option(List(Interval)), payload_descriptors: option.Option(List(EventPayloadDescriptor)), priority: option.Option(Int), program_id: String, report_descriptors: option.Option(List(ReportDescriptor)), targets: option.Option(List(String)), )
pub type Interval {
Interval(
id: Int,
interval_period: option.Option(IntervalPeriod),
payloads: List(ValuesMap),
)
}
Constructors
-
Interval( id: Int, interval_period: option.Option(IntervalPeriod), payloads: List(ValuesMap), )
pub type IntervalPeriod {
IntervalPeriod(
duration: option.Option(String),
randomize_start: option.Option(String),
start: option.Option(String),
)
}
Constructors
-
IntervalPeriod( duration: option.Option(String), randomize_start: option.Option(String), start: option.Option(String), )
pub type MqttNotifierAuthenticationAnonymous {
MqttNotifierAuthenticationAnonymous(method_: String)
}
Constructors
-
MqttNotifierAuthenticationAnonymous(method_: String)
pub type MqttNotifierAuthenticationCertificate {
MqttNotifierAuthenticationCertificate(
ca_cert: String,
client_cert: String,
client_key: String,
method_: String,
)
}
Constructors
-
MqttNotifierAuthenticationCertificate( ca_cert: String, client_cert: String, client_key: String, method_: String, )
pub type MqttNotifierAuthenticationOauth2BearerToken {
MqttNotifierAuthenticationOauth2BearerToken(
method_: String,
username: String,
)
}
Constructors
-
MqttNotifierAuthenticationOauth2BearerToken( method_: String, username: String, )
pub type Notification {
Notification(
object: Nil,
object_type: String,
operation: String,
targets: option.Option(List(String)),
)
}
Constructors
-
Notification( object: Nil, object_type: String, operation: String, targets: option.Option(List(String)), )
pub type NotifierOperationsTopics {
NotifierOperationsTopics(
all: option.Option(String),
create: option.Option(String),
delete: String,
update: String,
)
}
Constructors
-
NotifierOperationsTopics( all: option.Option(String), create: option.Option(String), delete: String, update: String, )
pub type NotifierTopicsResponse {
NotifierTopicsResponse(topics: NotifierOperationsTopics)
}
Constructors
-
NotifierTopicsResponse(topics: NotifierOperationsTopics)
pub type NotifiersResponse {
NotifiersResponse(
mqtt: option.Option(MqttNotifierBindingObject),
webhook: Bool,
)
}
Constructors
-
NotifiersResponse( mqtt: option.Option(MqttNotifierBindingObject), webhook: Bool, )
pub type ObjectMetadata {
ObjectMetadata(
created_date_time: String,
id: String,
modification_date_time: String,
object_type: String,
)
}
Constructors
-
ObjectMetadata( created_date_time: String, id: String, modification_date_time: String, object_type: String, )
pub type ObjectTypes =
String
pub type Problem {
Problem(
detail: option.Option(String),
instance: option.Option(String),
status: option.Option(Int),
title: option.Option(String),
type_: option.Option(String),
)
}
Constructors
-
Problem( detail: option.Option(String), instance: option.Option(String), status: option.Option(Int), title: option.Option(String), type_: option.Option(String), )
pub type Program =
#(ObjectMetadata, ProgramRequest)
pub type ProgramRequest {
ProgramRequest(
attributes: option.Option(List(ValuesMap)),
interval_period: option.Option(IntervalPeriod),
payload_descriptors: option.Option(List(utils.Any)),
program_descriptions: option.Option(List(Anon25ddbf1f)),
program_name: String,
targets: option.Option(List(String)),
)
}
Constructors
-
ProgramRequest( attributes: option.Option(List(ValuesMap)), interval_period: option.Option(IntervalPeriod), payload_descriptors: option.Option(List(utils.Any)), program_descriptions: option.Option(List(Anon25ddbf1f)), program_name: String, targets: option.Option(List(String)), )
pub type ReadingType =
String
pub type Report =
#(ObjectMetadata, ReportRequest, Anon97535fea)
pub type ReportDescriptor {
ReportDescriptor(
aggregate: option.Option(Bool),
frequency: option.Option(Int),
historical: option.Option(Bool),
num_intervals: option.Option(Int),
payload_type: String,
reading_type: option.Option(String),
repeat: option.Option(Int),
report_intervals: option.Option(String),
start_interval: option.Option(Int),
targets: option.Option(List(String)),
units: option.Option(String),
)
}
Constructors
-
ReportDescriptor( aggregate: option.Option(Bool), frequency: option.Option(Int), historical: option.Option(Bool), num_intervals: option.Option(Int), payload_type: String, reading_type: option.Option(String), repeat: option.Option(Int), report_intervals: option.Option(String), start_interval: option.Option(Int), targets: option.Option(List(String)), units: option.Option(String), )
pub type ReportPayloadDescriptor {
ReportPayloadDescriptor(
accuracy: option.Option(Float),
confidence: option.Option(Int),
object_type: String,
payload_type: String,
reading_type: option.Option(String),
units: option.Option(String),
)
}
Constructors
-
ReportPayloadDescriptor( accuracy: option.Option(Float), confidence: option.Option(Int), object_type: String, payload_type: String, reading_type: option.Option(String), units: option.Option(String), )
pub type ReportRequest {
ReportRequest(
client_name: String,
event_id: String,
payload_descriptors: option.Option(
List(ReportPayloadDescriptor),
),
report_name: option.Option(String),
resources: List(Anon818bb683),
)
}
Constructors
-
ReportRequest( client_name: String, event_id: String, payload_descriptors: option.Option( List(ReportPayloadDescriptor), ), report_name: option.Option(String), resources: List(Anon818bb683), )
pub type Resource =
#(ObjectMetadata, BlResourceRequest)
pub type ResourceName =
String
pub type ResourceRequest =
utils.Any
pub type Subscription =
#(ObjectMetadata, SubscriptionRequest, Anon97535fea)
pub type SubscriptionRequest {
SubscriptionRequest(
client_name: String,
object_operations: List(Anon85c77f13),
program_id: option.Option(String),
targets: option.Option(List(String)),
)
}
Constructors
-
SubscriptionRequest( client_name: String, object_operations: List(Anon85c77f13), program_id: option.Option(String), targets: option.Option(List(String)), )
pub type Ven =
#(ObjectMetadata, BlVenRequest)
pub type VenRequest =
utils.Any
pub type VenResourceRequest {
VenResourceRequest(
attributes: option.Option(List(ValuesMap)),
object_type: String,
resource_name: String,
ven_id: String,
)
}
Constructors
-
VenResourceRequest( attributes: option.Option(List(ValuesMap)), object_type: String, resource_name: String, ven_id: String, )
pub type VenVenRequest {
VenVenRequest(
attributes: option.Option(List(ValuesMap)),
object_type: String,
ven_name: String,
)
}
Constructors
-
VenVenRequest( attributes: option.Option(List(ValuesMap)), object_type: String, ven_name: String, )
Values
pub fn anon_25ddbf1f_decoder() -> decode.Decoder(Anon25ddbf1f)
pub fn anon_25ddbf1f_encode(data: Anon25ddbf1f) -> json.Json
pub fn anon_818bb683_decoder() -> decode.Decoder(Anon818bb683)
pub fn anon_818bb683_encode(data: Anon818bb683) -> json.Json
pub fn anon_85c77f13_decoder() -> decode.Decoder(Anon85c77f13)
pub fn anon_85c77f13_encode(data: Anon85c77f13) -> json.Json
pub fn anon_97535fea_decoder() -> decode.Decoder(Anon97535fea)
pub fn anon_97535fea_encode(data: Anon97535fea) -> json.Json
pub fn auth_error_decoder() -> decode.Decoder(AuthError)
pub fn auth_server_info_decoder() -> decode.Decoder(
AuthServerInfo,
)
pub fn auth_server_info_encode(data: AuthServerInfo) -> json.Json
pub fn bl_resource_request_decoder() -> decode.Decoder(
BlResourceRequest,
)
pub fn bl_resource_request_encode(
data: BlResourceRequest,
) -> json.Json
pub fn bl_ven_request_decoder() -> decode.Decoder(BlVenRequest)
pub fn bl_ven_request_encode(data: BlVenRequest) -> json.Json
pub fn client_credential_request_decoder() -> decode.Decoder(
ClientCredentialRequest,
)
pub fn client_credential_request_encode(
data: ClientCredentialRequest,
) -> json.Json
pub fn client_credential_response_decoder() -> decode.Decoder(
ClientCredentialResponse,
)
pub fn client_credential_response_encode(
data: ClientCredentialResponse,
) -> json.Json
pub fn client_id_decoder() -> decode.Decoder(String)
pub fn client_id_encode(data: String) -> json.Json
pub fn client_name_decoder() -> decode.Decoder(String)
pub fn client_name_encode(data: String) -> json.Json
pub fn date_time_decoder() -> decode.Decoder(String)
pub fn date_time_encode(data: String) -> json.Json
pub fn duration_decoder() -> decode.Decoder(String)
pub fn duration_encode(data: String) -> json.Json
pub fn event_decoder() -> decode.Decoder(
#(ObjectMetadata, EventRequest),
)
pub fn event_encode(
data: #(ObjectMetadata, EventRequest),
) -> json.Json
pub fn event_payload_descriptor_decoder() -> decode.Decoder(
EventPayloadDescriptor,
)
pub fn event_payload_descriptor_encode(
data: EventPayloadDescriptor,
) -> json.Json
pub fn event_request_decoder() -> decode.Decoder(EventRequest)
pub fn event_request_encode(data: EventRequest) -> json.Json
pub fn interval_decoder() -> decode.Decoder(Interval)
pub fn interval_period_decoder() -> decode.Decoder(IntervalPeriod)
pub fn interval_period_encode(data: IntervalPeriod) -> json.Json
pub fn mqtt_notifier_authentication_anonymous_decoder() -> decode.Decoder(
MqttNotifierAuthenticationAnonymous,
)
pub fn mqtt_notifier_authentication_anonymous_encode(
data: MqttNotifierAuthenticationAnonymous,
) -> json.Json
pub fn mqtt_notifier_authentication_certificate_decoder() -> decode.Decoder(
MqttNotifierAuthenticationCertificate,
)
pub fn mqtt_notifier_authentication_certificate_encode(
data: MqttNotifierAuthenticationCertificate,
) -> json.Json
pub fn mqtt_notifier_authentication_oauth2_bearer_token_decoder() -> decode.Decoder(
MqttNotifierAuthenticationOauth2BearerToken,
)
pub fn mqtt_notifier_authentication_oauth2_bearer_token_encode(
data: MqttNotifierAuthenticationOauth2BearerToken,
) -> json.Json
pub fn mqtt_notifier_binding_object_decoder() -> decode.Decoder(
MqttNotifierBindingObject,
)
pub fn mqtt_notifier_binding_object_encode(
data: MqttNotifierBindingObject,
) -> json.Json
pub fn notification_decoder() -> decode.Decoder(Notification)
pub fn notification_encode(data: Notification) -> json.Json
pub fn notifier_operations_topics_decoder() -> decode.Decoder(
NotifierOperationsTopics,
)
pub fn notifier_operations_topics_encode(
data: NotifierOperationsTopics,
) -> json.Json
pub fn notifier_topics_response_decoder() -> decode.Decoder(
NotifierTopicsResponse,
)
pub fn notifier_topics_response_encode(
data: NotifierTopicsResponse,
) -> json.Json
pub fn notifiers_response_decoder() -> decode.Decoder(
NotifiersResponse,
)
pub fn notifiers_response_encode(
data: NotifiersResponse,
) -> json.Json
pub fn object_id_decoder() -> decode.Decoder(String)
pub fn object_id_encode(data: String) -> json.Json
pub fn object_metadata_decoder() -> decode.Decoder(ObjectMetadata)
pub fn object_metadata_encode(data: ObjectMetadata) -> json.Json
pub fn object_types_decoder() -> decode.Decoder(String)
pub fn object_types_encode(data: String) -> json.Json
pub fn point_decoder() -> decode.Decoder(Point)
pub fn problem_decoder() -> decode.Decoder(Problem)
pub fn program_decoder() -> decode.Decoder(
#(ObjectMetadata, ProgramRequest),
)
pub fn program_encode(
data: #(ObjectMetadata, ProgramRequest),
) -> json.Json
pub fn program_request_decoder() -> decode.Decoder(ProgramRequest)
pub fn program_request_encode(data: ProgramRequest) -> json.Json
pub fn reading_type_decoder() -> decode.Decoder(String)
pub fn reading_type_encode(data: String) -> json.Json
pub fn report_decoder() -> decode.Decoder(
#(ObjectMetadata, ReportRequest, Anon97535fea),
)
pub fn report_descriptor_decoder() -> decode.Decoder(
ReportDescriptor,
)
pub fn report_descriptor_encode(
data: ReportDescriptor,
) -> json.Json
pub fn report_encode(
data: #(ObjectMetadata, ReportRequest, Anon97535fea),
) -> json.Json
pub fn report_payload_descriptor_decoder() -> decode.Decoder(
ReportPayloadDescriptor,
)
pub fn report_payload_descriptor_encode(
data: ReportPayloadDescriptor,
) -> json.Json
pub fn report_request_decoder() -> decode.Decoder(ReportRequest)
pub fn report_request_encode(data: ReportRequest) -> json.Json
pub fn resource_decoder() -> decode.Decoder(
#(ObjectMetadata, BlResourceRequest),
)
pub fn resource_encode(
data: #(ObjectMetadata, BlResourceRequest),
) -> json.Json
pub fn resource_name_decoder() -> decode.Decoder(String)
pub fn resource_name_encode(data: String) -> json.Json
pub fn resource_request_decoder() -> decode.Decoder(utils.Any)
pub fn subscription_decoder() -> decode.Decoder(
#(ObjectMetadata, SubscriptionRequest, Anon97535fea),
)
pub fn subscription_encode(
data: #(ObjectMetadata, SubscriptionRequest, Anon97535fea),
) -> json.Json
pub fn subscription_request_decoder() -> decode.Decoder(
SubscriptionRequest,
)
pub fn subscription_request_encode(
data: SubscriptionRequest,
) -> json.Json
pub fn target_decoder() -> decode.Decoder(String)
pub fn target_encode(data: String) -> json.Json
pub fn units_decoder() -> decode.Decoder(String)
pub fn units_encode(data: String) -> json.Json
pub fn values_map_decoder() -> decode.Decoder(ValuesMap)
pub fn ven_decoder() -> decode.Decoder(
#(ObjectMetadata, BlVenRequest),
)
pub fn ven_encode(
data: #(ObjectMetadata, BlVenRequest),
) -> json.Json
pub fn ven_name_decoder() -> decode.Decoder(String)
pub fn ven_name_encode(data: String) -> json.Json
pub fn ven_request_decoder() -> decode.Decoder(utils.Any)
pub fn ven_resource_request_decoder() -> decode.Decoder(
VenResourceRequest,
)
pub fn ven_resource_request_encode(
data: VenResourceRequest,
) -> json.Json
pub fn ven_ven_request_decoder() -> decode.Decoder(VenVenRequest)
pub fn ven_ven_request_encode(data: VenVenRequest) -> json.Json