From a6703014bb9b8abc053bd2dc8bda63eec9e89788 Mon Sep 17 00:00:00 2001 From: Ryan Quinn Date: Thu, 12 Dec 2024 11:43:16 -0600 Subject: [PATCH] Update to python readme, dotNet model --- .../template/Client/Model/ClientReadChangesOptions.mustache | 3 --- .../template/Client/Model/ClientReadChangesRequest.mustache | 2 ++ config/clients/python/template/README_calling_api.mustache | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/config/clients/dotnet/template/Client/Model/ClientReadChangesOptions.mustache b/config/clients/dotnet/template/Client/Model/ClientReadChangesOptions.mustache index 8996e51b..117930b7 100644 --- a/config/clients/dotnet/template/Client/Model/ClientReadChangesOptions.mustache +++ b/config/clients/dotnet/template/Client/Model/ClientReadChangesOptions.mustache @@ -16,9 +16,6 @@ public class ClientReadChangesOptions : IClientReadChangesOptions { /// public int? PageSize { get; set; } - /// - public DateTime? StartTime {get; set; } - /// public string? ContinuationToken { get; set; } } diff --git a/config/clients/dotnet/template/Client/Model/ClientReadChangesRequest.mustache b/config/clients/dotnet/template/Client/Model/ClientReadChangesRequest.mustache index d6b86858..25401e5e 100644 --- a/config/clients/dotnet/template/Client/Model/ClientReadChangesRequest.mustache +++ b/config/clients/dotnet/template/Client/Model/ClientReadChangesRequest.mustache @@ -7,11 +7,13 @@ namespace {{packageName}}.Client.Model; public interface IClientReadChangesRequest { string Type { get; set; } + DateTime? StartTime {get; set; } } public class ClientReadChangesRequest : IClientReadChangesRequest, IEquatable, IValidatableObject { public string Type { get; set; } + public DateTime? StartTime {get; set; } public bool Equals(ClientReadChangesRequest input) { if (input == null) { diff --git a/config/clients/python/template/README_calling_api.mustache b/config/clients/python/template/README_calling_api.mustache index edd34d9f..4d4a580a 100644 --- a/config/clients/python/template/README_calling_api.mustache +++ b/config/clients/python/template/README_calling_api.mustache @@ -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 = ...