Skip to content

Commit fb8471e

Browse files
committed
Move Datamodel auth type into a submodule
Signed-off-by: Jon Ludlam <[email protected]>
1 parent cf258cd commit fb8471e

File tree

1 file changed

+48
-46
lines changed

1 file changed

+48
-46
lines changed

ocaml/idl/datamodel.ml

Lines changed: 48 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -7849,54 +7849,56 @@ module Pool = struct
78497849
()
78507850
end
78517851

7852-
(** Auth class *)
7853-
let auth_get_subject_identifier = call ~flags:[`Session]
7854-
~name:"get_subject_identifier"
7855-
~in_oss_since:None
7856-
~in_product_since:rel_george
7857-
~params:[
7858-
(*Ref _auth, "auth", "???";*)
7859-
String, "subject_name", "The human-readable subject_name, such as a username or a groupname" ;
7860-
]
7861-
~result:(String, "the subject_identifier obtained from the external directory service")
7862-
~doc:"This call queries the external directory service to obtain the subject_identifier as a string from the human-readable subject_name"
7863-
~allowed_roles:_R_READ_ONLY
7864-
()
7852+
module Auth = struct
7853+
(** Auth class *)
7854+
let get_subject_identifier = call ~flags:[`Session]
7855+
~name:"get_subject_identifier"
7856+
~in_oss_since:None
7857+
~in_product_since:rel_george
7858+
~params:[
7859+
(*Ref _auth, "auth", "???";*)
7860+
String, "subject_name", "The human-readable subject_name, such as a username or a groupname" ;
7861+
]
7862+
~result:(String, "the subject_identifier obtained from the external directory service")
7863+
~doc:"This call queries the external directory service to obtain the subject_identifier as a string from the human-readable subject_name"
7864+
~allowed_roles:_R_READ_ONLY
7865+
()
78657866

7866-
let auth_get_subject_information_from_identifier = call ~flags:[`Session]
7867-
~name:"get_subject_information_from_identifier"
7868-
~in_oss_since:None
7869-
~in_product_since:rel_george
7870-
~params:[
7871-
String, "subject_identifier", "A string containing the subject_identifier, unique in the external directory service"
7872-
]
7873-
~result:(Map(String,String), "key-value pairs containing at least a key called subject_name")
7874-
~doc:"This call queries the external directory service to obtain the user information (e.g. username, organization etc) from the specified subject_identifier"
7875-
~allowed_roles:_R_READ_ONLY
7876-
()
7867+
let get_subject_information_from_identifier = call ~flags:[`Session]
7868+
~name:"get_subject_information_from_identifier"
7869+
~in_oss_since:None
7870+
~in_product_since:rel_george
7871+
~params:[
7872+
String, "subject_identifier", "A string containing the subject_identifier, unique in the external directory service"
7873+
]
7874+
~result:(Map(String,String), "key-value pairs containing at least a key called subject_name")
7875+
~doc:"This call queries the external directory service to obtain the user information (e.g. username, organization etc) from the specified subject_identifier"
7876+
~allowed_roles:_R_READ_ONLY
7877+
()
78777878

7878-
let auth_get_group_membership = call ~flags:[`Session]
7879-
~name:"get_group_membership"
7880-
~in_oss_since:None
7881-
~in_product_since:rel_george
7882-
~params:[
7883-
String, "subject_identifier", "A string containing the subject_identifier, unique in the external directory service"
7884-
]
7885-
~result:(Set(String), "set of subject_identifiers that provides the group membership of subject_identifier passed as argument, it contains, recursively, all groups a subject_identifier is member of.")
7886-
~doc:"This calls queries the external directory service to obtain the transitively-closed set of groups that the the subject_identifier is member of."
7887-
~allowed_roles:_R_READ_ONLY
7888-
()
7879+
let get_group_membership = call ~flags:[`Session]
7880+
~name:"get_group_membership"
7881+
~in_oss_since:None
7882+
~in_product_since:rel_george
7883+
~params:[
7884+
String, "subject_identifier", "A string containing the subject_identifier, unique in the external directory service"
7885+
]
7886+
~result:(Set(String), "set of subject_identifiers that provides the group membership of subject_identifier passed as argument, it contains, recursively, all groups a subject_identifier is member of.")
7887+
~doc:"This calls queries the external directory service to obtain the transitively-closed set of groups that the the subject_identifier is member of."
7888+
~allowed_roles:_R_READ_ONLY
7889+
()
78897890

7890-
let auth =
7891-
create_obj ~in_db:false ~in_product_since:rel_george ~in_oss_since:None ~internal_deprecated_since:None ~persist:PersistNothing ~gen_constructor_destructor:false ~name:_auth ~descr:"Management of remote authentication services"
7892-
~gen_events:false
7893-
~doccomments:[]
7894-
~messages_default_allowed_roles:_R_READ_ONLY
7895-
~messages: [auth_get_subject_identifier;
7896-
auth_get_subject_information_from_identifier;
7897-
auth_get_group_membership;]
7898-
~contents:[]
7899-
()
7891+
let t =
7892+
create_obj ~in_db:false ~in_product_since:rel_george ~in_oss_since:None ~internal_deprecated_since:None ~persist:PersistNothing ~gen_constructor_destructor:false ~name:_auth ~descr:"Management of remote authentication services"
7893+
~gen_events:false
7894+
~doccomments:[]
7895+
~messages_default_allowed_roles:_R_READ_ONLY
7896+
~messages: [get_subject_identifier;
7897+
get_subject_information_from_identifier;
7898+
get_group_membership;]
7899+
~contents:[]
7900+
()
7901+
end
79007902

79017903
(** Subject class *)
79027904
let subject_add_to_roles = call ~flags:[`Session]
@@ -10324,7 +10326,7 @@ let vusb = VUSB.obj
1032410326
let all_system =
1032510327
[
1032610328
Session.t;
10327-
auth;
10329+
Auth.t;
1032810330
subject;
1032910331
(role:Datamodel_types.obj);
1033010332
Task.t;

0 commit comments

Comments
 (0)