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

75 lines
No EOL
2 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('VMTEMPLATE', {anyAttribs :: anyAttribs(),
'ID' :: integer(),
'UID' :: integer(),
'GID' :: integer(),
'UNAME' :: string(),
'GNAME' :: string(),
'NAME' :: string(),
'LOCK' :: 'VMTEMPLATE/LOCK'() | undefined,
'PERMISSIONS' :: 'VMTEMPLATE/PERMISSIONS'(),
'REGTIME' :: integer(),
'TEMPLATE' :: 'VMTEMPLATE/TEMPLATE'()}).
-type 'VMTEMPLATE'() :: #'VMTEMPLATE'{}.
-record('VMTEMPLATE/TEMPLATE', {anyAttribs :: anyAttribs(),
choice :: [any()] | undefined,
'VCENTER_CCR_REF' :: string() | undefined,
'VCENTER_INSTANCE_ID' :: string() | undefined,
'VCENTER_TEMPLATE_REF' :: string() | undefined,
choice1 :: [any()] | undefined}).
-type 'VMTEMPLATE/TEMPLATE'() :: #'VMTEMPLATE/TEMPLATE'{}.
-record('VMTEMPLATE/PERMISSIONS', {anyAttribs :: anyAttribs(),
'OWNER_U' :: integer(),
'OWNER_M' :: integer(),
'OWNER_A' :: integer(),
'GROUP_U' :: integer(),
'GROUP_M' :: integer(),
'GROUP_A' :: integer(),
'OTHER_U' :: integer(),
'OTHER_M' :: integer(),
'OTHER_A' :: integer()}).
-type 'VMTEMPLATE/PERMISSIONS'() :: #'VMTEMPLATE/PERMISSIONS'{}.
-record('VMTEMPLATE/LOCK', {anyAttribs :: anyAttribs(),
'LOCKED' :: integer(),
'OWNER' :: integer(),
'TIME' :: integer(),
'REQ_ID' :: integer()}).
-type 'VMTEMPLATE/LOCK'() :: #'VMTEMPLATE/LOCK'{}.