Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KratosUiNodeInputAttributes" /> class.
 /// </summary>
 /// <param name="disabled">Sets the input&#39;s disabled field to true or false. (required).</param>
 /// <param name="label">label.</param>
 /// <param name="name">The input&#39;s element name. (required).</param>
 /// <param name="nodeType">nodeType (required).</param>
 /// <param name="onclick">OnClick may contain javascript which should be executed on click. This is primarily used for WebAuthn..</param>
 /// <param name="pattern">The input&#39;s pattern..</param>
 /// <param name="required">Mark this input field as required..</param>
 /// <param name="type">type (required).</param>
 /// <param name="value">The input&#39;s value..</param>
 public KratosUiNodeInputAttributes(bool disabled = default(bool), KratosUiText label = default(KratosUiText), string name = default(string), string nodeType = default(string), string onclick = default(string), string pattern = default(string), bool required = default(bool), string type = default(string), Object value = default(Object))
 {
     this.Disabled = disabled;
     // to ensure "name" is required (not null)
     if (name == null)
     {
         throw new ArgumentNullException("name is a required property for KratosUiNodeInputAttributes and cannot be null");
     }
     this.Name = name;
     // to ensure "nodeType" is required (not null)
     if (nodeType == null)
     {
         throw new ArgumentNullException("nodeType is a required property for KratosUiNodeInputAttributes and cannot be null");
     }
     this.NodeType = nodeType;
     // to ensure "type" is required (not null)
     if (type == null)
     {
         throw new ArgumentNullException("type is a required property for KratosUiNodeInputAttributes and cannot be null");
     }
     this.Type                 = type;
     this.Label                = label;
     this.Onclick              = onclick;
     this.Pattern              = pattern;
     this.Required             = required;
     this.Value                = value;
     this.AdditionalProperties = new Dictionary <string, object>();
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KratosUiNodeAnchorAttributes" /> class.
 /// </summary>
 /// <param name="href">The link&#39;s href (destination) URL.  format: uri (required).</param>
 /// <param name="title">title (required).</param>
 public KratosUiNodeAnchorAttributes(string href = default(string), KratosUiText title = default(KratosUiText))
 {
     // to ensure "href" is required (not null)
     this.Href = href ?? throw new ArgumentNullException("href is a required property for KratosUiNodeAnchorAttributes and cannot be null");
     // to ensure "title" is required (not null)
     this.Title = title ?? throw new ArgumentNullException("title is a required property for KratosUiNodeAnchorAttributes and cannot be null");
     this.AdditionalProperties = new Dictionary <string, object>();
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KratosMeta" /> class.
 /// </summary>
 /// <param name="label">label.</param>
 public KratosMeta(KratosUiText label = default(KratosUiText))
 {
     this.Label = label;
     this.AdditionalProperties = new Dictionary <string, object>();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="KratosUiNodeTextAttributes" /> class.
 /// </summary>
 /// <param name="text">text (required).</param>
 public KratosUiNodeTextAttributes(KratosUiText text = default(KratosUiText))
 {
     // to ensure "text" is required (not null)
     this.Text = text ?? throw new ArgumentNullException("text is a required property for KratosUiNodeTextAttributes and cannot be null");
     this.AdditionalProperties = new Dictionary <string, object>();
 }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KratosUiNodeTextAttributes" /> class.
 /// </summary>
 /// <param name="id">A unique identifier (required).</param>
 /// <param name="nodeType">nodeType (required).</param>
 /// <param name="text">text (required).</param>
 public KratosUiNodeTextAttributes(string id = default(string), string nodeType = default(string), KratosUiText text = default(KratosUiText))
 {
     // to ensure "id" is required (not null)
     if (id == null)
     {
         throw new ArgumentNullException("id is a required property for KratosUiNodeTextAttributes and cannot be null");
     }
     this.Id = id;
     // to ensure "nodeType" is required (not null)
     if (nodeType == null)
     {
         throw new ArgumentNullException("nodeType is a required property for KratosUiNodeTextAttributes and cannot be null");
     }
     this.NodeType = nodeType;
     // to ensure "text" is required (not null)
     if (text == null)
     {
         throw new ArgumentNullException("text is a required property for KratosUiNodeTextAttributes and cannot be null");
     }
     this.Text = text;
     this.AdditionalProperties = new Dictionary <string, object>();
 }
Beispiel #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KratosUiNodeAnchorAttributes" /> class.
 /// </summary>
 /// <param name="href">The link&#39;s href (destination) URL.  format: uri (required).</param>
 /// <param name="id">A unique identifier (required).</param>
 /// <param name="nodeType">nodeType (required).</param>
 /// <param name="title">title (required).</param>
 public KratosUiNodeAnchorAttributes(string href = default(string), string id = default(string), string nodeType = default(string), KratosUiText title = default(KratosUiText))
 {
     // to ensure "href" is required (not null)
     if (href == null)
     {
         throw new ArgumentNullException("href is a required property for KratosUiNodeAnchorAttributes and cannot be null");
     }
     this.Href = href;
     // to ensure "id" is required (not null)
     if (id == null)
     {
         throw new ArgumentNullException("id is a required property for KratosUiNodeAnchorAttributes and cannot be null");
     }
     this.Id = id;
     // to ensure "nodeType" is required (not null)
     if (nodeType == null)
     {
         throw new ArgumentNullException("nodeType is a required property for KratosUiNodeAnchorAttributes and cannot be null");
     }
     this.NodeType = nodeType;
     // to ensure "title" is required (not null)
     if (title == null)
     {
         throw new ArgumentNullException("title is a required property for KratosUiNodeAnchorAttributes and cannot be null");
     }
     this.Title = title;
     this.AdditionalProperties = new Dictionary <string, object>();
 }