11{ {> partial_header} }
2+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
23package { {packageName} }
34
45{ {#operations} }
@@ -16,6 +17,7 @@ import (
1617
1718{ {#generateInterfaces} }
1819
20+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
1921type { {classname} } interface {
2022 {{#operation} }
2123 /*
@@ -36,24 +38,21 @@ type {{classname}} interface {
3638@param { {paramName} }{ {#description} } { {{.} }}{ {/description} }{ {/pathParams} }
3739@return { {{.} }}{ {/returnType} }
3840
39- { {#isDeprecated} }
40- Deprecated: { {{unescapedNotes} }}
41- { {/isDeprecated} }
41+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
4242 */
4343 { {nickname} }Execute(ctx context.Context{ {#pathParams} }, { {paramName} } { {{dataType} }}{ {/pathParams} }) ({ {#returnType} }{ {^isArray} }{ {^returnTypeIsPrimitive} }{ {^isResponseFile} }*{ {/isResponseFile} }{ {/returnTypeIsPrimitive} }{ {/isArray} }{ {{.} }}, { {/returnType} } error)
4444 { {/operation} }
4545}
4646
4747{ {#operation} }
48+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
4849type { {#structPrefix} }{ {&classname} }{ {/structPrefix} }{ {^structPrefix} }Api{ {/structPrefix} }{ {operationId} }Request interface {
4950{{#allParams} }
5051{ {^isPathParam} }
5152{ {#description} }
5253// { {.} }
5354{ {/description} }
54- { {#isDeprecated} }
55- // Deprecated
56- { {/isDeprecated} }
55+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
5756{ {vendorExtensions.x-export-param-name} }({ {paramName} } { {{dataType} }}) { {#structPrefix} }{ {&classname} }{ {/structPrefix} }{ {^structPrefix} }Api{ {/structPrefix} }{ {operationId} }Request
5857{ {/isPathParam} }
5958{ {/allParams} }
@@ -64,9 +63,11 @@ type {{#structPrefix}}{{&classname}}{{/structPrefix}}{{^structPrefix}}Api{{/stru
6463{ {/generateInterfaces} }
6564
6665// { {classname} }Service { {classname} } service
66+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
6767type { {classname} }Service service
6868{ {#operation} }
6969
70+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
7071type { {#structPrefix} }{ {&classname} }{ {/structPrefix} }{ {operationId} }Request struct {
7172 ctx context.Context
7273 apiService *{{classname} }Service
@@ -80,10 +81,7 @@ type {{#structPrefix}}{{&classname}}{{/structPrefix}}{{operationId}}Request stru
8081{ {#description} }
8182// { {.} }
8283{ {/description} }
83- { {#isDeprecated} }
84- // Deprecated
85- { {/isDeprecated} }
86-
84+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
8785func (r { {#structPrefix} }{ {&classname} }{ {/structPrefix} }{ {operationId} }Request) { {vendorExtensions.x-export-param-name} }({ {paramName} } { {{dataType} }}) { {#structPrefix} }{ {&classname} }{ {/structPrefix} }{ {^structPrefix} }Api{ {/structPrefix} }{ {operationId} }Request {
8886 r.{{paramName} } = { {^isFile} }& { {/isFile} }{ {paramName} }
8987 return r
@@ -92,6 +90,7 @@ func (r {{#structPrefix}}{{&classname}}{{/structPrefix}}{{operationId}}Request)
9290{ {/isPathParam} }
9391{ {/allParams} }
9492
93+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
9594func (r { {#structPrefix} }{ {&classname} }{ {/structPrefix} }{ {operationId} }Request) Execute() ({ {#returnType} }{ {^isArray} }{ {^returnTypeIsPrimitive} }{ {^isResponseFile} }*{ {/isResponseFile} }{ {/returnTypeIsPrimitive} }{ {/isArray} }{ {{.} }}, { {/returnType} } error) {
9695 var (
9796 localVarHTTPMethod = http.Method{{httpMethod} }
@@ -412,8 +411,8 @@ func (r {{#structPrefix}}{{&classname}}{{/structPrefix}}{{operationId}}Request)
412411{ {operationId} }: { {{summary} }}{ {^summary} }Method for { {operationId} }{ {/summary} }
413412{ {#notes} }
414413
415- { {#isDeprecated} }Deprecated: { {/isDeprecated} }{ {{unescapedNotes} }}
416414{ {/notes} }
415+ Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
417416
418417 @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().{ {#pathParams} }
419418 @param { {paramName} }{ {#description} } { {{.} }}{ {/description} }{ {/pathParams} }
@@ -429,11 +428,7 @@ func (a *APIClient) {{{nickname}}}(ctx context.Context{{#pathParams}}, {{paramNa
429428 }
430429}
431430
432- { {#isDeprecated} }
433- /*
434- Deprecated: { {{unescapedNotes} }}
435- */
436- { {/isDeprecated} }
431+ // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
437432func (a *APIClient) { {{nickname} }}Execute(ctx context.Context{ {#pathParams} }, { {paramName} } { {{dataType} }}{ {/pathParams} }) ({ {#returnType} }{ {^isArray} }{ {^returnTypeIsPrimitive} }{ {^isResponseFile} }*{ {/isResponseFile} }{ {/returnTypeIsPrimitive} }{ {/isArray} }{ {{.} }}, { {/returnType} } error){
438433 r := {{#structPrefix} }{ {&classname} }{ {/structPrefix} }{ {operationId} }Request{
439434 apiService: a.defaultApi,
0 commit comments