/// <summary> /// Initializes a new instance of the <see cref="ClientSelfServiceRegistrationFlow" /> class. /// </summary> /// <param name="active">active.</param> /// <param name="expiresAt">ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. (required).</param> /// <param name="id">id (required).</param> /// <param name="issuedAt">IssuedAt is the time (UTC) when the flow occurred. (required).</param> /// <param name="requestUrl">RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. (required).</param> /// <param name="returnTo">ReturnTo contains the requested return_to URL..</param> /// <param name="type">The flow type can either be `api` or `browser`..</param> /// <param name="ui">ui (required).</param> public ClientSelfServiceRegistrationFlow(ClientIdentityCredentialsType active = default(ClientIdentityCredentialsType), DateTime expiresAt = default(DateTime), string id = default(string), DateTime issuedAt = default(DateTime), string requestUrl = default(string), string returnTo = default(string), string type = default(string), ClientUiContainer ui = default(ClientUiContainer)) { this.ExpiresAt = expiresAt; // to ensure "id" is required (not null) if (id == null) { throw new ArgumentNullException("id is a required property for ClientSelfServiceRegistrationFlow and cannot be null"); } this.Id = id; this.IssuedAt = issuedAt; // to ensure "requestUrl" is required (not null) if (requestUrl == null) { throw new ArgumentNullException("requestUrl is a required property for ClientSelfServiceRegistrationFlow and cannot be null"); } this.RequestUrl = requestUrl; // to ensure "ui" is required (not null) if (ui == null) { throw new ArgumentNullException("ui is a required property for ClientSelfServiceRegistrationFlow and cannot be null"); } this.Ui = ui; this.Active = active; this.ReturnTo = returnTo; this.Type = type; this.AdditionalProperties = new Dictionary <string, object>(); }
/// <summary> /// Initializes a new instance of the <see cref="ClientSelfServiceLoginFlow" /> class. /// </summary> /// <param name="active">active.</param> /// <param name="createdAt">CreatedAt is a helper struct field for gobuffalo.pop..</param> /// <param name="expiresAt">ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. (required).</param> /// <param name="id">id (required).</param> /// <param name="issuedAt">IssuedAt is the time (UTC) when the flow started. (required).</param> /// <param name="refresh">Refresh stores whether this login flow should enforce re-authentication..</param> /// <param name="requestUrl">RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. (required).</param> /// <param name="requestedAal">requestedAal.</param> /// <param name="returnTo">ReturnTo contains the requested return_to URL..</param> /// <param name="type">The flow type can either be `api` or `browser`. (required).</param> /// <param name="ui">ui (required).</param> /// <param name="updatedAt">UpdatedAt is a helper struct field for gobuffalo.pop..</param> public ClientSelfServiceLoginFlow(ClientIdentityCredentialsType active = default(ClientIdentityCredentialsType), DateTime createdAt = default(DateTime), DateTime expiresAt = default(DateTime), string id = default(string), DateTime issuedAt = default(DateTime), bool refresh = default(bool), string requestUrl = default(string), ClientAuthenticatorAssuranceLevel requestedAal = default(ClientAuthenticatorAssuranceLevel), string returnTo = default(string), string type = default(string), ClientUiContainer ui = default(ClientUiContainer), DateTime updatedAt = default(DateTime)) { this.ExpiresAt = expiresAt; // to ensure "id" is required (not null) if (id == null) { throw new ArgumentNullException("id is a required property for ClientSelfServiceLoginFlow and cannot be null"); } this.Id = id; this.IssuedAt = issuedAt; // to ensure "requestUrl" is required (not null) if (requestUrl == null) { throw new ArgumentNullException("requestUrl is a required property for ClientSelfServiceLoginFlow and cannot be null"); } this.RequestUrl = requestUrl; // to ensure "type" is required (not null) if (type == null) { throw new ArgumentNullException("type is a required property for ClientSelfServiceLoginFlow and cannot be null"); } this.Type = type; // to ensure "ui" is required (not null) if (ui == null) { throw new ArgumentNullException("ui is a required property for ClientSelfServiceLoginFlow and cannot be null"); } this.Ui = ui; this.Active = active; this.CreatedAt = createdAt; this.Refresh = refresh; this.RequestedAal = requestedAal; this.ReturnTo = returnTo; this.UpdatedAt = updatedAt; this.AdditionalProperties = new Dictionary <string, object>(); }
/// <summary> /// Initializes a new instance of the <see cref="ClientIdentityCredentials" /> class. /// </summary> /// <param name="config">config.</param> /// <param name="createdAt">CreatedAt is a helper struct field for gobuffalo.pop..</param> /// <param name="identifiers">Identifiers represents a list of unique identifiers this credential type matches..</param> /// <param name="type">type.</param> /// <param name="updatedAt">UpdatedAt is a helper struct field for gobuffalo.pop..</param> public ClientIdentityCredentials(Object config = default(Object), DateTime createdAt = default(DateTime), List <string> identifiers = default(List <string>), ClientIdentityCredentialsType type = default(ClientIdentityCredentialsType), DateTime updatedAt = default(DateTime)) { this.Config = config; this.CreatedAt = createdAt; this.Identifiers = identifiers; this.Type = type; this.UpdatedAt = updatedAt; this.AdditionalProperties = new Dictionary <string, object>(); }