Ejemplo n.º 1
0
 /// <summary>
 /// Create a Relation Tuple Use this endpoint to create a relation tuple.
 /// </summary>
 /// <exception cref="Ory.Keto.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="payload"> (optional)</param>
 /// <returns>KetoInternalRelationTuple</returns>
 public KetoInternalRelationTuple CreateRelationTuple(KetoInternalRelationTuple payload = default(KetoInternalRelationTuple))
 {
     Ory.Keto.Client.Client.ApiResponse <KetoInternalRelationTuple> localVarResponse = CreateRelationTupleWithHttpInfo(payload);
     return(localVarResponse.Data);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Create a Relation Tuple Use this endpoint to create a relation tuple.
        /// </summary>
        /// <exception cref="Ory.Keto.Client.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="payload"> (optional)</param>
        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
        /// <returns>Task of KetoInternalRelationTuple</returns>
        public async System.Threading.Tasks.Task <KetoInternalRelationTuple> CreateRelationTupleAsync(KetoInternalRelationTuple payload = default(KetoInternalRelationTuple), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Ory.Keto.Client.Client.ApiResponse <KetoInternalRelationTuple> localVarResponse = await CreateRelationTupleWithHttpInfoAsync(payload, cancellationToken).ConfigureAwait(false);

            return(localVarResponse.Data);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Check readiness status This endpoint returns a 200 status code when the HTTP server 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 this service, the health status will never refer to the cluster state, only to a single instance.
 /// </summary>
 /// <exception cref="Ory.Keto.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <returns>KetoHealthStatus</returns>
 public KetoHealthStatus IsInstanceReady()
 {
     Ory.Keto.Client.Client.ApiResponse <KetoHealthStatus> localVarResponse = IsInstanceReadyWithHttpInfo();
     return(localVarResponse.Data);
 }
Ejemplo n.º 4
0
        /// <summary>
        /// Check readiness status This endpoint returns a 200 status code when the HTTP server 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 this service, the health status will never refer to the cluster state, only to a single instance.
        /// </summary>
        /// <exception cref="Ory.Keto.Client.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
        /// <returns>Task of KetoHealthStatus</returns>
        public async System.Threading.Tasks.Task <KetoHealthStatus> IsInstanceReadyAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Ory.Keto.Client.Client.ApiResponse <KetoHealthStatus> localVarResponse = await IsInstanceReadyWithHttpInfoAsync(cancellationToken).ConfigureAwait(false);

            return(localVarResponse.Data);
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Get service version This endpoint returns the service version typically notated using semantic versioning.  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 health status will never refer to the cluster state, only to a single instance.
        /// </summary>
        /// <exception cref="Ory.Keto.Client.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
        /// <returns>Task of KetoVersion</returns>
        public async System.Threading.Tasks.Task <KetoVersion> GetVersionAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Ory.Keto.Client.Client.ApiResponse <KetoVersion> localVarResponse = await GetVersionWithHttpInfoAsync(cancellationToken).ConfigureAwait(false);

            return(localVarResponse.Data);
        }
Ejemplo n.º 6
0
 /// <summary>
 /// Get service version This endpoint returns the service version typically notated using semantic versioning.  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 health status will never refer to the cluster state, only to a single instance.
 /// </summary>
 /// <exception cref="Ory.Keto.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <returns>KetoVersion</returns>
 public KetoVersion GetVersion()
 {
     Ory.Keto.Client.Client.ApiResponse <KetoVersion> localVarResponse = GetVersionWithHttpInfo();
     return(localVarResponse.Data);
 }
Ejemplo n.º 7
0
        /// <summary>
        /// Check readiness status This endpoint returns a 200 status code when the HTTP server 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 this service, the health status will never refer to the cluster state, only to a single instance.
        /// </summary>
        /// <exception cref="Ory.Keto.Client.Client.ApiException">Thrown when fails to make API call</exception>
        /// <returns>Task of KetoHealthStatus</returns>
        public async System.Threading.Tasks.Task <KetoHealthStatus> IsInstanceReadyAsync()
        {
            Ory.Keto.Client.Client.ApiResponse <KetoHealthStatus> localVarResponse = await IsInstanceReadyAsyncWithHttpInfo();

            return(localVarResponse.Data);
        }
Ejemplo n.º 8
0
Archivo: WriteApi.cs Proyecto: ory/sdk
 /// <summary>
 /// Create a Relation Tuple Use this endpoint to create a relation tuple.
 /// </summary>
 /// <exception cref="Ory.Keto.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="payload"> (optional)</param>
 /// <returns>KetoRelationQuery</returns>
 public KetoRelationQuery CreateRelationTuple(KetoRelationQuery payload = default(KetoRelationQuery))
 {
     Ory.Keto.Client.Client.ApiResponse <KetoRelationQuery> localVarResponse = CreateRelationTupleWithHttpInfo(payload);
     return(localVarResponse.Data);
 }
Ejemplo n.º 9
0
        /// <summary>
        /// Get service version This endpoint returns the service version typically notated using semantic versioning.  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 health status will never refer to the cluster state, only to a single instance.
        /// </summary>
        /// <exception cref="Ory.Keto.Client.Client.ApiException">Thrown when fails to make API call</exception>
        /// <returns>Task of KetoVersion</returns>
        public async System.Threading.Tasks.Task <KetoVersion> GetVersionAsync()
        {
            Ory.Keto.Client.Client.ApiResponse <KetoVersion> localVarResponse = await GetVersionAsyncWithHttpInfo();

            return(localVarResponse.Data);
        }