/// <summary> /// Initializes a new instance of the <see cref="ClientAdminUpdateIdentityBody" /> 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 ClientAdminUpdateIdentityBody(string schemaId = default(string), ClientIdentityState state = default(ClientIdentityState), Object traits = default(Object)) { // to ensure "state" is required (not null) this.State = state ?? throw new ArgumentNullException("state is a required property for ClientAdminUpdateIdentityBody and cannot be null"); // to ensure "traits" is required (not null) this.Traits = traits ?? throw new ArgumentNullException("traits is a required property for ClientAdminUpdateIdentityBody and cannot be null"); this.SchemaId = schemaId; this.AdditionalProperties = new Dictionary <string, object>(); }
/// <summary> /// Initializes a new instance of the <see cref="ClientIdentity" /> 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 ClientIdentity(DateTime createdAt = default(DateTime), Dictionary <string, ClientIdentityCredentials> credentials = default(Dictionary <string, ClientIdentityCredentials>), string id = default(string), List <ClientRecoveryAddress> recoveryAddresses = default(List <ClientRecoveryAddress>), string schemaId = default(string), string schemaUrl = default(string), ClientIdentityState state = default(ClientIdentityState), DateTime stateChangedAt = default(DateTime), Object traits = default(Object), DateTime updatedAt = default(DateTime), List <ClientVerifiableIdentityAddress> verifiableAddresses = default(List <ClientVerifiableIdentityAddress>)) { // to ensure "id" is required (not null) this.Id = id ?? throw new ArgumentNullException("id is a required property for ClientIdentity and cannot be null"); // to ensure "schemaId" is required (not null) this.SchemaId = schemaId ?? throw new ArgumentNullException("schemaId is a required property for ClientIdentity and cannot be null"); // to ensure "schemaUrl" is required (not null) this.SchemaUrl = schemaUrl ?? throw new ArgumentNullException("schemaUrl is a required property for ClientIdentity and cannot be null"); // to ensure "traits" is required (not null) this.Traits = traits ?? throw new ArgumentNullException("traits is a required property for ClientIdentity 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>(); }