From 1f297d8f0b791f2790559126bd3a42bda019393c Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Tue, 18 Feb 2025 13:55:35 +0800 Subject: [PATCH 1/3] update doc --- .../docs/docs/howtos/Generate client libraries/11etag.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/src/content/docs/docs/howtos/Generate client libraries/11etag.mdx b/website/src/content/docs/docs/howtos/Generate client libraries/11etag.mdx index 646ee797e8..21c2302fcc 100644 --- a/website/src/content/docs/docs/howtos/Generate client libraries/11etag.mdx +++ b/website/src/content/docs/docs/howtos/Generate client libraries/11etag.mdx @@ -34,11 +34,11 @@ def get(self, *, etag: Optional[str] = None, match_condition: Optional[MatchCond ``` ```csharp - +# TODO ``` ```typescript - +# TODO ``` ```java @@ -48,7 +48,7 @@ public Response get(MatchConditions matchConditions); ``` ```go - +# TODO ``` From f1ee82bc8d793357056044d5b226431dadae3841 Mon Sep 17 00:00:00 2001 From: JiaqiZhang-Dev Date: Wed, 19 Feb 2025 20:06:45 +0800 Subject: [PATCH 2/3] add go doc --- .../docs/docs/howtos/Generate client libraries/11etag.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/src/content/docs/docs/howtos/Generate client libraries/11etag.mdx b/website/src/content/docs/docs/howtos/Generate client libraries/11etag.mdx index 21c2302fcc..cf06375681 100644 --- a/website/src/content/docs/docs/howtos/Generate client libraries/11etag.mdx +++ b/website/src/content/docs/docs/howtos/Generate client libraries/11etag.mdx @@ -48,7 +48,7 @@ public Response get(MatchConditions matchConditions); ``` ```go -# TODO +func (client *Client) Get(ctx context.Context, options *ClientGetOptions) (ClientGetResponse, error) ``` From 2bba3c45eba15ed27692fabef9b2010c1b96eb3c Mon Sep 17 00:00:00 2001 From: JiaqiZhang-Dev Date: Thu, 20 Feb 2025 08:14:30 +0800 Subject: [PATCH 3/3] add ClientGetOptions struct --- .../docs/docs/howtos/Generate client libraries/11etag.mdx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/website/src/content/docs/docs/howtos/Generate client libraries/11etag.mdx b/website/src/content/docs/docs/howtos/Generate client libraries/11etag.mdx index cf06375681..a15ba2b6dc 100644 --- a/website/src/content/docs/docs/howtos/Generate client libraries/11etag.mdx +++ b/website/src/content/docs/docs/howtos/Generate client libraries/11etag.mdx @@ -48,6 +48,14 @@ public Response get(MatchConditions matchConditions); ``` ```go +type ClientGetOptions struct { + // The request should only proceed if an entity matches this string. + IfMatch *string + + // The request should only proceed if no entity matches this string. + IfNoneMatch *string +} + func (client *Client) Get(ctx context.Context, options *ClientGetOptions) (ClientGetResponse, error) ```