Skip to content

Commit

Permalink
Update to python readme, dotNet model
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanpq committed Dec 12, 2024
1 parent bca6ea5 commit a670301
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ public class ClientReadChangesOptions : IClientReadChangesOptions {
/// <inheritdoc />
public int? PageSize { get; set; }

/// <inheritdoc />
public DateTime? StartTime {get; set; }

/// <inheritdoc />
public string? ContinuationToken { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ namespace {{packageName}}.Client.Model;

public interface IClientReadChangesRequest {
string Type { get; set; }
DateTime? StartTime {get; set; }
}

public class ClientReadChangesRequest : IClientReadChangesRequest, IEquatable<ClientReadChangesRequest>,
IValidatableObject {
public string Type { get; set; }
public DateTime? StartTime {get; set; }

public bool Equals(ClientReadChangesRequest input) {
if (input == null) {
Expand Down
3 changes: 1 addition & 2 deletions config/clients/python/template/README_calling_api.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,9 @@ Reads the list of historical relationship tuple writes and deletes.
options = {
# You can rely on the model id set in the configuration or override it for this specific request
"page_size": "25",
"start_time": "2022-01-01T00:00:00Z",
"continuation_token": "eyJwayI6IkxBVEVTVF9OU0NPTkZJR19hdXRoMHN0b3JlIiwic2siOiIxem1qbXF3MWZLZExTcUoyN01MdTdqTjh0cWgifQ=="
}
body = ClientReadChangesRequest(type="document")
body = ClientReadChangesRequest(type="document", start_time="2022-01-01T00:00:00Z")

response = await fga_client.read_changes(body, options)
# response.continuation_token = ...
Expand Down

0 comments on commit a670301

Please sign in to comment.