/// <summary> /// Initializes a new instance of the <see cref="KratosAdminUpdateIdentityBody" /> class. /// </summary> /// <param name="schemaId">SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. If set will update the Identity's SchemaID..</param> /// <param name="state">state (required).</param> /// <param name="traits">Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_id`. (required).</param> public KratosAdminUpdateIdentityBody(string schemaId = default(string), KratosIdentityState state = default(KratosIdentityState), Object traits = default(Object)) { // to ensure "state" is required (not null) this.State = state ?? throw new ArgumentNullException("state is a required property for KratosAdminUpdateIdentityBody and cannot be null"); // to ensure "traits" is required (not null) this.Traits = traits ?? throw new ArgumentNullException("traits is a required property for KratosAdminUpdateIdentityBody and cannot be null"); this.SchemaId = schemaId; this.AdditionalProperties = new Dictionary <string, object>(); }
/// <summary> /// Initializes a new instance of the <see cref="KratosIdentity" /> class. /// </summary> /// <param name="createdAt">CreatedAt is a helper struct field for gobuffalo.pop..</param> /// <param name="credentials">Credentials represents all credentials that can be used for authenticating this identity..</param> /// <param name="id">id (required).</param> /// <param name="recoveryAddresses">RecoveryAddresses contains all the addresses that can be used to recover an identity..</param> /// <param name="schemaId">SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. (required).</param> /// <param name="schemaUrl">SchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url (required).</param> /// <param name="state">state.</param> /// <param name="stateChangedAt">stateChangedAt.</param> /// <param name="traits">Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. (required).</param> /// <param name="updatedAt">UpdatedAt is a helper struct field for gobuffalo.pop..</param> /// <param name="verifiableAddresses">VerifiableAddresses contains all the addresses that can be verified by the user..</param> public KratosIdentity(DateTime createdAt = default(DateTime), Dictionary <string, KratosIdentityCredentials> credentials = default(Dictionary <string, KratosIdentityCredentials>), string id = default(string), List <KratosRecoveryAddress> recoveryAddresses = default(List <KratosRecoveryAddress>), string schemaId = default(string), string schemaUrl = default(string), KratosIdentityState state = default(KratosIdentityState), DateTime stateChangedAt = default(DateTime), Object traits = default(Object), DateTime updatedAt = default(DateTime), List <KratosVerifiableIdentityAddress> verifiableAddresses = default(List <KratosVerifiableIdentityAddress>)) { // to ensure "id" is required (not null) this.Id = id ?? throw new ArgumentNullException("id is a required property for KratosIdentity and cannot be null"); // to ensure "schemaId" is required (not null) this.SchemaId = schemaId ?? throw new ArgumentNullException("schemaId is a required property for KratosIdentity and cannot be null"); // to ensure "schemaUrl" is required (not null) this.SchemaUrl = schemaUrl ?? throw new ArgumentNullException("schemaUrl is a required property for KratosIdentity and cannot be null"); // to ensure "traits" is required (not null) this.Traits = traits ?? throw new ArgumentNullException("traits is a required property for KratosIdentity and cannot be null"); this.CreatedAt = createdAt; this.Credentials = credentials; this.RecoveryAddresses = recoveryAddresses; this.State = state; this.StateChangedAt = stateChangedAt; this.UpdatedAt = updatedAt; this.VerifiableAddresses = verifiableAddresses; this.AdditionalProperties = new Dictionary <string, object>(); }