Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KetoRelationQuery" /> class.
 /// </summary>
 /// <param name="_namespace">Namespace of the Relation Tuple (required).</param>
 /// <param name="_object">Object of the Relation Tuple.</param>
 /// <param name="relation">Relation of the Relation Tuple.</param>
 /// <param name="subjectId">SubjectID of the Relation Tuple  Either SubjectSet or SubjectID can be provided..</param>
 /// <param name="subjectSet">subjectSet.</param>
 public KetoRelationQuery(string _namespace = default(string), string _object = default(string), string relation = default(string), string subjectId = default(string), KetoSubjectSet subjectSet = default(KetoSubjectSet))
 {
     // to ensure "_namespace" is required (not null)
     if (_namespace == null)
     {
         throw new ArgumentNullException("_namespace is a required property for KetoRelationQuery and cannot be null");
     }
     this.Namespace            = _namespace;
     this.Object               = _object;
     this.Relation             = relation;
     this.SubjectId            = subjectId;
     this.SubjectSet           = subjectSet;
     this.AdditionalProperties = new Dictionary <string, object>();
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KetoExpandTree" /> class.
 /// </summary>
 /// <param name="children">children.</param>
 /// <param name="subjectId">subjectId.</param>
 /// <param name="subjectSet">subjectSet.</param>
 /// <param name="type"> union Union exclusion Exclusion intersection Intersection leaf Leaf (required).</param>
 public KetoExpandTree(List <KetoExpandTree> children = default(List <KetoExpandTree>), string subjectId = default(string), KetoSubjectSet subjectSet = default(KetoSubjectSet), TypeEnum type = default(TypeEnum))
 {
     this.Type                 = type;
     this.Children             = children;
     this.SubjectId            = subjectId;
     this.SubjectSet           = subjectSet;
     this.AdditionalProperties = new Dictionary <string, object>();
 }