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

81 lines
No EOL
2.1 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('VM_GROUP', {anyAttribs :: anyAttribs(),
'ID' :: integer(),
'UID' :: integer(),
'GID' :: integer(),
'UNAME' :: string(),
'GNAME' :: string(),
'NAME' :: string(),
'PERMISSIONS' :: 'VM_GROUP/PERMISSIONS'() | undefined,
'LOCK' :: 'VM_GROUP/LOCK'() | undefined,
'ROLES' :: 'VM_GROUP/ROLES'(),
'TEMPLATE' :: string()}).
-type 'VM_GROUP'() :: #'VM_GROUP'{}.
-record('VM_GROUP/ROLES', {anyAttribs :: anyAttribs(),
'ROLE' :: ['VM_GROUP/ROLES/ROLE'()]}).
-type 'VM_GROUP/ROLES'() :: #'VM_GROUP/ROLES'{}.
-record('VM_GROUP/ROLES/ROLE', {anyAttribs :: anyAttribs(),
'HOST_AFFINED' :: string() | undefined,
'HOST_ANTI_AFFINED' :: string() | undefined,
'ID' :: integer(),
'NAME' :: string(),
'POLICY' :: string() | undefined}).
-type 'VM_GROUP/ROLES/ROLE'() :: #'VM_GROUP/ROLES/ROLE'{}.
-record('VM_GROUP/LOCK', {anyAttribs :: anyAttribs(),
'LOCKED' :: integer(),
'OWNER' :: integer(),
'TIME' :: integer(),
'REQ_ID' :: integer()}).
-type 'VM_GROUP/LOCK'() :: #'VM_GROUP/LOCK'{}.
-record('VM_GROUP/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 'VM_GROUP/PERMISSIONS'() :: #'VM_GROUP/PERMISSIONS'{}.