Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ClientProjectPatch" /> class.
 /// </summary>
 /// <param name="apiUrl">URL of Project API  In the future will allow to override Kratos project URL. If set, error is returned. If left empty our hosted URL is used.</param>
 /// <param name="applicationUrl">URL where your application is available.  Your users will be redirected to this URL when they successfully complete a login, logout, verification, recovery, or registration flow. More fine-grained redirection patterns are available for the individual flows (login, registration, ...).  If left empty, our hosted URL will be used instead. It contains technical information on the identities and is useful when developing a new project or trying out Ory Cloud..</param>
 /// <param name="defaultIdentitySchemaUrl">Default Identity Schema URL  This represents your Ory Kratos Default Identity Schema. It is your identity&#39;s default schema. This allows setting custom fields such as \&quot;address\&quot;, specifying whether you want to log in using email or a username, and more. For more information on this topic, please check out the identity documentation.  If KratosCustomSchemaID is also added to the payload, it will be preferred and replace the value of DefaultIdentitySchemaURL set by the client.  The value of this field can be either any \&quot;https://\&quot; URL - for example a file hosted at GitHub, or a &#x60;preset://&#x60;-prefixed string.  Available presets are:  preset://email preset://username preset://basic preset://blank.</param>
 /// <param name="errorUiUrl">Self-Service Error UI URL  Sets the UI URL for the error UI. If left empty, this will use Ory&#39;s hosted pages. (required).</param>
 /// <param name="kratosCustomSchemaId">The Custom Schema ID  The custom schema ID is a preferred field over DefaultIdentitySchemaURL, meaning it will override the DefaultIdentitySchemaURL with the custom schema&#39;s URL instead of accepting it from the client-side. Once this field is set the given custom schema will be associated with this project..</param>
 /// <param name="loginUiUrl">Self-Service Login UI URL  Sets the UI URL for the login UI. If left empty, this will use Ory&#39;s hosted pages. (required).</param>
 /// <param name="lookupSecret">lookupSecret (required).</param>
 /// <param name="name">The project name.  Helps you identify your project.  in: body.</param>
 /// <param name="password">password (required).</param>
 /// <param name="recovery">recovery (required).</param>
 /// <param name="recoveryUiUrl">Self-Service Login UI URL  Sets the UI URL for the recovery UI. If left empty, this will use Ory&#39;s hosted pages. (required).</param>
 /// <param name="redirectionConfig">redirectionConfig.</param>
 /// <param name="registrationUiUrl">Self-Service Login UI URL  Sets the UI URL for the registration UI. If left empty, this will use Ory&#39;s hosted pages. (required).</param>
 /// <param name="sessionAfterSignUp">Issue Session after Sign Up  If set to true, users will receive a session after they successfully signed up. Enabling this option allows account enumeration during registration flows. Read more: https://www.ory.sh/kratos/docs/self-service/flows/user-registration#successful-registration (required).</param>
 /// <param name="sessionSoft2fa">Enable Soft 2FA for Login Sessions (required).</param>
 /// <param name="settingsPrivilegedSessionMaxAgeSeconds">Duration in Seconds of how long a Session is Privileged  Defines how long a session is considered privileged in seconds. If the session&#39;s authenticated_at is older than the value specified here, the user needs to re-authenticate to perform certain actions (e.g. password change). (required).</param>
 /// <param name="settingsSoft2fa">Enable Soft 2FA for Self-Service Settings Flows (required).</param>
 /// <param name="settingsUiUrl">Self-Service Settings UI URL  Sets the UI URL for the settings UI. If left empty, this will use Ory&#39;s hosted pages. (required).</param>
 /// <param name="totp">totp (required).</param>
 /// <param name="verification">verification (required).</param>
 /// <param name="verificationUiUrl">Self-Service Login UI URL  Sets the UI URL for the verification UI. If left empty, this will use Ory&#39;s hosted pages. (required).</param>
 /// <param name="webauthn">webauthn (required).</param>
 public ClientProjectPatch(string apiUrl = default(string), string applicationUrl = default(string), string defaultIdentitySchemaUrl = default(string), string errorUiUrl = default(string), string kratosCustomSchemaId = default(string), string loginUiUrl = default(string), ClientProjectLookupSecretConfig lookupSecret = default(ClientProjectLookupSecretConfig), string name = default(string), ClientProjectPasswordConfig password = default(ClientProjectPasswordConfig), ClientProjectRecoveryConfig recovery = default(ClientProjectRecoveryConfig), string recoveryUiUrl = default(string), ClientRedirectionConfig redirectionConfig = default(ClientRedirectionConfig), string registrationUiUrl = default(string), bool sessionAfterSignUp = default(bool), bool sessionSoft2fa = default(bool), long settingsPrivilegedSessionMaxAgeSeconds = default(long), bool settingsSoft2fa = default(bool), string settingsUiUrl = default(string), ClientProjectTotpConfig totp = default(ClientProjectTotpConfig), ClientProjectVerificationConfig verification = default(ClientProjectVerificationConfig), string verificationUiUrl = default(string), ClientProjectWebAuthnConfig webauthn = default(ClientProjectWebAuthnConfig))
 {
     // to ensure "errorUiUrl" is required (not null)
     if (errorUiUrl == null)
     {
         throw new ArgumentNullException("errorUiUrl is a required property for ClientProjectPatch and cannot be null");
     }
     this.ErrorUiUrl = errorUiUrl;
     // to ensure "loginUiUrl" is required (not null)
     if (loginUiUrl == null)
     {
         throw new ArgumentNullException("loginUiUrl is a required property for ClientProjectPatch and cannot be null");
     }
     this.LoginUiUrl = loginUiUrl;
     // to ensure "lookupSecret" is required (not null)
     if (lookupSecret == null)
     {
         throw new ArgumentNullException("lookupSecret is a required property for ClientProjectPatch and cannot be null");
     }
     this.LookupSecret = lookupSecret;
     // to ensure "password" is required (not null)
     if (password == null)
     {
         throw new ArgumentNullException("password is a required property for ClientProjectPatch and cannot be null");
     }
     this.Password = password;
     // to ensure "recovery" is required (not null)
     if (recovery == null)
     {
         throw new ArgumentNullException("recovery is a required property for ClientProjectPatch and cannot be null");
     }
     this.Recovery = recovery;
     // to ensure "recoveryUiUrl" is required (not null)
     if (recoveryUiUrl == null)
     {
         throw new ArgumentNullException("recoveryUiUrl is a required property for ClientProjectPatch and cannot be null");
     }
     this.RecoveryUiUrl = recoveryUiUrl;
     // to ensure "registrationUiUrl" is required (not null)
     if (registrationUiUrl == null)
     {
         throw new ArgumentNullException("registrationUiUrl is a required property for ClientProjectPatch and cannot be null");
     }
     this.RegistrationUiUrl  = registrationUiUrl;
     this.SessionAfterSignUp = sessionAfterSignUp;
     this.SessionSoft2fa     = sessionSoft2fa;
     this.SettingsPrivilegedSessionMaxAgeSeconds = settingsPrivilegedSessionMaxAgeSeconds;
     this.SettingsSoft2fa = settingsSoft2fa;
     // to ensure "settingsUiUrl" is required (not null)
     if (settingsUiUrl == null)
     {
         throw new ArgumentNullException("settingsUiUrl is a required property for ClientProjectPatch and cannot be null");
     }
     this.SettingsUiUrl = settingsUiUrl;
     // to ensure "totp" is required (not null)
     if (totp == null)
     {
         throw new ArgumentNullException("totp is a required property for ClientProjectPatch and cannot be null");
     }
     this.Totp = totp;
     // to ensure "verification" is required (not null)
     if (verification == null)
     {
         throw new ArgumentNullException("verification is a required property for ClientProjectPatch and cannot be null");
     }
     this.Verification = verification;
     // to ensure "verificationUiUrl" is required (not null)
     if (verificationUiUrl == null)
     {
         throw new ArgumentNullException("verificationUiUrl is a required property for ClientProjectPatch and cannot be null");
     }
     this.VerificationUiUrl = verificationUiUrl;
     // to ensure "webauthn" is required (not null)
     if (webauthn == null)
     {
         throw new ArgumentNullException("webauthn is a required property for ClientProjectPatch and cannot be null");
     }
     this.Webauthn                 = webauthn;
     this.ApiUrl                   = apiUrl;
     this.ApplicationUrl           = applicationUrl;
     this.DefaultIdentitySchemaUrl = defaultIdentitySchemaUrl;
     this.KratosCustomSchemaId     = kratosCustomSchemaId;
     this.Name = name;
     this.RedirectionConfig    = redirectionConfig;
     this.AdditionalProperties = new Dictionary <string, object>();
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ClientProjectRevision" /> class.
 /// </summary>
 /// <param name="apiUrl">The Project API URL  The URL where the Project&#39;s APIs are available. (required).</param>
 /// <param name="applicationUrl">Your Application URL  The URL where your application is available. Your users will be redirected to this URL when they successfully complete a login, logout, verification, recovery, or registration flow.  More fine-grained redirection patterns are available for the individual flows. (required).</param>
 /// <param name="defaultIdentitySchemaUrl">Default Identity Schema URL  This represents your Ory Kratos Default Identity Schema. It is your identity&#39;s default schema. This allows setting custom fields such as \&quot;address\&quot;, specifying whether you want to log in using email or a username, and more. For more information on this topic, please check out the identity documentation.  The value of this field can be either any \&quot;https://\&quot; URL - for example a file hosted at GitHub, or a &#x60;preset://&#x60;-prefixed string. Available profiles are:  profile://email profile://username (required).</param>
 /// <param name="errorUiUrl">Self-Service Error UI URL  Sets the UI URL for the error UI. If left empty, this will use Ory&#39;s hosted pages..</param>
 /// <param name="hosts">hosts (required).</param>
 /// <param name="id">id (required).</param>
 /// <param name="kratosCustomSchemaId">kratosCustomSchemaId.</param>
 /// <param name="loginUiUrl">Self-Service Login UI URL  Sets the UI URL for the login UI. If left empty, this will use Ory&#39;s hosted pages..</param>
 /// <param name="lookupSecret">lookupSecret.</param>
 /// <param name="name">The project&#39;s name. (required).</param>
 /// <param name="oidcProviders">oidcProviders.</param>
 /// <param name="password">password.</param>
 /// <param name="projectId">projectId (required).</param>
 /// <param name="recovery">recovery.</param>
 /// <param name="recoveryUiUrl">Self-Service Login UI URL  Sets the UI URL for the recovery UI. If left empty, this will use Ory&#39;s hosted pages..</param>
 /// <param name="redirectionConfig">redirectionConfig.</param>
 /// <param name="registrationUiUrl">Self-Service Login UI URL  Sets the UI URL for the registration UI. If left empty, this will use Ory&#39;s hosted pages..</param>
 /// <param name="sessionAfterSignUp">Issue Session after Sign Up  If set to true, users will receive a session after they successfully signed up. Enabling this option allows account enumeration during registration flows. Read more: https://www.ory.sh/kratos/docs/self-service/flows/user-registration#successful-registration (required).</param>
 /// <param name="sessionSoft2fa">Enable Soft 2FA for Login Sessions.</param>
 /// <param name="settingsPrivilegedSessionMaxAgeSeconds">Duration in Seconds of how long a Session is Privileged  Defines how long a session is considered privileged in seconds. If the session&#39;s authenticated_at is older than the value specified here, the user needs to re-authenticate to perform certain actions (e.g. password change)..</param>
 /// <param name="settingsSoft2fa">Enable Soft 2FA for Self-Service Settings Flows.</param>
 /// <param name="settingsUiUrl">Self-Service Settings UI URL  Sets the UI URL for the settings UI. If left empty, this will use Ory&#39;s hosted pages..</param>
 /// <param name="totp">totp.</param>
 /// <param name="verification">verification.</param>
 /// <param name="verificationUiUrl">Self-Service Login UI URL  Sets the UI URL for the verification UI. If left empty, this will use Ory&#39;s hosted pages..</param>
 /// <param name="webauthn">webauthn.</param>
 public ClientProjectRevision(string apiUrl = default(string), string applicationUrl = default(string), string defaultIdentitySchemaUrl = default(string), string errorUiUrl = default(string), List <string> hosts = default(List <string>), string id = default(string), string kratosCustomSchemaId = default(string), string loginUiUrl = default(string), ClientProjectLookupSecretConfig lookupSecret = default(ClientProjectLookupSecretConfig), string name = default(string), List <ClientProjectOidcConfig> oidcProviders = default(List <ClientProjectOidcConfig>), ClientProjectPasswordConfig password = default(ClientProjectPasswordConfig), string projectId = default(string), ClientProjectRecoveryConfig recovery = default(ClientProjectRecoveryConfig), string recoveryUiUrl = default(string), ClientRedirectionConfig redirectionConfig = default(ClientRedirectionConfig), string registrationUiUrl = default(string), bool sessionAfterSignUp = default(bool), bool sessionSoft2fa = default(bool), long settingsPrivilegedSessionMaxAgeSeconds = default(long), bool settingsSoft2fa = default(bool), string settingsUiUrl = default(string), ClientProjectTotpConfig totp = default(ClientProjectTotpConfig), ClientProjectVerificationConfig verification = default(ClientProjectVerificationConfig), string verificationUiUrl = default(string), ClientProjectWebAuthnConfig webauthn = default(ClientProjectWebAuthnConfig))
 {
     // to ensure "apiUrl" is required (not null)
     if (apiUrl == null)
     {
         throw new ArgumentNullException("apiUrl is a required property for ClientProjectRevision and cannot be null");
     }
     this.ApiUrl = apiUrl;
     // to ensure "applicationUrl" is required (not null)
     if (applicationUrl == null)
     {
         throw new ArgumentNullException("applicationUrl is a required property for ClientProjectRevision and cannot be null");
     }
     this.ApplicationUrl = applicationUrl;
     // to ensure "defaultIdentitySchemaUrl" is required (not null)
     if (defaultIdentitySchemaUrl == null)
     {
         throw new ArgumentNullException("defaultIdentitySchemaUrl is a required property for ClientProjectRevision and cannot be null");
     }
     this.DefaultIdentitySchemaUrl = defaultIdentitySchemaUrl;
     // to ensure "hosts" is required (not null)
     if (hosts == null)
     {
         throw new ArgumentNullException("hosts is a required property for ClientProjectRevision and cannot be null");
     }
     this.Hosts = hosts;
     // to ensure "id" is required (not null)
     if (id == null)
     {
         throw new ArgumentNullException("id is a required property for ClientProjectRevision and cannot be null");
     }
     this.Id = id;
     // to ensure "name" is required (not null)
     if (name == null)
     {
         throw new ArgumentNullException("name is a required property for ClientProjectRevision and cannot be null");
     }
     this.Name = name;
     // to ensure "projectId" is required (not null)
     if (projectId == null)
     {
         throw new ArgumentNullException("projectId is a required property for ClientProjectRevision and cannot be null");
     }
     this.ProjectId            = projectId;
     this.SessionAfterSignUp   = sessionAfterSignUp;
     this.ErrorUiUrl           = errorUiUrl;
     this.KratosCustomSchemaId = kratosCustomSchemaId;
     this.LoginUiUrl           = loginUiUrl;
     this.LookupSecret         = lookupSecret;
     this.OidcProviders        = oidcProviders;
     this.Password             = password;
     this.Recovery             = recovery;
     this.RecoveryUiUrl        = recoveryUiUrl;
     this.RedirectionConfig    = redirectionConfig;
     this.RegistrationUiUrl    = registrationUiUrl;
     this.SessionSoft2fa       = sessionSoft2fa;
     this.SettingsPrivilegedSessionMaxAgeSeconds = settingsPrivilegedSessionMaxAgeSeconds;
     this.SettingsSoft2fa      = settingsSoft2fa;
     this.SettingsUiUrl        = settingsUiUrl;
     this.Totp                 = totp;
     this.Verification         = verification;
     this.VerificationUiUrl    = verificationUiUrl;
     this.Webauthn             = webauthn;
     this.AdditionalProperties = new Dictionary <string, object>();
 }