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

56 lines
No EOL
1.5 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('CLUSTER', {anyAttribs :: anyAttribs(),
'ID' :: integer(),
'NAME' :: string(),
'HOSTS' :: 'CLUSTER/HOSTS'(),
'DATASTORES' :: 'CLUSTER/DATASTORES'(),
'VNETS' :: 'CLUSTER/VNETS'(),
'TEMPLATE' :: string()}).
-type 'CLUSTER'() :: #'CLUSTER'{}.
-record('CLUSTER/VNETS', {anyAttribs :: anyAttribs(),
'ID' :: [integer()] | undefined}).
-type 'CLUSTER/VNETS'() :: #'CLUSTER/VNETS'{}.
-record('CLUSTER/DATASTORES', {anyAttribs :: anyAttribs(),
'ID' :: [integer()] | undefined}).
-type 'CLUSTER/DATASTORES'() :: #'CLUSTER/DATASTORES'{}.
-record('CLUSTER/HOSTS', {anyAttribs :: anyAttribs(),
'ID' :: [integer()] | undefined}).
-type 'CLUSTER/HOSTS'() :: #'CLUSTER/HOSTS'{}.