Пример #1
0
 /// <summary>
 /// Update a Project Creates a new configuration revision for a project.
 /// </summary>
 /// <exception cref="Ory.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="projectId">Project ID  The project&#39;s ID.</param>
 /// <param name="clientProjectPatch"> (optional)</param>
 /// <returns>ClientProject</returns>
 public ClientProject UpdateProject(string projectId, ClientProjectPatch clientProjectPatch = default(ClientProjectPatch))
 {
     Ory.Client.Client.ApiResponse <ClientProject> localVarResponse = UpdateProjectWithHttpInfo(projectId, clientProjectPatch);
     return(localVarResponse.Data);
 }
Пример #2
0
        /// <summary>
        /// Update a Project Creates a new configuration revision for a project.
        /// </summary>
        /// <exception cref="Ory.Client.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="projectId">Project ID  The project&#39;s ID.</param>
        /// <param name="clientProjectPatch"> (optional)</param>
        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
        /// <returns>Task of ClientProject</returns>
        public async System.Threading.Tasks.Task <ClientProject> UpdateProjectAsync(string projectId, ClientProjectPatch clientProjectPatch = default(ClientProjectPatch), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Ory.Client.Client.ApiResponse <ClientProject> localVarResponse = await UpdateProjectWithHttpInfoAsync(projectId, clientProjectPatch, cancellationToken).ConfigureAwait(false);

            return(localVarResponse.Data);
        }
Пример #3
0
 /// <summary>
 /// List All Projects Lists all projects you have access to.
 /// </summary>
 /// <exception cref="Ory.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <returns>List&lt;ClientProject&gt;</returns>
 public List <ClientProject> ListProjects()
 {
     Ory.Client.Client.ApiResponse <List <ClientProject> > localVarResponse = ListProjectsWithHttpInfo();
     return(localVarResponse.Data);
 }
Пример #4
0
        /// <summary>
        /// List All Projects Lists all projects you have access to.
        /// </summary>
        /// <exception cref="Ory.Client.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
        /// <returns>Task of List&lt;ClientProject&gt;</returns>
        public async System.Threading.Tasks.Task <List <ClientProject> > ListProjectsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Ory.Client.Client.ApiResponse <List <ClientProject> > localVarResponse = await ListProjectsWithHttpInfoAsync(cancellationToken).ConfigureAwait(false);

            return(localVarResponse.Data);
        }
Пример #5
0
 /// <summary>
 /// Get a Project Get a projects you have access to by its ID.
 /// </summary>
 /// <exception cref="Ory.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="projectId">Project ID  The project&#39;s ID.</param>
 /// <returns>ClientProject</returns>
 public ClientProject GetProject(string projectId)
 {
     Ory.Client.Client.ApiResponse <ClientProject> localVarResponse = GetProjectWithHttpInfo(projectId);
     return(localVarResponse.Data);
 }
Пример #6
0
 /// <summary>
 /// Create a Project Creates a new project.
 /// </summary>
 /// <exception cref="Ory.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="clientProjectPatch"> (optional)</param>
 /// <returns>ClientProject</returns>
 public ClientProject CreateProject(ClientProjectPatch clientProjectPatch = default(ClientProjectPatch))
 {
     Ory.Client.Client.ApiResponse <ClientProject> localVarResponse = CreateProjectWithHttpInfo(clientProjectPatch);
     return(localVarResponse.Data);
 }
Пример #7
0
        /// <summary>
        /// Check HTTP Server and Database Status This endpoint returns a HTTP 200 status code when Ory Kratos is up running and the environment dependencies (e.g. the database) are responsive as well.  If the service supports TLS Edge Termination, this endpoint does not require the &#x60;X-Forwarded-Proto&#x60; header to be set.  Be aware that if you are running multiple nodes of Ory Kratos, the health status will never refer to the cluster state, only to a single instance.
        /// </summary>
        /// <exception cref="Ory.Client.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
        /// <returns>Task of ClientInlineResponse200</returns>
        public async System.Threading.Tasks.Task <ClientInlineResponse200> IsReadyAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Ory.Client.Client.ApiResponse <ClientInlineResponse200> localVarResponse = await IsReadyWithHttpInfoAsync(cancellationToken).ConfigureAwait(false);

            return(localVarResponse.Data);
        }
Пример #8
0
 /// <summary>
 /// Check HTTP Server and Database Status This endpoint returns a HTTP 200 status code when Ory Kratos is up running and the environment dependencies (e.g. the database) are responsive as well.  If the service supports TLS Edge Termination, this endpoint does not require the &#x60;X-Forwarded-Proto&#x60; header to be set.  Be aware that if you are running multiple nodes of Ory Kratos, the health status will never refer to the cluster state, only to a single instance.
 /// </summary>
 /// <exception cref="Ory.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <returns>ClientInlineResponse200</returns>
 public ClientInlineResponse200 IsReady()
 {
     Ory.Client.Client.ApiResponse <ClientInlineResponse200> localVarResponse = IsReadyWithHttpInfo();
     return(localVarResponse.Data);
 }
Пример #9
0
 /// <summary>
 /// Return Running Software Version. This endpoint returns the version of Ory Kratos.  If the service supports TLS Edge Termination, this endpoint does not require the &#x60;X-Forwarded-Proto&#x60; header to be set.  Be aware that if you are running multiple nodes of this service, the version will never refer to the cluster state, only to a single instance.
 /// </summary>
 /// <exception cref="Ory.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <returns>ClientInlineResponse2001</returns>
 public ClientInlineResponse2001 GetVersion()
 {
     Ory.Client.Client.ApiResponse <ClientInlineResponse2001> localVarResponse = GetVersionWithHttpInfo();
     return(localVarResponse.Data);
 }