Skip to content

Commit

Permalink
from generation
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyjames committed Aug 20, 2024
1 parent 7b3f882 commit 82a54c7
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,18 @@ src/OpenFga.Sdk/Client/Model/ClientBatchCheckOptions.cs
src/OpenFga.Sdk/Client/Model/ClientBatchCheckResponse.cs
src/OpenFga.Sdk/Client/Model/ClientCheckOptions.cs
src/OpenFga.Sdk/Client/Model/ClientCheckRequest.cs
src/OpenFga.Sdk/Client/Model/ClientConsistencyOptions.cs
src/OpenFga.Sdk/Client/Model/ClientCreateStoreOptions.cs
src/OpenFga.Sdk/Client/Model/ClientCreateStoreRequest.cs
src/OpenFga.Sdk/Client/Model/ClientExpandOptions.cs
src/OpenFga.Sdk/Client/Model/ClientExpandRequest.cs
src/OpenFga.Sdk/Client/Model/ClientListObjectsOptions.cs
src/OpenFga.Sdk/Client/Model/ClientListObjectsRequest.cs
src/OpenFga.Sdk/Client/Model/ClientListRelationsOptions.cs
src/OpenFga.Sdk/Client/Model/ClientListRelationsRequest.cs
src/OpenFga.Sdk/Client/Model/ClientListRelationsResponse.cs
src/OpenFga.Sdk/Client/Model/ClientListStoresOptions.cs
src/OpenFga.Sdk/Client/Model/ClientListUsersOptions.cs
src/OpenFga.Sdk/Client/Model/ClientListUsersRequest.cs
src/OpenFga.Sdk/Client/Model/ClientPaginationOptions.cs
src/OpenFga.Sdk/Client/Model/ClientReadAssertionsOptions.cs
Expand Down
3 changes: 1 addition & 2 deletions src/OpenFga.Sdk.Test/Client/OpenFgaClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,7 @@ public async Task CheckTest() {
Assert.IsType<CheckResponse>(response);
Assert.True(response.Allowed);
}

/// <summary>
/// Test Check with Consistency
/// </summary>
Expand Down Expand Up @@ -1106,7 +1106,6 @@ public async Task CheckWithConsistencyTest() {
Assert.IsType<CheckResponse>(response);
Assert.True(response.Allowed);
}

/// <summary>
/// Test BatchCheck
/// </summary>
Expand Down
5 changes: 3 additions & 2 deletions src/OpenFga.Sdk/Client/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ public async Task<ListObjectsResponse> ListObjects(IClientListObjectsRequest bod
Consistency = options?.Consistency,
}, cancellationToken);


/**
* ListRelations - List all the relations a user has with an object (evaluates)
*/
Expand Down Expand Up @@ -428,8 +429,8 @@ public async Task<ListUsersResponse> ListUsers(IClientListUsersRequest body,
new List<TupleKey>(),
Context = body.Context,
AuthorizationModelId = GetAuthorizationModelId(options),
Consistency = options?.Consistency,
}, cancellationToken);
Consistency = options?.Consistency
});

/**************
* Assertions *
Expand Down
13 changes: 13 additions & 0 deletions src/OpenFga.Sdk/Client/Model/ClientConsistencyOptions.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
//
// OpenFGA/.NET SDK for OpenFGA
//
// API version: 1.x
// Website: https://openfga.dev
// Documentation: https://openfga.dev/docs
// Support: https://openfga.dev/community
// License: [Apache-2.0](https://github.com/openfga/dotnet-sdk/blob/main/LICENSE)
//
// NOTE: This file was auto generated. DO NOT EDIT.
//


using OpenFga.Sdk.Model;

namespace OpenFga.Sdk.Client.Model;
Expand Down

0 comments on commit 82a54c7

Please sign in to comment.