meta/priv/opennebula/5.12/xsd-records/zone.hrl
2021-02-11 14:34:40 +01:00

62 lines
No EOL
1.7 KiB
Erlang

%% HRL file generated by ERLSOM
%%
%% It is possible (and in some cases necessary) to change the name of
%% the record fields.
%%
%% It is possible to add default values, but be aware that these will
%% only be used when *writing* an xml document.
-ifndef(ERLSOM_ANY_ATTRIB_TYPES).
-define(ERLSOM_ANY_ATTRIB_TYPES, true).
-type anyAttrib() :: {{string(), %% name of the attribute
string()}, %% namespace
string()}. %% value
-type anyAttribs() :: [anyAttrib()] | undefined.
-endif.
-ifndef(ERLSOM_QNAME_TYPES).
-define(ERLSOM_QNAME_TYPES, true).
%% xsd:QName values are translated to #qname{} records.
-record(qname, {uri :: string(),
localPart :: string(),
prefix :: string(),
mappedPrefix :: string()}).
-endif.
-record('ZONE', {anyAttribs :: anyAttribs(),
'ID' :: integer(),
'NAME' :: string(),
'TEMPLATE' :: 'ZONE/TEMPLATE'(),
'SERVER_POOL' :: 'ZONE/SERVER_POOL'()}).
-type 'ZONE'() :: #'ZONE'{}.
-record('ZONE/SERVER_POOL', {anyAttribs :: anyAttribs(),
'SERVER' :: ['ZONE/SERVER_POOL/SERVER'()] | undefined}).
-type 'ZONE/SERVER_POOL'() :: #'ZONE/SERVER_POOL'{}.
-record('ZONE/SERVER_POOL/SERVER', {anyAttribs :: anyAttribs(),
'ENDPOINT' :: string(),
'ID' :: integer(),
'NAME' :: string(),
'STATE' :: integer() | undefined,
'TERM' :: integer() | undefined,
'VOTEDFOR' :: integer() | undefined,
'COMMIT' :: integer() | undefined,
'LOG_INDEX' :: integer() | undefined,
'FEDLOG_INDEX' :: integer() | undefined}).
-type 'ZONE/SERVER_POOL/SERVER'() :: #'ZONE/SERVER_POOL/SERVER'{}.
-record('ZONE/TEMPLATE', {anyAttribs :: anyAttribs(),
'ENDPOINT' :: string()}).
-type 'ZONE/TEMPLATE'() :: #'ZONE/TEMPLATE'{}.