Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="XapiCredentialSchema" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="Name">Name (required).</param>
 /// <param name="Info">Info.</param>
 /// <param name="Secret">Secret (required).</param>
 /// <param name="IsEnabled">IsEnabled (required).</param>
 /// <param name="Auth">Auth (required).</param>
 /// <param name="PermissionsLevel">PermissionsLevel (required).</param>
 public XapiCredentialSchema(string Id = default(string), string Name = default(string), string Info = default(string), string Secret = default(string), bool?IsEnabled = default(bool?), XapiCredentialAuthTypeSchema Auth = default(XapiCredentialAuthTypeSchema), XapiCredentialPermissionsLevelSchema PermissionsLevel = default(XapiCredentialPermissionsLevelSchema))
 {
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for XapiCredentialSchema and cannot be null");
     }
     else
     {
         this.Name = Name;
     }
     // to ensure "Secret" is required (not null)
     if (Secret == null)
     {
         throw new InvalidDataException("Secret is a required property for XapiCredentialSchema and cannot be null");
     }
     else
     {
         this.Secret = Secret;
     }
     // to ensure "IsEnabled" is required (not null)
     if (IsEnabled == null)
     {
         throw new InvalidDataException("IsEnabled is a required property for XapiCredentialSchema and cannot be null");
     }
     else
     {
         this.IsEnabled = IsEnabled;
     }
     // to ensure "Auth" is required (not null)
     if (Auth == null)
     {
         throw new InvalidDataException("Auth is a required property for XapiCredentialSchema and cannot be null");
     }
     else
     {
         this.Auth = Auth;
     }
     // to ensure "PermissionsLevel" is required (not null)
     if (PermissionsLevel == null)
     {
         throw new InvalidDataException("PermissionsLevel is a required property for XapiCredentialSchema and cannot be null");
     }
     else
     {
         this.PermissionsLevel = PermissionsLevel;
     }
     this.Id   = Id;
     this.Info = Info;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="XapiCredentialSchema" /> class.
 /// </summary>
 /// <param name="id">id.</param>
 /// <param name="name">name (required).</param>
 /// <param name="info">info.</param>
 /// <param name="secret">secret (required).</param>
 /// <param name="isEnabled">isEnabled (required).</param>
 /// <param name="auth">auth (required).</param>
 /// <param name="permissionsLevel">permissionsLevel (required).</param>
 public XapiCredentialSchema(string id = default(string), string name = default(string), string info = default(string), string secret = default(string), bool?isEnabled = default(bool?), XapiCredentialAuthTypeSchema auth = default(XapiCredentialAuthTypeSchema), XapiCredentialPermissionsLevelSchema permissionsLevel = default(XapiCredentialPermissionsLevelSchema))
 {
     // to ensure "name" is required (not null)
     if (name == null)
     {
         throw new InvalidDataException("name is a required property for XapiCredentialSchema and cannot be null");
     }
     else
     {
         this.Name = name;
     }
     // to ensure "secret" is required (not null)
     if (secret == null)
     {
         throw new InvalidDataException("secret is a required property for XapiCredentialSchema and cannot be null");
     }
     else
     {
         this.Secret = secret;
     }
     // to ensure "isEnabled" is required (not null)
     if (isEnabled == null)
     {
         throw new InvalidDataException("isEnabled is a required property for XapiCredentialSchema and cannot be null");
     }
     else
     {
         this.IsEnabled = isEnabled;
     }
     // to ensure "auth" is required (not null)
     if (auth == null)
     {
         throw new InvalidDataException("auth is a required property for XapiCredentialSchema and cannot be null");
     }
     else
     {
         this.Auth = auth;
     }
     // to ensure "permissionsLevel" is required (not null)
     if (permissionsLevel == null)
     {
         throw new InvalidDataException("permissionsLevel is a required property for XapiCredentialSchema and cannot be null");
     }
     else
     {
         this.PermissionsLevel = permissionsLevel;
     }
     this.Id   = id;
     this.Info = info;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="XapiCredentialPutSchema" /> class.
 /// </summary>
 /// <param name="id">id.</param>
 /// <param name="name">name.</param>
 /// <param name="info">info.</param>
 /// <param name="secret">secret.</param>
 /// <param name="isEnabled">isEnabled.</param>
 /// <param name="auth">auth.</param>
 /// <param name="permissionsLevel">permissionsLevel.</param>
 public XapiCredentialPutSchema(string id = default(string), string name = default(string), string info = default(string), string secret = default(string), bool?isEnabled = default(bool?), XapiCredentialAuthTypeSchema auth = default(XapiCredentialAuthTypeSchema), XapiCredentialPermissionsLevelSchema permissionsLevel = default(XapiCredentialPermissionsLevelSchema))
 {
     this.Id               = id;
     this.Name             = name;
     this.Info             = info;
     this.Secret           = secret;
     this.IsEnabled        = isEnabled;
     this.Auth             = auth;
     this.PermissionsLevel = permissionsLevel;
 }