From 2eee6d6bf69ca2b34bf8a9f84a8b9cc9df99c333 Mon Sep 17 00:00:00 2001 From: tdakkota Date: Wed, 12 Oct 2022 20:23:43 +0300 Subject: [PATCH 01/14] feat(parser): pass webhook locator --- openapi/parser/parse_webhook.go | 1 + openapi/webhook.go | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/openapi/parser/parse_webhook.go b/openapi/parser/parse_webhook.go index a5ec9aac3..028eeacc3 100644 --- a/openapi/parser/parse_webhook.go +++ b/openapi/parser/parse_webhook.go @@ -18,6 +18,7 @@ func (p *parser) parseWebhook(name string, item *ogen.PathItem, ctx *jsonpointer return openapi.Webhook{ Name: name, Operations: pi, + Locator: item.Common.Locator, }, nil } diff --git a/openapi/webhook.go b/openapi/webhook.go index d7e29e238..c50f2c12c 100644 --- a/openapi/webhook.go +++ b/openapi/webhook.go @@ -1,9 +1,13 @@ package openapi +import "github.com/ogen-go/ogen/internal/location" + // Webhook is an OpenAPI Webhook. type Webhook struct { // Name of the webhook. Name string // Operations of the webhook's Path Item. Operations []*Operation + + location.Locator `json:"-" yaml:"-"` } From dd7aa508a33fb7fa8889ff1e3a55eb4fcf7a2432 Mon Sep 17 00:00:00 2001 From: tdakkota Date: Tue, 11 Oct 2022 20:35:49 +0300 Subject: [PATCH 02/14] refactor(gen): move span option declaration to the `globals.tmpl` --- gen/_template/client.tmpl | 3 --- gen/_template/globals.tmpl | 13 +++++++++++++ gen/_template/handlers.tmpl | 3 --- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/gen/_template/client.tmpl b/gen/_template/client.tmpl index f486e98ed..459830bd3 100644 --- a/gen/_template/client.tmpl +++ b/gen/_template/client.tmpl @@ -15,9 +15,6 @@ var _ Handler = struct{ }{} {{- end }} -// Allocate option closure once. -var clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) - // Client implements OAS client. type Client struct { serverURL *url.URL diff --git a/gen/_template/globals.tmpl b/gen/_template/globals.tmpl index c592354fb..5beac8463 100644 --- a/gen/_template/globals.tmpl +++ b/gen/_template/globals.tmpl @@ -24,4 +24,17 @@ var ratMap = map[string]*big.Rat{ } {{- end }} +{{- if or $.ServerEnabled $.ClientEnabled }} +var ( + {{- if $.ClientEnabled }} + // Allocate option closure once. + clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) + {{- end }} + {{- if $.ServerEnabled }} + // Allocate option closure once. + serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) + {{- end }} +) +{{- end }} + {{- end }} diff --git a/gen/_template/handlers.tmpl b/gen/_template/handlers.tmpl index 703a72fea..584fcbe97 100644 --- a/gen/_template/handlers.tmpl +++ b/gen/_template/handlers.tmpl @@ -4,9 +4,6 @@ {{ $pkg := $.Package }} {{ template "header" $ }} -// Allocate option closure once. -var serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) - {{- range $op := $.Operations }} // handle{{ $op.Name }}Request handles {{ $op.PrettyOperationID }} operation. // From 854407275ef36b7618056da4a3cef0ad6c66d6e2 Mon Sep 17 00:00:00 2001 From: tdakkota Date: Wed, 12 Oct 2022 20:26:12 +0300 Subject: [PATCH 03/14] refactor(gen): move common client logic to `baseClient` type --- gen/_template/cfg.tmpl | 24 ++++++++++++++++++++++++ gen/_template/client.tmpl | 27 +++++++++------------------ 2 files changed, 33 insertions(+), 18 deletions(-) diff --git a/gen/_template/cfg.tmpl b/gen/_template/cfg.tmpl index a709dec4a..404266ce7 100644 --- a/gen/_template/cfg.tmpl +++ b/gen/_template/cfg.tmpl @@ -59,6 +59,30 @@ func newConfig(opts ...Option) config { return cfg } +{{- if $.ClientEnabled }} +type baseClient struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (cfg config) baseClient() (c baseClient, err error) { + c = baseClient{cfg: cfg} + if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { + return c, err + } + if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { + return c, err + } + if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + return c, err + } + return c, nil +} +{{- end }} + +// Option is config option. type Option interface { apply(*config) } diff --git a/gen/_template/client.tmpl b/gen/_template/client.tmpl index 459830bd3..69f9e15db 100644 --- a/gen/_template/client.tmpl +++ b/gen/_template/client.tmpl @@ -21,10 +21,7 @@ type Client struct { {{- if $.Securities }} sec SecuritySource {{- end }} - cfg config - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + baseClient } // NewClient initializes new Client defined by OAS. @@ -33,23 +30,17 @@ func NewClient(serverURL string, {{- if $.Securities }}sec SecuritySource,{{- en if err != nil { return nil, err } - c := &Client{ - cfg: newConfig(opts...), + c, err := newConfig(opts...).baseClient() + if err != nil { + return nil, err + } + return &Client{ + serverURL: u, {{- if $.Securities }} sec: sec, {{- end }} - serverURL: u, - } - if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { - return nil, err - } - if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { - return nil, err - } - if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { - return nil, err - } - return c, nil + baseClient: c, + }, nil } type serverURLKey struct{} From 529f7a154d45a2f0e2b4e9cc72b782d5e052d155 Mon Sep 17 00:00:00 2001 From: tdakkota Date: Wed, 12 Oct 2022 21:02:43 +0300 Subject: [PATCH 04/14] refactor(gen): move common server logic to `baseServer` type --- gen/_template/cfg.tmpl | 31 +++++++++++++++++++++++++++++++ gen/_template/server.tmpl | 29 +++++++++-------------------- 2 files changed, 40 insertions(+), 20 deletions(-) diff --git a/gen/_template/cfg.tmpl b/gen/_template/cfg.tmpl index 404266ce7..3dc51b053 100644 --- a/gen/_template/cfg.tmpl +++ b/gen/_template/cfg.tmpl @@ -59,6 +59,37 @@ func newConfig(opts ...Option) config { return cfg } +{{- if $.ServerEnabled }} +type baseServer struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (s baseServer) notFound(w http.ResponseWriter, r *http.Request) { + s.cfg.NotFound(w, r) +} + +func (s baseServer) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { + s.cfg.MethodNotAllowed(w, r, allowed) +} + +func (cfg config) baseServer() (s baseServer, err error) { + s = baseServer{cfg: cfg} + if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { + return s, err + } + if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { + return s, err + } + if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + return s, err + } + return s, nil +} +{{- end }} + {{- if $.ClientEnabled }} type baseClient struct { cfg config diff --git a/gen/_template/server.tmpl b/gen/_template/server.tmpl index 7ca5b1d14..9875ff67f 100644 --- a/gen/_template/server.tmpl +++ b/gen/_template/server.tmpl @@ -28,32 +28,21 @@ type Server struct { {{- if $.Securities }} sec SecurityHandler {{- end }} - cfg config - - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + baseServer } // NewServer creates new Server. func NewServer(h Handler, {{- if $.Securities }}sec SecurityHandler,{{- end }}opts ...Option) (*Server, error) { - s := &Server{ - h: h, + s, err := newConfig(opts...).baseServer() + if err != nil { + return nil, err + } + return &Server{ + h: h, {{- if $.Securities }} sec: sec, {{- end }} - cfg: newConfig(opts...), - } - var err error - if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { - return nil, err - } - if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { - return nil, err - } - if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { - return nil, err - } - return s, nil + baseServer: s, + }, nil } {{ end }} From ddb33f10f7c15f4b4368b6552a8e0cf74f0b9b1d Mon Sep 17 00:00:00 2001 From: tdakkota Date: Wed, 12 Oct 2022 22:32:42 +0300 Subject: [PATCH 05/14] refactor(gen): extract per-operation templates to re-use them --- gen/_template/client.tmpl | 12 ++++++++++-- gen/_template/handlers.tmpl | 9 +++++++-- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/gen/_template/client.tmpl b/gen/_template/client.tmpl index 69f9e15db..1d4f18641 100644 --- a/gen/_template/client.tmpl +++ b/gen/_template/client.tmpl @@ -59,11 +59,20 @@ func (c *Client) requestURL(ctx context.Context) *url.URL { } {{ range $op := $.Operations }} + {{ template "client/operation" $op }} +{{ end }} + +{{ end }} + +{{ define "client/operation" }} +{{- /*gotype: github.com/ogen-go/ogen/gen/ir.Operation*/ -}}{{ $op := $ }} // {{ $op.Name }} invokes {{ $op.PrettyOperationID }} operation. // {{- template "godoc_def" $op.GoDoc }} // {{ upper $op.Spec.HTTPMethod }} {{ $op.Spec.Path }} -func (c *Client) {{ $op.Name }}(ctx context.Context {{ if $op.Request }}, request {{ $op.Request.Type.Go }}{{ end }}{{ if $op.Params }}, params {{ $op.Name }}Params {{ end }}) (res {{ $op.Responses.Type.Go }}, err error) { +func (c *Client) {{ $op.Name }}(ctx context.Context + {{- if $op.Request }}, request {{ $op.Request.Type.Go }}{{ end }} + {{- if $op.Params }}, params {{ $op.Name }}Params {{ end }}) (res {{ $op.Responses.Type.Go }}, err error) { {{- $hasOTELAttrs := false }} {{- if $op.Spec.OperationID }} {{- $hasOTELAttrs = true }} @@ -186,7 +195,6 @@ func (c *Client) {{ $op.Name }}(ctx context.Context {{ if $op.Request }}, reques return result, nil } {{ end }} -{{ end }} {{ define "encode_cookie_params" }} {{- range $param := $.CookieParams }}{{/* Range over params */}} diff --git a/gen/_template/handlers.tmpl b/gen/_template/handlers.tmpl index 584fcbe97..648e1063f 100644 --- a/gen/_template/handlers.tmpl +++ b/gen/_template/handlers.tmpl @@ -5,6 +5,13 @@ {{ template "header" $ }} {{- range $op := $.Operations }} + {{- template "handlers/operation" $op }} +{{ end }} + +{{ end }} + +{{ define "handlers/operation "}} +{{- /*gotype: github.com/ogen-go/ogen/gen/ir.Operation*/ -}}{{ $op := $ }} // handle{{ $op.Name }}Request handles {{ $op.PrettyOperationID }} operation. // // {{ upper $op.Spec.HTTPMethod }} {{ $op.Spec.Path }} @@ -162,5 +169,3 @@ func (s *Server) handle{{ $op.Name }}Request(args [{{ $op.PathParamsCount }}]str } } {{ end }} - -{{ end }} From 9719b9168b2a1172338ea7d494f00b13c780e517 Mon Sep 17 00:00:00 2001 From: tdakkota Date: Wed, 12 Oct 2022 22:38:12 +0300 Subject: [PATCH 06/14] refactor(gen): use getter for OTEL attributes --- gen/_template/client.tmpl | 6 ++++-- gen/_template/handlers.tmpl | 6 ++++-- gen/ir/operation.go | 24 ++++++++++++++++++++++++ 3 files changed, 32 insertions(+), 4 deletions(-) diff --git a/gen/_template/client.tmpl b/gen/_template/client.tmpl index 1d4f18641..484a9ebf9 100644 --- a/gen/_template/client.tmpl +++ b/gen/_template/client.tmpl @@ -74,10 +74,12 @@ func (c *Client) {{ $op.Name }}(ctx context.Context {{- if $op.Request }}, request {{ $op.Request.Type.Go }}{{ end }} {{- if $op.Params }}, params {{ $op.Name }}Params {{ end }}) (res {{ $op.Responses.Type.Go }}, err error) { {{- $hasOTELAttrs := false }} - {{- if $op.Spec.OperationID }} + {{- with $attrs := $op.OTELAttributes }} {{- $hasOTELAttrs = true }} otelAttrs := []attribute.KeyValue{ - otelogen.OperationID({{ quote $op.Spec.OperationID }}), + {{- range $attr := $attrs }} + {{ $attr.String }}, + {{- end }} } {{- else }} var otelAttrs []attribute.KeyValue diff --git a/gen/_template/handlers.tmpl b/gen/_template/handlers.tmpl index 648e1063f..87c29595e 100644 --- a/gen/_template/handlers.tmpl +++ b/gen/_template/handlers.tmpl @@ -17,10 +17,12 @@ // {{ upper $op.Spec.HTTPMethod }} {{ $op.Spec.Path }} func (s *Server) handle{{ $op.Name }}Request(args [{{ $op.PathParamsCount }}]string, w http.ResponseWriter, r *http.Request) { {{- $hasOTELAttrs := false }} - {{- if $op.Spec.OperationID }} + {{- with $attrs := $op.OTELAttributes }} {{- $hasOTELAttrs = true }} otelAttrs := []attribute.KeyValue{ - otelogen.OperationID({{ quote $op.Spec.OperationID }}), + {{- range $attr := $attrs }} + {{ $attr.String }}, + {{- end }} } {{- else }} var otelAttrs []attribute.KeyValue diff --git a/gen/ir/operation.go b/gen/ir/operation.go index c344685ee..990a62b92 100644 --- a/gen/ir/operation.go +++ b/gen/ir/operation.go @@ -21,6 +21,30 @@ type Operation struct { Spec *openapi.Operation } +// OTELAttribute represents OpenTelemetry attribute defined by otelogen package. +type OTELAttribute struct { + // Key is a name of the attribute constructor in otelogen package. + Key string + // Value is a value of the attribute. + Value string +} + +// String returns call to the constructor of this attribute. +func (a OTELAttribute) String() string { + return fmt.Sprintf("otelogen.%s(%q)", a.Key, a.Value) +} + +// OTELAttributes returns OpenTelemetry attributes for this operation. +func (op Operation) OTELAttributes() (r []OTELAttribute) { + if id := op.Spec.OperationID; id != "" { + r = append(r, OTELAttribute{ + Key: "OperationID", + Value: id, + }) + } + return r +} + func (op Operation) PrettyOperationID() string { s := op.Spec if id := s.OperationID; id != "" { From 7d994a9a9fe97384bbd00e69411c20fcfa951aa4 Mon Sep 17 00:00:00 2001 From: tdakkota Date: Thu, 13 Oct 2022 01:12:51 +0300 Subject: [PATCH 07/14] feat(otelogen): add webhook name key --- otelogen/tracer.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/otelogen/tracer.go b/otelogen/tracer.go index 7227b93f2..7a0726d33 100644 --- a/otelogen/tracer.go +++ b/otelogen/tracer.go @@ -7,6 +7,8 @@ import ( const ( // OperationIDKey by OpenAPI specification. OperationIDKey = attribute.Key("oas.operation") + // WebhookNameKey by OpenAPI specification. + WebhookNameKey = attribute.Key("oas.webhook.name") ) // OperationID attribute. @@ -16,3 +18,11 @@ func OperationID(v string) attribute.KeyValue { Value: attribute.StringValue(v), } } + +// WebhookName attribute. +func WebhookName(v string) attribute.KeyValue { + return attribute.KeyValue{ + Key: WebhookNameKey, + Value: attribute.StringValue(v), + } +} From 2b42e46f0fb5973ff16f79a1e69d8b65baad55ac Mon Sep 17 00:00:00 2001 From: tdakkota Date: Thu, 13 Oct 2022 01:13:13 +0300 Subject: [PATCH 08/14] feat(gen): initial webhook support --- gen/_template/client.tmpl | 44 +++++++++- gen/_template/handlers.tmpl | 22 +++-- gen/_template/parameters.tmpl | 25 ++++-- gen/_template/request_decode.tmpl | 18 ++-- gen/_template/request_encode.tmpl | 12 ++- gen/_template/response_decode.tmpl | 19 +++-- gen/_template/response_encode.tmpl | 34 +++++--- gen/_template/router.tmpl | 54 ++++++++++-- gen/_template/server.tmpl | 39 ++++++++- gen/gen_operation.go | 9 +- gen/generator.go | 128 ++++++++++++++++++++++++----- gen/ir/operation.go | 13 +++ gen/router.go | 69 ++++++++++++++++ gen/templates.go | 14 ++++ gen/write.go | 18 ++-- 15 files changed, 437 insertions(+), 81 deletions(-) diff --git a/gen/_template/client.tmpl b/gen/_template/client.tmpl index 484a9ebf9..75ebabab4 100644 --- a/gen/_template/client.tmpl +++ b/gen/_template/client.tmpl @@ -15,6 +15,7 @@ var _ Handler = struct{ }{} {{- end }} +{{- with $ops := $.Operations }} // Client implements OAS client. type Client struct { serverURL *url.URL @@ -58,9 +59,34 @@ func (c *Client) requestURL(ctx context.Context) *url.URL { return u } -{{ range $op := $.Operations }} +{{- range $op := $ops }} {{ template "client/operation" $op }} -{{ end }} +{{- end }} + +{{- end }} + +{{- with $ops := $.Webhooks }} +// WebhookClient implements webhook client. +type WebhookClient struct { + baseClient +} + +// NewWebhookClient initializes new WebhookClient. +func NewWebhookClient(opts ...Option) (*WebhookClient, error) { + c, err := newConfig(opts...).baseClient() + if err != nil { + return nil, err + } + return &WebhookClient{ + baseClient: c, + }, nil +} + +{{- range $op := $ops }} + {{ template "client/operation" $op }} +{{- end }} + +{{- end }} {{ end }} @@ -69,8 +95,11 @@ func (c *Client) requestURL(ctx context.Context) *url.URL { // {{ $op.Name }} invokes {{ $op.PrettyOperationID }} operation. // {{- template "godoc_def" $op.GoDoc }} +{{- if not $op.WebhookInfo }} // {{ upper $op.Spec.HTTPMethod }} {{ $op.Spec.Path }} -func (c *Client) {{ $op.Name }}(ctx context.Context +{{- end }} +func (c *{{ if $op.WebhookInfo }}Webhook{{ end }}Client) {{ $op.Name }}(ctx context.Context + {{- if $op.WebhookInfo }}, targetURL string{{ end }} {{- if $op.Request }}, request {{ $op.Request.Type.Go }}{{ end }} {{- if $op.Params }}, params {{ $op.Name }}Params {{ end }}) (res {{ $op.Responses.Type.Go }}, err error) { {{- $hasOTELAttrs := false }} @@ -149,7 +178,14 @@ func (c *Client) {{ $op.Name }}(ctx context.Context }() stage = "BuildURL" - {{- template "encode_path_parameters" $op }} + {{- if $op.WebhookInfo }} + u, err := url.Parse(targetURL) + if err != nil { + return res, errors.Wrap(err, "parse target URL") + } + {{- else }} + {{- template "encode_path_parameters" $op }} + {{- end }} {{ if $op.HasQueryParams }} stage = "EncodeQueryParams" diff --git a/gen/_template/handlers.tmpl b/gen/_template/handlers.tmpl index 87c29595e..bafdf87b4 100644 --- a/gen/_template/handlers.tmpl +++ b/gen/_template/handlers.tmpl @@ -1,21 +1,27 @@ -{{- /*gotype: github.com/ogen-go/ogen/gen.TemplateConfig*/ -}} - {{ define "handlers" }} +{{- /*gotype: github.com/ogen-go/ogen/gen.TemplateConfig*/ -}} {{ $pkg := $.Package }} {{ template "header" $ }} {{- range $op := $.Operations }} - {{- template "handlers/operation" $op }} + {{- template "handlers/operation" op_elem $op $ }} +{{ end }} + +{{- range $op := $.Webhooks }} + {{- template "handlers/operation" op_elem $op $ }} {{ end }} {{ end }} -{{ define "handlers/operation "}} -{{- /*gotype: github.com/ogen-go/ogen/gen/ir.Operation*/ -}}{{ $op := $ }} +{{ define "handlers/operation" }} +{{- /*gotype: github.com/ogen-go/ogen/gen.OperationElem*/ -}}{{ $op := $.Operation }} // handle{{ $op.Name }}Request handles {{ $op.PrettyOperationID }} operation. // +{{- template "godoc_def" $op.GoDoc }} +{{- if not $op.WebhookInfo }} // {{ upper $op.Spec.HTTPMethod }} {{ $op.Spec.Path }} -func (s *Server) handle{{ $op.Name }}Request(args [{{ $op.PathParamsCount }}]string, w http.ResponseWriter, r *http.Request) { +{{- end }} +func (s *{{ if $op.WebhookInfo }}Webhook{{ end }}Server) handle{{ $op.Name }}Request(args [{{ $op.PathParamsCount }}]string, w http.ResponseWriter, r *http.Request) { {{- $hasOTELAttrs := false }} {{- with $attrs := $op.OTELAttributes }} {{- $hasOTELAttrs = true }} @@ -148,8 +154,8 @@ func (s *Server) handle{{ $op.Name }}Request(args [{{ $op.PathParamsCount }}]str if err != nil { {{- /* It is not secure to expose internal error to client, but better than nothing. */ -}} recordError("Internal", err) - {{- if $.Error }} - if errRes, ok := errors.Into[*{{ $.ErrorType.Go }}](err); ok { + {{- if and $.Config.Error (not $op.WebhookInfo) }} + if errRes, ok := errors.Into[*{{ $.Config.ErrorType.Go }}](err); ok { encodeErrorResponse(*errRes, w, span) return } diff --git a/gen/_template/parameters.tmpl b/gen/_template/parameters.tmpl index c246fe6ae..d6f67aff0 100644 --- a/gen/_template/parameters.tmpl +++ b/gen/_template/parameters.tmpl @@ -4,19 +4,28 @@ {{ $pkg := $.Package }} {{ template "header" $ }} -{{- range $op := $.Operations }}{{/* Range over operations */}} -{{ if $op.Params }}{{/* Check parameters existence */}} +{{- range $op := $.Operations }}{{ if $op.Params }} + {{ template "parameters/operation" op_elem $op $ }} +{{ end }}{{- end }} + +{{- range $op := $.Webhooks }}{{ if $op.Params }} + {{ template "parameters/operation" op_elem $op $ }} +{{ end }}{{- end }} + +{{ end }} + +{{ define "parameters/operation" }} +{{- /*gotype: github.com/ogen-go/ogen/gen.OperationElem*/ -}}{{ $op := $.Operation }} +// {{ $op.Name }}Params is parameters of {{ $op.PrettyOperationID }} operation. type {{ $op.Name }}Params struct { - {{- range $p := $op.Params }} +{{- range $p := $op.Params }} {{- template "godoc" $p.GoDoc }} {{ $p.Name }} {{ $p.Type.Go }} - {{- end}} +{{- end }} } -{{- if $.ServerEnabled }} -{{- template "parameter_decoder" $op }} +{{- if $.Config.ServerEnabled }} + {{- template "parameter_decoder" $op }} {{- end }} -{{ end }}{{/* Check parameters existence */}} -{{ end }}{{/* Range over operations */}} {{ end }} diff --git a/gen/_template/request_decode.tmpl b/gen/_template/request_decode.tmpl index 65082fbaf..42c48a6cb 100644 --- a/gen/_template/request_decode.tmpl +++ b/gen/_template/request_decode.tmpl @@ -3,9 +3,19 @@ {{ $pkg := $.Package }} {{ template "header" $ }} -{{- range $op := $.Operations }} -{{- if $op.Request }} -func (s *Server) decode{{ $op.Name }}Request(r *http.Request) ( +{{- range $op := $.Operations }}{{ if $op.Request }} + {{ template "request_decoders/operation" $op }} +{{ end }}{{ end }} + +{{- range $op := $.Webhooks }}{{ if $op.Request }} + {{ template "request_decoders/operation" $op }} +{{ end }}{{ end }} + +{{ end }} + +{{ define "request_decoders/operation" }} +{{- /*gotype: github.com/ogen-go/ogen/gen/ir.Operation*/ -}}{{ $op := $ }} +func (s *{{ if $op.WebhookInfo }}Webhook{{ end }}Server) decode{{ $op.Name }}Request(r *http.Request) ( req {{ $op.Request.Type.Go }}, close func() error, rerr error, @@ -137,8 +147,6 @@ func (s *Server) decode{{ $op.Name }}Request(r *http.Request) ( return req, close, validate.InvalidContentType(ct) } } -{{- end }} -{{ end }} {{ end }} {{- define "decode_form_request" }} diff --git a/gen/_template/request_encode.tmpl b/gen/_template/request_encode.tmpl index d1f806abe..8b8eca926 100644 --- a/gen/_template/request_encode.tmpl +++ b/gen/_template/request_encode.tmpl @@ -4,6 +4,17 @@ {{ template "header" $ }} {{- range $op := $.Operations }}{{ if $op.Request }} + {{ template "request_encoders/operation" $op }} +{{ end }}{{ end }} + +{{- range $op := $.Webhooks }}{{ if $op.Request }} + {{ template "request_encoders/operation" $op }} +{{ end }}{{ end }} + +{{ end }} + +{{ define "request_encoders/operation" }} +{{- /*gotype: github.com/ogen-go/ogen/gen/ir.Operation*/ -}}{{ $op := $ }} func encode{{ $op.Name }}Request( req {{ $op.Request.Type.Go }}, r *http.Request, @@ -57,7 +68,6 @@ func encode{{ $op.Name }}Request( } {{- end }} } -{{- end }}{{ end }} {{ end }} {{- define "encode_request" }} diff --git a/gen/_template/response_decode.tmpl b/gen/_template/response_decode.tmpl index 7b8ed1f9e..b2f72a11b 100644 --- a/gen/_template/response_decode.tmpl +++ b/gen/_template/response_decode.tmpl @@ -4,6 +4,17 @@ {{ template "header" $ }} {{- range $op := $.Operations }} + {{- template "response_decoders/operation" op_elem $op $ }} +{{ end }} + +{{- range $op := $.Webhooks }} + {{- template "response_decoders/operation" op_elem $op $ }} +{{ end }} + +{{ end }} + +{{ define "response_decoders/operation" }} +{{- /*gotype: github.com/ogen-go/ogen/gen.OperationElem*/ -}}{{ $op := $.Operation }} func decode{{ $op.Name }}Response(resp *http.Response) (res {{ $op.Responses.Type.Go }}, err error) { {{- with $statusCodes := $op.Responses.StatusCode }} switch resp.StatusCode { @@ -28,10 +39,10 @@ func decode{{ $op.Name }}Response(resp *http.Response) (res {{ $op.Responses.Typ {{- if $op.Responses.Default }} // Default response. {{- template "decode_response" response_elem $op.Responses.Default $op.Responses.Type.IsInterface }} - {{- else if $.Error }} + {{- else if and $.Config.Error (not $op.WebhookInfo) }} // Convenient error response. - defRes, err := func() (res {{ $.ErrorType.Go }}, err error) { - {{- template "decode_response" response_elem $.Error false }} + defRes, err := func() (res {{ $.Config.ErrorType.Go }}, err error) { + {{- template "decode_response" response_elem $.Config.Error false }} }() if err != nil { return res, errors.Wrap(err, "default") @@ -41,8 +52,6 @@ func decode{{ $op.Name }}Response(resp *http.Response) (res {{ $op.Responses.Typ return res, validate.UnexpectedStatusCode(resp.StatusCode) {{- end }} } - -{{ end }} {{ end }} {{- define "decode_response" }} diff --git a/gen/_template/response_encode.tmpl b/gen/_template/response_encode.tmpl index ae504c4ad..f5a6a67b3 100644 --- a/gen/_template/response_encode.tmpl +++ b/gen/_template/response_encode.tmpl @@ -3,15 +3,19 @@ {{ $pkg := $.Package }} {{ template "header" $ }} -{{- range $op := $.Operations }}{{/* Range over all methods */}} -func encode{{ $op.Name }}Response(response {{ $op.Responses.Type.Go }}, w http.ResponseWriter, span trace.Span) error { - {{- if eq (len $op.ListResponseTypes) 1 }} - {{- range $info := $op.ListResponseTypes }} +{{- range $op := $.Operations }} + {{- template "response_encoders/operation" $op }} +{{ end }} + +{{- if $.Error }} +func encodeErrorResponse(response {{ $.ErrorType.Go }}, w http.ResponseWriter, span trace.Span) error { + {{- if eq (len $.Error.ResponseInfo) 1 }} + {{- range $info := $.Error.ResponseInfo }} {{- template "respond" $info }} {{- end }} {{- else }} switch response := response.(type) { - {{- range $info := $op.ListResponseTypes }} + {{- range $info := $.Error.ResponseInfo }} case *{{ $info.Type.Name }}: {{- template "respond" $info }} {{- end }} @@ -20,17 +24,24 @@ func encode{{ $op.Name }}Response(response {{ $op.Responses.Type.Go }}, w http.R } {{- end }} } -{{- end }}{{/* Range over all methods */}} +{{- end }} -{{- if $.Error }} -func encodeErrorResponse(response {{ $.ErrorType.Go }}, w http.ResponseWriter, span trace.Span) error { - {{- if eq (len $.Error.ResponseInfo) 1 }} - {{- range $info := $.Error.ResponseInfo }} +{{- range $op := $.Webhooks }} + {{- template "response_encoders/operation" $op }} +{{ end }} + +{{ end }} + +{{ define "response_encoders/operation" }} +{{- /*gotype: github.com/ogen-go/ogen/gen/ir.Operation*/ -}}{{ $op := $ }} +func encode{{ $op.Name }}Response(response {{ $op.Responses.Type.Go }}, w http.ResponseWriter, span trace.Span) error { + {{- if eq (len $op.ListResponseTypes) 1 }} + {{- range $info := $op.ListResponseTypes }} {{- template "respond" $info }} {{- end }} {{- else }} switch response := response.(type) { - {{- range $info := $.Error.ResponseInfo }} + {{- range $info := $op.ListResponseTypes }} case *{{ $info.Type.Name }}: {{- template "respond" $info }} {{- end }} @@ -39,7 +50,6 @@ func encodeErrorResponse(response {{ $.ErrorType.Go }}, w http.ResponseWriter, s } {{- end }} } -{{- end }} {{ end }} {{ define "respond" }} diff --git a/gen/_template/router.tmpl b/gen/_template/router.tmpl index 842375ab0..bfbed0ca2 100644 --- a/gen/_template/router.tmpl +++ b/gen/_template/router.tmpl @@ -3,14 +3,6 @@ {{ template "header" $ }} {{- $router := $.Router }} -func (s *Server) notFound(w http.ResponseWriter, r *http.Request) { - s.cfg.NotFound(w, r) -} - -func (s *Server) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { - s.cfg.MethodNotAllowed(w, r, allowed) -} - // ServeHTTP serves http request as defined by OpenAPI v3 specification, // calling handler that matches the path or returning not found error. func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { @@ -90,6 +82,52 @@ func (s *Server) FindRoute(method, path string) (r Route, _ bool) { return r, false } + +{{- if $.Webhooks }} +// Handle handles webhook request. +// +// Returns true if there is a webhook handler for given name and requested method. +func (s *WebhookServer) Handle(webhookName string, w http.ResponseWriter, r *http.Request) bool { + switch webhookName { + {{- range $name, $methods := $.WebhookRouter.Webhooks }} + case {{ quote $name }}: + switch r.Method { + {{- range $route := $methods.Routes }}{{ $op := $route.Operation }} + case {{ quote $route.Method }}: + s.handle{{ $op.Name }}Request([{{ $op.PathParamsCount }}]string{}, w, r) + {{- end }} + default: + return false + } + return true + {{- end }} + default: + return false + } +} + +// Handler returns http.Handler for webhook. +// +// Returns NotFound handler if spec doesn't contain webhook with given name. +// +// Returned handler calls MethodNotAllowed handler if webhook doesn't define requested method. +func (s *WebhookServer) Handler(webhookName string) http.Handler { + switch webhookName { + {{- range $name, $methods := $.WebhookRouter.Webhooks }} + case {{ quote $name }}: + return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + // We know that webhook exists, so false means wrong method. + if !s.Handle(webhookName, w, r) { + s.notAllowed(w, r, {{ quote $methods.AllowedMethods }}) + } + }) + {{- end }} + default: + return http.HandlerFunc(s.notFound) + } +} +{{- end }} + {{ end }} {{ define "route_handle_request" }} diff --git a/gen/_template/server.tmpl b/gen/_template/server.tmpl index 9875ff67f..aed53e9df 100644 --- a/gen/_template/server.tmpl +++ b/gen/_template/server.tmpl @@ -4,9 +4,10 @@ {{ $pkg := $.Package }} {{ template "header" $ }} +{{- with $ops := $.Operations }} // Handler handles operations described by OpenAPI v3 specification. type Handler interface { -{{- range $op := $.Operations }} +{{- range $op := $ops }} // {{ $op.Name }} implements {{ $op.PrettyOperationID }} operation. // {{- template "godoc_def" $op.GoDoc }} @@ -45,4 +46,40 @@ func NewServer(h Handler, {{- if $.Securities }}sec SecurityHandler,{{- end }}op baseServer: s, }, nil } +{{- end }} + +{{- with $ops := $.Webhooks }} +// WebhookHandler handles webhooks described by OpenAPI v3 specification. +type WebhookHandler interface { +{{- range $op := $ops }} + // {{ $op.Name }} implements {{ $op.PrettyOperationID }} operation. + // + {{- template "godoc_def" $op.GoDoc }} + {{- if not $op.WebhookInfo }} + // {{ upper $op.Spec.HTTPMethod }} {{ $op.Spec.Path }} + {{- end }} + {{ $op.Name }}(ctx context.Context {{ if $op.Request }}, req {{ $op.Request.Type.Go }}{{ end }}{{ if $op.Params }}, params {{ $op.Name }}Params {{ end }}) ({{ $op.Responses.Type.Go }}, error) +{{- end }} +} + +// WebhookServer implements http server based on OpenAPI v3 specification and +// calls WebhookHandler to handle requests. +type WebhookServer struct { + h WebhookHandler + baseServer +} + +// NewWebhookServer creates new WebhookServer. +func NewWebhookServer(h WebhookHandler, opts ...Option) (*WebhookServer, error) { + s, err := newConfig(opts...).baseServer() + if err != nil { + return nil, err + } + return &WebhookServer{ + h: h, + baseServer: s, + }, nil +} +{{- end }} + {{ end }} diff --git a/gen/gen_operation.go b/gen/gen_operation.go index 056efb6cb..186e6220e 100644 --- a/gen/gen_operation.go +++ b/gen/gen_operation.go @@ -10,11 +10,14 @@ import ( "github.com/ogen-go/ogen/openapi" ) -func (g *Generator) generateOperation(ctx *genctx, spec *openapi.Operation) (_ *ir.Operation, err error) { +func (g *Generator) generateOperation(ctx *genctx, webhookName string, spec *openapi.Operation) (_ *ir.Operation, err error) { var opName string - if spec.OperationID != "" { + switch { + case spec.OperationID != "": opName, err = pascalNonEmpty(spec.OperationID) - } else { + case webhookName != "": + opName, err = pascalNonEmpty(webhookName, strings.ToLower(spec.HTTPMethod)) + default: opName, err = pascal(spec.Path.String(), strings.ToLower(spec.HTTPMethod)) } if err != nil { diff --git a/gen/generator.go b/gen/generator.go index 66cd4b7f7..f50970e2a 100644 --- a/gen/generator.go +++ b/gen/generator.go @@ -9,6 +9,7 @@ import ( "github.com/ogen-go/ogen" "github.com/ogen-go/ogen/gen/ir" + "github.com/ogen-go/ogen/internal/xslices" "github.com/ogen-go/ogen/jsonschema" "github.com/ogen-go/ogen/openapi" "github.com/ogen-go/ogen/openapi/parser" @@ -16,14 +17,16 @@ import ( // Generator is OpenAPI-to-Go generator. type Generator struct { - opt Options - api *openapi.API - servers []ir.Server - operations []*ir.Operation - securities map[string]*ir.Security - tstorage *tstorage - errType *ir.Response - router Router + opt Options + api *openapi.API + servers []ir.Server + operations []*ir.Operation + webhooks []*ir.Operation + securities map[string]*ir.Security + tstorage *tstorage + errType *ir.Response + webhookRouter WebhookRouter + router Router log *zap.Logger } @@ -46,15 +49,17 @@ func NewGenerator(spec *ogen.Spec, opts Options) (*Generator, error) { } g := &Generator{ - opt: opts, - api: api, - servers: nil, - operations: nil, - securities: map[string]*ir.Security{}, - tstorage: newTStorage(), - errType: nil, - router: Router{}, - log: opts.Logger, + opt: opts, + api: api, + servers: nil, + operations: nil, + webhooks: nil, + securities: map[string]*ir.Security{}, + tstorage: newTStorage(), + errType: nil, + webhookRouter: WebhookRouter{}, + router: Router{}, + log: opts.Logger, } if err := g.makeIR(api); err != nil { @@ -72,7 +77,13 @@ func (g *Generator) makeIR(api *openapi.API) error { if err := g.makeServers(api.Servers); err != nil { return errors.Wrap(err, "servers") } - return g.makeOps(api.Operations) + if err := g.makeWebhooks(api.Webhooks); err != nil { + return errors.Wrap(err, "webhooks") + } + if err := g.makeOps(api.Operations); err != nil { + return errors.Wrap(err, "operations") + } + return nil } func (g *Generator) makeServers(servers []openapi.Server) error { @@ -110,7 +121,7 @@ func (g *Generator) makeOps(ops []*openapi.Operation) error { local: newTStorage(), } - op, err := g.generateOperation(ctx, spec) + op, err := g.generateOperation(ctx, "", spec) if err != nil { err = errors.Wrapf(err, "path %q: %s", routePath, @@ -135,11 +146,86 @@ func (g *Generator) makeOps(ops []*openapi.Operation) error { g.operations = append(g.operations, op) } + sortOperations(g.operations) + return nil +} + +func (g *Generator) makeWebhooks(webhooks []openapi.Webhook) error { + for _, w := range webhooks { + if w.Name == "" { + rerr := errors.New("webhook name is empty") + if err := g.trySkip(rerr, "Skipping webhook", w); err != nil { + return err + } + continue + } + if len(w.Operations) == 0 { + continue + } + + var whinfo = &ir.WebhookInfo{ + Name: w.Name, + } + for _, spec := range w.Operations { + log := g.log.With(g.zapLocation(spec)) + + if !g.opt.Filters.accept(spec) { + log.Info("Skipping filtered operation") + continue + } + + spec.Parameters = xslices.Filter(spec.Parameters, func(p *openapi.Parameter) bool { + if p.In.Path() { + log.Warn("Webhooks can't have path parameters", + zap.String("name", p.Name), + zap.String("in", string(p.In)), + ) + return false + } + return true + }) + + ctx := &genctx{ + jsonptr: newJSONPointer("#", "webhooks", w.Name, spec.HTTPMethod), + global: g.tstorage, + local: newTStorage(), + } + + op, err := g.generateOperation(ctx, w.Name, spec) + if err != nil { + err = errors.Wrapf(err, "webhook %q: %s", + w.Name, + strings.ToLower(spec.HTTPMethod), + ) + if err := g.trySkip(err, "Skipping operation", spec); err != nil { + return err + } + continue + } + op.WebhookInfo = whinfo + + if err := fixEqualRequests(ctx, op); err != nil { + return errors.Wrap(err, "fix requests") + } + if err := fixEqualResponses(ctx, op); err != nil { + return errors.Wrap(err, "fix responses") + } + + if err := g.tstorage.merge(ctx.local); err != nil { + return err + } + + g.webhooks = append(g.webhooks, op) + } + } + sortOperations(g.webhooks) + return nil +} - slices.SortStableFunc(g.operations, func(a, b *ir.Operation) bool { +func sortOperations(ops []*ir.Operation) { + slices.SortStableFunc(ops, func(a, b *ir.Operation) bool { return a.Name < b.Name }) - return nil } // Types returns generated types. diff --git a/gen/ir/operation.go b/gen/ir/operation.go index 990a62b92..e4b20c412 100644 --- a/gen/ir/operation.go +++ b/gen/ir/operation.go @@ -8,11 +8,18 @@ import ( "github.com/ogen-go/ogen/openapi" ) +// WebhookInfo contains information about webhook. +type WebhookInfo struct { + // Name is the name of the webhook. + Name string +} + type Operation struct { Name string Summary string Description string Deprecated bool + WebhookInfo *WebhookInfo PathParts []*PathPart Params []*Parameter Request *Request @@ -42,6 +49,12 @@ func (op Operation) OTELAttributes() (r []OTELAttribute) { Value: id, }) } + if wh := op.WebhookInfo; wh != nil { + r = append(r, OTELAttribute{ + Key: "WebhookName", + Value: wh.Name, + }) + } return r } diff --git a/gen/router.go b/gen/router.go index 25bc6f4b4..021b5d5fc 100644 --- a/gen/router.go +++ b/gen/router.go @@ -5,6 +5,7 @@ import ( "strings" "github.com/go-faster/errors" + "golang.org/x/exp/slices" "github.com/ogen-go/ogen/gen/ir" "github.com/ogen-go/ogen/internal/xslices" @@ -59,6 +60,64 @@ func (s *Router) Add(r Route) error { return s.Tree.addRoute(r) } +// WebhookRoute is a webhook route. +type WebhookRoute struct { + Method string + Operation *ir.Operation +} + +// WebhookRoutes is a list of webhook methods. +type WebhookRoutes struct { + Routes []WebhookRoute +} + +// Add adds new operation to the route. +func (r *WebhookRoutes) Add(nr WebhookRoute) error { + if xslices.ContainsFunc(r.Routes, func(r WebhookRoute) bool { + return strings.EqualFold(r.Method, nr.Method) + }) { + return errors.Errorf("duplicate method %q", nr.Method) + } + r.Routes = append(r.Routes, nr) + slices.SortStableFunc(r.Routes, func(a, b WebhookRoute) bool { + return a.Method < b.Method + }) + return nil +} + +// AllowedMethods returns comma-separated list of allowed methods. +func (r WebhookRoutes) AllowedMethods() string { + var s strings.Builder + for i, route := range r.Routes { + if i != 0 { + s.WriteByte(',') + } + s.WriteString(route.Method) + } + return s.String() +} + +// WebhookRouter contains routing information for webhooks. +type WebhookRouter struct { + Webhooks map[string]WebhookRoutes +} + +// Add adds new route. +func (r *WebhookRouter) Add(name string, nr WebhookRoute) error { + if r.Webhooks == nil { + r.Webhooks = map[string]WebhookRoutes{} + } + route, ok := r.Webhooks[name] + if !ok { + route = WebhookRoutes{} + } + if err := route.Add(nr); err != nil { + return errors.Wrapf(err, "webhook %q", name) + } + r.Webhooks[name] = route + return nil +} + func checkRoutePath(p openapi.Path) error { for i, part := range p { if i == 0 { @@ -100,5 +159,15 @@ func (g *Generator) route() error { } } g.router.MaxParametersCount = maxParametersCount + for _, op := range g.webhooks { + webhookName := op.WebhookInfo.Name + nr := WebhookRoute{ + Method: strings.ToUpper(op.Spec.HTTPMethod), + Operation: op, + } + if err := g.webhookRouter.Add(webhookName, nr); err != nil { + return errors.Wrap(err, "add route") + } + } return nil } diff --git a/gen/templates.go b/gen/templates.go index c77fdf0f4..d51eabb5a 100644 --- a/gen/templates.go +++ b/gen/templates.go @@ -14,6 +14,14 @@ import ( "github.com/ogen-go/ogen/internal/naming" ) +// OperationElem is variable name for generating per-operation functions. +type OperationElem struct { + // Operation is the operation. + Operation *ir.Operation + // Config is the template configuration. + Config TemplateConfig +} + // RouterElem is variable helper for router generation. type RouterElem struct { // ParameterIndex is index of parameter of this route part. @@ -157,6 +165,12 @@ func templateFunctions() template.FuncMap { }, } }, + "op_elem": func(op *ir.Operation, cfg TemplateConfig) OperationElem { + return OperationElem{ + Operation: op, + Config: cfg, + } + }, "ir_media": func(e ir.Encoding, t *ir.Type) ir.Media { return ir.Media{ Encoding: e, diff --git a/gen/write.go b/gen/write.go index 33d6d2a6e..7a150f287 100644 --- a/gen/write.go +++ b/gen/write.go @@ -17,11 +17,13 @@ import ( "github.com/ogen-go/ogen/gen/ir" "github.com/ogen-go/ogen/internal/xmaps" + "github.com/ogen-go/ogen/internal/xslices" ) type TemplateConfig struct { Package string Operations []*ir.Operation + Webhooks []*ir.Operation Types map[string]*ir.Type Interfaces map[string]*ir.Type Error *ir.Response @@ -29,6 +31,7 @@ type TemplateConfig struct { Servers ir.Servers Securities map[string]*ir.Security Router Router + WebhookRouter WebhookRouter ClientEnabled bool ServerEnabled bool @@ -86,6 +89,10 @@ func (t TemplateConfig) collectStrings(cb func(typ *ir.Type) []string) []string add(t) return nil }) + _ = walkOpTypes(t.Webhooks, func(t *ir.Type) error { + add(t) + return nil + }) return xmaps.SortedKeys(m) } @@ -204,6 +211,7 @@ func (g *Generator) WriteSource(fs FileSystem, pkgName string) error { cfg := TemplateConfig{ Package: pkgName, Operations: g.operations, + Webhooks: g.webhooks, Types: types, Interfaces: interfaces, Error: g.errType, @@ -211,6 +219,7 @@ func (g *Generator) WriteSource(fs FileSystem, pkgName string) error { Servers: g.servers, Securities: g.securities, Router: g.router, + WebhookRouter: g.webhookRouter, ClientEnabled: !g.opt.NoClient, ServerEnabled: !g.opt.NoServer, skipTestRegex: g.opt.SkipTestRegex, @@ -309,12 +318,11 @@ func (g *Generator) hasValidators() bool { } func (g *Generator) hasParams() bool { - for _, op := range g.operations { - if len(op.Params) > 0 { - return true - } + hasParams := func(op *ir.Operation) bool { + return len(op.Params) > 0 } - return false + return xslices.ContainsFunc(g.operations, hasParams) || + xslices.ContainsFunc(g.webhooks, hasParams) } func (g *Generator) hasURIObjectParams() bool { From dec8f84f10ac3707fcb3500d36642f8cbc334848 Mon Sep 17 00:00:00 2001 From: tdakkota Date: Thu, 13 Oct 2022 01:13:31 +0300 Subject: [PATCH 09/14] test: add webhooks test spec --- _testdata/positive/webhooks.json | 184 +++++++++++++++++++++++++++++++ internal/generate.go | 1 + 2 files changed, 185 insertions(+) create mode 100644 _testdata/positive/webhooks.json diff --git a/_testdata/positive/webhooks.json b/_testdata/positive/webhooks.json new file mode 100644 index 000000000..2987af169 --- /dev/null +++ b/_testdata/positive/webhooks.json @@ -0,0 +1,184 @@ +{ + "openapi": "3.1.0", + "info": { + "title": "title", + "version": "v0.1.0" + }, + "webhooks": { + "status": { + "get": { + "operationId": "statusWebhook", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string" + } + } + } + } + } + } + } + } + }, + "update": { + "delete": { + "responses": { + "200": { + "description": "OK" + }, + "default": { + "$ref": "#/components/responses/Error" + } + } + }, + "post": { + "operationId": "updateWebhook", + "parameters": [ + { + "name": "event_type", + "in": "query", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "X-Webhook-Token", + "in": "header", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Event" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebhookResponse" + } + } + } + }, + "default": { + "$ref": "#/components/responses/Error" + } + } + } + } + }, + "paths": { + "/event": { + "post": { + "operationId": "publishEvent", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Event" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Event" + } + } + } + }, + "default": { + "$ref": "#/components/responses/Error" + } + } + } + } + }, + "components": { + "schemas": { + "Event": { + "type": "object", + "required": [ + "id", + "message" + ], + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "message": { + "type": "string" + } + } + }, + "WebhookStatus": { + "type": "string", + "enum": [ + "unhealthy", + "healthy" + ] + }, + "WebhookResponse": { + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "event_type": { + "type": "string" + } + } + }, + "Error": { + "type": "object", + "required": [ + "error" + ], + "properties": { + "error": { + "type": "string" + } + } + } + }, + "responses": { + "Error": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + } +} diff --git a/internal/generate.go b/internal/generate.go index 3d7f9abe1..fb009eac8 100644 --- a/internal/generate.go +++ b/internal/generate.go @@ -12,6 +12,7 @@ package internal // Tests // +//go:generate go run ../cmd/ogen -v --clean --target test_webhooks ../_testdata/positive/webhooks.json //go:generate go run ../cmd/ogen -v --clean --target test_servers ../_testdata/positive/servers.json //go:generate go run ../cmd/ogen -v --clean --target test_single_endpoint ../_testdata/positive/single_endpoint.json //go:generate go run ../cmd/ogen -v --clean --target test_http_responses ../_testdata/positive/http_responses.json From 007245e28b01f8d1a5d35706541946fdb05dc7b7 Mon Sep 17 00:00:00 2001 From: tdakkota Date: Thu, 13 Oct 2022 23:11:06 +0300 Subject: [PATCH 10/14] refactor(gen): use one template for operation godoc --- gen/_template/client.tmpl | 5 +---- gen/_template/godoc.tmpl | 8 ++++++++ gen/_template/handlers.tmpl | 5 +---- gen/_template/server.tmpl | 5 +---- 4 files changed, 11 insertions(+), 12 deletions(-) diff --git a/gen/_template/client.tmpl b/gen/_template/client.tmpl index 75ebabab4..2e92fdc46 100644 --- a/gen/_template/client.tmpl +++ b/gen/_template/client.tmpl @@ -94,10 +94,7 @@ func NewWebhookClient(opts ...Option) (*WebhookClient, error) { {{- /*gotype: github.com/ogen-go/ogen/gen/ir.Operation*/ -}}{{ $op := $ }} // {{ $op.Name }} invokes {{ $op.PrettyOperationID }} operation. // -{{- template "godoc_def" $op.GoDoc }} -{{- if not $op.WebhookInfo }} -// {{ upper $op.Spec.HTTPMethod }} {{ $op.Spec.Path }} -{{- end }} +{{- template "godoc_op" $op }} func (c *{{ if $op.WebhookInfo }}Webhook{{ end }}Client) {{ $op.Name }}(ctx context.Context {{- if $op.WebhookInfo }}, targetURL string{{ end }} {{- if $op.Request }}, request {{ $op.Request.Type.Go }}{{ end }} diff --git a/gen/_template/godoc.tmpl b/gen/_template/godoc.tmpl index 28255c97f..715016e10 100644 --- a/gen/_template/godoc.tmpl +++ b/gen/_template/godoc.tmpl @@ -7,3 +7,11 @@ {{- define "godoc" }}{{- range $line := $ }} // {{ $line }} {{- end }}{{- end }} + +{{- define "godoc_op" }} +{{- /*gotype: github.com/ogen-go/ogen/gen/ir.Operation*/ -}}{{ $op := $ }} +{{- template "godoc_def" $op.GoDoc }} +{{- if not $op.WebhookInfo }} +// {{ upper $op.Spec.HTTPMethod }} {{ $op.Spec.Path }} +{{- end }} +{{- end }} diff --git a/gen/_template/handlers.tmpl b/gen/_template/handlers.tmpl index bafdf87b4..cfc8eb700 100644 --- a/gen/_template/handlers.tmpl +++ b/gen/_template/handlers.tmpl @@ -17,10 +17,7 @@ {{- /*gotype: github.com/ogen-go/ogen/gen.OperationElem*/ -}}{{ $op := $.Operation }} // handle{{ $op.Name }}Request handles {{ $op.PrettyOperationID }} operation. // -{{- template "godoc_def" $op.GoDoc }} -{{- if not $op.WebhookInfo }} -// {{ upper $op.Spec.HTTPMethod }} {{ $op.Spec.Path }} -{{- end }} +{{- template "godoc_op" $op }} func (s *{{ if $op.WebhookInfo }}Webhook{{ end }}Server) handle{{ $op.Name }}Request(args [{{ $op.PathParamsCount }}]string, w http.ResponseWriter, r *http.Request) { {{- $hasOTELAttrs := false }} {{- with $attrs := $op.OTELAttributes }} diff --git a/gen/_template/server.tmpl b/gen/_template/server.tmpl index aed53e9df..89162ea9a 100644 --- a/gen/_template/server.tmpl +++ b/gen/_template/server.tmpl @@ -54,10 +54,7 @@ type WebhookHandler interface { {{- range $op := $ops }} // {{ $op.Name }} implements {{ $op.PrettyOperationID }} operation. // - {{- template "godoc_def" $op.GoDoc }} - {{- if not $op.WebhookInfo }} - // {{ upper $op.Spec.HTTPMethod }} {{ $op.Spec.Path }} - {{- end }} + {{- template "godoc_op" $op }} {{ $op.Name }}(ctx context.Context {{ if $op.Request }}, req {{ $op.Request.Type.Go }}{{ end }}{{ if $op.Params }}, params {{ $op.Name }}Params {{ end }}) ({{ $op.Responses.Type.Go }}, error) {{- end }} } From 6ec3c0e04bbd52defe313c5db00baf01449deed6 Mon Sep 17 00:00:00 2001 From: tdakkota Date: Thu, 13 Oct 2022 23:23:37 +0300 Subject: [PATCH 11/14] feat(gen): generate unimplemented handler for webhooks --- gen/_template/unimplemented.tmpl | 38 +++++++++++++++++++++----------- 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/gen/_template/unimplemented.tmpl b/gen/_template/unimplemented.tmpl index 754a634bf..32f829a33 100644 --- a/gen/_template/unimplemented.tmpl +++ b/gen/_template/unimplemented.tmpl @@ -1,23 +1,18 @@ -{{- /*gotype: github.com/ogen-go/ogen/gen.TemplateConfig*/ -}} - {{ define "unimplemented" }} +{{- /*gotype: github.com/ogen-go/ogen/gen.TemplateConfig*/ -}} {{ $pkg := $.Package }} {{ template "header" $ }} -var _ Handler = UnimplementedHandler{} - // UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented. -type UnimplementedHandler struct {} +type UnimplementedHandler struct{} -{{- range $op := $.Operations }} -// {{ $op.Name }} implements {{ $op.PrettyOperationID }} operation. -// -{{- template "godoc_def" $op.GoDoc }} -// {{ upper $op.Spec.HTTPMethod }} {{ $op.Spec.Path }} -func (UnimplementedHandler) {{ $op.Name }}(ctx context.Context {{ if $op.Request }}, req {{ $op.Request.Type.Go }}{{ end }}{{ if $op.Params }}, params {{ $op.Name }}Params {{ end }}) (r {{ $op.Responses.Type.Go }}, _ error) { - return r, ht.ErrNotImplemented -} +{{- with $ops := $.Operations }} +var _ Handler = UnimplementedHandler{} +{{- range $op := $ops }} + {{- template "unimplemented/operation" $op }} +{{- end }} {{- end }} + {{- if $.Error }} // NewError creates {{ $.ErrorType.Go }} from error returned by handler. // @@ -27,4 +22,21 @@ func (UnimplementedHandler) NewError(ctx context.Context, err error) (r {{ $.Err } {{- end }} +{{- with $ops := $.Webhooks }} +var _ WebhookHandler = UnimplementedHandler{} +{{- range $op := $ops }} + {{- template "unimplemented/operation" $op }} +{{- end }} +{{- end }} + +{{ end }} + +{{ define "unimplemented/operation" }} +{{- /*gotype: github.com/ogen-go/ogen/gen/ir.Operation*/ -}}{{ $op := $ }} +// {{ $op.Name }} implements {{ $op.PrettyOperationID }} operation. +// +{{- template "godoc_op" $op }} +func (UnimplementedHandler) {{ $op.Name }}(ctx context.Context {{ if $op.Request }}, req {{ $op.Request.Type.Go }}{{ end }}{{ if $op.Params }}, params {{ $op.Name }}Params {{ end }}) (r {{ $op.Responses.Type.Go }}, _ error) { + return r, ht.ErrNotImplemented +} {{ end }} From 1366a6ce64071494a9201aeda47ea8fd0e0926d2 Mon Sep 17 00:00:00 2001 From: tdakkota Date: Thu, 13 Oct 2022 23:29:53 +0300 Subject: [PATCH 12/14] fix(gen): use webhook name instead of path Webhook path is always "/". --- gen/ir/operation.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gen/ir/operation.go b/gen/ir/operation.go index e4b20c412..65ea0c400 100644 --- a/gen/ir/operation.go +++ b/gen/ir/operation.go @@ -63,7 +63,13 @@ func (op Operation) PrettyOperationID() string { if id := s.OperationID; id != "" { return id } - return strings.ToUpper(s.HTTPMethod) + " " + s.Path.String() + var route string + if info := op.WebhookInfo; info != nil { + route = info.Name + } else { + route = s.Path.String() + } + return strings.ToUpper(s.HTTPMethod) + " " + route } func (op Operation) GoDoc() []string { From 31d4e93923f73b43c15335b05eb52b0b12f302c6 Mon Sep 17 00:00:00 2001 From: tdakkota Date: Thu, 13 Oct 2022 01:13:52 +0300 Subject: [PATCH 13/14] chore: commit generated files --- examples/ex_2ch/oas_cfg_gen.go | 59 + examples/ex_2ch/oas_client_gen.go | 29 +- examples/ex_2ch/oas_handlers_gen.go | 42 +- examples/ex_2ch/oas_parameters_gen.go | 11 + examples/ex_2ch/oas_request_encoders_gen.go | 2 + examples/ex_2ch/oas_response_encoders_gen.go | 15 + examples/ex_2ch/oas_router_gen.go | 8 - examples/ex_2ch/oas_server_gen.go | 31 +- examples/ex_2ch/oas_unimplemented_gen.go | 4 +- examples/ex_ent/oas_cfg_gen.go | 59 + examples/ex_ent/oas_client_gen.go | 27 +- examples/ex_ent/oas_handlers_gen.go | 27 +- examples/ex_ent/oas_parameters_gen.go | 11 + examples/ex_ent/oas_request_encoders_gen.go | 4 + examples/ex_ent/oas_response_encoders_gen.go | 11 + examples/ex_ent/oas_router_gen.go | 8 - examples/ex_ent/oas_server_gen.go | 31 +- examples/ex_ent/oas_unimplemented_gen.go | 4 +- examples/ex_firecracker/oas_cfg_gen.go | 59 + examples/ex_firecracker/oas_client_gen.go | 27 +- examples/ex_firecracker/oas_handlers_gen.go | 69 +- examples/ex_firecracker/oas_parameters_gen.go | 4 + .../oas_request_encoders_gen.go | 19 + .../oas_response_encoders_gen.go | 25 + examples/ex_firecracker/oas_router_gen.go | 8 - examples/ex_firecracker/oas_server_gen.go | 31 +- .../ex_firecracker/oas_unimplemented_gen.go | 4 +- examples/ex_github/oas_cfg_gen.go | 58 + examples/ex_github/oas_client_gen.go | 27 +- examples/ex_github/oas_handlers_gen.go | 4846 ++++++++++++++++- examples/ex_github/oas_parameters_gen.go | 696 +++ .../ex_github/oas_request_encoders_gen.go | 183 + .../ex_github/oas_response_encoders_gen.go | 723 +++ examples/ex_github/oas_router_gen.go | 8 - examples/ex_github/oas_server_gen.go | 31 +- examples/ex_github/oas_unimplemented_gen.go | 4 +- examples/ex_gotd/oas_cfg_gen.go | 59 + examples/ex_gotd/oas_client_gen.go | 27 +- examples/ex_gotd/oas_handlers_gen.go | 3 - examples/ex_gotd/oas_request_encoders_gen.go | 82 + examples/ex_gotd/oas_response_encoders_gen.go | 87 + examples/ex_gotd/oas_router_gen.go | 8 - examples/ex_gotd/oas_server_gen.go | 31 +- examples/ex_gotd/oas_unimplemented_gen.go | 4 +- examples/ex_k8s/oas_cfg_gen.go | 58 + examples/ex_k8s/oas_client_gen.go | 29 +- examples/ex_k8s/oas_handlers_gen.go | 988 +++- examples/ex_k8s/oas_parameters_gen.go | 356 ++ examples/ex_k8s/oas_response_encoders_gen.go | 412 ++ examples/ex_k8s/oas_router_gen.go | 8 - examples/ex_k8s/oas_server_gen.go | 31 +- examples/ex_k8s/oas_unimplemented_gen.go | 4 +- examples/ex_manga/oas_cfg_gen.go | 59 + examples/ex_manga/oas_client_gen.go | 27 +- examples/ex_manga/oas_handlers_gen.go | 15 +- examples/ex_manga/oas_parameters_gen.go | 6 + .../ex_manga/oas_response_encoders_gen.go | 5 + examples/ex_manga/oas_router_gen.go | 8 - examples/ex_manga/oas_server_gen.go | 31 +- examples/ex_manga/oas_unimplemented_gen.go | 4 +- examples/ex_petstore/oas_cfg_gen.go | 59 + examples/ex_petstore/oas_client_gen.go | 27 +- examples/ex_petstore/oas_handlers_gen.go | 9 +- examples/ex_petstore/oas_parameters_gen.go | 2 + .../ex_petstore/oas_response_encoders_gen.go | 2 + examples/ex_petstore/oas_router_gen.go | 8 - examples/ex_petstore/oas_server_gen.go | 31 +- examples/ex_petstore/oas_unimplemented_gen.go | 4 +- examples/ex_petstore_expanded/oas_cfg_gen.go | 59 + .../ex_petstore_expanded/oas_client_gen.go | 27 +- .../ex_petstore_expanded/oas_handlers_gen.go | 29 +- .../oas_parameters_gen.go | 3 + .../oas_response_encoders_gen.go | 3 + .../ex_petstore_expanded/oas_router_gen.go | 8 - .../ex_petstore_expanded/oas_server_gen.go | 31 +- .../oas_unimplemented_gen.go | 4 +- examples/ex_route_params/oas_cfg_gen.go | 59 + examples/ex_route_params/oas_client_gen.go | 27 +- examples/ex_route_params/oas_handlers_gen.go | 9 +- .../ex_route_params/oas_parameters_gen.go | 2 + .../oas_response_encoders_gen.go | 2 + examples/ex_route_params/oas_router_gen.go | 8 - examples/ex_route_params/oas_server_gen.go | 31 +- .../ex_route_params/oas_unimplemented_gen.go | 4 +- examples/ex_telegram/oas_cfg_gen.go | 59 + examples/ex_telegram/oas_client_gen.go | 27 +- examples/ex_telegram/oas_handlers_gen.go | 3 - .../ex_telegram/oas_request_encoders_gen.go | 77 + .../ex_telegram/oas_response_encoders_gen.go | 82 + examples/ex_telegram/oas_router_gen.go | 8 - examples/ex_telegram/oas_server_gen.go | 31 +- examples/ex_telegram/oas_unimplemented_gen.go | 4 +- examples/ex_test_format/oas_cfg_gen.go | 59 + examples/ex_test_format/oas_client_gen.go | 27 +- examples/ex_test_format/oas_handlers_gen.go | 3 - examples/ex_test_format/oas_parameters_gen.go | 1 + .../oas_request_encoders_gen.go | 729 +++ .../oas_response_encoders_gen.go | 729 +++ examples/ex_test_format/oas_router_gen.go | 8 - examples/ex_test_format/oas_server_gen.go | 30 +- .../ex_test_format/oas_unimplemented_gen.go | 4 +- examples/ex_tinkoff/oas_cfg_gen.go | 59 + examples/ex_tinkoff/oas_client_gen.go | 31 +- examples/ex_tinkoff/oas_handlers_gen.go | 46 +- examples/ex_tinkoff/oas_parameters_gen.go | 15 + .../ex_tinkoff/oas_request_encoders_gen.go | 4 + .../ex_tinkoff/oas_response_encoders_gen.go | 20 + examples/ex_tinkoff/oas_router_gen.go | 8 - examples/ex_tinkoff/oas_server_gen.go | 31 +- examples/ex_tinkoff/oas_unimplemented_gen.go | 4 +- internal/referenced_path_item/oas_cfg_gen.go | 59 + .../referenced_path_item/oas_client_gen.go | 29 +- .../referenced_path_item/oas_handlers_gen.go | 4 - .../referenced_path_item/oas_router_gen.go | 8 - .../referenced_path_item/oas_server_gen.go | 31 +- .../oas_unimplemented_gen.go | 4 +- internal/sample_api/oas_cfg_gen.go | 58 + internal/sample_api/oas_client_gen.go | 29 +- internal/sample_api/oas_handlers_gen.go | 29 +- internal/sample_api/oas_parameters_gen.go | 13 + .../sample_api/oas_request_encoders_gen.go | 7 + .../sample_api/oas_response_encoders_gen.go | 28 + internal/sample_api/oas_router_gen.go | 8 - internal/sample_api/oas_server_gen.go | 31 +- internal/sample_api/oas_unimplemented_gen.go | 4 +- internal/sample_api_nc/oas_cfg_gen.go | 35 + internal/sample_api_nc/oas_handlers_gen.go | 29 +- internal/sample_api_nc/oas_parameters_gen.go | 13 + .../oas_response_encoders_gen.go | 28 + internal/sample_api_nc/oas_router_gen.go | 8 - internal/sample_api_nc/oas_server_gen.go | 31 +- .../sample_api_nc/oas_unimplemented_gen.go | 4 +- internal/sample_api_ns/oas_cfg_gen.go | 27 + internal/sample_api_ns/oas_client_gen.go | 29 +- internal/sample_api_ns/oas_parameters_gen.go | 13 + .../sample_api_ns/oas_request_encoders_gen.go | 7 + .../sample_api_nsnc/oas_parameters_gen.go | 13 + internal/sample_err/oas_cfg_gen.go | 59 + internal/sample_err/oas_client_gen.go | 27 +- internal/sample_err/oas_handlers_gen.go | 7 +- .../sample_err/oas_response_encoders_gen.go | 2 + internal/sample_err/oas_router_gen.go | 8 - internal/sample_err/oas_server_gen.go | 31 +- internal/sample_err/oas_unimplemented_gen.go | 4 +- internal/techempower/oas_cfg_gen.go | 59 + internal/techempower/oas_client_gen.go | 27 +- internal/techempower/oas_handlers_gen.go | 26 +- internal/techempower/oas_parameters_gen.go | 3 + .../techempower/oas_response_encoders_gen.go | 4 + internal/techempower/oas_router_gen.go | 8 - internal/techempower/oas_server_gen.go | 31 +- internal/techempower/oas_unimplemented_gen.go | 4 +- internal/test_allof/oas_cfg_gen.go | 58 + internal/test_allof/oas_client_gen.go | 27 +- internal/test_allof/oas_handlers_gen.go | 17 +- .../test_allof/oas_request_encoders_gen.go | 6 + .../test_allof/oas_response_encoders_gen.go | 6 + internal/test_allof/oas_router_gen.go | 8 - internal/test_allof/oas_server_gen.go | 31 +- internal/test_allof/oas_unimplemented_gen.go | 4 +- internal/test_form/oas_cfg_gen.go | 59 + internal/test_form/oas_client_gen.go | 27 +- internal/test_form/oas_handlers_gen.go | 3 - .../test_form/oas_request_encoders_gen.go | 3 + .../test_form/oas_response_encoders_gen.go | 3 + internal/test_form/oas_router_gen.go | 8 - internal/test_form/oas_server_gen.go | 31 +- internal/test_form/oas_unimplemented_gen.go | 4 +- internal/test_http_requests/oas_cfg_gen.go | 59 + internal/test_http_requests/oas_client_gen.go | 27 +- .../test_http_requests/oas_handlers_gen.go | 3 - .../oas_request_encoders_gen.go | 3 + .../oas_response_encoders_gen.go | 3 + internal/test_http_requests/oas_router_gen.go | 8 - internal/test_http_requests/oas_server_gen.go | 31 +- .../oas_unimplemented_gen.go | 4 +- internal/test_http_responses/oas_cfg_gen.go | 59 + .../test_http_responses/oas_client_gen.go | 27 +- .../test_http_responses/oas_handlers_gen.go | 6 +- .../test_http_responses/oas_parameters_gen.go | 3 + .../oas_response_encoders_gen.go | 11 + .../test_http_responses/oas_router_gen.go | 8 - .../test_http_responses/oas_server_gen.go | 31 +- .../oas_unimplemented_gen.go | 4 +- internal/test_servers/oas_cfg_gen.go | 59 + internal/test_servers/oas_client_gen.go | 27 +- internal/test_servers/oas_handlers_gen.go | 5 +- .../test_servers/oas_response_encoders_gen.go | 1 + internal/test_servers/oas_router_gen.go | 8 - internal/test_servers/oas_server_gen.go | 31 +- .../test_servers/oas_unimplemented_gen.go | 4 +- internal/test_single_endpoint/oas_cfg_gen.go | 59 + .../test_single_endpoint/oas_client_gen.go | 27 +- .../test_single_endpoint/oas_handlers_gen.go | 5 +- .../oas_response_encoders_gen.go | 1 + .../test_single_endpoint/oas_router_gen.go | 8 - .../test_single_endpoint/oas_server_gen.go | 31 +- .../oas_unimplemented_gen.go | 4 +- internal/test_webhooks/oas_cfg_gen.go | 215 + internal/test_webhooks/oas_client_gen.go | 366 ++ internal/test_webhooks/oas_handlers_gen.go | 386 ++ internal/test_webhooks/oas_interfaces_gen.go | 10 + internal/test_webhooks/oas_json_gen.go | 471 ++ internal/test_webhooks/oas_middleware_gen.go | 10 + internal/test_webhooks/oas_parameters_gen.go | 93 + .../test_webhooks/oas_request_decoders_gen.go | 139 + .../test_webhooks/oas_request_encoders_gen.go | 52 + .../oas_response_decoders_gen.go | 230 + .../oas_response_encoders_gen.go | 138 + internal/test_webhooks/oas_router_gen.go | 179 + internal/test_webhooks/oas_schemas_gen.go | 222 + internal/test_webhooks/oas_server_gen.go | 70 + .../test_webhooks/oas_unimplemented_gen.go | 45 + 213 files changed, 15095 insertions(+), 1356 deletions(-) create mode 100644 internal/test_webhooks/oas_cfg_gen.go create mode 100644 internal/test_webhooks/oas_client_gen.go create mode 100644 internal/test_webhooks/oas_handlers_gen.go create mode 100644 internal/test_webhooks/oas_interfaces_gen.go create mode 100644 internal/test_webhooks/oas_json_gen.go create mode 100644 internal/test_webhooks/oas_middleware_gen.go create mode 100644 internal/test_webhooks/oas_parameters_gen.go create mode 100644 internal/test_webhooks/oas_request_decoders_gen.go create mode 100644 internal/test_webhooks/oas_request_encoders_gen.go create mode 100644 internal/test_webhooks/oas_response_decoders_gen.go create mode 100644 internal/test_webhooks/oas_response_encoders_gen.go create mode 100644 internal/test_webhooks/oas_router_gen.go create mode 100644 internal/test_webhooks/oas_schemas_gen.go create mode 100644 internal/test_webhooks/oas_server_gen.go create mode 100644 internal/test_webhooks/oas_unimplemented_gen.go diff --git a/examples/ex_2ch/oas_cfg_gen.go b/examples/ex_2ch/oas_cfg_gen.go index 43cd6eec1..d1c81762b 100644 --- a/examples/ex_2ch/oas_cfg_gen.go +++ b/examples/ex_2ch/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -15,6 +16,13 @@ import ( "github.com/ogen-go/ogen/otelogen" ) +var ( + // Allocate option closure once. + clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) + // Allocate option closure once. + serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) +) + // ErrorHandler is error handler. type ErrorHandler = ogenerrors.ErrorHandler @@ -56,6 +64,57 @@ func newConfig(opts ...Option) config { return cfg } +type baseServer struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (s baseServer) notFound(w http.ResponseWriter, r *http.Request) { + s.cfg.NotFound(w, r) +} + +func (s baseServer) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { + s.cfg.MethodNotAllowed(w, r, allowed) +} + +func (cfg config) baseServer() (s baseServer, err error) { + s = baseServer{cfg: cfg} + if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { + return s, err + } + if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { + return s, err + } + if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + return s, err + } + return s, nil +} + +type baseClient struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (cfg config) baseClient() (c baseClient, err error) { + c = baseClient{cfg: cfg} + if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { + return c, err + } + if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { + return c, err + } + if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + return c, err + } + return c, nil +} + +// Option is config option. type Option interface { apply(*config) } diff --git a/examples/ex_2ch/oas_client_gen.go b/examples/ex_2ch/oas_client_gen.go index c1df829a2..74f81de43 100644 --- a/examples/ex_2ch/oas_client_gen.go +++ b/examples/ex_2ch/oas_client_gen.go @@ -10,12 +10,9 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" - "go.opentelemetry.io/otel/metric/instrument/syncint64" - "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/conv" ht "github.com/ogen-go/ogen/http" - "github.com/ogen-go/ogen/otelogen" "github.com/ogen-go/ogen/uri" ) @@ -23,16 +20,10 @@ var _ Handler = struct { *Client }{} -// Allocate option closure once. -var clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) - // Client implements OAS client. type Client struct { serverURL *url.URL - cfg config - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + baseClient } // NewClient initializes new Client defined by OAS. @@ -41,20 +32,14 @@ func NewClient(serverURL string, opts ...Option) (*Client, error) { if err != nil { return nil, err } - c := &Client{ - cfg: newConfig(opts...), - serverURL: u, - } - if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { - return nil, err - } - if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { - return nil, err - } - if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + c, err := newConfig(opts...).baseClient() + if err != nil { return nil, err } - return c, nil + return &Client{ + serverURL: u, + baseClient: c, + }, nil } type serverURLKey struct{} diff --git a/examples/ex_2ch/oas_handlers_gen.go b/examples/ex_2ch/oas_handlers_gen.go index 4a235c427..cadb7614c 100644 --- a/examples/ex_2ch/oas_handlers_gen.go +++ b/examples/ex_2ch/oas_handlers_gen.go @@ -9,17 +9,15 @@ import ( "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" - "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/middleware" "github.com/ogen-go/ogen/ogenerrors" ) -// Allocate option closure once. -var serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) - // handleAPICaptcha2chcaptchaIDGetRequest handles GET /api/captcha/2chcaptcha/id operation. // +// Получение ид для использования 2chcaptcha. +// // GET /api/captcha/2chcaptcha/id func (s *Server) handleAPICaptcha2chcaptchaIDGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -112,6 +110,8 @@ func (s *Server) handleAPICaptcha2chcaptchaIDGetRequest(args [0]string, w http.R // handleAPICaptcha2chcaptchaShowGetRequest handles GET /api/captcha/2chcaptcha/show operation. // +// Отображение 2chcaptcha по id. +// // GET /api/captcha/2chcaptcha/show func (s *Server) handleAPICaptcha2chcaptchaShowGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -203,6 +203,12 @@ func (s *Server) handleAPICaptcha2chcaptchaShowGetRequest(args [0]string, w http // handleAPICaptchaAppIDPublicKeyGetRequest handles GET /api/captcha/app/id/{public_key} operation. // +// Полученный id вам нужно отправить вместе с постом как +// app_response_id. +// При этом нужно отправить app_response = sha256(app_response_id + '|' + +// private key). +// Срок жизни id: 180 секунд. +// // GET /api/captcha/app/id/{public_key} func (s *Server) handleAPICaptchaAppIDPublicKeyGetRequest(args [1]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -296,6 +302,8 @@ func (s *Server) handleAPICaptchaAppIDPublicKeyGetRequest(args [1]string, w http // handleAPICaptchaInvisibleRecaptchaIDGetRequest handles GET /api/captcha/invisible_recaptcha/id operation. // +// Получение публичного ключа invisible recaptcha. +// // GET /api/captcha/invisible_recaptcha/id func (s *Server) handleAPICaptchaInvisibleRecaptchaIDGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -388,6 +396,8 @@ func (s *Server) handleAPICaptchaInvisibleRecaptchaIDGetRequest(args [0]string, // handleAPICaptchaInvisibleRecaptchaMobileGetRequest handles GET /api/captcha/invisible_recaptcha/mobile operation. // +// Получение html страницы для решения капчи, CORS отключён. +// // GET /api/captcha/invisible_recaptcha/mobile func (s *Server) handleAPICaptchaInvisibleRecaptchaMobileGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -463,6 +473,8 @@ func (s *Server) handleAPICaptchaInvisibleRecaptchaMobileGetRequest(args [0]stri // handleAPICaptchaRecaptchaIDGetRequest handles GET /api/captcha/recaptcha/id operation. // +// Получение публичного ключа recaptcha v2. +// // GET /api/captcha/recaptcha/id func (s *Server) handleAPICaptchaRecaptchaIDGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -555,6 +567,8 @@ func (s *Server) handleAPICaptchaRecaptchaIDGetRequest(args [0]string, w http.Re // handleAPICaptchaRecaptchaMobileGetRequest handles GET /api/captcha/recaptcha/mobile operation. // +// Получение html страницы для решения капчи, CORS отключён. +// // GET /api/captcha/recaptcha/mobile func (s *Server) handleAPICaptchaRecaptchaMobileGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -630,6 +644,8 @@ func (s *Server) handleAPICaptchaRecaptchaMobileGetRequest(args [0]string, w htt // handleAPIDislikeGetRequest handles GET /api/dislike operation. // +// Добавление дизлайка на пост. +// // GET /api/dislike func (s *Server) handleAPIDislikeGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -722,6 +738,8 @@ func (s *Server) handleAPIDislikeGetRequest(args [0]string, w http.ResponseWrite // handleAPILikeGetRequest handles GET /api/like operation. // +// Добавление лайка на пост. +// // GET /api/like func (s *Server) handleAPILikeGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -814,6 +832,10 @@ func (s *Server) handleAPILikeGetRequest(args [0]string, w http.ResponseWriter, // handleAPIMobileV2AfterBoardThreadNumGetRequest handles GET /api/mobile/v2/after/{board}/{thread}/{num} operation. // +// Получение постов в треде >= указанного. Не +// рекомендуется использовать для получения треда +// целиком, только для проверки новых постов. +// // GET /api/mobile/v2/after/{board}/{thread}/{num} func (s *Server) handleAPIMobileV2AfterBoardThreadNumGetRequest(args [3]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -907,6 +929,8 @@ func (s *Server) handleAPIMobileV2AfterBoardThreadNumGetRequest(args [3]string, // handleAPIMobileV2BoardsGetRequest handles GET /api/mobile/v2/boards operation. // +// Получение списка досок и их настроек. +// // GET /api/mobile/v2/boards func (s *Server) handleAPIMobileV2BoardsGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -982,6 +1006,8 @@ func (s *Server) handleAPIMobileV2BoardsGetRequest(args [0]string, w http.Respon // handleAPIMobileV2InfoBoardThreadGetRequest handles GET /api/mobile/v2/info/{board}/{thread} operation. // +// Получение информации о треде. +// // GET /api/mobile/v2/info/{board}/{thread} func (s *Server) handleAPIMobileV2InfoBoardThreadGetRequest(args [2]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -1074,6 +1100,8 @@ func (s *Server) handleAPIMobileV2InfoBoardThreadGetRequest(args [2]string, w ht // handleAPIMobileV2PostBoardNumGetRequest handles GET /api/mobile/v2/post/{board}/{num} operation. // +// Получение информации о посте. +// // GET /api/mobile/v2/post/{board}/{num} func (s *Server) handleAPIMobileV2PostBoardNumGetRequest(args [2]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -1166,6 +1194,8 @@ func (s *Server) handleAPIMobileV2PostBoardNumGetRequest(args [2]string, w http. // handleUserPassloginPostRequest handles POST /user/passlogin operation. // +// Авторизация пасскода. +// // POST /user/passlogin func (s *Server) handleUserPassloginPostRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -1272,6 +1302,8 @@ func (s *Server) handleUserPassloginPostRequest(args [0]string, w http.ResponseW // handleUserPostingPostRequest handles POST /user/posting operation. // +// Создание нового поста или треда. +// // POST /user/posting func (s *Server) handleUserPostingPostRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -1366,6 +1398,8 @@ func (s *Server) handleUserPostingPostRequest(args [0]string, w http.ResponseWri // handleUserReportPostRequest handles POST /user/report operation. // +// Отправка жалобы. +// // POST /user/report func (s *Server) handleUserReportPostRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue diff --git a/examples/ex_2ch/oas_parameters_gen.go b/examples/ex_2ch/oas_parameters_gen.go index 5d6493ac5..385e5d3b6 100644 --- a/examples/ex_2ch/oas_parameters_gen.go +++ b/examples/ex_2ch/oas_parameters_gen.go @@ -12,6 +12,7 @@ import ( "github.com/ogen-go/ogen/validate" ) +// APICaptcha2chcaptchaIDGetParams is parameters of GET /api/captcha/2chcaptcha/id operation. type APICaptcha2chcaptchaIDGetParams struct { // ID доски, например, b. Board OptString @@ -126,6 +127,7 @@ func decodeAPICaptcha2chcaptchaIDGetParams(args [0]string, r *http.Request) (par return params, nil } +// APICaptcha2chcaptchaShowGetParams is parameters of GET /api/captcha/2chcaptcha/show operation. type APICaptcha2chcaptchaShowGetParams struct { // ID капчи. ID string @@ -170,6 +172,7 @@ func decodeAPICaptcha2chcaptchaShowGetParams(args [0]string, r *http.Request) (p return params, nil } +// APICaptchaAppIDPublicKeyGetParams is parameters of GET /api/captcha/app/id/{public_key} operation. type APICaptchaAppIDPublicKeyGetParams struct { // Публичный ключ, для получения напишите admin@2ch.hk с темой // письма "Получение ключа для приложения" и ссылкой на @@ -320,6 +323,7 @@ func decodeAPICaptchaAppIDPublicKeyGetParams(args [1]string, r *http.Request) (p return params, nil } +// APICaptchaInvisibleRecaptchaIDGetParams is parameters of GET /api/captcha/invisible_recaptcha/id operation. type APICaptchaInvisibleRecaptchaIDGetParams struct { // ID доски, например, b. Board OptString @@ -434,6 +438,7 @@ func decodeAPICaptchaInvisibleRecaptchaIDGetParams(args [0]string, r *http.Reque return params, nil } +// APICaptchaRecaptchaIDGetParams is parameters of GET /api/captcha/recaptcha/id operation. type APICaptchaRecaptchaIDGetParams struct { // ID доски, например, b. Board OptString @@ -548,6 +553,7 @@ func decodeAPICaptchaRecaptchaIDGetParams(args [0]string, r *http.Request) (para return params, nil } +// APIDislikeGetParams is parameters of GET /api/dislike operation. type APIDislikeGetParams struct { // ID доски, например, b. Board string @@ -641,6 +647,7 @@ func decodeAPIDislikeGetParams(args [0]string, r *http.Request) (params APIDisli return params, nil } +// APILikeGetParams is parameters of GET /api/like operation. type APILikeGetParams struct { // ID доски, например, b. Board string @@ -734,6 +741,7 @@ func decodeAPILikeGetParams(args [0]string, r *http.Request) (params APILikeGetP return params, nil } +// APIMobileV2AfterBoardThreadNumGetParams is parameters of GET /api/mobile/v2/after/{board}/{thread}/{num} operation. type APIMobileV2AfterBoardThreadNumGetParams struct { // ID доски, например, b. Board string @@ -881,6 +889,7 @@ func decodeAPIMobileV2AfterBoardThreadNumGetParams(args [3]string, r *http.Reque return params, nil } +// APIMobileV2InfoBoardThreadGetParams is parameters of GET /api/mobile/v2/info/{board}/{thread} operation. type APIMobileV2InfoBoardThreadGetParams struct { // ID доски, например, b. Board string @@ -977,6 +986,7 @@ func decodeAPIMobileV2InfoBoardThreadGetParams(args [2]string, r *http.Request) return params, nil } +// APIMobileV2PostBoardNumGetParams is parameters of GET /api/mobile/v2/post/{board}/{num} operation. type APIMobileV2PostBoardNumGetParams struct { // ID доски, например, b. Board string @@ -1073,6 +1083,7 @@ func decodeAPIMobileV2PostBoardNumGetParams(args [2]string, r *http.Request) (pa return params, nil } +// UserPassloginPostParams is parameters of POST /user/passlogin operation. type UserPassloginPostParams struct { // Параметр, указывающий что запрос выполняется не // пользователем и ответ нужен в формате json. diff --git a/examples/ex_2ch/oas_request_encoders_gen.go b/examples/ex_2ch/oas_request_encoders_gen.go index bb716a6e1..e2d9788e9 100644 --- a/examples/ex_2ch/oas_request_encoders_gen.go +++ b/examples/ex_2ch/oas_request_encoders_gen.go @@ -48,6 +48,7 @@ func encodeUserPassloginPostRequest( ht.SetBody(r, body, mime.FormatMediaType(contentType, map[string]string{"boundary": boundary})) return nil } + func encodeUserPostingPostRequest( req OptUserPostingPostReqForm, r *http.Request, @@ -245,6 +246,7 @@ func encodeUserPostingPostRequest( ht.SetBody(r, body, mime.FormatMediaType(contentType, map[string]string{"boundary": boundary})) return nil } + func encodeUserReportPostRequest( req OptUserReportPostReq, r *http.Request, diff --git a/examples/ex_2ch/oas_response_encoders_gen.go b/examples/ex_2ch/oas_response_encoders_gen.go index 269b702e4..a094469c1 100644 --- a/examples/ex_2ch/oas_response_encoders_gen.go +++ b/examples/ex_2ch/oas_response_encoders_gen.go @@ -24,6 +24,7 @@ func encodeAPICaptcha2chcaptchaIDGetResponse(response Captcha, w http.ResponseWr return nil } + func encodeAPICaptcha2chcaptchaShowGetResponse(response APICaptcha2chcaptchaShowGetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *APICaptcha2chcaptchaShowGetOK: @@ -40,6 +41,7 @@ func encodeAPICaptcha2chcaptchaShowGetResponse(response APICaptcha2chcaptchaShow return errors.Errorf("unexpected response type: %T", response) } } + func encodeAPICaptchaAppIDPublicKeyGetResponse(response Captcha, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -53,6 +55,7 @@ func encodeAPICaptchaAppIDPublicKeyGetResponse(response Captcha, w http.Response return nil } + func encodeAPICaptchaInvisibleRecaptchaIDGetResponse(response Captcha, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -66,12 +69,14 @@ func encodeAPICaptchaInvisibleRecaptchaIDGetResponse(response Captcha, w http.Re return nil } + func encodeAPICaptchaInvisibleRecaptchaMobileGetResponse(response APICaptchaInvisibleRecaptchaMobileGetOK, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) return nil } + func encodeAPICaptchaRecaptchaIDGetResponse(response Captcha, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -85,12 +90,14 @@ func encodeAPICaptchaRecaptchaIDGetResponse(response Captcha, w http.ResponseWri return nil } + func encodeAPICaptchaRecaptchaMobileGetResponse(response APICaptchaRecaptchaMobileGetOK, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) return nil } + func encodeAPIDislikeGetResponse(response Like, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -104,6 +111,7 @@ func encodeAPIDislikeGetResponse(response Like, w http.ResponseWriter, span trac return nil } + func encodeAPILikeGetResponse(response Like, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -117,6 +125,7 @@ func encodeAPILikeGetResponse(response Like, w http.ResponseWriter, span trace.S return nil } + func encodeAPIMobileV2AfterBoardThreadNumGetResponse(response MobileThreadPostsAfter, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -130,6 +139,7 @@ func encodeAPIMobileV2AfterBoardThreadNumGetResponse(response MobileThreadPostsA return nil } + func encodeAPIMobileV2BoardsGetResponse(response Boards, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -143,6 +153,7 @@ func encodeAPIMobileV2BoardsGetResponse(response Boards, w http.ResponseWriter, return nil } + func encodeAPIMobileV2InfoBoardThreadGetResponse(response MobileThreadLastInfo, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -156,6 +167,7 @@ func encodeAPIMobileV2InfoBoardThreadGetResponse(response MobileThreadLastInfo, return nil } + func encodeAPIMobileV2PostBoardNumGetResponse(response MobilePost, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -169,6 +181,7 @@ func encodeAPIMobileV2PostBoardNumGetResponse(response MobilePost, w http.Respon return nil } + func encodeUserPassloginPostResponse(response Passcode, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -182,6 +195,7 @@ func encodeUserPassloginPostResponse(response Passcode, w http.ResponseWriter, s return nil } + func encodeUserPostingPostResponse(response UserPostingPostOK, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -195,6 +209,7 @@ func encodeUserPostingPostResponse(response UserPostingPostOK, w http.ResponseWr return nil } + func encodeUserReportPostResponse(response Report, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) diff --git a/examples/ex_2ch/oas_router_gen.go b/examples/ex_2ch/oas_router_gen.go index 6ff672789..1a5908dd5 100644 --- a/examples/ex_2ch/oas_router_gen.go +++ b/examples/ex_2ch/oas_router_gen.go @@ -7,14 +7,6 @@ import ( "strings" ) -func (s *Server) notFound(w http.ResponseWriter, r *http.Request) { - s.cfg.NotFound(w, r) -} - -func (s *Server) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { - s.cfg.MethodNotAllowed(w, r, allowed) -} - // ServeHTTP serves http request as defined by OpenAPI v3 specification, // calling handler that matches the path or returning not found error. func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { diff --git a/examples/ex_2ch/oas_server_gen.go b/examples/ex_2ch/oas_server_gen.go index 7fc364d3d..b6f66590c 100644 --- a/examples/ex_2ch/oas_server_gen.go +++ b/examples/ex_2ch/oas_server_gen.go @@ -4,10 +4,6 @@ package api import ( "context" - - "go.opentelemetry.io/otel/metric/instrument/syncint64" - - "github.com/ogen-go/ogen/otelogen" ) // Handler handles operations described by OpenAPI v3 specification. @@ -119,29 +115,18 @@ type Handler interface { // Server implements http server based on OpenAPI v3 specification and // calls Handler to handle requests. type Server struct { - h Handler - cfg config - - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + h Handler + baseServer } // NewServer creates new Server. func NewServer(h Handler, opts ...Option) (*Server, error) { - s := &Server{ - h: h, - cfg: newConfig(opts...), - } - var err error - if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { - return nil, err - } - if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { - return nil, err - } - if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + s, err := newConfig(opts...).baseServer() + if err != nil { return nil, err } - return s, nil + return &Server{ + h: h, + baseServer: s, + }, nil } diff --git a/examples/ex_2ch/oas_unimplemented_gen.go b/examples/ex_2ch/oas_unimplemented_gen.go index c458d8977..662ac3fa6 100644 --- a/examples/ex_2ch/oas_unimplemented_gen.go +++ b/examples/ex_2ch/oas_unimplemented_gen.go @@ -8,11 +8,11 @@ import ( ht "github.com/ogen-go/ogen/http" ) -var _ Handler = UnimplementedHandler{} - // UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented. type UnimplementedHandler struct{} +var _ Handler = UnimplementedHandler{} + // APICaptcha2chcaptchaIDGet implements GET /api/captcha/2chcaptcha/id operation. // // Получение ид для использования 2chcaptcha. diff --git a/examples/ex_ent/oas_cfg_gen.go b/examples/ex_ent/oas_cfg_gen.go index 43cd6eec1..d1c81762b 100644 --- a/examples/ex_ent/oas_cfg_gen.go +++ b/examples/ex_ent/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -15,6 +16,13 @@ import ( "github.com/ogen-go/ogen/otelogen" ) +var ( + // Allocate option closure once. + clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) + // Allocate option closure once. + serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) +) + // ErrorHandler is error handler. type ErrorHandler = ogenerrors.ErrorHandler @@ -56,6 +64,57 @@ func newConfig(opts ...Option) config { return cfg } +type baseServer struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (s baseServer) notFound(w http.ResponseWriter, r *http.Request) { + s.cfg.NotFound(w, r) +} + +func (s baseServer) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { + s.cfg.MethodNotAllowed(w, r, allowed) +} + +func (cfg config) baseServer() (s baseServer, err error) { + s = baseServer{cfg: cfg} + if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { + return s, err + } + if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { + return s, err + } + if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + return s, err + } + return s, nil +} + +type baseClient struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (cfg config) baseClient() (c baseClient, err error) { + c = baseClient{cfg: cfg} + if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { + return c, err + } + if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { + return c, err + } + if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + return c, err + } + return c, nil +} + +// Option is config option. type Option interface { apply(*config) } diff --git a/examples/ex_ent/oas_client_gen.go b/examples/ex_ent/oas_client_gen.go index 2413d29be..15c3a1cef 100644 --- a/examples/ex_ent/oas_client_gen.go +++ b/examples/ex_ent/oas_client_gen.go @@ -10,7 +10,6 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" - "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/conv" @@ -23,16 +22,10 @@ var _ Handler = struct { *Client }{} -// Allocate option closure once. -var clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) - // Client implements OAS client. type Client struct { serverURL *url.URL - cfg config - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + baseClient } // NewClient initializes new Client defined by OAS. @@ -41,20 +34,14 @@ func NewClient(serverURL string, opts ...Option) (*Client, error) { if err != nil { return nil, err } - c := &Client{ - cfg: newConfig(opts...), - serverURL: u, - } - if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { - return nil, err - } - if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { - return nil, err - } - if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + c, err := newConfig(opts...).baseClient() + if err != nil { return nil, err } - return c, nil + return &Client{ + serverURL: u, + baseClient: c, + }, nil } type serverURLKey struct{} diff --git a/examples/ex_ent/oas_handlers_gen.go b/examples/ex_ent/oas_handlers_gen.go index 84f4ae1b9..16ba1b538 100644 --- a/examples/ex_ent/oas_handlers_gen.go +++ b/examples/ex_ent/oas_handlers_gen.go @@ -16,11 +16,10 @@ import ( "github.com/ogen-go/ogen/otelogen" ) -// Allocate option closure once. -var serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) - // handleCreatePetRequest handles createPet operation. // +// Creates a new Pet and persists it to storage. +// // POST /pets func (s *Server) handleCreatePetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -118,6 +117,8 @@ func (s *Server) handleCreatePetRequest(args [0]string, w http.ResponseWriter, r // handleCreatePetCategoriesRequest handles createPetCategories operation. // +// Creates a new Category and attaches it to the Pet. +// // POST /pets/{id}/categories func (s *Server) handleCreatePetCategoriesRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -227,6 +228,8 @@ func (s *Server) handleCreatePetCategoriesRequest(args [1]string, w http.Respons // handleCreatePetFriendsRequest handles createPetFriends operation. // +// Creates a new Pet and attaches it to the Pet. +// // POST /pets/{id}/friends func (s *Server) handleCreatePetFriendsRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -336,6 +339,8 @@ func (s *Server) handleCreatePetFriendsRequest(args [1]string, w http.ResponseWr // handleCreatePetOwnerRequest handles createPetOwner operation. // +// Creates a new User and attaches it to the Pet. +// // POST /pets/{id}/owner func (s *Server) handleCreatePetOwnerRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -445,6 +450,8 @@ func (s *Server) handleCreatePetOwnerRequest(args [1]string, w http.ResponseWrit // handleDeletePetRequest handles deletePet operation. // +// Deletes the Pet with the requested ID. +// // DELETE /pets/{id} func (s *Server) handleDeletePetRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -539,6 +546,8 @@ func (s *Server) handleDeletePetRequest(args [1]string, w http.ResponseWriter, r // handleDeletePetOwnerRequest handles deletePetOwner operation. // +// Delete the attached Owner of the Pet with the given ID. +// // DELETE /pets/{id}/owner func (s *Server) handleDeletePetOwnerRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -633,6 +642,8 @@ func (s *Server) handleDeletePetOwnerRequest(args [1]string, w http.ResponseWrit // handleListPetRequest handles listPet operation. // +// List Pets. +// // GET /pets func (s *Server) handleListPetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -728,6 +739,8 @@ func (s *Server) handleListPetRequest(args [0]string, w http.ResponseWriter, r * // handleListPetCategoriesRequest handles listPetCategories operation. // +// List attached Categories. +// // GET /pets/{id}/categories func (s *Server) handleListPetCategoriesRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -824,6 +837,8 @@ func (s *Server) handleListPetCategoriesRequest(args [1]string, w http.ResponseW // handleListPetFriendsRequest handles listPetFriends operation. // +// List attached Friends. +// // GET /pets/{id}/friends func (s *Server) handleListPetFriendsRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -920,6 +935,8 @@ func (s *Server) handleListPetFriendsRequest(args [1]string, w http.ResponseWrit // handleReadPetRequest handles readPet operation. // +// Finds the Pet with the requested ID and returns it. +// // GET /pets/{id} func (s *Server) handleReadPetRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1014,6 +1031,8 @@ func (s *Server) handleReadPetRequest(args [1]string, w http.ResponseWriter, r * // handleReadPetOwnerRequest handles readPetOwner operation. // +// Find the attached User of the Pet with the given ID. +// // GET /pets/{id}/owner func (s *Server) handleReadPetOwnerRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1108,6 +1127,8 @@ func (s *Server) handleReadPetOwnerRequest(args [1]string, w http.ResponseWriter // handleUpdatePetRequest handles updatePet operation. // +// Updates a Pet and persists changes to storage. +// // PATCH /pets/{id} func (s *Server) handleUpdatePetRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ diff --git a/examples/ex_ent/oas_parameters_gen.go b/examples/ex_ent/oas_parameters_gen.go index 7dff2f22f..bc0962f36 100644 --- a/examples/ex_ent/oas_parameters_gen.go +++ b/examples/ex_ent/oas_parameters_gen.go @@ -11,6 +11,7 @@ import ( "github.com/ogen-go/ogen/uri" ) +// CreatePetCategoriesParams is parameters of createPetCategories operation. type CreatePetCategoriesParams struct { // ID of the Pet. ID int @@ -56,6 +57,7 @@ func decodeCreatePetCategoriesParams(args [1]string, r *http.Request) (params Cr return params, nil } +// CreatePetFriendsParams is parameters of createPetFriends operation. type CreatePetFriendsParams struct { // ID of the Pet. ID int @@ -101,6 +103,7 @@ func decodeCreatePetFriendsParams(args [1]string, r *http.Request) (params Creat return params, nil } +// CreatePetOwnerParams is parameters of createPetOwner operation. type CreatePetOwnerParams struct { // ID of the Pet. ID int @@ -146,6 +149,7 @@ func decodeCreatePetOwnerParams(args [1]string, r *http.Request) (params CreateP return params, nil } +// DeletePetParams is parameters of deletePet operation. type DeletePetParams struct { // ID of the Pet. ID int @@ -191,6 +195,7 @@ func decodeDeletePetParams(args [1]string, r *http.Request) (params DeletePetPar return params, nil } +// DeletePetOwnerParams is parameters of deletePetOwner operation. type DeletePetOwnerParams struct { // ID of the Pet. ID int @@ -236,6 +241,7 @@ func decodeDeletePetOwnerParams(args [1]string, r *http.Request) (params DeleteP return params, nil } +// ListPetParams is parameters of listPet operation. type ListPetParams struct { // What page to render. Page OptInt32 @@ -326,6 +332,7 @@ func decodeListPetParams(args [0]string, r *http.Request) (params ListPetParams, return params, nil } +// ListPetCategoriesParams is parameters of listPetCategories operation. type ListPetCategoriesParams struct { // ID of the Pet. ID int @@ -450,6 +457,7 @@ func decodeListPetCategoriesParams(args [1]string, r *http.Request) (params List return params, nil } +// ListPetFriendsParams is parameters of listPetFriends operation. type ListPetFriendsParams struct { // ID of the Pet. ID int @@ -574,6 +582,7 @@ func decodeListPetFriendsParams(args [1]string, r *http.Request) (params ListPet return params, nil } +// ReadPetParams is parameters of readPet operation. type ReadPetParams struct { // ID of the Pet. ID int @@ -619,6 +628,7 @@ func decodeReadPetParams(args [1]string, r *http.Request) (params ReadPetParams, return params, nil } +// ReadPetOwnerParams is parameters of readPetOwner operation. type ReadPetOwnerParams struct { // ID of the Pet. ID int @@ -664,6 +674,7 @@ func decodeReadPetOwnerParams(args [1]string, r *http.Request) (params ReadPetOw return params, nil } +// UpdatePetParams is parameters of updatePet operation. type UpdatePetParams struct { // ID of the Pet. ID int diff --git a/examples/ex_ent/oas_request_encoders_gen.go b/examples/ex_ent/oas_request_encoders_gen.go index 448ef4a5c..a844fa952 100644 --- a/examples/ex_ent/oas_request_encoders_gen.go +++ b/examples/ex_ent/oas_request_encoders_gen.go @@ -24,6 +24,7 @@ func encodeCreatePetRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeCreatePetCategoriesRequest( req CreatePetCategoriesReq, r *http.Request, @@ -37,6 +38,7 @@ func encodeCreatePetCategoriesRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeCreatePetFriendsRequest( req CreatePetFriendsReq, r *http.Request, @@ -50,6 +52,7 @@ func encodeCreatePetFriendsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeCreatePetOwnerRequest( req CreatePetOwnerReq, r *http.Request, @@ -63,6 +66,7 @@ func encodeCreatePetOwnerRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeUpdatePetRequest( req UpdatePetReq, r *http.Request, diff --git a/examples/ex_ent/oas_response_encoders_gen.go b/examples/ex_ent/oas_response_encoders_gen.go index ec80a0278..b620c5e29 100644 --- a/examples/ex_ent/oas_response_encoders_gen.go +++ b/examples/ex_ent/oas_response_encoders_gen.go @@ -65,6 +65,7 @@ func encodeCreatePetResponse(response CreatePetRes, w http.ResponseWriter, span return errors.Errorf("unexpected response type: %T", response) } } + func encodeCreatePetCategoriesResponse(response CreatePetCategoriesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PetCategoriesCreate: @@ -119,6 +120,7 @@ func encodeCreatePetCategoriesResponse(response CreatePetCategoriesRes, w http.R return errors.Errorf("unexpected response type: %T", response) } } + func encodeCreatePetFriendsResponse(response CreatePetFriendsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PetFriendsCreate: @@ -173,6 +175,7 @@ func encodeCreatePetFriendsResponse(response CreatePetFriendsRes, w http.Respons return errors.Errorf("unexpected response type: %T", response) } } + func encodeCreatePetOwnerResponse(response CreatePetOwnerRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PetOwnerCreate: @@ -227,6 +230,7 @@ func encodeCreatePetOwnerResponse(response CreatePetOwnerRes, w http.ResponseWri return errors.Errorf("unexpected response type: %T", response) } } + func encodeDeletePetResponse(response DeletePetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *DeletePetNoContent: @@ -274,6 +278,7 @@ func encodeDeletePetResponse(response DeletePetRes, w http.ResponseWriter, span return errors.Errorf("unexpected response type: %T", response) } } + func encodeDeletePetOwnerResponse(response DeletePetOwnerRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *DeletePetOwnerNoContent: @@ -321,6 +326,7 @@ func encodeDeletePetOwnerResponse(response DeletePetOwnerRes, w http.ResponseWri return errors.Errorf("unexpected response type: %T", response) } } + func encodeListPetResponse(response ListPetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ListPetOKApplicationJSON: @@ -375,6 +381,7 @@ func encodeListPetResponse(response ListPetRes, w http.ResponseWriter, span trac return errors.Errorf("unexpected response type: %T", response) } } + func encodeListPetCategoriesResponse(response ListPetCategoriesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ListPetCategoriesOKApplicationJSON: @@ -429,6 +436,7 @@ func encodeListPetCategoriesResponse(response ListPetCategoriesRes, w http.Respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeListPetFriendsResponse(response ListPetFriendsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ListPetFriendsOKApplicationJSON: @@ -483,6 +491,7 @@ func encodeListPetFriendsResponse(response ListPetFriendsRes, w http.ResponseWri return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadPetResponse(response ReadPetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PetRead: @@ -537,6 +546,7 @@ func encodeReadPetResponse(response ReadPetRes, w http.ResponseWriter, span trac return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadPetOwnerResponse(response ReadPetOwnerRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PetOwnerRead: @@ -591,6 +601,7 @@ func encodeReadPetOwnerResponse(response ReadPetOwnerRes, w http.ResponseWriter, return errors.Errorf("unexpected response type: %T", response) } } + func encodeUpdatePetResponse(response UpdatePetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PetUpdate: diff --git a/examples/ex_ent/oas_router_gen.go b/examples/ex_ent/oas_router_gen.go index 3b17774d2..c743814e4 100644 --- a/examples/ex_ent/oas_router_gen.go +++ b/examples/ex_ent/oas_router_gen.go @@ -7,14 +7,6 @@ import ( "strings" ) -func (s *Server) notFound(w http.ResponseWriter, r *http.Request) { - s.cfg.NotFound(w, r) -} - -func (s *Server) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { - s.cfg.MethodNotAllowed(w, r, allowed) -} - // ServeHTTP serves http request as defined by OpenAPI v3 specification, // calling handler that matches the path or returning not found error. func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { diff --git a/examples/ex_ent/oas_server_gen.go b/examples/ex_ent/oas_server_gen.go index 589227b44..277b3d559 100644 --- a/examples/ex_ent/oas_server_gen.go +++ b/examples/ex_ent/oas_server_gen.go @@ -4,10 +4,6 @@ package api import ( "context" - - "go.opentelemetry.io/otel/metric/instrument/syncint64" - - "github.com/ogen-go/ogen/otelogen" ) // Handler handles operations described by OpenAPI v3 specification. @@ -89,29 +85,18 @@ type Handler interface { // Server implements http server based on OpenAPI v3 specification and // calls Handler to handle requests. type Server struct { - h Handler - cfg config - - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + h Handler + baseServer } // NewServer creates new Server. func NewServer(h Handler, opts ...Option) (*Server, error) { - s := &Server{ - h: h, - cfg: newConfig(opts...), - } - var err error - if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { - return nil, err - } - if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { - return nil, err - } - if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + s, err := newConfig(opts...).baseServer() + if err != nil { return nil, err } - return s, nil + return &Server{ + h: h, + baseServer: s, + }, nil } diff --git a/examples/ex_ent/oas_unimplemented_gen.go b/examples/ex_ent/oas_unimplemented_gen.go index 4f28f3b60..aa04a338a 100644 --- a/examples/ex_ent/oas_unimplemented_gen.go +++ b/examples/ex_ent/oas_unimplemented_gen.go @@ -8,11 +8,11 @@ import ( ht "github.com/ogen-go/ogen/http" ) -var _ Handler = UnimplementedHandler{} - // UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented. type UnimplementedHandler struct{} +var _ Handler = UnimplementedHandler{} + // CreatePet implements createPet operation. // // Creates a new Pet and persists it to storage. diff --git a/examples/ex_firecracker/oas_cfg_gen.go b/examples/ex_firecracker/oas_cfg_gen.go index 43cd6eec1..d1c81762b 100644 --- a/examples/ex_firecracker/oas_cfg_gen.go +++ b/examples/ex_firecracker/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -15,6 +16,13 @@ import ( "github.com/ogen-go/ogen/otelogen" ) +var ( + // Allocate option closure once. + clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) + // Allocate option closure once. + serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) +) + // ErrorHandler is error handler. type ErrorHandler = ogenerrors.ErrorHandler @@ -56,6 +64,57 @@ func newConfig(opts ...Option) config { return cfg } +type baseServer struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (s baseServer) notFound(w http.ResponseWriter, r *http.Request) { + s.cfg.NotFound(w, r) +} + +func (s baseServer) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { + s.cfg.MethodNotAllowed(w, r, allowed) +} + +func (cfg config) baseServer() (s baseServer, err error) { + s = baseServer{cfg: cfg} + if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { + return s, err + } + if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { + return s, err + } + if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + return s, err + } + return s, nil +} + +type baseClient struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (cfg config) baseClient() (c baseClient, err error) { + c = baseClient{cfg: cfg} + if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { + return c, err + } + if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { + return c, err + } + if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + return c, err + } + return c, nil +} + +// Option is config option. type Option interface { apply(*config) } diff --git a/examples/ex_firecracker/oas_client_gen.go b/examples/ex_firecracker/oas_client_gen.go index d0ba1acc3..a2b480b6d 100644 --- a/examples/ex_firecracker/oas_client_gen.go +++ b/examples/ex_firecracker/oas_client_gen.go @@ -10,7 +10,6 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" - "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/conv" @@ -23,16 +22,10 @@ var _ Handler = struct { *Client }{} -// Allocate option closure once. -var clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) - // Client implements OAS client. type Client struct { serverURL *url.URL - cfg config - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + baseClient } // NewClient initializes new Client defined by OAS. @@ -41,20 +34,14 @@ func NewClient(serverURL string, opts ...Option) (*Client, error) { if err != nil { return nil, err } - c := &Client{ - cfg: newConfig(opts...), - serverURL: u, - } - if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { - return nil, err - } - if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { - return nil, err - } - if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + c, err := newConfig(opts...).baseClient() + if err != nil { return nil, err } - return c, nil + return &Client{ + serverURL: u, + baseClient: c, + }, nil } type serverURLKey struct{} diff --git a/examples/ex_firecracker/oas_handlers_gen.go b/examples/ex_firecracker/oas_handlers_gen.go index 5a7046183..7669e286e 100644 --- a/examples/ex_firecracker/oas_handlers_gen.go +++ b/examples/ex_firecracker/oas_handlers_gen.go @@ -16,11 +16,10 @@ import ( "github.com/ogen-go/ogen/otelogen" ) -// Allocate option closure once. -var serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) - // handleCreateSnapshotRequest handles createSnapshot operation. // +// Creates a snapshot of the microVM state. The microVM should be in the `Paused` state. +// // PUT /snapshot/create func (s *Server) handleCreateSnapshotRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -118,6 +117,8 @@ func (s *Server) handleCreateSnapshotRequest(args [0]string, w http.ResponseWrit // handleCreateSyncActionRequest handles createSyncAction operation. // +// Creates a synchronous action. +// // PUT /actions func (s *Server) handleCreateSyncActionRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -215,6 +216,8 @@ func (s *Server) handleCreateSyncActionRequest(args [0]string, w http.ResponseWr // handleDescribeBalloonConfigRequest handles describeBalloonConfig operation. // +// Returns the current balloon device configuration. +// // GET /balloon func (s *Server) handleDescribeBalloonConfigRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -293,6 +296,8 @@ func (s *Server) handleDescribeBalloonConfigRequest(args [0]string, w http.Respo // handleDescribeBalloonStatsRequest handles describeBalloonStats operation. // +// Returns the latest balloon device statistics, only if enabled pre-boot. +// // GET /balloon/statistics func (s *Server) handleDescribeBalloonStatsRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -371,6 +376,8 @@ func (s *Server) handleDescribeBalloonStatsRequest(args [0]string, w http.Respon // handleDescribeInstanceRequest handles describeInstance operation. // +// Returns general information about an instance. +// // GET / func (s *Server) handleDescribeInstanceRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -449,6 +456,8 @@ func (s *Server) handleDescribeInstanceRequest(args [0]string, w http.ResponseWr // handleGetExportVmConfigRequest handles getExportVmConfig operation. // +// Gets configuration for all VM resources. +// // GET /vm/config func (s *Server) handleGetExportVmConfigRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -527,6 +536,10 @@ func (s *Server) handleGetExportVmConfigRequest(args [0]string, w http.ResponseW // handleGetMachineConfigurationRequest handles getMachineConfiguration operation. // +// Gets the machine configuration of the VM. When called before the PUT operation, it will return the +// default values for the vCPU count (=1), memory size (=128 MiB). By default Hyperthreading is +// disabled and there is no CPU Template. +// // GET /machine-config func (s *Server) handleGetMachineConfigurationRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -605,6 +618,9 @@ func (s *Server) handleGetMachineConfigurationRequest(args [0]string, w http.Res // handleLoadSnapshotRequest handles loadSnapshot operation. // +// Loads the microVM state from a snapshot. Only accepted on a fresh Firecracker process (before +// configuring any resource other than the Logger and Metrics). +// // PUT /snapshot/load func (s *Server) handleLoadSnapshotRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -702,6 +718,8 @@ func (s *Server) handleLoadSnapshotRequest(args [0]string, w http.ResponseWriter // handleMmdsConfigPutRequest handles PUT /mmds/config operation. // +// Creates MMDS configuration to be used by the MMDS network stack. +// // PUT /mmds/config func (s *Server) handleMmdsConfigPutRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -796,6 +814,8 @@ func (s *Server) handleMmdsConfigPutRequest(args [0]string, w http.ResponseWrite // handleMmdsGetRequest handles GET /mmds operation. // +// Get the MMDS data store. +// // GET /mmds func (s *Server) handleMmdsGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -871,6 +891,8 @@ func (s *Server) handleMmdsGetRequest(args [0]string, w http.ResponseWriter, r * // handleMmdsPatchRequest handles PATCH /mmds operation. // +// Updates the MMDS data store. +// // PATCH /mmds func (s *Server) handleMmdsPatchRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -965,6 +987,8 @@ func (s *Server) handleMmdsPatchRequest(args [0]string, w http.ResponseWriter, r // handleMmdsPutRequest handles PUT /mmds operation. // +// Creates a MMDS (Microvm Metadata Service) data store. +// // PUT /mmds func (s *Server) handleMmdsPutRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -1059,6 +1083,9 @@ func (s *Server) handleMmdsPutRequest(args [0]string, w http.ResponseWriter, r * // handlePatchBalloonRequest handles patchBalloon operation. // +// Updates an existing balloon device, before or after machine startup. Will fail if update is not +// possible. +// // PATCH /balloon func (s *Server) handlePatchBalloonRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1156,6 +1183,9 @@ func (s *Server) handlePatchBalloonRequest(args [0]string, w http.ResponseWriter // handlePatchBalloonStatsIntervalRequest handles patchBalloonStatsInterval operation. // +// Updates an existing balloon device statistics interval, before or after machine startup. Will fail +// if update is not possible. +// // PATCH /balloon/statistics func (s *Server) handlePatchBalloonStatsIntervalRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1253,6 +1283,9 @@ func (s *Server) handlePatchBalloonStatsIntervalRequest(args [0]string, w http.R // handlePatchGuestDriveByIDRequest handles patchGuestDriveByID operation. // +// Updates the properties of the drive with the ID specified by drive_id path parameter. Will fail if +// update is not possible. +// // PATCH /drives/{drive_id} func (s *Server) handlePatchGuestDriveByIDRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1362,6 +1395,8 @@ func (s *Server) handlePatchGuestDriveByIDRequest(args [1]string, w http.Respons // handlePatchGuestNetworkInterfaceByIDRequest handles patchGuestNetworkInterfaceByID operation. // +// Updates the rate limiters applied to a network interface. +// // PATCH /network-interfaces/{iface_id} func (s *Server) handlePatchGuestNetworkInterfaceByIDRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1471,6 +1506,9 @@ func (s *Server) handlePatchGuestNetworkInterfaceByIDRequest(args [1]string, w h // handlePatchMachineConfigurationRequest handles patchMachineConfiguration operation. // +// Partially updates the Virtual Machine Configuration with the specified input. If any of the +// parameters has an incorrect value, the whole update fails. +// // PATCH /machine-config func (s *Server) handlePatchMachineConfigurationRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1568,6 +1606,8 @@ func (s *Server) handlePatchMachineConfigurationRequest(args [0]string, w http.R // handlePatchVmRequest handles patchVm operation. // +// Sets the desired state (Paused or Resumed) for the microVM. +// // PATCH /vm func (s *Server) handlePatchVmRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1665,6 +1705,9 @@ func (s *Server) handlePatchVmRequest(args [0]string, w http.ResponseWriter, r * // handlePutBalloonRequest handles putBalloon operation. // +// Creates a new balloon device if one does not already exist, otherwise updates it, before machine +// startup. This will fail after machine startup. Will fail if update is not possible. +// // PUT /balloon func (s *Server) handlePutBalloonRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1762,6 +1805,9 @@ func (s *Server) handlePutBalloonRequest(args [0]string, w http.ResponseWriter, // handlePutGuestBootSourceRequest handles putGuestBootSource operation. // +// Creates new boot source if one does not already exist, otherwise updates it. Will fail if update +// is not possible. +// // PUT /boot-source func (s *Server) handlePutGuestBootSourceRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1859,6 +1905,9 @@ func (s *Server) handlePutGuestBootSourceRequest(args [0]string, w http.Response // handlePutGuestDriveByIDRequest handles putGuestDriveByID operation. // +// Creates new drive with ID specified by drive_id path parameter. If a drive with the specified ID +// already exists, updates its state based on new input. Will fail if update is not possible. +// // PUT /drives/{drive_id} func (s *Server) handlePutGuestDriveByIDRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1968,6 +2017,8 @@ func (s *Server) handlePutGuestDriveByIDRequest(args [1]string, w http.ResponseW // handlePutGuestNetworkInterfaceByIDRequest handles putGuestNetworkInterfaceByID operation. // +// Creates new network interface with ID specified by iface_id path parameter. +// // PUT /network-interfaces/{iface_id} func (s *Server) handlePutGuestNetworkInterfaceByIDRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -2077,6 +2128,9 @@ func (s *Server) handlePutGuestNetworkInterfaceByIDRequest(args [1]string, w htt // handlePutGuestVsockRequest handles putGuestVsock operation. // +// The first call creates the device with the configuration specified in body. Subsequent calls will +// update the device configuration. May fail if update is not possible. +// // PUT /vsock func (s *Server) handlePutGuestVsockRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -2174,6 +2228,8 @@ func (s *Server) handlePutGuestVsockRequest(args [0]string, w http.ResponseWrite // handlePutLoggerRequest handles putLogger operation. // +// Initializes the logger by specifying a named pipe or a file for the logs output. +// // PUT /logger func (s *Server) handlePutLoggerRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -2271,6 +2327,11 @@ func (s *Server) handlePutLoggerRequest(args [0]string, w http.ResponseWriter, r // handlePutMachineConfigurationRequest handles putMachineConfiguration operation. // +// Updates the Virtual Machine Configuration with the specified input. Firecracker starts with +// default values for vCPU count (=1) and memory size (=128 MiB). With Hyperthreading enabled, the +// vCPU count is restricted to be 1 or an even number, otherwise there are no restrictions regarding +// the vCPU count. If any of the parameters has an incorrect value, the whole update fails. +// // PUT /machine-config func (s *Server) handlePutMachineConfigurationRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -2368,6 +2429,8 @@ func (s *Server) handlePutMachineConfigurationRequest(args [0]string, w http.Res // handlePutMetricsRequest handles putMetrics operation. // +// Initializes the metrics system by specifying a named pipe or a file for the metrics output. +// // PUT /metrics func (s *Server) handlePutMetricsRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ diff --git a/examples/ex_firecracker/oas_parameters_gen.go b/examples/ex_firecracker/oas_parameters_gen.go index 4308b3e20..7f3472b6b 100644 --- a/examples/ex_firecracker/oas_parameters_gen.go +++ b/examples/ex_firecracker/oas_parameters_gen.go @@ -11,6 +11,7 @@ import ( "github.com/ogen-go/ogen/uri" ) +// PatchGuestDriveByIDParams is parameters of patchGuestDriveByID operation. type PatchGuestDriveByIDParams struct { // The id of the guest drive. DriveID string @@ -56,6 +57,7 @@ func decodePatchGuestDriveByIDParams(args [1]string, r *http.Request) (params Pa return params, nil } +// PatchGuestNetworkInterfaceByIDParams is parameters of patchGuestNetworkInterfaceByID operation. type PatchGuestNetworkInterfaceByIDParams struct { // The id of the guest network interface. IfaceID string @@ -101,6 +103,7 @@ func decodePatchGuestNetworkInterfaceByIDParams(args [1]string, r *http.Request) return params, nil } +// PutGuestDriveByIDParams is parameters of putGuestDriveByID operation. type PutGuestDriveByIDParams struct { // The id of the guest drive. DriveID string @@ -146,6 +149,7 @@ func decodePutGuestDriveByIDParams(args [1]string, r *http.Request) (params PutG return params, nil } +// PutGuestNetworkInterfaceByIDParams is parameters of putGuestNetworkInterfaceByID operation. type PutGuestNetworkInterfaceByIDParams struct { // The id of the guest network interface. IfaceID string diff --git a/examples/ex_firecracker/oas_request_encoders_gen.go b/examples/ex_firecracker/oas_request_encoders_gen.go index e236b0be2..61aa05f7a 100644 --- a/examples/ex_firecracker/oas_request_encoders_gen.go +++ b/examples/ex_firecracker/oas_request_encoders_gen.go @@ -24,6 +24,7 @@ func encodeCreateSnapshotRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeCreateSyncActionRequest( req InstanceActionInfo, r *http.Request, @@ -37,6 +38,7 @@ func encodeCreateSyncActionRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeLoadSnapshotRequest( req SnapshotLoadParams, r *http.Request, @@ -50,6 +52,7 @@ func encodeLoadSnapshotRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeMmdsConfigPutRequest( req MmdsConfig, r *http.Request, @@ -63,6 +66,7 @@ func encodeMmdsConfigPutRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeMmdsPatchRequest( req *MmdsPatchReq, r *http.Request, @@ -78,6 +82,7 @@ func encodeMmdsPatchRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeMmdsPutRequest( req *MmdsPutReq, r *http.Request, @@ -93,6 +98,7 @@ func encodeMmdsPutRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePatchBalloonRequest( req BalloonUpdate, r *http.Request, @@ -106,6 +112,7 @@ func encodePatchBalloonRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePatchBalloonStatsIntervalRequest( req BalloonStatsUpdate, r *http.Request, @@ -119,6 +126,7 @@ func encodePatchBalloonStatsIntervalRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePatchGuestDriveByIDRequest( req PartialDrive, r *http.Request, @@ -132,6 +140,7 @@ func encodePatchGuestDriveByIDRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePatchGuestNetworkInterfaceByIDRequest( req PartialNetworkInterface, r *http.Request, @@ -145,6 +154,7 @@ func encodePatchGuestNetworkInterfaceByIDRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePatchMachineConfigurationRequest( req OptMachineConfiguration, r *http.Request, @@ -164,6 +174,7 @@ func encodePatchMachineConfigurationRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePatchVmRequest( req VM, r *http.Request, @@ -177,6 +188,7 @@ func encodePatchVmRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePutBalloonRequest( req Balloon, r *http.Request, @@ -190,6 +202,7 @@ func encodePutBalloonRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePutGuestBootSourceRequest( req BootSource, r *http.Request, @@ -203,6 +216,7 @@ func encodePutGuestBootSourceRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePutGuestDriveByIDRequest( req Drive, r *http.Request, @@ -216,6 +230,7 @@ func encodePutGuestDriveByIDRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePutGuestNetworkInterfaceByIDRequest( req NetworkInterface, r *http.Request, @@ -229,6 +244,7 @@ func encodePutGuestNetworkInterfaceByIDRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePutGuestVsockRequest( req Vsock, r *http.Request, @@ -242,6 +258,7 @@ func encodePutGuestVsockRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePutLoggerRequest( req Logger, r *http.Request, @@ -255,6 +272,7 @@ func encodePutLoggerRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePutMachineConfigurationRequest( req OptMachineConfiguration, r *http.Request, @@ -274,6 +292,7 @@ func encodePutMachineConfigurationRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePutMetricsRequest( req Metrics, r *http.Request, diff --git a/examples/ex_firecracker/oas_response_encoders_gen.go b/examples/ex_firecracker/oas_response_encoders_gen.go index 822adccb0..ef10ccf26 100644 --- a/examples/ex_firecracker/oas_response_encoders_gen.go +++ b/examples/ex_firecracker/oas_response_encoders_gen.go @@ -56,6 +56,7 @@ func encodeCreateSnapshotResponse(response CreateSnapshotRes, w http.ResponseWri return errors.Errorf("unexpected response type: %T", response) } } + func encodeCreateSyncActionResponse(response CreateSyncActionRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *CreateSyncActionNoContent: @@ -101,6 +102,7 @@ func encodeCreateSyncActionResponse(response CreateSyncActionRes, w http.Respons return errors.Errorf("unexpected response type: %T", response) } } + func encodeDescribeBalloonConfigResponse(response DescribeBalloonConfigRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Balloon: @@ -153,6 +155,7 @@ func encodeDescribeBalloonConfigResponse(response DescribeBalloonConfigRes, w ht return errors.Errorf("unexpected response type: %T", response) } } + func encodeDescribeBalloonStatsResponse(response DescribeBalloonStatsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *BalloonStats: @@ -205,6 +208,7 @@ func encodeDescribeBalloonStatsResponse(response DescribeBalloonStatsRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodeDescribeInstanceResponse(response DescribeInstanceRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *InstanceInfo: @@ -245,6 +249,7 @@ func encodeDescribeInstanceResponse(response DescribeInstanceRes, w http.Respons return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetExportVmConfigResponse(response GetExportVmConfigRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *FullVmConfiguration: @@ -285,6 +290,7 @@ func encodeGetExportVmConfigResponse(response GetExportVmConfigRes, w http.Respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetMachineConfigurationResponse(response GetMachineConfigurationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *MachineConfiguration: @@ -325,6 +331,7 @@ func encodeGetMachineConfigurationResponse(response GetMachineConfigurationRes, return errors.Errorf("unexpected response type: %T", response) } } + func encodeLoadSnapshotResponse(response LoadSnapshotRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *LoadSnapshotNoContent: @@ -370,6 +377,7 @@ func encodeLoadSnapshotResponse(response LoadSnapshotRes, w http.ResponseWriter, return errors.Errorf("unexpected response type: %T", response) } } + func encodeMmdsConfigPutResponse(response MmdsConfigPutRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *MmdsConfigPutNoContent: @@ -415,6 +423,7 @@ func encodeMmdsConfigPutResponse(response MmdsConfigPutRes, w http.ResponseWrite return errors.Errorf("unexpected response type: %T", response) } } + func encodeMmdsGetResponse(response MmdsGetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *MmdsGetOK: @@ -467,6 +476,7 @@ func encodeMmdsGetResponse(response MmdsGetRes, w http.ResponseWriter, span trac return errors.Errorf("unexpected response type: %T", response) } } + func encodeMmdsPatchResponse(response MmdsPatchRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *MmdsPatchNoContent: @@ -512,6 +522,7 @@ func encodeMmdsPatchResponse(response MmdsPatchRes, w http.ResponseWriter, span return errors.Errorf("unexpected response type: %T", response) } } + func encodeMmdsPutResponse(response MmdsPutRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *MmdsPutNoContent: @@ -557,6 +568,7 @@ func encodeMmdsPutResponse(response MmdsPutRes, w http.ResponseWriter, span trac return errors.Errorf("unexpected response type: %T", response) } } + func encodePatchBalloonResponse(response PatchBalloonRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PatchBalloonNoContent: @@ -602,6 +614,7 @@ func encodePatchBalloonResponse(response PatchBalloonRes, w http.ResponseWriter, return errors.Errorf("unexpected response type: %T", response) } } + func encodePatchBalloonStatsIntervalResponse(response PatchBalloonStatsIntervalRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PatchBalloonStatsIntervalNoContent: @@ -647,6 +660,7 @@ func encodePatchBalloonStatsIntervalResponse(response PatchBalloonStatsIntervalR return errors.Errorf("unexpected response type: %T", response) } } + func encodePatchGuestDriveByIDResponse(response PatchGuestDriveByIDRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PatchGuestDriveByIDNoContent: @@ -692,6 +706,7 @@ func encodePatchGuestDriveByIDResponse(response PatchGuestDriveByIDRes, w http.R return errors.Errorf("unexpected response type: %T", response) } } + func encodePatchGuestNetworkInterfaceByIDResponse(response PatchGuestNetworkInterfaceByIDRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PatchGuestNetworkInterfaceByIDNoContent: @@ -737,6 +752,7 @@ func encodePatchGuestNetworkInterfaceByIDResponse(response PatchGuestNetworkInte return errors.Errorf("unexpected response type: %T", response) } } + func encodePatchMachineConfigurationResponse(response PatchMachineConfigurationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PatchMachineConfigurationNoContent: @@ -782,6 +798,7 @@ func encodePatchMachineConfigurationResponse(response PatchMachineConfigurationR return errors.Errorf("unexpected response type: %T", response) } } + func encodePatchVmResponse(response PatchVmRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PatchVmNoContent: @@ -827,6 +844,7 @@ func encodePatchVmResponse(response PatchVmRes, w http.ResponseWriter, span trac return errors.Errorf("unexpected response type: %T", response) } } + func encodePutBalloonResponse(response PutBalloonRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PutBalloonNoContent: @@ -872,6 +890,7 @@ func encodePutBalloonResponse(response PutBalloonRes, w http.ResponseWriter, spa return errors.Errorf("unexpected response type: %T", response) } } + func encodePutGuestBootSourceResponse(response PutGuestBootSourceRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PutGuestBootSourceNoContent: @@ -917,6 +936,7 @@ func encodePutGuestBootSourceResponse(response PutGuestBootSourceRes, w http.Res return errors.Errorf("unexpected response type: %T", response) } } + func encodePutGuestDriveByIDResponse(response PutGuestDriveByIDRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PutGuestDriveByIDNoContent: @@ -962,6 +982,7 @@ func encodePutGuestDriveByIDResponse(response PutGuestDriveByIDRes, w http.Respo return errors.Errorf("unexpected response type: %T", response) } } + func encodePutGuestNetworkInterfaceByIDResponse(response PutGuestNetworkInterfaceByIDRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PutGuestNetworkInterfaceByIDNoContent: @@ -1007,6 +1028,7 @@ func encodePutGuestNetworkInterfaceByIDResponse(response PutGuestNetworkInterfac return errors.Errorf("unexpected response type: %T", response) } } + func encodePutGuestVsockResponse(response PutGuestVsockRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PutGuestVsockNoContent: @@ -1052,6 +1074,7 @@ func encodePutGuestVsockResponse(response PutGuestVsockRes, w http.ResponseWrite return errors.Errorf("unexpected response type: %T", response) } } + func encodePutLoggerResponse(response PutLoggerRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PutLoggerNoContent: @@ -1097,6 +1120,7 @@ func encodePutLoggerResponse(response PutLoggerRes, w http.ResponseWriter, span return errors.Errorf("unexpected response type: %T", response) } } + func encodePutMachineConfigurationResponse(response PutMachineConfigurationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PutMachineConfigurationNoContent: @@ -1142,6 +1166,7 @@ func encodePutMachineConfigurationResponse(response PutMachineConfigurationRes, return errors.Errorf("unexpected response type: %T", response) } } + func encodePutMetricsResponse(response PutMetricsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PutMetricsNoContent: diff --git a/examples/ex_firecracker/oas_router_gen.go b/examples/ex_firecracker/oas_router_gen.go index c224c1e2a..75918031f 100644 --- a/examples/ex_firecracker/oas_router_gen.go +++ b/examples/ex_firecracker/oas_router_gen.go @@ -7,14 +7,6 @@ import ( "strings" ) -func (s *Server) notFound(w http.ResponseWriter, r *http.Request) { - s.cfg.NotFound(w, r) -} - -func (s *Server) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { - s.cfg.MethodNotAllowed(w, r, allowed) -} - // ServeHTTP serves http request as defined by OpenAPI v3 specification, // calling handler that matches the path or returning not found error. func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { diff --git a/examples/ex_firecracker/oas_server_gen.go b/examples/ex_firecracker/oas_server_gen.go index 4d5ee20e2..c31ae580e 100644 --- a/examples/ex_firecracker/oas_server_gen.go +++ b/examples/ex_firecracker/oas_server_gen.go @@ -4,10 +4,6 @@ package api import ( "context" - - "go.opentelemetry.io/otel/metric/instrument/syncint64" - - "github.com/ogen-go/ogen/otelogen" ) // Handler handles operations described by OpenAPI v3 specification. @@ -187,29 +183,18 @@ type Handler interface { // Server implements http server based on OpenAPI v3 specification and // calls Handler to handle requests. type Server struct { - h Handler - cfg config - - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + h Handler + baseServer } // NewServer creates new Server. func NewServer(h Handler, opts ...Option) (*Server, error) { - s := &Server{ - h: h, - cfg: newConfig(opts...), - } - var err error - if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { - return nil, err - } - if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { - return nil, err - } - if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + s, err := newConfig(opts...).baseServer() + if err != nil { return nil, err } - return s, nil + return &Server{ + h: h, + baseServer: s, + }, nil } diff --git a/examples/ex_firecracker/oas_unimplemented_gen.go b/examples/ex_firecracker/oas_unimplemented_gen.go index fd2bf8008..18982af0b 100644 --- a/examples/ex_firecracker/oas_unimplemented_gen.go +++ b/examples/ex_firecracker/oas_unimplemented_gen.go @@ -8,11 +8,11 @@ import ( ht "github.com/ogen-go/ogen/http" ) -var _ Handler = UnimplementedHandler{} - // UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented. type UnimplementedHandler struct{} +var _ Handler = UnimplementedHandler{} + // CreateSnapshot implements createSnapshot operation. // // Creates a snapshot of the microVM state. The microVM should be in the `Paused` state. diff --git a/examples/ex_github/oas_cfg_gen.go b/examples/ex_github/oas_cfg_gen.go index a145ae6fd..36986a4fc 100644 --- a/examples/ex_github/oas_cfg_gen.go +++ b/examples/ex_github/oas_cfg_gen.go @@ -8,6 +8,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -23,6 +24,12 @@ var regexMap = map[string]*regexp.Regexp{ "^[0-9a-fA-F]+$": regexp.MustCompile("^[0-9a-fA-F]+$"), "^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) ": regexp.MustCompile("^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) "), } +var ( + // Allocate option closure once. + clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) + // Allocate option closure once. + serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) +) // ErrorHandler is error handler. type ErrorHandler = ogenerrors.ErrorHandler @@ -65,6 +72,57 @@ func newConfig(opts ...Option) config { return cfg } +type baseServer struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (s baseServer) notFound(w http.ResponseWriter, r *http.Request) { + s.cfg.NotFound(w, r) +} + +func (s baseServer) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { + s.cfg.MethodNotAllowed(w, r, allowed) +} + +func (cfg config) baseServer() (s baseServer, err error) { + s = baseServer{cfg: cfg} + if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { + return s, err + } + if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { + return s, err + } + if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + return s, err + } + return s, nil +} + +type baseClient struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (cfg config) baseClient() (c baseClient, err error) { + c = baseClient{cfg: cfg} + if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { + return c, err + } + if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { + return c, err + } + if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + return c, err + } + return c, nil +} + +// Option is config option. type Option interface { apply(*config) } diff --git a/examples/ex_github/oas_client_gen.go b/examples/ex_github/oas_client_gen.go index e1a05182a..6d1b1adb7 100644 --- a/examples/ex_github/oas_client_gen.go +++ b/examples/ex_github/oas_client_gen.go @@ -10,7 +10,6 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" - "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/conv" @@ -23,16 +22,10 @@ var _ Handler = struct { *Client }{} -// Allocate option closure once. -var clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) - // Client implements OAS client. type Client struct { serverURL *url.URL - cfg config - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + baseClient } // NewClient initializes new Client defined by OAS. @@ -41,20 +34,14 @@ func NewClient(serverURL string, opts ...Option) (*Client, error) { if err != nil { return nil, err } - c := &Client{ - cfg: newConfig(opts...), - serverURL: u, - } - if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { - return nil, err - } - if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { - return nil, err - } - if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + c, err := newConfig(opts...).baseClient() + if err != nil { return nil, err } - return c, nil + return &Client{ + serverURL: u, + baseClient: c, + }, nil } type serverURLKey struct{} diff --git a/examples/ex_github/oas_handlers_gen.go b/examples/ex_github/oas_handlers_gen.go index 10d7852d4..ff437f9e1 100644 --- a/examples/ex_github/oas_handlers_gen.go +++ b/examples/ex_github/oas_handlers_gen.go @@ -16,11 +16,18 @@ import ( "github.com/ogen-go/ogen/otelogen" ) -// Allocate option closure once. -var serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) - // handleActionsAddRepoAccessToSelfHostedRunnerGroupInOrgRequest handles actions/add-repo-access-to-self-hosted-runner-group-in-org operation. // +// The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more +// information, see "[GitHub's products](https://docs.github. +// com/github/getting-started-with-github/githubs-products)." +// Adds a repository to the list of selected repositories that can access a self-hosted runner group. +// The runner group must have `visibility` set to `selected`. For more information, see "[Create a +// self-hosted runner group for an +// organization](#create-a-self-hosted-runner-group-for-an-organization)." +// You must authenticate using an access token with the `admin:org` +// scope to use this endpoint. +// // PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id} func (s *Server) handleActionsAddRepoAccessToSelfHostedRunnerGroupInOrgRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -117,6 +124,12 @@ func (s *Server) handleActionsAddRepoAccessToSelfHostedRunnerGroupInOrgRequest(a // handleActionsAddSelectedRepoToOrgSecretRequest handles actions/add-selected-repo-to-org-secret operation. // +// Adds a repository to an organization secret when the `visibility` for repository access is set to +// `selected`. The visibility is set when you [Create or update an organization secret](https://docs. +// github.com/rest/reference/actions#create-or-update-an-organization-secret). You must authenticate +// using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the +// `secrets` organization permission to use this endpoint. +// // PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id} func (s *Server) handleActionsAddSelectedRepoToOrgSecretRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -213,6 +226,13 @@ func (s *Server) handleActionsAddSelectedRepoToOrgSecretRequest(args [3]string, // handleActionsAddSelfHostedRunnerToGroupForOrgRequest handles actions/add-self-hosted-runner-to-group-for-org operation. // +// The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more +// information, see "[GitHub's products](https://docs.github. +// com/github/getting-started-with-github/githubs-products)." +// Adds a self-hosted runner to a runner group configured in an organization. +// You must authenticate using an access token with the `admin:org` +// scope to use this endpoint. +// // PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id} func (s *Server) handleActionsAddSelfHostedRunnerToGroupForOrgRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -309,6 +329,12 @@ func (s *Server) handleActionsAddSelfHostedRunnerToGroupForOrgRequest(args [3]st // handleActionsApproveWorkflowRunRequest handles actions/approve-workflow-run operation. // +// Approves a workflow run for a pull request from a public fork of a first time contributor. For +// more information, see ["Approving workflow runs from public forks](https://docs.github. +// com/actions/managing-workflow-runs/approving-workflow-runs-from-public-forks)." +// You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub +// Apps must have the `actions:write` permission to use this endpoint. +// // POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve func (s *Server) handleActionsApproveWorkflowRunRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -405,6 +431,10 @@ func (s *Server) handleActionsApproveWorkflowRunRequest(args [3]string, w http.R // handleActionsCancelWorkflowRunRequest handles actions/cancel-workflow-run operation. // +// Cancels a workflow run using its `id`. You must authenticate using an access token with the `repo` +// scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this +// endpoint. +// // POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel func (s *Server) handleActionsCancelWorkflowRunRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -501,6 +531,61 @@ func (s *Server) handleActionsCancelWorkflowRunRequest(args [3]string, w http.Re // handleActionsCreateOrUpdateEnvironmentSecretRequest handles actions/create-or-update-environment-secret operation. // +// Creates or updates an environment secret with an encrypted value. Encrypt your secret using +// [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). You must authenticate +// using an access +// token with the `repo` scope to use this endpoint. GitHub Apps must have the `secrets` repository +// permission to use +// this endpoint. +// #### Example encrypting a secret using Node.js +// Encrypt your secret using the [tweetsodium](https://github.com/github/tweetsodium) library. +// ``` +// const sodium = require('tweetsodium'); +// const key = "base64-encoded-public-key"; +// const value = "plain-text-secret"; +// // Convert the message and key to Uint8Array's (Buffer implements that interface) +// const messageBytes = Buffer.from(value); +// const keyBytes = Buffer.from(key, 'base64'); +// // Encrypt using LibSodium. +// const encryptedBytes = sodium.seal(messageBytes, keyBytes); +// // Base64 the encrypted secret +// const encrypted = Buffer.from(encryptedBytes).toString('base64'); +// console.log(encrypted); +// ``` +// #### Example encrypting a secret using Python +// Encrypt your secret using [pynacl](https://pynacl.readthedocs. +// io/en/stable/public/#nacl-public-sealedbox) with Python 3. +// ``` +// from base64 import b64encode +// from nacl import encoding, public +// def encrypt(public_key: str, secret_value: str) -> str: +// """Encrypt a Unicode string using the public key.""" +// public_key = public.PublicKey(public_key.encode("utf-8"), encoding.Base64Encoder()) +// sealed_box = public.SealedBox(public_key) +// encrypted = sealed_box.encrypt(secret_value.encode("utf-8")) +// return b64encode(encrypted).decode("utf-8") +// ``` +// #### Example encrypting a secret using C# +// Encrypt your secret using the [Sodium.Core](https://www.nuget.org/packages/Sodium.Core/) package. +// ``` +// var secretValue = System.Text.Encoding.UTF8.GetBytes("mySecret"); +// var publicKey = Convert.FromBase64String("2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvvcCU="); +// var sealedPublicKeyBox = Sodium.SealedPublicKeyBox.Create(secretValue, publicKey); +// Console.WriteLine(Convert.ToBase64String(sealedPublicKeyBox)); +// ``` +// #### Example encrypting a secret using Ruby +// Encrypt your secret using the [rbnacl](https://github.com/RubyCrypto/rbnacl) gem. +// ```ruby +// require "rbnacl" +// require "base64" +// key = Base64.decode64("+ZYvJDZMHUfBkJdyq5Zm9SKqeuBQ4sj+6sfjlH4CgG0=") +// public_key = RbNaCl::PublicKey.new(key) +// box = RbNaCl::Boxes::Sealed.from_public_key(public_key) +// encrypted_secret = box.encrypt("my_secret") +// # Print the base64 encoded secret +// puts Base64.strict_encode64(encrypted_secret) +// ```. +// // PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name} func (s *Server) handleActionsCreateOrUpdateEnvironmentSecretRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -612,6 +697,61 @@ func (s *Server) handleActionsCreateOrUpdateEnvironmentSecretRequest(args [3]str // handleActionsCreateOrUpdateOrgSecretRequest handles actions/create-or-update-org-secret operation. // +// Creates or updates an organization secret with an encrypted value. Encrypt your secret using +// [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). You must authenticate +// using an access +// token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` +// organization permission to +// use this endpoint. +// #### Example encrypting a secret using Node.js +// Encrypt your secret using the [tweetsodium](https://github.com/github/tweetsodium) library. +// ``` +// const sodium = require('tweetsodium'); +// const key = "base64-encoded-public-key"; +// const value = "plain-text-secret"; +// // Convert the message and key to Uint8Array's (Buffer implements that interface) +// const messageBytes = Buffer.from(value); +// const keyBytes = Buffer.from(key, 'base64'); +// // Encrypt using LibSodium. +// const encryptedBytes = sodium.seal(messageBytes, keyBytes); +// // Base64 the encrypted secret +// const encrypted = Buffer.from(encryptedBytes).toString('base64'); +// console.log(encrypted); +// ``` +// #### Example encrypting a secret using Python +// Encrypt your secret using [pynacl](https://pynacl.readthedocs. +// io/en/stable/public/#nacl-public-sealedbox) with Python 3. +// ``` +// from base64 import b64encode +// from nacl import encoding, public +// def encrypt(public_key: str, secret_value: str) -> str: +// """Encrypt a Unicode string using the public key.""" +// public_key = public.PublicKey(public_key.encode("utf-8"), encoding.Base64Encoder()) +// sealed_box = public.SealedBox(public_key) +// encrypted = sealed_box.encrypt(secret_value.encode("utf-8")) +// return b64encode(encrypted).decode("utf-8") +// ``` +// #### Example encrypting a secret using C# +// Encrypt your secret using the [Sodium.Core](https://www.nuget.org/packages/Sodium.Core/) package. +// ``` +// var secretValue = System.Text.Encoding.UTF8.GetBytes("mySecret"); +// var publicKey = Convert.FromBase64String("2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvvcCU="); +// var sealedPublicKeyBox = Sodium.SealedPublicKeyBox.Create(secretValue, publicKey); +// Console.WriteLine(Convert.ToBase64String(sealedPublicKeyBox)); +// ``` +// #### Example encrypting a secret using Ruby +// Encrypt your secret using the [rbnacl](https://github.com/RubyCrypto/rbnacl) gem. +// ```ruby +// require "rbnacl" +// require "base64" +// key = Base64.decode64("+ZYvJDZMHUfBkJdyq5Zm9SKqeuBQ4sj+6sfjlH4CgG0=") +// public_key = RbNaCl::PublicKey.new(key) +// box = RbNaCl::Boxes::Sealed.from_public_key(public_key) +// encrypted_secret = box.encrypt("my_secret") +// # Print the base64 encoded secret +// puts Base64.strict_encode64(encrypted_secret) +// ```. +// // PUT /orgs/{org}/actions/secrets/{secret_name} func (s *Server) handleActionsCreateOrUpdateOrgSecretRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -722,6 +862,61 @@ func (s *Server) handleActionsCreateOrUpdateOrgSecretRequest(args [2]string, w h // handleActionsCreateOrUpdateRepoSecretRequest handles actions/create-or-update-repo-secret operation. // +// Creates or updates a repository secret with an encrypted value. Encrypt your secret using +// [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). You must authenticate +// using an access +// token with the `repo` scope to use this endpoint. GitHub Apps must have the `secrets` repository +// permission to use +// this endpoint. +// #### Example encrypting a secret using Node.js +// Encrypt your secret using the [tweetsodium](https://github.com/github/tweetsodium) library. +// ``` +// const sodium = require('tweetsodium'); +// const key = "base64-encoded-public-key"; +// const value = "plain-text-secret"; +// // Convert the message and key to Uint8Array's (Buffer implements that interface) +// const messageBytes = Buffer.from(value); +// const keyBytes = Buffer.from(key, 'base64'); +// // Encrypt using LibSodium. +// const encryptedBytes = sodium.seal(messageBytes, keyBytes); +// // Base64 the encrypted secret +// const encrypted = Buffer.from(encryptedBytes).toString('base64'); +// console.log(encrypted); +// ``` +// #### Example encrypting a secret using Python +// Encrypt your secret using [pynacl](https://pynacl.readthedocs. +// io/en/stable/public/#nacl-public-sealedbox) with Python 3. +// ``` +// from base64 import b64encode +// from nacl import encoding, public +// def encrypt(public_key: str, secret_value: str) -> str: +// """Encrypt a Unicode string using the public key.""" +// public_key = public.PublicKey(public_key.encode("utf-8"), encoding.Base64Encoder()) +// sealed_box = public.SealedBox(public_key) +// encrypted = sealed_box.encrypt(secret_value.encode("utf-8")) +// return b64encode(encrypted).decode("utf-8") +// ``` +// #### Example encrypting a secret using C# +// Encrypt your secret using the [Sodium.Core](https://www.nuget.org/packages/Sodium.Core/) package. +// ``` +// var secretValue = System.Text.Encoding.UTF8.GetBytes("mySecret"); +// var publicKey = Convert.FromBase64String("2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvvcCU="); +// var sealedPublicKeyBox = Sodium.SealedPublicKeyBox.Create(secretValue, publicKey); +// Console.WriteLine(Convert.ToBase64String(sealedPublicKeyBox)); +// ``` +// #### Example encrypting a secret using Ruby +// Encrypt your secret using the [rbnacl](https://github.com/RubyCrypto/rbnacl) gem. +// ```ruby +// require "rbnacl" +// require "base64" +// key = Base64.decode64("+ZYvJDZMHUfBkJdyq5Zm9SKqeuBQ4sj+6sfjlH4CgG0=") +// public_key = RbNaCl::PublicKey.new(key) +// box = RbNaCl::Boxes::Sealed.from_public_key(public_key) +// encrypted_secret = box.encrypt("my_secret") +// # Print the base64 encoded secret +// puts Base64.strict_encode64(encrypted_secret) +// ```. +// // PUT /repos/{owner}/{repo}/actions/secrets/{secret_name} func (s *Server) handleActionsCreateOrUpdateRepoSecretRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -833,6 +1028,15 @@ func (s *Server) handleActionsCreateOrUpdateRepoSecretRequest(args [3]string, w // handleActionsCreateRegistrationTokenForOrgRequest handles actions/create-registration-token-for-org operation. // +// Returns a token that you can pass to the `config` script. The token expires after one hour. +// You must authenticate using an access token with the `admin:org` scope to use this endpoint. +// #### Example using registration token +// Configure your self-hosted runner, replacing `TOKEN` with the registration token provided by this +// endpoint. +// ``` +// ./config.sh --url https://github.com/octo-org --token TOKEN +// ```. +// // POST /orgs/{org}/actions/runners/registration-token func (s *Server) handleActionsCreateRegistrationTokenForOrgRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -927,6 +1131,16 @@ func (s *Server) handleActionsCreateRegistrationTokenForOrgRequest(args [1]strin // handleActionsCreateRegistrationTokenForRepoRequest handles actions/create-registration-token-for-repo operation. // +// Returns a token that you can pass to the `config` script. The token expires after one hour. You +// must authenticate +// using an access token with the `repo` scope to use this endpoint. +// #### Example using registration token +// Configure your self-hosted runner, replacing `TOKEN` with the registration token provided by this +// endpoint. +// ``` +// ./config.sh --url https://github.com/octo-org/octo-repo-artifacts --token TOKEN +// ```. +// // POST /repos/{owner}/{repo}/actions/runners/registration-token func (s *Server) handleActionsCreateRegistrationTokenForRepoRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1022,6 +1236,17 @@ func (s *Server) handleActionsCreateRegistrationTokenForRepoRequest(args [2]stri // handleActionsCreateRemoveTokenForOrgRequest handles actions/create-remove-token-for-org operation. // +// Returns a token that you can pass to the `config` script to remove a self-hosted runner from an +// organization. The token expires after one hour. +// You must authenticate using an access token with the `admin:org` scope to use this endpoint. +// #### Example using remove token +// To remove your self-hosted runner from an organization, replace `TOKEN` with the remove token +// provided by this +// endpoint. +// ``` +// ./config.sh remove --token TOKEN +// ```. +// // POST /orgs/{org}/actions/runners/remove-token func (s *Server) handleActionsCreateRemoveTokenForOrgRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1116,6 +1341,16 @@ func (s *Server) handleActionsCreateRemoveTokenForOrgRequest(args [1]string, w h // handleActionsCreateRemoveTokenForRepoRequest handles actions/create-remove-token-for-repo operation. // +// Returns a token that you can pass to remove a self-hosted runner from a repository. The token +// expires after one hour. +// You must authenticate using an access token with the `repo` scope to use this endpoint. +// #### Example using remove token +// To remove your self-hosted runner from a repository, replace TOKEN with the remove token provided +// by this endpoint. +// ``` +// ./config.sh remove --token TOKEN +// ```. +// // POST /repos/{owner}/{repo}/actions/runners/remove-token func (s *Server) handleActionsCreateRemoveTokenForRepoRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1211,6 +1446,12 @@ func (s *Server) handleActionsCreateRemoveTokenForRepoRequest(args [2]string, w // handleActionsCreateSelfHostedRunnerGroupForOrgRequest handles actions/create-self-hosted-runner-group-for-org operation. // +// The self-hosted runner groups REST API is available with GitHub Enterprise Cloud and GitHub +// Enterprise Server. For more information, see "[GitHub's products](https://docs.github. +// com/github/getting-started-with-github/githubs-products)." +// Creates a new self-hosted runner group for an organization. +// You must authenticate using an access token with the `admin:org` scope to use this endpoint. +// // POST /orgs/{org}/actions/runner-groups func (s *Server) handleActionsCreateSelfHostedRunnerGroupForOrgRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1320,6 +1561,10 @@ func (s *Server) handleActionsCreateSelfHostedRunnerGroupForOrgRequest(args [1]s // handleActionsDeleteArtifactRequest handles actions/delete-artifact operation. // +// Deletes an artifact for a workflow run. You must authenticate using an access token with the +// `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use +// this endpoint. +// // DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id} func (s *Server) handleActionsDeleteArtifactRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1416,6 +1661,10 @@ func (s *Server) handleActionsDeleteArtifactRequest(args [3]string, w http.Respo // handleActionsDeleteEnvironmentSecretRequest handles actions/delete-environment-secret operation. // +// Deletes a secret in an environment using the secret name. You must authenticate using an access +// token with the `repo` scope to use this endpoint. GitHub Apps must have the `secrets` repository +// permission to use this endpoint. +// // DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name} func (s *Server) handleActionsDeleteEnvironmentSecretRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1512,6 +1761,10 @@ func (s *Server) handleActionsDeleteEnvironmentSecretRequest(args [3]string, w h // handleActionsDeleteOrgSecretRequest handles actions/delete-org-secret operation. // +// Deletes a secret in an organization using the secret name. You must authenticate using an access +// token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` +// organization permission to use this endpoint. +// // DELETE /orgs/{org}/actions/secrets/{secret_name} func (s *Server) handleActionsDeleteOrgSecretRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1607,6 +1860,10 @@ func (s *Server) handleActionsDeleteOrgSecretRequest(args [2]string, w http.Resp // handleActionsDeleteRepoSecretRequest handles actions/delete-repo-secret operation. // +// Deletes a secret in a repository using the secret name. You must authenticate using an access +// token with the `repo` scope to use this endpoint. GitHub Apps must have the `secrets` repository +// permission to use this endpoint. +// // DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name} func (s *Server) handleActionsDeleteRepoSecretRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1703,6 +1960,10 @@ func (s *Server) handleActionsDeleteRepoSecretRequest(args [3]string, w http.Res // handleActionsDeleteSelfHostedRunnerFromOrgRequest handles actions/delete-self-hosted-runner-from-org operation. // +// Forces the removal of a self-hosted runner from an organization. You can use this endpoint to +// completely remove the runner when the machine you were using no longer exists. +// You must authenticate using an access token with the `admin:org` scope to use this endpoint. +// // DELETE /orgs/{org}/actions/runners/{runner_id} func (s *Server) handleActionsDeleteSelfHostedRunnerFromOrgRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1798,6 +2059,11 @@ func (s *Server) handleActionsDeleteSelfHostedRunnerFromOrgRequest(args [2]strin // handleActionsDeleteSelfHostedRunnerFromRepoRequest handles actions/delete-self-hosted-runner-from-repo operation. // +// Forces the removal of a self-hosted runner from a repository. You can use this endpoint to +// completely remove the runner when the machine you were using no longer exists. +// You must authenticate using an access token with the `repo` +// scope to use this endpoint. +// // DELETE /repos/{owner}/{repo}/actions/runners/{runner_id} func (s *Server) handleActionsDeleteSelfHostedRunnerFromRepoRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1894,6 +2160,12 @@ func (s *Server) handleActionsDeleteSelfHostedRunnerFromRepoRequest(args [3]stri // handleActionsDeleteSelfHostedRunnerGroupFromOrgRequest handles actions/delete-self-hosted-runner-group-from-org operation. // +// The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more +// information, see "[GitHub's products](https://docs.github. +// com/github/getting-started-with-github/githubs-products)." +// Deletes a self-hosted runner group for an organization. +// You must authenticate using an access token with the `admin:org` scope to use this endpoint. +// // DELETE /orgs/{org}/actions/runner-groups/{runner_group_id} func (s *Server) handleActionsDeleteSelfHostedRunnerGroupFromOrgRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1989,6 +2261,12 @@ func (s *Server) handleActionsDeleteSelfHostedRunnerGroupFromOrgRequest(args [2] // handleActionsDeleteWorkflowRunRequest handles actions/delete-workflow-run operation. // +// Delete a specific workflow run. Anyone with write access to the repository can use this endpoint. +// If the repository is +// private you must use an access token with the `repo` scope. GitHub Apps must have the +// `actions:write` permission to use +// this endpoint. +// // DELETE /repos/{owner}/{repo}/actions/runs/{run_id} func (s *Server) handleActionsDeleteWorkflowRunRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -2085,6 +2363,10 @@ func (s *Server) handleActionsDeleteWorkflowRunRequest(args [3]string, w http.Re // handleActionsDeleteWorkflowRunLogsRequest handles actions/delete-workflow-run-logs operation. // +// Deletes all logs for a workflow run. You must authenticate using an access token with the `repo` +// scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this +// endpoint. +// // DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs func (s *Server) handleActionsDeleteWorkflowRunLogsRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -2181,6 +2463,13 @@ func (s *Server) handleActionsDeleteWorkflowRunLogsRequest(args [3]string, w htt // handleActionsDisableSelectedRepositoryGithubActionsOrganizationRequest handles actions/disable-selected-repository-github-actions-organization operation. // +// Removes a repository from the list of selected repositories that are enabled for GitHub Actions in +// an organization. To use this endpoint, the organization permission policy for +// `enabled_repositories` must be configured to `selected`. For more information, see "[Set GitHub +// Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)." +// You must authenticate using an access token with the `admin:org` scope to use this endpoint. +// GitHub Apps must have the `administration` organization permission to use this API. +// // DELETE /orgs/{org}/actions/permissions/repositories/{repository_id} func (s *Server) handleActionsDisableSelectedRepositoryGithubActionsOrganizationRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -2276,6 +2565,14 @@ func (s *Server) handleActionsDisableSelectedRepositoryGithubActionsOrganization // handleActionsDownloadArtifactRequest handles actions/download-artifact operation. // +// Gets a redirect URL to download an archive for a repository. This URL expires after 1 minute. Look +// for `Location:` in +// the response header to find the URL for the download. The `:archive_format` must be `zip`. Anyone +// with read access to +// the repository can use this endpoint. If the repository is private you must use an access token +// with the `repo` scope. +// GitHub Apps must have the `actions:read` permission to use this endpoint. +// // GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format} func (s *Server) handleActionsDownloadArtifactRequest(args [4]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -2373,6 +2670,16 @@ func (s *Server) handleActionsDownloadArtifactRequest(args [4]string, w http.Res // handleActionsDownloadJobLogsForWorkflowRunRequest handles actions/download-job-logs-for-workflow-run operation. // +// Gets a redirect URL to download a plain text file of logs for a workflow job. This link expires +// after 1 minute. Look +// for `Location:` in the response header to find the URL for the download. Anyone with read access +// to the repository can +// use this endpoint. If the repository is private you must use an access token with the `repo` scope. +// +// GitHub Apps must +// +// have the `actions:read` permission to use this endpoint. +// // GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs func (s *Server) handleActionsDownloadJobLogsForWorkflowRunRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -2469,6 +2776,14 @@ func (s *Server) handleActionsDownloadJobLogsForWorkflowRunRequest(args [3]strin // handleActionsDownloadWorkflowRunLogsRequest handles actions/download-workflow-run-logs operation. // +// Gets a redirect URL to download an archive of log files for a workflow run. This link expires +// after 1 minute. Look for +// `Location:` in the response header to find the URL for the download. Anyone with read access to +// the repository can use +// this endpoint. If the repository is private you must use an access token with the `repo` scope. +// GitHub Apps must have +// the `actions:read` permission to use this endpoint. +// // GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs func (s *Server) handleActionsDownloadWorkflowRunLogsRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -2565,6 +2880,13 @@ func (s *Server) handleActionsDownloadWorkflowRunLogsRequest(args [3]string, w h // handleActionsEnableSelectedRepositoryGithubActionsOrganizationRequest handles actions/enable-selected-repository-github-actions-organization operation. // +// Adds a repository to the list of selected repositories that are enabled for GitHub Actions in an +// organization. To use this endpoint, the organization permission policy for `enabled_repositories` +// must be must be configured to `selected`. For more information, see "[Set GitHub Actions +// permissions for an organization](#set-github-actions-permissions-for-an-organization)." +// You must authenticate using an access token with the `admin:org` scope to use this endpoint. +// GitHub Apps must have the `administration` organization permission to use this API. +// // PUT /orgs/{org}/actions/permissions/repositories/{repository_id} func (s *Server) handleActionsEnableSelectedRepositoryGithubActionsOrganizationRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -2660,6 +2982,13 @@ func (s *Server) handleActionsEnableSelectedRepositoryGithubActionsOrganizationR // handleActionsGetAllowedActionsOrganizationRequest handles actions/get-allowed-actions-organization operation. // +// Gets the selected actions that are allowed in an organization. To use this endpoint, the +// organization permission policy for `allowed_actions` must be configured to `selected`. For more +// information, see "[Set GitHub Actions permissions for an +// organization](#set-github-actions-permissions-for-an-organization)."" +// You must authenticate using an access token with the `admin:org` scope to use this endpoint. +// GitHub Apps must have the `administration` organization permission to use this API. +// // GET /orgs/{org}/actions/permissions/selected-actions func (s *Server) handleActionsGetAllowedActionsOrganizationRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -2754,6 +3083,13 @@ func (s *Server) handleActionsGetAllowedActionsOrganizationRequest(args [1]strin // handleActionsGetAllowedActionsRepositoryRequest handles actions/get-allowed-actions-repository operation. // +// Gets the settings for selected actions that are allowed in a repository. To use this endpoint, the +// repository policy for `allowed_actions` must be configured to `selected`. For more information, +// see "[Set GitHub Actions permissions for a +// repository](#set-github-actions-permissions-for-a-repository)." +// You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub +// Apps must have the `administration` repository permission to use this API. +// // GET /repos/{owner}/{repo}/actions/permissions/selected-actions func (s *Server) handleActionsGetAllowedActionsRepositoryRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -2849,6 +3185,10 @@ func (s *Server) handleActionsGetAllowedActionsRepositoryRequest(args [2]string, // handleActionsGetArtifactRequest handles actions/get-artifact operation. // +// Gets a specific artifact for a workflow run. Anyone with read access to the repository can use +// this endpoint. If the repository is private you must use an access token with the `repo` scope. +// GitHub Apps must have the `actions:read` permission to use this endpoint. +// // GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id} func (s *Server) handleActionsGetArtifactRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -2945,6 +3285,11 @@ func (s *Server) handleActionsGetArtifactRequest(args [3]string, w http.Response // handleActionsGetEnvironmentPublicKeyRequest handles actions/get-environment-public-key operation. // +// Get the public key for an environment, which you need to encrypt environment secrets. You need to +// encrypt a secret before you can create or update secrets. Anyone with read access to the +// repository can use this endpoint. If the repository is private you must use an access token with +// the `repo` scope. GitHub Apps must have the `secrets` repository permission to use this endpoint. +// // GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key func (s *Server) handleActionsGetEnvironmentPublicKeyRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -3040,6 +3385,10 @@ func (s *Server) handleActionsGetEnvironmentPublicKeyRequest(args [2]string, w h // handleActionsGetEnvironmentSecretRequest handles actions/get-environment-secret operation. // +// Gets a single environment secret without revealing its encrypted value. You must authenticate +// using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the +// `secrets` repository permission to use this endpoint. +// // GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name} func (s *Server) handleActionsGetEnvironmentSecretRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -3136,6 +3485,10 @@ func (s *Server) handleActionsGetEnvironmentSecretRequest(args [3]string, w http // handleActionsGetGithubActionsPermissionsOrganizationRequest handles actions/get-github-actions-permissions-organization operation. // +// Gets the GitHub Actions permissions policy for repositories and allowed actions in an organization. +// You must authenticate using an access token with the `admin:org` scope to use this endpoint. +// GitHub Apps must have the `administration` organization permission to use this API. +// // GET /orgs/{org}/actions/permissions func (s *Server) handleActionsGetGithubActionsPermissionsOrganizationRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -3230,6 +3583,11 @@ func (s *Server) handleActionsGetGithubActionsPermissionsOrganizationRequest(arg // handleActionsGetGithubActionsPermissionsRepositoryRequest handles actions/get-github-actions-permissions-repository operation. // +// Gets the GitHub Actions permissions policy for a repository, including whether GitHub Actions is +// enabled and the actions allowed to run in the repository. +// You must authenticate using an access token with the `repo` scope to use this +// endpoint. GitHub Apps must have the `administration` repository permission to use this API. +// // GET /repos/{owner}/{repo}/actions/permissions func (s *Server) handleActionsGetGithubActionsPermissionsRepositoryRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -3325,6 +3683,10 @@ func (s *Server) handleActionsGetGithubActionsPermissionsRepositoryRequest(args // handleActionsGetJobForWorkflowRunRequest handles actions/get-job-for-workflow-run operation. // +// Gets a specific job in a workflow run. Anyone with read access to the repository can use this +// endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub +// Apps must have the `actions:read` permission to use this endpoint. +// // GET /repos/{owner}/{repo}/actions/jobs/{job_id} func (s *Server) handleActionsGetJobForWorkflowRunRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -3421,6 +3783,11 @@ func (s *Server) handleActionsGetJobForWorkflowRunRequest(args [3]string, w http // handleActionsGetOrgPublicKeyRequest handles actions/get-org-public-key operation. // +// Gets your public key, which you need to encrypt secrets. You need to encrypt a secret before you +// can create or update secrets. You must authenticate using an access token with the `admin:org` +// scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to use +// this endpoint. +// // GET /orgs/{org}/actions/secrets/public-key func (s *Server) handleActionsGetOrgPublicKeyRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -3515,6 +3882,10 @@ func (s *Server) handleActionsGetOrgPublicKeyRequest(args [1]string, w http.Resp // handleActionsGetOrgSecretRequest handles actions/get-org-secret operation. // +// Gets a single organization secret without revealing its encrypted value. You must authenticate +// using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the +// `secrets` organization permission to use this endpoint. +// // GET /orgs/{org}/actions/secrets/{secret_name} func (s *Server) handleActionsGetOrgSecretRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -3610,6 +3981,11 @@ func (s *Server) handleActionsGetOrgSecretRequest(args [2]string, w http.Respons // handleActionsGetRepoPublicKeyRequest handles actions/get-repo-public-key operation. // +// Gets your public key, which you need to encrypt secrets. You need to encrypt a secret before you +// can create or update secrets. Anyone with read access to the repository can use this endpoint. If +// the repository is private you must use an access token with the `repo` scope. GitHub Apps must +// have the `secrets` repository permission to use this endpoint. +// // GET /repos/{owner}/{repo}/actions/secrets/public-key func (s *Server) handleActionsGetRepoPublicKeyRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -3705,6 +4081,10 @@ func (s *Server) handleActionsGetRepoPublicKeyRequest(args [2]string, w http.Res // handleActionsGetRepoSecretRequest handles actions/get-repo-secret operation. // +// Gets a single repository secret without revealing its encrypted value. You must authenticate using +// an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `secrets` +// repository permission to use this endpoint. +// // GET /repos/{owner}/{repo}/actions/secrets/{secret_name} func (s *Server) handleActionsGetRepoSecretRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -3801,6 +4181,10 @@ func (s *Server) handleActionsGetRepoSecretRequest(args [3]string, w http.Respon // handleActionsGetReviewsForRunRequest handles actions/get-reviews-for-run operation. // +// Anyone with read access to the repository can use this endpoint. If the repository is private, you +// must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` +// permission to use this endpoint. +// // GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals func (s *Server) handleActionsGetReviewsForRunRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -3897,6 +4281,9 @@ func (s *Server) handleActionsGetReviewsForRunRequest(args [3]string, w http.Res // handleActionsGetSelfHostedRunnerForOrgRequest handles actions/get-self-hosted-runner-for-org operation. // +// Gets a specific self-hosted runner configured in an organization. +// You must authenticate using an access token with the `admin:org` scope to use this endpoint. +// // GET /orgs/{org}/actions/runners/{runner_id} func (s *Server) handleActionsGetSelfHostedRunnerForOrgRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -3992,6 +4379,10 @@ func (s *Server) handleActionsGetSelfHostedRunnerForOrgRequest(args [2]string, w // handleActionsGetSelfHostedRunnerForRepoRequest handles actions/get-self-hosted-runner-for-repo operation. // +// Gets a specific self-hosted runner configured in a repository. +// You must authenticate using an access token with the `repo` scope to use this +// endpoint. +// // GET /repos/{owner}/{repo}/actions/runners/{runner_id} func (s *Server) handleActionsGetSelfHostedRunnerForRepoRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -4088,6 +4479,12 @@ func (s *Server) handleActionsGetSelfHostedRunnerForRepoRequest(args [3]string, // handleActionsGetSelfHostedRunnerGroupForOrgRequest handles actions/get-self-hosted-runner-group-for-org operation. // +// The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more +// information, see "[GitHub's products](https://docs.github. +// com/github/getting-started-with-github/githubs-products)." +// Gets a specific self-hosted runner group for an organization. +// You must authenticate using an access token with the `admin:org` scope to use this endpoint. +// // GET /orgs/{org}/actions/runner-groups/{runner_group_id} func (s *Server) handleActionsGetSelfHostedRunnerGroupForOrgRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -4183,6 +4580,10 @@ func (s *Server) handleActionsGetSelfHostedRunnerGroupForOrgRequest(args [2]stri // handleActionsGetWorkflowRunRequest handles actions/get-workflow-run operation. // +// Gets a specific workflow run. Anyone with read access to the repository can use this endpoint. If +// the repository is private you must use an access token with the `repo` scope. GitHub Apps must +// have the `actions:read` permission to use this endpoint. +// // GET /repos/{owner}/{repo}/actions/runs/{run_id} func (s *Server) handleActionsGetWorkflowRunRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -4279,6 +4680,17 @@ func (s *Server) handleActionsGetWorkflowRunRequest(args [3]string, w http.Respo // handleActionsGetWorkflowRunUsageRequest handles actions/get-workflow-run-usage operation. // +// Gets the number of billable minutes and total run time for a specific workflow run. Billable +// minutes only apply to workflows in private repositories that use GitHub-hosted runners. Usage is +// listed for each GitHub-hosted runner operating system in milliseconds. Any job re-runs are also +// included in the usage. The usage does not include the multiplier for macOS and Windows runners and +// is not rounded up to the nearest whole minute. For more information, see "[Managing billing for +// GitHub Actions](https://help.github. +// com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)". +// Anyone with read access to the repository can use this endpoint. If the repository is private you +// must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` +// permission to use this endpoint. +// // GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing func (s *Server) handleActionsGetWorkflowRunUsageRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -4375,6 +4787,10 @@ func (s *Server) handleActionsGetWorkflowRunUsageRequest(args [3]string, w http. // handleActionsListArtifactsForRepoRequest handles actions/list-artifacts-for-repo operation. // +// Lists all artifacts for a repository. Anyone with read access to the repository can use this +// endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub +// Apps must have the `actions:read` permission to use this endpoint. +// // GET /repos/{owner}/{repo}/actions/artifacts func (s *Server) handleActionsListArtifactsForRepoRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -4472,6 +4888,10 @@ func (s *Server) handleActionsListArtifactsForRepoRequest(args [2]string, w http // handleActionsListEnvironmentSecretsRequest handles actions/list-environment-secrets operation. // +// Lists all secrets available in an environment without revealing their encrypted values. You must +// authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must +// have the `secrets` repository permission to use this endpoint. +// // GET /repositories/{repository_id}/environments/{environment_name}/secrets func (s *Server) handleActionsListEnvironmentSecretsRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -4569,6 +4989,12 @@ func (s *Server) handleActionsListEnvironmentSecretsRequest(args [2]string, w ht // handleActionsListJobsForWorkflowRunRequest handles actions/list-jobs-for-workflow-run operation. // +// Lists jobs for a workflow run. Anyone with read access to the repository can use this endpoint. If +// the repository is private you must use an access token with the `repo` scope. GitHub Apps must +// have the `actions:read` permission to use this endpoint. You can use parameters to narrow the list +// of results. For more information about using parameters, see [Parameters](https://docs.github. +// com/rest/overview/resources-in-the-rest-api#parameters). +// // GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs func (s *Server) handleActionsListJobsForWorkflowRunRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -4668,6 +5094,10 @@ func (s *Server) handleActionsListJobsForWorkflowRunRequest(args [3]string, w ht // handleActionsListOrgSecretsRequest handles actions/list-org-secrets operation. // +// Lists all secrets available in an organization without revealing their encrypted values. You must +// authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps +// must have the `secrets` organization permission to use this endpoint. +// // GET /orgs/{org}/actions/secrets func (s *Server) handleActionsListOrgSecretsRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -4764,6 +5194,12 @@ func (s *Server) handleActionsListOrgSecretsRequest(args [1]string, w http.Respo // handleActionsListRepoAccessToSelfHostedRunnerGroupInOrgRequest handles actions/list-repo-access-to-self-hosted-runner-group-in-org operation. // +// The self-hosted runner groups REST API is available with GitHub Enterprise Cloud and GitHub +// Enterprise Server. For more information, see "[GitHub's products](https://docs.github. +// com/github/getting-started-with-github/githubs-products)." +// Lists the repositories with access to a self-hosted runner group configured in an organization. +// You must authenticate using an access token with the `admin:org` scope to use this endpoint. +// // GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories func (s *Server) handleActionsListRepoAccessToSelfHostedRunnerGroupInOrgRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -4861,6 +5297,10 @@ func (s *Server) handleActionsListRepoAccessToSelfHostedRunnerGroupInOrgRequest( // handleActionsListRepoSecretsRequest handles actions/list-repo-secrets operation. // +// Lists all secrets available in a repository without revealing their encrypted values. You must +// authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must +// have the `secrets` repository permission to use this endpoint. +// // GET /repos/{owner}/{repo}/actions/secrets func (s *Server) handleActionsListRepoSecretsRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -4958,6 +5398,10 @@ func (s *Server) handleActionsListRepoSecretsRequest(args [2]string, w http.Resp // handleActionsListRepoWorkflowsRequest handles actions/list-repo-workflows operation. // +// Lists the workflows in a repository. Anyone with read access to the repository can use this +// endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub +// Apps must have the `actions:read` permission to use this endpoint. +// // GET /repos/{owner}/{repo}/actions/workflows func (s *Server) handleActionsListRepoWorkflowsRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -5055,6 +5499,9 @@ func (s *Server) handleActionsListRepoWorkflowsRequest(args [2]string, w http.Re // handleActionsListRunnerApplicationsForOrgRequest handles actions/list-runner-applications-for-org operation. // +// Lists binaries for the runner application that you can download and run. +// You must authenticate using an access token with the `admin:org` scope to use this endpoint. +// // GET /orgs/{org}/actions/runners/downloads func (s *Server) handleActionsListRunnerApplicationsForOrgRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -5149,6 +5596,9 @@ func (s *Server) handleActionsListRunnerApplicationsForOrgRequest(args [1]string // handleActionsListRunnerApplicationsForRepoRequest handles actions/list-runner-applications-for-repo operation. // +// Lists binaries for the runner application that you can download and run. +// You must authenticate using an access token with the `repo` scope to use this endpoint. +// // GET /repos/{owner}/{repo}/actions/runners/downloads func (s *Server) handleActionsListRunnerApplicationsForRepoRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -5244,6 +5694,11 @@ func (s *Server) handleActionsListRunnerApplicationsForRepoRequest(args [2]strin // handleActionsListSelectedReposForOrgSecretRequest handles actions/list-selected-repos-for-org-secret operation. // +// Lists all repositories that have been selected when the `visibility` for repository access to a +// secret is set to `selected`. You must authenticate using an access token with the `admin:org` +// scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to use +// this endpoint. +// // GET /orgs/{org}/actions/secrets/{secret_name}/repositories func (s *Server) handleActionsListSelectedReposForOrgSecretRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -5341,6 +5796,13 @@ func (s *Server) handleActionsListSelectedReposForOrgSecretRequest(args [2]strin // handleActionsListSelectedRepositoriesEnabledGithubActionsOrganizationRequest handles actions/list-selected-repositories-enabled-github-actions-organization operation. // +// Lists the selected repositories that are enabled for GitHub Actions in an organization. To use +// this endpoint, the organization permission policy for `enabled_repositories` must be configured to +// `selected`. For more information, see "[Set GitHub Actions permissions for an +// organization](#set-github-actions-permissions-for-an-organization)." +// You must authenticate using an access token with the `admin:org` scope to use this endpoint. +// GitHub Apps must have the `administration` organization permission to use this API. +// // GET /orgs/{org}/actions/permissions/repositories func (s *Server) handleActionsListSelectedRepositoriesEnabledGithubActionsOrganizationRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -5437,6 +5899,12 @@ func (s *Server) handleActionsListSelectedRepositoriesEnabledGithubActionsOrgani // handleActionsListSelfHostedRunnerGroupsForOrgRequest handles actions/list-self-hosted-runner-groups-for-org operation. // +// The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more +// information, see "[GitHub's products](https://docs.github. +// com/github/getting-started-with-github/githubs-products)." +// Lists all self-hosted runner groups configured in an organization and inherited from an enterprise. +// You must authenticate using an access token with the `admin:org` scope to use this endpoint. +// // GET /orgs/{org}/actions/runner-groups func (s *Server) handleActionsListSelfHostedRunnerGroupsForOrgRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -5533,6 +6001,9 @@ func (s *Server) handleActionsListSelfHostedRunnerGroupsForOrgRequest(args [1]st // handleActionsListSelfHostedRunnersForOrgRequest handles actions/list-self-hosted-runners-for-org operation. // +// Lists all self-hosted runners configured in an organization. +// You must authenticate using an access token with the `admin:org` scope to use this endpoint. +// // GET /orgs/{org}/actions/runners func (s *Server) handleActionsListSelfHostedRunnersForOrgRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -5629,6 +6100,9 @@ func (s *Server) handleActionsListSelfHostedRunnersForOrgRequest(args [1]string, // handleActionsListSelfHostedRunnersForRepoRequest handles actions/list-self-hosted-runners-for-repo operation. // +// Lists all self-hosted runners configured in a repository. You must authenticate using an access +// token with the `repo` scope to use this endpoint. +// // GET /repos/{owner}/{repo}/actions/runners func (s *Server) handleActionsListSelfHostedRunnersForRepoRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -5726,6 +6200,12 @@ func (s *Server) handleActionsListSelfHostedRunnersForRepoRequest(args [2]string // handleActionsListSelfHostedRunnersInGroupForOrgRequest handles actions/list-self-hosted-runners-in-group-for-org operation. // +// The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more +// information, see "[GitHub's products](https://docs.github. +// com/github/getting-started-with-github/githubs-products)." +// Lists self-hosted runners that are in a specific organization group. +// You must authenticate using an access token with the `admin:org` scope to use this endpoint. +// // GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners func (s *Server) handleActionsListSelfHostedRunnersInGroupForOrgRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -5823,6 +6303,10 @@ func (s *Server) handleActionsListSelfHostedRunnersInGroupForOrgRequest(args [2] // handleActionsListWorkflowRunArtifactsRequest handles actions/list-workflow-run-artifacts operation. // +// Lists artifacts for a workflow run. Anyone with read access to the repository can use this +// endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub +// Apps must have the `actions:read` permission to use this endpoint. +// // GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts func (s *Server) handleActionsListWorkflowRunArtifactsRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -5921,6 +6405,13 @@ func (s *Server) handleActionsListWorkflowRunArtifactsRequest(args [3]string, w // handleActionsListWorkflowRunsForRepoRequest handles actions/list-workflow-runs-for-repo operation. // +// Lists all workflow runs for a repository. You can use parameters to narrow the list of results. +// For more information about using parameters, see [Parameters](https://docs.github. +// com/rest/overview/resources-in-the-rest-api#parameters). +// Anyone with read access to the repository can use this endpoint. If the repository is private you +// must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` +// permission to use this endpoint. +// // GET /repos/{owner}/{repo}/actions/runs func (s *Server) handleActionsListWorkflowRunsForRepoRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -6023,6 +6514,15 @@ func (s *Server) handleActionsListWorkflowRunsForRepoRequest(args [2]string, w h // handleActionsReRunWorkflowRequest handles actions/re-run-workflow operation. // +// **Deprecation Notice:** This endpoint is deprecated. +// We recommend migrating your existing code to use the new [retry workflow](https://docs.github. +// com/rest/reference/actions#retry-a-workflow) endpoint. +// Re-runs your workflow run using its `id`. You must authenticate using +// an access token with the `repo` scope to use this endpoint. GitHub Apps must have +// the `actions:write` permission to use this endpoint. +// +// Deprecated: schema marks this operation as deprecated. +// // POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun func (s *Server) handleActionsReRunWorkflowRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -6119,6 +6619,15 @@ func (s *Server) handleActionsReRunWorkflowRequest(args [3]string, w http.Respon // handleActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgRequest handles actions/remove-repo-access-to-self-hosted-runner-group-in-org operation. // +// The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more +// information, see "[GitHub's products](https://docs.github. +// com/github/getting-started-with-github/githubs-products)." +// Removes a repository from the list of selected repositories that can access a self-hosted runner +// group. The runner group must have `visibility` set to `selected`. For more information, see +// "[Create a self-hosted runner group for an +// organization](#create-a-self-hosted-runner-group-for-an-organization)." +// You must authenticate using an access token with the `admin:org` scope to use this endpoint. +// // DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id} func (s *Server) handleActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -6215,6 +6724,12 @@ func (s *Server) handleActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgReques // handleActionsRemoveSelectedRepoFromOrgSecretRequest handles actions/remove-selected-repo-from-org-secret operation. // +// Removes a repository from an organization secret when the `visibility` for repository access is +// set to `selected`. The visibility is set when you [Create or update an organization +// secret](https://docs.github.com/rest/reference/actions#create-or-update-an-organization-secret). +// You must authenticate using an access token with the `admin:org` scope to use this endpoint. +// GitHub Apps must have the `secrets` organization permission to use this endpoint. +// // DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id} func (s *Server) handleActionsRemoveSelectedRepoFromOrgSecretRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -6311,6 +6826,13 @@ func (s *Server) handleActionsRemoveSelectedRepoFromOrgSecretRequest(args [3]str // handleActionsRemoveSelfHostedRunnerFromGroupForOrgRequest handles actions/remove-self-hosted-runner-from-group-for-org operation. // +// The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more +// information, see "[GitHub's products](https://docs.github. +// com/github/getting-started-with-github/githubs-products)." +// Removes a self-hosted runner from a group configured in an organization. The runner is then +// returned to the default group. +// You must authenticate using an access token with the `admin:org` scope to use this endpoint. +// // DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id} func (s *Server) handleActionsRemoveSelfHostedRunnerFromGroupForOrgRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -6407,6 +6929,10 @@ func (s *Server) handleActionsRemoveSelfHostedRunnerFromGroupForOrgRequest(args // handleActionsRetryWorkflowRequest handles actions/retry-workflow operation. // +// Retry your workflow run using its `id`. You must authenticate using an access token with the +// `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use +// this endpoint. +// // POST /repos/{owner}/{repo}/actions/runs/{run_id}/retry func (s *Server) handleActionsRetryWorkflowRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -6503,6 +7029,9 @@ func (s *Server) handleActionsRetryWorkflowRequest(args [3]string, w http.Respon // handleActionsReviewPendingDeploymentsForRunRequest handles actions/review-pending-deployments-for-run operation. // +// Approve or reject pending deployments that are waiting on approval by a required reviewer. +// Anyone with read access to the repository contents and deployments can use this endpoint. +// // POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments func (s *Server) handleActionsReviewPendingDeploymentsForRunRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -6614,6 +7143,18 @@ func (s *Server) handleActionsReviewPendingDeploymentsForRunRequest(args [3]stri // handleActionsSetAllowedActionsOrganizationRequest handles actions/set-allowed-actions-organization operation. // +// Sets the actions that are allowed in an organization. To use this endpoint, the organization +// permission policy for `allowed_actions` must be configured to `selected`. For more information, +// see "[Set GitHub Actions permissions for an +// organization](#set-github-actions-permissions-for-an-organization)." +// If the organization belongs to an enterprise that has `selected` actions set at the enterprise +// level, then you cannot override any of the enterprise's allowed actions settings. +// To use the `patterns_allowed` setting for private repositories, the organization must belong to an +// enterprise. If the organization does not belong to an enterprise, then the `patterns_allowed` +// setting only applies to public repositories in the organization. +// You must authenticate using an access token with the `admin:org` scope to use this endpoint. +// GitHub Apps must have the `administration` organization permission to use this API. +// // PUT /orgs/{org}/actions/permissions/selected-actions func (s *Server) handleActionsSetAllowedActionsOrganizationRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -6723,6 +7264,17 @@ func (s *Server) handleActionsSetAllowedActionsOrganizationRequest(args [1]strin // handleActionsSetAllowedActionsRepositoryRequest handles actions/set-allowed-actions-repository operation. // +// Sets the actions that are allowed in a repository. To use this endpoint, the repository permission +// policy for `allowed_actions` must be configured to `selected`. For more information, see "[Set +// GitHub Actions permissions for a repository](#set-github-actions-permissions-for-a-repository)." +// If the repository belongs to an organization or enterprise that has `selected` actions set at the +// organization or enterprise levels, then you cannot override any of the allowed actions settings. +// To use the `patterns_allowed` setting for private repositories, the repository must belong to an +// enterprise. If the repository does not belong to an enterprise, then the `patterns_allowed` +// setting only applies to public repositories. +// You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub +// Apps must have the `administration` repository permission to use this API. +// // PUT /repos/{owner}/{repo}/actions/permissions/selected-actions func (s *Server) handleActionsSetAllowedActionsRepositoryRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -6833,6 +7385,13 @@ func (s *Server) handleActionsSetAllowedActionsRepositoryRequest(args [2]string, // handleActionsSetGithubActionsPermissionsOrganizationRequest handles actions/set-github-actions-permissions-organization operation. // +// Sets the GitHub Actions permissions policy for repositories and allowed actions in an organization. +// If the organization belongs to an enterprise that has set restrictive permissions at the +// enterprise level, such as `allowed_actions` to `selected` actions, then you cannot override them +// for the organization. +// You must authenticate using an access token with the `admin:org` scope to use this endpoint. +// GitHub Apps must have the `administration` organization permission to use this API. +// // PUT /orgs/{org}/actions/permissions func (s *Server) handleActionsSetGithubActionsPermissionsOrganizationRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -6942,6 +7501,14 @@ func (s *Server) handleActionsSetGithubActionsPermissionsOrganizationRequest(arg // handleActionsSetGithubActionsPermissionsRepositoryRequest handles actions/set-github-actions-permissions-repository operation. // +// Sets the GitHub Actions permissions policy for enabling GitHub Actions and allowed actions in the +// repository. +// If the repository belongs to an organization or enterprise that has set restrictive permissions at +// the organization or enterprise levels, such as `allowed_actions` to `selected` actions, then you +// cannot override them for the repository. +// You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub +// Apps must have the `administration` repository permission to use this API. +// // PUT /repos/{owner}/{repo}/actions/permissions func (s *Server) handleActionsSetGithubActionsPermissionsRepositoryRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -7052,6 +7619,13 @@ func (s *Server) handleActionsSetGithubActionsPermissionsRepositoryRequest(args // handleActionsSetRepoAccessToSelfHostedRunnerGroupInOrgRequest handles actions/set-repo-access-to-self-hosted-runner-group-in-org operation. // +// The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more +// information, see "[GitHub's products](https://docs.github. +// com/github/getting-started-with-github/githubs-products)." +// Replaces the list of repositories that have access to a self-hosted runner group configured in an +// organization. +// You must authenticate using an access token with the `admin:org` scope to use this endpoint. +// // PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories func (s *Server) handleActionsSetRepoAccessToSelfHostedRunnerGroupInOrgRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -7162,6 +7736,12 @@ func (s *Server) handleActionsSetRepoAccessToSelfHostedRunnerGroupInOrgRequest(a // handleActionsSetSelectedReposForOrgSecretRequest handles actions/set-selected-repos-for-org-secret operation. // +// Replaces all repositories for an organization secret when the `visibility` for repository access +// is set to `selected`. The visibility is set when you [Create or update an organization +// secret](https://docs.github.com/rest/reference/actions#create-or-update-an-organization-secret). +// You must authenticate using an access token with the `admin:org` scope to use this endpoint. +// GitHub Apps must have the `secrets` organization permission to use this endpoint. +// // PUT /orgs/{org}/actions/secrets/{secret_name}/repositories func (s *Server) handleActionsSetSelectedReposForOrgSecretRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -7272,6 +7852,13 @@ func (s *Server) handleActionsSetSelectedReposForOrgSecretRequest(args [2]string // handleActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationRequest handles actions/set-selected-repositories-enabled-github-actions-organization operation. // +// Replaces the list of selected repositories that are enabled for GitHub Actions in an organization. +// To use this endpoint, the organization permission policy for `enabled_repositories` must be +// configured to `selected`. For more information, see "[Set GitHub Actions permissions for an +// organization](#set-github-actions-permissions-for-an-organization)." +// You must authenticate using an access token with the `admin:org` scope to use this endpoint. +// GitHub Apps must have the `administration` organization permission to use this API. +// // PUT /orgs/{org}/actions/permissions/repositories func (s *Server) handleActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -7381,6 +7968,12 @@ func (s *Server) handleActionsSetSelectedRepositoriesEnabledGithubActionsOrganiz // handleActionsSetSelfHostedRunnersInGroupForOrgRequest handles actions/set-self-hosted-runners-in-group-for-org operation. // +// The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more +// information, see "[GitHub's products](https://docs.github. +// com/github/getting-started-with-github/githubs-products)." +// Replaces the list of self-hosted runners that are part of an organization runner group. +// You must authenticate using an access token with the `admin:org` scope to use this endpoint. +// // PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners func (s *Server) handleActionsSetSelfHostedRunnersInGroupForOrgRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -7491,6 +8084,12 @@ func (s *Server) handleActionsSetSelfHostedRunnersInGroupForOrgRequest(args [2]s // handleActionsUpdateSelfHostedRunnerGroupForOrgRequest handles actions/update-self-hosted-runner-group-for-org operation. // +// The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more +// information, see "[GitHub's products](https://docs.github. +// com/github/getting-started-with-github/githubs-products)." +// Updates the `name` and `visibility` of a self-hosted runner group in an organization. +// You must authenticate using an access token with the `admin:org` scope to use this endpoint. +// // PATCH /orgs/{org}/actions/runner-groups/{runner_group_id} func (s *Server) handleActionsUpdateSelfHostedRunnerGroupForOrgRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -7601,6 +8200,8 @@ func (s *Server) handleActionsUpdateSelfHostedRunnerGroupForOrgRequest(args [2]s // handleActivityCheckRepoIsStarredByAuthenticatedUserRequest handles activity/check-repo-is-starred-by-authenticated-user operation. // +// Check if a repository is starred by the authenticated user. +// // GET /user/starred/{owner}/{repo} func (s *Server) handleActivityCheckRepoIsStarredByAuthenticatedUserRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -7696,6 +8297,10 @@ func (s *Server) handleActivityCheckRepoIsStarredByAuthenticatedUserRequest(args // handleActivityDeleteRepoSubscriptionRequest handles activity/delete-repo-subscription operation. // +// This endpoint should only be used to stop watching a repository. To control whether or not you +// wish to receive notifications from a repository, [set the repository's subscription +// manually](https://docs.github.com/rest/reference/activity#set-a-repository-subscription). +// // DELETE /repos/{owner}/{repo}/subscription func (s *Server) handleActivityDeleteRepoSubscriptionRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -7791,6 +8396,12 @@ func (s *Server) handleActivityDeleteRepoSubscriptionRequest(args [2]string, w h // handleActivityDeleteThreadSubscriptionRequest handles activity/delete-thread-subscription operation. // +// Mutes all future notifications for a conversation until you comment on the thread or get an +// **@mention**. If you are watching the repository of the thread, you will still receive +// notifications. To ignore future notifications for a repository you are watching, use the [Set a +// thread subscription](https://docs.github.com/rest/reference/activity#set-a-thread-subscription) +// endpoint and set `ignore` to `true`. +// // DELETE /notifications/threads/{thread_id}/subscription func (s *Server) handleActivityDeleteThreadSubscriptionRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -7885,6 +8496,22 @@ func (s *Server) handleActivityDeleteThreadSubscriptionRequest(args [1]string, w // handleActivityGetFeedsRequest handles activity/get-feeds operation. // +// GitHub provides several timeline resources in [Atom](http://en.wikipedia.org/wiki/Atom_(standard)) +// format. The Feeds API lists all the feeds available to the authenticated user: +// * **Timeline**: The GitHub global public timeline +// * **User**: The public timeline for any user, using [URI template](https://docs.github. +// com/rest/overview/resources-in-the-rest-api#hypermedia) +// * **Current user public**: The public timeline for the authenticated user +// * **Current user**: The private timeline for the authenticated user +// * **Current user actor**: The private timeline for activity created by the authenticated user +// * **Current user organizations**: The private timeline for the organizations the authenticated +// user is a member of. +// * **Security advisories**: A collection of public announcements that provide information about +// security-related vulnerabilities in software on GitHub. +// **Note**: Private feeds are only returned when [authenticating via Basic Auth](https://docs.github. +// com/rest/overview/other-authentication-methods#basic-authentication) since current feed URIs use +// the older, non revocable auth tokens. +// // GET /feeds func (s *Server) handleActivityGetFeedsRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -7963,6 +8590,8 @@ func (s *Server) handleActivityGetFeedsRequest(args [0]string, w http.ResponseWr // handleActivityGetRepoSubscriptionRequest handles activity/get-repo-subscription operation. // +// Get a repository subscription. +// // GET /repos/{owner}/{repo}/subscription func (s *Server) handleActivityGetRepoSubscriptionRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -8058,6 +8687,8 @@ func (s *Server) handleActivityGetRepoSubscriptionRequest(args [2]string, w http // handleActivityGetThreadRequest handles activity/get-thread operation. // +// Get a thread. +// // GET /notifications/threads/{thread_id} func (s *Server) handleActivityGetThreadRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -8152,6 +8783,11 @@ func (s *Server) handleActivityGetThreadRequest(args [1]string, w http.ResponseW // handleActivityGetThreadSubscriptionForAuthenticatedUserRequest handles activity/get-thread-subscription-for-authenticated-user operation. // +// This checks to see if the current user is subscribed to a thread. You can also [get a repository +// subscription](https://docs.github.com/rest/reference/activity#get-a-repository-subscription). +// Note that subscriptions are only generated if a user is participating in a conversation--for +// example, they've replied to the thread, were **@mentioned**, or manually subscribe to a thread. +// // GET /notifications/threads/{thread_id}/subscription func (s *Server) handleActivityGetThreadSubscriptionForAuthenticatedUserRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -8246,6 +8882,9 @@ func (s *Server) handleActivityGetThreadSubscriptionForAuthenticatedUserRequest( // handleActivityListEventsForAuthenticatedUserRequest handles activity/list-events-for-authenticated-user operation. // +// If you are authenticated as the given user, you will see your private events. Otherwise, you'll +// only see public events. +// // GET /users/{username}/events func (s *Server) handleActivityListEventsForAuthenticatedUserRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -8342,6 +8981,8 @@ func (s *Server) handleActivityListEventsForAuthenticatedUserRequest(args [1]str // handleActivityListNotificationsForAuthenticatedUserRequest handles activity/list-notifications-for-authenticated-user operation. // +// List all notifications for the current user, sorted by most recently updated. +// // GET /notifications func (s *Server) handleActivityListNotificationsForAuthenticatedUserRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -8441,6 +9082,8 @@ func (s *Server) handleActivityListNotificationsForAuthenticatedUserRequest(args // handleActivityListOrgEventsForAuthenticatedUserRequest handles activity/list-org-events-for-authenticated-user operation. // +// This is the user's organization dashboard. You must be authenticated as the user to view this. +// // GET /users/{username}/events/orgs/{org} func (s *Server) handleActivityListOrgEventsForAuthenticatedUserRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -8538,6 +9181,9 @@ func (s *Server) handleActivityListOrgEventsForAuthenticatedUserRequest(args [2] // handleActivityListPublicEventsRequest handles activity/list-public-events operation. // +// We delay the public events feed by five minutes, which means the most recent event returned by the +// public events API actually occurred at least five minutes ago. +// // GET /events func (s *Server) handleActivityListPublicEventsRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -8633,6 +9279,8 @@ func (s *Server) handleActivityListPublicEventsRequest(args [0]string, w http.Re // handleActivityListPublicEventsForRepoNetworkRequest handles activity/list-public-events-for-repo-network operation. // +// List public events for a network of repositories. +// // GET /networks/{owner}/{repo}/events func (s *Server) handleActivityListPublicEventsForRepoNetworkRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -8730,6 +9378,8 @@ func (s *Server) handleActivityListPublicEventsForRepoNetworkRequest(args [2]str // handleActivityListPublicEventsForUserRequest handles activity/list-public-events-for-user operation. // +// List public events for a user. +// // GET /users/{username}/events/public func (s *Server) handleActivityListPublicEventsForUserRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -8826,6 +9476,8 @@ func (s *Server) handleActivityListPublicEventsForUserRequest(args [1]string, w // handleActivityListPublicOrgEventsRequest handles activity/list-public-org-events operation. // +// List public organization events. +// // GET /orgs/{org}/events func (s *Server) handleActivityListPublicOrgEventsRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -8922,6 +9574,10 @@ func (s *Server) handleActivityListPublicOrgEventsRequest(args [1]string, w http // handleActivityListReceivedEventsForUserRequest handles activity/list-received-events-for-user operation. // +// These are events that you've received by watching repos and following users. If you are +// authenticated as the given user, you will see private events. Otherwise, you'll only see public +// events. +// // GET /users/{username}/received_events func (s *Server) handleActivityListReceivedEventsForUserRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -9018,6 +9674,8 @@ func (s *Server) handleActivityListReceivedEventsForUserRequest(args [1]string, // handleActivityListReceivedPublicEventsForUserRequest handles activity/list-received-public-events-for-user operation. // +// List public events received by a user. +// // GET /users/{username}/received_events/public func (s *Server) handleActivityListReceivedPublicEventsForUserRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -9114,6 +9772,8 @@ func (s *Server) handleActivityListReceivedPublicEventsForUserRequest(args [1]st // handleActivityListRepoEventsRequest handles activity/list-repo-events operation. // +// List repository events. +// // GET /repos/{owner}/{repo}/events func (s *Server) handleActivityListRepoEventsRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -9211,6 +9871,8 @@ func (s *Server) handleActivityListRepoEventsRequest(args [2]string, w http.Resp // handleActivityListRepoNotificationsForAuthenticatedUserRequest handles activity/list-repo-notifications-for-authenticated-user operation. // +// List all notifications for the current user. +// // GET /repos/{owner}/{repo}/notifications func (s *Server) handleActivityListRepoNotificationsForAuthenticatedUserRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -9312,6 +9974,10 @@ func (s *Server) handleActivityListRepoNotificationsForAuthenticatedUserRequest( // handleActivityListReposStarredByAuthenticatedUserRequest handles activity/list-repos-starred-by-authenticated-user operation. // +// Lists repositories the authenticated user has starred. +// You can also find out _when_ stars were created by passing the following custom [media +// type](https://docs.github.com/rest/overview/media-types/) via the `Accept` header:. +// // GET /user/starred func (s *Server) handleActivityListReposStarredByAuthenticatedUserRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -9409,6 +10075,8 @@ func (s *Server) handleActivityListReposStarredByAuthenticatedUserRequest(args [ // handleActivityListReposWatchedByUserRequest handles activity/list-repos-watched-by-user operation. // +// Lists repositories a user is watching. +// // GET /users/{username}/subscriptions func (s *Server) handleActivityListReposWatchedByUserRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -9505,6 +10173,8 @@ func (s *Server) handleActivityListReposWatchedByUserRequest(args [1]string, w h // handleActivityListWatchedReposForAuthenticatedUserRequest handles activity/list-watched-repos-for-authenticated-user operation. // +// Lists repositories the authenticated user is watching. +// // GET /user/subscriptions func (s *Server) handleActivityListWatchedReposForAuthenticatedUserRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -9600,6 +10270,8 @@ func (s *Server) handleActivityListWatchedReposForAuthenticatedUserRequest(args // handleActivityListWatchersForRepoRequest handles activity/list-watchers-for-repo operation. // +// Lists the people watching the specified repository. +// // GET /repos/{owner}/{repo}/subscribers func (s *Server) handleActivityListWatchersForRepoRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -9697,6 +10369,14 @@ func (s *Server) handleActivityListWatchersForRepoRequest(args [2]string, w http // handleActivityMarkNotificationsAsReadRequest handles activity/mark-notifications-as-read operation. // +// Marks all notifications as "read" removes it from the [default view on GitHub](https://github. +// com/notifications). If the number of notifications is too large to complete in one request, you +// will receive a `202 Accepted` status and GitHub will run an asynchronous process to mark +// notifications as "read." To check whether any "unread" notifications remain, you can use the [List +// notifications for the authenticated user](https://docs.github. +// com/rest/reference/activity#list-notifications-for-the-authenticated-user) endpoint and pass the +// query parameter `all=false`. +// // PUT /notifications func (s *Server) handleActivityMarkNotificationsAsReadRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -9794,6 +10474,14 @@ func (s *Server) handleActivityMarkNotificationsAsReadRequest(args [0]string, w // handleActivityMarkRepoNotificationsAsReadRequest handles activity/mark-repo-notifications-as-read operation. // +// Marks all notifications in a repository as "read" removes them from the [default view on +// GitHub](https://github.com/notifications). If the number of notifications is too large to complete +// in one request, you will receive a `202 Accepted` status and GitHub will run an asynchronous +// process to mark notifications as "read." To check whether any "unread" notifications remain, you +// can use the [List repository notifications for the authenticated user](https://docs.github. +// com/rest/reference/activity#list-repository-notifications-for-the-authenticated-user) endpoint and +// pass the query parameter `all=false`. +// // PUT /repos/{owner}/{repo}/notifications func (s *Server) handleActivityMarkRepoNotificationsAsReadRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -9904,6 +10592,8 @@ func (s *Server) handleActivityMarkRepoNotificationsAsReadRequest(args [2]string // handleActivityMarkThreadAsReadRequest handles activity/mark-thread-as-read operation. // +// Mark a thread as read. +// // PATCH /notifications/threads/{thread_id} func (s *Server) handleActivityMarkThreadAsReadRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -9998,6 +10688,11 @@ func (s *Server) handleActivityMarkThreadAsReadRequest(args [1]string, w http.Re // handleActivitySetRepoSubscriptionRequest handles activity/set-repo-subscription operation. // +// If you would like to watch a repository, set `subscribed` to `true`. If you would like to ignore +// notifications made within a repository, set `ignored` to `true`. If you would like to stop +// watching a repository, [delete the repository's subscription](https://docs.github. +// com/rest/reference/activity#delete-a-repository-subscription) completely. +// // PUT /repos/{owner}/{repo}/subscription func (s *Server) handleActivitySetRepoSubscriptionRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -10108,6 +10803,15 @@ func (s *Server) handleActivitySetRepoSubscriptionRequest(args [2]string, w http // handleActivitySetThreadSubscriptionRequest handles activity/set-thread-subscription operation. // +// If you are watching a repository, you receive notifications for all threads by default. Use this +// endpoint to ignore future notifications for threads until you comment on the thread or get an +// **@mention**. +// You can also use this endpoint to subscribe to threads that you are currently not receiving +// notifications for or to subscribed to threads that you have previously ignored. +// Unsubscribing from a conversation in a repository that you are not watching is functionally +// equivalent to the [Delete a thread subscription](https://docs.github. +// com/rest/reference/activity#delete-a-thread-subscription) endpoint. +// // PUT /notifications/threads/{thread_id}/subscription func (s *Server) handleActivitySetThreadSubscriptionRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -10217,6 +10921,10 @@ func (s *Server) handleActivitySetThreadSubscriptionRequest(args [1]string, w ht // handleActivityStarRepoForAuthenticatedUserRequest handles activity/star-repo-for-authenticated-user operation. // +// Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more +// information, see "[HTTP verbs](https://docs.github. +// com/rest/overview/resources-in-the-rest-api#http-verbs).". +// // PUT /user/starred/{owner}/{repo} func (s *Server) handleActivityStarRepoForAuthenticatedUserRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -10312,6 +11020,8 @@ func (s *Server) handleActivityStarRepoForAuthenticatedUserRequest(args [2]strin // handleActivityUnstarRepoForAuthenticatedUserRequest handles activity/unstar-repo-for-authenticated-user operation. // +// Unstar a repository for the authenticated user. +// // DELETE /user/starred/{owner}/{repo} func (s *Server) handleActivityUnstarRepoForAuthenticatedUserRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -10407,6 +11117,13 @@ func (s *Server) handleActivityUnstarRepoForAuthenticatedUserRequest(args [2]str // handleAppsAddRepoToInstallationRequest handles apps/add-repo-to-installation operation. // +// Add a single repository to an installation. The authenticated user must have admin access to the +// repository. +// You must use a personal access token (which you can create via the [command line](https://docs. +// github.com/github/authenticating-to-github/creating-a-personal-access-token) or [Basic +// Authentication](https://docs.github. +// com/rest/overview/other-authentication-methods#basic-authentication)) to access this endpoint. +// // PUT /user/installations/{installation_id}/repositories/{repository_id} func (s *Server) handleAppsAddRepoToInstallationRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -10502,6 +11219,13 @@ func (s *Server) handleAppsAddRepoToInstallationRequest(args [2]string, w http.R // handleAppsCheckTokenRequest handles apps/check-token operation. // +// OAuth applications can use a special API method for checking OAuth token validity without +// exceeding the normal rate limits for failed login attempts. Authentication works differently with +// this particular endpoint. You must use [Basic Authentication](https://docs.github. +// com/rest/overview/other-authentication-methods#basic-authentication) to use this endpoint, where +// the username is the OAuth application `client_id` and the password is its `client_secret`. Invalid +// tokens will return `404 NOT FOUND`. +// // POST /applications/{client_id}/token func (s *Server) handleAppsCheckTokenRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -10611,6 +11335,17 @@ func (s *Server) handleAppsCheckTokenRequest(args [1]string, w http.ResponseWrit // handleAppsCreateContentAttachmentRequest handles apps/create-content-attachment operation. // +// Creates an attachment under a content reference URL in the body or comment of an issue or pull +// request. Use the `id` and `repository` `full_name` of the content reference from the +// [`content_reference` event](https://docs.github.com/webhooks/event-payloads/#content_reference) to +// create an attachment. +// The app must create a content attachment within six hours of the content reference URL being +// posted. See "[Using content attachments](https://docs.github.com/apps/using-content-attachments/)" +// for details about content attachments. +// You must use an [installation access token](https://docs.github. +// com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) +// to access this endpoint. +// // POST /repos/{owner}/{repo}/content_references/{content_reference_id}/attachments func (s *Server) handleAppsCreateContentAttachmentRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -10722,6 +11457,11 @@ func (s *Server) handleAppsCreateContentAttachmentRequest(args [3]string, w http // handleAppsCreateFromManifestRequest handles apps/create-from-manifest operation. // +// Use this endpoint to complete the handshake necessary when implementing the [GitHub App Manifest +// flow](https://docs.github.com/apps/building-github-apps/creating-github-apps-from-a-manifest/). +// When you create a GitHub App with the manifest flow, you receive a temporary `code` used to +// retrieve the GitHub App's `id`, `pem` (private key), and `webhook_secret`. +// // POST /app-manifests/{code}/conversions func (s *Server) handleAppsCreateFromManifestRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -10831,6 +11571,17 @@ func (s *Server) handleAppsCreateFromManifestRequest(args [1]string, w http.Resp // handleAppsCreateInstallationAccessTokenRequest handles apps/create-installation-access-token operation. // +// Creates an installation access token that enables a GitHub App to make authenticated API requests +// for the app's installation on an organization or individual account. Installation tokens expire +// one hour from the time you create them. Using an expired token produces a status code of `401 - +// Unauthorized`, and requires creating a new installation token. By default the installation token +// has access to all repositories that the installation can access. To restrict the access to +// specific repositories, you can provide the `repository_ids` when creating the token. When you omit +// `repository_ids`, the response does not contain the `repositories` key. +// You must use a [JWT](https://docs.github. +// com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to +// access this endpoint. +// // POST /app/installations/{installation_id}/access_tokens func (s *Server) handleAppsCreateInstallationAccessTokenRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -10940,6 +11691,17 @@ func (s *Server) handleAppsCreateInstallationAccessTokenRequest(args [1]string, // handleAppsDeleteAuthorizationRequest handles apps/delete-authorization operation. // +// OAuth application owners can revoke a grant for their OAuth application and a specific user. You +// must use [Basic Authentication](https://docs.github. +// com/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, +// using the OAuth application's `client_id` and `client_secret` as the username and password. You +// must also provide a valid OAuth `access_token` as an input parameter and the grant for the token's +// owner will be deleted. +// Deleting an OAuth application's grant will also delete all OAuth tokens associated with the +// application for the user. Once deleted, the application will have no access to the user's account +// and will no longer be listed on [the application authorizations settings screen within +// GitHub](https://github.com/settings/applications#authorized). +// // DELETE /applications/{client_id}/grant func (s *Server) handleAppsDeleteAuthorizationRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -11049,6 +11811,13 @@ func (s *Server) handleAppsDeleteAuthorizationRequest(args [1]string, w http.Res // handleAppsDeleteInstallationRequest handles apps/delete-installation operation. // +// Uninstalls a GitHub App on a user, organization, or business account. If you prefer to temporarily +// suspend an app's access to your account's resources, then we recommend the "[Suspend an app +// installation](https://docs.github.com/rest/reference/apps/#suspend-an-app-installation)" endpoint. +// You must use a [JWT](https://docs.github. +// com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to +// access this endpoint. +// // DELETE /app/installations/{installation_id} func (s *Server) handleAppsDeleteInstallationRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -11143,6 +11912,11 @@ func (s *Server) handleAppsDeleteInstallationRequest(args [1]string, w http.Resp // handleAppsDeleteTokenRequest handles apps/delete-token operation. // +// OAuth application owners can revoke a single token for an OAuth application. You must use [Basic +// Authentication](https://docs.github. +// com/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, +// using the OAuth application's `client_id` and `client_secret` as the username and password. +// // DELETE /applications/{client_id}/token func (s *Server) handleAppsDeleteTokenRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -11252,6 +12026,15 @@ func (s *Server) handleAppsDeleteTokenRequest(args [1]string, w http.ResponseWri // handleAppsGetAuthenticatedRequest handles apps/get-authenticated operation. // +// Returns the GitHub App associated with the authentication credentials used. To see how many app +// installations are associated with this GitHub App, see the `installations_count` in the response. +// For more details about your app's installations, see the "[List installations for the +// authenticated app](https://docs.github. +// com/rest/reference/apps#list-installations-for-the-authenticated-app)" endpoint. +// You must use a [JWT](https://docs.github. +// com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to +// access this endpoint. +// // GET /app func (s *Server) handleAppsGetAuthenticatedRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -11330,6 +12113,15 @@ func (s *Server) handleAppsGetAuthenticatedRequest(args [0]string, w http.Respon // handleAppsGetBySlugRequest handles apps/get-by-slug operation. // +// **Note**: The `:app_slug` is just the URL-friendly name of your GitHub App. You can find this on +// the settings page for your GitHub App (e.g., `https://github.com/settings/apps/:app_slug`). +// If the GitHub App you specify is public, you can access this endpoint without authenticating. If +// the GitHub App you specify is private, you must authenticate with a [personal access +// token](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or +// an [installation access token](https://docs.github. +// com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) +// to access this endpoint. +// // GET /apps/{app_slug} func (s *Server) handleAppsGetBySlugRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -11424,6 +12216,15 @@ func (s *Server) handleAppsGetBySlugRequest(args [1]string, w http.ResponseWrite // handleAppsGetSubscriptionPlanForAccountRequest handles apps/get-subscription-plan-for-account operation. // +// Shows whether the user or organization account actively subscribes to a plan listed by the +// authenticated GitHub App. When someone submits a plan change that won't be processed until the end +// of their billing cycle, you will also see the upcoming pending change. +// GitHub Apps must use a [JWT](https://docs.github. +// com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to +// access this endpoint. OAuth Apps must use [basic authentication](https://docs.github. +// com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and +// client secret to access this endpoint. +// // GET /marketplace_listing/accounts/{account_id} func (s *Server) handleAppsGetSubscriptionPlanForAccountRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -11518,6 +12319,15 @@ func (s *Server) handleAppsGetSubscriptionPlanForAccountRequest(args [1]string, // handleAppsGetSubscriptionPlanForAccountStubbedRequest handles apps/get-subscription-plan-for-account-stubbed operation. // +// Shows whether the user or organization account actively subscribes to a plan listed by the +// authenticated GitHub App. When someone submits a plan change that won't be processed until the end +// of their billing cycle, you will also see the upcoming pending change. +// GitHub Apps must use a [JWT](https://docs.github. +// com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to +// access this endpoint. OAuth Apps must use [basic authentication](https://docs.github. +// com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and +// client secret to access this endpoint. +// // GET /marketplace_listing/stubbed/accounts/{account_id} func (s *Server) handleAppsGetSubscriptionPlanForAccountStubbedRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -11612,6 +12422,12 @@ func (s *Server) handleAppsGetSubscriptionPlanForAccountStubbedRequest(args [1]s // handleAppsGetWebhookConfigForAppRequest handles apps/get-webhook-config-for-app operation. // +// Returns the webhook configuration for a GitHub App. For more information about configuring a +// webhook for your app, see "[Creating a GitHub App](/developers/apps/creating-a-github-app)." +// You must use a [JWT](https://docs.github. +// com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to +// access this endpoint. +// // GET /app/hook/config func (s *Server) handleAppsGetWebhookConfigForAppRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -11690,6 +12506,11 @@ func (s *Server) handleAppsGetWebhookConfigForAppRequest(args [0]string, w http. // handleAppsGetWebhookDeliveryRequest handles apps/get-webhook-delivery operation. // +// Returns a delivery for the webhook configured for a GitHub App. +// You must use a [JWT](https://docs.github. +// com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to +// access this endpoint. +// // GET /app/hook/deliveries/{delivery_id} func (s *Server) handleAppsGetWebhookDeliveryRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -11784,6 +12605,16 @@ func (s *Server) handleAppsGetWebhookDeliveryRequest(args [1]string, w http.Resp // handleAppsListAccountsForPlanRequest handles apps/list-accounts-for-plan operation. // +// Returns user and organization accounts associated with the specified plan, including free plans. +// For per-seat pricing, you see the list of accounts that have purchased the plan, including the +// number of seats purchased. When someone submits a plan change that won't be processed until the +// end of their billing cycle, you will also see the upcoming pending change. +// GitHub Apps must use a [JWT](https://docs.github. +// com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to +// access this endpoint. OAuth Apps must use [basic authentication](https://docs.github. +// com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and +// client secret to access this endpoint. +// // GET /marketplace_listing/plans/{plan_id}/accounts func (s *Server) handleAppsListAccountsForPlanRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -11882,6 +12713,16 @@ func (s *Server) handleAppsListAccountsForPlanRequest(args [1]string, w http.Res // handleAppsListAccountsForPlanStubbedRequest handles apps/list-accounts-for-plan-stubbed operation. // +// Returns repository and organization accounts associated with the specified plan, including free +// plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including +// the number of seats purchased. When someone submits a plan change that won't be processed until +// the end of their billing cycle, you will also see the upcoming pending change. +// GitHub Apps must use a [JWT](https://docs.github. +// com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to +// access this endpoint. OAuth Apps must use [basic authentication](https://docs.github. +// com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and +// client secret to access this endpoint. +// // GET /marketplace_listing/stubbed/plans/{plan_id}/accounts func (s *Server) handleAppsListAccountsForPlanStubbedRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -11980,6 +12821,14 @@ func (s *Server) handleAppsListAccountsForPlanStubbedRequest(args [1]string, w h // handleAppsListInstallationReposForAuthenticatedUserRequest handles apps/list-installation-repos-for-authenticated-user operation. // +// List repositories that the authenticated user has explicit permission (`:read`, `:write`, or +// `:admin`) to access for an installation. +// The authenticated user has explicit permission to access repositories they own, repositories where +// they are a collaborator, and repositories that they can access through an organization membership. +// You must use a [user-to-server OAuth access token](https://docs.github. +// com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. +// The access the user has to each repository is included in the hash under the `permissions` key. +// // GET /user/installations/{installation_id}/repositories func (s *Server) handleAppsListInstallationReposForAuthenticatedUserRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -12076,6 +12925,13 @@ func (s *Server) handleAppsListInstallationReposForAuthenticatedUserRequest(args // handleAppsListPlansRequest handles apps/list-plans operation. // +// Lists all plans that are part of your GitHub Marketplace listing. +// GitHub Apps must use a [JWT](https://docs.github. +// com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to +// access this endpoint. OAuth Apps must use [basic authentication](https://docs.github. +// com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and +// client secret to access this endpoint. +// // GET /marketplace_listing/plans func (s *Server) handleAppsListPlansRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -12171,6 +13027,13 @@ func (s *Server) handleAppsListPlansRequest(args [0]string, w http.ResponseWrite // handleAppsListPlansStubbedRequest handles apps/list-plans-stubbed operation. // +// Lists all plans that are part of your GitHub Marketplace listing. +// GitHub Apps must use a [JWT](https://docs.github. +// com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to +// access this endpoint. OAuth Apps must use [basic authentication](https://docs.github. +// com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and +// client secret to access this endpoint. +// // GET /marketplace_listing/stubbed/plans func (s *Server) handleAppsListPlansStubbedRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -12266,6 +13129,11 @@ func (s *Server) handleAppsListPlansStubbedRequest(args [0]string, w http.Respon // handleAppsListReposAccessibleToInstallationRequest handles apps/list-repos-accessible-to-installation operation. // +// List repositories that an app installation can access. +// You must use an [installation access token](https://docs.github. +// com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) +// to access this endpoint. +// // GET /installation/repositories func (s *Server) handleAppsListReposAccessibleToInstallationRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -12361,6 +13229,10 @@ func (s *Server) handleAppsListReposAccessibleToInstallationRequest(args [0]stri // handleAppsListSubscriptionsForAuthenticatedUserRequest handles apps/list-subscriptions-for-authenticated-user operation. // +// Lists the active subscriptions for the authenticated user. You must use a [user-to-server OAuth +// access token](https://docs.github. +// com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. . OAuth Apps must authenticate using an [OAuth token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/). +// // GET /user/marketplace_purchases func (s *Server) handleAppsListSubscriptionsForAuthenticatedUserRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -12456,6 +13328,10 @@ func (s *Server) handleAppsListSubscriptionsForAuthenticatedUserRequest(args [0] // handleAppsListSubscriptionsForAuthenticatedUserStubbedRequest handles apps/list-subscriptions-for-authenticated-user-stubbed operation. // +// Lists the active subscriptions for the authenticated user. You must use a [user-to-server OAuth +// access token](https://docs.github. +// com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. . OAuth Apps must authenticate using an [OAuth token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/). +// // GET /user/marketplace_purchases/stubbed func (s *Server) handleAppsListSubscriptionsForAuthenticatedUserStubbedRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -12551,6 +13427,11 @@ func (s *Server) handleAppsListSubscriptionsForAuthenticatedUserStubbedRequest(a // handleAppsListWebhookDeliveriesRequest handles apps/list-webhook-deliveries operation. // +// Returns a list of webhook deliveries for the webhook configured for a GitHub App. +// You must use a [JWT](https://docs.github. +// com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to +// access this endpoint. +// // GET /app/hook/deliveries func (s *Server) handleAppsListWebhookDeliveriesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -12646,6 +13527,11 @@ func (s *Server) handleAppsListWebhookDeliveriesRequest(args [0]string, w http.R // handleAppsRedeliverWebhookDeliveryRequest handles apps/redeliver-webhook-delivery operation. // +// Redeliver a delivery for the webhook configured for a GitHub App. +// You must use a [JWT](https://docs.github. +// com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to +// access this endpoint. +// // POST /app/hook/deliveries/{delivery_id}/attempts func (s *Server) handleAppsRedeliverWebhookDeliveryRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -12740,6 +13626,13 @@ func (s *Server) handleAppsRedeliverWebhookDeliveryRequest(args [1]string, w htt // handleAppsRemoveRepoFromInstallationRequest handles apps/remove-repo-from-installation operation. // +// Remove a single repository from an installation. The authenticated user must have admin access to +// the repository. +// You must use a personal access token (which you can create via the [command line](https://docs. +// github.com/github/authenticating-to-github/creating-a-personal-access-token) or [Basic +// Authentication](https://docs.github. +// com/rest/overview/other-authentication-methods#basic-authentication)) to access this endpoint. +// // DELETE /user/installations/{installation_id}/repositories/{repository_id} func (s *Server) handleAppsRemoveRepoFromInstallationRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -12835,6 +13728,13 @@ func (s *Server) handleAppsRemoveRepoFromInstallationRequest(args [2]string, w h // handleAppsResetTokenRequest handles apps/reset-token operation. // +// OAuth applications can use this API method to reset a valid OAuth token without end-user +// involvement. Applications must save the "token" property in the response because changes take +// effect immediately. You must use [Basic Authentication](https://docs.github. +// com/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, +// using the OAuth application's `client_id` and `client_secret` as the username and password. +// Invalid tokens will return `404 NOT FOUND`. +// // PATCH /applications/{client_id}/token func (s *Server) handleAppsResetTokenRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -12944,6 +13844,17 @@ func (s *Server) handleAppsResetTokenRequest(args [1]string, w http.ResponseWrit // handleAppsRevokeInstallationAccessTokenRequest handles apps/revoke-installation-access-token operation. // +// Revokes the installation token you're using to authenticate as an installation and access this +// endpoint. +// Once an installation token is revoked, the token is invalidated and cannot be used. Other +// endpoints that require the revoked installation token must have a new installation token to work. +// You can create a new token using the "[Create an installation access token for an +// app](https://docs.github.com/rest/reference/apps#create-an-installation-access-token-for-an-app)" +// endpoint. +// You must use an [installation access token](https://docs.github. +// com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) +// to access this endpoint. +// // DELETE /installation/token func (s *Server) handleAppsRevokeInstallationAccessTokenRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -13022,6 +13933,13 @@ func (s *Server) handleAppsRevokeInstallationAccessTokenRequest(args [0]string, // handleAppsScopeTokenRequest handles apps/scope-token operation. // +// Use a non-scoped user-to-server OAuth access token to create a repository scoped and/or permission +// scoped user-to-server OAuth access token. You can specify which repositories the token can access +// and which permissions are granted to the token. You must use [Basic Authentication](https://docs. +// github.com/rest/overview/other-authentication-methods#basic-authentication) when accessing this +// endpoint, using the OAuth application's `client_id` and `client_secret` as the username and +// password. Invalid tokens will return `404 NOT FOUND`. +// // POST /applications/{client_id}/token/scoped func (s *Server) handleAppsScopeTokenRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -13131,6 +14049,13 @@ func (s *Server) handleAppsScopeTokenRequest(args [1]string, w http.ResponseWrit // handleAppsSuspendInstallationRequest handles apps/suspend-installation operation. // +// Suspends a GitHub App on a user, organization, or business account, which blocks the app from +// accessing the account's resources. When a GitHub App is suspended, the app's access to the GitHub +// API or webhook events is blocked for that account. +// You must use a [JWT](https://docs.github. +// com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to +// access this endpoint. +// // PUT /app/installations/{installation_id}/suspended func (s *Server) handleAppsSuspendInstallationRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -13225,6 +14150,11 @@ func (s *Server) handleAppsSuspendInstallationRequest(args [1]string, w http.Res // handleAppsUnsuspendInstallationRequest handles apps/unsuspend-installation operation. // +// Removes a GitHub App installation suspension. +// You must use a [JWT](https://docs.github. +// com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to +// access this endpoint. +// // DELETE /app/installations/{installation_id}/suspended func (s *Server) handleAppsUnsuspendInstallationRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -13319,6 +14249,12 @@ func (s *Server) handleAppsUnsuspendInstallationRequest(args [1]string, w http.R // handleAppsUpdateWebhookConfigForAppRequest handles apps/update-webhook-config-for-app operation. // +// Updates the webhook configuration for a GitHub App. For more information about configuring a +// webhook for your app, see "[Creating a GitHub App](/developers/apps/creating-a-github-app)." +// You must use a [JWT](https://docs.github. +// com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to +// access this endpoint. +// // PATCH /app/hook/config func (s *Server) handleAppsUpdateWebhookConfigForAppRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -13416,6 +14352,15 @@ func (s *Server) handleAppsUpdateWebhookConfigForAppRequest(args [0]string, w ht // handleBillingGetGithubActionsBillingGheRequest handles billing/get-github-actions-billing-ghe operation. // +// Gets the summary of the free and paid GitHub Actions minutes used. +// Paid minutes only apply to workflows in private repositories that use GitHub-hosted runners. +// Minutes used is listed for each GitHub-hosted runner operating system. Any job re-runs are also +// included in the usage. The usage does not include the multiplier for macOS and Windows runners and +// is not rounded up to the nearest whole minute. For more information, see "[Managing billing for +// GitHub Actions](https://help.github. +// com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)". +// The authenticated user must be an enterprise admin. +// // GET /enterprises/{enterprise}/settings/billing/actions func (s *Server) handleBillingGetGithubActionsBillingGheRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -13510,6 +14455,15 @@ func (s *Server) handleBillingGetGithubActionsBillingGheRequest(args [1]string, // handleBillingGetGithubActionsBillingOrgRequest handles billing/get-github-actions-billing-org operation. // +// Gets the summary of the free and paid GitHub Actions minutes used. +// Paid minutes only apply to workflows in private repositories that use GitHub-hosted runners. +// Minutes used is listed for each GitHub-hosted runner operating system. Any job re-runs are also +// included in the usage. The usage returned includes any minute multipliers for macOS and Windows +// runners, and is rounded up to the nearest whole minute. For more information, see "[Managing +// billing for GitHub Actions](https://help.github. +// com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)". +// Access tokens must have the `repo` or `admin:org` scope. +// // GET /orgs/{org}/settings/billing/actions func (s *Server) handleBillingGetGithubActionsBillingOrgRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -13604,6 +14558,15 @@ func (s *Server) handleBillingGetGithubActionsBillingOrgRequest(args [1]string, // handleBillingGetGithubActionsBillingUserRequest handles billing/get-github-actions-billing-user operation. // +// Gets the summary of the free and paid GitHub Actions minutes used. +// Paid minutes only apply to workflows in private repositories that use GitHub-hosted runners. +// Minutes used is listed for each GitHub-hosted runner operating system. Any job re-runs are also +// included in the usage. The usage returned includes any minute multipliers for macOS and Windows +// runners, and is rounded up to the nearest whole minute. For more information, see "[Managing +// billing for GitHub Actions](https://help.github. +// com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)". +// Access tokens must have the `user` scope. +// // GET /users/{username}/settings/billing/actions func (s *Server) handleBillingGetGithubActionsBillingUserRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -13698,6 +14661,12 @@ func (s *Server) handleBillingGetGithubActionsBillingUserRequest(args [1]string, // handleBillingGetGithubPackagesBillingGheRequest handles billing/get-github-packages-billing-ghe operation. // +// Gets the free and paid storage used for GitHub Packages in gigabytes. +// Paid minutes only apply to packages stored for private repositories. For more information, see +// "[Managing billing for GitHub Packages](https://help.github. +// com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages)." +// The authenticated user must be an enterprise admin. +// // GET /enterprises/{enterprise}/settings/billing/packages func (s *Server) handleBillingGetGithubPackagesBillingGheRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -13792,6 +14761,12 @@ func (s *Server) handleBillingGetGithubPackagesBillingGheRequest(args [1]string, // handleBillingGetGithubPackagesBillingOrgRequest handles billing/get-github-packages-billing-org operation. // +// Gets the free and paid storage used for GitHub Packages in gigabytes. +// Paid minutes only apply to packages stored for private repositories. For more information, see +// "[Managing billing for GitHub Packages](https://help.github. +// com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages)." +// Access tokens must have the `repo` or `admin:org` scope. +// // GET /orgs/{org}/settings/billing/packages func (s *Server) handleBillingGetGithubPackagesBillingOrgRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -13886,6 +14861,12 @@ func (s *Server) handleBillingGetGithubPackagesBillingOrgRequest(args [1]string, // handleBillingGetGithubPackagesBillingUserRequest handles billing/get-github-packages-billing-user operation. // +// Gets the free and paid storage used for GitHub Packages in gigabytes. +// Paid minutes only apply to packages stored for private repositories. For more information, see +// "[Managing billing for GitHub Packages](https://help.github. +// com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages)." +// Access tokens must have the `user` scope. +// // GET /users/{username}/settings/billing/packages func (s *Server) handleBillingGetGithubPackagesBillingUserRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -13980,6 +14961,12 @@ func (s *Server) handleBillingGetGithubPackagesBillingUserRequest(args [1]string // handleBillingGetSharedStorageBillingGheRequest handles billing/get-shared-storage-billing-ghe operation. // +// Gets the estimated paid and estimated total storage used for GitHub Actions and Github Packages. +// Paid minutes only apply to packages stored for private repositories. For more information, see +// "[Managing billing for GitHub Packages](https://help.github. +// com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages)." +// The authenticated user must be an enterprise admin. +// // GET /enterprises/{enterprise}/settings/billing/shared-storage func (s *Server) handleBillingGetSharedStorageBillingGheRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -14074,6 +15061,12 @@ func (s *Server) handleBillingGetSharedStorageBillingGheRequest(args [1]string, // handleBillingGetSharedStorageBillingOrgRequest handles billing/get-shared-storage-billing-org operation. // +// Gets the estimated paid and estimated total storage used for GitHub Actions and Github Packages. +// Paid minutes only apply to packages stored for private repositories. For more information, see +// "[Managing billing for GitHub Packages](https://help.github. +// com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages)." +// Access tokens must have the `repo` or `admin:org` scope. +// // GET /orgs/{org}/settings/billing/shared-storage func (s *Server) handleBillingGetSharedStorageBillingOrgRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -14168,6 +15161,12 @@ func (s *Server) handleBillingGetSharedStorageBillingOrgRequest(args [1]string, // handleBillingGetSharedStorageBillingUserRequest handles billing/get-shared-storage-billing-user operation. // +// Gets the estimated paid and estimated total storage used for GitHub Actions and Github Packages. +// Paid minutes only apply to packages stored for private repositories. For more information, see +// "[Managing billing for GitHub Packages](https://help.github. +// com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages)." +// Access tokens must have the `user` scope. +// // GET /users/{username}/settings/billing/shared-storage func (s *Server) handleBillingGetSharedStorageBillingUserRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -14262,6 +15261,16 @@ func (s *Server) handleBillingGetSharedStorageBillingUserRequest(args [1]string, // handleChecksCreateSuiteRequest handles checks/create-suite operation. // +// **Note:** The Checks API only looks for pushes in the repository where the check suite or check +// run were created. Pushes to a branch in a forked repository are not detected and return an empty +// `pull_requests` array and a `null` value for `head_branch`. +// By default, check suites are automatically created when you create a [check run](https://docs. +// github.com/rest/reference/checks#check-runs). You only need to use this endpoint for manually +// creating check suites when you've disabled automatic creation using "[Update repository +// preferences for check suites](https://docs.github. +// com/rest/reference/checks#update-repository-preferences-for-check-suites)". Your GitHub App must +// have the `checks:write` permission to create check suites. +// // POST /repos/{owner}/{repo}/check-suites func (s *Server) handleChecksCreateSuiteRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -14372,6 +15381,13 @@ func (s *Server) handleChecksCreateSuiteRequest(args [2]string, w http.ResponseW // handleChecksGetRequest handles checks/get operation. // +// **Note:** The Checks API only looks for pushes in the repository where the check suite or check +// run were created. Pushes to a branch in a forked repository are not detected and return an empty +// `pull_requests` array. +// Gets a single check run using its `id`. GitHub Apps must have the `checks:read` permission on a +// private repository or pull access to a public repository to get check runs. OAuth Apps and +// authenticated users must have the `repo` scope to get check runs in a private repository. +// // GET /repos/{owner}/{repo}/check-runs/{check_run_id} func (s *Server) handleChecksGetRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -14468,6 +15484,13 @@ func (s *Server) handleChecksGetRequest(args [3]string, w http.ResponseWriter, r // handleChecksGetSuiteRequest handles checks/get-suite operation. // +// **Note:** The Checks API only looks for pushes in the repository where the check suite or check +// run were created. Pushes to a branch in a forked repository are not detected and return an empty +// `pull_requests` array and a `null` value for `head_branch`. +// Gets a single check suite using its `id`. GitHub Apps must have the `checks:read` permission on a +// private repository or pull access to a public repository to get check suites. OAuth Apps and +// authenticated users must have the `repo` scope to get check suites in a private repository. +// // GET /repos/{owner}/{repo}/check-suites/{check_suite_id} func (s *Server) handleChecksGetSuiteRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -14564,6 +15587,11 @@ func (s *Server) handleChecksGetSuiteRequest(args [3]string, w http.ResponseWrit // handleChecksListAnnotationsRequest handles checks/list-annotations operation. // +// Lists annotations for a check run using the annotation `id`. GitHub Apps must have the +// `checks:read` permission on a private repository or pull access to a public repository to get +// annotations for a check run. OAuth Apps and authenticated users must have the `repo` scope to get +// annotations for a check run in a private repository. +// // GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations func (s *Server) handleChecksListAnnotationsRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -14662,6 +15690,14 @@ func (s *Server) handleChecksListAnnotationsRequest(args [3]string, w http.Respo // handleChecksListForRefRequest handles checks/list-for-ref operation. // +// **Note:** The Checks API only looks for pushes in the repository where the check suite or check +// run were created. Pushes to a branch in a forked repository are not detected and return an empty +// `pull_requests` array. +// Lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps +// must have the `checks:read` permission on a private repository or pull access to a public +// repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get +// check runs in a private repository. +// // GET /repos/{owner}/{repo}/commits/{ref}/check-runs func (s *Server) handleChecksListForRefRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -14764,6 +15800,13 @@ func (s *Server) handleChecksListForRefRequest(args [3]string, w http.ResponseWr // handleChecksListForSuiteRequest handles checks/list-for-suite operation. // +// **Note:** The Checks API only looks for pushes in the repository where the check suite or check +// run were created. Pushes to a branch in a forked repository are not detected and return an empty +// `pull_requests` array. +// Lists check runs for a check suite using its `id`. GitHub Apps must have the `checks:read` +// permission on a private repository or pull access to a public repository to get check runs. OAuth +// Apps and authenticated users must have the `repo` scope to get check runs in a private repository. +// // GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs func (s *Server) handleChecksListForSuiteRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -14865,6 +15908,14 @@ func (s *Server) handleChecksListForSuiteRequest(args [3]string, w http.Response // handleChecksListSuitesForRefRequest handles checks/list-suites-for-ref operation. // +// **Note:** The Checks API only looks for pushes in the repository where the check suite or check +// run were created. Pushes to a branch in a forked repository are not detected and return an empty +// `pull_requests` array and a `null` value for `head_branch`. +// Lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name. GitHub +// Apps must have the `checks:read` permission on a private repository or pull access to a public +// repository to list check suites. OAuth Apps and authenticated users must have the `repo` scope to +// get check suites in a private repository. +// // GET /repos/{owner}/{repo}/commits/{ref}/check-suites func (s *Server) handleChecksListSuitesForRefRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -14965,6 +16016,13 @@ func (s *Server) handleChecksListSuitesForRefRequest(args [3]string, w http.Resp // handleChecksRerequestSuiteRequest handles checks/rerequest-suite operation. // +// Triggers GitHub to rerequest an existing check suite, without pushing new code to a repository. +// This endpoint will trigger the [`check_suite` webhook](https://docs.github. +// com/webhooks/event-payloads/#check_suite) event with the action `rerequested`. When a check suite +// is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared. +// To rerequest a check suite, your GitHub App must have the `checks:read` permission on a private +// repository or pull access to a public repository. +// // POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest func (s *Server) handleChecksRerequestSuiteRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -15061,6 +16119,12 @@ func (s *Server) handleChecksRerequestSuiteRequest(args [3]string, w http.Respon // handleChecksSetSuitesPreferencesRequest handles checks/set-suites-preferences operation. // +// Changes the default automatic flow when creating check suites. By default, a check suite is +// automatically created each time code is pushed to a repository. When you disable the automatic +// creation of check suites, you can manually [Create a check suite](https://docs.github. +// com/rest/reference/checks#create-a-check-suite). You must have admin permissions in the repository +// to set preferences for check suites. +// // PATCH /repos/{owner}/{repo}/check-suites/preferences func (s *Server) handleChecksSetSuitesPreferencesRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -15171,6 +16235,66 @@ func (s *Server) handleChecksSetSuitesPreferencesRequest(args [2]string, w http. // handleCodeScanningDeleteAnalysisRequest handles code-scanning/delete-analysis operation. // +// Deletes a specified code scanning analysis from a repository. For +// private repositories, you must use an access token with the `repo` scope. For public repositories, +// you must use an access token with `public_repo` and `repo:security_events` scopes. +// GitHub Apps must have the `security_events` write permission to use this endpoint. +// You can delete one analysis at a time. +// To delete a series of analyses, start with the most recent analysis and work backwards. +// Conceptually, the process is similar to the undo function in a text editor. +// When you list the analyses for a repository, +// one or more will be identified as deletable in the response: +// ``` +// "deletable": true +// ``` +// An analysis is deletable when it's the most recent in a set of analyses. +// Typically, a repository will have multiple sets of analyses +// for each enabled code scanning tool, +// where a set is determined by a unique combination of analysis values: +// * `ref` +// * `tool` +// * `analysis_key` +// * `environment` +// If you attempt to delete an analysis that is not the most recent in a set, +// you'll get a 400 response with the message: +// ``` +// Analysis specified is not deletable. +// ``` +// The response from a successful `DELETE` operation provides you with +// two alternative URLs for deleting the next analysis in the set +// (see the example default response below). +// Use the `next_analysis_url` URL if you want to avoid accidentally deleting the final analysis +// in the set. This is a useful option if you want to preserve at least one analysis +// for the specified tool in your repository. +// Use the `confirm_delete_url` URL if you are content to remove all analyses for a tool. +// When you delete the last analysis in a set the value of `next_analysis_url` and +// `confirm_delete_url` +// in the 200 response is `null`. +// As an example of the deletion process, +// let's imagine that you added a workflow that configured a particular code scanning tool +// to analyze the code in a repository. This tool has added 15 analyses: +// 10 on the default branch, and another 5 on a topic branch. +// You therefore have two separate sets of analyses for this tool. +// You've now decided that you want to remove all of the analyses for the tool. +// To do this you must make 15 separate deletion requests. +// To start, you must find the deletable analysis for one of the sets, +// step through deleting the analyses in that set, +// and then repeat the process for the second set. +// The procedure therefore consists of a nested loop: +// **Outer loop**: +// * List the analyses for the repository, filtered by tool. +// * Parse this list to find a deletable analysis. If found: +// **Inner loop**: +// * Delete the identified analysis. +// * Parse the response for the value of `confirm_delete_url` and, if found, use this in the next +// iteration. +// The above process assumes that you want to remove all trace of the tool's analyses from the GitHub +// user interface, for the specified repository, and it therefore uses the `confirm_delete_url` value. +// +// Alternatively, you could use the `next_analysis_url` value, which would leave the last analysis +// +// in each set undeleted to avoid removing a tool's analysis entirely. +// // DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id} func (s *Server) handleCodeScanningDeleteAnalysisRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -15268,6 +16392,14 @@ func (s *Server) handleCodeScanningDeleteAnalysisRequest(args [3]string, w http. // handleCodeScanningGetAlertRequest handles code-scanning/get-alert operation. // +// Gets a single code scanning alert. You must use an access token with the `security_events` scope +// to use this endpoint. GitHub Apps must have the `security_events` read permission to use this +// endpoint. +// **Deprecation notice**: +// The instances field is deprecated and will, in future, not be included in the response for this +// endpoint. The example response reflects this change. The same information can now be retrieved via +// a GET request to the URL specified by `instances_url`. +// // GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number} func (s *Server) handleCodeScanningGetAlertRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -15364,6 +16496,26 @@ func (s *Server) handleCodeScanningGetAlertRequest(args [3]string, w http.Respon // handleCodeScanningGetAnalysisRequest handles code-scanning/get-analysis operation. // +// Gets a specified code scanning analysis for a repository. +// You must use an access token with the `security_events` scope to use this endpoint. +// GitHub Apps must have the `security_events` read permission to use this endpoint. +// The default JSON response contains fields that describe the analysis. +// This includes the Git reference and commit SHA to which the analysis relates, +// the datetime of the analysis, the name of the code scanning tool, +// and the number of alerts. +// The `rules_count` field in the default response give the number of rules +// that were run in the analysis. +// For very old analyses this data is not available, +// and `0` is returned in this field. +// If you use the Accept header `application/sarif+json`, +// the response contains the analysis data that was uploaded. +// This is formatted as +// [SARIF version 2.1.0](https://docs.oasis-open.org/sarif/sarif/v2.1.0/cs01/sarif-v2.1.0-cs01.html). +// **Deprecation notice**: +// The `tool_name` field is deprecated and will, in future, not be included in the response for this +// endpoint. The example response reflects this change. The tool name can now be found inside the +// `tool` field. +// // GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id} func (s *Server) handleCodeScanningGetAnalysisRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -15460,6 +16612,13 @@ func (s *Server) handleCodeScanningGetAnalysisRequest(args [3]string, w http.Res // handleCodeScanningGetSarifRequest handles code-scanning/get-sarif operation. // +// Gets information about a SARIF upload, including the status and the URL of the analysis that was +// uploaded so that you can retrieve details of the analysis. For more information, see "[Get a code +// scanning analysis for a +// repository](/rest/reference/code-scanning#get-a-code-scanning-analysis-for-a-repository)." You +// must use an access token with the `security_events` scope to use this endpoint. GitHub Apps must +// have the `security_events` read permission to use this endpoint. +// // GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id} func (s *Server) handleCodeScanningGetSarifRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -15556,6 +16715,10 @@ func (s *Server) handleCodeScanningGetSarifRequest(args [3]string, w http.Respon // handleCodeScanningListAlertInstancesRequest handles code-scanning/list-alert-instances operation. // +// Lists all instances of the specified code scanning alert. You must use an access token with the +// `security_events` scope to use this endpoint. GitHub Apps must have the `security_events` read +// permission to use this endpoint. +// // GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances func (s *Server) handleCodeScanningListAlertInstancesRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -15655,6 +16818,15 @@ func (s *Server) handleCodeScanningListAlertInstancesRequest(args [3]string, w h // handleCodeScanningListAlertsForRepoRequest handles code-scanning/list-alerts-for-repo operation. // +// Lists all open code scanning alerts for the default branch (usually `main` +// or `master`). You must use an access token with the `security_events` scope to use +// this endpoint. GitHub Apps must have the `security_events` read permission to use +// this endpoint. +// The response includes a `most_recent_instance` object. +// This provides details of the most recent instance of this alert +// for the default branch or for the specified Git reference +// (if you used `ref` in the request). +// // GET /repos/{owner}/{repo}/code-scanning/alerts func (s *Server) handleCodeScanningListAlertsForRepoRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -15756,6 +16928,22 @@ func (s *Server) handleCodeScanningListAlertsForRepoRequest(args [2]string, w ht // handleCodeScanningListRecentAnalysesRequest handles code-scanning/list-recent-analyses operation. // +// Lists the details of all code scanning analyses for a repository, +// starting with the most recent. +// The response is paginated and you can use the `page` and `per_page` parameters +// to list the analyses you're interested in. +// By default 30 analyses are listed per page. +// The `rules_count` field in the response give the number of rules +// that were run in the analysis. +// For very old analyses this data is not available, +// and `0` is returned in this field. +// You must use an access token with the `security_events` scope to use this endpoint. +// GitHub Apps must have the `security_events` read permission to use this endpoint. +// **Deprecation notice**: +// The `tool_name` field is deprecated and will, in future, not be included in the response for this +// endpoint. The example response reflects this change. The tool name can now be found inside the +// `tool` field. +// // GET /repos/{owner}/{repo}/code-scanning/analyses func (s *Server) handleCodeScanningListRecentAnalysesRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -15857,6 +17045,10 @@ func (s *Server) handleCodeScanningListRecentAnalysesRequest(args [2]string, w h // handleCodeScanningUpdateAlertRequest handles code-scanning/update-alert operation. // +// Updates the status of a single code scanning alert. You must use an access token with the +// `security_events` scope to use this endpoint. GitHub Apps must have the `security_events` write +// permission to use this endpoint. +// // PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number} func (s *Server) handleCodeScanningUpdateAlertRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -15968,6 +17160,34 @@ func (s *Server) handleCodeScanningUpdateAlertRequest(args [3]string, w http.Res // handleCodeScanningUploadSarifRequest handles code-scanning/upload-sarif operation. // +// Uploads SARIF data containing the results of a code scanning analysis to make the results +// available in a repository. You must use an access token with the `security_events` scope to use +// this endpoint. GitHub Apps must have the `security_events` write permission to use this endpoint. +// There are two places where you can upload code scanning results. +// - If you upload to a pull request, for example `--ref refs/pull/42/merge` or `--ref +// refs/pull/42/head`, then the results appear as alerts in a pull request check. For more +// information, see "[Triaging code scanning alerts in pull +// requests](/code-security/secure-coding/triaging-code-scanning-alerts-in-pull-requests)." +// - If you upload to a branch, for example `--ref refs/heads/my-branch`, then the results appear in +// the **Security** tab for your repository. For more information, see "[Managing code scanning +// alerts for your +// repository](/code-security/secure-coding/managing-code-scanning-alerts-for-your-repository#viewing-the-alerts-for-a-repository)." +// You must compress the SARIF-formatted analysis data that you want to upload, using `gzip`, and +// then encode it as a Base64 format string. For example: +// ``` +// gzip -c analysis-data.sarif | base64 -w0 +// ``` +// SARIF upload supports a maximum of 5000 results per analysis run. Any results over this limit are +// ignored and any SARIF uploads with more than 25,000 results are rejected. Typically, but not +// necessarily, a SARIF file contains a single run of a single tool. If a code scanning tool +// generates too many results, you should update the analysis configuration to run only the most +// important rules or queries. +// The `202 Accepted`, response includes an `id` value. +// You can use this ID to check the status of the upload by using this for the `/sarifs/{sarif_id}` +// endpoint. +// For more information, see "[Get information about a SARIF +// upload](/rest/reference/code-scanning#get-information-about-a-sarif-upload).". +// // POST /repos/{owner}/{repo}/code-scanning/sarifs func (s *Server) handleCodeScanningUploadSarifRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -16078,6 +17298,8 @@ func (s *Server) handleCodeScanningUploadSarifRequest(args [2]string, w http.Res // handleCodesOfConductGetAllCodesOfConductRequest handles codes-of-conduct/get-all-codes-of-conduct operation. // +// Get all codes of conduct. +// // GET /codes_of_conduct func (s *Server) handleCodesOfConductGetAllCodesOfConductRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -16156,6 +17378,8 @@ func (s *Server) handleCodesOfConductGetAllCodesOfConductRequest(args [0]string, // handleCodesOfConductGetConductCodeRequest handles codes-of-conduct/get-conduct-code operation. // +// Get a code of conduct. +// // GET /codes_of_conduct/{key} func (s *Server) handleCodesOfConductGetConductCodeRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -16250,6 +17474,8 @@ func (s *Server) handleCodesOfConductGetConductCodeRequest(args [1]string, w htt // handleEmojisGetRequest handles emojis/get operation. // +// Lists all the emojis available to use on GitHub. +// // GET /emojis func (s *Server) handleEmojisGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -16328,6 +17554,12 @@ func (s *Server) handleEmojisGetRequest(args [0]string, w http.ResponseWriter, r // handleEnterpriseAdminAddOrgAccessToSelfHostedRunnerGroupInEnterpriseRequest handles enterprise-admin/add-org-access-to-self-hosted-runner-group-in-enterprise operation. // +// Adds an organization to the list of selected organizations that can access a self-hosted runner +// group. The runner group must have `visibility` set to `selected`. For more information, see +// "[Create a self-hosted runner group for an +// enterprise](#create-a-self-hosted-runner-group-for-an-enterprise)." +// You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. +// // PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id} func (s *Server) handleEnterpriseAdminAddOrgAccessToSelfHostedRunnerGroupInEnterpriseRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -16424,6 +17656,10 @@ func (s *Server) handleEnterpriseAdminAddOrgAccessToSelfHostedRunnerGroupInEnter // handleEnterpriseAdminAddSelfHostedRunnerToGroupForEnterpriseRequest handles enterprise-admin/add-self-hosted-runner-to-group-for-enterprise operation. // +// Adds a self-hosted runner to a runner group configured in an enterprise. +// You must authenticate using an access token with the `admin:enterprise` +// scope to use this endpoint. +// // PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id} func (s *Server) handleEnterpriseAdminAddSelfHostedRunnerToGroupForEnterpriseRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -16520,6 +17756,15 @@ func (s *Server) handleEnterpriseAdminAddSelfHostedRunnerToGroupForEnterpriseReq // handleEnterpriseAdminCreateRegistrationTokenForEnterpriseRequest handles enterprise-admin/create-registration-token-for-enterprise operation. // +// Returns a token that you can pass to the `config` script. The token expires after one hour. +// You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. +// #### Example using registration token +// Configure your self-hosted runner, replacing `TOKEN` with the registration token provided by this +// endpoint. +// ``` +// ./config.sh --url https://github.com/enterprises/octo-enterprise --token TOKEN +// ```. +// // POST /enterprises/{enterprise}/actions/runners/registration-token func (s *Server) handleEnterpriseAdminCreateRegistrationTokenForEnterpriseRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -16614,6 +17859,17 @@ func (s *Server) handleEnterpriseAdminCreateRegistrationTokenForEnterpriseReques // handleEnterpriseAdminCreateRemoveTokenForEnterpriseRequest handles enterprise-admin/create-remove-token-for-enterprise operation. // +// Returns a token that you can pass to the `config` script to remove a self-hosted runner from an +// enterprise. The token expires after one hour. +// You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. +// #### Example using remove token +// To remove your self-hosted runner from an enterprise, replace `TOKEN` with the remove token +// provided by this +// endpoint. +// ``` +// ./config.sh remove --token TOKEN +// ```. +// // POST /enterprises/{enterprise}/actions/runners/remove-token func (s *Server) handleEnterpriseAdminCreateRemoveTokenForEnterpriseRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -16708,6 +17964,9 @@ func (s *Server) handleEnterpriseAdminCreateRemoveTokenForEnterpriseRequest(args // handleEnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseRequest handles enterprise-admin/create-self-hosted-runner-group-for-enterprise operation. // +// Creates a new self-hosted runner group for an enterprise. +// You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. +// // POST /enterprises/{enterprise}/actions/runner-groups func (s *Server) handleEnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -16817,6 +18076,9 @@ func (s *Server) handleEnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseRe // handleEnterpriseAdminDeleteScimGroupFromEnterpriseRequest handles enterprise-admin/delete-scim-group-from-enterprise operation. // +// **Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to +// change. +// // DELETE /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id} func (s *Server) handleEnterpriseAdminDeleteScimGroupFromEnterpriseRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -16912,6 +18174,10 @@ func (s *Server) handleEnterpriseAdminDeleteScimGroupFromEnterpriseRequest(args // handleEnterpriseAdminDeleteSelfHostedRunnerFromEnterpriseRequest handles enterprise-admin/delete-self-hosted-runner-from-enterprise operation. // +// Forces the removal of a self-hosted runner from an enterprise. You can use this endpoint to +// completely remove the runner when the machine you were using no longer exists. +// You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. +// // DELETE /enterprises/{enterprise}/actions/runners/{runner_id} func (s *Server) handleEnterpriseAdminDeleteSelfHostedRunnerFromEnterpriseRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -17007,6 +18273,9 @@ func (s *Server) handleEnterpriseAdminDeleteSelfHostedRunnerFromEnterpriseReques // handleEnterpriseAdminDeleteSelfHostedRunnerGroupFromEnterpriseRequest handles enterprise-admin/delete-self-hosted-runner-group-from-enterprise operation. // +// Deletes a self-hosted runner group for an enterprise. +// You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. +// // DELETE /enterprises/{enterprise}/actions/runner-groups/{runner_group_id} func (s *Server) handleEnterpriseAdminDeleteSelfHostedRunnerGroupFromEnterpriseRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -17102,6 +18371,9 @@ func (s *Server) handleEnterpriseAdminDeleteSelfHostedRunnerGroupFromEnterpriseR // handleEnterpriseAdminDeleteUserFromEnterpriseRequest handles enterprise-admin/delete-user-from-enterprise operation. // +// **Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to +// change. +// // DELETE /scim/v2/enterprises/{enterprise}/Users/{scim_user_id} func (s *Server) handleEnterpriseAdminDeleteUserFromEnterpriseRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -17197,6 +18469,12 @@ func (s *Server) handleEnterpriseAdminDeleteUserFromEnterpriseRequest(args [2]st // handleEnterpriseAdminDisableSelectedOrganizationGithubActionsEnterpriseRequest handles enterprise-admin/disable-selected-organization-github-actions-enterprise operation. // +// Removes an organization from the list of selected organizations that are enabled for GitHub +// Actions in an enterprise. To use this endpoint, the enterprise permission policy for +// `enabled_organizations` must be configured to `selected`. For more information, see "[Set GitHub +// Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise)." +// You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. +// // DELETE /enterprises/{enterprise}/actions/permissions/organizations/{org_id} func (s *Server) handleEnterpriseAdminDisableSelectedOrganizationGithubActionsEnterpriseRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -17292,6 +18570,12 @@ func (s *Server) handleEnterpriseAdminDisableSelectedOrganizationGithubActionsEn // handleEnterpriseAdminEnableSelectedOrganizationGithubActionsEnterpriseRequest handles enterprise-admin/enable-selected-organization-github-actions-enterprise operation. // +// Adds an organization to the list of selected organizations that are enabled for GitHub Actions in +// an enterprise. To use this endpoint, the enterprise permission policy for `enabled_organizations` +// must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for +// an enterprise](#set-github-actions-permissions-for-an-enterprise)." +// You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. +// // PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id} func (s *Server) handleEnterpriseAdminEnableSelectedOrganizationGithubActionsEnterpriseRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -17387,6 +18671,12 @@ func (s *Server) handleEnterpriseAdminEnableSelectedOrganizationGithubActionsEnt // handleEnterpriseAdminGetAllowedActionsEnterpriseRequest handles enterprise-admin/get-allowed-actions-enterprise operation. // +// Gets the selected actions that are allowed in an enterprise. To use this endpoint, the enterprise +// permission policy for `allowed_actions` must be configured to `selected`. For more information, +// see "[Set GitHub Actions permissions for an +// enterprise](#set-github-actions-permissions-for-an-enterprise)." +// You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. +// // GET /enterprises/{enterprise}/actions/permissions/selected-actions func (s *Server) handleEnterpriseAdminGetAllowedActionsEnterpriseRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -17481,6 +18771,9 @@ func (s *Server) handleEnterpriseAdminGetAllowedActionsEnterpriseRequest(args [1 // handleEnterpriseAdminGetAuditLogRequest handles enterprise-admin/get-audit-log operation. // +// Gets the audit log for an enterprise. To use this endpoint, you must be an enterprise admin, and +// you must use an access token with the `admin:enterprise` scope. +// // GET /enterprises/{enterprise}/audit-log func (s *Server) handleEnterpriseAdminGetAuditLogRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -17582,6 +18875,9 @@ func (s *Server) handleEnterpriseAdminGetAuditLogRequest(args [1]string, w http. // handleEnterpriseAdminGetGithubActionsPermissionsEnterpriseRequest handles enterprise-admin/get-github-actions-permissions-enterprise operation. // +// Gets the GitHub Actions permissions policy for organizations and allowed actions in an enterprise. +// You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. +// // GET /enterprises/{enterprise}/actions/permissions func (s *Server) handleEnterpriseAdminGetGithubActionsPermissionsEnterpriseRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -17676,6 +18972,9 @@ func (s *Server) handleEnterpriseAdminGetGithubActionsPermissionsEnterpriseReque // handleEnterpriseAdminGetProvisioningInformationForEnterpriseGroupRequest handles enterprise-admin/get-provisioning-information-for-enterprise-group operation. // +// **Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to +// change. +// // GET /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id} func (s *Server) handleEnterpriseAdminGetProvisioningInformationForEnterpriseGroupRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -17772,6 +19071,9 @@ func (s *Server) handleEnterpriseAdminGetProvisioningInformationForEnterpriseGro // handleEnterpriseAdminGetProvisioningInformationForEnterpriseUserRequest handles enterprise-admin/get-provisioning-information-for-enterprise-user operation. // +// **Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to +// change. +// // GET /scim/v2/enterprises/{enterprise}/Users/{scim_user_id} func (s *Server) handleEnterpriseAdminGetProvisioningInformationForEnterpriseUserRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -17867,6 +19169,9 @@ func (s *Server) handleEnterpriseAdminGetProvisioningInformationForEnterpriseUse // handleEnterpriseAdminGetSelfHostedRunnerForEnterpriseRequest handles enterprise-admin/get-self-hosted-runner-for-enterprise operation. // +// Gets a specific self-hosted runner configured in an enterprise. +// You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. +// // GET /enterprises/{enterprise}/actions/runners/{runner_id} func (s *Server) handleEnterpriseAdminGetSelfHostedRunnerForEnterpriseRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -17962,6 +19267,9 @@ func (s *Server) handleEnterpriseAdminGetSelfHostedRunnerForEnterpriseRequest(ar // handleEnterpriseAdminGetSelfHostedRunnerGroupForEnterpriseRequest handles enterprise-admin/get-self-hosted-runner-group-for-enterprise operation. // +// Gets a specific self-hosted runner group for an enterprise. +// You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. +// // GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id} func (s *Server) handleEnterpriseAdminGetSelfHostedRunnerGroupForEnterpriseRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -18057,6 +19365,9 @@ func (s *Server) handleEnterpriseAdminGetSelfHostedRunnerGroupForEnterpriseReque // handleEnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterpriseRequest handles enterprise-admin/list-org-access-to-self-hosted-runner-group-in-enterprise operation. // +// Lists the organizations with access to a self-hosted runner group. +// You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. +// // GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations func (s *Server) handleEnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterpriseRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -18154,6 +19465,9 @@ func (s *Server) handleEnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnte // handleEnterpriseAdminListProvisionedGroupsEnterpriseRequest handles enterprise-admin/list-provisioned-groups-enterprise operation. // +// **Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to +// change. +// // GET /scim/v2/enterprises/{enterprise}/Groups func (s *Server) handleEnterpriseAdminListProvisionedGroupsEnterpriseRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -18252,6 +19566,34 @@ func (s *Server) handleEnterpriseAdminListProvisionedGroupsEnterpriseRequest(arg // handleEnterpriseAdminListProvisionedIdentitiesEnterpriseRequest handles enterprise-admin/list-provisioned-identities-enterprise operation. // +// **Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to +// change. +// Retrieves a paginated list of all provisioned enterprise members, including pending invitations. +// When a user with a SAML-provisioned external identity leaves (or is removed from) an enterprise, +// the account's metadata is immediately removed. However, the returned list of user accounts might +// not always match the organization or enterprise member list you see on GitHub. This can happen in +// certain cases where an external identity associated with an organization will not match an +// organization member: +// - When a user with a SCIM-provisioned external identity is removed from an enterprise, the +// account's metadata is preserved to allow the user to re-join the organization in the future. +// - When inviting a user to join an organization, you can expect to see their external identity in +// the results before they accept the invitation, or if the invitation is cancelled (or never +// accepted). +// - When a user is invited over SCIM, an external identity is created that matches with the +// invitee's email address. However, this identity is only linked to a user account when the user +// accepts the invitation by going through SAML SSO. +// The returned list of external identities can include an entry for a `null` user. These are +// unlinked SAML identities that are created when a user goes through the following Single Sign-On +// (SSO) process but does not sign in to their GitHub account after completing SSO: +// 1. The user is granted access by the IdP and is not a member of the GitHub enterprise. +// 1. The user attempts to access the GitHub enterprise and initiates the SAML SSO process, and is +// not currently signed in to their GitHub account. +// 1. After successfully authenticating with the SAML SSO IdP, the `null` external identity entry is +// created and the user is prompted to sign in to their GitHub account: +// - If the user signs in, their GitHub account is linked to this entry. +// - If the user does not sign in (or does not create a new account when prompted), they are not +// added to the GitHub enterprise, and the external identity `null` entry remains in place. +// // GET /scim/v2/enterprises/{enterprise}/Users func (s *Server) handleEnterpriseAdminListProvisionedIdentitiesEnterpriseRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -18349,6 +19691,9 @@ func (s *Server) handleEnterpriseAdminListProvisionedIdentitiesEnterpriseRequest // handleEnterpriseAdminListRunnerApplicationsForEnterpriseRequest handles enterprise-admin/list-runner-applications-for-enterprise operation. // +// Lists binaries for the runner application that you can download and run. +// You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. +// // GET /enterprises/{enterprise}/actions/runners/downloads func (s *Server) handleEnterpriseAdminListRunnerApplicationsForEnterpriseRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -18443,6 +19788,12 @@ func (s *Server) handleEnterpriseAdminListRunnerApplicationsForEnterpriseRequest // handleEnterpriseAdminListSelectedOrganizationsEnabledGithubActionsEnterpriseRequest handles enterprise-admin/list-selected-organizations-enabled-github-actions-enterprise operation. // +// Lists the organizations that are selected to have GitHub Actions enabled in an enterprise. To use +// this endpoint, the enterprise permission policy for `enabled_organizations` must be configured to +// `selected`. For more information, see "[Set GitHub Actions permissions for an +// enterprise](#set-github-actions-permissions-for-an-enterprise)." +// You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. +// // GET /enterprises/{enterprise}/actions/permissions/organizations func (s *Server) handleEnterpriseAdminListSelectedOrganizationsEnabledGithubActionsEnterpriseRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -18539,6 +19890,9 @@ func (s *Server) handleEnterpriseAdminListSelectedOrganizationsEnabledGithubActi // handleEnterpriseAdminListSelfHostedRunnerGroupsForEnterpriseRequest handles enterprise-admin/list-self-hosted-runner-groups-for-enterprise operation. // +// Lists all self-hosted runner groups for an enterprise. +// You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. +// // GET /enterprises/{enterprise}/actions/runner-groups func (s *Server) handleEnterpriseAdminListSelfHostedRunnerGroupsForEnterpriseRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -18635,6 +19989,9 @@ func (s *Server) handleEnterpriseAdminListSelfHostedRunnerGroupsForEnterpriseReq // handleEnterpriseAdminListSelfHostedRunnersForEnterpriseRequest handles enterprise-admin/list-self-hosted-runners-for-enterprise operation. // +// Lists all self-hosted runners configured for an enterprise. +// You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. +// // GET /enterprises/{enterprise}/actions/runners func (s *Server) handleEnterpriseAdminListSelfHostedRunnersForEnterpriseRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -18731,6 +20088,9 @@ func (s *Server) handleEnterpriseAdminListSelfHostedRunnersForEnterpriseRequest( // handleEnterpriseAdminListSelfHostedRunnersInGroupForEnterpriseRequest handles enterprise-admin/list-self-hosted-runners-in-group-for-enterprise operation. // +// Lists the self-hosted runners that are in a specific enterprise group. +// You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. +// // GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners func (s *Server) handleEnterpriseAdminListSelfHostedRunnersInGroupForEnterpriseRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -18828,6 +20188,12 @@ func (s *Server) handleEnterpriseAdminListSelfHostedRunnersInGroupForEnterpriseR // handleEnterpriseAdminProvisionAndInviteEnterpriseGroupRequest handles enterprise-admin/provision-and-invite-enterprise-group operation. // +// **Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to +// change. +// Provision an enterprise group, and invite users to the group. This sends invitation emails to the +// email address of the invited users to join the GitHub organization that the SCIM group corresponds +// to. +// // POST /scim/v2/enterprises/{enterprise}/Groups func (s *Server) handleEnterpriseAdminProvisionAndInviteEnterpriseGroupRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -18937,6 +20303,14 @@ func (s *Server) handleEnterpriseAdminProvisionAndInviteEnterpriseGroupRequest(a // handleEnterpriseAdminProvisionAndInviteEnterpriseUserRequest handles enterprise-admin/provision-and-invite-enterprise-user operation. // +// **Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to +// change. +// Provision enterprise membership for a user, and send organization invitation emails to the email +// address. +// You can optionally include the groups a user will be invited to join. If you do not provide a list +// of `groups`, the user is provisioned for the enterprise, but no organization invitation emails +// will be sent. +// // POST /scim/v2/enterprises/{enterprise}/Users func (s *Server) handleEnterpriseAdminProvisionAndInviteEnterpriseUserRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -19046,6 +20420,12 @@ func (s *Server) handleEnterpriseAdminProvisionAndInviteEnterpriseUserRequest(ar // handleEnterpriseAdminRemoveOrgAccessToSelfHostedRunnerGroupInEnterpriseRequest handles enterprise-admin/remove-org-access-to-self-hosted-runner-group-in-enterprise operation. // +// Removes an organization from the list of selected organizations that can access a self-hosted +// runner group. The runner group must have `visibility` set to `selected`. For more information, see +// "[Create a self-hosted runner group for an +// enterprise](#create-a-self-hosted-runner-group-for-an-enterprise)." +// You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. +// // DELETE /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id} func (s *Server) handleEnterpriseAdminRemoveOrgAccessToSelfHostedRunnerGroupInEnterpriseRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -19142,6 +20522,10 @@ func (s *Server) handleEnterpriseAdminRemoveOrgAccessToSelfHostedRunnerGroupInEn // handleEnterpriseAdminRemoveSelfHostedRunnerFromGroupForEnterpriseRequest handles enterprise-admin/remove-self-hosted-runner-from-group-for-enterprise operation. // +// Removes a self-hosted runner from a group configured in an enterprise. The runner is then returned +// to the default group. +// You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. +// // DELETE /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id} func (s *Server) handleEnterpriseAdminRemoveSelfHostedRunnerFromGroupForEnterpriseRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -19238,6 +20622,12 @@ func (s *Server) handleEnterpriseAdminRemoveSelfHostedRunnerFromGroupForEnterpri // handleEnterpriseAdminSetAllowedActionsEnterpriseRequest handles enterprise-admin/set-allowed-actions-enterprise operation. // +// Sets the actions that are allowed in an enterprise. To use this endpoint, the enterprise +// permission policy for `allowed_actions` must be configured to `selected`. For more information, +// see "[Set GitHub Actions permissions for an +// enterprise](#set-github-actions-permissions-for-an-enterprise)." +// You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. +// // PUT /enterprises/{enterprise}/actions/permissions/selected-actions func (s *Server) handleEnterpriseAdminSetAllowedActionsEnterpriseRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -19347,6 +20737,9 @@ func (s *Server) handleEnterpriseAdminSetAllowedActionsEnterpriseRequest(args [1 // handleEnterpriseAdminSetGithubActionsPermissionsEnterpriseRequest handles enterprise-admin/set-github-actions-permissions-enterprise operation. // +// Sets the GitHub Actions permissions policy for organizations and allowed actions in an enterprise. +// You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. +// // PUT /enterprises/{enterprise}/actions/permissions func (s *Server) handleEnterpriseAdminSetGithubActionsPermissionsEnterpriseRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -19456,6 +20849,14 @@ func (s *Server) handleEnterpriseAdminSetGithubActionsPermissionsEnterpriseReque // handleEnterpriseAdminSetInformationForProvisionedEnterpriseGroupRequest handles enterprise-admin/set-information-for-provisioned-enterprise-group operation. // +// **Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to +// change. +// Replaces an existing provisioned group’s information. You must provide all the information +// required for the group as if you were provisioning it for the first time. Any existing group +// information that you don't provide will be removed, including group membership. If you want to +// only update a specific attribute, use the [Update an attribute for a SCIM enterprise +// group](#update-an-attribute-for-a-scim-enterprise-group) endpoint instead. +// // PUT /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id} func (s *Server) handleEnterpriseAdminSetInformationForProvisionedEnterpriseGroupRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -19566,6 +20967,17 @@ func (s *Server) handleEnterpriseAdminSetInformationForProvisionedEnterpriseGrou // handleEnterpriseAdminSetInformationForProvisionedEnterpriseUserRequest handles enterprise-admin/set-information-for-provisioned-enterprise-user operation. // +// **Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to +// change. +// Replaces an existing provisioned user's information. You must provide all the information required +// for the user as if you were provisioning them for the first time. Any existing user information +// that you don't provide will be removed. If you want to only update a specific attribute, use the +// [Update an attribute for a SCIM user](#update-an-attribute-for-an-enterprise-scim-user) endpoint +// instead. +// You must at least provide the required values for the user: `userName`, `name`, and `emails`. +// **Warning:** Setting `active: false` removes the user from the enterprise, deletes the external +// identity, and deletes the associated `{scim_user_id}`. +// // PUT /scim/v2/enterprises/{enterprise}/Users/{scim_user_id} func (s *Server) handleEnterpriseAdminSetInformationForProvisionedEnterpriseUserRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -19676,6 +21088,10 @@ func (s *Server) handleEnterpriseAdminSetInformationForProvisionedEnterpriseUser // handleEnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterpriseRequest handles enterprise-admin/set-org-access-to-self-hosted-runner-group-in-enterprise operation. // +// Replaces the list of organizations that have access to a self-hosted runner configured in an +// enterprise. +// You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. +// // PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations func (s *Server) handleEnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterpriseRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -19786,6 +21202,12 @@ func (s *Server) handleEnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnter // handleEnterpriseAdminSetSelectedOrganizationsEnabledGithubActionsEnterpriseRequest handles enterprise-admin/set-selected-organizations-enabled-github-actions-enterprise operation. // +// Replaces the list of selected organizations that are enabled for GitHub Actions in an enterprise. +// To use this endpoint, the enterprise permission policy for `enabled_organizations` must be +// configured to `selected`. For more information, see "[Set GitHub Actions permissions for an +// enterprise](#set-github-actions-permissions-for-an-enterprise)." +// You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. +// // PUT /enterprises/{enterprise}/actions/permissions/organizations func (s *Server) handleEnterpriseAdminSetSelectedOrganizationsEnabledGithubActionsEnterpriseRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -19895,6 +21317,9 @@ func (s *Server) handleEnterpriseAdminSetSelectedOrganizationsEnabledGithubActio // handleEnterpriseAdminSetSelfHostedRunnersInGroupForEnterpriseRequest handles enterprise-admin/set-self-hosted-runners-in-group-for-enterprise operation. // +// Replaces the list of self-hosted runners that are part of an enterprise runner group. +// You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. +// // PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners func (s *Server) handleEnterpriseAdminSetSelfHostedRunnersInGroupForEnterpriseRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -20005,6 +21430,13 @@ func (s *Server) handleEnterpriseAdminSetSelfHostedRunnersInGroupForEnterpriseRe // handleEnterpriseAdminUpdateAttributeForEnterpriseGroupRequest handles enterprise-admin/update-attribute-for-enterprise-group operation. // +// **Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to +// change. +// Allows you to change a provisioned group’s individual attributes. To change a group’s values, +// you must provide a specific Operations JSON format that contains at least one of the add, remove, +// or replace operations. For examples and more information on the SCIM operations format, see the +// [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.5.2). +// // PATCH /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id} func (s *Server) handleEnterpriseAdminUpdateAttributeForEnterpriseGroupRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -20115,6 +21547,30 @@ func (s *Server) handleEnterpriseAdminUpdateAttributeForEnterpriseGroupRequest(a // handleEnterpriseAdminUpdateAttributeForEnterpriseUserRequest handles enterprise-admin/update-attribute-for-enterprise-user operation. // +// **Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to +// change. +// Allows you to change a provisioned user's individual attributes. To change a user's values, you +// must provide a specific `Operations` JSON format that contains at least one of the `add`, `remove`, +// +// or `replace` operations. For examples and more information on the SCIM operations format, see the +// +// [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.5.2). +// **Note:** Complicated SCIM `path` selectors that include filters are not supported. For example, a +// `path` selector defined as `"path": "emails[type eq \"work\"]"` will not work. +// **Warning:** If you set `active:false` using the `replace` operation (as shown in the JSON example +// below), it removes the user from the enterprise, deletes the external identity, and deletes the +// associated `:scim_user_id`. +// ``` +// { +// "Operations":[{ +// "op":"replace", +// "value":{ +// "active":false +// } +// }] +// } +// ```. +// // PATCH /scim/v2/enterprises/{enterprise}/Users/{scim_user_id} func (s *Server) handleEnterpriseAdminUpdateAttributeForEnterpriseUserRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -20225,6 +21681,9 @@ func (s *Server) handleEnterpriseAdminUpdateAttributeForEnterpriseUserRequest(ar // handleEnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseRequest handles enterprise-admin/update-self-hosted-runner-group-for-enterprise operation. // +// Updates the `name` and `visibility` of a self-hosted runner group in an enterprise. +// You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. +// // PATCH /enterprises/{enterprise}/actions/runner-groups/{runner_group_id} func (s *Server) handleEnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -20335,6 +21794,8 @@ func (s *Server) handleEnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseRe // handleGistsCheckIsStarredRequest handles gists/check-is-starred operation. // +// Check if a gist is starred. +// // GET /gists/{gist_id}/star func (s *Server) handleGistsCheckIsStarredRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -20429,6 +21890,10 @@ func (s *Server) handleGistsCheckIsStarredRequest(args [1]string, w http.Respons // handleGistsCreateRequest handles gists/create operation. // +// Allows you to add a new gist with one or more files. +// **Note:** Don't name your files "gistfile" with a numerical suffix. This is the format of the +// automatic naming scheme that Gist uses internally. +// // POST /gists func (s *Server) handleGistsCreateRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -20526,6 +21991,8 @@ func (s *Server) handleGistsCreateRequest(args [0]string, w http.ResponseWriter, // handleGistsCreateCommentRequest handles gists/create-comment operation. // +// Create a gist comment. +// // POST /gists/{gist_id}/comments func (s *Server) handleGistsCreateCommentRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -20635,6 +22102,8 @@ func (s *Server) handleGistsCreateCommentRequest(args [1]string, w http.Response // handleGistsDeleteRequest handles gists/delete operation. // +// Delete a gist. +// // DELETE /gists/{gist_id} func (s *Server) handleGistsDeleteRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -20729,6 +22198,8 @@ func (s *Server) handleGistsDeleteRequest(args [1]string, w http.ResponseWriter, // handleGistsDeleteCommentRequest handles gists/delete-comment operation. // +// Delete a gist comment. +// // DELETE /gists/{gist_id}/comments/{comment_id} func (s *Server) handleGistsDeleteCommentRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -20824,6 +22295,8 @@ func (s *Server) handleGistsDeleteCommentRequest(args [2]string, w http.Response // handleGistsForkRequest handles gists/fork operation. // +// **Note**: This was previously `/gists/:gist_id/fork`. +// // POST /gists/{gist_id}/forks func (s *Server) handleGistsForkRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -20918,6 +22391,8 @@ func (s *Server) handleGistsForkRequest(args [1]string, w http.ResponseWriter, r // handleGistsGetRequest handles gists/get operation. // +// Get a gist. +// // GET /gists/{gist_id} func (s *Server) handleGistsGetRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -21012,6 +22487,8 @@ func (s *Server) handleGistsGetRequest(args [1]string, w http.ResponseWriter, r // handleGistsGetCommentRequest handles gists/get-comment operation. // +// Get a gist comment. +// // GET /gists/{gist_id}/comments/{comment_id} func (s *Server) handleGistsGetCommentRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -21107,6 +22584,8 @@ func (s *Server) handleGistsGetCommentRequest(args [2]string, w http.ResponseWri // handleGistsGetRevisionRequest handles gists/get-revision operation. // +// Get a gist revision. +// // GET /gists/{gist_id}/{sha} func (s *Server) handleGistsGetRevisionRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -21202,6 +22681,9 @@ func (s *Server) handleGistsGetRevisionRequest(args [2]string, w http.ResponseWr // handleGistsListRequest handles gists/list operation. // +// Lists the authenticated user's gists or if called anonymously, this endpoint returns all public +// gists:. +// // GET /gists func (s *Server) handleGistsListRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -21298,6 +22780,8 @@ func (s *Server) handleGistsListRequest(args [0]string, w http.ResponseWriter, r // handleGistsListCommentsRequest handles gists/list-comments operation. // +// List gist comments. +// // GET /gists/{gist_id}/comments func (s *Server) handleGistsListCommentsRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -21394,6 +22878,8 @@ func (s *Server) handleGistsListCommentsRequest(args [1]string, w http.ResponseW // handleGistsListCommitsRequest handles gists/list-commits operation. // +// List gist commits. +// // GET /gists/{gist_id}/commits func (s *Server) handleGistsListCommitsRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -21490,6 +22976,8 @@ func (s *Server) handleGistsListCommitsRequest(args [1]string, w http.ResponseWr // handleGistsListForUserRequest handles gists/list-for-user operation. // +// Lists public gists for the specified user:. +// // GET /users/{username}/gists func (s *Server) handleGistsListForUserRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -21587,6 +23075,8 @@ func (s *Server) handleGistsListForUserRequest(args [1]string, w http.ResponseWr // handleGistsListForksRequest handles gists/list-forks operation. // +// List gist forks. +// // GET /gists/{gist_id}/forks func (s *Server) handleGistsListForksRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -21683,6 +23173,11 @@ func (s *Server) handleGistsListForksRequest(args [1]string, w http.ResponseWrit // handleGistsListPublicRequest handles gists/list-public operation. // +// List public gists sorted by most recently updated to least recently updated. +// Note: With [pagination](https://docs.github. +// com/rest/overview/resources-in-the-rest-api#pagination), you can fetch up to 3000 gists. For +// example, you can fetch 100 pages with 30 gists per page or 30 pages with 100 gists per page. +// // GET /gists/public func (s *Server) handleGistsListPublicRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -21779,6 +23274,8 @@ func (s *Server) handleGistsListPublicRequest(args [0]string, w http.ResponseWri // handleGistsListStarredRequest handles gists/list-starred operation. // +// List the authenticated user's starred gists:. +// // GET /gists/starred func (s *Server) handleGistsListStarredRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -21875,6 +23372,10 @@ func (s *Server) handleGistsListStarredRequest(args [0]string, w http.ResponseWr // handleGistsStarRequest handles gists/star operation. // +// Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more +// information, see "[HTTP verbs](https://docs.github. +// com/rest/overview/resources-in-the-rest-api#http-verbs).". +// // PUT /gists/{gist_id}/star func (s *Server) handleGistsStarRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -21969,6 +23470,8 @@ func (s *Server) handleGistsStarRequest(args [1]string, w http.ResponseWriter, r // handleGistsUnstarRequest handles gists/unstar operation. // +// Unstar a gist. +// // DELETE /gists/{gist_id}/star func (s *Server) handleGistsUnstarRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -22063,6 +23566,8 @@ func (s *Server) handleGistsUnstarRequest(args [1]string, w http.ResponseWriter, // handleGistsUpdateCommentRequest handles gists/update-comment operation. // +// Update a gist comment. +// // PATCH /gists/{gist_id}/comments/{comment_id} func (s *Server) handleGistsUpdateCommentRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -22173,6 +23678,8 @@ func (s *Server) handleGistsUpdateCommentRequest(args [2]string, w http.Response // handleGitCreateBlobRequest handles git/create-blob operation. // +// Create a blob. +// // POST /repos/{owner}/{repo}/git/blobs func (s *Server) handleGitCreateBlobRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -22283,6 +23790,41 @@ func (s *Server) handleGitCreateBlobRequest(args [2]string, w http.ResponseWrite // handleGitCreateCommitRequest handles git/create-commit operation. // +// Creates a new Git [commit object](https://git-scm. +// com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects). +// **Signature verification object** +// The response will include a `verification` object that describes the result of verifying the +// commit's signature. The following fields are included in the `verification` object: +// | Name | Type | Description | +// | ---- | ---- | ----------- | +// | `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be +// verified. | +// | `reason` | `string` | The reason for verified value. Possible values and their meanings are +// enumerated in table below. | +// | `signature` | `string` | The signature that was extracted from the commit. | +// | `payload` | `string` | The value that was signed. | +// These are the possible values for `reason` in the `verification` object: +// | Value | Description | +// | ----- | ----------- | +// | `expired_key` | The key that made the signature is expired. | +// | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the +// signature. | +// | `gpgverify_error` | There was an error communicating with the signature verification service. | +// | `gpgverify_unavailable` | The signature verification service is currently unavailable. | +// | `unsigned` | The object does not include a signature. | +// | `unknown_signature_type` | A non-PGP signature was found in the commit. | +// | `no_user` | No user was associated with the `committer` email address in the commit. | +// | `unverified_email` | The `committer` email address in the commit was associated with a user, but +// the email address is not verified on her/his account. | +// | `bad_email` | The `committer` email address in the commit is not included in the identities of +// the PGP key that made the signature. | +// | `unknown_key` | The key that made the signature has not been registered with any user's account. +// | +// | `malformed_signature` | There was an error parsing the signature. | +// | `invalid` | The signature could not be cryptographically verified using the key whose key-id was +// found in the signature. | +// | `valid` | None of the above errors applied, so the signature is considered to be verified. |. +// // POST /repos/{owner}/{repo}/git/commits func (s *Server) handleGitCreateCommitRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -22393,6 +23935,10 @@ func (s *Server) handleGitCreateCommitRequest(args [2]string, w http.ResponseWri // handleGitCreateRefRequest handles git/create-ref operation. // +// Creates a reference for your repository. You are unable to create new references for empty +// repositories, even if the commit SHA-1 hash used exists. Empty repositories are repositories +// without branches. +// // POST /repos/{owner}/{repo}/git/refs func (s *Server) handleGitCreateRefRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -22503,6 +24049,44 @@ func (s *Server) handleGitCreateRefRequest(args [2]string, w http.ResponseWriter // handleGitCreateTagRequest handles git/create-tag operation. // +// Note that creating a tag object does not create the reference that makes a tag in Git. If you want +// to create an annotated tag in Git, you have to do this call to create the tag object, and then +// [create](https://docs.github.com/rest/reference/git#create-a-reference) the `refs/tags/[tag]` +// reference. If you want to create a lightweight tag, you only have to [create](https://docs.github. +// com/rest/reference/git#create-a-reference) the tag reference - this call would be unnecessary. +// **Signature verification object** +// The response will include a `verification` object that describes the result of verifying the +// commit's signature. The following fields are included in the `verification` object: +// | Name | Type | Description | +// | ---- | ---- | ----------- | +// | `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be +// verified. | +// | `reason` | `string` | The reason for verified value. Possible values and their meanings are +// enumerated in table below. | +// | `signature` | `string` | The signature that was extracted from the commit. | +// | `payload` | `string` | The value that was signed. | +// These are the possible values for `reason` in the `verification` object: +// | Value | Description | +// | ----- | ----------- | +// | `expired_key` | The key that made the signature is expired. | +// | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the +// signature. | +// | `gpgverify_error` | There was an error communicating with the signature verification service. | +// | `gpgverify_unavailable` | The signature verification service is currently unavailable. | +// | `unsigned` | The object does not include a signature. | +// | `unknown_signature_type` | A non-PGP signature was found in the commit. | +// | `no_user` | No user was associated with the `committer` email address in the commit. | +// | `unverified_email` | The `committer` email address in the commit was associated with a user, but +// the email address is not verified on her/his account. | +// | `bad_email` | The `committer` email address in the commit is not included in the identities of +// the PGP key that made the signature. | +// | `unknown_key` | The key that made the signature has not been registered with any user's account. +// | +// | `malformed_signature` | There was an error parsing the signature. | +// | `invalid` | The signature could not be cryptographically verified using the key whose key-id was +// found in the signature. | +// | `valid` | None of the above errors applied, so the signature is considered to be verified. |. +// // POST /repos/{owner}/{repo}/git/tags func (s *Server) handleGitCreateTagRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -22613,6 +24197,14 @@ func (s *Server) handleGitCreateTagRequest(args [2]string, w http.ResponseWriter // handleGitCreateTreeRequest handles git/create-tree operation. // +// The tree creation API accepts nested entries. If you specify both a tree and a nested path +// modifying that tree, this endpoint will overwrite the contents of the tree with the new path +// contents, and create a new tree structure. +// If you use this endpoint to add, delete, or modify the file contents in a tree, you will need to +// commit the tree and then update a branch to point to the commit. For more information see "[Create +// a commit](https://docs.github.com/rest/reference/git#create-a-commit)" and "[Update a +// reference](https://docs.github.com/rest/reference/git#update-a-reference).". +// // POST /repos/{owner}/{repo}/git/trees func (s *Server) handleGitCreateTreeRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -22723,6 +24315,8 @@ func (s *Server) handleGitCreateTreeRequest(args [2]string, w http.ResponseWrite // handleGitDeleteRefRequest handles git/delete-ref operation. // +// Delete a reference. +// // DELETE /repos/{owner}/{repo}/git/refs/{ref} func (s *Server) handleGitDeleteRefRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -22819,6 +24413,9 @@ func (s *Server) handleGitDeleteRefRequest(args [3]string, w http.ResponseWriter // handleGitGetBlobRequest handles git/get-blob operation. // +// The `content` in the response will always be Base64 encoded. +// _Note_: This API supports blobs up to 100 megabytes in size. +// // GET /repos/{owner}/{repo}/git/blobs/{file_sha} func (s *Server) handleGitGetBlobRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -22915,6 +24512,41 @@ func (s *Server) handleGitGetBlobRequest(args [3]string, w http.ResponseWriter, // handleGitGetCommitRequest handles git/get-commit operation. // +// Gets a Git [commit object](https://git-scm. +// com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects). +// **Signature verification object** +// The response will include a `verification` object that describes the result of verifying the +// commit's signature. The following fields are included in the `verification` object: +// | Name | Type | Description | +// | ---- | ---- | ----------- | +// | `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be +// verified. | +// | `reason` | `string` | The reason for verified value. Possible values and their meanings are +// enumerated in table below. | +// | `signature` | `string` | The signature that was extracted from the commit. | +// | `payload` | `string` | The value that was signed. | +// These are the possible values for `reason` in the `verification` object: +// | Value | Description | +// | ----- | ----------- | +// | `expired_key` | The key that made the signature is expired. | +// | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the +// signature. | +// | `gpgverify_error` | There was an error communicating with the signature verification service. | +// | `gpgverify_unavailable` | The signature verification service is currently unavailable. | +// | `unsigned` | The object does not include a signature. | +// | `unknown_signature_type` | A non-PGP signature was found in the commit. | +// | `no_user` | No user was associated with the `committer` email address in the commit. | +// | `unverified_email` | The `committer` email address in the commit was associated with a user, but +// the email address is not verified on her/his account. | +// | `bad_email` | The `committer` email address in the commit is not included in the identities of +// the PGP key that made the signature. | +// | `unknown_key` | The key that made the signature has not been registered with any user's account. +// | +// | `malformed_signature` | There was an error parsing the signature. | +// | `invalid` | The signature could not be cryptographically verified using the key whose key-id was +// found in the signature. | +// | `valid` | None of the above errors applied, so the signature is considered to be verified. |. +// // GET /repos/{owner}/{repo}/git/commits/{commit_sha} func (s *Server) handleGitGetCommitRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -23011,6 +24643,15 @@ func (s *Server) handleGitGetCommitRequest(args [3]string, w http.ResponseWriter // handleGitGetRefRequest handles git/get-ref operation. // +// Returns a single reference from your Git database. The `:ref` in the URL must be formatted as +// `heads/` for branches and `tags/` for tags. If the `:ref` doesn't match an +// existing ref, a `404` is returned. +// **Note:** You need to explicitly [request a pull request](https://docs.github. +// com/rest/reference/pulls#get-a-pull-request) to trigger a test merge commit, which checks the +// mergeability of pull requests. For more information, see "[Checking mergeability of pull +// requests](https://docs.github. +// com/rest/guides/getting-started-with-the-git-database-api#checking-mergeability-of-pull-requests)". +// // GET /repos/{owner}/{repo}/git/ref/{ref} func (s *Server) handleGitGetRefRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -23107,6 +24748,39 @@ func (s *Server) handleGitGetRefRequest(args [3]string, w http.ResponseWriter, r // handleGitGetTagRequest handles git/get-tag operation. // +// **Signature verification object** +// The response will include a `verification` object that describes the result of verifying the +// commit's signature. The following fields are included in the `verification` object: +// | Name | Type | Description | +// | ---- | ---- | ----------- | +// | `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be +// verified. | +// | `reason` | `string` | The reason for verified value. Possible values and their meanings are +// enumerated in table below. | +// | `signature` | `string` | The signature that was extracted from the commit. | +// | `payload` | `string` | The value that was signed. | +// These are the possible values for `reason` in the `verification` object: +// | Value | Description | +// | ----- | ----------- | +// | `expired_key` | The key that made the signature is expired. | +// | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the +// signature. | +// | `gpgverify_error` | There was an error communicating with the signature verification service. | +// | `gpgverify_unavailable` | The signature verification service is currently unavailable. | +// | `unsigned` | The object does not include a signature. | +// | `unknown_signature_type` | A non-PGP signature was found in the commit. | +// | `no_user` | No user was associated with the `committer` email address in the commit. | +// | `unverified_email` | The `committer` email address in the commit was associated with a user, but +// the email address is not verified on her/his account. | +// | `bad_email` | The `committer` email address in the commit is not included in the identities of +// the PGP key that made the signature. | +// | `unknown_key` | The key that made the signature has not been registered with any user's account. +// | +// | `malformed_signature` | There was an error parsing the signature. | +// | `invalid` | The signature could not be cryptographically verified using the key whose key-id was +// found in the signature. | +// | `valid` | None of the above errors applied, so the signature is considered to be verified. |. +// // GET /repos/{owner}/{repo}/git/tags/{tag_sha} func (s *Server) handleGitGetTagRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -23203,6 +24877,11 @@ func (s *Server) handleGitGetTagRequest(args [3]string, w http.ResponseWriter, r // handleGitGetTreeRequest handles git/get-tree operation. // +// Returns a single tree using the SHA1 value for that tree. +// If `truncated` is `true` in the response then the number of items in the `tree` array exceeded our +// maximum limit. If you need to fetch more items, use the non-recursive method of fetching trees, +// and fetch one sub-tree at a time. +// // GET /repos/{owner}/{repo}/git/trees/{tree_sha} func (s *Server) handleGitGetTreeRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -23300,6 +24979,22 @@ func (s *Server) handleGitGetTreeRequest(args [3]string, w http.ResponseWriter, // handleGitListMatchingRefsRequest handles git/list-matching-refs operation. // +// Returns an array of references from your Git database that match the supplied name. The `:ref` in +// the URL must be formatted as `heads/` for branches and `tags/` for tags. If +// the `:ref` doesn't exist in the repository, but existing refs start with `:ref`, they will be +// returned as an array. +// When you use this endpoint without providing a `:ref`, it will return an array of all the +// references from your Git database, including notes and stashes if they exist on the server. +// Anything in the namespace is returned, not just `heads` and `tags`. +// **Note:** You need to explicitly [request a pull request](https://docs.github. +// com/rest/reference/pulls#get-a-pull-request) to trigger a test merge commit, which checks the +// mergeability of pull requests. For more information, see "[Checking mergeability of pull +// requests](https://docs.github. +// com/rest/guides/getting-started-with-the-git-database-api#checking-mergeability-of-pull-requests)". +// If you request matching references for a branch named `feature` but the branch `feature` doesn't +// exist, the response can still include other matching head refs that start with the word `feature`, +// such as `featureA` and `featureB`. +// // GET /repos/{owner}/{repo}/git/matching-refs/{ref} func (s *Server) handleGitListMatchingRefsRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -23398,6 +25093,8 @@ func (s *Server) handleGitListMatchingRefsRequest(args [3]string, w http.Respons // handleGitUpdateRefRequest handles git/update-ref operation. // +// Update a reference. +// // PATCH /repos/{owner}/{repo}/git/refs/{ref} func (s *Server) handleGitUpdateRefRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -23509,6 +25206,9 @@ func (s *Server) handleGitUpdateRefRequest(args [3]string, w http.ResponseWriter // handleGitignoreGetAllTemplatesRequest handles gitignore/get-all-templates operation. // +// List all templates available to pass as an option when [creating a repository](https://docs.github. +// com/rest/reference/repos#create-a-repository-for-the-authenticated-user). +// // GET /gitignore/templates func (s *Server) handleGitignoreGetAllTemplatesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -23587,6 +25287,10 @@ func (s *Server) handleGitignoreGetAllTemplatesRequest(args [0]string, w http.Re // handleGitignoreGetTemplateRequest handles gitignore/get-template operation. // +// The API also allows fetching the source of a single template. +// Use the raw [media type](https://docs.github.com/rest/overview/media-types/) to get the raw +// contents. +// // GET /gitignore/templates/{name} func (s *Server) handleGitignoreGetTemplateRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -23681,6 +25385,8 @@ func (s *Server) handleGitignoreGetTemplateRequest(args [1]string, w http.Respon // handleInteractionsRemoveRestrictionsForAuthenticatedUserRequest handles interactions/remove-restrictions-for-authenticated-user operation. // +// Removes any interaction restrictions from your public repositories. +// // DELETE /user/interaction-limits func (s *Server) handleInteractionsRemoveRestrictionsForAuthenticatedUserRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -23759,6 +25465,9 @@ func (s *Server) handleInteractionsRemoveRestrictionsForAuthenticatedUserRequest // handleInteractionsRemoveRestrictionsForOrgRequest handles interactions/remove-restrictions-for-org operation. // +// Removes all interaction restrictions from public repositories in the given organization. You must +// be an organization owner to remove restrictions. +// // DELETE /orgs/{org}/interaction-limits func (s *Server) handleInteractionsRemoveRestrictionsForOrgRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -23853,6 +25562,11 @@ func (s *Server) handleInteractionsRemoveRestrictionsForOrgRequest(args [1]strin // handleInteractionsRemoveRestrictionsForRepoRequest handles interactions/remove-restrictions-for-repo operation. // +// Removes all interaction restrictions from the given repository. You must have owner or admin +// access to remove restrictions. If the interaction limit is set for the user or organization that +// owns this repository, you will receive a `409 Conflict` response and will not be able to use this +// endpoint to change the interaction limit for a single repository. +// // DELETE /repos/{owner}/{repo}/interaction-limits func (s *Server) handleInteractionsRemoveRestrictionsForRepoRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -23948,6 +25662,10 @@ func (s *Server) handleInteractionsRemoveRestrictionsForRepoRequest(args [2]stri // handleInteractionsSetRestrictionsForAuthenticatedUserRequest handles interactions/set-restrictions-for-authenticated-user operation. // +// Temporarily restricts which type of GitHub user can interact with your public repositories. +// Setting the interaction limit at the user level will overwrite any interaction limits that are set +// for individual repositories owned by the user. +// // PUT /user/interaction-limits func (s *Server) handleInteractionsSetRestrictionsForAuthenticatedUserRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -24045,6 +25763,11 @@ func (s *Server) handleInteractionsSetRestrictionsForAuthenticatedUserRequest(ar // handleInteractionsSetRestrictionsForOrgRequest handles interactions/set-restrictions-for-org operation. // +// Temporarily restricts interactions to a certain type of GitHub user in any public repository in +// the given organization. You must be an organization owner to set these restrictions. Setting the +// interaction limit at the organization level will overwrite any interaction limits that are set for +// individual repositories owned by the organization. +// // PUT /orgs/{org}/interaction-limits func (s *Server) handleInteractionsSetRestrictionsForOrgRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -24154,6 +25877,11 @@ func (s *Server) handleInteractionsSetRestrictionsForOrgRequest(args [1]string, // handleInteractionsSetRestrictionsForRepoRequest handles interactions/set-restrictions-for-repo operation. // +// Temporarily restricts interactions to a certain type of GitHub user within the given repository. +// You must have owner or admin access to set these restrictions. If an interaction limit is set for +// the user or organization that owns this repository, you will receive a `409 Conflict` response and +// will not be able to use this endpoint to change the interaction limit for a single repository. +// // PUT /repos/{owner}/{repo}/interaction-limits func (s *Server) handleInteractionsSetRestrictionsForRepoRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -24264,6 +25992,8 @@ func (s *Server) handleInteractionsSetRestrictionsForRepoRequest(args [2]string, // handleIssuesAddAssigneesRequest handles issues/add-assignees operation. // +// Adds up to 10 assignees to an issue. Users already assigned to an issue are not replaced. +// // POST /repos/{owner}/{repo}/issues/{issue_number}/assignees func (s *Server) handleIssuesAddAssigneesRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -24375,6 +26105,11 @@ func (s *Server) handleIssuesAddAssigneesRequest(args [3]string, w http.Response // handleIssuesCheckUserCanBeAssignedRequest handles issues/check-user-can-be-assigned operation. // +// Checks if a user has permission to be assigned to an issue in this repository. +// If the `assignee` can be assigned to issues in the repository, a `204` header with no content is +// returned. +// Otherwise a `404` status code is returned. +// // GET /repos/{owner}/{repo}/assignees/{assignee} func (s *Server) handleIssuesCheckUserCanBeAssignedRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -24471,6 +26206,17 @@ func (s *Server) handleIssuesCheckUserCanBeAssignedRequest(args [3]string, w htt // handleIssuesCreateRequest handles issues/create operation. // +// Any user with pull access to a repository can create an issue. If [issues are disabled in the +// repository](https://help.github.com/articles/disabling-issues/), the API returns a `410 Gone` +// status. +// This endpoint triggers [notifications](https://docs.github. +// com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating +// content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary +// rate limits](https://docs.github. +// com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary +// rate limits](https://docs.github. +// com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)" for details. +// // POST /repos/{owner}/{repo}/issues func (s *Server) handleIssuesCreateRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -24581,6 +26327,14 @@ func (s *Server) handleIssuesCreateRequest(args [2]string, w http.ResponseWriter // handleIssuesCreateCommentRequest handles issues/create-comment operation. // +// This endpoint triggers [notifications](https://docs.github. +// com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating +// content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary +// rate limits](https://docs.github. +// com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary +// rate limits](https://docs.github. +// com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)" for details. +// // POST /repos/{owner}/{repo}/issues/{issue_number}/comments func (s *Server) handleIssuesCreateCommentRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -24692,6 +26446,8 @@ func (s *Server) handleIssuesCreateCommentRequest(args [3]string, w http.Respons // handleIssuesCreateLabelRequest handles issues/create-label operation. // +// Create a label. +// // POST /repos/{owner}/{repo}/labels func (s *Server) handleIssuesCreateLabelRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -24802,6 +26558,8 @@ func (s *Server) handleIssuesCreateLabelRequest(args [2]string, w http.ResponseW // handleIssuesCreateMilestoneRequest handles issues/create-milestone operation. // +// Create a milestone. +// // POST /repos/{owner}/{repo}/milestones func (s *Server) handleIssuesCreateMilestoneRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -24912,6 +26670,8 @@ func (s *Server) handleIssuesCreateMilestoneRequest(args [2]string, w http.Respo // handleIssuesDeleteCommentRequest handles issues/delete-comment operation. // +// Delete an issue comment. +// // DELETE /repos/{owner}/{repo}/issues/comments/{comment_id} func (s *Server) handleIssuesDeleteCommentRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -25008,6 +26768,8 @@ func (s *Server) handleIssuesDeleteCommentRequest(args [3]string, w http.Respons // handleIssuesDeleteLabelRequest handles issues/delete-label operation. // +// Delete a label. +// // DELETE /repos/{owner}/{repo}/labels/{name} func (s *Server) handleIssuesDeleteLabelRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -25104,6 +26866,8 @@ func (s *Server) handleIssuesDeleteLabelRequest(args [3]string, w http.ResponseW // handleIssuesDeleteMilestoneRequest handles issues/delete-milestone operation. // +// Delete a milestone. +// // DELETE /repos/{owner}/{repo}/milestones/{milestone_number} func (s *Server) handleIssuesDeleteMilestoneRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -25200,6 +26964,26 @@ func (s *Server) handleIssuesDeleteMilestoneRequest(args [3]string, w http.Respo // handleIssuesGetRequest handles issues/get operation. // +// The API returns a [`301 Moved Permanently` status](https://docs.github. +// com/rest/overview/resources-in-the-rest-api#http-redirects-redirects) if the issue was +// [transferred](https://help.github.com/articles/transferring-an-issue-to-another-repository/) to +// another repository. If +// the issue was transferred to or deleted from a repository where the authenticated user lacks read +// access, the API +// returns a `404 Not Found` status. If the issue was deleted from a repository where the +// authenticated user has read +// access, the API returns a `410 Gone` status. To receive webhook events for transferred and deleted +// issues, subscribe +// to the [`issues`](https://docs.github.com/webhooks/event-payloads/#issues) webhook. +// **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a +// pull request. For this +// reason, "Issues" endpoints may return both issues and pull requests in the response. You can +// identify pull requests by +// the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints +// will be an _issue id_. To find out the pull +// request id, use the "[List pull requests](https://docs.github. +// com/rest/reference/pulls#list-pull-requests)" endpoint. +// // GET /repos/{owner}/{repo}/issues/{issue_number} func (s *Server) handleIssuesGetRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -25296,6 +27080,8 @@ func (s *Server) handleIssuesGetRequest(args [3]string, w http.ResponseWriter, r // handleIssuesGetCommentRequest handles issues/get-comment operation. // +// Get an issue comment. +// // GET /repos/{owner}/{repo}/issues/comments/{comment_id} func (s *Server) handleIssuesGetCommentRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -25392,6 +27178,8 @@ func (s *Server) handleIssuesGetCommentRequest(args [3]string, w http.ResponseWr // handleIssuesGetEventRequest handles issues/get-event operation. // +// Get an issue event. +// // GET /repos/{owner}/{repo}/issues/events/{event_id} func (s *Server) handleIssuesGetEventRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -25488,6 +27276,8 @@ func (s *Server) handleIssuesGetEventRequest(args [3]string, w http.ResponseWrit // handleIssuesGetLabelRequest handles issues/get-label operation. // +// Get a label. +// // GET /repos/{owner}/{repo}/labels/{name} func (s *Server) handleIssuesGetLabelRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -25584,6 +27374,8 @@ func (s *Server) handleIssuesGetLabelRequest(args [3]string, w http.ResponseWrit // handleIssuesGetMilestoneRequest handles issues/get-milestone operation. // +// Get a milestone. +// // GET /repos/{owner}/{repo}/milestones/{milestone_number} func (s *Server) handleIssuesGetMilestoneRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -25680,6 +27472,20 @@ func (s *Server) handleIssuesGetMilestoneRequest(args [3]string, w http.Response // handleIssuesListRequest handles issues/list operation. // +// List issues assigned to the authenticated user across all visible repositories including owned +// repositories, member +// repositories, and organization repositories. You can use the `filter` query parameter to fetch +// issues that are not +// necessarily assigned to you. +// **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a +// pull request. For this +// reason, "Issues" endpoints may return both issues and pull requests in the response. You can +// identify pull requests by +// the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints +// will be an _issue id_. To find out the pull +// request id, use the "[List pull requests](https://docs.github. +// com/rest/reference/pulls#list-pull-requests)" endpoint. +// // GET /issues func (s *Server) handleIssuesListRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -25785,6 +27591,9 @@ func (s *Server) handleIssuesListRequest(args [0]string, w http.ResponseWriter, // handleIssuesListAssigneesRequest handles issues/list-assignees operation. // +// Lists the [available assignees](https://help.github. +// com/articles/assigning-issues-and-pull-requests-to-other-github-users/) for issues in a repository. +// // GET /repos/{owner}/{repo}/assignees func (s *Server) handleIssuesListAssigneesRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -25882,6 +27691,8 @@ func (s *Server) handleIssuesListAssigneesRequest(args [2]string, w http.Respons // handleIssuesListCommentsRequest handles issues/list-comments operation. // +// Issue Comments are ordered by ascending ID. +// // GET /repos/{owner}/{repo}/issues/{issue_number}/comments func (s *Server) handleIssuesListCommentsRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -25981,6 +27792,8 @@ func (s *Server) handleIssuesListCommentsRequest(args [3]string, w http.Response // handleIssuesListCommentsForRepoRequest handles issues/list-comments-for-repo operation. // +// By default, Issue Comments are ordered by ascending ID. +// // GET /repos/{owner}/{repo}/issues/comments func (s *Server) handleIssuesListCommentsForRepoRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -26081,6 +27894,8 @@ func (s *Server) handleIssuesListCommentsForRepoRequest(args [2]string, w http.R // handleIssuesListEventsForRepoRequest handles issues/list-events-for-repo operation. // +// List issue events for a repository. +// // GET /repos/{owner}/{repo}/issues/events func (s *Server) handleIssuesListEventsForRepoRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -26178,6 +27993,16 @@ func (s *Server) handleIssuesListEventsForRepoRequest(args [2]string, w http.Res // handleIssuesListForAuthenticatedUserRequest handles issues/list-for-authenticated-user operation. // +// List issues across owned and member repositories assigned to the authenticated user. +// **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a +// pull request. For this +// reason, "Issues" endpoints may return both issues and pull requests in the response. You can +// identify pull requests by +// the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints +// will be an _issue id_. To find out the pull +// request id, use the "[List pull requests](https://docs.github. +// com/rest/reference/pulls#list-pull-requests)" endpoint. +// // GET /user/issues func (s *Server) handleIssuesListForAuthenticatedUserRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -26279,6 +28104,16 @@ func (s *Server) handleIssuesListForAuthenticatedUserRequest(args [0]string, w h // handleIssuesListForOrgRequest handles issues/list-for-org operation. // +// List issues in an organization assigned to the authenticated user. +// **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a +// pull request. For this +// reason, "Issues" endpoints may return both issues and pull requests in the response. You can +// identify pull requests by +// the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints +// will be an _issue id_. To find out the pull +// request id, use the "[List pull requests](https://docs.github. +// com/rest/reference/pulls#list-pull-requests)" endpoint. +// // GET /orgs/{org}/issues func (s *Server) handleIssuesListForOrgRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -26381,6 +28216,16 @@ func (s *Server) handleIssuesListForOrgRequest(args [1]string, w http.ResponseWr // handleIssuesListForRepoRequest handles issues/list-for-repo operation. // +// List issues in a repository. +// **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a +// pull request. For this +// reason, "Issues" endpoints may return both issues and pull requests in the response. You can +// identify pull requests by +// the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints +// will be an _issue id_. To find out the pull +// request id, use the "[List pull requests](https://docs.github. +// com/rest/reference/pulls#list-pull-requests)" endpoint. +// // GET /repos/{owner}/{repo}/issues func (s *Server) handleIssuesListForRepoRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -26487,6 +28332,8 @@ func (s *Server) handleIssuesListForRepoRequest(args [2]string, w http.ResponseW // handleIssuesListLabelsForMilestoneRequest handles issues/list-labels-for-milestone operation. // +// List labels for issues in a milestone. +// // GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels func (s *Server) handleIssuesListLabelsForMilestoneRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -26585,6 +28432,8 @@ func (s *Server) handleIssuesListLabelsForMilestoneRequest(args [3]string, w htt // handleIssuesListLabelsForRepoRequest handles issues/list-labels-for-repo operation. // +// List labels for a repository. +// // GET /repos/{owner}/{repo}/labels func (s *Server) handleIssuesListLabelsForRepoRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -26682,6 +28531,8 @@ func (s *Server) handleIssuesListLabelsForRepoRequest(args [2]string, w http.Res // handleIssuesListLabelsOnIssueRequest handles issues/list-labels-on-issue operation. // +// List labels for an issue. +// // GET /repos/{owner}/{repo}/issues/{issue_number}/labels func (s *Server) handleIssuesListLabelsOnIssueRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -26780,6 +28631,8 @@ func (s *Server) handleIssuesListLabelsOnIssueRequest(args [3]string, w http.Res // handleIssuesListMilestonesRequest handles issues/list-milestones operation. // +// List milestones. +// // GET /repos/{owner}/{repo}/milestones func (s *Server) handleIssuesListMilestonesRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -26880,6 +28733,11 @@ func (s *Server) handleIssuesListMilestonesRequest(args [2]string, w http.Respon // handleIssuesLockRequest handles issues/lock operation. // +// Users with push access can lock an issue or pull request's conversation. +// Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero +// when calling out to this endpoint. For more information, see "[HTTP verbs](https://docs.github. +// com/rest/overview/resources-in-the-rest-api#http-verbs).". +// // PUT /repos/{owner}/{repo}/issues/{issue_number}/lock func (s *Server) handleIssuesLockRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -26991,6 +28849,8 @@ func (s *Server) handleIssuesLockRequest(args [3]string, w http.ResponseWriter, // handleIssuesRemoveAllLabelsRequest handles issues/remove-all-labels operation. // +// Remove all labels from an issue. +// // DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels func (s *Server) handleIssuesRemoveAllLabelsRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -27087,6 +28947,8 @@ func (s *Server) handleIssuesRemoveAllLabelsRequest(args [3]string, w http.Respo // handleIssuesRemoveAssigneesRequest handles issues/remove-assignees operation. // +// Removes one or more assignees from an issue. +// // DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees func (s *Server) handleIssuesRemoveAssigneesRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -27198,6 +29060,9 @@ func (s *Server) handleIssuesRemoveAssigneesRequest(args [3]string, w http.Respo // handleIssuesRemoveLabelRequest handles issues/remove-label operation. // +// Removes the specified label from the issue, and returns the remaining labels on the issue. This +// endpoint returns a `404 Not Found` status if the label does not exist. +// // DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name} func (s *Server) handleIssuesRemoveLabelRequest(args [4]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -27295,6 +29160,8 @@ func (s *Server) handleIssuesRemoveLabelRequest(args [4]string, w http.ResponseW // handleIssuesUnlockRequest handles issues/unlock operation. // +// Users with push access can unlock an issue's conversation. +// // DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock func (s *Server) handleIssuesUnlockRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -27391,6 +29258,8 @@ func (s *Server) handleIssuesUnlockRequest(args [3]string, w http.ResponseWriter // handleIssuesUpdateRequest handles issues/update operation. // +// Issue owners and users with push access can edit an issue. +// // PATCH /repos/{owner}/{repo}/issues/{issue_number} func (s *Server) handleIssuesUpdateRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -27502,6 +29371,8 @@ func (s *Server) handleIssuesUpdateRequest(args [3]string, w http.ResponseWriter // handleIssuesUpdateCommentRequest handles issues/update-comment operation. // +// Update an issue comment. +// // PATCH /repos/{owner}/{repo}/issues/comments/{comment_id} func (s *Server) handleIssuesUpdateCommentRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -27613,6 +29484,8 @@ func (s *Server) handleIssuesUpdateCommentRequest(args [3]string, w http.Respons // handleIssuesUpdateLabelRequest handles issues/update-label operation. // +// Update a label. +// // PATCH /repos/{owner}/{repo}/labels/{name} func (s *Server) handleIssuesUpdateLabelRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -27724,6 +29597,8 @@ func (s *Server) handleIssuesUpdateLabelRequest(args [3]string, w http.ResponseW // handleIssuesUpdateMilestoneRequest handles issues/update-milestone operation. // +// Update a milestone. +// // PATCH /repos/{owner}/{repo}/milestones/{milestone_number} func (s *Server) handleIssuesUpdateMilestoneRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -27835,6 +29710,8 @@ func (s *Server) handleIssuesUpdateMilestoneRequest(args [3]string, w http.Respo // handleLicensesGetRequest handles licenses/get operation. // +// Get a license. +// // GET /licenses/{license} func (s *Server) handleLicensesGetRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -27929,6 +29806,8 @@ func (s *Server) handleLicensesGetRequest(args [1]string, w http.ResponseWriter, // handleLicensesGetAllCommonlyUsedRequest handles licenses/get-all-commonly-used operation. // +// Get all commonly used licenses. +// // GET /licenses func (s *Server) handleLicensesGetAllCommonlyUsedRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -28025,6 +29904,12 @@ func (s *Server) handleLicensesGetAllCommonlyUsedRequest(args [0]string, w http. // handleLicensesGetForRepoRequest handles licenses/get-for-repo operation. // +// This method returns the contents of the repository's license file, if one is detected. +// Similar to [Get repository content](https://docs.github. +// com/rest/reference/repos#get-repository-content), this method also supports [custom media +// types](https://docs.github.com/rest/overview/media-types) for retrieving the raw license content +// or rendered license HTML. +// // GET /repos/{owner}/{repo}/license func (s *Server) handleLicensesGetForRepoRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -28120,6 +30005,12 @@ func (s *Server) handleLicensesGetForRepoRequest(args [2]string, w http.Response // handleMetaGetRequest handles meta/get operation. // +// Returns meta information about GitHub, including a list of GitHub's IP addresses. For more +// information, see "[About GitHub's IP addresses](https://help.github. +// com/articles/about-github-s-ip-addresses/)." +// **Note:** The IP addresses shown in the documentation's response are only example values. You must +// always query the API directly to get the latest list of IP addresses. +// // GET /meta func (s *Server) handleMetaGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -28198,6 +30089,8 @@ func (s *Server) handleMetaGetRequest(args [0]string, w http.ResponseWriter, r * // handleMetaGetZenRequest handles meta/get-zen operation. // +// Get a random sentence from the Zen of GitHub. +// // GET /zen func (s *Server) handleMetaGetZenRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -28276,6 +30169,8 @@ func (s *Server) handleMetaGetZenRequest(args [0]string, w http.ResponseWriter, // handleMetaRootRequest handles meta/root operation. // +// Get Hypermedia links to resources accessible in GitHub's REST API. +// // GET / func (s *Server) handleMetaRootRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -28354,6 +30249,8 @@ func (s *Server) handleMetaRootRequest(args [0]string, w http.ResponseWriter, r // handleMigrationsCancelImportRequest handles migrations/cancel-import operation. // +// Stop an import for a repository. +// // DELETE /repos/{owner}/{repo}/import func (s *Server) handleMigrationsCancelImportRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -28449,6 +30346,12 @@ func (s *Server) handleMigrationsCancelImportRequest(args [2]string, w http.Resp // handleMigrationsDeleteArchiveForAuthenticatedUserRequest handles migrations/delete-archive-for-authenticated-user operation. // +// Deletes a previous migration archive. Downloadable migration archives are automatically deleted +// after seven days. Migration metadata, which is returned in the [List user migrations](https://docs. +// github.com/rest/reference/migrations#list-user-migrations) and [Get a user migration +// status](https://docs.github.com/rest/reference/migrations#get-a-user-migration-status) endpoints, +// will continue to be available even after an archive is deleted. +// // DELETE /user/migrations/{migration_id}/archive func (s *Server) handleMigrationsDeleteArchiveForAuthenticatedUserRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -28543,6 +30446,9 @@ func (s *Server) handleMigrationsDeleteArchiveForAuthenticatedUserRequest(args [ // handleMigrationsDeleteArchiveForOrgRequest handles migrations/delete-archive-for-org operation. // +// Deletes a previous migration archive. Migration archives are automatically deleted after seven +// days. +// // DELETE /orgs/{org}/migrations/{migration_id}/archive func (s *Server) handleMigrationsDeleteArchiveForOrgRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -28638,6 +30544,8 @@ func (s *Server) handleMigrationsDeleteArchiveForOrgRequest(args [2]string, w ht // handleMigrationsDownloadArchiveForOrgRequest handles migrations/download-archive-for-org operation. // +// Fetches the URL to a migration archive. +// // GET /orgs/{org}/migrations/{migration_id}/archive func (s *Server) handleMigrationsDownloadArchiveForOrgRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -28733,6 +30641,28 @@ func (s *Server) handleMigrationsDownloadArchiveForOrgRequest(args [2]string, w // handleMigrationsGetArchiveForAuthenticatedUserRequest handles migrations/get-archive-for-authenticated-user operation. // +// Fetches the URL to download the migration archive as a `tar.gz` file. Depending on the resources +// your repository uses, the migration archive can contain JSON files with data for these objects: +// * attachments +// * bases +// * commit\_comments +// * issue\_comments +// * issue\_events +// * issues +// * milestones +// * organizations +// * projects +// * protected\_branches +// * pull\_request\_reviews +// * pull\_requests +// * releases +// * repositories +// * review\_comments +// * schema +// * users +// The archive will also contain an `attachments` directory that includes all attachment files +// uploaded to GitHub.com and a `repositories` directory that contains the repository's Git data. +// // GET /user/migrations/{migration_id}/archive func (s *Server) handleMigrationsGetArchiveForAuthenticatedUserRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -28827,6 +30757,15 @@ func (s *Server) handleMigrationsGetArchiveForAuthenticatedUserRequest(args [1]s // handleMigrationsGetCommitAuthorsRequest handles migrations/get-commit-authors operation. // +// Each type of source control system represents authors in a different way. For example, a Git +// commit author has a display name and an email address, but a Subversion commit author just has a +// username. The GitHub Importer will make the author information valid, but the author might not be +// correct. For example, it will change the bare Subversion username `hubot` into something like +// `hubot `. +// This endpoint and the [Map a commit author](https://docs.github. +// com/rest/reference/migrations#map-a-commit-author) endpoint allow you to provide correct Git +// author information. +// // GET /repos/{owner}/{repo}/import/authors func (s *Server) handleMigrationsGetCommitAuthorsRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -28923,6 +30862,60 @@ func (s *Server) handleMigrationsGetCommitAuthorsRequest(args [2]string, w http. // handleMigrationsGetImportStatusRequest handles migrations/get-import-status operation. // +// View the progress of an import. +// **Import status** +// This section includes details about the possible values of the `status` field of the Import +// Progress response. +// An import that does not have errors will progress through these steps: +// * `detecting` - the "detection" step of the import is in progress because the request did not +// include a `vcs` parameter. The import is identifying the type of source control present at the URL. +// * `importing` - the "raw" step of the import is in progress. This is where commit data is +// fetched from the original repository. The import progress response will include `commit_count` +// (the total number of raw commits that will be imported) and `percent` (0 - 100, the current +// progress through the import). +// * `mapping` - the "rewrite" step of the import is in progress. This is where SVN branches are +// converted to Git branches, and where author updates are applied. The import progress response does +// not include progress information. +// * `pushing` - the "push" step of the import is in progress. This is where the importer updates +// the repository on GitHub. The import progress response will include `push_percent`, which is the +// percent value reported by `git push` when it is "Writing objects". +// * `complete` - the import is complete, and the repository is ready on GitHub. +// If there are problems, you will see one of these in the `status` field: +// * `auth_failed` - the import requires authentication in order to connect to the original +// repository. To update authentication for the import, please see the [Update an +// import](https://docs.github.com/rest/reference/migrations#update-an-import) section. +// * `error` - the import encountered an error. The import progress response will include the +// `failed_step` and an error message. Contact [GitHub Support](https://support.github. +// com/contact?tags=dotcom-rest-api) for more information. +// * `detection_needs_auth` - the importer requires authentication for the originating repository +// to continue detection. To update authentication for the import, please see the [Update an +// import](https://docs.github.com/rest/reference/migrations#update-an-import) section. +// * `detection_found_nothing` - the importer didn't recognize any source control at the URL. To +// resolve, [Cancel the import](https://docs.github.com/rest/reference/migrations#cancel-an-import) +// and [retry](https://docs.github.com/rest/reference/migrations#start-an-import) with the correct +// URL. +// * `detection_found_multiple` - the importer found several projects or repositories at the +// provided URL. When this is the case, the Import Progress response will also include a +// `project_choices` field with the possible project choices as values. To update project choice, +// please see the [Update an import](https://docs.github. +// com/rest/reference/migrations#update-an-import) section. +// **The project_choices field** +// When multiple projects are found at the provided URL, the response hash will include a +// `project_choices` field, the value of which is an array of hashes each representing a project +// choice. The exact key/value pairs of the project hashes will differ depending on the version +// control type. +// **Git LFS related fields** +// This section includes details about Git LFS related fields that may be present in the Import +// Progress response. +// * `use_lfs` - describes whether the import has been opted in or out of using Git LFS. The value +// can be `opt_in`, `opt_out`, or `undecided` if no action has been taken. +// * `has_large_files` - the boolean value describing whether files larger than 100MB were found +// during the `importing` step. +// * `large_files_size` - the total size in gigabytes of files larger than 100MB found in the +// originating repository. +// * `large_files_count` - the total number of files larger than 100MB found in the originating +// repository. To see a list of these files, make a "Get Large Files" request. +// // GET /repos/{owner}/{repo}/import func (s *Server) handleMigrationsGetImportStatusRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -29018,6 +31011,8 @@ func (s *Server) handleMigrationsGetImportStatusRequest(args [2]string, w http.R // handleMigrationsGetLargeFilesRequest handles migrations/get-large-files operation. // +// List files larger than 100MB found during the import. +// // GET /repos/{owner}/{repo}/import/large_files func (s *Server) handleMigrationsGetLargeFilesRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -29113,6 +31108,15 @@ func (s *Server) handleMigrationsGetLargeFilesRequest(args [2]string, w http.Res // handleMigrationsGetStatusForAuthenticatedUserRequest handles migrations/get-status-for-authenticated-user operation. // +// Fetches a single user migration. The response includes the `state` of the migration, which can be +// one of the following values: +// * `pending` - the migration hasn't started yet. +// * `exporting` - the migration is in progress. +// * `exported` - the migration finished successfully. +// * `failed` - the migration failed. +// Once the migration has been `exported` you can [download the migration archive](https://docs. +// github.com/rest/reference/migrations#download-a-user-migration-archive). +// // GET /user/migrations/{migration_id} func (s *Server) handleMigrationsGetStatusForAuthenticatedUserRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -29208,6 +31212,13 @@ func (s *Server) handleMigrationsGetStatusForAuthenticatedUserRequest(args [1]st // handleMigrationsGetStatusForOrgRequest handles migrations/get-status-for-org operation. // +// Fetches the status of a migration. +// The `state` of a migration can be one of the following values: +// * `pending`, which means the migration hasn't started yet. +// * `exporting`, which means the migration is in progress. +// * `exported`, which means the migration finished successfully. +// * `failed`, which means the migration failed. +// // GET /orgs/{org}/migrations/{migration_id} func (s *Server) handleMigrationsGetStatusForOrgRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -29304,6 +31315,8 @@ func (s *Server) handleMigrationsGetStatusForOrgRequest(args [2]string, w http.R // handleMigrationsListForAuthenticatedUserRequest handles migrations/list-for-authenticated-user operation. // +// Lists all migrations a user has started. +// // GET /user/migrations func (s *Server) handleMigrationsListForAuthenticatedUserRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -29399,6 +31412,8 @@ func (s *Server) handleMigrationsListForAuthenticatedUserRequest(args [0]string, // handleMigrationsListForOrgRequest handles migrations/list-for-org operation. // +// Lists the most recent migrations. +// // GET /orgs/{org}/migrations func (s *Server) handleMigrationsListForOrgRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -29496,6 +31511,8 @@ func (s *Server) handleMigrationsListForOrgRequest(args [1]string, w http.Respon // handleMigrationsListReposForOrgRequest handles migrations/list-repos-for-org operation. // +// List all the repositories for this organization migration. +// // GET /orgs/{org}/migrations/{migration_id}/repositories func (s *Server) handleMigrationsListReposForOrgRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -29593,6 +31610,8 @@ func (s *Server) handleMigrationsListReposForOrgRequest(args [2]string, w http.R // handleMigrationsListReposForUserRequest handles migrations/list-repos-for-user operation. // +// Lists all the repositories for this user migration. +// // GET /user/migrations/{migration_id}/repositories func (s *Server) handleMigrationsListReposForUserRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -29689,6 +31708,9 @@ func (s *Server) handleMigrationsListReposForUserRequest(args [1]string, w http. // handleMigrationsMapCommitAuthorRequest handles migrations/map-commit-author operation. // +// Update an author's identity for the import. Your application can continue updating authors any +// time before you push new commits to the repository. +// // PATCH /repos/{owner}/{repo}/import/authors/{author_id} func (s *Server) handleMigrationsMapCommitAuthorRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -29800,6 +31822,11 @@ func (s *Server) handleMigrationsMapCommitAuthorRequest(args [3]string, w http.R // handleMigrationsSetLfsPreferenceRequest handles migrations/set-lfs-preference operation. // +// You can import repositories from Subversion, Mercurial, and TFS that include files larger than +// 100MB. This ability is powered by [Git LFS](https://git-lfs.github.com). You can learn more about +// our LFS feature and working with large files [on our help site](https://help.github. +// com/articles/versioning-large-files/). +// // PATCH /repos/{owner}/{repo}/import/lfs func (s *Server) handleMigrationsSetLfsPreferenceRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -29910,6 +31937,8 @@ func (s *Server) handleMigrationsSetLfsPreferenceRequest(args [2]string, w http. // handleMigrationsStartForAuthenticatedUserRequest handles migrations/start-for-authenticated-user operation. // +// Initiates the generation of a user migration archive. +// // POST /user/migrations func (s *Server) handleMigrationsStartForAuthenticatedUserRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -30007,6 +32036,8 @@ func (s *Server) handleMigrationsStartForAuthenticatedUserRequest(args [0]string // handleMigrationsStartForOrgRequest handles migrations/start-for-org operation. // +// Initiates the generation of a migration archive. +// // POST /orgs/{org}/migrations func (s *Server) handleMigrationsStartForOrgRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -30116,6 +32147,8 @@ func (s *Server) handleMigrationsStartForOrgRequest(args [1]string, w http.Respo // handleMigrationsStartImportRequest handles migrations/start-import operation. // +// Start a source import to a GitHub repository using GitHub Importer. +// // PUT /repos/{owner}/{repo}/import func (s *Server) handleMigrationsStartImportRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -30226,6 +32259,12 @@ func (s *Server) handleMigrationsStartImportRequest(args [2]string, w http.Respo // handleMigrationsUnlockRepoForAuthenticatedUserRequest handles migrations/unlock-repo-for-authenticated-user operation. // +// Unlocks a repository. You can lock repositories when you [start a user migration](https://docs. +// github.com/rest/reference/migrations#start-a-user-migration). Once the migration is complete you +// can unlock each repository to begin using it again or [delete the repository](https://docs.github. +// com/rest/reference/repos#delete-a-repository) if you no longer need the source data. Returns a +// status of `404 Not Found` if the repository is not locked. +// // DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock func (s *Server) handleMigrationsUnlockRepoForAuthenticatedUserRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -30321,6 +32360,10 @@ func (s *Server) handleMigrationsUnlockRepoForAuthenticatedUserRequest(args [2]s // handleMigrationsUnlockRepoForOrgRequest handles migrations/unlock-repo-for-org operation. // +// Unlocks a repository that was locked for migration. You should unlock each migrated repository and +// [delete them](https://docs.github.com/rest/reference/repos#delete-a-repository) when the migration +// is complete and you no longer need the source data. +// // DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock func (s *Server) handleMigrationsUnlockRepoForOrgRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -30417,6 +32460,10 @@ func (s *Server) handleMigrationsUnlockRepoForOrgRequest(args [3]string, w http. // handleMigrationsUpdateImportRequest handles migrations/update-import operation. // +// An import can be updated with credentials or a project choice by passing in the appropriate +// parameters in this API +// request. If no parameters are provided, the import will be restarted. +// // PATCH /repos/{owner}/{repo}/import func (s *Server) handleMigrationsUpdateImportRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -30527,6 +32574,37 @@ func (s *Server) handleMigrationsUpdateImportRequest(args [2]string, w http.Resp // handleOAuthAuthorizationsCreateAuthorizationRequest handles oauth-authorizations/create-authorization operation. // +// **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github. +// com/rest/reference/oauth-authorizations), which is used by integrations to create personal access +// tokens and OAuth tokens, and you must now create these tokens using our [web application +// flow](https://docs.github.com/developers/apps/authorizing-oauth-apps#web-application-flow). The +// [OAuth Authorizations API](https://docs.github.com/rest/reference/oauth-authorizations) will be +// removed on November, 13, 2020. For more information, including scheduled brownouts, see the [blog +// post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-auth-endpoint/). +// **Warning:** Apps must use the [web application flow](https://docs.github. +// com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow) to obtain OAuth tokens +// that work with GitHub SAML organizations. OAuth tokens created using the Authorizations API will +// be unable to access GitHub SAML organizations. For more information, see the [blog +// post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). +// Creates OAuth tokens using [Basic Authentication](https://docs.github. +// com/rest/overview/other-authentication-methods#basic-authentication). If you have two-factor +// authentication setup, Basic Authentication for this endpoint requires that you use a one-time +// password (OTP) and your username and password instead of tokens. For more information, see +// "[Working with two-factor authentication](https://docs.github. +// com/rest/overview/other-authentication-methods#working-with-two-factor-authentication)." +// To create tokens for a particular OAuth application using this endpoint, you must authenticate as +// the user you want to create an authorization for and provide the app's client ID and secret, found +// on your OAuth application's settings page. If your OAuth application intends to create multiple +// tokens for one user, use `fingerprint` to differentiate between them. +// You can also create tokens on GitHub from the [personal access tokens settings](https://github. +// com/settings/tokens) page. Read more about these tokens in [the GitHub Help +// documentation](https://help.github.com/articles/creating-an-access-token-for-command-line-use). +// Organizations that enforce SAML SSO require personal access tokens to be allowed. Read more about +// allowing tokens in [the GitHub Help documentation](https://help.github. +// com/articles/about-identity-and-access-management-with-saml-single-sign-on). +// +// Deprecated: schema marks this operation as deprecated. +// // POST /authorizations func (s *Server) handleOAuthAuthorizationsCreateAuthorizationRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -30624,6 +32702,17 @@ func (s *Server) handleOAuthAuthorizationsCreateAuthorizationRequest(args [0]str // handleOAuthAuthorizationsDeleteAuthorizationRequest handles oauth-authorizations/delete-authorization operation. // +// **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github. +// com/rest/reference/oauth-authorizations), which is used by integrations to create personal access +// tokens and OAuth tokens, and you must now create these tokens using our [web application +// flow](https://docs.github. +// com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). The [OAuth +// Authorizations API](https://docs.github.com/rest/reference/oauth-authorizations) will be removed +// on November, 13, 2020. For more information, including scheduled brownouts, see the [blog +// post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-auth-endpoint/). +// +// Deprecated: schema marks this operation as deprecated. +// // DELETE /authorizations/{authorization_id} func (s *Server) handleOAuthAuthorizationsDeleteAuthorizationRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -30718,6 +32807,20 @@ func (s *Server) handleOAuthAuthorizationsDeleteAuthorizationRequest(args [1]str // handleOAuthAuthorizationsDeleteGrantRequest handles oauth-authorizations/delete-grant operation. // +// **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github. +// com/rest/reference/oauth-authorizations/), which is used by integrations to create personal access +// tokens and OAuth tokens, and you must now create these tokens using our [web application +// flow](https://docs.github.com/developers/apps/authorizing-oauth-apps#web-application-flow). The +// [OAuth Authorizations API](https://docs.github.com/rest/reference/oauth-authorizations/) will be +// removed on November, 13, 2020. For more information, including scheduled brownouts, see the [blog +// post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-auth-endpoint/). +// Deleting an OAuth application's grant will also delete all OAuth tokens associated with the +// application for your user. Once deleted, the application has no access to your account and is no +// longer listed on [the application authorizations settings screen within GitHub](https://github. +// com/settings/applications#authorized). +// +// Deprecated: schema marks this operation as deprecated. +// // DELETE /applications/grants/{grant_id} func (s *Server) handleOAuthAuthorizationsDeleteGrantRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -30812,6 +32915,17 @@ func (s *Server) handleOAuthAuthorizationsDeleteGrantRequest(args [1]string, w h // handleOAuthAuthorizationsGetAuthorizationRequest handles oauth-authorizations/get-authorization operation. // +// **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github. +// com/rest/reference/oauth-authorizations), which is used by integrations to create personal access +// tokens and OAuth tokens, and you must now create these tokens using our [web application +// flow](https://docs.github. +// com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). The [OAuth +// Authorizations API](https://docs.github.com/rest/reference/oauth-authorizations) will be removed +// on November, 13, 2020. For more information, including scheduled brownouts, see the [blog +// post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-auth-endpoint/). +// +// Deprecated: schema marks this operation as deprecated. +// // GET /authorizations/{authorization_id} func (s *Server) handleOAuthAuthorizationsGetAuthorizationRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -30906,6 +33020,17 @@ func (s *Server) handleOAuthAuthorizationsGetAuthorizationRequest(args [1]string // handleOAuthAuthorizationsGetGrantRequest handles oauth-authorizations/get-grant operation. // +// **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github. +// com/rest/reference/oauth-authorizations), which is used by integrations to create personal access +// tokens and OAuth tokens, and you must now create these tokens using our [web application +// flow](https://docs.github. +// com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). The [OAuth +// Authorizations API](https://docs.github.com/rest/reference/oauth-authorizations) will be removed +// on November, 13, 2020. For more information, including scheduled brownouts, see the [blog +// post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-auth-endpoint/). +// +// Deprecated: schema marks this operation as deprecated. +// // GET /applications/grants/{grant_id} func (s *Server) handleOAuthAuthorizationsGetGrantRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -31000,6 +33125,36 @@ func (s *Server) handleOAuthAuthorizationsGetGrantRequest(args [1]string, w http // handleOAuthAuthorizationsGetOrCreateAuthorizationForAppRequest handles oauth-authorizations/get-or-create-authorization-for-app operation. // +// **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github. +// com/rest/reference/oauth-authorizations/), which is used by integrations to create personal access +// tokens and OAuth tokens, and you must now create these tokens using our [web application +// flow](https://docs.github.com/developers/apps/authorizing-oauth-apps#web-application-flow). The +// [OAuth Authorizations API](https://docs.github.com/rest/reference/oauth-authorizations) will be +// removed on November, 13, 2020. For more information, including scheduled brownouts, see the [blog +// post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-auth-endpoint/). +// **Warning:** Apps must use the [web application flow](https://docs.github. +// com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow) to obtain OAuth tokens +// that work with GitHub SAML organizations. OAuth tokens created using the Authorizations API will +// be unable to access GitHub SAML organizations. For more information, see the [blog +// post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). +// Creates a new authorization for the specified OAuth application, only if an authorization for that +// application doesn't already exist for the user. The URL includes the 20 character client ID for +// the OAuth app that is requesting the token. It returns the user's existing authorization for the +// application if one is present. Otherwise, it creates and returns a new one. +// If you have two-factor authentication setup, Basic Authentication for this endpoint requires that +// you use a one-time password (OTP) and your username and password instead of tokens. For more +// information, see "[Working with two-factor authentication](https://docs.github. +// com/rest/overview/other-authentication-methods#working-with-two-factor-authentication)." +// **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github. +// com/rest/reference/oauth-authorizations/), which is used by integrations to create personal access +// tokens and OAuth tokens, and you must now create these tokens using our [web application +// flow](https://docs.github.com/developers/apps/authorizing-oauth-apps#web-application-flow). The +// [OAuth Authorizations API](https://docs.github.com/rest/reference/oauth-authorizations) will be +// removed on November, 13, 2020. For more information, including scheduled brownouts, see the [blog +// post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-auth-endpoint/). +// +// Deprecated: schema marks this operation as deprecated. +// // PUT /authorizations/clients/{client_id} func (s *Server) handleOAuthAuthorizationsGetOrCreateAuthorizationForAppRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -31109,6 +33264,31 @@ func (s *Server) handleOAuthAuthorizationsGetOrCreateAuthorizationForAppRequest( // handleOAuthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintRequest handles oauth-authorizations/get-or-create-authorization-for-app-and-fingerprint operation. // +// **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github. +// com/rest/reference/oauth-authorizations/), which is used by integrations to create personal access +// tokens and OAuth tokens, and you must now create these tokens using our [web application +// flow](https://docs.github.com/developers/apps/authorizing-oauth-apps#web-application-flow). The +// [OAuth Authorizations API](https://docs.github.com/rest/reference/oauth-authorizations) will be +// removed on November, 13, 2020. For more information, including scheduled brownouts, see the [blog +// post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-auth-endpoint/). +// **Warning:** Apps must use the [web application flow](https://docs.github. +// com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow) to obtain OAuth tokens +// that work with GitHub SAML organizations. OAuth tokens created using the Authorizations API will +// be unable to access GitHub SAML organizations. For more information, see the [blog +// post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). +// This method will create a new authorization for the specified OAuth application, only if an +// authorization for that application and fingerprint do not already exist for the user. The URL +// includes the 20 character client ID for the OAuth app that is requesting the token. `fingerprint` +// is a unique string to distinguish an authorization from others created for the same client ID and +// user. It returns the user's existing authorization for the application if one is present. +// Otherwise, it creates and returns a new one. +// If you have two-factor authentication setup, Basic Authentication for this endpoint requires that +// you use a one-time password (OTP) and your username and password instead of tokens. For more +// information, see "[Working with two-factor authentication](https://docs.github. +// com/rest/overview/other-authentication-methods#working-with-two-factor-authentication).". +// +// Deprecated: schema marks this operation as deprecated. +// // PUT /authorizations/clients/{client_id}/{fingerprint} func (s *Server) handleOAuthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -31219,6 +33399,17 @@ func (s *Server) handleOAuthAuthorizationsGetOrCreateAuthorizationForAppAndFinge // handleOAuthAuthorizationsListAuthorizationsRequest handles oauth-authorizations/list-authorizations operation. // +// **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github. +// com/rest/reference/oauth-authorizations), which is used by integrations to create personal access +// tokens and OAuth tokens, and you must now create these tokens using our [web application +// flow](https://docs.github. +// com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). The [OAuth +// Authorizations API](https://docs.github.com/rest/reference/oauth-authorizations) will be removed +// on November, 13, 2020. For more information, including scheduled brownouts, see the [blog +// post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-auth-endpoint/). +// +// Deprecated: schema marks this operation as deprecated. +// // GET /authorizations func (s *Server) handleOAuthAuthorizationsListAuthorizationsRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -31315,6 +33506,28 @@ func (s *Server) handleOAuthAuthorizationsListAuthorizationsRequest(args [0]stri // handleOAuthAuthorizationsListGrantsRequest handles oauth-authorizations/list-grants operation. // +// **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github. +// com/rest/reference/oauth-authorizations/), which is used by integrations to create personal access +// tokens and OAuth tokens, and you must now create these tokens using our [web application +// flow](https://docs.github.com/developers/apps/authorizing-oauth-apps#web-application-flow). The +// [OAuth Authorizations API](https://docs.github.com/rest/reference/oauth-authorizations) will be +// removed on November, 13, 2020. For more information, including scheduled brownouts, see the [blog +// post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-auth-endpoint/). +// You can use this API to list the set of OAuth applications that have been granted access to your +// account. Unlike the [list your authorizations](https://docs.github. +// com/rest/reference/oauth-authorizations#list-your-authorizations) API, this API does not manage +// individual tokens. This API will return one entry for each OAuth application that has been granted +// access to your account, regardless of the number of tokens an application has generated for your +// user. The list of OAuth applications returned matches what is shown on [the application +// authorizations settings screen within GitHub](https://github.com/settings/applications#authorized). +// +// The `scopes` returned are the union of scopes authorized for the application. For example, if an +// +// application has one token with `repo` scope and another token with `user` scope, the grant will +// return `["repo", "user"]`. +// +// Deprecated: schema marks this operation as deprecated. +// // GET /applications/grants func (s *Server) handleOAuthAuthorizationsListGrantsRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -31411,6 +33624,21 @@ func (s *Server) handleOAuthAuthorizationsListGrantsRequest(args [0]string, w ht // handleOAuthAuthorizationsUpdateAuthorizationRequest handles oauth-authorizations/update-authorization operation. // +// **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github. +// com/rest/reference/oauth-authorizations/), which is used by integrations to create personal access +// tokens and OAuth tokens, and you must now create these tokens using our [web application +// flow](https://docs.github.com/developers/apps/authorizing-oauth-apps#web-application-flow). The +// [OAuth Authorizations API](https://docs.github.com/rest/reference/oauth-authorizations) will be +// removed on November, 13, 2020. For more information, including scheduled brownouts, see the [blog +// post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-auth-endpoint/). +// If you have two-factor authentication setup, Basic Authentication for this endpoint requires that +// you use a one-time password (OTP) and your username and password instead of tokens. For more +// information, see "[Working with two-factor authentication](https://docs.github. +// com/rest/overview/other-authentication-methods#working-with-two-factor-authentication)." +// You can only send one of these scope keys at a time. +// +// Deprecated: schema marks this operation as deprecated. +// // PATCH /authorizations/{authorization_id} func (s *Server) handleOAuthAuthorizationsUpdateAuthorizationRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -31520,6 +33748,8 @@ func (s *Server) handleOAuthAuthorizationsUpdateAuthorizationRequest(args [1]str // handleOrgsBlockUserRequest handles orgs/block-user operation. // +// Block a user from an organization. +// // PUT /orgs/{org}/blocks/{username} func (s *Server) handleOrgsBlockUserRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -31615,6 +33845,11 @@ func (s *Server) handleOrgsBlockUserRequest(args [2]string, w http.ResponseWrite // handleOrgsCancelInvitationRequest handles orgs/cancel-invitation operation. // +// Cancel an organization invitation. In order to cancel an organization invitation, the +// authenticated user must be an organization owner. +// This endpoint triggers [notifications](https://docs.github. +// com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). +// // DELETE /orgs/{org}/invitations/{invitation_id} func (s *Server) handleOrgsCancelInvitationRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -31710,6 +33945,8 @@ func (s *Server) handleOrgsCancelInvitationRequest(args [2]string, w http.Respon // handleOrgsCheckBlockedUserRequest handles orgs/check-blocked-user operation. // +// Check if a user is blocked by an organization. +// // GET /orgs/{org}/blocks/{username} func (s *Server) handleOrgsCheckBlockedUserRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -31805,6 +34042,8 @@ func (s *Server) handleOrgsCheckBlockedUserRequest(args [2]string, w http.Respon // handleOrgsCheckMembershipForUserRequest handles orgs/check-membership-for-user operation. // +// Check if a user is, publicly or privately, a member of the organization. +// // GET /orgs/{org}/members/{username} func (s *Server) handleOrgsCheckMembershipForUserRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -31900,6 +34139,8 @@ func (s *Server) handleOrgsCheckMembershipForUserRequest(args [2]string, w http. // handleOrgsCheckPublicMembershipForUserRequest handles orgs/check-public-membership-for-user operation. // +// Check public organization membership for a user. +// // GET /orgs/{org}/public_members/{username} func (s *Server) handleOrgsCheckPublicMembershipForUserRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -31995,6 +34236,12 @@ func (s *Server) handleOrgsCheckPublicMembershipForUserRequest(args [2]string, w // handleOrgsConvertMemberToOutsideCollaboratorRequest handles orgs/convert-member-to-outside-collaborator operation. // +// When an organization member is converted to an outside collaborator, they'll only have access to +// the repositories that their current team membership allows. The user will no longer be a member of +// the organization. For more information, see "[Converting an organization member to an outside +// collaborator](https://help.github. +// com/articles/converting-an-organization-member-to-an-outside-collaborator/)". +// // PUT /orgs/{org}/outside_collaborators/{username} func (s *Server) handleOrgsConvertMemberToOutsideCollaboratorRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -32090,6 +34337,16 @@ func (s *Server) handleOrgsConvertMemberToOutsideCollaboratorRequest(args [2]str // handleOrgsCreateInvitationRequest handles orgs/create-invitation operation. // +// Invite people to an organization by using their GitHub user ID or their email address. In order to +// create invitations in an organization, the authenticated user must be an organization owner. +// This endpoint triggers [notifications](https://docs.github. +// com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating +// content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary +// rate limits](https://docs.github. +// com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary +// rate limits](https://docs.github. +// com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)" for details. +// // POST /orgs/{org}/invitations func (s *Server) handleOrgsCreateInvitationRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -32199,6 +34456,8 @@ func (s *Server) handleOrgsCreateInvitationRequest(args [1]string, w http.Respon // handleOrgsCreateWebhookRequest handles orgs/create-webhook operation. // +// Here's how you can create a hook that posts payloads in JSON format:. +// // POST /orgs/{org}/hooks func (s *Server) handleOrgsCreateWebhookRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -32308,6 +34567,8 @@ func (s *Server) handleOrgsCreateWebhookRequest(args [1]string, w http.ResponseW // handleOrgsDeleteWebhookRequest handles orgs/delete-webhook operation. // +// Delete an organization webhook. +// // DELETE /orgs/{org}/hooks/{hook_id} func (s *Server) handleOrgsDeleteWebhookRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -32403,6 +34664,16 @@ func (s *Server) handleOrgsDeleteWebhookRequest(args [2]string, w http.ResponseW // handleOrgsGetRequest handles orgs/get operation. // +// To see many of the organization response values, you need to be an authenticated organization +// owner with the `admin:org` scope. When the value of `two_factor_requirement_enabled` is `true`, +// the organization requires all members, billing managers, and outside collaborators to enable +// [two-factor authentication](https://help.github. +// com/articles/securing-your-account-with-two-factor-authentication-2fa/). +// GitHub Apps with the `Organization plan` permission can use this endpoint to retrieve information +// about an organization's GitHub plan. See "[Authenticating with GitHub Apps](https://docs.github. +// com/apps/building-github-apps/authenticating-with-github-apps/)" for details. For an example +// response, see 'Response with GitHub plan information' below.". +// // GET /orgs/{org} func (s *Server) handleOrgsGetRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -32497,6 +34768,13 @@ func (s *Server) handleOrgsGetRequest(args [1]string, w http.ResponseWriter, r * // handleOrgsGetAuditLogRequest handles orgs/get-audit-log operation. // +// Gets the audit log for an organization. For more information, see "[Reviewing the audit log for +// your organization](https://docs.github. +// com/github/setting-up-and-managing-organizations-and-teams/reviewing-the-audit-log-for-your-organization)." +// To use this endpoint, you must be an organization owner, and you must use an access token with the +// `admin:org` scope. GitHub Apps must have the `organization_administration` read permission to use +// this endpoint. +// // GET /orgs/{org}/audit-log func (s *Server) handleOrgsGetAuditLogRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -32598,6 +34876,8 @@ func (s *Server) handleOrgsGetAuditLogRequest(args [1]string, w http.ResponseWri // handleOrgsGetMembershipForAuthenticatedUserRequest handles orgs/get-membership-for-authenticated-user operation. // +// Get an organization membership for the authenticated user. +// // GET /user/memberships/orgs/{org} func (s *Server) handleOrgsGetMembershipForAuthenticatedUserRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -32692,6 +34972,10 @@ func (s *Server) handleOrgsGetMembershipForAuthenticatedUserRequest(args [1]stri // handleOrgsGetMembershipForUserRequest handles orgs/get-membership-for-user operation. // +// In order to get a user's membership with an organization, the authenticated user must be an +// organization member. The `state` parameter in the response can be used to identify the user's +// membership status. +// // GET /orgs/{org}/memberships/{username} func (s *Server) handleOrgsGetMembershipForUserRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -32787,6 +35071,10 @@ func (s *Server) handleOrgsGetMembershipForUserRequest(args [2]string, w http.Re // handleOrgsGetWebhookRequest handles orgs/get-webhook operation. // +// Returns a webhook configured in an organization. To get only the webhook `config` properties, see +// "[Get a webhook configuration for an +// organization](/rest/reference/orgs#get-a-webhook-configuration-for-an-organization).". +// // GET /orgs/{org}/hooks/{hook_id} func (s *Server) handleOrgsGetWebhookRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -32882,6 +35170,12 @@ func (s *Server) handleOrgsGetWebhookRequest(args [2]string, w http.ResponseWrit // handleOrgsGetWebhookConfigForOrgRequest handles orgs/get-webhook-config-for-org operation. // +// Returns the webhook configuration for an organization. To get more information about the webhook, +// including the `active` state and `events`, use "[Get an organization webhook +// ](/rest/reference/orgs#get-an-organization-webhook)." +// Access tokens must have the `admin:org_hook` scope, and GitHub Apps must have the +// `organization_hooks:read` permission. +// // GET /orgs/{org}/hooks/{hook_id}/config func (s *Server) handleOrgsGetWebhookConfigForOrgRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -32977,6 +35271,8 @@ func (s *Server) handleOrgsGetWebhookConfigForOrgRequest(args [2]string, w http. // handleOrgsGetWebhookDeliveryRequest handles orgs/get-webhook-delivery operation. // +// Returns a delivery for a webhook configured in an organization. +// // GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id} func (s *Server) handleOrgsGetWebhookDeliveryRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -33073,6 +35369,11 @@ func (s *Server) handleOrgsGetWebhookDeliveryRequest(args [3]string, w http.Resp // handleOrgsListRequest handles orgs/list operation. // +// Lists all organizations, in the order that they were created on GitHub. +// **Note:** Pagination is powered exclusively by the `since` parameter. Use the [Link +// header](https://docs.github.com/rest/overview/resources-in-the-rest-api#link-header) to get the +// URL for the next page of organizations. +// // GET /organizations func (s *Server) handleOrgsListRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -33168,6 +35469,8 @@ func (s *Server) handleOrgsListRequest(args [0]string, w http.ResponseWriter, r // handleOrgsListBlockedUsersRequest handles orgs/list-blocked-users operation. // +// List the users blocked by an organization. +// // GET /orgs/{org}/blocks func (s *Server) handleOrgsListBlockedUsersRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -33262,6 +35565,9 @@ func (s *Server) handleOrgsListBlockedUsersRequest(args [1]string, w http.Respon // handleOrgsListFailedInvitationsRequest handles orgs/list-failed-invitations operation. // +// The return hash contains `failed_at` and `failed_reason` fields which represent the time at which +// the invitation failed and the reason for the failure. +// // GET /orgs/{org}/failed_invitations func (s *Server) handleOrgsListFailedInvitationsRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -33358,6 +35664,13 @@ func (s *Server) handleOrgsListFailedInvitationsRequest(args [1]string, w http.R // handleOrgsListForAuthenticatedUserRequest handles orgs/list-for-authenticated-user operation. // +// List organizations for the authenticated user. +// **OAuth scope requirements** +// This only lists organizations that your authorization allows you to operate on in some way (e.g., +// you can list teams with `read:org` scope, you can publicize your organization membership with +// `user` scope, etc.). Therefore, this API requires at least `user` or `read:org` scope. OAuth +// requests with insufficient scope receive a `403 Forbidden` response. +// // GET /user/orgs func (s *Server) handleOrgsListForAuthenticatedUserRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -33453,6 +35766,13 @@ func (s *Server) handleOrgsListForAuthenticatedUserRequest(args [0]string, w htt // handleOrgsListForUserRequest handles orgs/list-for-user operation. // +// List [public organization memberships](https://help.github. +// com/articles/publicizing-or-concealing-organization-membership) for the specified user. +// This method only lists _public_ memberships, regardless of authentication. If you need to fetch +// all of the organization memberships (public and private) for the authenticated user, use the [List +// organizations for the authenticated user](https://docs.github. +// com/rest/reference/orgs#list-organizations-for-the-authenticated-user) API instead. +// // GET /users/{username}/orgs func (s *Server) handleOrgsListForUserRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -33549,6 +35869,9 @@ func (s *Server) handleOrgsListForUserRequest(args [1]string, w http.ResponseWri // handleOrgsListInvitationTeamsRequest handles orgs/list-invitation-teams operation. // +// List all teams associated with an invitation. In order to see invitations in an organization, the +// authenticated user must be an organization owner. +// // GET /orgs/{org}/invitations/{invitation_id}/teams func (s *Server) handleOrgsListInvitationTeamsRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -33646,6 +35969,9 @@ func (s *Server) handleOrgsListInvitationTeamsRequest(args [2]string, w http.Res // handleOrgsListMembersRequest handles orgs/list-members operation. // +// List all users who are members of an organization. If the authenticated user is also a member of +// this organization then both concealed and public members will be returned. +// // GET /orgs/{org}/members func (s *Server) handleOrgsListMembersRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -33744,6 +36070,8 @@ func (s *Server) handleOrgsListMembersRequest(args [1]string, w http.ResponseWri // handleOrgsListMembershipsForAuthenticatedUserRequest handles orgs/list-memberships-for-authenticated-user operation. // +// List organization memberships for the authenticated user. +// // GET /user/memberships/orgs func (s *Server) handleOrgsListMembershipsForAuthenticatedUserRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -33840,6 +36168,8 @@ func (s *Server) handleOrgsListMembershipsForAuthenticatedUserRequest(args [0]st // handleOrgsListOutsideCollaboratorsRequest handles orgs/list-outside-collaborators operation. // +// List all users who are outside collaborators of an organization. +// // GET /orgs/{org}/outside_collaborators func (s *Server) handleOrgsListOutsideCollaboratorsRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -33937,6 +36267,11 @@ func (s *Server) handleOrgsListOutsideCollaboratorsRequest(args [1]string, w htt // handleOrgsListPendingInvitationsRequest handles orgs/list-pending-invitations operation. // +// The return hash contains a `role` field which refers to the Organization Invitation role and will +// be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or +// `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be +// `null`. +// // GET /orgs/{org}/invitations func (s *Server) handleOrgsListPendingInvitationsRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -34033,6 +36368,8 @@ func (s *Server) handleOrgsListPendingInvitationsRequest(args [1]string, w http. // handleOrgsListPublicMembersRequest handles orgs/list-public-members operation. // +// Members of an organization can choose to have their membership publicized or not. +// // GET /orgs/{org}/public_members func (s *Server) handleOrgsListPublicMembersRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -34129,6 +36466,15 @@ func (s *Server) handleOrgsListPublicMembersRequest(args [1]string, w http.Respo // handleOrgsListSamlSSOAuthorizationsRequest handles orgs/list-saml-sso-authorizations operation. // +// Listing and deleting credential authorizations is available to organizations with GitHub +// Enterprise Cloud. For more information, see [GitHub's products](https://help.github. +// com/github/getting-started-with-github/githubs-products). +// An authenticated organization owner with the `read:org` scope can list all credential +// authorizations for an organization that uses SAML single sign-on (SSO). The credentials are either +// personal access tokens or SSH keys that organization members have authorized for the organization. +// For more information, see [About authentication with SAML single sign-on](https://help.github. +// com/en/articles/about-authentication-with-saml-single-sign-on). +// // GET /orgs/{org}/credential-authorizations func (s *Server) handleOrgsListSamlSSOAuthorizationsRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -34223,6 +36569,8 @@ func (s *Server) handleOrgsListSamlSSOAuthorizationsRequest(args [1]string, w ht // handleOrgsListWebhookDeliveriesRequest handles orgs/list-webhook-deliveries operation. // +// Returns a list of webhook deliveries for a webhook configured in an organization. +// // GET /orgs/{org}/hooks/{hook_id}/deliveries func (s *Server) handleOrgsListWebhookDeliveriesRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -34320,6 +36668,8 @@ func (s *Server) handleOrgsListWebhookDeliveriesRequest(args [2]string, w http.R // handleOrgsListWebhooksRequest handles orgs/list-webhooks operation. // +// List organization webhooks. +// // GET /orgs/{org}/hooks func (s *Server) handleOrgsListWebhooksRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -34416,6 +36766,9 @@ func (s *Server) handleOrgsListWebhooksRequest(args [1]string, w http.ResponseWr // handleOrgsPingWebhookRequest handles orgs/ping-webhook operation. // +// This will trigger a [ping event](https://docs.github.com/webhooks/#ping-event) to be sent to the +// hook. +// // POST /orgs/{org}/hooks/{hook_id}/pings func (s *Server) handleOrgsPingWebhookRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -34511,6 +36864,8 @@ func (s *Server) handleOrgsPingWebhookRequest(args [2]string, w http.ResponseWri // handleOrgsRedeliverWebhookDeliveryRequest handles orgs/redeliver-webhook-delivery operation. // +// Redeliver a delivery for a webhook configured in an organization. +// // POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts func (s *Server) handleOrgsRedeliverWebhookDeliveryRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -34607,6 +36962,9 @@ func (s *Server) handleOrgsRedeliverWebhookDeliveryRequest(args [3]string, w htt // handleOrgsRemoveMemberRequest handles orgs/remove-member operation. // +// Removing a user from this list will remove them from all teams and they will no longer have any +// access to the organization's repositories. +// // DELETE /orgs/{org}/members/{username} func (s *Server) handleOrgsRemoveMemberRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -34702,6 +37060,12 @@ func (s *Server) handleOrgsRemoveMemberRequest(args [2]string, w http.ResponseWr // handleOrgsRemoveMembershipForUserRequest handles orgs/remove-membership-for-user operation. // +// In order to remove a user's membership with an organization, the authenticated user must be an +// organization owner. +// If the specified user is an active member of the organization, this will remove them from the +// organization. If the specified user has been invited to the organization, this will cancel their +// invitation. The specified user will receive an email notification in both cases. +// // DELETE /orgs/{org}/memberships/{username} func (s *Server) handleOrgsRemoveMembershipForUserRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -34797,6 +37161,8 @@ func (s *Server) handleOrgsRemoveMembershipForUserRequest(args [2]string, w http // handleOrgsRemoveOutsideCollaboratorRequest handles orgs/remove-outside-collaborator operation. // +// Removing a user from this list will remove them from all the organization's repositories. +// // DELETE /orgs/{org}/outside_collaborators/{username} func (s *Server) handleOrgsRemoveOutsideCollaboratorRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -34892,6 +37258,8 @@ func (s *Server) handleOrgsRemoveOutsideCollaboratorRequest(args [2]string, w ht // handleOrgsRemovePublicMembershipForAuthenticatedUserRequest handles orgs/remove-public-membership-for-authenticated-user operation. // +// Remove public organization membership for the authenticated user. +// // DELETE /orgs/{org}/public_members/{username} func (s *Server) handleOrgsRemovePublicMembershipForAuthenticatedUserRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -34987,6 +37355,14 @@ func (s *Server) handleOrgsRemovePublicMembershipForAuthenticatedUserRequest(arg // handleOrgsRemoveSamlSSOAuthorizationRequest handles orgs/remove-saml-sso-authorization operation. // +// Listing and deleting credential authorizations is available to organizations with GitHub +// Enterprise Cloud. For more information, see [GitHub's products](https://help.github. +// com/github/getting-started-with-github/githubs-products). +// An authenticated organization owner with the `admin:org` scope can remove a credential +// authorization for an organization that uses SAML SSO. Once you remove someone's credential +// authorization, they will need to create a new personal access token or SSH key and authorize it +// for the organization they want to access. +// // DELETE /orgs/{org}/credential-authorizations/{credential_id} func (s *Server) handleOrgsRemoveSamlSSOAuthorizationRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -35082,6 +37458,21 @@ func (s *Server) handleOrgsRemoveSamlSSOAuthorizationRequest(args [2]string, w h // handleOrgsSetMembershipForUserRequest handles orgs/set-membership-for-user operation. // +// Only authenticated organization owners can add a member to the organization or update the member's +// role. +// * If the authenticated user is _adding_ a member to the organization, the invited user will +// receive an email inviting them to the organization. The user's [membership status](https://docs. +// github.com/rest/reference/orgs#get-organization-membership-for-a-user) will be `pending` until +// they accept the invitation. +// * Authenticated users can _update_ a user's membership by passing the `role` parameter. If the +// authenticated user changes a member's role to `admin`, the affected user will receive an email +// notifying them that they've been made an organization owner. If the authenticated user changes an +// owner's role to `member`, no email will be sent. +// **Rate limits** +// To prevent abuse, the authenticated user is limited to 50 organization invitations per 24 hour +// period. If the organization is more than one month old or on a paid plan, the limit is 500 +// invitations per 24 hour period. +// // PUT /orgs/{org}/memberships/{username} func (s *Server) handleOrgsSetMembershipForUserRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -35192,6 +37583,12 @@ func (s *Server) handleOrgsSetMembershipForUserRequest(args [2]string, w http.Re // handleOrgsSetPublicMembershipForAuthenticatedUserRequest handles orgs/set-public-membership-for-authenticated-user operation. // +// The user can publicize their own membership. (A user cannot publicize the membership for another +// user.) +// Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more +// information, see "[HTTP verbs](https://docs.github. +// com/rest/overview/resources-in-the-rest-api#http-verbs).". +// // PUT /orgs/{org}/public_members/{username} func (s *Server) handleOrgsSetPublicMembershipForAuthenticatedUserRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -35287,6 +37684,8 @@ func (s *Server) handleOrgsSetPublicMembershipForAuthenticatedUserRequest(args [ // handleOrgsUnblockUserRequest handles orgs/unblock-user operation. // +// Unblock a user from an organization. +// // DELETE /orgs/{org}/blocks/{username} func (s *Server) handleOrgsUnblockUserRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -35382,6 +37781,8 @@ func (s *Server) handleOrgsUnblockUserRequest(args [2]string, w http.ResponseWri // handleOrgsUpdateMembershipForAuthenticatedUserRequest handles orgs/update-membership-for-authenticated-user operation. // +// Update an organization membership for the authenticated user. +// // PATCH /user/memberships/orgs/{org} func (s *Server) handleOrgsUpdateMembershipForAuthenticatedUserRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -35491,6 +37892,12 @@ func (s *Server) handleOrgsUpdateMembershipForAuthenticatedUserRequest(args [1]s // handleOrgsUpdateWebhookRequest handles orgs/update-webhook operation. // +// Updates a webhook configured in an organization. When you update a webhook, the `secret` will be +// overwritten. If you previously had a `secret` set, you must provide the same `secret` or set a new +// `secret` or the secret will be removed. If you are only updating individual webhook `config` +// properties, use "[Update a webhook configuration for an +// organization](/rest/reference/orgs#update-a-webhook-configuration-for-an-organization).". +// // PATCH /orgs/{org}/hooks/{hook_id} func (s *Server) handleOrgsUpdateWebhookRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -35601,6 +38008,12 @@ func (s *Server) handleOrgsUpdateWebhookRequest(args [2]string, w http.ResponseW // handleOrgsUpdateWebhookConfigForOrgRequest handles orgs/update-webhook-config-for-org operation. // +// Updates the webhook configuration for an organization. To update more information about the +// webhook, including the `active` state and `events`, use "[Update an organization webhook +// ](/rest/reference/orgs#update-an-organization-webhook)." +// Access tokens must have the `admin:org_hook` scope, and GitHub Apps must have the +// `organization_hooks:write` permission. +// // PATCH /orgs/{org}/hooks/{hook_id}/config func (s *Server) handleOrgsUpdateWebhookConfigForOrgRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -35711,6 +38124,13 @@ func (s *Server) handleOrgsUpdateWebhookConfigForOrgRequest(args [2]string, w ht // handlePackagesDeletePackageForAuthenticatedUserRequest handles packages/delete-package-for-authenticated-user operation. // +// Deletes a package owned by the authenticated user. You cannot delete a public package if any +// version of the package has more than 5,000 downloads. In this scenario, contact GitHub support for +// further assistance. +// To use this endpoint, you must authenticate using an access token with the `packages:read` and +// `packages:delete` scopes. +// If `package_type` is not `container`, your token must also include the `repo` scope. +// // DELETE /user/packages/{package_type}/{package_name} func (s *Server) handlePackagesDeletePackageForAuthenticatedUserRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -35806,6 +38226,15 @@ func (s *Server) handlePackagesDeletePackageForAuthenticatedUserRequest(args [2] // handlePackagesDeletePackageForOrgRequest handles packages/delete-package-for-org operation. // +// Deletes an entire package in an organization. You cannot delete a public package if any version of +// the package has more than 5,000 downloads. In this scenario, contact GitHub support for further +// assistance. +// To use this endpoint, you must have admin permissions in the organization and authenticate using +// an access token with the `packages:read` and `packages:delete` scopes. In addition: +// - If `package_type` is not `container`, your token must also include the `repo` scope. +// - If `package_type` is `container`, you must also have admin permissions to the container you want +// to delete. +// // DELETE /orgs/{org}/packages/{package_type}/{package_name} func (s *Server) handlePackagesDeletePackageForOrgRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -35902,6 +38331,15 @@ func (s *Server) handlePackagesDeletePackageForOrgRequest(args [3]string, w http // handlePackagesDeletePackageForUserRequest handles packages/delete-package-for-user operation. // +// Deletes an entire package for a user. You cannot delete a public package if any version of the +// package has more than 5,000 downloads. In this scenario, contact GitHub support for further +// assistance. +// To use this endpoint, you must authenticate using an access token with the `packages:read` and +// `packages:delete` scopes. In addition: +// - If `package_type` is not `container`, your token must also include the `repo` scope. +// - If `package_type` is `container`, you must also have admin permissions to the container you want +// to delete. +// // DELETE /users/{username}/packages/{package_type}/{package_name} func (s *Server) handlePackagesDeletePackageForUserRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -35998,6 +38436,13 @@ func (s *Server) handlePackagesDeletePackageForUserRequest(args [3]string, w htt // handlePackagesDeletePackageVersionForAuthenticatedUserRequest handles packages/delete-package-version-for-authenticated-user operation. // +// Deletes a specific package version for a package owned by the authenticated user. If the package +// is public and the package version has more than 5,000 downloads, you cannot delete the package +// version. In this scenario, contact GitHub support for further assistance. +// To use this endpoint, you must have admin permissions in the organization and authenticate using +// an access token with the `packages:read` and `packages:delete` scopes. +// If `package_type` is not `container`, your token must also include the `repo` scope. +// // DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id} func (s *Server) handlePackagesDeletePackageVersionForAuthenticatedUserRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -36094,6 +38539,15 @@ func (s *Server) handlePackagesDeletePackageVersionForAuthenticatedUserRequest(a // handlePackagesDeletePackageVersionForOrgRequest handles packages/delete-package-version-for-org operation. // +// Deletes a specific package version in an organization. If the package is public and the package +// version has more than 5,000 downloads, you cannot delete the package version. In this scenario, +// contact GitHub support for further assistance. +// To use this endpoint, you must have admin permissions in the organization and authenticate using +// an access token with the `packages:read` and `packages:delete` scopes. In addition: +// - If `package_type` is not `container`, your token must also include the `repo` scope. +// - If `package_type` is `container`, you must also have admin permissions to the container you want +// to delete. +// // DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id} func (s *Server) handlePackagesDeletePackageVersionForOrgRequest(args [4]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -36191,6 +38645,15 @@ func (s *Server) handlePackagesDeletePackageVersionForOrgRequest(args [4]string, // handlePackagesDeletePackageVersionForUserRequest handles packages/delete-package-version-for-user operation. // +// Deletes a specific package version for a user. If the package is public and the package version +// has more than 5,000 downloads, you cannot delete the package version. In this scenario, contact +// GitHub support for further assistance. +// To use this endpoint, you must authenticate using an access token with the `packages:read` and +// `packages:delete` scopes. In addition: +// - If `package_type` is not `container`, your token must also include the `repo` scope. +// - If `package_type` is `container`, you must also have admin permissions to the container you want +// to delete. +// // DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id} func (s *Server) handlePackagesDeletePackageVersionForUserRequest(args [4]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -36288,6 +38751,10 @@ func (s *Server) handlePackagesDeletePackageVersionForUserRequest(args [4]string // handlePackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserRequest handles packages/get-all-package-versions-for-package-owned-by-authenticated-user operation. // +// Returns all package versions for a package owned by the authenticated user. +// To use this endpoint, you must authenticate using an access token with the `packages:read` scope. +// If `package_type` is not `container`, your token must also include the `repo` scope. +// // GET /user/packages/{package_type}/{package_name}/versions func (s *Server) handlePackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -36386,6 +38853,10 @@ func (s *Server) handlePackagesGetAllPackageVersionsForPackageOwnedByAuthenticat // handlePackagesGetAllPackageVersionsForPackageOwnedByOrgRequest handles packages/get-all-package-versions-for-package-owned-by-org operation. // +// Returns all package versions for a package owned by an organization. +// To use this endpoint, you must authenticate using an access token with the `packages:read` scope. +// If `package_type` is not `container`, your token must also include the `repo` scope. +// // GET /orgs/{org}/packages/{package_type}/{package_name}/versions func (s *Server) handlePackagesGetAllPackageVersionsForPackageOwnedByOrgRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -36485,6 +38956,10 @@ func (s *Server) handlePackagesGetAllPackageVersionsForPackageOwnedByOrgRequest( // handlePackagesGetAllPackageVersionsForPackageOwnedByUserRequest handles packages/get-all-package-versions-for-package-owned-by-user operation. // +// Returns all package versions for a public package owned by a specified user. +// To use this endpoint, you must authenticate using an access token with the `packages:read` scope. +// If `package_type` is not `container`, your token must also include the `repo` scope. +// // GET /users/{username}/packages/{package_type}/{package_name}/versions func (s *Server) handlePackagesGetAllPackageVersionsForPackageOwnedByUserRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -36581,6 +39056,10 @@ func (s *Server) handlePackagesGetAllPackageVersionsForPackageOwnedByUserRequest // handlePackagesGetPackageForAuthenticatedUserRequest handles packages/get-package-for-authenticated-user operation. // +// Gets a specific package for a package owned by the authenticated user. +// To use this endpoint, you must authenticate using an access token with the `packages:read` scope. +// If `package_type` is not `container`, your token must also include the `repo` scope. +// // GET /user/packages/{package_type}/{package_name} func (s *Server) handlePackagesGetPackageForAuthenticatedUserRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -36676,6 +39155,10 @@ func (s *Server) handlePackagesGetPackageForAuthenticatedUserRequest(args [2]str // handlePackagesGetPackageForOrganizationRequest handles packages/get-package-for-organization operation. // +// Gets a specific package in an organization. +// To use this endpoint, you must authenticate using an access token with the `packages:read` scope. +// If `package_type` is not `container`, your token must also include the `repo` scope. +// // GET /orgs/{org}/packages/{package_type}/{package_name} func (s *Server) handlePackagesGetPackageForOrganizationRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -36772,6 +39255,10 @@ func (s *Server) handlePackagesGetPackageForOrganizationRequest(args [3]string, // handlePackagesGetPackageForUserRequest handles packages/get-package-for-user operation. // +// Gets a specific package metadata for a public package owned by a user. +// To use this endpoint, you must authenticate using an access token with the `packages:read` scope. +// If `package_type` is not `container`, your token must also include the `repo` scope. +// // GET /users/{username}/packages/{package_type}/{package_name} func (s *Server) handlePackagesGetPackageForUserRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -36868,6 +39355,10 @@ func (s *Server) handlePackagesGetPackageForUserRequest(args [3]string, w http.R // handlePackagesGetPackageVersionForAuthenticatedUserRequest handles packages/get-package-version-for-authenticated-user operation. // +// Gets a specific package version for a package owned by the authenticated user. +// To use this endpoint, you must authenticate using an access token with the `packages:read` scope. +// If `package_type` is not `container`, your token must also include the `repo` scope. +// // GET /user/packages/{package_type}/{package_name}/versions/{package_version_id} func (s *Server) handlePackagesGetPackageVersionForAuthenticatedUserRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -36964,6 +39455,10 @@ func (s *Server) handlePackagesGetPackageVersionForAuthenticatedUserRequest(args // handlePackagesGetPackageVersionForOrganizationRequest handles packages/get-package-version-for-organization operation. // +// Gets a specific package version in an organization. +// You must authenticate using an access token with the `packages:read` scope. +// If `package_type` is not `container`, your token must also include the `repo` scope. +// // GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id} func (s *Server) handlePackagesGetPackageVersionForOrganizationRequest(args [4]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -37061,6 +39556,11 @@ func (s *Server) handlePackagesGetPackageVersionForOrganizationRequest(args [4]s // handlePackagesGetPackageVersionForUserRequest handles packages/get-package-version-for-user operation. // +// Gets a specific package version for a public package owned by a specified user. +// At this time, to use this endpoint, you must authenticate using an access token with the +// `packages:read` scope. +// If `package_type` is not `container`, your token must also include the `repo` scope. +// // GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id} func (s *Server) handlePackagesGetPackageVersionForUserRequest(args [4]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -37158,6 +39658,10 @@ func (s *Server) handlePackagesGetPackageVersionForUserRequest(args [4]string, w // handlePackagesListPackagesForAuthenticatedUserRequest handles packages/list-packages-for-authenticated-user operation. // +// Lists packages owned by the authenticated user within the user's namespace. +// To use this endpoint, you must authenticate using an access token with the `packages:read` scope. +// If `package_type` is not `container`, your token must also include the `repo` scope. +// // GET /user/packages func (s *Server) handlePackagesListPackagesForAuthenticatedUserRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -37253,6 +39757,10 @@ func (s *Server) handlePackagesListPackagesForAuthenticatedUserRequest(args [0]s // handlePackagesListPackagesForOrganizationRequest handles packages/list-packages-for-organization operation. // +// Lists all packages in an organization readable by the user. +// To use this endpoint, you must authenticate using an access token with the `packages:read` scope. +// If `package_type` is not `container`, your token must also include the `repo` scope. +// // GET /orgs/{org}/packages func (s *Server) handlePackagesListPackagesForOrganizationRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -37349,6 +39857,10 @@ func (s *Server) handlePackagesListPackagesForOrganizationRequest(args [1]string // handlePackagesListPackagesForUserRequest handles packages/list-packages-for-user operation. // +// Lists all packages in a user's namespace for which the requesting user has access. +// To use this endpoint, you must authenticate using an access token with the `packages:read` scope. +// If `package_type` is not `container`, your token must also include the `repo` scope. +// // GET /users/{username}/packages func (s *Server) handlePackagesListPackagesForUserRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -37445,6 +39957,17 @@ func (s *Server) handlePackagesListPackagesForUserRequest(args [1]string, w http // handlePackagesRestorePackageForAuthenticatedUserRequest handles packages/restore-package-for-authenticated-user operation. // +// Restores a package owned by the authenticated user. +// You can restore a deleted package under the following conditions: +// - The package was deleted within the last 30 days. +// - The same package namespace and version is still available and not reused for a new package. If +// the same package namespace is not available, you will not be able to restore your package. In this +// scenario, to restore the deleted package, you must delete the new package that uses the deleted +// package's namespace first. +// To use this endpoint, you must authenticate using an access token with the `packages:read` and +// `packages:write` scopes. If `package_type` is not `container`, your token must also include the +// `repo` scope. +// // POST /user/packages/{package_type}/{package_name}/restore func (s *Server) handlePackagesRestorePackageForAuthenticatedUserRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -37541,6 +40064,19 @@ func (s *Server) handlePackagesRestorePackageForAuthenticatedUserRequest(args [2 // handlePackagesRestorePackageForOrgRequest handles packages/restore-package-for-org operation. // +// Restores an entire package in an organization. +// You can restore a deleted package under the following conditions: +// - The package was deleted within the last 30 days. +// - The same package namespace and version is still available and not reused for a new package. If +// the same package namespace is not available, you will not be able to restore your package. In this +// scenario, to restore the deleted package, you must delete the new package that uses the deleted +// package's namespace first. +// To use this endpoint, you must have admin permissions in the organization and authenticate using +// an access token with the `packages:read` and `packages:write` scopes. In addition: +// - If `package_type` is not `container`, your token must also include the `repo` scope. +// - If `package_type` is `container`, you must also have admin permissions to the container that you +// want to restore. +// // POST /orgs/{org}/packages/{package_type}/{package_name}/restore func (s *Server) handlePackagesRestorePackageForOrgRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -37638,6 +40174,19 @@ func (s *Server) handlePackagesRestorePackageForOrgRequest(args [3]string, w htt // handlePackagesRestorePackageForUserRequest handles packages/restore-package-for-user operation. // +// Restores an entire package for a user. +// You can restore a deleted package under the following conditions: +// - The package was deleted within the last 30 days. +// - The same package namespace and version is still available and not reused for a new package. If +// the same package namespace is not available, you will not be able to restore your package. In this +// scenario, to restore the deleted package, you must delete the new package that uses the deleted +// package's namespace first. +// To use this endpoint, you must authenticate using an access token with the `packages:read` and +// `packages:write` scopes. In addition: +// - If `package_type` is not `container`, your token must also include the `repo` scope. +// - If `package_type` is `container`, you must also have admin permissions to the container that you +// want to restore. +// // POST /users/{username}/packages/{package_type}/{package_name}/restore func (s *Server) handlePackagesRestorePackageForUserRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -37735,6 +40284,17 @@ func (s *Server) handlePackagesRestorePackageForUserRequest(args [3]string, w ht // handlePackagesRestorePackageVersionForAuthenticatedUserRequest handles packages/restore-package-version-for-authenticated-user operation. // +// Restores a package version owned by the authenticated user. +// You can restore a deleted package version under the following conditions: +// - The package was deleted within the last 30 days. +// - The same package namespace and version is still available and not reused for a new package. If +// the same package namespace is not available, you will not be able to restore your package. In this +// scenario, to restore the deleted package, you must delete the new package that uses the deleted +// package's namespace first. +// To use this endpoint, you must authenticate using an access token with the `packages:read` and +// `packages:write` scopes. If `package_type` is not `container`, your token must also include the +// `repo` scope. +// // POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore func (s *Server) handlePackagesRestorePackageVersionForAuthenticatedUserRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -37831,6 +40391,19 @@ func (s *Server) handlePackagesRestorePackageVersionForAuthenticatedUserRequest( // handlePackagesRestorePackageVersionForOrgRequest handles packages/restore-package-version-for-org operation. // +// Restores a specific package version in an organization. +// You can restore a deleted package under the following conditions: +// - The package was deleted within the last 30 days. +// - The same package namespace and version is still available and not reused for a new package. If +// the same package namespace is not available, you will not be able to restore your package. In this +// scenario, to restore the deleted package, you must delete the new package that uses the deleted +// package's namespace first. +// To use this endpoint, you must have admin permissions in the organization and authenticate using +// an access token with the `packages:read` and `packages:write` scopes. In addition: +// - If `package_type` is not `container`, your token must also include the `repo` scope. +// - If `package_type` is `container`, you must also have admin permissions to the container that you +// want to restore. +// // POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore func (s *Server) handlePackagesRestorePackageVersionForOrgRequest(args [4]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -37928,6 +40501,19 @@ func (s *Server) handlePackagesRestorePackageVersionForOrgRequest(args [4]string // handlePackagesRestorePackageVersionForUserRequest handles packages/restore-package-version-for-user operation. // +// Restores a specific package version for a user. +// You can restore a deleted package under the following conditions: +// - The package was deleted within the last 30 days. +// - The same package namespace and version is still available and not reused for a new package. If +// the same package namespace is not available, you will not be able to restore your package. In this +// scenario, to restore the deleted package, you must delete the new package that uses the deleted +// package's namespace first. +// To use this endpoint, you must authenticate using an access token with the `packages:read` and +// `packages:write` scopes. In addition: +// - If `package_type` is not `container`, your token must also include the `repo` scope. +// - If `package_type` is `container`, you must also have admin permissions to the container that you +// want to restore. +// // POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore func (s *Server) handlePackagesRestorePackageVersionForUserRequest(args [4]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -38025,6 +40611,9 @@ func (s *Server) handlePackagesRestorePackageVersionForUserRequest(args [4]strin // handleProjectsAddCollaboratorRequest handles projects/add-collaborator operation. // +// Adds a collaborator to an organization project and sets their permission level. You must be an +// organization owner or a project `admin` to add a collaborator. +// // PUT /projects/{project_id}/collaborators/{username} func (s *Server) handleProjectsAddCollaboratorRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -38135,6 +40724,8 @@ func (s *Server) handleProjectsAddCollaboratorRequest(args [2]string, w http.Res // handleProjectsCreateColumnRequest handles projects/create-column operation. // +// Create a project column. +// // POST /projects/{project_id}/columns func (s *Server) handleProjectsCreateColumnRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -38244,6 +40835,8 @@ func (s *Server) handleProjectsCreateColumnRequest(args [1]string, w http.Respon // handleProjectsCreateForAuthenticatedUserRequest handles projects/create-for-authenticated-user operation. // +// Create a user project. +// // POST /user/projects func (s *Server) handleProjectsCreateForAuthenticatedUserRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -38341,6 +40934,10 @@ func (s *Server) handleProjectsCreateForAuthenticatedUserRequest(args [0]string, // handleProjectsCreateForOrgRequest handles projects/create-for-org operation. // +// Creates an organization project board. Returns a `404 Not Found` status if projects are disabled +// in the organization. If you do not have sufficient privileges to perform this action, a `401 +// Unauthorized` or `410 Gone` status is returned. +// // POST /orgs/{org}/projects func (s *Server) handleProjectsCreateForOrgRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -38450,6 +41047,10 @@ func (s *Server) handleProjectsCreateForOrgRequest(args [1]string, w http.Respon // handleProjectsCreateForRepoRequest handles projects/create-for-repo operation. // +// Creates a repository project board. Returns a `404 Not Found` status if projects are disabled in +// the repository. If you do not have sufficient privileges to perform this action, a `401 +// Unauthorized` or `410 Gone` status is returned. +// // POST /repos/{owner}/{repo}/projects func (s *Server) handleProjectsCreateForRepoRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -38560,6 +41161,8 @@ func (s *Server) handleProjectsCreateForRepoRequest(args [2]string, w http.Respo // handleProjectsDeleteRequest handles projects/delete operation. // +// Deletes a project board. Returns a `404 Not Found` status if projects are disabled. +// // DELETE /projects/{project_id} func (s *Server) handleProjectsDeleteRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -38654,6 +41257,8 @@ func (s *Server) handleProjectsDeleteRequest(args [1]string, w http.ResponseWrit // handleProjectsDeleteCardRequest handles projects/delete-card operation. // +// Delete a project card. +// // DELETE /projects/columns/cards/{card_id} func (s *Server) handleProjectsDeleteCardRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -38748,6 +41353,8 @@ func (s *Server) handleProjectsDeleteCardRequest(args [1]string, w http.Response // handleProjectsDeleteColumnRequest handles projects/delete-column operation. // +// Delete a project column. +// // DELETE /projects/columns/{column_id} func (s *Server) handleProjectsDeleteColumnRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -38842,6 +41449,10 @@ func (s *Server) handleProjectsDeleteColumnRequest(args [1]string, w http.Respon // handleProjectsGetRequest handles projects/get operation. // +// Gets a project by its `id`. Returns a `404 Not Found` status if projects are disabled. If you do +// not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status +// is returned. +// // GET /projects/{project_id} func (s *Server) handleProjectsGetRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -38936,6 +41547,8 @@ func (s *Server) handleProjectsGetRequest(args [1]string, w http.ResponseWriter, // handleProjectsGetCardRequest handles projects/get-card operation. // +// Get a project card. +// // GET /projects/columns/cards/{card_id} func (s *Server) handleProjectsGetCardRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -39030,6 +41643,8 @@ func (s *Server) handleProjectsGetCardRequest(args [1]string, w http.ResponseWri // handleProjectsGetColumnRequest handles projects/get-column operation. // +// Get a project column. +// // GET /projects/columns/{column_id} func (s *Server) handleProjectsGetColumnRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -39124,6 +41739,10 @@ func (s *Server) handleProjectsGetColumnRequest(args [1]string, w http.ResponseW // handleProjectsGetPermissionForUserRequest handles projects/get-permission-for-user operation. // +// Returns the collaborator's permission level for an organization project. Possible values for the +// `permission` key: `admin`, `write`, `read`, `none`. You must be an organization owner or a project +// `admin` to review a user's permission level. +// // GET /projects/{project_id}/collaborators/{username}/permission func (s *Server) handleProjectsGetPermissionForUserRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -39219,6 +41838,8 @@ func (s *Server) handleProjectsGetPermissionForUserRequest(args [2]string, w htt // handleProjectsListCardsRequest handles projects/list-cards operation. // +// List project cards. +// // GET /projects/columns/{column_id}/cards func (s *Server) handleProjectsListCardsRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -39316,6 +41937,12 @@ func (s *Server) handleProjectsListCardsRequest(args [1]string, w http.ResponseW // handleProjectsListCollaboratorsRequest handles projects/list-collaborators operation. // +// Lists the collaborators for an organization project. For a project, the list of collaborators +// includes outside collaborators, organization members that are direct collaborators, organization +// members with access through team memberships, organization members with access through default +// organization permissions, and organization owners. You must be an organization owner or a project +// `admin` to list collaborators. +// // GET /projects/{project_id}/collaborators func (s *Server) handleProjectsListCollaboratorsRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -39413,6 +42040,8 @@ func (s *Server) handleProjectsListCollaboratorsRequest(args [1]string, w http.R // handleProjectsListColumnsRequest handles projects/list-columns operation. // +// List project columns. +// // GET /projects/{project_id}/columns func (s *Server) handleProjectsListColumnsRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -39509,6 +42138,10 @@ func (s *Server) handleProjectsListColumnsRequest(args [1]string, w http.Respons // handleProjectsListForOrgRequest handles projects/list-for-org operation. // +// Lists the projects in an organization. Returns a `404 Not Found` status if projects are disabled +// in the organization. If you do not have sufficient privileges to perform this action, a `401 +// Unauthorized` or `410 Gone` status is returned. +// // GET /orgs/{org}/projects func (s *Server) handleProjectsListForOrgRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -39606,6 +42239,10 @@ func (s *Server) handleProjectsListForOrgRequest(args [1]string, w http.Response // handleProjectsListForRepoRequest handles projects/list-for-repo operation. // +// Lists the projects in a repository. Returns a `404 Not Found` status if projects are disabled in +// the repository. If you do not have sufficient privileges to perform this action, a `401 +// Unauthorized` or `410 Gone` status is returned. +// // GET /repos/{owner}/{repo}/projects func (s *Server) handleProjectsListForRepoRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -39704,6 +42341,8 @@ func (s *Server) handleProjectsListForRepoRequest(args [2]string, w http.Respons // handleProjectsListForUserRequest handles projects/list-for-user operation. // +// List user projects. +// // GET /users/{username}/projects func (s *Server) handleProjectsListForUserRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -39801,6 +42440,8 @@ func (s *Server) handleProjectsListForUserRequest(args [1]string, w http.Respons // handleProjectsMoveCardRequest handles projects/move-card operation. // +// Move a project card. +// // POST /projects/columns/cards/{card_id}/moves func (s *Server) handleProjectsMoveCardRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -39910,6 +42551,8 @@ func (s *Server) handleProjectsMoveCardRequest(args [1]string, w http.ResponseWr // handleProjectsMoveColumnRequest handles projects/move-column operation. // +// Move a project column. +// // POST /projects/columns/{column_id}/moves func (s *Server) handleProjectsMoveColumnRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -40019,6 +42662,9 @@ func (s *Server) handleProjectsMoveColumnRequest(args [1]string, w http.Response // handleProjectsRemoveCollaboratorRequest handles projects/remove-collaborator operation. // +// Removes a collaborator from an organization project. You must be an organization owner or a +// project `admin` to remove a collaborator. +// // DELETE /projects/{project_id}/collaborators/{username} func (s *Server) handleProjectsRemoveCollaboratorRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -40114,6 +42760,10 @@ func (s *Server) handleProjectsRemoveCollaboratorRequest(args [2]string, w http. // handleProjectsUpdateRequest handles projects/update operation. // +// Updates a project board's information. Returns a `404 Not Found` status if projects are disabled. +// If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 +// Gone` status is returned. +// // PATCH /projects/{project_id} func (s *Server) handleProjectsUpdateRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -40223,6 +42873,8 @@ func (s *Server) handleProjectsUpdateRequest(args [1]string, w http.ResponseWrit // handleProjectsUpdateCardRequest handles projects/update-card operation. // +// Update an existing project card. +// // PATCH /projects/columns/cards/{card_id} func (s *Server) handleProjectsUpdateCardRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -40332,6 +42984,8 @@ func (s *Server) handleProjectsUpdateCardRequest(args [1]string, w http.Response // handleProjectsUpdateColumnRequest handles projects/update-column operation. // +// Update an existing project column. +// // PATCH /projects/columns/{column_id} func (s *Server) handleProjectsUpdateColumnRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -40441,6 +43095,8 @@ func (s *Server) handleProjectsUpdateColumnRequest(args [1]string, w http.Respon // handlePullsCheckIfMergedRequest handles pulls/check-if-merged operation. // +// Check if a pull request has been merged. +// // GET /repos/{owner}/{repo}/pulls/{pull_number}/merge func (s *Server) handlePullsCheckIfMergedRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -40537,6 +43193,23 @@ func (s *Server) handlePullsCheckIfMergedRequest(args [3]string, w http.Response // handlePullsCreateRequest handles pulls/create operation. // +// Draft pull requests are available in public repositories with GitHub Free and GitHub Free for +// organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private +// repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// To open or update a pull request in a public repository, you must have write access to the head or +// the source branch. For organization-owned repositories, you must be a member of the organization +// that owns the repository to open or update a pull request. +// You can create a new pull request. +// This endpoint triggers [notifications](https://docs.github. +// com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating +// content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary +// rate limits](https://docs.github. +// com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary +// rate limits](https://docs.github. +// com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)" for details. +// // POST /repos/{owner}/{repo}/pulls func (s *Server) handlePullsCreateRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -40647,6 +43320,17 @@ func (s *Server) handlePullsCreateRequest(args [2]string, w http.ResponseWriter, // handlePullsCreateReplyForReviewCommentRequest handles pulls/create-reply-for-review-comment operation. // +// Creates a reply to a review comment for a pull request. For the `comment_id`, provide the ID of +// the review comment you are replying to. This must be the ID of a _top-level review comment_, not a +// reply to that comment. Replies to replies are not supported. +// This endpoint triggers [notifications](https://docs.github. +// com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating +// content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary +// rate limits](https://docs.github. +// com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary +// rate limits](https://docs.github. +// com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)" for details. +// // POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies func (s *Server) handlePullsCreateReplyForReviewCommentRequest(args [4]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -40759,6 +43443,26 @@ func (s *Server) handlePullsCreateReplyForReviewCommentRequest(args [4]string, w // handlePullsCreateReviewRequest handles pulls/create-review operation. // +// This endpoint triggers [notifications](https://docs.github. +// com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating +// content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary +// rate limits](https://docs.github. +// com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary +// rate limits](https://docs.github. +// com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)" for details. +// Pull request reviews created in the `PENDING` state do not include the `submitted_at` property in +// the response. +// **Note:** To comment on a specific line in a file, you need to first determine the _position_ of +// that line in the diff. The GitHub REST API v3 offers the `application/vnd.github.v3.diff` [media +// type](https://docs.github. +// com/rest/overview/media-types#commits-commit-comparison-and-pull-requests). To see a pull request +// diff, add this media type to the `Accept` header of a call to the [single pull +// request](https://docs.github.com/rest/reference/pulls#get-a-pull-request) endpoint. +// The `position` value equals the number of lines down from the first "@@" hunk header in the file +// you want to add a comment. The line just below the "@@" line is position 1, the next line is +// position 2, and so on. The position in the diff continues to increase through lines of whitespace +// and additional hunks until the beginning of a new file. +// // POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews func (s *Server) handlePullsCreateReviewRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -40870,6 +43574,27 @@ func (s *Server) handlePullsCreateReviewRequest(args [3]string, w http.ResponseW // handlePullsCreateReviewCommentRequest handles pulls/create-review-comment operation. // +// Creates a review comment in the pull request diff. To add a regular comment to a pull request +// timeline, see "[Create an issue comment](https://docs.github. +// com/rest/reference/issues#create-an-issue-comment)." We recommend creating a review comment using +// `line`, `side`, and optionally `start_line` and `start_side` if your comment applies to more than +// one line in the pull request diff. +// You can still create a review comment using the `position` parameter. When you use `position`, the +// `line`, `side`, `start_line`, and `start_side` parameters are not required. For more information, +// see the [`comfort-fade` preview notice](https://docs.github. +// com/rest/reference/pulls#create-a-review-comment-for-a-pull-request-preview-notices). +// **Note:** The position value equals the number of lines down from the first "@@" hunk header in +// the file you want to add a comment. The line just below the "@@" line is position 1, the next line +// is position 2, and so on. The position in the diff continues to increase through lines of +// whitespace and additional hunks until the beginning of a new file. +// This endpoint triggers [notifications](https://docs.github. +// com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating +// content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary +// rate limits](https://docs.github. +// com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary +// rate limits](https://docs.github. +// com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)" for details. +// // POST /repos/{owner}/{repo}/pulls/{pull_number}/comments func (s *Server) handlePullsCreateReviewCommentRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -40981,6 +43706,8 @@ func (s *Server) handlePullsCreateReviewCommentRequest(args [3]string, w http.Re // handlePullsDeletePendingReviewRequest handles pulls/delete-pending-review operation. // +// Delete a pending review for a pull request. +// // DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id} func (s *Server) handlePullsDeletePendingReviewRequest(args [4]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -41078,6 +43805,8 @@ func (s *Server) handlePullsDeletePendingReviewRequest(args [4]string, w http.Re // handlePullsDeleteReviewCommentRequest handles pulls/delete-review-comment operation. // +// Deletes a review comment. +// // DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id} func (s *Server) handlePullsDeleteReviewCommentRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -41174,6 +43903,10 @@ func (s *Server) handlePullsDeleteReviewCommentRequest(args [3]string, w http.Re // handlePullsDismissReviewRequest handles pulls/dismiss-review operation. // +// **Note:** To dismiss a pull request review on a [protected branch](https://docs.github. +// com/rest/reference/repos#branches), you must be a repository administrator or be included in the +// list of people or teams who can dismiss pull request reviews. +// // PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals func (s *Server) handlePullsDismissReviewRequest(args [4]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -41286,6 +44019,41 @@ func (s *Server) handlePullsDismissReviewRequest(args [4]string, w http.Response // handlePullsGetRequest handles pulls/get operation. // +// Draft pull requests are available in public repositories with GitHub Free and GitHub Free for +// organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private +// repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// Lists details of a pull request by providing its number. +// When you get, [create](https://docs.github.com/rest/reference/pulls/#create-a-pull-request), or +// [edit](https://docs.github.com/rest/reference/pulls#update-a-pull-request) a pull request, GitHub +// creates a merge commit to test whether the pull request can be automatically merged into the base +// branch. This test commit is not added to the base branch or the head branch. You can review the +// status of the test commit using the `mergeable` key. For more information, see "[Checking +// mergeability of pull requests](https://docs.github. +// com/rest/guides/getting-started-with-the-git-database-api#checking-mergeability-of-pull-requests)". +// The value of the `mergeable` attribute can be `true`, `false`, or `null`. If the value is `null`, +// then GitHub has started a background job to compute the mergeability. After giving the job time to +// complete, resubmit the request. When the job finishes, you will see a non-`null` value for the +// `mergeable` attribute in the response. If `mergeable` is `true`, then `merge_commit_sha` will be +// the SHA of the _test_ merge commit. +// The value of the `merge_commit_sha` attribute changes depending on the state of the pull request. +// Before merging a pull request, the `merge_commit_sha` attribute holds the SHA of the _test_ merge +// commit. After merging a pull request, the `merge_commit_sha` attribute changes depending on how +// you merged the pull request: +// - If merged as a [merge commit](https://help.github.com/articles/about-merge-methods-on-github/), +// `merge_commit_sha` represents the SHA of the merge commit. +// - If merged via a [squash](https://help.github. +// +// com/articles/about-merge-methods-on-github/#squashing-your-merge-commits), `merge_commit_sha` +// represents the SHA of the squashed commit on the base branch. +// * If [rebased](https://help.github. +// com/articles/about-merge-methods-on-github/#rebasing-and-merging-your-commits), `merge_commit_sha` +// represents the commit that the base branch was updated to. +// Pass the appropriate [media type](https://docs.github. +// com/rest/overview/media-types/#commits-commit-comparison-and-pull-requests) to fetch diff and +// patch formats. +// // GET /repos/{owner}/{repo}/pulls/{pull_number} func (s *Server) handlePullsGetRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -41382,6 +44150,8 @@ func (s *Server) handlePullsGetRequest(args [3]string, w http.ResponseWriter, r // handlePullsGetReviewRequest handles pulls/get-review operation. // +// Get a review for a pull request. +// // GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id} func (s *Server) handlePullsGetReviewRequest(args [4]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -41479,6 +44249,8 @@ func (s *Server) handlePullsGetReviewRequest(args [4]string, w http.ResponseWrit // handlePullsGetReviewCommentRequest handles pulls/get-review-comment operation. // +// Provides details for a review comment. +// // GET /repos/{owner}/{repo}/pulls/comments/{comment_id} func (s *Server) handlePullsGetReviewCommentRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -41575,6 +44347,12 @@ func (s *Server) handlePullsGetReviewCommentRequest(args [3]string, w http.Respo // handlePullsListRequest handles pulls/list operation. // +// Draft pull requests are available in public repositories with GitHub Free and GitHub Free for +// organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private +// repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// // GET /repos/{owner}/{repo}/pulls func (s *Server) handlePullsListRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -41677,6 +44455,8 @@ func (s *Server) handlePullsListRequest(args [2]string, w http.ResponseWriter, r // handlePullsListCommentsForReviewRequest handles pulls/list-comments-for-review operation. // +// List comments for a specific pull request review. +// // GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments func (s *Server) handlePullsListCommentsForReviewRequest(args [4]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -41776,6 +44556,10 @@ func (s *Server) handlePullsListCommentsForReviewRequest(args [4]string, w http. // handlePullsListCommitsRequest handles pulls/list-commits operation. // +// Lists a maximum of 250 commits for a pull request. To receive a complete commit list for pull +// requests with more than 250 commits, use the [List commits](https://docs.github. +// com/rest/reference/repos#list-commits) endpoint. +// // GET /repos/{owner}/{repo}/pulls/{pull_number}/commits func (s *Server) handlePullsListCommitsRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -41874,6 +44658,9 @@ func (s *Server) handlePullsListCommitsRequest(args [3]string, w http.ResponseWr // handlePullsListFilesRequest handles pulls/list-files operation. // +// **Note:** Responses include a maximum of 3000 files. The paginated response returns 30 files per +// page by default. +// // GET /repos/{owner}/{repo}/pulls/{pull_number}/files func (s *Server) handlePullsListFilesRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -41972,6 +44759,8 @@ func (s *Server) handlePullsListFilesRequest(args [3]string, w http.ResponseWrit // handlePullsListRequestedReviewersRequest handles pulls/list-requested-reviewers operation. // +// List requested reviewers for a pull request. +// // GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers func (s *Server) handlePullsListRequestedReviewersRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -42070,6 +44859,9 @@ func (s *Server) handlePullsListRequestedReviewersRequest(args [3]string, w http // handlePullsListReviewCommentsRequest handles pulls/list-review-comments operation. // +// Lists all review comments for a pull request. By default, review comments are in ascending order +// by ID. +// // GET /repos/{owner}/{repo}/pulls/{pull_number}/comments func (s *Server) handlePullsListReviewCommentsRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -42171,6 +44963,9 @@ func (s *Server) handlePullsListReviewCommentsRequest(args [3]string, w http.Res // handlePullsListReviewCommentsForRepoRequest handles pulls/list-review-comments-for-repo operation. // +// Lists review comments for all pull requests in a repository. By default, review comments are in +// ascending order by ID. +// // GET /repos/{owner}/{repo}/pulls/comments func (s *Server) handlePullsListReviewCommentsForRepoRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -42271,6 +45066,8 @@ func (s *Server) handlePullsListReviewCommentsForRepoRequest(args [2]string, w h // handlePullsListReviewsRequest handles pulls/list-reviews operation. // +// The list of reviews returns in chronological order. +// // GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews func (s *Server) handlePullsListReviewsRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -42369,6 +45166,14 @@ func (s *Server) handlePullsListReviewsRequest(args [3]string, w http.ResponseWr // handlePullsMergeRequest handles pulls/merge operation. // +// This endpoint triggers [notifications](https://docs.github. +// com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating +// content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary +// rate limits](https://docs.github. +// com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary +// rate limits](https://docs.github. +// com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)" for details. +// // PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge func (s *Server) handlePullsMergeRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -42480,6 +45285,8 @@ func (s *Server) handlePullsMergeRequest(args [3]string, w http.ResponseWriter, // handlePullsRemoveRequestedReviewersRequest handles pulls/remove-requested-reviewers operation. // +// Remove requested reviewers from a pull request. +// // DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers func (s *Server) handlePullsRemoveRequestedReviewersRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -42591,6 +45398,8 @@ func (s *Server) handlePullsRemoveRequestedReviewersRequest(args [3]string, w ht // handlePullsSubmitReviewRequest handles pulls/submit-review operation. // +// Submit a review for a pull request. +// // POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events func (s *Server) handlePullsSubmitReviewRequest(args [4]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -42703,6 +45512,15 @@ func (s *Server) handlePullsSubmitReviewRequest(args [4]string, w http.ResponseW // handlePullsUpdateRequest handles pulls/update operation. // +// Draft pull requests are available in public repositories with GitHub Free and GitHub Free for +// organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private +// repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// To open or update a pull request in a public repository, you must have write access to the head or +// the source branch. For organization-owned repositories, you must be a member of the organization +// that owns the repository to open or update a pull request. +// // PATCH /repos/{owner}/{repo}/pulls/{pull_number} func (s *Server) handlePullsUpdateRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -42814,6 +45632,9 @@ func (s *Server) handlePullsUpdateRequest(args [3]string, w http.ResponseWriter, // handlePullsUpdateBranchRequest handles pulls/update-branch operation. // +// Updates the pull request branch with the latest upstream changes by merging HEAD from the base +// branch into the pull request branch. +// // PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch func (s *Server) handlePullsUpdateBranchRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -42925,6 +45746,8 @@ func (s *Server) handlePullsUpdateBranchRequest(args [3]string, w http.ResponseW // handlePullsUpdateReviewRequest handles pulls/update-review operation. // +// Update the review summary comment with new text. +// // PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id} func (s *Server) handlePullsUpdateReviewRequest(args [4]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -43037,6 +45860,8 @@ func (s *Server) handlePullsUpdateReviewRequest(args [4]string, w http.ResponseW // handlePullsUpdateReviewCommentRequest handles pulls/update-review-comment operation. // +// Enables you to edit a review comment. +// // PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id} func (s *Server) handlePullsUpdateReviewCommentRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -43148,6 +45973,11 @@ func (s *Server) handlePullsUpdateReviewCommentRequest(args [3]string, w http.Re // handleRateLimitGetRequest handles rate-limit/get operation. // +// **Note:** Accessing this endpoint does not count against your REST API rate limit. +// **Note:** The `rate` object is deprecated. If you're writing new API client code or updating +// existing code, you should use the `core` object instead of the `rate` object. The `core` object +// contains the same information that is present in the `rate` object. +// // GET /rate_limit func (s *Server) handleRateLimitGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -43226,6 +46056,10 @@ func (s *Server) handleRateLimitGetRequest(args [0]string, w http.ResponseWriter // handleReactionsCreateForCommitCommentRequest handles reactions/create-for-commit-comment operation. // +// Create a reaction to a [commit comment](https://docs.github.com/rest/reference/repos#comments). A +// response with an HTTP `200` status means that you already added the reaction type to this commit +// comment. +// // POST /repos/{owner}/{repo}/comments/{comment_id}/reactions func (s *Server) handleReactionsCreateForCommitCommentRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -43337,6 +46171,9 @@ func (s *Server) handleReactionsCreateForCommitCommentRequest(args [3]string, w // handleReactionsCreateForIssueRequest handles reactions/create-for-issue operation. // +// Create a reaction to an [issue](https://docs.github.com/rest/reference/issues/). A response with +// an HTTP `200` status means that you already added the reaction type to this issue. +// // POST /repos/{owner}/{repo}/issues/{issue_number}/reactions func (s *Server) handleReactionsCreateForIssueRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -43448,6 +46285,10 @@ func (s *Server) handleReactionsCreateForIssueRequest(args [3]string, w http.Res // handleReactionsCreateForIssueCommentRequest handles reactions/create-for-issue-comment operation. // +// Create a reaction to an [issue comment](https://docs.github.com/rest/reference/issues#comments). A +// response with an HTTP `200` status means that you already added the reaction type to this issue +// comment. +// // POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions func (s *Server) handleReactionsCreateForIssueCommentRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -43559,6 +46400,10 @@ func (s *Server) handleReactionsCreateForIssueCommentRequest(args [3]string, w h // handleReactionsCreateForPullRequestReviewCommentRequest handles reactions/create-for-pull-request-review-comment operation. // +// Create a reaction to a [pull request review comment](https://docs.github. +// com/rest/reference/pulls#comments). A response with an HTTP `200` status means that you already +// added the reaction type to this pull request review comment. +// // POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions func (s *Server) handleReactionsCreateForPullRequestReviewCommentRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -43670,6 +46515,9 @@ func (s *Server) handleReactionsCreateForPullRequestReviewCommentRequest(args [3 // handleReactionsCreateForReleaseRequest handles reactions/create-for-release operation. // +// Create a reaction to a [release](https://docs.github.com/rest/reference/repos#releases). A +// response with a `Status: 200 OK` means that you already added the reaction type to this release. +// // POST /repos/{owner}/{repo}/releases/{release_id}/reactions func (s *Server) handleReactionsCreateForReleaseRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -43781,6 +46629,14 @@ func (s *Server) handleReactionsCreateForReleaseRequest(args [3]string, w http.R // handleReactionsCreateForTeamDiscussionCommentInOrgRequest handles reactions/create-for-team-discussion-comment-in-org operation. // +// Create a reaction to a [team discussion comment](https://docs.github. +// com/rest/reference/teams#discussion-comments). OAuth access tokens require the `write:discussion` +// [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A +// response with an HTTP `200` status means that you already added the reaction type to this team +// discussion comment. +// **Note:** You can also specify a team by `org_id` and `team_id` using the route `POST +// /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions`. +// // POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions func (s *Server) handleReactionsCreateForTeamDiscussionCommentInOrgRequest(args [4]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -43893,6 +46749,18 @@ func (s *Server) handleReactionsCreateForTeamDiscussionCommentInOrgRequest(args // handleReactionsCreateForTeamDiscussionCommentLegacyRequest handles reactions/create-for-team-discussion-comment-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the new "[Create reaction for a team discussion +// comment](https://docs.github. +// com/rest/reference/reactions#create-reaction-for-a-team-discussion-comment)" endpoint. +// Create a reaction to a [team discussion comment](https://docs.github. +// com/rest/reference/teams#discussion-comments). OAuth access tokens require the `write:discussion` +// [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A +// response with an HTTP `200` status means that you already added the reaction type to this team +// discussion comment. +// +// Deprecated: schema marks this operation as deprecated. +// // POST /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions func (s *Server) handleReactionsCreateForTeamDiscussionCommentLegacyRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -44004,6 +46872,15 @@ func (s *Server) handleReactionsCreateForTeamDiscussionCommentLegacyRequest(args // handleReactionsCreateForTeamDiscussionInOrgRequest handles reactions/create-for-team-discussion-in-org operation. // +// Create a reaction to a [team discussion](https://docs.github.com/rest/reference/teams#discussions). +// +// OAuth access tokens require the `write:discussion` [scope](https://docs.github. +// +// com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with an HTTP `200` +// status means that you already added the reaction type to this team discussion. +// **Note:** You can also specify a team by `org_id` and `team_id` using the route `POST +// /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions`. +// // POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions func (s *Server) handleReactionsCreateForTeamDiscussionInOrgRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -44115,6 +46992,19 @@ func (s *Server) handleReactionsCreateForTeamDiscussionInOrgRequest(args [3]stri // handleReactionsCreateForTeamDiscussionLegacyRequest handles reactions/create-for-team-discussion-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the new [`Create reaction for a team +// discussion`](https://docs.github. +// com/rest/reference/reactions#create-reaction-for-a-team-discussion) endpoint. +// Create a reaction to a [team discussion](https://docs.github.com/rest/reference/teams#discussions). +// +// OAuth access tokens require the `write:discussion` [scope](https://docs.github. +// +// com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with an HTTP `200` +// status means that you already added the reaction type to this team discussion. +// +// Deprecated: schema marks this operation as deprecated. +// // POST /teams/{team_id}/discussions/{discussion_number}/reactions func (s *Server) handleReactionsCreateForTeamDiscussionLegacyRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -44225,6 +47115,10 @@ func (s *Server) handleReactionsCreateForTeamDiscussionLegacyRequest(args [2]str // handleReactionsDeleteForCommitCommentRequest handles reactions/delete-for-commit-comment operation. // +// **Note:** You can also specify a repository by `repository_id` using the route `DELETE +// /repositories/:repository_id/comments/:comment_id/reactions/:reaction_id`. +// Delete a reaction to a [commit comment](https://docs.github.com/rest/reference/repos#comments). +// // DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id} func (s *Server) handleReactionsDeleteForCommitCommentRequest(args [4]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -44322,6 +47216,10 @@ func (s *Server) handleReactionsDeleteForCommitCommentRequest(args [4]string, w // handleReactionsDeleteForIssueRequest handles reactions/delete-for-issue operation. // +// **Note:** You can also specify a repository by `repository_id` using the route `DELETE +// /repositories/:repository_id/issues/:issue_number/reactions/:reaction_id`. +// Delete a reaction to an [issue](https://docs.github.com/rest/reference/issues/). +// // DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id} func (s *Server) handleReactionsDeleteForIssueRequest(args [4]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -44419,6 +47317,10 @@ func (s *Server) handleReactionsDeleteForIssueRequest(args [4]string, w http.Res // handleReactionsDeleteForIssueCommentRequest handles reactions/delete-for-issue-comment operation. // +// **Note:** You can also specify a repository by `repository_id` using the route `DELETE delete +// /repositories/:repository_id/issues/comments/:comment_id/reactions/:reaction_id`. +// Delete a reaction to an [issue comment](https://docs.github.com/rest/reference/issues#comments). +// // DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id} func (s *Server) handleReactionsDeleteForIssueCommentRequest(args [4]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -44516,6 +47418,11 @@ func (s *Server) handleReactionsDeleteForIssueCommentRequest(args [4]string, w h // handleReactionsDeleteForPullRequestCommentRequest handles reactions/delete-for-pull-request-comment operation. // +// **Note:** You can also specify a repository by `repository_id` using the route `DELETE +// /repositories/:repository_id/pulls/comments/:comment_id/reactions/:reaction_id.` +// Delete a reaction to a [pull request review comment](https://docs.github. +// com/rest/reference/pulls#review-comments). +// // DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id} func (s *Server) handleReactionsDeleteForPullRequestCommentRequest(args [4]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -44613,6 +47520,15 @@ func (s *Server) handleReactionsDeleteForPullRequestCommentRequest(args [4]strin // handleReactionsDeleteForTeamDiscussionRequest handles reactions/delete-for-team-discussion operation. // +// **Note:** You can also specify a team or organization with `team_id` and `org_id` using the route +// `DELETE +// /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions/:reaction_id`. +// Delete a reaction to a [team discussion](https://docs.github.com/rest/reference/teams#discussions). +// +// OAuth access tokens require the `write:discussion` [scope](https://docs.github. +// +// com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// // DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id} func (s *Server) handleReactionsDeleteForTeamDiscussionRequest(args [4]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -44710,6 +47626,13 @@ func (s *Server) handleReactionsDeleteForTeamDiscussionRequest(args [4]string, w // handleReactionsDeleteForTeamDiscussionCommentRequest handles reactions/delete-for-team-discussion-comment operation. // +// **Note:** You can also specify a team or organization with `team_id` and `org_id` using the route +// `DELETE +// /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id`. +// Delete a reaction to a [team discussion comment](https://docs.github. +// com/rest/reference/teams#discussion-comments). OAuth access tokens require the `write:discussion` +// [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// // DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id} func (s *Server) handleReactionsDeleteForTeamDiscussionCommentRequest(args [5]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -44808,6 +47731,17 @@ func (s *Server) handleReactionsDeleteForTeamDiscussionCommentRequest(args [5]st // handleReactionsDeleteLegacyRequest handles reactions/delete-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Reactions +// API. We recommend migrating your existing code to use the new delete reactions endpoints. For more +// information, see this [blog post](https://developer.github. +// com/changes/2020-02-26-new-delete-reactions-endpoints/). +// OAuth access tokens require the `write:discussion` [scope](https://docs.github. +// com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), when deleting a [team +// discussion](https://docs.github.com/rest/reference/teams#discussions) or [team discussion +// comment](https://docs.github.com/rest/reference/teams#discussion-comments). +// +// Deprecated: schema marks this operation as deprecated. +// // DELETE /reactions/{reaction_id} func (s *Server) handleReactionsDeleteLegacyRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -44902,6 +47836,8 @@ func (s *Server) handleReactionsDeleteLegacyRequest(args [1]string, w http.Respo // handleReactionsListForCommitCommentRequest handles reactions/list-for-commit-comment operation. // +// List the reactions to a [commit comment](https://docs.github.com/rest/reference/repos#comments). +// // GET /repos/{owner}/{repo}/comments/{comment_id}/reactions func (s *Server) handleReactionsListForCommitCommentRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -45001,6 +47937,8 @@ func (s *Server) handleReactionsListForCommitCommentRequest(args [3]string, w ht // handleReactionsListForIssueRequest handles reactions/list-for-issue operation. // +// List the reactions to an [issue](https://docs.github.com/rest/reference/issues). +// // GET /repos/{owner}/{repo}/issues/{issue_number}/reactions func (s *Server) handleReactionsListForIssueRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -45100,6 +48038,8 @@ func (s *Server) handleReactionsListForIssueRequest(args [3]string, w http.Respo // handleReactionsListForIssueCommentRequest handles reactions/list-for-issue-comment operation. // +// List the reactions to an [issue comment](https://docs.github.com/rest/reference/issues#comments). +// // GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions func (s *Server) handleReactionsListForIssueCommentRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -45199,6 +48139,9 @@ func (s *Server) handleReactionsListForIssueCommentRequest(args [3]string, w htt // handleReactionsListForPullRequestReviewCommentRequest handles reactions/list-for-pull-request-review-comment operation. // +// List the reactions to a [pull request review comment](https://docs.github. +// com/rest/reference/pulls#review-comments). +// // GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions func (s *Server) handleReactionsListForPullRequestReviewCommentRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -45298,6 +48241,12 @@ func (s *Server) handleReactionsListForPullRequestReviewCommentRequest(args [3]s // handleReactionsListForTeamDiscussionCommentInOrgRequest handles reactions/list-for-team-discussion-comment-in-org operation. // +// List the reactions to a [team discussion comment](https://docs.github. +// com/rest/reference/teams#discussion-comments/). OAuth access tokens require the `read:discussion` +// [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET +// /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions`. +// // GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions func (s *Server) handleReactionsListForTeamDiscussionCommentInOrgRequest(args [4]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -45398,6 +48347,16 @@ func (s *Server) handleReactionsListForTeamDiscussionCommentInOrgRequest(args [4 // handleReactionsListForTeamDiscussionCommentLegacyRequest handles reactions/list-for-team-discussion-comment-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the new [`List reactions for a team discussion +// comment`](https://docs.github. +// com/rest/reference/reactions#list-reactions-for-a-team-discussion-comment) endpoint. +// List the reactions to a [team discussion comment](https://docs.github. +// com/rest/reference/teams#discussion-comments). OAuth access tokens require the `read:discussion` +// [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// +// Deprecated: schema marks this operation as deprecated. +// // GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions func (s *Server) handleReactionsListForTeamDiscussionCommentLegacyRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -45497,6 +48456,12 @@ func (s *Server) handleReactionsListForTeamDiscussionCommentLegacyRequest(args [ // handleReactionsListForTeamDiscussionInOrgRequest handles reactions/list-for-team-discussion-in-org operation. // +// List the reactions to a [team discussion](https://docs.github. +// com/rest/reference/teams#discussions). OAuth access tokens require the `read:discussion` +// [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET +// /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions`. +// // GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions func (s *Server) handleReactionsListForTeamDiscussionInOrgRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -45596,6 +48561,16 @@ func (s *Server) handleReactionsListForTeamDiscussionInOrgRequest(args [3]string // handleReactionsListForTeamDiscussionLegacyRequest handles reactions/list-for-team-discussion-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the new [`List reactions for a team +// discussion`](https://docs.github. +// com/rest/reference/reactions#list-reactions-for-a-team-discussion) endpoint. +// List the reactions to a [team discussion](https://docs.github. +// com/rest/reference/teams#discussions). OAuth access tokens require the `read:discussion` +// [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// +// Deprecated: schema marks this operation as deprecated. +// // GET /teams/{team_id}/discussions/{discussion_number}/reactions func (s *Server) handleReactionsListForTeamDiscussionLegacyRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -45694,6 +48669,8 @@ func (s *Server) handleReactionsListForTeamDiscussionLegacyRequest(args [2]strin // handleReposAcceptInvitationRequest handles repos/accept-invitation operation. // +// Accept a repository invitation. +// // PATCH /user/repository_invitations/{invitation_id} func (s *Server) handleReposAcceptInvitationRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -45788,6 +48765,22 @@ func (s *Server) handleReposAcceptInvitationRequest(args [1]string, w http.Respo // handleReposAddAppAccessRestrictionsRequest handles repos/add-app-access-restrictions operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// Grants the specified apps push access for this branch. Only installed GitHub Apps with `write` +// access to the `contents` permission can be added as authorized actors on a protected branch. +// | Type | Description +// +// | +// +// | ------- | +// ---------------------------------------------------------------------------------------------------------------------------------------------------------- | +// | `array` | The GitHub Apps that have push access to this branch. Use the app's `slug`. **Note**: +// The list of users, apps, and teams in total is limited to 100 items. |. +// // POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps func (s *Server) handleReposAddAppAccessRestrictionsRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -45899,6 +48892,27 @@ func (s *Server) handleReposAddAppAccessRestrictionsRequest(args [3]string, w ht // handleReposAddCollaboratorRequest handles repos/add-collaborator operation. // +// This endpoint triggers [notifications](https://docs.github. +// com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating +// content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary +// rate limits](https://docs.github. +// com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary +// rate limits](https://docs.github. +// com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)" for details. +// For more information the permission levels, see "[Repository permission levels for an +// organization](https://help.github. +// com/en/github/setting-up-and-managing-organizations-and-teams/repository-permission-levels-for-an-organization#permission-levels-for-repositories-owned-by-an-organization)". +// Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero +// when calling out to this endpoint. For more information, see "[HTTP verbs](https://docs.github. +// com/rest/overview/resources-in-the-rest-api#http-verbs)." +// The invitee will receive a notification that they have been invited to the repository, which they +// must accept or decline. They may do this via the notifications page, the email they receive, or by +// using the [repository invitations API endpoints](https://docs.github. +// com/rest/reference/repos#invitations). +// **Rate limits** +// You are limited to sending 50 invitations to a repository per 24 hour period. Note there is no +// limit if you are inviting organization members to an organization repository. +// // PUT /repos/{owner}/{repo}/collaborators/{username} func (s *Server) handleReposAddCollaboratorRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -46010,6 +49024,12 @@ func (s *Server) handleReposAddCollaboratorRequest(args [3]string, w http.Respon // handleReposAddStatusCheckContextsRequest handles repos/add-status-check-contexts operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// // POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts func (s *Server) handleReposAddStatusCheckContextsRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -46121,6 +49141,22 @@ func (s *Server) handleReposAddStatusCheckContextsRequest(args [3]string, w http // handleReposAddTeamAccessRestrictionsRequest handles repos/add-team-access-restrictions operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// Grants the specified teams push access for this branch. You can also give push access to child +// teams. +// | Type | Description +// +// | +// +// | ------- | +// ------------------------------------------------------------------------------------------------------------------------------------------ | +// | `array` | The teams that can have push access. Use the team's `slug`. **Note**: The list of +// users, apps, and teams in total is limited to 100 items. |. +// // POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams func (s *Server) handleReposAddTeamAccessRestrictionsRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -46232,6 +49268,21 @@ func (s *Server) handleReposAddTeamAccessRestrictionsRequest(args [3]string, w h // handleReposAddUserAccessRestrictionsRequest handles repos/add-user-access-restrictions operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// Grants the specified people push access for this branch. +// | Type | Description +// +// | +// +// | ------- | +// ----------------------------------------------------------------------------------------------------------------------------- | +// | `array` | Usernames for people who can have push access. **Note**: The list of users, apps, and +// teams in total is limited to 100 items. |. +// // POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users func (s *Server) handleReposAddUserAccessRestrictionsRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -46343,6 +49394,12 @@ func (s *Server) handleReposAddUserAccessRestrictionsRequest(args [3]string, w h // handleReposCheckCollaboratorRequest handles repos/check-collaborator operation. // +// For organization-owned repositories, the list of collaborators includes outside collaborators, +// organization members that are direct collaborators, organization members with access through team +// memberships, organization members with access through default organization permissions, and +// organization owners. +// Team members will include the members of child teams. +// // GET /repos/{owner}/{repo}/collaborators/{username} func (s *Server) handleReposCheckCollaboratorRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -46439,6 +49496,11 @@ func (s *Server) handleReposCheckCollaboratorRequest(args [3]string, w http.Resp // handleReposCheckVulnerabilityAlertsRequest handles repos/check-vulnerability-alerts operation. // +// Shows whether dependency alerts are enabled or disabled for a repository. The authenticated user +// must have admin access to the repository. For more information, see "[About security alerts for +// vulnerable dependencies](https://help.github. +// com/en/articles/about-security-alerts-for-vulnerable-dependencies)". +// // GET /repos/{owner}/{repo}/vulnerability-alerts func (s *Server) handleReposCheckVulnerabilityAlertsRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -46534,6 +49596,62 @@ func (s *Server) handleReposCheckVulnerabilityAlertsRequest(args [2]string, w ht // handleReposCompareCommitsRequest handles repos/compare-commits operation. // +// The `basehead` param is comprised of two parts: `base` and `head`. Both must be branch names in +// `repo`. To compare branches across other repositories in the same network as `repo`, use the +// format `:branch`. +// The response from the API is equivalent to running the `git log base..head` command; however, +// commits are returned in chronological order. Pass the appropriate [media type](https://docs.github. +// com/rest/overview/media-types/#commits-commit-comparison-and-pull-requests) to fetch diff and +// patch formats. +// The response also includes details on the files that were changed between the two commits. This +// includes the status of the change (for example, if a file was added, removed, modified, or +// renamed), and details of the change itself. For example, files with a `renamed` status have a +// `previous_filename` field showing the previous filename of the file, and files with a `modified` +// status have a `patch` field showing the changes made to the file. +// **Working with large comparisons** +// To process a response with a large number of commits, you can use (`per_page` or `page`) to +// paginate the results. When using paging, the list of changed files is only returned with page 1, +// but includes all changed files for the entire comparison. For more information on working with +// pagination, see "[Traversing with pagination](/rest/guides/traversing-with-pagination)." +// When calling this API without any paging parameters (`per_page` or `page`), the returned list is +// limited to 250 commits and the last commit in the list is the most recent of the entire comparison. +// +// When a paging parameter is specified, the first commit in the returned list of each page is the +// +// earliest. +// **Signature verification object** +// The response will include a `verification` object that describes the result of verifying the +// commit's signature. The following fields are included in the `verification` object: +// | Name | Type | Description | +// | ---- | ---- | ----------- | +// | `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be +// verified. | +// | `reason` | `string` | The reason for verified value. Possible values and their meanings are +// enumerated in table below. | +// | `signature` | `string` | The signature that was extracted from the commit. | +// | `payload` | `string` | The value that was signed. | +// These are the possible values for `reason` in the `verification` object: +// | Value | Description | +// | ----- | ----------- | +// | `expired_key` | The key that made the signature is expired. | +// | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the +// signature. | +// | `gpgverify_error` | There was an error communicating with the signature verification service. | +// | `gpgverify_unavailable` | The signature verification service is currently unavailable. | +// | `unsigned` | The object does not include a signature. | +// | `unknown_signature_type` | A non-PGP signature was found in the commit. | +// | `no_user` | No user was associated with the `committer` email address in the commit. | +// | `unverified_email` | The `committer` email address in the commit was associated with a user, but +// the email address is not verified on her/his account. | +// | `bad_email` | The `committer` email address in the commit is not included in the identities of +// the PGP key that made the signature. | +// | `unknown_key` | The key that made the signature has not been registered with any user's account. +// | +// | `malformed_signature` | There was an error parsing the signature. | +// | `invalid` | The signature could not be cryptographically verified using the key whose key-id was +// found in the signature. | +// | `valid` | None of the above errors applied, so the signature is considered to be verified. |. +// // GET /repos/{owner}/{repo}/compare/{basehead} func (s *Server) handleReposCompareCommitsRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -46632,6 +49750,8 @@ func (s *Server) handleReposCompareCommitsRequest(args [3]string, w http.Respons // handleReposCreateAutolinkRequest handles repos/create-autolink operation. // +// Users with admin access to the repository can create an autolink. +// // POST /repos/{owner}/{repo}/autolinks func (s *Server) handleReposCreateAutolinkRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -46742,6 +49862,15 @@ func (s *Server) handleReposCreateAutolinkRequest(args [2]string, w http.Respons // handleReposCreateCommitCommentRequest handles repos/create-commit-comment operation. // +// Create a comment for a commit using its `:commit_sha`. +// This endpoint triggers [notifications](https://docs.github. +// com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating +// content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary +// rate limits](https://docs.github. +// com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary +// rate limits](https://docs.github. +// com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)" for details. +// // POST /repos/{owner}/{repo}/commits/{commit_sha}/comments func (s *Server) handleReposCreateCommitCommentRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -46853,6 +49982,14 @@ func (s *Server) handleReposCreateCommitCommentRequest(args [3]string, w http.Re // handleReposCreateCommitSignatureProtectionRequest handles repos/create-commit-signature-protection operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// When authenticated with admin or owner permissions to the repository, you can use this endpoint to +// require signed commits on a branch. You must enable branch protection to require signed commits. +// // POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures func (s *Server) handleReposCreateCommitSignatureProtectionRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -46949,6 +50086,10 @@ func (s *Server) handleReposCreateCommitSignatureProtectionRequest(args [3]strin // handleReposCreateCommitStatusRequest handles repos/create-commit-status operation. // +// Users with push access in a repository can create commit statuses for a given SHA. +// Note: there is a limit of 1000 statuses per `sha` and `context` within a repository. Attempts to +// create more than 1000 statuses will result in a validation error. +// // POST /repos/{owner}/{repo}/statuses/{sha} func (s *Server) handleReposCreateCommitStatusRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -47060,6 +50201,8 @@ func (s *Server) handleReposCreateCommitStatusRequest(args [3]string, w http.Res // handleReposCreateDeployKeyRequest handles repos/create-deploy-key operation. // +// You can create a read-only deploy key. +// // POST /repos/{owner}/{repo}/keys func (s *Server) handleReposCreateDeployKeyRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -47170,6 +50313,63 @@ func (s *Server) handleReposCreateDeployKeyRequest(args [2]string, w http.Respon // handleReposCreateDeploymentRequest handles repos/create-deployment operation. // +// Deployments offer a few configurable parameters with certain defaults. +// The `ref` parameter can be any named branch, tag, or SHA. At GitHub we often deploy branches and +// verify them +// before we merge a pull request. +// The `environment` parameter allows deployments to be issued to different runtime environments. +// Teams often have +// multiple environments for verifying their applications, such as `production`, `staging`, and `qa`. +// This parameter +// makes it easier to track which environments have requested deployments. The default environment is +// `production`. +// The `auto_merge` parameter is used to ensure that the requested ref is not behind the repository's +// default branch. If +// the ref _is_ behind the default branch for the repository, we will attempt to merge it for you. If +// the merge succeeds, +// the API will return a successful merge commit. If merge conflicts prevent the merge from +// succeeding, the API will +// return a failure response. +// By default, [commit statuses](https://docs.github.com/rest/reference/repos#statuses) for every +// submitted context must be in a `success` +// state. The `required_contexts` parameter allows you to specify a subset of contexts that must be +// `success`, or to +// specify contexts that have not yet been submitted. You are not required to use commit statuses to +// deploy. If you do +// not require any contexts or create any commit statuses, the deployment will always succeed. +// The `payload` parameter is available for any extra information that a deployment system might need. +// +// It is a JSON text +// +// field that will be passed on when a deployment event is dispatched. +// The `task` parameter is used by the deployment system to allow different execution paths. In the +// web world this might +// be `deploy:migrations` to run schema changes on the system. In the compiled world this could be a +// flag to compile an +// application with debugging enabled. +// Users with `repo` or `repo_deployment` scopes can create a deployment for a given ref. +// #### Merged branch response +// You will see this response when GitHub automatically merges the base branch into the topic branch +// instead of creating +// a deployment. This auto-merge happens when: +// * Auto-merge option is enabled in the repository +// * Topic branch does not include the latest changes on the base branch, which is `master` in the +// response example +// * There are no merge conflicts +// If there are no new commits in the base branch, a new request to create a deployment should give a +// successful +// response. +// #### Merge conflict response +// This error happens when the `auto_merge` option is enabled and when the default branch (in this +// case `master`), can't +// be merged into the branch that's being deployed (in this case `topic-branch`), due to merge +// conflicts. +// #### Failed commit status checks +// This error happens when the `required_contexts` parameter indicates that one or more contexts need +// to have a `success` +// status for the commit to be deployed, but one or more of the required contexts do not have a state +// of `success`. +// // POST /repos/{owner}/{repo}/deployments func (s *Server) handleReposCreateDeploymentRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -47280,6 +50480,10 @@ func (s *Server) handleReposCreateDeploymentRequest(args [2]string, w http.Respo // handleReposCreateDeploymentStatusRequest handles repos/create-deployment-status operation. // +// Users with `push` access can create deployment statuses for a given deployment. +// GitHub Apps require `read & write` access to "Deployments" and `read-only` access to "Repo +// contents" (for private repos). OAuth Apps require the `repo_deployment` scope. +// // POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses func (s *Server) handleReposCreateDeploymentStatusRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -47391,6 +50595,27 @@ func (s *Server) handleReposCreateDeploymentStatusRequest(args [3]string, w http // handleReposCreateDispatchEventRequest handles repos/create-dispatch-event operation. // +// You can use this endpoint to trigger a webhook event called `repository_dispatch` when you want +// activity that happens outside of GitHub to trigger a GitHub Actions workflow or GitHub App webhook. +// +// You must configure your GitHub Actions workflow or GitHub App to run when the +// +// `repository_dispatch` event occurs. For an example `repository_dispatch` webhook payload, see +// "[RepositoryDispatchEvent](https://docs.github.com/webhooks/event-payloads/#repository_dispatch)." +// The `client_payload` parameter is available for any extra information that your workflow might +// need. This parameter is a JSON payload that will be passed on when the webhook event is dispatched. +// +// For example, the `client_payload` can include a message that a user would like to send using a +// +// GitHub Actions workflow. Or the `client_payload` can be used as a test to debug your workflow. +// This endpoint requires write access to the repository by providing either: +// - Personal access tokens with `repo` scope. For more information, see "[Creating a personal access +// token for the command line](https://help.github. +// com/articles/creating-a-personal-access-token-for-the-command-line)" in the GitHub Help +// documentation. +// - GitHub Apps with both `metadata:read` and `contents:read&write` permissions. +// This input example shows how you can use the `client_payload` as a test to debug your workflow. +// // POST /repos/{owner}/{repo}/dispatches func (s *Server) handleReposCreateDispatchEventRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -47501,6 +50726,14 @@ func (s *Server) handleReposCreateDispatchEventRequest(args [2]string, w http.Re // handleReposCreateForAuthenticatedUserRequest handles repos/create-for-authenticated-user operation. // +// Creates a new repository for the authenticated user. +// **OAuth scope requirements** +// When using [OAuth](https://docs.github. +// com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include: +// * `public_repo` scope or `repo` scope to create a public repository. Note: For GitHub AE, use +// `repo` scope to create an internal repository. +// * `repo` scope to create a private repository. +// // POST /user/repos func (s *Server) handleReposCreateForAuthenticatedUserRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -47598,6 +50831,11 @@ func (s *Server) handleReposCreateForAuthenticatedUserRequest(args [0]string, w // handleReposCreateForkRequest handles repos/create-fork operation. // +// Create a fork for the authenticated user. +// **Note**: Forking a Repository happens asynchronously. You may have to wait a short period of time +// before you can access the git objects. If this takes longer than 5 minutes, be sure to contact +// [GitHub Support](https://support.github.com/contact?tags=dotcom-rest-api). +// // POST /repos/{owner}/{repo}/forks func (s *Server) handleReposCreateForkRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -47708,6 +50946,15 @@ func (s *Server) handleReposCreateForkRequest(args [2]string, w http.ResponseWri // handleReposCreateInOrgRequest handles repos/create-in-org operation. // +// Creates a new repository in the specified organization. The authenticated user must be a member of +// the organization. +// **OAuth scope requirements** +// When using [OAuth](https://docs.github. +// com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include: +// * `public_repo` scope or `repo` scope to create a public repository. Note: For GitHub AE, use +// `repo` scope to create an internal repository. +// * `repo` scope to create a private repository. +// // POST /orgs/{org}/repos func (s *Server) handleReposCreateInOrgRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -47817,6 +51064,8 @@ func (s *Server) handleReposCreateInOrgRequest(args [1]string, w http.ResponseWr // handleReposCreateOrUpdateFileContentsRequest handles repos/create-or-update-file-contents operation. // +// Creates a new file or replaces an existing file in a repository. +// // PUT /repos/{owner}/{repo}/contents/{path} func (s *Server) handleReposCreateOrUpdateFileContentsRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -47928,6 +51177,9 @@ func (s *Server) handleReposCreateOrUpdateFileContentsRequest(args [3]string, w // handleReposCreatePagesSiteRequest handles repos/create-pages-site operation. // +// Configures a GitHub Pages site. For more information, see "[About GitHub +// Pages](/github/working-with-github-pages/about-github-pages).". +// // POST /repos/{owner}/{repo}/pages func (s *Server) handleReposCreatePagesSiteRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -48038,6 +51290,15 @@ func (s *Server) handleReposCreatePagesSiteRequest(args [2]string, w http.Respon // handleReposCreateReleaseRequest handles repos/create-release operation. // +// Users with push access to the repository can create a release. +// This endpoint triggers [notifications](https://docs.github. +// com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating +// content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary +// rate limits](https://docs.github. +// com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary +// rate limits](https://docs.github. +// com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)" for details. +// // POST /repos/{owner}/{repo}/releases func (s *Server) handleReposCreateReleaseRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -48148,6 +51409,19 @@ func (s *Server) handleReposCreateReleaseRequest(args [2]string, w http.Response // handleReposCreateUsingTemplateRequest handles repos/create-using-template operation. // +// Creates a new repository using a repository template. Use the `template_owner` and `template_repo` +// route parameters to specify the repository to use as the template. The authenticated user must own +// or be a member of an organization that owns the repository. To check if a repository is available +// to use as a template, get the repository's information using the [Get a repository](https://docs. +// github.com/rest/reference/repos#get-a-repository) endpoint and check that the `is_template` key is +// `true`. +// **OAuth scope requirements** +// When using [OAuth](https://docs.github. +// com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include: +// * `public_repo` scope or `repo` scope to create a public repository. Note: For GitHub AE, use +// `repo` scope to create an internal repository. +// * `repo` scope to create a private repository. +// // POST /repos/{template_owner}/{template_repo}/generate func (s *Server) handleReposCreateUsingTemplateRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -48258,6 +51532,10 @@ func (s *Server) handleReposCreateUsingTemplateRequest(args [2]string, w http.Re // handleReposCreateWebhookRequest handles repos/create-webhook operation. // +// Repositories can have multiple webhooks installed. Each webhook should have a unique `config`. +// Multiple webhooks can +// share the same `config` as long as those webhooks do not have any `events` that overlap. +// // POST /repos/{owner}/{repo}/hooks func (s *Server) handleReposCreateWebhookRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -48368,6 +51646,8 @@ func (s *Server) handleReposCreateWebhookRequest(args [2]string, w http.Response // handleReposDeclineInvitationRequest handles repos/decline-invitation operation. // +// Decline a repository invitation. +// // DELETE /user/repository_invitations/{invitation_id} func (s *Server) handleReposDeclineInvitationRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -48462,6 +51742,11 @@ func (s *Server) handleReposDeclineInvitationRequest(args [1]string, w http.Resp // handleReposDeleteRequest handles repos/delete operation. // +// Deleting a repository requires admin access. If OAuth is used, the `delete_repo` scope is required. +// If an organization owner has configured the organization to prevent members from deleting +// organization-owned +// repositories, you will get a `403 Forbidden` response. +// // DELETE /repos/{owner}/{repo} func (s *Server) handleReposDeleteRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -48557,6 +51842,13 @@ func (s *Server) handleReposDeleteRequest(args [2]string, w http.ResponseWriter, // handleReposDeleteAccessRestrictionsRequest handles repos/delete-access-restrictions operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// Disables the ability to restrict who can push to this branch. +// // DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions func (s *Server) handleReposDeleteAccessRestrictionsRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -48653,6 +51945,14 @@ func (s *Server) handleReposDeleteAccessRestrictionsRequest(args [3]string, w ht // handleReposDeleteAdminBranchProtectionRequest handles repos/delete-admin-branch-protection operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// Removing admin enforcement requires admin or owner permissions to the repository and branch +// protection to be enabled. +// // DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins func (s *Server) handleReposDeleteAdminBranchProtectionRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -48749,6 +52049,8 @@ func (s *Server) handleReposDeleteAdminBranchProtectionRequest(args [3]string, w // handleReposDeleteAnEnvironmentRequest handles repos/delete-an-environment operation. // +// You must authenticate using an access token with the repo scope to use this endpoint. +// // DELETE /repos/{owner}/{repo}/environments/{environment_name} func (s *Server) handleReposDeleteAnEnvironmentRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -48845,6 +52147,9 @@ func (s *Server) handleReposDeleteAnEnvironmentRequest(args [3]string, w http.Re // handleReposDeleteAutolinkRequest handles repos/delete-autolink operation. // +// This deletes a single autolink reference by ID that was configured for the given repository. +// Information about autolinks are only available to repository administrators. +// // DELETE /repos/{owner}/{repo}/autolinks/{autolink_id} func (s *Server) handleReposDeleteAutolinkRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -48941,6 +52246,12 @@ func (s *Server) handleReposDeleteAutolinkRequest(args [3]string, w http.Respons // handleReposDeleteBranchProtectionRequest handles repos/delete-branch-protection operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// // DELETE /repos/{owner}/{repo}/branches/{branch}/protection func (s *Server) handleReposDeleteBranchProtectionRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -49037,6 +52348,8 @@ func (s *Server) handleReposDeleteBranchProtectionRequest(args [3]string, w http // handleReposDeleteCommitCommentRequest handles repos/delete-commit-comment operation. // +// Delete a commit comment. +// // DELETE /repos/{owner}/{repo}/comments/{comment_id} func (s *Server) handleReposDeleteCommitCommentRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -49133,6 +52446,15 @@ func (s *Server) handleReposDeleteCommitCommentRequest(args [3]string, w http.Re // handleReposDeleteCommitSignatureProtectionRequest handles repos/delete-commit-signature-protection operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// When authenticated with admin or owner permissions to the repository, you can use this endpoint to +// disable required signed commits on a branch. You must enable branch protection to require signed +// commits. +// // DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures func (s *Server) handleReposDeleteCommitSignatureProtectionRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -49229,6 +52551,9 @@ func (s *Server) handleReposDeleteCommitSignatureProtectionRequest(args [3]strin // handleReposDeleteDeployKeyRequest handles repos/delete-deploy-key operation. // +// Deploy keys are immutable. If you need to update a key, remove the key and create a new one +// instead. +// // DELETE /repos/{owner}/{repo}/keys/{key_id} func (s *Server) handleReposDeleteDeployKeyRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -49325,6 +52650,16 @@ func (s *Server) handleReposDeleteDeployKeyRequest(args [3]string, w http.Respon // handleReposDeleteDeploymentRequest handles repos/delete-deployment operation. // +// To ensure there can always be an active deployment, you can only delete an _inactive_ deployment. +// Anyone with `repo` or `repo_deployment` scopes can delete an inactive deployment. +// To set a deployment as inactive, you must: +// * Create a new deployment that is active so that the system has a record of the current state, +// then delete the previously active deployment. +// * Mark the active deployment as inactive by adding any non-successful deployment status. +// For more information, see "[Create a deployment](https://docs.github. +// com/rest/reference/repos/#create-a-deployment)" and "[Create a deployment status](https://docs. +// github.com/rest/reference/repos#create-a-deployment-status).". +// // DELETE /repos/{owner}/{repo}/deployments/{deployment_id} func (s *Server) handleReposDeleteDeploymentRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -49421,6 +52756,15 @@ func (s *Server) handleReposDeleteDeploymentRequest(args [3]string, w http.Respo // handleReposDeleteFileRequest handles repos/delete-file operation. // +// Deletes a file in a repository. +// You can provide an additional `committer` parameter, which is an object containing information +// about the committer. Or, you can provide an `author` parameter, which is an object containing +// information about the author. +// The `author` section is optional and is filled in with the `committer` information if omitted. If +// the `committer` information is omitted, the authenticated user's information is used. +// You must provide values for both `name` and `email`, whether you choose to use `author` or +// `committer`. Otherwise, you'll receive a `422` status code. +// // DELETE /repos/{owner}/{repo}/contents/{path} func (s *Server) handleReposDeleteFileRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -49532,6 +52876,8 @@ func (s *Server) handleReposDeleteFileRequest(args [3]string, w http.ResponseWri // handleReposDeleteInvitationRequest handles repos/delete-invitation operation. // +// Delete a repository invitation. +// // DELETE /repos/{owner}/{repo}/invitations/{invitation_id} func (s *Server) handleReposDeleteInvitationRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -49628,6 +52974,8 @@ func (s *Server) handleReposDeleteInvitationRequest(args [3]string, w http.Respo // handleReposDeletePagesSiteRequest handles repos/delete-pages-site operation. // +// Delete a GitHub Pages site. +// // DELETE /repos/{owner}/{repo}/pages func (s *Server) handleReposDeletePagesSiteRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -49723,6 +53071,12 @@ func (s *Server) handleReposDeletePagesSiteRequest(args [2]string, w http.Respon // handleReposDeletePullRequestReviewProtectionRequest handles repos/delete-pull-request-review-protection operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// // DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews func (s *Server) handleReposDeletePullRequestReviewProtectionRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -49819,6 +53173,8 @@ func (s *Server) handleReposDeletePullRequestReviewProtectionRequest(args [3]str // handleReposDeleteReleaseRequest handles repos/delete-release operation. // +// Users with push access to the repository can delete a release. +// // DELETE /repos/{owner}/{repo}/releases/{release_id} func (s *Server) handleReposDeleteReleaseRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -49915,6 +53271,8 @@ func (s *Server) handleReposDeleteReleaseRequest(args [3]string, w http.Response // handleReposDeleteReleaseAssetRequest handles repos/delete-release-asset operation. // +// Delete a release asset. +// // DELETE /repos/{owner}/{repo}/releases/assets/{asset_id} func (s *Server) handleReposDeleteReleaseAssetRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -50011,6 +53369,8 @@ func (s *Server) handleReposDeleteReleaseAssetRequest(args [3]string, w http.Res // handleReposDeleteWebhookRequest handles repos/delete-webhook operation. // +// Delete a repository webhook. +// // DELETE /repos/{owner}/{repo}/hooks/{hook_id} func (s *Server) handleReposDeleteWebhookRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -50107,6 +53467,10 @@ func (s *Server) handleReposDeleteWebhookRequest(args [3]string, w http.Response // handleReposDisableAutomatedSecurityFixesRequest handles repos/disable-automated-security-fixes operation. // +// Disables automated security fixes for a repository. The authenticated user must have admin access +// to the repository. For more information, see "[Configuring automated security fixes](https://help. +// github.com/en/articles/configuring-automated-security-fixes)". +// // DELETE /repos/{owner}/{repo}/automated-security-fixes func (s *Server) handleReposDisableAutomatedSecurityFixesRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -50202,6 +53566,8 @@ func (s *Server) handleReposDisableAutomatedSecurityFixesRequest(args [2]string, // handleReposDisableLfsForRepoRequest handles repos/disable-lfs-for-repo operation. // +// **Note:** The Git LFS API endpoints are currently in beta and are subject to change. +// // DELETE /repos/{owner}/{repo}/lfs func (s *Server) handleReposDisableLfsForRepoRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -50297,6 +53663,11 @@ func (s *Server) handleReposDisableLfsForRepoRequest(args [2]string, w http.Resp // handleReposDisableVulnerabilityAlertsRequest handles repos/disable-vulnerability-alerts operation. // +// Disables dependency alerts and the dependency graph for a repository. The authenticated user must +// have admin access to the repository. For more information, see "[About security alerts for +// vulnerable dependencies](https://help.github. +// com/en/articles/about-security-alerts-for-vulnerable-dependencies)". +// // DELETE /repos/{owner}/{repo}/vulnerability-alerts func (s *Server) handleReposDisableVulnerabilityAlertsRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -50392,6 +53763,13 @@ func (s *Server) handleReposDisableVulnerabilityAlertsRequest(args [2]string, w // handleReposDownloadTarballArchiveRequest handles repos/download-tarball-archive operation. // +// Gets a redirect URL to download a tar archive for a repository. If you omit `:ref`, the +// repository’s default branch (usually +// `master`) will be used. Please make sure your HTTP framework is configured to follow redirects or +// you will need to use +// the `Location` header to make a second `GET` request. +// **Note**: For private repositories, these links are temporary and expire after five minutes. +// // GET /repos/{owner}/{repo}/tarball/{ref} func (s *Server) handleReposDownloadTarballArchiveRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -50488,6 +53866,13 @@ func (s *Server) handleReposDownloadTarballArchiveRequest(args [3]string, w http // handleReposDownloadZipballArchiveRequest handles repos/download-zipball-archive operation. // +// Gets a redirect URL to download a zip archive for a repository. If you omit `:ref`, the +// repository’s default branch (usually +// `master`) will be used. Please make sure your HTTP framework is configured to follow redirects or +// you will need to use +// the `Location` header to make a second `GET` request. +// **Note**: For private repositories, these links are temporary and expire after five minutes. +// // GET /repos/{owner}/{repo}/zipball/{ref} func (s *Server) handleReposDownloadZipballArchiveRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -50584,6 +53969,10 @@ func (s *Server) handleReposDownloadZipballArchiveRequest(args [3]string, w http // handleReposEnableAutomatedSecurityFixesRequest handles repos/enable-automated-security-fixes operation. // +// Enables automated security fixes for a repository. The authenticated user must have admin access +// to the repository. For more information, see "[Configuring automated security fixes](https://help. +// github.com/en/articles/configuring-automated-security-fixes)". +// // PUT /repos/{owner}/{repo}/automated-security-fixes func (s *Server) handleReposEnableAutomatedSecurityFixesRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -50679,6 +54068,8 @@ func (s *Server) handleReposEnableAutomatedSecurityFixesRequest(args [2]string, // handleReposEnableLfsForRepoRequest handles repos/enable-lfs-for-repo operation. // +// **Note:** The Git LFS API endpoints are currently in beta and are subject to change. +// // PUT /repos/{owner}/{repo}/lfs func (s *Server) handleReposEnableLfsForRepoRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -50774,6 +54165,11 @@ func (s *Server) handleReposEnableLfsForRepoRequest(args [2]string, w http.Respo // handleReposEnableVulnerabilityAlertsRequest handles repos/enable-vulnerability-alerts operation. // +// Enables dependency alerts and the dependency graph for a repository. The authenticated user must +// have admin access to the repository. For more information, see "[About security alerts for +// vulnerable dependencies](https://help.github. +// com/en/articles/about-security-alerts-for-vulnerable-dependencies)". +// // PUT /repos/{owner}/{repo}/vulnerability-alerts func (s *Server) handleReposEnableVulnerabilityAlertsRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -50869,6 +54265,9 @@ func (s *Server) handleReposEnableVulnerabilityAlertsRequest(args [2]string, w h // handleReposGetRequest handles repos/get operation. // +// The `parent` and `source` objects are present when the repository is a fork. `parent` is the +// repository this repository was forked from, `source` is the ultimate source for the network. +// // GET /repos/{owner}/{repo} func (s *Server) handleReposGetRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -50964,6 +54363,15 @@ func (s *Server) handleReposGetRequest(args [2]string, w http.ResponseWriter, r // handleReposGetAccessRestrictionsRequest handles repos/get-access-restrictions operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// Lists who has access to this protected branch. +// **Note**: Users, apps, and teams `restrictions` are only available for organization-owned +// repositories. +// // GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions func (s *Server) handleReposGetAccessRestrictionsRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -51060,6 +54468,12 @@ func (s *Server) handleReposGetAccessRestrictionsRequest(args [3]string, w http. // handleReposGetAdminBranchProtectionRequest handles repos/get-admin-branch-protection operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// // GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins func (s *Server) handleReposGetAdminBranchProtectionRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -51156,6 +54570,12 @@ func (s *Server) handleReposGetAdminBranchProtectionRequest(args [3]string, w ht // handleReposGetAllStatusCheckContextsRequest handles repos/get-all-status-check-contexts operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// // GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts func (s *Server) handleReposGetAllStatusCheckContextsRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -51252,6 +54672,8 @@ func (s *Server) handleReposGetAllStatusCheckContextsRequest(args [3]string, w h // handleReposGetAllTopicsRequest handles repos/get-all-topics operation. // +// Get all repository topics. +// // GET /repos/{owner}/{repo}/topics func (s *Server) handleReposGetAllTopicsRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -51349,6 +54771,15 @@ func (s *Server) handleReposGetAllTopicsRequest(args [2]string, w http.ResponseW // handleReposGetAppsWithAccessToProtectedBranchRequest handles repos/get-apps-with-access-to-protected-branch operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// Lists the GitHub Apps that have push access to this branch. Only installed GitHub Apps with +// `write` access to the `contents` permission can be added as authorized actors on a protected +// branch. +// // GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps func (s *Server) handleReposGetAppsWithAccessToProtectedBranchRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -51445,6 +54876,9 @@ func (s *Server) handleReposGetAppsWithAccessToProtectedBranchRequest(args [3]st // handleReposGetAutolinkRequest handles repos/get-autolink operation. // +// This returns a single autolink reference by ID that was configured for the given repository. +// Information about autolinks are only available to repository administrators. +// // GET /repos/{owner}/{repo}/autolinks/{autolink_id} func (s *Server) handleReposGetAutolinkRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -51541,6 +54975,8 @@ func (s *Server) handleReposGetAutolinkRequest(args [3]string, w http.ResponseWr // handleReposGetBranchRequest handles repos/get-branch operation. // +// Get a branch. +// // GET /repos/{owner}/{repo}/branches/{branch} func (s *Server) handleReposGetBranchRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -51637,6 +55073,12 @@ func (s *Server) handleReposGetBranchRequest(args [3]string, w http.ResponseWrit // handleReposGetBranchProtectionRequest handles repos/get-branch-protection operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// // GET /repos/{owner}/{repo}/branches/{branch}/protection func (s *Server) handleReposGetBranchProtectionRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -51733,6 +55175,9 @@ func (s *Server) handleReposGetBranchProtectionRequest(args [3]string, w http.Re // handleReposGetClonesRequest handles repos/get-clones operation. // +// Get the total number of clones and breakdown per day or week for the last 14 days. Timestamps are +// aligned to UTC midnight of the beginning of the day or week. Week begins on Monday. +// // GET /repos/{owner}/{repo}/traffic/clones func (s *Server) handleReposGetClonesRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -51829,6 +55274,8 @@ func (s *Server) handleReposGetClonesRequest(args [2]string, w http.ResponseWrit // handleReposGetCodeFrequencyStatsRequest handles repos/get-code-frequency-stats operation. // +// Returns a weekly aggregate of the number of additions and deletions pushed to a repository. +// // GET /repos/{owner}/{repo}/stats/code_frequency func (s *Server) handleReposGetCodeFrequencyStatsRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -51924,6 +55371,9 @@ func (s *Server) handleReposGetCodeFrequencyStatsRequest(args [2]string, w http. // handleReposGetCollaboratorPermissionLevelRequest handles repos/get-collaborator-permission-level operation. // +// Checks the repository permission of a collaborator. The possible repository permissions are +// `admin`, `write`, `read`, and `none`. +// // GET /repos/{owner}/{repo}/collaborators/{username}/permission func (s *Server) handleReposGetCollaboratorPermissionLevelRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -52020,6 +55470,16 @@ func (s *Server) handleReposGetCollaboratorPermissionLevelRequest(args [3]string // handleReposGetCombinedStatusForRefRequest handles repos/get-combined-status-for-ref operation. // +// Users with pull access in a repository can access a combined view of commit statuses for a given +// ref. The ref can be a SHA, a branch name, or a tag name. +// The most recent status for each context is returned, up to 100. This field +// [paginates](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination) if there +// are over 100 contexts. +// Additionally, a combined `state` is returned. The `state` is one of: +// * **failure** if any of the contexts report as `error` or `failure` +// * **pending** if there are no statuses or a context is `pending` +// * **success** if the latest status for all contexts is `success`. +// // GET /repos/{owner}/{repo}/commits/{ref}/status func (s *Server) handleReposGetCombinedStatusForRefRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -52118,6 +55578,54 @@ func (s *Server) handleReposGetCombinedStatusForRefRequest(args [3]string, w htt // handleReposGetCommitRequest handles repos/get-commit operation. // +// Returns the contents of a single commit reference. You must have `read` access for the repository +// to use this endpoint. +// **Note:** If there are more than 300 files in the commit diff, the response will include +// pagination link headers for the remaining files, up to a limit of 3000 files. Each page contains +// the static commit information, and the only changes are to the file listing. +// You can pass the appropriate [media type](https://docs.github. +// com/rest/overview/media-types/#commits-commit-comparison-and-pull-requests) to fetch `diff` and +// `patch` formats. Diffs with binary data will have no `patch` property. +// To return only the SHA-1 hash of the commit reference, you can provide the `sha` custom [media +// type](https://docs.github. +// com/rest/overview/media-types/#commits-commit-comparison-and-pull-requests) in the `Accept` header. +// +// You can use this endpoint to check if a remote reference's SHA-1 hash is the same as your local +// +// reference's SHA-1 hash by providing the local SHA-1 reference as the ETag. +// **Signature verification object** +// The response will include a `verification` object that describes the result of verifying the +// commit's signature. The following fields are included in the `verification` object: +// | Name | Type | Description | +// | ---- | ---- | ----------- | +// | `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be +// verified. | +// | `reason` | `string` | The reason for verified value. Possible values and their meanings are +// enumerated in table below. | +// | `signature` | `string` | The signature that was extracted from the commit. | +// | `payload` | `string` | The value that was signed. | +// These are the possible values for `reason` in the `verification` object: +// | Value | Description | +// | ----- | ----------- | +// | `expired_key` | The key that made the signature is expired. | +// | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the +// signature. | +// | `gpgverify_error` | There was an error communicating with the signature verification service. | +// | `gpgverify_unavailable` | The signature verification service is currently unavailable. | +// | `unsigned` | The object does not include a signature. | +// | `unknown_signature_type` | A non-PGP signature was found in the commit. | +// | `no_user` | No user was associated with the `committer` email address in the commit. | +// | `unverified_email` | The `committer` email address in the commit was associated with a user, but +// the email address is not verified on her/his account. | +// | `bad_email` | The `committer` email address in the commit is not included in the identities of +// the PGP key that made the signature. | +// | `unknown_key` | The key that made the signature has not been registered with any user's account. +// | +// | `malformed_signature` | There was an error parsing the signature. | +// | `invalid` | The signature could not be cryptographically verified using the key whose key-id was +// found in the signature. | +// | `valid` | None of the above errors applied, so the signature is considered to be verified. |. +// // GET /repos/{owner}/{repo}/commits/{ref} func (s *Server) handleReposGetCommitRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -52216,6 +55724,9 @@ func (s *Server) handleReposGetCommitRequest(args [3]string, w http.ResponseWrit // handleReposGetCommitActivityStatsRequest handles repos/get-commit-activity-stats operation. // +// Returns the last year of commit activity grouped by week. The `days` array is a group of commits +// per day, starting on `Sunday`. +// // GET /repos/{owner}/{repo}/stats/commit_activity func (s *Server) handleReposGetCommitActivityStatsRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -52311,6 +55822,8 @@ func (s *Server) handleReposGetCommitActivityStatsRequest(args [2]string, w http // handleReposGetCommitCommentRequest handles repos/get-commit-comment operation. // +// Get a commit comment. +// // GET /repos/{owner}/{repo}/comments/{comment_id} func (s *Server) handleReposGetCommitCommentRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -52407,6 +55920,17 @@ func (s *Server) handleReposGetCommitCommentRequest(args [3]string, w http.Respo // handleReposGetCommitSignatureProtectionRequest handles repos/get-commit-signature-protection operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// When authenticated with admin or owner permissions to the repository, you can use this endpoint to +// check whether a branch requires signed commits. An enabled status of `true` indicates you must +// sign commits on this branch. For more information, see [Signing commits with GPG](https://help. +// github.com/articles/signing-commits-with-gpg) in GitHub Help. +// **Note**: You must enable branch protection to require signed commits. +// // GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures func (s *Server) handleReposGetCommitSignatureProtectionRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -52503,6 +56027,17 @@ func (s *Server) handleReposGetCommitSignatureProtectionRequest(args [3]string, // handleReposGetCommunityProfileMetricsRequest handles repos/get-community-profile-metrics operation. // +// This endpoint will return all community profile metrics, including an +// overall health score, repository description, the presence of documentation, detected +// code of conduct, detected license, and the presence of ISSUE\_TEMPLATE, PULL\_REQUEST\_TEMPLATE, +// README, and CONTRIBUTING files. +// The `health_percentage` score is defined as a percentage of how many of +// these four documents are present: README, CONTRIBUTING, LICENSE, and +// CODE_OF_CONDUCT. For example, if all four documents are present, then +// the `health_percentage` is `100`. If only one is present, then the +// `health_percentage` is `25`. +// `content_reports_enabled` is only returned for organization-owned repositories. +// // GET /repos/{owner}/{repo}/community/profile func (s *Server) handleReposGetCommunityProfileMetricsRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -52598,6 +56133,13 @@ func (s *Server) handleReposGetCommunityProfileMetricsRequest(args [2]string, w // handleReposGetContributorsStatsRequest handles repos/get-contributors-stats operation. // +// Returns the `total` number of commits authored by the contributor. In addition, the response +// includes a Weekly Hash (`weeks` array) with the following information: +// * `w` - Start of the week, given as a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time). +// * `a` - Number of additions +// * `d` - Number of deletions +// * `c` - Number of commits. +// // GET /repos/{owner}/{repo}/stats/contributors func (s *Server) handleReposGetContributorsStatsRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -52693,6 +56235,8 @@ func (s *Server) handleReposGetContributorsStatsRequest(args [2]string, w http.R // handleReposGetDeployKeyRequest handles repos/get-deploy-key operation. // +// Get a deploy key. +// // GET /repos/{owner}/{repo}/keys/{key_id} func (s *Server) handleReposGetDeployKeyRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -52789,6 +56333,8 @@ func (s *Server) handleReposGetDeployKeyRequest(args [3]string, w http.ResponseW // handleReposGetDeploymentRequest handles repos/get-deployment operation. // +// Get a deployment. +// // GET /repos/{owner}/{repo}/deployments/{deployment_id} func (s *Server) handleReposGetDeploymentRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -52885,6 +56431,8 @@ func (s *Server) handleReposGetDeploymentRequest(args [3]string, w http.Response // handleReposGetDeploymentStatusRequest handles repos/get-deployment-status operation. // +// Users with pull access can view a deployment status for a deployment:. +// // GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id} func (s *Server) handleReposGetDeploymentStatusRequest(args [4]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -52982,6 +56530,8 @@ func (s *Server) handleReposGetDeploymentStatusRequest(args [4]string, w http.Re // handleReposGetLatestPagesBuildRequest handles repos/get-latest-pages-build operation. // +// Get latest Pages build. +// // GET /repos/{owner}/{repo}/pages/builds/latest func (s *Server) handleReposGetLatestPagesBuildRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -53077,6 +56627,11 @@ func (s *Server) handleReposGetLatestPagesBuildRequest(args [2]string, w http.Re // handleReposGetLatestReleaseRequest handles repos/get-latest-release operation. // +// View the latest published full release for the repository. +// The latest release is the most recent non-prerelease, non-draft release, sorted by the +// `created_at` attribute. The `created_at` attribute is the date of the commit used for the release, +// and not the date when the release was drafted or published. +// // GET /repos/{owner}/{repo}/releases/latest func (s *Server) handleReposGetLatestReleaseRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -53172,6 +56727,8 @@ func (s *Server) handleReposGetLatestReleaseRequest(args [2]string, w http.Respo // handleReposGetPagesRequest handles repos/get-pages operation. // +// Get a GitHub Pages site. +// // GET /repos/{owner}/{repo}/pages func (s *Server) handleReposGetPagesRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -53267,6 +56824,8 @@ func (s *Server) handleReposGetPagesRequest(args [2]string, w http.ResponseWrite // handleReposGetPagesBuildRequest handles repos/get-pages-build operation. // +// Get GitHub Pages build. +// // GET /repos/{owner}/{repo}/pages/builds/{build_id} func (s *Server) handleReposGetPagesBuildRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -53363,6 +56922,14 @@ func (s *Server) handleReposGetPagesBuildRequest(args [3]string, w http.Response // handleReposGetPagesHealthCheckRequest handles repos/get-pages-health-check operation. // +// Gets a health check of the DNS settings for the `CNAME` record configured for a repository's +// GitHub Pages. +// The first request to this endpoint returns a `202 Accepted` status and starts an asynchronous +// background task to get the results for the domain. After the background task completes, subsequent +// requests to this endpoint return a `200 OK` status with the health check results in the response. +// Users must have admin or owner permissions. GitHub Apps must have the `pages:write` and +// `administration:write` permission to use this endpoint. +// // GET /repos/{owner}/{repo}/pages/health func (s *Server) handleReposGetPagesHealthCheckRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -53458,6 +57025,11 @@ func (s *Server) handleReposGetPagesHealthCheckRequest(args [2]string, w http.Re // handleReposGetParticipationStatsRequest handles repos/get-participation-stats operation. // +// Returns the total commit counts for the `owner` and total commit counts in `all`. `all` is +// everyone combined, including the `owner` in the last 52 weeks. If you'd like to get the commit +// counts for non-owners, you can subtract `owner` from `all`. +// The array order is oldest week (index 0) to most recent week. +// // GET /repos/{owner}/{repo}/stats/participation func (s *Server) handleReposGetParticipationStatsRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -53553,6 +57125,12 @@ func (s *Server) handleReposGetParticipationStatsRequest(args [2]string, w http. // handleReposGetPullRequestReviewProtectionRequest handles repos/get-pull-request-review-protection operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// // GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews func (s *Server) handleReposGetPullRequestReviewProtectionRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -53649,6 +57227,13 @@ func (s *Server) handleReposGetPullRequestReviewProtectionRequest(args [3]string // handleReposGetPunchCardStatsRequest handles repos/get-punch-card-stats operation. // +// Each array contains the day number, hour number, and number of commits: +// * `0-6`: Sunday - Saturday +// * `0-23`: Hour of day +// * Number of commits +// For example, `[2, 14, 25]` indicates that there were 25 total commits, during the 2:00pm hour on +// Tuesdays. All times are based on the time zone of individual commits. +// // GET /repos/{owner}/{repo}/stats/punch_card func (s *Server) handleReposGetPunchCardStatsRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -53744,6 +57329,10 @@ func (s *Server) handleReposGetPunchCardStatsRequest(args [2]string, w http.Resp // handleReposGetReadmeRequest handles repos/get-readme operation. // +// Gets the preferred README for a repository. +// READMEs support [custom media types](https://docs.github. +// com/rest/reference/repos#custom-media-types) for retrieving the raw content or rendered HTML. +// // GET /repos/{owner}/{repo}/readme func (s *Server) handleReposGetReadmeRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -53840,6 +57429,10 @@ func (s *Server) handleReposGetReadmeRequest(args [2]string, w http.ResponseWrit // handleReposGetReadmeInDirectoryRequest handles repos/get-readme-in-directory operation. // +// Gets the README from a repository directory. +// READMEs support [custom media types](https://docs.github. +// com/rest/reference/repos#custom-media-types) for retrieving the raw content or rendered HTML. +// // GET /repos/{owner}/{repo}/readme/{dir} func (s *Server) handleReposGetReadmeInDirectoryRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -53937,6 +57530,10 @@ func (s *Server) handleReposGetReadmeInDirectoryRequest(args [3]string, w http.R // handleReposGetReleaseRequest handles repos/get-release operation. // +// **Note:** This returns an `upload_url` key corresponding to the endpoint for uploading release +// assets. This key is a [hypermedia resource](https://docs.github. +// com/rest/overview/resources-in-the-rest-api#hypermedia). +// // GET /repos/{owner}/{repo}/releases/{release_id} func (s *Server) handleReposGetReleaseRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -54033,6 +57630,11 @@ func (s *Server) handleReposGetReleaseRequest(args [3]string, w http.ResponseWri // handleReposGetReleaseAssetRequest handles repos/get-release-asset operation. // +// To download the asset's binary content, set the `Accept` header of the request to +// [`application/octet-stream`](https://docs.github.com/rest/overview/media-types). The API will +// either redirect the client to the location, or stream it directly if possible. API clients should +// handle both a `200` or `302` response. +// // GET /repos/{owner}/{repo}/releases/assets/{asset_id} func (s *Server) handleReposGetReleaseAssetRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -54129,6 +57731,8 @@ func (s *Server) handleReposGetReleaseAssetRequest(args [3]string, w http.Respon // handleReposGetReleaseByTagRequest handles repos/get-release-by-tag operation. // +// Get a published release with the specified tag. +// // GET /repos/{owner}/{repo}/releases/tags/{tag} func (s *Server) handleReposGetReleaseByTagRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -54225,6 +57829,12 @@ func (s *Server) handleReposGetReleaseByTagRequest(args [3]string, w http.Respon // handleReposGetStatusChecksProtectionRequest handles repos/get-status-checks-protection operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// // GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks func (s *Server) handleReposGetStatusChecksProtectionRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -54321,6 +57931,13 @@ func (s *Server) handleReposGetStatusChecksProtectionRequest(args [3]string, w h // handleReposGetTeamsWithAccessToProtectedBranchRequest handles repos/get-teams-with-access-to-protected-branch operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// Lists the teams who have push access to this branch. The list includes child teams. +// // GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams func (s *Server) handleReposGetTeamsWithAccessToProtectedBranchRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -54417,6 +58034,8 @@ func (s *Server) handleReposGetTeamsWithAccessToProtectedBranchRequest(args [3]s // handleReposGetTopPathsRequest handles repos/get-top-paths operation. // +// Get the top 10 popular contents over the last 14 days. +// // GET /repos/{owner}/{repo}/traffic/popular/paths func (s *Server) handleReposGetTopPathsRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -54512,6 +58131,8 @@ func (s *Server) handleReposGetTopPathsRequest(args [2]string, w http.ResponseWr // handleReposGetTopReferrersRequest handles repos/get-top-referrers operation. // +// Get the top 10 referrers over the last 14 days. +// // GET /repos/{owner}/{repo}/traffic/popular/referrers func (s *Server) handleReposGetTopReferrersRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -54607,6 +58228,13 @@ func (s *Server) handleReposGetTopReferrersRequest(args [2]string, w http.Respon // handleReposGetUsersWithAccessToProtectedBranchRequest handles repos/get-users-with-access-to-protected-branch operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// Lists the people who have push access to this branch. +// // GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users func (s *Server) handleReposGetUsersWithAccessToProtectedBranchRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -54703,6 +58331,9 @@ func (s *Server) handleReposGetUsersWithAccessToProtectedBranchRequest(args [3]s // handleReposGetViewsRequest handles repos/get-views operation. // +// Get the total number of views and breakdown per day or week for the last 14 days. Timestamps are +// aligned to UTC midnight of the beginning of the day or week. Week begins on Monday. +// // GET /repos/{owner}/{repo}/traffic/views func (s *Server) handleReposGetViewsRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -54799,6 +58430,10 @@ func (s *Server) handleReposGetViewsRequest(args [2]string, w http.ResponseWrite // handleReposGetWebhookRequest handles repos/get-webhook operation. // +// Returns a webhook configured in a repository. To get only the webhook `config` properties, see +// "[Get a webhook configuration for a +// repository](/rest/reference/repos#get-a-webhook-configuration-for-a-repository).". +// // GET /repos/{owner}/{repo}/hooks/{hook_id} func (s *Server) handleReposGetWebhookRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -54895,6 +58530,12 @@ func (s *Server) handleReposGetWebhookRequest(args [3]string, w http.ResponseWri // handleReposGetWebhookConfigForRepoRequest handles repos/get-webhook-config-for-repo operation. // +// Returns the webhook configuration for a repository. To get more information about the webhook, +// including the `active` state and `events`, use "[Get a repository +// webhook](/rest/reference/orgs#get-a-repository-webhook)." +// Access tokens must have the `read:repo_hook` or `repo` scope, and GitHub Apps must have the +// `repository_hooks:read` permission. +// // GET /repos/{owner}/{repo}/hooks/{hook_id}/config func (s *Server) handleReposGetWebhookConfigForRepoRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -54991,6 +58632,8 @@ func (s *Server) handleReposGetWebhookConfigForRepoRequest(args [3]string, w htt // handleReposGetWebhookDeliveryRequest handles repos/get-webhook-delivery operation. // +// Returns a delivery for a webhook configured in a repository. +// // GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id} func (s *Server) handleReposGetWebhookDeliveryRequest(args [4]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -55088,6 +58731,9 @@ func (s *Server) handleReposGetWebhookDeliveryRequest(args [4]string, w http.Res // handleReposListAutolinksRequest handles repos/list-autolinks operation. // +// This returns a list of autolinks configured for the given repository. +// Information about autolinks are only available to repository administrators. +// // GET /repos/{owner}/{repo}/autolinks func (s *Server) handleReposListAutolinksRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -55184,6 +58830,8 @@ func (s *Server) handleReposListAutolinksRequest(args [2]string, w http.Response // handleReposListBranchesRequest handles repos/list-branches operation. // +// List branches. +// // GET /repos/{owner}/{repo}/branches func (s *Server) handleReposListBranchesRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -55282,6 +58930,13 @@ func (s *Server) handleReposListBranchesRequest(args [2]string, w http.ResponseW // handleReposListBranchesForHeadCommitRequest handles repos/list-branches-for-head-commit operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// Returns all branches where the given commit SHA is the HEAD, or latest commit for the branch. +// // GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head func (s *Server) handleReposListBranchesForHeadCommitRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -55378,6 +59033,12 @@ func (s *Server) handleReposListBranchesForHeadCommitRequest(args [3]string, w h // handleReposListCollaboratorsRequest handles repos/list-collaborators operation. // +// For organization-owned repositories, the list of collaborators includes outside collaborators, +// organization members that are direct collaborators, organization members with access through team +// memberships, organization members with access through default organization permissions, and +// organization owners. +// Team members will include the members of child teams. +// // GET /repos/{owner}/{repo}/collaborators func (s *Server) handleReposListCollaboratorsRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -55476,6 +59137,8 @@ func (s *Server) handleReposListCollaboratorsRequest(args [2]string, w http.Resp // handleReposListCommentsForCommitRequest handles repos/list-comments-for-commit operation. // +// Use the `:commit_sha` to specify the commit that will have its comments listed. +// // GET /repos/{owner}/{repo}/commits/{commit_sha}/comments func (s *Server) handleReposListCommentsForCommitRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -55574,6 +59237,11 @@ func (s *Server) handleReposListCommentsForCommitRequest(args [3]string, w http. // handleReposListCommitCommentsForRepoRequest handles repos/list-commit-comments-for-repo operation. // +// Commit Comments use [these custom media types](https://docs.github. +// com/rest/reference/repos#custom-media-types). You can read more about the use of media types in +// the API [here](https://docs.github.com/rest/overview/media-types/). +// Comments are ordered by ascending ID. +// // GET /repos/{owner}/{repo}/comments func (s *Server) handleReposListCommitCommentsForRepoRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -55671,6 +59339,11 @@ func (s *Server) handleReposListCommitCommentsForRepoRequest(args [2]string, w h // handleReposListCommitStatusesForRefRequest handles repos/list-commit-statuses-for-ref operation. // +// Users with pull access in a repository can view commit statuses for a given ref. The ref can be a +// SHA, a branch name, or a tag name. Statuses are returned in reverse chronological order. The first +// status in the list will be the latest one. +// This resource is also available via a legacy route: `GET /repos/:owner/:repo/statuses/:ref`. +// // GET /repos/{owner}/{repo}/commits/{ref}/statuses func (s *Server) handleReposListCommitStatusesForRefRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -55769,6 +59442,39 @@ func (s *Server) handleReposListCommitStatusesForRefRequest(args [3]string, w ht // handleReposListCommitsRequest handles repos/list-commits operation. // +// **Signature verification object** +// The response will include a `verification` object that describes the result of verifying the +// commit's signature. The following fields are included in the `verification` object: +// | Name | Type | Description | +// | ---- | ---- | ----------- | +// | `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be +// verified. | +// | `reason` | `string` | The reason for verified value. Possible values and their meanings are +// enumerated in table below. | +// | `signature` | `string` | The signature that was extracted from the commit. | +// | `payload` | `string` | The value that was signed. | +// These are the possible values for `reason` in the `verification` object: +// | Value | Description | +// | ----- | ----------- | +// | `expired_key` | The key that made the signature is expired. | +// | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the +// signature. | +// | `gpgverify_error` | There was an error communicating with the signature verification service. | +// | `gpgverify_unavailable` | The signature verification service is currently unavailable. | +// | `unsigned` | The object does not include a signature. | +// | `unknown_signature_type` | A non-PGP signature was found in the commit. | +// | `no_user` | No user was associated with the `committer` email address in the commit. | +// | `unverified_email` | The `committer` email address in the commit was associated with a user, but +// the email address is not verified on her/his account. | +// | `bad_email` | The `committer` email address in the commit is not included in the identities of +// the PGP key that made the signature. | +// | `unknown_key` | The key that made the signature has not been registered with any user's account. +// | +// | `malformed_signature` | There was an error parsing the signature. | +// | `invalid` | The signature could not be cryptographically verified using the key whose key-id was +// found in the signature. | +// | `valid` | None of the above errors applied, so the signature is considered to be verified. |. +// // GET /repos/{owner}/{repo}/commits func (s *Server) handleReposListCommitsRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -55871,6 +59577,14 @@ func (s *Server) handleReposListCommitsRequest(args [2]string, w http.ResponseWr // handleReposListContributorsRequest handles repos/list-contributors operation. // +// Lists contributors to the specified repository and sorts them by the number of commits per +// contributor in descending order. This endpoint may return information that is a few hours old +// because the GitHub REST API v3 caches contributor data to improve performance. +// GitHub identifies contributors by author email address. This endpoint groups contribution counts +// by GitHub user, which includes all associated email addresses. To improve performance, only the +// first 500 author email addresses in the repository link to GitHub users. The rest will appear as +// anonymous contributors without associated GitHub user information. +// // GET /repos/{owner}/{repo}/contributors func (s *Server) handleReposListContributorsRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -55969,6 +59683,8 @@ func (s *Server) handleReposListContributorsRequest(args [2]string, w http.Respo // handleReposListDeployKeysRequest handles repos/list-deploy-keys operation. // +// List deploy keys. +// // GET /repos/{owner}/{repo}/keys func (s *Server) handleReposListDeployKeysRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -56066,6 +59782,8 @@ func (s *Server) handleReposListDeployKeysRequest(args [2]string, w http.Respons // handleReposListDeploymentStatusesRequest handles repos/list-deployment-statuses operation. // +// Users with pull access can view deployment statuses for a deployment:. +// // GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses func (s *Server) handleReposListDeploymentStatusesRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -56164,6 +59882,8 @@ func (s *Server) handleReposListDeploymentStatusesRequest(args [3]string, w http // handleReposListDeploymentsRequest handles repos/list-deployments operation. // +// Simple filtering of deployments is available via query parameters:. +// // GET /repos/{owner}/{repo}/deployments func (s *Server) handleReposListDeploymentsRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -56265,6 +59985,11 @@ func (s *Server) handleReposListDeploymentsRequest(args [2]string, w http.Respon // handleReposListForAuthenticatedUserRequest handles repos/list-for-authenticated-user operation. // +// Lists repositories that the authenticated user has explicit permission (`:read`, `:write`, or +// `:admin`) to access. +// The authenticated user has explicit permission to access repositories they own, repositories where +// they are a collaborator, and repositories that they can access through an organization membership. +// // GET /user/repos func (s *Server) handleReposListForAuthenticatedUserRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -56367,6 +60092,8 @@ func (s *Server) handleReposListForAuthenticatedUserRequest(args [0]string, w ht // handleReposListForOrgRequest handles repos/list-for-org operation. // +// Lists repositories for the specified organization. +// // GET /orgs/{org}/repos func (s *Server) handleReposListForOrgRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -56466,6 +60193,9 @@ func (s *Server) handleReposListForOrgRequest(args [1]string, w http.ResponseWri // handleReposListForUserRequest handles repos/list-for-user operation. // +// Lists public repositories for the specified user. Note: For GitHub AE, this endpoint will list +// internal repositories for the specified user. +// // GET /users/{username}/repos func (s *Server) handleReposListForUserRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -56565,6 +60295,8 @@ func (s *Server) handleReposListForUserRequest(args [1]string, w http.ResponseWr // handleReposListForksRequest handles repos/list-forks operation. // +// List forks. +// // GET /repos/{owner}/{repo}/forks func (s *Server) handleReposListForksRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -56663,6 +60395,9 @@ func (s *Server) handleReposListForksRequest(args [2]string, w http.ResponseWrit // handleReposListInvitationsRequest handles repos/list-invitations operation. // +// When authenticating as a user with admin rights to a repository, this endpoint will list all +// currently open repository invitations. +// // GET /repos/{owner}/{repo}/invitations func (s *Server) handleReposListInvitationsRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -56760,6 +60495,9 @@ func (s *Server) handleReposListInvitationsRequest(args [2]string, w http.Respon // handleReposListInvitationsForAuthenticatedUserRequest handles repos/list-invitations-for-authenticated-user operation. // +// When authenticating as a user, this endpoint will list all currently open repository invitations +// for that user. +// // GET /user/repository_invitations func (s *Server) handleReposListInvitationsForAuthenticatedUserRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -56855,6 +60593,9 @@ func (s *Server) handleReposListInvitationsForAuthenticatedUserRequest(args [0]s // handleReposListLanguagesRequest handles repos/list-languages operation. // +// Lists languages for the specified repository. The value shown for each language is the number of +// bytes of code written in that language. +// // GET /repos/{owner}/{repo}/languages func (s *Server) handleReposListLanguagesRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -56950,6 +60691,8 @@ func (s *Server) handleReposListLanguagesRequest(args [2]string, w http.Response // handleReposListPagesBuildsRequest handles repos/list-pages-builds operation. // +// List GitHub Pages builds. +// // GET /repos/{owner}/{repo}/pages/builds func (s *Server) handleReposListPagesBuildsRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -57047,6 +60790,14 @@ func (s *Server) handleReposListPagesBuildsRequest(args [2]string, w http.Respon // handleReposListPublicRequest handles repos/list-public operation. // +// Lists all public repositories in the order that they were created. +// Note: +// - For GitHub Enterprise Server, this endpoint will only list repositories available to all users +// on the enterprise. +// - Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://docs. +// github.com/rest/overview/resources-in-the-rest-api#link-header) to get the URL for the next page +// of repositories. +// // GET /repositories func (s *Server) handleReposListPublicRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -57141,6 +60892,13 @@ func (s *Server) handleReposListPublicRequest(args [0]string, w http.ResponseWri // handleReposListPullRequestsAssociatedWithCommitRequest handles repos/list-pull-requests-associated-with-commit operation. // +// Lists the merged pull request that introduced the commit to the repository. If the commit is not +// present in the default branch, additionally returns open pull requests associated with the commit. +// The results may include open and closed pull requests. Additional preview headers may be required +// to see certain details for associated pull requests, such as whether a pull request is in a draft +// state. For more information about previews that might affect this endpoint, see the [List pull +// requests](https://docs.github.com/rest/reference/pulls#list-pull-requests) endpoint. +// // GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls func (s *Server) handleReposListPullRequestsAssociatedWithCommitRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -57239,6 +60997,8 @@ func (s *Server) handleReposListPullRequestsAssociatedWithCommitRequest(args [3] // handleReposListReleaseAssetsRequest handles repos/list-release-assets operation. // +// List release assets. +// // GET /repos/{owner}/{repo}/releases/{release_id}/assets func (s *Server) handleReposListReleaseAssetsRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -57337,6 +61097,12 @@ func (s *Server) handleReposListReleaseAssetsRequest(args [3]string, w http.Resp // handleReposListReleasesRequest handles repos/list-releases operation. // +// This returns a list of releases, which does not include regular Git tags that have not been +// associated with a release. To get a list of Git tags, use the [Repository Tags API](https://docs. +// github.com/rest/reference/repos#list-repository-tags). +// Information about published releases are available to everyone. Only users with push access will +// receive listings for draft releases. +// // GET /repos/{owner}/{repo}/releases func (s *Server) handleReposListReleasesRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -57434,6 +61200,8 @@ func (s *Server) handleReposListReleasesRequest(args [2]string, w http.ResponseW // handleReposListTagsRequest handles repos/list-tags operation. // +// List repository tags. +// // GET /repos/{owner}/{repo}/tags func (s *Server) handleReposListTagsRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -57531,6 +61299,8 @@ func (s *Server) handleReposListTagsRequest(args [2]string, w http.ResponseWrite // handleReposListTeamsRequest handles repos/list-teams operation. // +// List repository teams. +// // GET /repos/{owner}/{repo}/teams func (s *Server) handleReposListTeamsRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -57628,6 +61398,8 @@ func (s *Server) handleReposListTeamsRequest(args [2]string, w http.ResponseWrit // handleReposListWebhookDeliveriesRequest handles repos/list-webhook-deliveries operation. // +// Returns a list of webhook deliveries for a webhook configured in a repository. +// // GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries func (s *Server) handleReposListWebhookDeliveriesRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -57726,6 +61498,8 @@ func (s *Server) handleReposListWebhookDeliveriesRequest(args [3]string, w http. // handleReposListWebhooksRequest handles repos/list-webhooks operation. // +// List repository webhooks. +// // GET /repos/{owner}/{repo}/hooks func (s *Server) handleReposListWebhooksRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -57823,6 +61597,8 @@ func (s *Server) handleReposListWebhooksRequest(args [2]string, w http.ResponseW // handleReposMergeRequest handles repos/merge operation. // +// Merge a branch. +// // POST /repos/{owner}/{repo}/merges func (s *Server) handleReposMergeRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -57933,6 +61709,9 @@ func (s *Server) handleReposMergeRequest(args [2]string, w http.ResponseWriter, // handleReposMergeUpstreamRequest handles repos/merge-upstream operation. // +// **Note:** This endpoint is currently in beta and subject to change. +// Sync a branch of a forked repository to keep it up-to-date with the upstream repository. +// // POST /repos/{owner}/{repo}/merge-upstream func (s *Server) handleReposMergeUpstreamRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -58043,6 +61822,9 @@ func (s *Server) handleReposMergeUpstreamRequest(args [2]string, w http.Response // handleReposPingWebhookRequest handles repos/ping-webhook operation. // +// This will trigger a [ping event](https://docs.github.com/webhooks/#ping-event) to be sent to the +// hook. +// // POST /repos/{owner}/{repo}/hooks/{hook_id}/pings func (s *Server) handleReposPingWebhookRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -58139,6 +61921,8 @@ func (s *Server) handleReposPingWebhookRequest(args [3]string, w http.ResponseWr // handleReposRedeliverWebhookDeliveryRequest handles repos/redeliver-webhook-delivery operation. // +// Redeliver a webhook delivery for a webhook configured in a repository. +// // POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts func (s *Server) handleReposRedeliverWebhookDeliveryRequest(args [4]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -58236,6 +62020,22 @@ func (s *Server) handleReposRedeliverWebhookDeliveryRequest(args [4]string, w ht // handleReposRemoveAppAccessRestrictionsRequest handles repos/remove-app-access-restrictions operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// Removes the ability of an app to push to this branch. Only installed GitHub Apps with `write` +// access to the `contents` permission can be added as authorized actors on a protected branch. +// | Type | Description +// +// | +// +// | ------- | +// ---------------------------------------------------------------------------------------------------------------------------------------------------------- | +// | `array` | The GitHub Apps that have push access to this branch. Use the app's `slug`. **Note**: +// The list of users, apps, and teams in total is limited to 100 items. |. +// // DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps func (s *Server) handleReposRemoveAppAccessRestrictionsRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -58347,6 +62147,8 @@ func (s *Server) handleReposRemoveAppAccessRestrictionsRequest(args [3]string, w // handleReposRemoveCollaboratorRequest handles repos/remove-collaborator operation. // +// Remove a repository collaborator. +// // DELETE /repos/{owner}/{repo}/collaborators/{username} func (s *Server) handleReposRemoveCollaboratorRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -58443,6 +62245,12 @@ func (s *Server) handleReposRemoveCollaboratorRequest(args [3]string, w http.Res // handleReposRemoveStatusCheckContextsRequest handles repos/remove-status-check-contexts operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// // DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts func (s *Server) handleReposRemoveStatusCheckContextsRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -58554,6 +62362,12 @@ func (s *Server) handleReposRemoveStatusCheckContextsRequest(args [3]string, w h // handleReposRemoveStatusCheckProtectionRequest handles repos/remove-status-check-protection operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// // DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks func (s *Server) handleReposRemoveStatusCheckProtectionRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -58650,6 +62464,22 @@ func (s *Server) handleReposRemoveStatusCheckProtectionRequest(args [3]string, w // handleReposRemoveTeamAccessRestrictionsRequest handles repos/remove-team-access-restrictions operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// Removes the ability of a team to push to this branch. You can also remove push access for child +// teams. +// | Type | Description +// +// | +// +// | ------- | +// --------------------------------------------------------------------------------------------------------------------------------------------------- | +// | `array` | Teams that should no longer have push access. Use the team's `slug`. **Note**: The +// list of users, apps, and teams in total is limited to 100 items. |. +// // DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams func (s *Server) handleReposRemoveTeamAccessRestrictionsRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -58761,6 +62591,21 @@ func (s *Server) handleReposRemoveTeamAccessRestrictionsRequest(args [3]string, // handleReposRemoveUserAccessRestrictionsRequest handles repos/remove-user-access-restrictions operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// Removes the ability of a user to push to this branch. +// | Type | Description +// +// | +// +// | ------- | +// --------------------------------------------------------------------------------------------------------------------------------------------- | +// | `array` | Usernames of the people who should no longer have push access. **Note**: The list of +// users, apps, and teams in total is limited to 100 items. |. +// // DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users func (s *Server) handleReposRemoveUserAccessRestrictionsRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -58872,6 +62717,20 @@ func (s *Server) handleReposRemoveUserAccessRestrictionsRequest(args [3]string, // handleReposRenameBranchRequest handles repos/rename-branch operation. // +// Renames a branch in a repository. +// **Note:** Although the API responds immediately, the branch rename process might take some extra +// time to complete in the background. You won't be able to push to the old branch name while the +// rename process is in progress. For more information, see "[Renaming a branch](https://docs.github. +// com/github/administering-a-repository/renaming-a-branch)". +// The permissions required to use this endpoint depends on whether you are renaming the default +// branch. +// To rename a non-default branch: +// * Users must have push access. +// * GitHub Apps must have the `contents:write` repository permission. +// To rename the default branch: +// * Users must have admin or owner permissions. +// * GitHub Apps must have the `administration:write` repository permission. +// // POST /repos/{owner}/{repo}/branches/{branch}/rename func (s *Server) handleReposRenameBranchRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -58983,6 +62842,8 @@ func (s *Server) handleReposRenameBranchRequest(args [3]string, w http.ResponseW // handleReposReplaceAllTopicsRequest handles repos/replace-all-topics operation. // +// Replace all repository topics. +// // PUT /repos/{owner}/{repo}/topics func (s *Server) handleReposReplaceAllTopicsRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -59093,6 +62954,13 @@ func (s *Server) handleReposReplaceAllTopicsRequest(args [2]string, w http.Respo // handleReposRequestPagesBuildRequest handles repos/request-pages-build operation. // +// You can request that your site be built from the latest revision on the default branch. This has +// the same effect as pushing a commit to your default branch, but does not require an additional +// commit. Manually triggering page builds can be helpful when diagnosing build warnings and failures. +// Build requests are limited to one concurrent build per repository and one concurrent build per +// requester. If you request a build while another is still in progress, the second request will be +// queued until the first completes. +// // POST /repos/{owner}/{repo}/pages/builds func (s *Server) handleReposRequestPagesBuildRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -59188,6 +63056,14 @@ func (s *Server) handleReposRequestPagesBuildRequest(args [2]string, w http.Resp // handleReposSetAdminBranchProtectionRequest handles repos/set-admin-branch-protection operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// Adding admin enforcement requires admin or owner permissions to the repository and branch +// protection to be enabled. +// // POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins func (s *Server) handleReposSetAdminBranchProtectionRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -59284,6 +63160,24 @@ func (s *Server) handleReposSetAdminBranchProtectionRequest(args [3]string, w ht // handleReposSetAppAccessRestrictionsRequest handles repos/set-app-access-restrictions operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// Replaces the list of apps that have push access to this branch. This removes all apps that +// previously had push access and grants push access to the new list of apps. Only installed GitHub +// Apps with `write` access to the `contents` permission can be added as authorized actors on a +// protected branch. +// | Type | Description +// +// | +// +// | ------- | +// ---------------------------------------------------------------------------------------------------------------------------------------------------------- | +// | `array` | The GitHub Apps that have push access to this branch. Use the app's `slug`. **Note**: +// The list of users, apps, and teams in total is limited to 100 items. |. +// // PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps func (s *Server) handleReposSetAppAccessRestrictionsRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -59395,6 +63289,12 @@ func (s *Server) handleReposSetAppAccessRestrictionsRequest(args [3]string, w ht // handleReposSetStatusCheckContextsRequest handles repos/set-status-check-contexts operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// // PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts func (s *Server) handleReposSetStatusCheckContextsRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -59506,6 +63406,23 @@ func (s *Server) handleReposSetStatusCheckContextsRequest(args [3]string, w http // handleReposSetTeamAccessRestrictionsRequest handles repos/set-team-access-restrictions operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// Replaces the list of teams that have push access to this branch. This removes all teams that +// previously had push access and grants push access to the new list of teams. Team restrictions +// include child teams. +// | Type | Description +// +// | +// +// | ------- | +// ------------------------------------------------------------------------------------------------------------------------------------------ | +// | `array` | The teams that can have push access. Use the team's `slug`. **Note**: The list of +// users, apps, and teams in total is limited to 100 items. |. +// // PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams func (s *Server) handleReposSetTeamAccessRestrictionsRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -59617,6 +63534,22 @@ func (s *Server) handleReposSetTeamAccessRestrictionsRequest(args [3]string, w h // handleReposSetUserAccessRestrictionsRequest handles repos/set-user-access-restrictions operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// Replaces the list of people that have push access to this branch. This removes all people that +// previously had push access and grants push access to the new list of people. +// | Type | Description +// +// | +// +// | ------- | +// ----------------------------------------------------------------------------------------------------------------------------- | +// | `array` | Usernames for people who can have push access. **Note**: The list of users, apps, and +// teams in total is limited to 100 items. |. +// // PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users func (s *Server) handleReposSetUserAccessRestrictionsRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -59728,6 +63661,11 @@ func (s *Server) handleReposSetUserAccessRestrictionsRequest(args [3]string, w h // handleReposTestPushWebhookRequest handles repos/test-push-webhook operation. // +// This will trigger the hook with the latest push to the current repository if the hook is +// subscribed to `push` events. If the hook is not subscribed to `push` events, the server will +// respond with 204 but no test POST will be generated. +// **Note**: Previously `/repos/:owner/:repo/hooks/:hook_id/test`. +// // POST /repos/{owner}/{repo}/hooks/{hook_id}/tests func (s *Server) handleReposTestPushWebhookRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -59824,6 +63762,12 @@ func (s *Server) handleReposTestPushWebhookRequest(args [3]string, w http.Respon // handleReposTransferRequest handles repos/transfer operation. // +// A transfer request will need to be accepted by the new owner when transferring a personal +// repository to another user. The response will contain the original `owner`, and the transfer will +// continue asynchronously. For more details on the requirements to transfer personal and +// organization-owned repositories, see [about repository transfers](https://help.github. +// com/articles/about-repository-transfers/). +// // POST /repos/{owner}/{repo}/transfer func (s *Server) handleReposTransferRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -59934,6 +63878,9 @@ func (s *Server) handleReposTransferRequest(args [2]string, w http.ResponseWrite // handleReposUpdateRequest handles repos/update operation. // +// **Note**: To edit a repository's topics, use the [Replace all repository topics](https://docs. +// github.com/rest/reference/repos#replace-all-repository-topics) endpoint. +// // PATCH /repos/{owner}/{repo} func (s *Server) handleReposUpdateRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -60044,6 +63991,15 @@ func (s *Server) handleReposUpdateRequest(args [2]string, w http.ResponseWriter, // handleReposUpdateBranchProtectionRequest handles repos/update-branch-protection operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// Protecting a branch requires admin or owner permissions to the repository. +// **Note**: Passing new arrays of `users` and `teams` replaces their previous values. +// **Note**: The list of users, apps, and teams in total is limited to 100 items. +// // PUT /repos/{owner}/{repo}/branches/{branch}/protection func (s *Server) handleReposUpdateBranchProtectionRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -60155,6 +64111,8 @@ func (s *Server) handleReposUpdateBranchProtectionRequest(args [3]string, w http // handleReposUpdateCommitCommentRequest handles repos/update-commit-comment operation. // +// Update a commit comment. +// // PATCH /repos/{owner}/{repo}/comments/{comment_id} func (s *Server) handleReposUpdateCommitCommentRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -60266,6 +64224,8 @@ func (s *Server) handleReposUpdateCommitCommentRequest(args [3]string, w http.Re // handleReposUpdateInvitationRequest handles repos/update-invitation operation. // +// Update a repository invitation. +// // PATCH /repos/{owner}/{repo}/invitations/{invitation_id} func (s *Server) handleReposUpdateInvitationRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -60377,6 +64337,15 @@ func (s *Server) handleReposUpdateInvitationRequest(args [3]string, w http.Respo // handleReposUpdatePullRequestReviewProtectionRequest handles repos/update-pull-request-review-protection operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// Updating pull request review enforcement requires admin or owner permissions to the repository and +// branch protection to be enabled. +// **Note**: Passing new arrays of `users` and `teams` replaces their previous values. +// // PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews func (s *Server) handleReposUpdatePullRequestReviewProtectionRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -60488,6 +64457,8 @@ func (s *Server) handleReposUpdatePullRequestReviewProtectionRequest(args [3]str // handleReposUpdateReleaseRequest handles repos/update-release operation. // +// Users with push access to the repository can edit a release. +// // PATCH /repos/{owner}/{repo}/releases/{release_id} func (s *Server) handleReposUpdateReleaseRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -60599,6 +64570,8 @@ func (s *Server) handleReposUpdateReleaseRequest(args [3]string, w http.Response // handleReposUpdateReleaseAssetRequest handles repos/update-release-asset operation. // +// Users with push access to the repository can edit a release asset. +// // PATCH /repos/{owner}/{repo}/releases/assets/{asset_id} func (s *Server) handleReposUpdateReleaseAssetRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -60710,6 +64683,14 @@ func (s *Server) handleReposUpdateReleaseAssetRequest(args [3]string, w http.Res // handleReposUpdateStatusCheckProtectionRequest handles repos/update-status-check-protection operation. // +// Protected branches are available in public repositories with GitHub Free and GitHub Free for +// organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub +// Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's +// products](https://help.github.com/github/getting-started-with-github/githubs-products) in the +// GitHub Help documentation. +// Updating required status checks requires admin or owner permissions to the repository and branch +// protection to be enabled. +// // PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks func (s *Server) handleReposUpdateStatusCheckProtectionRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -60821,6 +64802,11 @@ func (s *Server) handleReposUpdateStatusCheckProtectionRequest(args [3]string, w // handleReposUpdateWebhookRequest handles repos/update-webhook operation. // +// Updates a webhook configured in a repository. If you previously had a `secret` set, you must +// provide the same `secret` or set a new `secret` or the secret will be removed. If you are only +// updating individual webhook `config` properties, use "[Update a webhook configuration for a +// repository](/rest/reference/repos#update-a-webhook-configuration-for-a-repository).". +// // PATCH /repos/{owner}/{repo}/hooks/{hook_id} func (s *Server) handleReposUpdateWebhookRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -60932,6 +64918,12 @@ func (s *Server) handleReposUpdateWebhookRequest(args [3]string, w http.Response // handleReposUpdateWebhookConfigForRepoRequest handles repos/update-webhook-config-for-repo operation. // +// Updates the webhook configuration for a repository. To update more information about the webhook, +// including the `active` state and `events`, use "[Update a repository +// webhook](/rest/reference/orgs#update-a-repository-webhook)." +// Access tokens must have the `write:repo_hook` or `repo` scope, and GitHub Apps must have the +// `repository_hooks:write` permission. +// // PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config func (s *Server) handleReposUpdateWebhookConfigForRepoRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -61043,6 +65035,8 @@ func (s *Server) handleReposUpdateWebhookConfigForRepoRequest(args [3]string, w // handleScimDeleteUserFromOrgRequest handles scim/delete-user-from-org operation. // +// Delete a SCIM user from an organization. +// // DELETE /scim/v2/organizations/{org}/Users/{scim_user_id} func (s *Server) handleScimDeleteUserFromOrgRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -61138,6 +65132,27 @@ func (s *Server) handleScimDeleteUserFromOrgRequest(args [2]string, w http.Respo // handleSearchCodeRequest handles search/code operation. // +// Searches for query terms inside of a file. This method returns up to 100 results [per +// page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination). +// When searching for code, you can get text match metadata for the file **content** and file +// **path** fields when you pass the `text-match` media type. For more details about how to receive +// highlighted search results, see [Text match metadata](https://docs.github. +// com/rest/reference/search#text-match-metadata). +// For example, if you want to find the definition of the `addClass` function inside +// [jQuery](https://github.com/jquery/jquery) repository, your query would look something like this: +// `q=addClass+in:file+language:js+repo:jquery/jquery` +// This query searches for the keyword `addClass` within a file's contents. The query limits the +// search to files where the language is JavaScript in the `jquery/jquery` repository. +// #### Considerations for code search +// Due to the complexity of searching code, there are a few restrictions on how searches are +// performed: +// * Only the _default branch_ is considered. In most cases, this will be the `master` branch. +// * Only files smaller than 384 KB are searchable. +// * You must always include at least one search term when searching source code. For example, +// searching for [`language:go`](https://github.com/search?utf8=%E2%9C%93&q=language%3Ago&type=Code) +// is not valid, while [`amazing +// language:go`](https://github.com/search?utf8=%E2%9C%93&q=amazing+language%3Ago&type=Code) is. +// // GET /search/code func (s *Server) handleSearchCodeRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -61236,6 +65251,18 @@ func (s *Server) handleSearchCodeRequest(args [0]string, w http.ResponseWriter, // handleSearchCommitsRequest handles search/commits operation. // +// Find commits via various criteria on the default branch (usually `master`). This method returns up +// to 100 results [per page](https://docs.github. +// com/rest/overview/resources-in-the-rest-api#pagination). +// When searching for commits, you can get text match metadata for the **message** field when you +// provide the `text-match` media type. For more details about how to receive highlighted search +// results, see [Text match +// metadata](https://docs.github.com/rest/reference/search#text-match-metadata). +// For example, if you want to find commits related to CSS in the +// [octocat/Spoon-Knife](https://github.com/octocat/Spoon-Knife) repository. Your query would look +// something like this: +// `q=repo:octocat/Spoon-Knife+css`. +// // GET /search/commits func (s *Server) handleSearchCommitsRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -61334,6 +65361,30 @@ func (s *Server) handleSearchCommitsRequest(args [0]string, w http.ResponseWrite // handleSearchIssuesAndPullRequestsRequest handles search/issues-and-pull-requests operation. // +// Find issues by state and keyword. This method returns up to 100 results [per page](https://docs. +// github.com/rest/overview/resources-in-the-rest-api#pagination). +// When searching for issues, you can get text match metadata for the issue **title**, issue **body**, +// +// and issue **comment body** fields when you pass the `text-match` media type. For more details +// +// about how to receive highlighted +// search results, see [Text match metadata](https://docs.github. +// com/rest/reference/search#text-match-metadata). +// For example, if you want to find the oldest unresolved Python bugs on Windows. Your query might +// look something like this. +// `q=windows+label:bug+language:python+state:open&sort=created&order=asc` +// This query searches for the keyword `windows`, within any open issue that is labeled as `bug`. The +// search runs across repositories whose primary language is Python. The results are sorted by +// creation date in ascending order, which means the oldest issues appear first in the search results. +// **Note:** For [user-to-server](https://docs.github. +// com/developers/apps/identifying-and-authorizing-users-for-github-apps#user-to-server-requests) +// GitHub App requests, you can't retrieve a combination of issues and pull requests in a single +// query. Requests that don't include the `is:issue` or `is:pull-request` qualifier will receive an +// HTTP `422 Unprocessable Entity` response. To get results for both issues and pull requests, you +// must send separate queries for issues and pull requests. For more information about the `is` +// qualifier, see "[Searching only issues or pull requests](https://docs.github. +// com/github/searching-for-information-on-github/searching-issues-and-pull-requests#search-only-issues-or-pull-requests).". +// // GET /search/issues func (s *Server) handleSearchIssuesAndPullRequestsRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -61432,6 +65483,17 @@ func (s *Server) handleSearchIssuesAndPullRequestsRequest(args [0]string, w http // handleSearchLabelsRequest handles search/labels operation. // +// Find labels in a repository with names or descriptions that match search keywords. Returns up to +// 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination). +// When searching for labels, you can get text match metadata for the label **name** and +// **description** fields when you pass the `text-match` media type. For more details about how to +// receive highlighted search results, see [Text match metadata](https://docs.github. +// com/rest/reference/search#text-match-metadata). +// For example, if you want to find labels in the `linguist` repository that match `bug`, `defect`, +// or `enhancement`. Your query might look like this: +// `q=bug+defect+enhancement&repository_id=64778136` +// The labels that best match the query appear first in the search results. +// // GET /search/labels func (s *Server) handleSearchLabelsRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -61531,6 +65593,23 @@ func (s *Server) handleSearchLabelsRequest(args [0]string, w http.ResponseWriter // handleSearchReposRequest handles search/repos operation. // +// Find repositories via various criteria. This method returns up to 100 results [per +// page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination). +// When searching for repositories, you can get text match metadata for the **name** and +// **description** fields when you pass the `text-match` media type. For more details about how to +// receive highlighted search results, see [Text match metadata](https://docs.github. +// com/rest/reference/search#text-match-metadata). +// For example, if you want to search for popular Tetris repositories written in assembly code, your +// query might look like this: +// `q=tetris+language:assembly&sort=stars&order=desc` +// This query searches for repositories with the word `tetris` in the name, the description, or the +// README. The results are limited to repositories where the primary language is assembly. The +// results are sorted by stars in descending order, so that the most popular repositories appear +// first in the search results. +// When you include the `mercy` preview header, you can also search for multiple topics by adding +// more `topic:` instances. For example, your query might look like this: +// `q=topic:ruby+topic:rails`. +// // GET /search/repositories func (s *Server) handleSearchReposRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -61629,6 +65708,21 @@ func (s *Server) handleSearchReposRequest(args [0]string, w http.ResponseWriter, // handleSearchTopicsRequest handles search/topics operation. // +// Find topics via various criteria. Results are sorted by best match. This method returns up to 100 +// results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination). +// See "[Searching topics](https://help.github.com/articles/searching-topics/)" for a detailed list +// of qualifiers. +// When searching for topics, you can get text match metadata for the topic's **short\_description**, +// **description**, **name**, or **display\_name** field when you pass the `text-match` media type. +// For more details about how to receive highlighted search results, see [Text match +// metadata](https://docs.github.com/rest/reference/search#text-match-metadata). +// For example, if you want to search for topics related to Ruby that are featured on https://github. +// com/topics. Your query might look like this: +// `q=ruby+is:featured` +// This query searches for topics with the keyword `ruby` and limits the results to find only topics +// that are featured. The topics that are the best match for the query appear first in the search +// results. +// // GET /search/topics func (s *Server) handleSearchTopicsRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -61725,6 +65819,19 @@ func (s *Server) handleSearchTopicsRequest(args [0]string, w http.ResponseWriter // handleSearchUsersRequest handles search/users operation. // +// Find users via various criteria. This method returns up to 100 results [per page](https://docs. +// github.com/rest/overview/resources-in-the-rest-api#pagination). +// When searching for users, you can get text match metadata for the issue **login**, **email**, and +// **name** fields when you pass the `text-match` media type. For more details about highlighting +// search results, see [Text match metadata](https://docs.github. +// com/rest/reference/search#text-match-metadata). For more details about how to receive highlighted +// search results, see [Text match metadata](https://docs.github. +// com/rest/reference/search#text-match-metadata). +// For example, if you're looking for a list of popular users, you might try this query: +// `q=tom+repos:%3E42+followers:%3E1000` +// This query searches for users with the name `tom`. The results are restricted to users with more +// than 42 repositories and over 1,000 followers. +// // GET /search/users func (s *Server) handleSearchUsersRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -61823,6 +65930,11 @@ func (s *Server) handleSearchUsersRequest(args [0]string, w http.ResponseWriter, // handleSecretScanningGetAlertRequest handles secret-scanning/get-alert operation. // +// Gets a single secret scanning alert detected in a private repository. To use this endpoint, you +// must be an administrator for the repository or organization, and you must use an access token with +// the `repo` scope or `security_events` scope. +// GitHub Apps must have the `secret_scanning_alerts` read permission to use this endpoint. +// // GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number} func (s *Server) handleSecretScanningGetAlertRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -61919,6 +66031,12 @@ func (s *Server) handleSecretScanningGetAlertRequest(args [3]string, w http.Resp // handleSecretScanningListAlertsForOrgRequest handles secret-scanning/list-alerts-for-org operation. // +// Lists all secret scanning alerts for all eligible repositories in an organization, from newest to +// oldest. +// To use this endpoint, you must be an administrator for the repository or organization, and you +// must use an access token with the `repo` scope or `security_events` scope. +// GitHub Apps must have the `secret_scanning_alerts` read permission to use this endpoint. +// // GET /orgs/{org}/secret-scanning/alerts func (s *Server) handleSecretScanningListAlertsForOrgRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -62017,6 +66135,11 @@ func (s *Server) handleSecretScanningListAlertsForOrgRequest(args [1]string, w h // handleSecretScanningListAlertsForRepoRequest handles secret-scanning/list-alerts-for-repo operation. // +// Lists all secret scanning alerts for a private repository, from newest to oldest. To use this +// endpoint, you must be an administrator for the repository or organization, and you must use an +// access token with the `repo` scope or `security_events` scope. +// GitHub Apps must have the `secret_scanning_alerts` read permission to use this endpoint. +// // GET /repos/{owner}/{repo}/secret-scanning/alerts func (s *Server) handleSecretScanningListAlertsForRepoRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -62116,6 +66239,11 @@ func (s *Server) handleSecretScanningListAlertsForRepoRequest(args [2]string, w // handleSecretScanningUpdateAlertRequest handles secret-scanning/update-alert operation. // +// Updates the status of a secret scanning alert in a private repository. To use this endpoint, you +// must be an administrator for the repository or organization, and you must use an access token with +// the `repo` scope or `security_events` scope. +// GitHub Apps must have the `secret_scanning_alerts` write permission to use this endpoint. +// // PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number} func (s *Server) handleSecretScanningUpdateAlertRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -62227,6 +66355,29 @@ func (s *Server) handleSecretScanningUpdateAlertRequest(args [3]string, w http.R // handleTeamsAddMemberLegacyRequest handles teams/add-member-legacy operation. // +// The "Add team member" endpoint (described below) is deprecated. +// We recommend using the [Add or update team membership for a user](https://docs.github. +// com/rest/reference/teams#add-or-update-team-membership-for-a-user) endpoint instead. It allows you +// to invite new organization members to your teams. +// Team synchronization is available for organizations using GitHub Enterprise Cloud. For more +// information, see [GitHub's products](https://help.github. +// com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. +// To add someone to a team, the authenticated user must be an organization owner or a team +// maintainer in the team they're changing. The person being added to the team must be a member of +// the team's organization. +// **Note:** When you have team synchronization set up for a team with your organization's identity +// provider (IdP), you will see an error if you attempt to use the API for making changes to the +// team's membership. If you have access to manage group membership in your IdP, you can manage +// GitHub team membership through your identity provider, which automatically adds and removes team +// members in an organization. For more information, see "[Synchronizing teams between your identity +// provider and GitHub](https://help.github. +// com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." +// Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more +// information, see "[HTTP verbs](https://docs.github. +// com/rest/overview/resources-in-the-rest-api#http-verbs).". +// +// Deprecated: schema marks this operation as deprecated. +// // PUT /teams/{team_id}/members/{username} func (s *Server) handleTeamsAddMemberLegacyRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -62322,6 +66473,29 @@ func (s *Server) handleTeamsAddMemberLegacyRequest(args [2]string, w http.Respon // handleTeamsAddOrUpdateMembershipForUserInOrgRequest handles teams/add-or-update-membership-for-user-in-org operation. // +// Team synchronization is available for organizations using GitHub Enterprise Cloud. For more +// information, see [GitHub's products](https://help.github. +// com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. +// Adds an organization member to a team. An authenticated organization owner or team maintainer can +// add organization members to a team. +// **Note:** When you have team synchronization set up for a team with your organization's identity +// provider (IdP), you will see an error if you attempt to use the API for making changes to the +// team's membership. If you have access to manage group membership in your IdP, you can manage +// GitHub team membership through your identity provider, which automatically adds and removes team +// members in an organization. For more information, see "[Synchronizing teams between your identity +// provider and GitHub](https://help.github. +// com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." +// An organization owner can add someone who is not part of the team's organization to a team. When +// an organization owner adds someone to a team who is not an organization member, this endpoint will +// send an invitation to the person via email. This newly-created membership will be in the "pending" +// state until the person accepts the invitation, at which point the membership will transition to +// the "active" state and the user will be added as a member of the team. +// If the user is already a member of the team, this endpoint will update the role of the team +// member's role. To update the membership of a team member, the authenticated user must be an +// organization owner or a team maintainer. +// **Note:** You can also specify a team by `org_id` and `team_id` using the route `PUT +// /organizations/{org_id}/team/{team_id}/memberships/{username}`. +// // PUT /orgs/{org}/teams/{team_slug}/memberships/{username} func (s *Server) handleTeamsAddOrUpdateMembershipForUserInOrgRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -62433,6 +66607,34 @@ func (s *Server) handleTeamsAddOrUpdateMembershipForUserInOrgRequest(args [3]str // handleTeamsAddOrUpdateMembershipForUserLegacyRequest handles teams/add-or-update-membership-for-user-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the new [Add or update team membership for a +// user](https://docs.github.com/rest/reference/teams#add-or-update-team-membership-for-a-user) +// endpoint. +// Team synchronization is available for organizations using GitHub Enterprise Cloud. For more +// information, see [GitHub's products](https://help.github. +// com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. +// If the user is already a member of the team's organization, this endpoint will add the user to the +// team. To add a membership between an organization member and a team, the authenticated user must +// be an organization owner or a team maintainer. +// **Note:** When you have team synchronization set up for a team with your organization's identity +// provider (IdP), you will see an error if you attempt to use the API for making changes to the +// team's membership. If you have access to manage group membership in your IdP, you can manage +// GitHub team membership through your identity provider, which automatically adds and removes team +// members in an organization. For more information, see "[Synchronizing teams between your identity +// provider and GitHub](https://help.github. +// com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." +// If the user is unaffiliated with the team's organization, this endpoint will send an invitation to +// the user via email. This newly-created membership will be in the "pending" state until the user +// accepts the invitation, at which point the membership will transition to the "active" state and +// the user will be added as a member of the team. To add a membership between an unaffiliated user +// and a team, the authenticated user must be an organization owner. +// If the user is already a member of the team, this endpoint will update the role of the team +// member's role. To update the membership of a team member, the authenticated user must be an +// organization owner or a team maintainer. +// +// Deprecated: schema marks this operation as deprecated. +// // PUT /teams/{team_id}/memberships/{username} func (s *Server) handleTeamsAddOrUpdateMembershipForUserLegacyRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -62543,6 +66745,12 @@ func (s *Server) handleTeamsAddOrUpdateMembershipForUserLegacyRequest(args [2]st // handleTeamsAddOrUpdateProjectPermissionsInOrgRequest handles teams/add-or-update-project-permissions-in-org operation. // +// Adds an organization project to a team. To add a project to a team or update the team's permission +// on a project, the authenticated user must have `admin` permissions for the project. The project +// and team must be part of the same organization. +// **Note:** You can also specify a team by `org_id` and `team_id` using the route `PUT +// /organizations/{org_id}/team/{team_id}/projects/{project_id}`. +// // PUT /orgs/{org}/teams/{team_slug}/projects/{project_id} func (s *Server) handleTeamsAddOrUpdateProjectPermissionsInOrgRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -62654,6 +66862,16 @@ func (s *Server) handleTeamsAddOrUpdateProjectPermissionsInOrgRequest(args [3]st // handleTeamsAddOrUpdateProjectPermissionsLegacyRequest handles teams/add-or-update-project-permissions-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the new [Add or update team project +// permissions](https://docs.github.com/rest/reference/teams#add-or-update-team-project-permissions) +// endpoint. +// Adds an organization project to a team. To add a project to a team or update the team's permission +// on a project, the authenticated user must have `admin` permissions for the project. The project +// and team must be part of the same organization. +// +// Deprecated: schema marks this operation as deprecated. +// // PUT /teams/{team_id}/projects/{project_id} func (s *Server) handleTeamsAddOrUpdateProjectPermissionsLegacyRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -62764,6 +66982,19 @@ func (s *Server) handleTeamsAddOrUpdateProjectPermissionsLegacyRequest(args [2]s // handleTeamsAddOrUpdateRepoPermissionsInOrgRequest handles teams/add-or-update-repo-permissions-in-org operation. // +// To add a repository to a team or update the team's permission on a repository, the authenticated +// user must have admin access to the repository, and must be able to see the team. The repository +// must be owned by the organization, or a direct fork of a repository owned by the organization. You +// will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is +// not owned by the organization. Note that, if you choose not to pass any parameters, you'll need to +// set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP +// verbs](https://docs.github.com/rest/overview/resources-in-the-rest-api#http-verbs)." +// **Note:** You can also specify a team by `org_id` and `team_id` using the route `PUT +// /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}`. +// For more information about the permission levels, see "[Repository permission levels for an +// organization](https://help.github. +// com/en/github/setting-up-and-managing-organizations-and-teams/repository-permission-levels-for-an-organization#permission-levels-for-repositories-owned-by-an-organization)". +// // PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo} func (s *Server) handleTeamsAddOrUpdateRepoPermissionsInOrgRequest(args [4]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -62876,6 +67107,21 @@ func (s *Server) handleTeamsAddOrUpdateRepoPermissionsInOrgRequest(args [4]strin // handleTeamsAddOrUpdateRepoPermissionsLegacyRequest handles teams/add-or-update-repo-permissions-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the new "[Add or update team repository +// permissions](https://docs.github. +// com/rest/reference/teams#add-or-update-team-repository-permissions)" endpoint. +// To add a repository to a team or update the team's permission on a repository, the authenticated +// user must have admin access to the repository, and must be able to see the team. The repository +// must be owned by the organization, or a direct fork of a repository owned by the organization. You +// will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is +// not owned by the organization. +// Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero +// when calling out to this endpoint. For more information, see "[HTTP verbs](https://docs.github. +// com/rest/overview/resources-in-the-rest-api#http-verbs).". +// +// Deprecated: schema marks this operation as deprecated. +// // PUT /teams/{team_id}/repos/{owner}/{repo} func (s *Server) handleTeamsAddOrUpdateRepoPermissionsLegacyRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -62987,6 +67233,11 @@ func (s *Server) handleTeamsAddOrUpdateRepoPermissionsLegacyRequest(args [3]stri // handleTeamsCheckPermissionsForProjectInOrgRequest handles teams/check-permissions-for-project-in-org operation. // +// Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. The +// response includes projects inherited from a parent team. +// **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET +// /organizations/{org_id}/team/{team_id}/projects/{project_id}`. +// // GET /orgs/{org}/teams/{team_slug}/projects/{project_id} func (s *Server) handleTeamsCheckPermissionsForProjectInOrgRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -63083,6 +67334,15 @@ func (s *Server) handleTeamsCheckPermissionsForProjectInOrgRequest(args [3]strin // handleTeamsCheckPermissionsForProjectLegacyRequest handles teams/check-permissions-for-project-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the new [Check team permissions for a +// project](https://docs.github.com/rest/reference/teams#check-team-permissions-for-a-project) +// endpoint. +// Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. The +// response includes projects inherited from a parent team. +// +// Deprecated: schema marks this operation as deprecated. +// // GET /teams/{team_id}/projects/{project_id} func (s *Server) handleTeamsCheckPermissionsForProjectLegacyRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -63178,6 +67438,16 @@ func (s *Server) handleTeamsCheckPermissionsForProjectLegacyRequest(args [2]stri // handleTeamsCheckPermissionsForRepoInOrgRequest handles teams/check-permissions-for-repo-in-org operation. // +// Checks whether a team has `admin`, `push`, `maintain`, `triage`, or `pull` permission for a +// repository. Repositories inherited through a parent team will also be checked. +// You can also get information about the specified repository, including what permissions the team +// grants on it, by passing the following custom [media type](https://docs.github. +// com/rest/overview/media-types/) via the `application/vnd.github.v3.repository+json` accept header. +// If a team doesn't have permission for the repository, you will receive a `404 Not Found` response +// status. +// **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET +// /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}`. +// // GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo} func (s *Server) handleTeamsCheckPermissionsForRepoInOrgRequest(args [4]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -63275,6 +67545,17 @@ func (s *Server) handleTeamsCheckPermissionsForRepoInOrgRequest(args [4]string, // handleTeamsCheckPermissionsForRepoLegacyRequest handles teams/check-permissions-for-repo-legacy operation. // +// **Note**: Repositories inherited through a parent team will also be checked. +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the new [Check team permissions for a +// repository](https://docs.github.com/rest/reference/teams#check-team-permissions-for-a-repository) +// endpoint. +// You can also get information about the specified repository, including what permissions the team +// grants on it, by passing the following custom [media type](https://docs.github. +// com/rest/overview/media-types/) via the `Accept` header:. +// +// Deprecated: schema marks this operation as deprecated. +// // GET /teams/{team_id}/repos/{owner}/{repo} func (s *Server) handleTeamsCheckPermissionsForRepoLegacyRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -63371,6 +67652,15 @@ func (s *Server) handleTeamsCheckPermissionsForRepoLegacyRequest(args [3]string, // handleTeamsCreateRequest handles teams/create operation. // +// To create a team, the authenticated user must be a member or owner of `{org}`. By default, +// organization members can create teams. Organization owners can limit team creation to organization +// owners. For more information, see "[Setting team creation permissions](https://help.github. +// com/en/articles/setting-team-creation-permissions-in-your-organization)." +// When you create a new team, you automatically become a team maintainer without explicitly adding +// yourself to the optional array of `maintainers`. For more information, see "[About +// teams](https://help.github. +// com/en/github/setting-up-and-managing-organizations-and-teams/about-teams)". +// // POST /orgs/{org}/teams func (s *Server) handleTeamsCreateRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -63480,6 +67770,18 @@ func (s *Server) handleTeamsCreateRequest(args [1]string, w http.ResponseWriter, // handleTeamsCreateDiscussionCommentInOrgRequest handles teams/create-discussion-comment-in-org operation. // +// Creates a new comment on a team discussion. OAuth access tokens require the `write:discussion` +// [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// This endpoint triggers [notifications](https://docs.github. +// com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating +// content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary +// rate limits](https://docs.github. +// com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary +// rate limits](https://docs.github. +// com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)" for details. +// **Note:** You can also specify a team by `org_id` and `team_id` using the route `POST +// /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments`. +// // POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments func (s *Server) handleTeamsCreateDiscussionCommentInOrgRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -63591,6 +67893,21 @@ func (s *Server) handleTeamsCreateDiscussionCommentInOrgRequest(args [3]string, // handleTeamsCreateDiscussionCommentLegacyRequest handles teams/create-discussion-comment-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the new [Create a discussion +// comment](https://docs.github.com/rest/reference/teams#create-a-discussion-comment) endpoint. +// Creates a new comment on a team discussion. OAuth access tokens require the `write:discussion` +// [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// This endpoint triggers [notifications](https://docs.github. +// com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating +// content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary +// rate limits](https://docs.github. +// com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary +// rate limits](https://docs.github. +// com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)" for details. +// +// Deprecated: schema marks this operation as deprecated. +// // POST /teams/{team_id}/discussions/{discussion_number}/comments func (s *Server) handleTeamsCreateDiscussionCommentLegacyRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -63701,6 +68018,18 @@ func (s *Server) handleTeamsCreateDiscussionCommentLegacyRequest(args [2]string, // handleTeamsCreateDiscussionInOrgRequest handles teams/create-discussion-in-org operation. // +// Creates a new discussion post on a team's page. OAuth access tokens require the `write:discussion` +// [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// This endpoint triggers [notifications](https://docs.github. +// com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating +// content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary +// rate limits](https://docs.github. +// com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary +// rate limits](https://docs.github. +// com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)" for details. +// **Note:** You can also specify a team by `org_id` and `team_id` using the route `POST +// /organizations/{org_id}/team/{team_id}/discussions`. +// // POST /orgs/{org}/teams/{team_slug}/discussions func (s *Server) handleTeamsCreateDiscussionInOrgRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -63811,6 +68140,21 @@ func (s *Server) handleTeamsCreateDiscussionInOrgRequest(args [2]string, w http. // handleTeamsCreateDiscussionLegacyRequest handles teams/create-discussion-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the new [`Create a discussion`](https://docs. +// github.com/rest/reference/teams#create-a-discussion) endpoint. +// Creates a new discussion post on a team's page. OAuth access tokens require the `write:discussion` +// [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// This endpoint triggers [notifications](https://docs.github. +// com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating +// content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary +// rate limits](https://docs.github. +// com/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary +// rate limits](https://docs.github. +// com/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits)" for details. +// +// Deprecated: schema marks this operation as deprecated. +// // POST /teams/{team_id}/discussions func (s *Server) handleTeamsCreateDiscussionLegacyRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -63920,6 +68264,15 @@ func (s *Server) handleTeamsCreateDiscussionLegacyRequest(args [1]string, w http // handleTeamsCreateOrUpdateIdpGroupConnectionsInOrgRequest handles teams/create-or-update-idp-group-connections-in-org operation. // +// Team synchronization is available for organizations using GitHub Enterprise Cloud. For more +// information, see [GitHub's products](https://help.github. +// com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. +// Creates, updates, or removes a connection between a team and an IdP group. When adding groups to a +// team, you must include all new and existing groups to avoid replacing existing groups with the new +// ones. Specifying an empty `groups` array will remove all connections for a team. +// **Note:** You can also specify a team by `org_id` and `team_id` using the route `PATCH +// /organizations/{org_id}/team/{team_id}/team-sync/group-mappings`. +// // PATCH /orgs/{org}/teams/{team_slug}/team-sync/group-mappings func (s *Server) handleTeamsCreateOrUpdateIdpGroupConnectionsInOrgRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -64030,6 +68383,19 @@ func (s *Server) handleTeamsCreateOrUpdateIdpGroupConnectionsInOrgRequest(args [ // handleTeamsCreateOrUpdateIdpGroupConnectionsLegacyRequest handles teams/create-or-update-idp-group-connections-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the new [`Create or update IdP group +// connections`](https://docs.github.com/rest/reference/teams#create-or-update-idp-group-connections) +// endpoint. +// Team synchronization is available for organizations using GitHub Enterprise Cloud. For more +// information, see [GitHub's products](https://help.github. +// com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. +// Creates, updates, or removes a connection between a team and an IdP group. When adding groups to a +// team, you must include all new and existing groups to avoid replacing existing groups with the new +// ones. Specifying an empty `groups` array will remove all connections for a team. +// +// Deprecated: schema marks this operation as deprecated. +// // PATCH /teams/{team_id}/team-sync/group-mappings func (s *Server) handleTeamsCreateOrUpdateIdpGroupConnectionsLegacyRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -64139,6 +68505,11 @@ func (s *Server) handleTeamsCreateOrUpdateIdpGroupConnectionsLegacyRequest(args // handleTeamsDeleteDiscussionCommentInOrgRequest handles teams/delete-discussion-comment-in-org operation. // +// Deletes a comment on a team discussion. OAuth access tokens require the `write:discussion` +// [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE +// /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments/{comment_number}`. +// // DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number} func (s *Server) handleTeamsDeleteDiscussionCommentInOrgRequest(args [4]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -64236,6 +68607,14 @@ func (s *Server) handleTeamsDeleteDiscussionCommentInOrgRequest(args [4]string, // handleTeamsDeleteDiscussionCommentLegacyRequest handles teams/delete-discussion-comment-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the new [Delete a discussion +// comment](https://docs.github.com/rest/reference/teams#delete-a-discussion-comment) endpoint. +// Deletes a comment on a team discussion. OAuth access tokens require the `write:discussion` +// [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// +// Deprecated: schema marks this operation as deprecated. +// // DELETE /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number} func (s *Server) handleTeamsDeleteDiscussionCommentLegacyRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -64332,6 +68711,11 @@ func (s *Server) handleTeamsDeleteDiscussionCommentLegacyRequest(args [3]string, // handleTeamsDeleteDiscussionInOrgRequest handles teams/delete-discussion-in-org operation. // +// Delete a discussion from a team's page. OAuth access tokens require the `write:discussion` +// [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE +// /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}`. +// // DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number} func (s *Server) handleTeamsDeleteDiscussionInOrgRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -64428,6 +68812,14 @@ func (s *Server) handleTeamsDeleteDiscussionInOrgRequest(args [3]string, w http. // handleTeamsDeleteDiscussionLegacyRequest handles teams/delete-discussion-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the new [`Delete a discussion`](https://docs. +// github.com/rest/reference/teams#delete-a-discussion) endpoint. +// Delete a discussion from a team's page. OAuth access tokens require the `write:discussion` +// [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// +// Deprecated: schema marks this operation as deprecated. +// // DELETE /teams/{team_id}/discussions/{discussion_number} func (s *Server) handleTeamsDeleteDiscussionLegacyRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -64523,6 +68915,12 @@ func (s *Server) handleTeamsDeleteDiscussionLegacyRequest(args [2]string, w http // handleTeamsDeleteInOrgRequest handles teams/delete-in-org operation. // +// To delete a team, the authenticated user must be an organization owner or team maintainer. +// If you are an organization owner, deleting a parent team will delete all of its child teams as +// well. +// **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE +// /organizations/{org_id}/team/{team_id}`. +// // DELETE /orgs/{org}/teams/{team_slug} func (s *Server) handleTeamsDeleteInOrgRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -64618,6 +69016,15 @@ func (s *Server) handleTeamsDeleteInOrgRequest(args [2]string, w http.ResponseWr // handleTeamsDeleteLegacyRequest handles teams/delete-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the new [Delete a team](https://docs.github. +// com/rest/reference/teams#delete-a-team) endpoint. +// To delete a team, the authenticated user must be an organization owner or team maintainer. +// If you are an organization owner, deleting a parent team will delete all of its child teams as +// well. +// +// Deprecated: schema marks this operation as deprecated. +// // DELETE /teams/{team_id} func (s *Server) handleTeamsDeleteLegacyRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -64712,6 +69119,10 @@ func (s *Server) handleTeamsDeleteLegacyRequest(args [1]string, w http.ResponseW // handleTeamsGetByNameRequest handles teams/get-by-name operation. // +// Gets a team using the team's `slug`. GitHub generates the `slug` from the team `name`. +// **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET +// /organizations/{org_id}/team/{team_id}`. +// // GET /orgs/{org}/teams/{team_slug} func (s *Server) handleTeamsGetByNameRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -64807,6 +69218,11 @@ func (s *Server) handleTeamsGetByNameRequest(args [2]string, w http.ResponseWrit // handleTeamsGetDiscussionCommentInOrgRequest handles teams/get-discussion-comment-in-org operation. // +// Get a specific comment on a team discussion. OAuth access tokens require the `read:discussion` +// [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET +// /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments/{comment_number}`. +// // GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number} func (s *Server) handleTeamsGetDiscussionCommentInOrgRequest(args [4]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -64904,6 +69320,14 @@ func (s *Server) handleTeamsGetDiscussionCommentInOrgRequest(args [4]string, w h // handleTeamsGetDiscussionCommentLegacyRequest handles teams/get-discussion-comment-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the new [Get a discussion comment](https://docs. +// github.com/rest/reference/teams#get-a-discussion-comment) endpoint. +// Get a specific comment on a team discussion. OAuth access tokens require the `read:discussion` +// [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// +// Deprecated: schema marks this operation as deprecated. +// // GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number} func (s *Server) handleTeamsGetDiscussionCommentLegacyRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -65000,6 +69424,11 @@ func (s *Server) handleTeamsGetDiscussionCommentLegacyRequest(args [3]string, w // handleTeamsGetDiscussionInOrgRequest handles teams/get-discussion-in-org operation. // +// Get a specific discussion on a team's page. OAuth access tokens require the `read:discussion` +// [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET +// /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}`. +// // GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number} func (s *Server) handleTeamsGetDiscussionInOrgRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -65096,6 +69525,14 @@ func (s *Server) handleTeamsGetDiscussionInOrgRequest(args [3]string, w http.Res // handleTeamsGetDiscussionLegacyRequest handles teams/get-discussion-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the new [Get a discussion](https://docs.github. +// com/rest/reference/teams#get-a-discussion) endpoint. +// Get a specific discussion on a team's page. OAuth access tokens require the `read:discussion` +// [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// +// Deprecated: schema marks this operation as deprecated. +// // GET /teams/{team_id}/discussions/{discussion_number} func (s *Server) handleTeamsGetDiscussionLegacyRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -65191,6 +69628,12 @@ func (s *Server) handleTeamsGetDiscussionLegacyRequest(args [2]string, w http.Re // handleTeamsGetLegacyRequest handles teams/get-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the [Get a team by name](https://docs.github. +// com/rest/reference/teams#get-a-team-by-name) endpoint. +// +// Deprecated: schema marks this operation as deprecated. +// // GET /teams/{team_id} func (s *Server) handleTeamsGetLegacyRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -65285,6 +69728,14 @@ func (s *Server) handleTeamsGetLegacyRequest(args [1]string, w http.ResponseWrit // handleTeamsGetMemberLegacyRequest handles teams/get-member-legacy operation. // +// The "Get team member" endpoint (described below) is deprecated. +// We recommend using the [Get team membership for a user](https://docs.github. +// com/rest/reference/teams#get-team-membership-for-a-user) endpoint instead. It allows you to get +// both active and pending memberships. +// To list members in a team, the team must be visible to the authenticated user. +// +// Deprecated: schema marks this operation as deprecated. +// // GET /teams/{team_id}/members/{username} func (s *Server) handleTeamsGetMemberLegacyRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -65380,6 +69831,15 @@ func (s *Server) handleTeamsGetMemberLegacyRequest(args [2]string, w http.Respon // handleTeamsGetMembershipForUserInOrgRequest handles teams/get-membership-for-user-in-org operation. // +// Team members will include the members of child teams. +// To get a user's membership with a team, the team must be visible to the authenticated user. +// **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET +// /organizations/{org_id}/team/{team_id}/memberships/{username}`. +// **Note:** +// The response contains the `state` of the membership and the member's `role`. +// The `role` for organization owners is set to `maintainer`. For more information about `maintainer` +// roles, see see [Create a team](https://docs.github.com/rest/reference/teams#create-a-team). +// // GET /orgs/{org}/teams/{team_slug}/memberships/{username} func (s *Server) handleTeamsGetMembershipForUserInOrgRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -65476,6 +69936,18 @@ func (s *Server) handleTeamsGetMembershipForUserInOrgRequest(args [3]string, w h // handleTeamsGetMembershipForUserLegacyRequest handles teams/get-membership-for-user-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the new [Get team membership for a +// user](https://docs.github.com/rest/reference/teams#get-team-membership-for-a-user) endpoint. +// Team members will include the members of child teams. +// To get a user's membership with a team, the team must be visible to the authenticated user. +// **Note:** +// The response contains the `state` of the membership and the member's `role`. +// The `role` for organization owners is set to `maintainer`. For more information about `maintainer` +// roles, see [Create a team](https://docs.github.com/rest/reference/teams#create-a-team). +// +// Deprecated: schema marks this operation as deprecated. +// // GET /teams/{team_id}/memberships/{username} func (s *Server) handleTeamsGetMembershipForUserLegacyRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -65571,6 +70043,8 @@ func (s *Server) handleTeamsGetMembershipForUserLegacyRequest(args [2]string, w // handleTeamsListRequest handles teams/list operation. // +// Lists all teams in an organization that are visible to the authenticated user. +// // GET /orgs/{org}/teams func (s *Server) handleTeamsListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -65667,6 +70141,10 @@ func (s *Server) handleTeamsListRequest(args [1]string, w http.ResponseWriter, r // handleTeamsListChildInOrgRequest handles teams/list-child-in-org operation. // +// Lists the child teams of the team specified by `{team_slug}`. +// **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET +// /organizations/{org_id}/team/{team_id}/teams`. +// // GET /orgs/{org}/teams/{team_slug}/teams func (s *Server) handleTeamsListChildInOrgRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -65764,6 +70242,12 @@ func (s *Server) handleTeamsListChildInOrgRequest(args [2]string, w http.Respons // handleTeamsListChildLegacyRequest handles teams/list-child-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the new [`List child teams`](https://docs.github. +// com/rest/reference/teams#list-child-teams) endpoint. +// +// Deprecated: schema marks this operation as deprecated. +// // GET /teams/{team_id}/teams func (s *Server) handleTeamsListChildLegacyRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -65860,6 +70344,11 @@ func (s *Server) handleTeamsListChildLegacyRequest(args [1]string, w http.Respon // handleTeamsListDiscussionCommentsInOrgRequest handles teams/list-discussion-comments-in-org operation. // +// List all comments on a team discussion. OAuth access tokens require the `read:discussion` +// [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET +// /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments`. +// // GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments func (s *Server) handleTeamsListDiscussionCommentsInOrgRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -65959,6 +70448,14 @@ func (s *Server) handleTeamsListDiscussionCommentsInOrgRequest(args [3]string, w // handleTeamsListDiscussionCommentsLegacyRequest handles teams/list-discussion-comments-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the new [List discussion comments](https://docs. +// github.com/rest/reference/teams#list-discussion-comments) endpoint. +// List all comments on a team discussion. OAuth access tokens require the `read:discussion` +// [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// +// Deprecated: schema marks this operation as deprecated. +// // GET /teams/{team_id}/discussions/{discussion_number}/comments func (s *Server) handleTeamsListDiscussionCommentsLegacyRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -66057,6 +70554,11 @@ func (s *Server) handleTeamsListDiscussionCommentsLegacyRequest(args [2]string, // handleTeamsListDiscussionsInOrgRequest handles teams/list-discussions-in-org operation. // +// List all discussions on a team's page. OAuth access tokens require the `read:discussion` +// [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET +// /organizations/{org_id}/team/{team_id}/discussions`. +// // GET /orgs/{org}/teams/{team_slug}/discussions func (s *Server) handleTeamsListDiscussionsInOrgRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -66156,6 +70658,14 @@ func (s *Server) handleTeamsListDiscussionsInOrgRequest(args [2]string, w http.R // handleTeamsListDiscussionsLegacyRequest handles teams/list-discussions-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the new [`List discussions`](https://docs.github. +// com/rest/reference/teams#list-discussions) endpoint. +// List all discussions on a team's page. OAuth access tokens require the `read:discussion` +// [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// +// Deprecated: schema marks this operation as deprecated. +// // GET /teams/{team_id}/discussions func (s *Server) handleTeamsListDiscussionsLegacyRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -66253,6 +70763,11 @@ func (s *Server) handleTeamsListDiscussionsLegacyRequest(args [1]string, w http. // handleTeamsListForAuthenticatedUserRequest handles teams/list-for-authenticated-user operation. // +// List all of the teams across all of the organizations to which the authenticated user belongs. +// This method requires `user`, `repo`, or `read:org` [scope](https://docs.github. +// com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/) when authenticating via +// [OAuth](https://docs.github.com/apps/building-oauth-apps/). +// // GET /user/teams func (s *Server) handleTeamsListForAuthenticatedUserRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -66348,6 +70863,16 @@ func (s *Server) handleTeamsListForAuthenticatedUserRequest(args [0]string, w ht // handleTeamsListIdpGroupsForLegacyRequest handles teams/list-idp-groups-for-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the new [`List IdP groups for a +// team`](https://docs.github.com/rest/reference/teams#list-idp-groups-for-a-team) endpoint. +// Team synchronization is available for organizations using GitHub Enterprise Cloud. For more +// information, see [GitHub's products](https://help.github. +// com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. +// List IdP groups connected to a team on GitHub. +// +// Deprecated: schema marks this operation as deprecated. +// // GET /teams/{team_id}/team-sync/group-mappings func (s *Server) handleTeamsListIdpGroupsForLegacyRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -66442,6 +70967,14 @@ func (s *Server) handleTeamsListIdpGroupsForLegacyRequest(args [1]string, w http // handleTeamsListIdpGroupsForOrgRequest handles teams/list-idp-groups-for-org operation. // +// Team synchronization is available for organizations using GitHub Enterprise Cloud. For more +// information, see [GitHub's products](https://help.github. +// com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. +// List IdP groups available in an organization. You can limit your page results using the `per_page` +// parameter. GitHub generates a url-encoded `page` token using a cursor value for where the next +// page begins. For more information on cursor pagination, see "[Offset and Cursor Pagination +// explained](https://dev.to/jackmarchant/offset-and-cursor-pagination-explained-b89).". +// // GET /orgs/{org}/team-sync/groups func (s *Server) handleTeamsListIdpGroupsForOrgRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -66538,6 +71071,13 @@ func (s *Server) handleTeamsListIdpGroupsForOrgRequest(args [1]string, w http.Re // handleTeamsListIdpGroupsInOrgRequest handles teams/list-idp-groups-in-org operation. // +// Team synchronization is available for organizations using GitHub Enterprise Cloud. For more +// information, see [GitHub's products](https://help.github. +// com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. +// List IdP groups connected to a team on GitHub. +// **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET +// /organizations/{org_id}/team/{team_id}/team-sync/group-mappings`. +// // GET /orgs/{org}/teams/{team_slug}/team-sync/group-mappings func (s *Server) handleTeamsListIdpGroupsInOrgRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -66633,6 +71173,9 @@ func (s *Server) handleTeamsListIdpGroupsInOrgRequest(args [2]string, w http.Res // handleTeamsListMembersInOrgRequest handles teams/list-members-in-org operation. // +// Team members will include the members of child teams. +// To list members in a team, the team must be visible to the authenticated user. +// // GET /orgs/{org}/teams/{team_slug}/members func (s *Server) handleTeamsListMembersInOrgRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -66731,6 +71274,13 @@ func (s *Server) handleTeamsListMembersInOrgRequest(args [2]string, w http.Respo // handleTeamsListMembersLegacyRequest handles teams/list-members-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the new [`List team members`](https://docs.github. +// com/rest/reference/teams#list-team-members) endpoint. +// Team members will include the members of child teams. +// +// Deprecated: schema marks this operation as deprecated. +// // GET /teams/{team_id}/members func (s *Server) handleTeamsListMembersLegacyRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -66828,6 +71378,13 @@ func (s *Server) handleTeamsListMembersLegacyRequest(args [1]string, w http.Resp // handleTeamsListPendingInvitationsInOrgRequest handles teams/list-pending-invitations-in-org operation. // +// The return hash contains a `role` field which refers to the Organization Invitation role and will +// be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or +// `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be +// `null`. +// **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET +// /organizations/{org_id}/team/{team_id}/invitations`. +// // GET /orgs/{org}/teams/{team_slug}/invitations func (s *Server) handleTeamsListPendingInvitationsInOrgRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -66925,6 +71482,16 @@ func (s *Server) handleTeamsListPendingInvitationsInOrgRequest(args [2]string, w // handleTeamsListPendingInvitationsLegacyRequest handles teams/list-pending-invitations-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the new [`List pending team +// invitations`](https://docs.github.com/rest/reference/teams#list-pending-team-invitations) endpoint. +// The return hash contains a `role` field which refers to the Organization Invitation role and will +// be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or +// `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be +// `null`. +// +// Deprecated: schema marks this operation as deprecated. +// // GET /teams/{team_id}/invitations func (s *Server) handleTeamsListPendingInvitationsLegacyRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -67021,6 +71588,10 @@ func (s *Server) handleTeamsListPendingInvitationsLegacyRequest(args [1]string, // handleTeamsListProjectsInOrgRequest handles teams/list-projects-in-org operation. // +// Lists the organization projects for a team. +// **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET +// /organizations/{org_id}/team/{team_id}/projects`. +// // GET /orgs/{org}/teams/{team_slug}/projects func (s *Server) handleTeamsListProjectsInOrgRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -67118,6 +71689,13 @@ func (s *Server) handleTeamsListProjectsInOrgRequest(args [2]string, w http.Resp // handleTeamsListProjectsLegacyRequest handles teams/list-projects-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the new [`List team projects`](https://docs. +// github.com/rest/reference/teams#list-team-projects) endpoint. +// Lists the organization projects for a team. +// +// Deprecated: schema marks this operation as deprecated. +// // GET /teams/{team_id}/projects func (s *Server) handleTeamsListProjectsLegacyRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -67214,6 +71792,10 @@ func (s *Server) handleTeamsListProjectsLegacyRequest(args [1]string, w http.Res // handleTeamsListReposInOrgRequest handles teams/list-repos-in-org operation. // +// Lists a team's repositories visible to the authenticated user. +// **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET +// /organizations/{org_id}/team/{team_id}/repos`. +// // GET /orgs/{org}/teams/{team_slug}/repos func (s *Server) handleTeamsListReposInOrgRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -67311,6 +71893,12 @@ func (s *Server) handleTeamsListReposInOrgRequest(args [2]string, w http.Respons // handleTeamsListReposLegacyRequest handles teams/list-repos-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the new [List team repositories](https://docs. +// github.com/rest/reference/teams#list-team-repositories) endpoint. +// +// Deprecated: schema marks this operation as deprecated. +// // GET /teams/{team_id}/repos func (s *Server) handleTeamsListReposLegacyRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -67407,6 +71995,28 @@ func (s *Server) handleTeamsListReposLegacyRequest(args [1]string, w http.Respon // handleTeamsRemoveMemberLegacyRequest handles teams/remove-member-legacy operation. // +// The "Remove team member" endpoint (described below) is deprecated. +// We recommend using the [Remove team membership for a user](https://docs.github. +// com/rest/reference/teams#remove-team-membership-for-a-user) endpoint instead. It allows you to +// remove both active and pending memberships. +// Team synchronization is available for organizations using GitHub Enterprise Cloud. For more +// information, see [GitHub's products](https://help.github. +// com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. +// To remove a team member, the authenticated user must have 'admin' permissions to the team or be an +// owner of the org that the team is associated with. Removing a team member does not delete the user, +// +// it just removes them from the team. +// +// **Note:** When you have team synchronization set up for a team with your organization's identity +// provider (IdP), you will see an error if you attempt to use the API for making changes to the +// team's membership. If you have access to manage group membership in your IdP, you can manage +// GitHub team membership through your identity provider, which automatically adds and removes team +// members in an organization. For more information, see "[Synchronizing teams between your identity +// provider and GitHub](https://help.github. +// com/articles/synchronizing-teams-between-your-identity-provider-and-github/).". +// +// Deprecated: schema marks this operation as deprecated. +// // DELETE /teams/{team_id}/members/{username} func (s *Server) handleTeamsRemoveMemberLegacyRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -67502,6 +72112,22 @@ func (s *Server) handleTeamsRemoveMemberLegacyRequest(args [2]string, w http.Res // handleTeamsRemoveMembershipForUserInOrgRequest handles teams/remove-membership-for-user-in-org operation. // +// Team synchronization is available for organizations using GitHub Enterprise Cloud. For more +// information, see [GitHub's products](https://help.github. +// com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. +// To remove a membership between a user and a team, the authenticated user must have 'admin' +// permissions to the team or be an owner of the organization that the team is associated with. +// Removing team membership does not delete the user, it just removes their membership from the team. +// **Note:** When you have team synchronization set up for a team with your organization's identity +// provider (IdP), you will see an error if you attempt to use the API for making changes to the +// team's membership. If you have access to manage group membership in your IdP, you can manage +// GitHub team membership through your identity provider, which automatically adds and removes team +// members in an organization. For more information, see "[Synchronizing teams between your identity +// provider and GitHub](https://help.github. +// com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." +// **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE +// /organizations/{org_id}/team/{team_id}/memberships/{username}`. +// // DELETE /orgs/{org}/teams/{team_slug}/memberships/{username} func (s *Server) handleTeamsRemoveMembershipForUserInOrgRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -67598,6 +72224,25 @@ func (s *Server) handleTeamsRemoveMembershipForUserInOrgRequest(args [3]string, // handleTeamsRemoveMembershipForUserLegacyRequest handles teams/remove-membership-for-user-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the new [Remove team membership for a +// user](https://docs.github.com/rest/reference/teams#remove-team-membership-for-a-user) endpoint. +// Team synchronization is available for organizations using GitHub Enterprise Cloud. For more +// information, see [GitHub's products](https://help.github. +// com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. +// To remove a membership between a user and a team, the authenticated user must have 'admin' +// permissions to the team or be an owner of the organization that the team is associated with. +// Removing team membership does not delete the user, it just removes their membership from the team. +// **Note:** When you have team synchronization set up for a team with your organization's identity +// provider (IdP), you will see an error if you attempt to use the API for making changes to the +// team's membership. If you have access to manage group membership in your IdP, you can manage +// GitHub team membership through your identity provider, which automatically adds and removes team +// members in an organization. For more information, see "[Synchronizing teams between your identity +// provider and GitHub](https://help.github. +// com/articles/synchronizing-teams-between-your-identity-provider-and-github/).". +// +// Deprecated: schema marks this operation as deprecated. +// // DELETE /teams/{team_id}/memberships/{username} func (s *Server) handleTeamsRemoveMembershipForUserLegacyRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -67693,6 +72338,13 @@ func (s *Server) handleTeamsRemoveMembershipForUserLegacyRequest(args [2]string, // handleTeamsRemoveProjectInOrgRequest handles teams/remove-project-in-org operation. // +// Removes an organization project from a team. An organization owner or a team maintainer can remove +// any project from the team. To remove a project from a team as an organization member, the +// authenticated user must have `read` access to both the team and project, or `admin` access to the +// team or project. This endpoint removes the project from the team, but does not delete the project. +// **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE +// /organizations/{org_id}/team/{team_id}/projects/{project_id}`. +// // DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id} func (s *Server) handleTeamsRemoveProjectInOrgRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -67789,6 +72441,16 @@ func (s *Server) handleTeamsRemoveProjectInOrgRequest(args [3]string, w http.Res // handleTeamsRemoveProjectLegacyRequest handles teams/remove-project-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the new [Remove a project from a +// team](https://docs.github.com/rest/reference/teams#remove-a-project-from-a-team) endpoint. +// Removes an organization project from a team. An organization owner or a team maintainer can remove +// any project from the team. To remove a project from a team as an organization member, the +// authenticated user must have `read` access to both the team and project, or `admin` access to the +// team or project. **Note:** This endpoint removes the project from the team, but does not delete it. +// +// Deprecated: schema marks this operation as deprecated. +// // DELETE /teams/{team_id}/projects/{project_id} func (s *Server) handleTeamsRemoveProjectLegacyRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -67884,6 +72546,13 @@ func (s *Server) handleTeamsRemoveProjectLegacyRequest(args [2]string, w http.Re // handleTeamsRemoveRepoInOrgRequest handles teams/remove-repo-in-org operation. // +// If the authenticated user is an organization owner or a team maintainer, they can remove any +// repositories from the team. To remove a repository from a team as an organization member, the +// authenticated user must have admin access to the repository and must be able to see the team. This +// does not delete the repository, it just removes it from the team. +// **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE +// /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}`. +// // DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo} func (s *Server) handleTeamsRemoveRepoInOrgRequest(args [4]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -67981,6 +72650,16 @@ func (s *Server) handleTeamsRemoveRepoInOrgRequest(args [4]string, w http.Respon // handleTeamsRemoveRepoLegacyRequest handles teams/remove-repo-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the new [Remove a repository from a +// team](https://docs.github.com/rest/reference/teams#remove-a-repository-from-a-team) endpoint. +// If the authenticated user is an organization owner or a team maintainer, they can remove any +// repositories from the team. To remove a repository from a team as an organization member, the +// authenticated user must have admin access to the repository and must be able to see the team. +// NOTE: This does not delete the repository, it just removes it from the team. +// +// Deprecated: schema marks this operation as deprecated. +// // DELETE /teams/{team_id}/repos/{owner}/{repo} func (s *Server) handleTeamsRemoveRepoLegacyRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -68077,6 +72756,11 @@ func (s *Server) handleTeamsRemoveRepoLegacyRequest(args [3]string, w http.Respo // handleTeamsUpdateDiscussionCommentInOrgRequest handles teams/update-discussion-comment-in-org operation. // +// Edits the body text of a discussion comment. OAuth access tokens require the `write:discussion` +// [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// **Note:** You can also specify a team by `org_id` and `team_id` using the route `PATCH +// /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments/{comment_number}`. +// // PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number} func (s *Server) handleTeamsUpdateDiscussionCommentInOrgRequest(args [4]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -68189,6 +72873,14 @@ func (s *Server) handleTeamsUpdateDiscussionCommentInOrgRequest(args [4]string, // handleTeamsUpdateDiscussionCommentLegacyRequest handles teams/update-discussion-comment-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the new [Update a discussion +// comment](https://docs.github.com/rest/reference/teams#update-a-discussion-comment) endpoint. +// Edits the body text of a discussion comment. OAuth access tokens require the `write:discussion` +// [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// +// Deprecated: schema marks this operation as deprecated. +// // PATCH /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number} func (s *Server) handleTeamsUpdateDiscussionCommentLegacyRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -68300,6 +72992,12 @@ func (s *Server) handleTeamsUpdateDiscussionCommentLegacyRequest(args [3]string, // handleTeamsUpdateDiscussionInOrgRequest handles teams/update-discussion-in-org operation. // +// Edits the title and body text of a discussion post. Only the parameters you provide are updated. +// OAuth access tokens require the `write:discussion` [scope](https://docs.github. +// com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// **Note:** You can also specify a team by `org_id` and `team_id` using the route `PATCH +// /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}`. +// // PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number} func (s *Server) handleTeamsUpdateDiscussionInOrgRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -68411,6 +73109,15 @@ func (s *Server) handleTeamsUpdateDiscussionInOrgRequest(args [3]string, w http. // handleTeamsUpdateDiscussionLegacyRequest handles teams/update-discussion-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the new [Update a discussion](https://docs.github. +// com/rest/reference/teams#update-a-discussion) endpoint. +// Edits the title and body text of a discussion post. Only the parameters you provide are updated. +// OAuth access tokens require the `write:discussion` [scope](https://docs.github. +// com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// +// Deprecated: schema marks this operation as deprecated. +// // PATCH /teams/{team_id}/discussions/{discussion_number} func (s *Server) handleTeamsUpdateDiscussionLegacyRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -68521,6 +73228,10 @@ func (s *Server) handleTeamsUpdateDiscussionLegacyRequest(args [2]string, w http // handleTeamsUpdateInOrgRequest handles teams/update-in-org operation. // +// To edit a team, the authenticated user must either be an organization owner or a team maintainer. +// **Note:** You can also specify a team by `org_id` and `team_id` using the route `PATCH +// /organizations/{org_id}/team/{team_id}`. +// // PATCH /orgs/{org}/teams/{team_slug} func (s *Server) handleTeamsUpdateInOrgRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -68631,6 +73342,14 @@ func (s *Server) handleTeamsUpdateInOrgRequest(args [2]string, w http.ResponseWr // handleTeamsUpdateLegacyRequest handles teams/update-legacy operation. // +// **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. +// We recommend migrating your existing code to use the new [Update a team](https://docs.github. +// com/rest/reference/teams#update-a-team) endpoint. +// To edit a team, the authenticated user must either be an organization owner or a team maintainer. +// **Note:** With nested teams, the `privacy` for parent teams cannot be `secret`. +// +// Deprecated: schema marks this operation as deprecated. +// // PATCH /teams/{team_id} func (s *Server) handleTeamsUpdateLegacyRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -68740,6 +73459,8 @@ func (s *Server) handleTeamsUpdateLegacyRequest(args [1]string, w http.ResponseW // handleUsersAddEmailForAuthenticatedRequest handles users/add-email-for-authenticated operation. // +// This endpoint is accessible with the `user` scope. +// // POST /user/emails func (s *Server) handleUsersAddEmailForAuthenticatedRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -68837,6 +73558,8 @@ func (s *Server) handleUsersAddEmailForAuthenticatedRequest(args [0]string, w ht // handleUsersBlockRequest handles users/block operation. // +// Block a user. +// // PUT /user/blocks/{username} func (s *Server) handleUsersBlockRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -68931,6 +73654,8 @@ func (s *Server) handleUsersBlockRequest(args [1]string, w http.ResponseWriter, // handleUsersCheckBlockedRequest handles users/check-blocked operation. // +// Check if a user is blocked by the authenticated user. +// // GET /user/blocks/{username} func (s *Server) handleUsersCheckBlockedRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -69025,6 +73750,8 @@ func (s *Server) handleUsersCheckBlockedRequest(args [1]string, w http.ResponseW // handleUsersCheckFollowingForUserRequest handles users/check-following-for-user operation. // +// Check if a user follows another user. +// // GET /users/{username}/following/{target_user} func (s *Server) handleUsersCheckFollowingForUserRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -69120,6 +73847,8 @@ func (s *Server) handleUsersCheckFollowingForUserRequest(args [2]string, w http. // handleUsersCheckPersonIsFollowedByAuthenticatedRequest handles users/check-person-is-followed-by-authenticated operation. // +// Check if a person is followed by the authenticated user. +// // GET /user/following/{username} func (s *Server) handleUsersCheckPersonIsFollowedByAuthenticatedRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -69214,6 +73943,10 @@ func (s *Server) handleUsersCheckPersonIsFollowedByAuthenticatedRequest(args [1] // handleUsersCreateGpgKeyForAuthenticatedRequest handles users/create-gpg-key-for-authenticated operation. // +// Adds a GPG key to the authenticated user's GitHub account. Requires that you are authenticated via +// Basic Auth, or OAuth with at least `write:gpg_key` [scope](https://docs.github. +// com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// // POST /user/gpg_keys func (s *Server) handleUsersCreateGpgKeyForAuthenticatedRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -69311,6 +74044,10 @@ func (s *Server) handleUsersCreateGpgKeyForAuthenticatedRequest(args [0]string, // handleUsersCreatePublicSSHKeyForAuthenticatedRequest handles users/create-public-ssh-key-for-authenticated operation. // +// Adds a public SSH key to the authenticated user's GitHub account. Requires that you are +// authenticated via Basic Auth, or OAuth with at least `write:public_key` [scope](https://docs. +// github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// // POST /user/keys func (s *Server) handleUsersCreatePublicSSHKeyForAuthenticatedRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -69408,6 +74145,8 @@ func (s *Server) handleUsersCreatePublicSSHKeyForAuthenticatedRequest(args [0]st // handleUsersDeleteEmailForAuthenticatedRequest handles users/delete-email-for-authenticated operation. // +// This endpoint is accessible with the `user` scope. +// // DELETE /user/emails func (s *Server) handleUsersDeleteEmailForAuthenticatedRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -69505,6 +74244,10 @@ func (s *Server) handleUsersDeleteEmailForAuthenticatedRequest(args [0]string, w // handleUsersDeleteGpgKeyForAuthenticatedRequest handles users/delete-gpg-key-for-authenticated operation. // +// Removes a GPG key from the authenticated user's GitHub account. Requires that you are +// authenticated via Basic Auth or via OAuth with at least `admin:gpg_key` [scope](https://docs. +// github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// // DELETE /user/gpg_keys/{gpg_key_id} func (s *Server) handleUsersDeleteGpgKeyForAuthenticatedRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -69599,6 +74342,10 @@ func (s *Server) handleUsersDeleteGpgKeyForAuthenticatedRequest(args [1]string, // handleUsersDeletePublicSSHKeyForAuthenticatedRequest handles users/delete-public-ssh-key-for-authenticated operation. // +// Removes a public SSH key from the authenticated user's GitHub account. Requires that you are +// authenticated via Basic Auth or via OAuth with at least `admin:public_key` [scope](https://docs. +// github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// // DELETE /user/keys/{key_id} func (s *Server) handleUsersDeletePublicSSHKeyForAuthenticatedRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -69693,6 +74440,12 @@ func (s *Server) handleUsersDeletePublicSSHKeyForAuthenticatedRequest(args [1]st // handleUsersFollowRequest handles users/follow operation. // +// Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more +// information, see "[HTTP verbs](https://docs.github. +// com/rest/overview/resources-in-the-rest-api#http-verbs)." +// Following a user requires the user to be logged in and authenticated with basic auth or OAuth with +// the `user:follow` scope. +// // PUT /user/following/{username} func (s *Server) handleUsersFollowRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -69787,6 +74540,11 @@ func (s *Server) handleUsersFollowRequest(args [1]string, w http.ResponseWriter, // handleUsersGetAuthenticatedRequest handles users/get-authenticated operation. // +// If the authenticated user is authenticated through basic authentication or OAuth with the `user` +// scope, then the response lists public and private profile information. +// If the authenticated user is authenticated through OAuth without the `user` scope, then the +// response lists only public profile information. +// // GET /user func (s *Server) handleUsersGetAuthenticatedRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -69865,6 +74623,22 @@ func (s *Server) handleUsersGetAuthenticatedRequest(args [0]string, w http.Respo // handleUsersGetByUsernameRequest handles users/get-by-username operation. // +// Provides publicly available information about someone with a GitHub account. +// GitHub Apps with the `Plan` user permission can use this endpoint to retrieve information about a +// user's GitHub plan. The GitHub App must be authenticated as a user. See "[Identifying and +// authorizing users for GitHub Apps](https://docs.github. +// com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/)" for details +// about authentication. For an example response, see 'Response with GitHub plan information' below" +// The `email` key in the following response is the publicly visible email address from your GitHub +// [profile page](https://github.com/settings/profile). When setting up your profile, you can select +// a primary email address to be “public” which provides an email entry for this endpoint. If you +// do not set a public email address for `email`, then it will have a value of `null`. You only see +// publicly visible email addresses when authenticated with GitHub. For more information, see +// [Authentication](https://docs.github.com/rest/overview/resources-in-the-rest-api#authentication). +// The Emails API enables you to list all of your email addresses, and toggle a primary email to be +// visible publicly. For more information, see "[Emails API](https://docs.github. +// com/rest/reference/users#emails)". +// // GET /users/{username} func (s *Server) handleUsersGetByUsernameRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -69959,6 +74733,17 @@ func (s *Server) handleUsersGetByUsernameRequest(args [1]string, w http.Response // handleUsersGetContextForUserRequest handles users/get-context-for-user operation. // +// Provides hovercard information when authenticated through basic auth or OAuth with the `repo` +// scope. You can find out more about someone in relation to their pull requests, issues, +// repositories, and organizations. +// The `subject_type` and `subject_id` parameters provide context for the person's hovercard, which +// returns more information than without the parameters. For example, if you wanted to find out more +// about `octocat` who owns the `Spoon-Knife` repository via cURL, it would look like this: +// ```shell +// curl -u username:token +// https://api.github.com/users/octocat/hovercard?subject_type=repository&subject_id=1300192 +// ```. +// // GET /users/{username}/hovercard func (s *Server) handleUsersGetContextForUserRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -70055,6 +74840,10 @@ func (s *Server) handleUsersGetContextForUserRequest(args [1]string, w http.Resp // handleUsersGetGpgKeyForAuthenticatedRequest handles users/get-gpg-key-for-authenticated operation. // +// View extended details for a single GPG key. Requires that you are authenticated via Basic Auth or +// via OAuth with at least `read:gpg_key` [scope](https://docs.github. +// com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// // GET /user/gpg_keys/{gpg_key_id} func (s *Server) handleUsersGetGpgKeyForAuthenticatedRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -70149,6 +74938,10 @@ func (s *Server) handleUsersGetGpgKeyForAuthenticatedRequest(args [1]string, w h // handleUsersGetPublicSSHKeyForAuthenticatedRequest handles users/get-public-ssh-key-for-authenticated operation. // +// View extended details for a single public SSH key. Requires that you are authenticated via Basic +// Auth or via OAuth with at least `read:public_key` [scope](https://docs.github. +// com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// // GET /user/keys/{key_id} func (s *Server) handleUsersGetPublicSSHKeyForAuthenticatedRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -70243,6 +75036,12 @@ func (s *Server) handleUsersGetPublicSSHKeyForAuthenticatedRequest(args [1]strin // handleUsersListRequest handles users/list operation. // +// Lists all users, in the order that they signed up on GitHub. This list includes personal user +// accounts and organization accounts. +// Note: Pagination is powered exclusively by the `since` parameter. Use the [Link +// header](https://docs.github.com/rest/overview/resources-in-the-rest-api#link-header) to get the +// URL for the next page of users. +// // GET /users func (s *Server) handleUsersListRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -70338,6 +75137,8 @@ func (s *Server) handleUsersListRequest(args [0]string, w http.ResponseWriter, r // handleUsersListBlockedByAuthenticatedRequest handles users/list-blocked-by-authenticated operation. // +// List the users you've blocked on your personal account. +// // GET /user/blocks func (s *Server) handleUsersListBlockedByAuthenticatedRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -70416,6 +75217,9 @@ func (s *Server) handleUsersListBlockedByAuthenticatedRequest(args [0]string, w // handleUsersListEmailsForAuthenticatedRequest handles users/list-emails-for-authenticated operation. // +// Lists all of your email addresses, and specifies which one is visible to the public. This endpoint +// is accessible with the `user:email` scope. +// // GET /user/emails func (s *Server) handleUsersListEmailsForAuthenticatedRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -70511,6 +75315,8 @@ func (s *Server) handleUsersListEmailsForAuthenticatedRequest(args [0]string, w // handleUsersListFollowedByAuthenticatedRequest handles users/list-followed-by-authenticated operation. // +// Lists the people who the authenticated user follows. +// // GET /user/following func (s *Server) handleUsersListFollowedByAuthenticatedRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -70606,6 +75412,8 @@ func (s *Server) handleUsersListFollowedByAuthenticatedRequest(args [0]string, w // handleUsersListFollowersForAuthenticatedUserRequest handles users/list-followers-for-authenticated-user operation. // +// Lists the people following the authenticated user. +// // GET /user/followers func (s *Server) handleUsersListFollowersForAuthenticatedUserRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -70701,6 +75509,8 @@ func (s *Server) handleUsersListFollowersForAuthenticatedUserRequest(args [0]str // handleUsersListFollowersForUserRequest handles users/list-followers-for-user operation. // +// Lists the people following the specified user. +// // GET /users/{username}/followers func (s *Server) handleUsersListFollowersForUserRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -70797,6 +75607,8 @@ func (s *Server) handleUsersListFollowersForUserRequest(args [1]string, w http.R // handleUsersListFollowingForUserRequest handles users/list-following-for-user operation. // +// Lists the people who the specified user follows. +// // GET /users/{username}/following func (s *Server) handleUsersListFollowingForUserRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -70893,6 +75705,10 @@ func (s *Server) handleUsersListFollowingForUserRequest(args [1]string, w http.R // handleUsersListGpgKeysForAuthenticatedRequest handles users/list-gpg-keys-for-authenticated operation. // +// Lists the current user's GPG keys. Requires that you are authenticated via Basic Auth or via OAuth +// with at least `read:gpg_key` [scope](https://docs.github. +// com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// // GET /user/gpg_keys func (s *Server) handleUsersListGpgKeysForAuthenticatedRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -70988,6 +75804,8 @@ func (s *Server) handleUsersListGpgKeysForAuthenticatedRequest(args [0]string, w // handleUsersListGpgKeysForUserRequest handles users/list-gpg-keys-for-user operation. // +// Lists the GPG keys for a user. This information is accessible by anyone. +// // GET /users/{username}/gpg_keys func (s *Server) handleUsersListGpgKeysForUserRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -71084,6 +75902,11 @@ func (s *Server) handleUsersListGpgKeysForUserRequest(args [1]string, w http.Res // handleUsersListPublicEmailsForAuthenticatedRequest handles users/list-public-emails-for-authenticated operation. // +// Lists your publicly visible email address, which you can set with the [Set primary email +// visibility for the authenticated user](https://docs.github. +// com/rest/reference/users#set-primary-email-visibility-for-the-authenticated-user) endpoint. This +// endpoint is accessible with the `user:email` scope. +// // GET /user/public_emails func (s *Server) handleUsersListPublicEmailsForAuthenticatedRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -71179,6 +76002,8 @@ func (s *Server) handleUsersListPublicEmailsForAuthenticatedRequest(args [0]stri // handleUsersListPublicKeysForUserRequest handles users/list-public-keys-for-user operation. // +// Lists the _verified_ public SSH keys for a user. This is accessible by anyone. +// // GET /users/{username}/keys func (s *Server) handleUsersListPublicKeysForUserRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -71275,6 +76100,10 @@ func (s *Server) handleUsersListPublicKeysForUserRequest(args [1]string, w http. // handleUsersListPublicSSHKeysForAuthenticatedRequest handles users/list-public-ssh-keys-for-authenticated operation. // +// Lists the public SSH keys for the authenticated user's GitHub account. Requires that you are +// authenticated via Basic Auth or via OAuth with at least `read:public_key` [scope](https://docs. +// github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). +// // GET /user/keys func (s *Server) handleUsersListPublicSSHKeysForAuthenticatedRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -71370,6 +76199,8 @@ func (s *Server) handleUsersListPublicSSHKeysForAuthenticatedRequest(args [0]str // handleUsersSetPrimaryEmailVisibilityForAuthenticatedRequest handles users/set-primary-email-visibility-for-authenticated operation. // +// Sets the visibility for your primary email addresses. +// // PATCH /user/email/visibility func (s *Server) handleUsersSetPrimaryEmailVisibilityForAuthenticatedRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -71467,6 +76298,8 @@ func (s *Server) handleUsersSetPrimaryEmailVisibilityForAuthenticatedRequest(arg // handleUsersUnblockRequest handles users/unblock operation. // +// Unblock a user. +// // DELETE /user/blocks/{username} func (s *Server) handleUsersUnblockRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -71561,6 +76394,9 @@ func (s *Server) handleUsersUnblockRequest(args [1]string, w http.ResponseWriter // handleUsersUnfollowRequest handles users/unfollow operation. // +// Unfollowing a user requires the user to be logged in and authenticated with basic auth or OAuth +// with the `user:follow` scope. +// // DELETE /user/following/{username} func (s *Server) handleUsersUnfollowRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -71655,6 +76491,10 @@ func (s *Server) handleUsersUnfollowRequest(args [1]string, w http.ResponseWrite // handleUsersUpdateAuthenticatedRequest handles users/update-authenticated operation. // +// **Note:** If your email is set to private and you send an `email` parameter as part of this +// request to update your profile, your privacy settings are still enforced: the email address will +// not be displayed on your public profile or via the API. +// // PATCH /user func (s *Server) handleUsersUpdateAuthenticatedRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ diff --git a/examples/ex_github/oas_parameters_gen.go b/examples/ex_github/oas_parameters_gen.go index f3d989efa..0498c1738 100644 --- a/examples/ex_github/oas_parameters_gen.go +++ b/examples/ex_github/oas_parameters_gen.go @@ -14,6 +14,7 @@ import ( "github.com/ogen-go/ogen/validate" ) +// ActionsAddRepoAccessToSelfHostedRunnerGroupInOrgParams is parameters of actions/add-repo-access-to-self-hosted-runner-group-in-org operation. type ActionsAddRepoAccessToSelfHostedRunnerGroupInOrgParams struct { Org string // Unique identifier of the self-hosted runner group. @@ -125,6 +126,7 @@ func decodeActionsAddRepoAccessToSelfHostedRunnerGroupInOrgParams(args [3]string return params, nil } +// ActionsAddSelectedRepoToOrgSecretParams is parameters of actions/add-selected-repo-to-org-secret operation. type ActionsAddSelectedRepoToOrgSecretParams struct { Org string // Secret_name parameter. @@ -236,6 +238,7 @@ func decodeActionsAddSelectedRepoToOrgSecretParams(args [3]string, r *http.Reque return params, nil } +// ActionsAddSelfHostedRunnerToGroupForOrgParams is parameters of actions/add-self-hosted-runner-to-group-for-org operation. type ActionsAddSelfHostedRunnerToGroupForOrgParams struct { Org string // Unique identifier of the self-hosted runner group. @@ -348,6 +351,7 @@ func decodeActionsAddSelfHostedRunnerToGroupForOrgParams(args [3]string, r *http return params, nil } +// ActionsApproveWorkflowRunParams is parameters of actions/approve-workflow-run operation. type ActionsApproveWorkflowRunParams struct { Owner string Repo string @@ -459,6 +463,7 @@ func decodeActionsApproveWorkflowRunParams(args [3]string, r *http.Request) (par return params, nil } +// ActionsCancelWorkflowRunParams is parameters of actions/cancel-workflow-run operation. type ActionsCancelWorkflowRunParams struct { Owner string Repo string @@ -570,6 +575,7 @@ func decodeActionsCancelWorkflowRunParams(args [3]string, r *http.Request) (para return params, nil } +// ActionsCreateOrUpdateEnvironmentSecretParams is parameters of actions/create-or-update-environment-secret operation. type ActionsCreateOrUpdateEnvironmentSecretParams struct { RepositoryID int // The name of the environment. @@ -682,6 +688,7 @@ func decodeActionsCreateOrUpdateEnvironmentSecretParams(args [3]string, r *http. return params, nil } +// ActionsCreateOrUpdateOrgSecretParams is parameters of actions/create-or-update-org-secret operation. type ActionsCreateOrUpdateOrgSecretParams struct { Org string // Secret_name parameter. @@ -760,6 +767,7 @@ func decodeActionsCreateOrUpdateOrgSecretParams(args [2]string, r *http.Request) return params, nil } +// ActionsCreateOrUpdateRepoSecretParams is parameters of actions/create-or-update-repo-secret operation. type ActionsCreateOrUpdateRepoSecretParams struct { Owner string Repo string @@ -871,6 +879,7 @@ func decodeActionsCreateOrUpdateRepoSecretParams(args [3]string, r *http.Request return params, nil } +// ActionsCreateRegistrationTokenForOrgParams is parameters of actions/create-registration-token-for-org operation. type ActionsCreateRegistrationTokenForOrgParams struct { Org string } @@ -915,6 +924,7 @@ func decodeActionsCreateRegistrationTokenForOrgParams(args [1]string, r *http.Re return params, nil } +// ActionsCreateRegistrationTokenForRepoParams is parameters of actions/create-registration-token-for-repo operation. type ActionsCreateRegistrationTokenForRepoParams struct { Owner string Repo string @@ -992,6 +1002,7 @@ func decodeActionsCreateRegistrationTokenForRepoParams(args [2]string, r *http.R return params, nil } +// ActionsCreateRemoveTokenForOrgParams is parameters of actions/create-remove-token-for-org operation. type ActionsCreateRemoveTokenForOrgParams struct { Org string } @@ -1036,6 +1047,7 @@ func decodeActionsCreateRemoveTokenForOrgParams(args [1]string, r *http.Request) return params, nil } +// ActionsCreateRemoveTokenForRepoParams is parameters of actions/create-remove-token-for-repo operation. type ActionsCreateRemoveTokenForRepoParams struct { Owner string Repo string @@ -1113,6 +1125,7 @@ func decodeActionsCreateRemoveTokenForRepoParams(args [2]string, r *http.Request return params, nil } +// ActionsCreateSelfHostedRunnerGroupForOrgParams is parameters of actions/create-self-hosted-runner-group-for-org operation. type ActionsCreateSelfHostedRunnerGroupForOrgParams struct { Org string } @@ -1157,6 +1170,7 @@ func decodeActionsCreateSelfHostedRunnerGroupForOrgParams(args [1]string, r *htt return params, nil } +// ActionsDeleteArtifactParams is parameters of actions/delete-artifact operation. type ActionsDeleteArtifactParams struct { Owner string Repo string @@ -1268,6 +1282,7 @@ func decodeActionsDeleteArtifactParams(args [3]string, r *http.Request) (params return params, nil } +// ActionsDeleteEnvironmentSecretParams is parameters of actions/delete-environment-secret operation. type ActionsDeleteEnvironmentSecretParams struct { RepositoryID int // The name of the environment. @@ -1380,6 +1395,7 @@ func decodeActionsDeleteEnvironmentSecretParams(args [3]string, r *http.Request) return params, nil } +// ActionsDeleteOrgSecretParams is parameters of actions/delete-org-secret operation. type ActionsDeleteOrgSecretParams struct { Org string // Secret_name parameter. @@ -1458,6 +1474,7 @@ func decodeActionsDeleteOrgSecretParams(args [2]string, r *http.Request) (params return params, nil } +// ActionsDeleteRepoSecretParams is parameters of actions/delete-repo-secret operation. type ActionsDeleteRepoSecretParams struct { Owner string Repo string @@ -1569,6 +1586,7 @@ func decodeActionsDeleteRepoSecretParams(args [3]string, r *http.Request) (param return params, nil } +// ActionsDeleteSelfHostedRunnerFromOrgParams is parameters of actions/delete-self-hosted-runner-from-org operation. type ActionsDeleteSelfHostedRunnerFromOrgParams struct { Org string // Unique identifier of the self-hosted runner. @@ -1647,6 +1665,7 @@ func decodeActionsDeleteSelfHostedRunnerFromOrgParams(args [2]string, r *http.Re return params, nil } +// ActionsDeleteSelfHostedRunnerFromRepoParams is parameters of actions/delete-self-hosted-runner-from-repo operation. type ActionsDeleteSelfHostedRunnerFromRepoParams struct { Owner string Repo string @@ -1758,6 +1777,7 @@ func decodeActionsDeleteSelfHostedRunnerFromRepoParams(args [3]string, r *http.R return params, nil } +// ActionsDeleteSelfHostedRunnerGroupFromOrgParams is parameters of actions/delete-self-hosted-runner-group-from-org operation. type ActionsDeleteSelfHostedRunnerGroupFromOrgParams struct { Org string // Unique identifier of the self-hosted runner group. @@ -1836,6 +1856,7 @@ func decodeActionsDeleteSelfHostedRunnerGroupFromOrgParams(args [2]string, r *ht return params, nil } +// ActionsDeleteWorkflowRunParams is parameters of actions/delete-workflow-run operation. type ActionsDeleteWorkflowRunParams struct { Owner string Repo string @@ -1947,6 +1968,7 @@ func decodeActionsDeleteWorkflowRunParams(args [3]string, r *http.Request) (para return params, nil } +// ActionsDeleteWorkflowRunLogsParams is parameters of actions/delete-workflow-run-logs operation. type ActionsDeleteWorkflowRunLogsParams struct { Owner string Repo string @@ -2058,6 +2080,7 @@ func decodeActionsDeleteWorkflowRunLogsParams(args [3]string, r *http.Request) ( return params, nil } +// ActionsDisableSelectedRepositoryGithubActionsOrganizationParams is parameters of actions/disable-selected-repository-github-actions-organization operation. type ActionsDisableSelectedRepositoryGithubActionsOrganizationParams struct { Org string RepositoryID int @@ -2135,6 +2158,7 @@ func decodeActionsDisableSelectedRepositoryGithubActionsOrganizationParams(args return params, nil } +// ActionsDownloadArtifactParams is parameters of actions/download-artifact operation. type ActionsDownloadArtifactParams struct { Owner string Repo string @@ -2279,6 +2303,7 @@ func decodeActionsDownloadArtifactParams(args [4]string, r *http.Request) (param return params, nil } +// ActionsDownloadJobLogsForWorkflowRunParams is parameters of actions/download-job-logs-for-workflow-run operation. type ActionsDownloadJobLogsForWorkflowRunParams struct { Owner string Repo string @@ -2390,6 +2415,7 @@ func decodeActionsDownloadJobLogsForWorkflowRunParams(args [3]string, r *http.Re return params, nil } +// ActionsDownloadWorkflowRunLogsParams is parameters of actions/download-workflow-run-logs operation. type ActionsDownloadWorkflowRunLogsParams struct { Owner string Repo string @@ -2501,6 +2527,7 @@ func decodeActionsDownloadWorkflowRunLogsParams(args [3]string, r *http.Request) return params, nil } +// ActionsEnableSelectedRepositoryGithubActionsOrganizationParams is parameters of actions/enable-selected-repository-github-actions-organization operation. type ActionsEnableSelectedRepositoryGithubActionsOrganizationParams struct { Org string RepositoryID int @@ -2578,6 +2605,7 @@ func decodeActionsEnableSelectedRepositoryGithubActionsOrganizationParams(args [ return params, nil } +// ActionsGetAllowedActionsOrganizationParams is parameters of actions/get-allowed-actions-organization operation. type ActionsGetAllowedActionsOrganizationParams struct { Org string } @@ -2622,6 +2650,7 @@ func decodeActionsGetAllowedActionsOrganizationParams(args [1]string, r *http.Re return params, nil } +// ActionsGetAllowedActionsRepositoryParams is parameters of actions/get-allowed-actions-repository operation. type ActionsGetAllowedActionsRepositoryParams struct { Owner string Repo string @@ -2699,6 +2728,7 @@ func decodeActionsGetAllowedActionsRepositoryParams(args [2]string, r *http.Requ return params, nil } +// ActionsGetArtifactParams is parameters of actions/get-artifact operation. type ActionsGetArtifactParams struct { Owner string Repo string @@ -2810,6 +2840,7 @@ func decodeActionsGetArtifactParams(args [3]string, r *http.Request) (params Act return params, nil } +// ActionsGetEnvironmentPublicKeyParams is parameters of actions/get-environment-public-key operation. type ActionsGetEnvironmentPublicKeyParams struct { RepositoryID int // The name of the environment. @@ -2888,6 +2919,7 @@ func decodeActionsGetEnvironmentPublicKeyParams(args [2]string, r *http.Request) return params, nil } +// ActionsGetEnvironmentSecretParams is parameters of actions/get-environment-secret operation. type ActionsGetEnvironmentSecretParams struct { RepositoryID int // The name of the environment. @@ -3000,6 +3032,7 @@ func decodeActionsGetEnvironmentSecretParams(args [3]string, r *http.Request) (p return params, nil } +// ActionsGetGithubActionsPermissionsOrganizationParams is parameters of actions/get-github-actions-permissions-organization operation. type ActionsGetGithubActionsPermissionsOrganizationParams struct { Org string } @@ -3044,6 +3077,7 @@ func decodeActionsGetGithubActionsPermissionsOrganizationParams(args [1]string, return params, nil } +// ActionsGetGithubActionsPermissionsRepositoryParams is parameters of actions/get-github-actions-permissions-repository operation. type ActionsGetGithubActionsPermissionsRepositoryParams struct { Owner string Repo string @@ -3121,6 +3155,7 @@ func decodeActionsGetGithubActionsPermissionsRepositoryParams(args [2]string, r return params, nil } +// ActionsGetJobForWorkflowRunParams is parameters of actions/get-job-for-workflow-run operation. type ActionsGetJobForWorkflowRunParams struct { Owner string Repo string @@ -3232,6 +3267,7 @@ func decodeActionsGetJobForWorkflowRunParams(args [3]string, r *http.Request) (p return params, nil } +// ActionsGetOrgPublicKeyParams is parameters of actions/get-org-public-key operation. type ActionsGetOrgPublicKeyParams struct { Org string } @@ -3276,6 +3312,7 @@ func decodeActionsGetOrgPublicKeyParams(args [1]string, r *http.Request) (params return params, nil } +// ActionsGetOrgSecretParams is parameters of actions/get-org-secret operation. type ActionsGetOrgSecretParams struct { Org string // Secret_name parameter. @@ -3354,6 +3391,7 @@ func decodeActionsGetOrgSecretParams(args [2]string, r *http.Request) (params Ac return params, nil } +// ActionsGetRepoPublicKeyParams is parameters of actions/get-repo-public-key operation. type ActionsGetRepoPublicKeyParams struct { Owner string Repo string @@ -3431,6 +3469,7 @@ func decodeActionsGetRepoPublicKeyParams(args [2]string, r *http.Request) (param return params, nil } +// ActionsGetRepoSecretParams is parameters of actions/get-repo-secret operation. type ActionsGetRepoSecretParams struct { Owner string Repo string @@ -3542,6 +3581,7 @@ func decodeActionsGetRepoSecretParams(args [3]string, r *http.Request) (params A return params, nil } +// ActionsGetReviewsForRunParams is parameters of actions/get-reviews-for-run operation. type ActionsGetReviewsForRunParams struct { Owner string Repo string @@ -3653,6 +3693,7 @@ func decodeActionsGetReviewsForRunParams(args [3]string, r *http.Request) (param return params, nil } +// ActionsGetSelfHostedRunnerForOrgParams is parameters of actions/get-self-hosted-runner-for-org operation. type ActionsGetSelfHostedRunnerForOrgParams struct { Org string // Unique identifier of the self-hosted runner. @@ -3731,6 +3772,7 @@ func decodeActionsGetSelfHostedRunnerForOrgParams(args [2]string, r *http.Reques return params, nil } +// ActionsGetSelfHostedRunnerForRepoParams is parameters of actions/get-self-hosted-runner-for-repo operation. type ActionsGetSelfHostedRunnerForRepoParams struct { Owner string Repo string @@ -3842,6 +3884,7 @@ func decodeActionsGetSelfHostedRunnerForRepoParams(args [3]string, r *http.Reque return params, nil } +// ActionsGetSelfHostedRunnerGroupForOrgParams is parameters of actions/get-self-hosted-runner-group-for-org operation. type ActionsGetSelfHostedRunnerGroupForOrgParams struct { Org string // Unique identifier of the self-hosted runner group. @@ -3920,6 +3963,7 @@ func decodeActionsGetSelfHostedRunnerGroupForOrgParams(args [2]string, r *http.R return params, nil } +// ActionsGetWorkflowRunParams is parameters of actions/get-workflow-run operation. type ActionsGetWorkflowRunParams struct { Owner string Repo string @@ -4031,6 +4075,7 @@ func decodeActionsGetWorkflowRunParams(args [3]string, r *http.Request) (params return params, nil } +// ActionsGetWorkflowRunUsageParams is parameters of actions/get-workflow-run-usage operation. type ActionsGetWorkflowRunUsageParams struct { Owner string Repo string @@ -4142,6 +4187,7 @@ func decodeActionsGetWorkflowRunUsageParams(args [3]string, r *http.Request) (pa return params, nil } +// ActionsListArtifactsForRepoParams is parameters of actions/list-artifacts-for-repo operation. type ActionsListArtifactsForRepoParams struct { Owner string Repo string @@ -4308,6 +4354,7 @@ func decodeActionsListArtifactsForRepoParams(args [2]string, r *http.Request) (p return params, nil } +// ActionsListEnvironmentSecretsParams is parameters of actions/list-environment-secrets operation. type ActionsListEnvironmentSecretsParams struct { RepositoryID int // The name of the environment. @@ -4475,6 +4522,7 @@ func decodeActionsListEnvironmentSecretsParams(args [2]string, r *http.Request) return params, nil } +// ActionsListJobsForWorkflowRunParams is parameters of actions/list-jobs-for-workflow-run operation. type ActionsListJobsForWorkflowRunParams struct { Owner string Repo string @@ -4736,6 +4784,7 @@ func decodeActionsListJobsForWorkflowRunParams(args [3]string, r *http.Request) return params, nil } +// ActionsListOrgSecretsParams is parameters of actions/list-org-secrets operation. type ActionsListOrgSecretsParams struct { Org string // Results per page (max 100). @@ -4869,6 +4918,7 @@ func decodeActionsListOrgSecretsParams(args [1]string, r *http.Request) (params return params, nil } +// ActionsListRepoAccessToSelfHostedRunnerGroupInOrgParams is parameters of actions/list-repo-access-to-self-hosted-runner-group-in-org operation. type ActionsListRepoAccessToSelfHostedRunnerGroupInOrgParams struct { Org string // Unique identifier of the self-hosted runner group. @@ -5036,6 +5086,7 @@ func decodeActionsListRepoAccessToSelfHostedRunnerGroupInOrgParams(args [2]strin return params, nil } +// ActionsListRepoSecretsParams is parameters of actions/list-repo-secrets operation. type ActionsListRepoSecretsParams struct { Owner string Repo string @@ -5202,6 +5253,7 @@ func decodeActionsListRepoSecretsParams(args [2]string, r *http.Request) (params return params, nil } +// ActionsListRepoWorkflowsParams is parameters of actions/list-repo-workflows operation. type ActionsListRepoWorkflowsParams struct { Owner string Repo string @@ -5368,6 +5420,7 @@ func decodeActionsListRepoWorkflowsParams(args [2]string, r *http.Request) (para return params, nil } +// ActionsListRunnerApplicationsForOrgParams is parameters of actions/list-runner-applications-for-org operation. type ActionsListRunnerApplicationsForOrgParams struct { Org string } @@ -5412,6 +5465,7 @@ func decodeActionsListRunnerApplicationsForOrgParams(args [1]string, r *http.Req return params, nil } +// ActionsListRunnerApplicationsForRepoParams is parameters of actions/list-runner-applications-for-repo operation. type ActionsListRunnerApplicationsForRepoParams struct { Owner string Repo string @@ -5489,6 +5543,7 @@ func decodeActionsListRunnerApplicationsForRepoParams(args [2]string, r *http.Re return params, nil } +// ActionsListSelectedReposForOrgSecretParams is parameters of actions/list-selected-repos-for-org-secret operation. type ActionsListSelectedReposForOrgSecretParams struct { Org string // Secret_name parameter. @@ -5656,6 +5711,7 @@ func decodeActionsListSelectedReposForOrgSecretParams(args [2]string, r *http.Re return params, nil } +// ActionsListSelectedRepositoriesEnabledGithubActionsOrganizationParams is parameters of actions/list-selected-repositories-enabled-github-actions-organization operation. type ActionsListSelectedRepositoriesEnabledGithubActionsOrganizationParams struct { Org string // Results per page (max 100). @@ -5789,6 +5845,7 @@ func decodeActionsListSelectedRepositoriesEnabledGithubActionsOrganizationParams return params, nil } +// ActionsListSelfHostedRunnerGroupsForOrgParams is parameters of actions/list-self-hosted-runner-groups-for-org operation. type ActionsListSelfHostedRunnerGroupsForOrgParams struct { Org string // Results per page (max 100). @@ -5922,6 +5979,7 @@ func decodeActionsListSelfHostedRunnerGroupsForOrgParams(args [1]string, r *http return params, nil } +// ActionsListSelfHostedRunnersForOrgParams is parameters of actions/list-self-hosted-runners-for-org operation. type ActionsListSelfHostedRunnersForOrgParams struct { Org string // Results per page (max 100). @@ -6055,6 +6113,7 @@ func decodeActionsListSelfHostedRunnersForOrgParams(args [1]string, r *http.Requ return params, nil } +// ActionsListSelfHostedRunnersForRepoParams is parameters of actions/list-self-hosted-runners-for-repo operation. type ActionsListSelfHostedRunnersForRepoParams struct { Owner string Repo string @@ -6221,6 +6280,7 @@ func decodeActionsListSelfHostedRunnersForRepoParams(args [2]string, r *http.Req return params, nil } +// ActionsListSelfHostedRunnersInGroupForOrgParams is parameters of actions/list-self-hosted-runners-in-group-for-org operation. type ActionsListSelfHostedRunnersInGroupForOrgParams struct { Org string // Unique identifier of the self-hosted runner group. @@ -6388,6 +6448,7 @@ func decodeActionsListSelfHostedRunnersInGroupForOrgParams(args [2]string, r *ht return params, nil } +// ActionsListWorkflowRunArtifactsParams is parameters of actions/list-workflow-run-artifacts operation. type ActionsListWorkflowRunArtifactsParams struct { Owner string Repo string @@ -6588,6 +6649,7 @@ func decodeActionsListWorkflowRunArtifactsParams(args [3]string, r *http.Request return params, nil } +// ActionsListWorkflowRunsForRepoParams is parameters of actions/list-workflow-runs-for-repo operation. type ActionsListWorkflowRunsForRepoParams struct { Owner string Repo string @@ -6969,6 +7031,7 @@ func decodeActionsListWorkflowRunsForRepoParams(args [2]string, r *http.Request) return params, nil } +// ActionsReRunWorkflowParams is parameters of actions/re-run-workflow operation. type ActionsReRunWorkflowParams struct { Owner string Repo string @@ -7080,6 +7143,7 @@ func decodeActionsReRunWorkflowParams(args [3]string, r *http.Request) (params A return params, nil } +// ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgParams is parameters of actions/remove-repo-access-to-self-hosted-runner-group-in-org operation. type ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgParams struct { Org string // Unique identifier of the self-hosted runner group. @@ -7191,6 +7255,7 @@ func decodeActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgParams(args [3]str return params, nil } +// ActionsRemoveSelectedRepoFromOrgSecretParams is parameters of actions/remove-selected-repo-from-org-secret operation. type ActionsRemoveSelectedRepoFromOrgSecretParams struct { Org string // Secret_name parameter. @@ -7302,6 +7367,7 @@ func decodeActionsRemoveSelectedRepoFromOrgSecretParams(args [3]string, r *http. return params, nil } +// ActionsRemoveSelfHostedRunnerFromGroupForOrgParams is parameters of actions/remove-self-hosted-runner-from-group-for-org operation. type ActionsRemoveSelfHostedRunnerFromGroupForOrgParams struct { Org string // Unique identifier of the self-hosted runner group. @@ -7414,6 +7480,7 @@ func decodeActionsRemoveSelfHostedRunnerFromGroupForOrgParams(args [3]string, r return params, nil } +// ActionsRetryWorkflowParams is parameters of actions/retry-workflow operation. type ActionsRetryWorkflowParams struct { Owner string Repo string @@ -7525,6 +7592,7 @@ func decodeActionsRetryWorkflowParams(args [3]string, r *http.Request) (params A return params, nil } +// ActionsReviewPendingDeploymentsForRunParams is parameters of actions/review-pending-deployments-for-run operation. type ActionsReviewPendingDeploymentsForRunParams struct { Owner string Repo string @@ -7636,6 +7704,7 @@ func decodeActionsReviewPendingDeploymentsForRunParams(args [3]string, r *http.R return params, nil } +// ActionsSetAllowedActionsOrganizationParams is parameters of actions/set-allowed-actions-organization operation. type ActionsSetAllowedActionsOrganizationParams struct { Org string } @@ -7680,6 +7749,7 @@ func decodeActionsSetAllowedActionsOrganizationParams(args [1]string, r *http.Re return params, nil } +// ActionsSetAllowedActionsRepositoryParams is parameters of actions/set-allowed-actions-repository operation. type ActionsSetAllowedActionsRepositoryParams struct { Owner string Repo string @@ -7757,6 +7827,7 @@ func decodeActionsSetAllowedActionsRepositoryParams(args [2]string, r *http.Requ return params, nil } +// ActionsSetGithubActionsPermissionsOrganizationParams is parameters of actions/set-github-actions-permissions-organization operation. type ActionsSetGithubActionsPermissionsOrganizationParams struct { Org string } @@ -7801,6 +7872,7 @@ func decodeActionsSetGithubActionsPermissionsOrganizationParams(args [1]string, return params, nil } +// ActionsSetGithubActionsPermissionsRepositoryParams is parameters of actions/set-github-actions-permissions-repository operation. type ActionsSetGithubActionsPermissionsRepositoryParams struct { Owner string Repo string @@ -7878,6 +7950,7 @@ func decodeActionsSetGithubActionsPermissionsRepositoryParams(args [2]string, r return params, nil } +// ActionsSetRepoAccessToSelfHostedRunnerGroupInOrgParams is parameters of actions/set-repo-access-to-self-hosted-runner-group-in-org operation. type ActionsSetRepoAccessToSelfHostedRunnerGroupInOrgParams struct { Org string // Unique identifier of the self-hosted runner group. @@ -7956,6 +8029,7 @@ func decodeActionsSetRepoAccessToSelfHostedRunnerGroupInOrgParams(args [2]string return params, nil } +// ActionsSetSelectedReposForOrgSecretParams is parameters of actions/set-selected-repos-for-org-secret operation. type ActionsSetSelectedReposForOrgSecretParams struct { Org string // Secret_name parameter. @@ -8034,6 +8108,7 @@ func decodeActionsSetSelectedReposForOrgSecretParams(args [2]string, r *http.Req return params, nil } +// ActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationParams is parameters of actions/set-selected-repositories-enabled-github-actions-organization operation. type ActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationParams struct { Org string } @@ -8078,6 +8153,7 @@ func decodeActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationParams( return params, nil } +// ActionsSetSelfHostedRunnersInGroupForOrgParams is parameters of actions/set-self-hosted-runners-in-group-for-org operation. type ActionsSetSelfHostedRunnersInGroupForOrgParams struct { Org string // Unique identifier of the self-hosted runner group. @@ -8156,6 +8232,7 @@ func decodeActionsSetSelfHostedRunnersInGroupForOrgParams(args [2]string, r *htt return params, nil } +// ActionsUpdateSelfHostedRunnerGroupForOrgParams is parameters of actions/update-self-hosted-runner-group-for-org operation. type ActionsUpdateSelfHostedRunnerGroupForOrgParams struct { Org string // Unique identifier of the self-hosted runner group. @@ -8234,6 +8311,7 @@ func decodeActionsUpdateSelfHostedRunnerGroupForOrgParams(args [2]string, r *htt return params, nil } +// ActivityCheckRepoIsStarredByAuthenticatedUserParams is parameters of activity/check-repo-is-starred-by-authenticated-user operation. type ActivityCheckRepoIsStarredByAuthenticatedUserParams struct { Owner string Repo string @@ -8311,6 +8389,7 @@ func decodeActivityCheckRepoIsStarredByAuthenticatedUserParams(args [2]string, r return params, nil } +// ActivityDeleteRepoSubscriptionParams is parameters of activity/delete-repo-subscription operation. type ActivityDeleteRepoSubscriptionParams struct { Owner string Repo string @@ -8388,6 +8467,7 @@ func decodeActivityDeleteRepoSubscriptionParams(args [2]string, r *http.Request) return params, nil } +// ActivityDeleteThreadSubscriptionParams is parameters of activity/delete-thread-subscription operation. type ActivityDeleteThreadSubscriptionParams struct { // Thread_id parameter. ThreadID int @@ -8433,6 +8513,7 @@ func decodeActivityDeleteThreadSubscriptionParams(args [1]string, r *http.Reques return params, nil } +// ActivityGetRepoSubscriptionParams is parameters of activity/get-repo-subscription operation. type ActivityGetRepoSubscriptionParams struct { Owner string Repo string @@ -8510,6 +8591,7 @@ func decodeActivityGetRepoSubscriptionParams(args [2]string, r *http.Request) (p return params, nil } +// ActivityGetThreadParams is parameters of activity/get-thread operation. type ActivityGetThreadParams struct { // Thread_id parameter. ThreadID int @@ -8555,6 +8637,7 @@ func decodeActivityGetThreadParams(args [1]string, r *http.Request) (params Acti return params, nil } +// ActivityGetThreadSubscriptionForAuthenticatedUserParams is parameters of activity/get-thread-subscription-for-authenticated-user operation. type ActivityGetThreadSubscriptionForAuthenticatedUserParams struct { // Thread_id parameter. ThreadID int @@ -8600,6 +8683,7 @@ func decodeActivityGetThreadSubscriptionForAuthenticatedUserParams(args [1]strin return params, nil } +// ActivityListEventsForAuthenticatedUserParams is parameters of activity/list-events-for-authenticated-user operation. type ActivityListEventsForAuthenticatedUserParams struct { Username string // Results per page (max 100). @@ -8733,6 +8817,7 @@ func decodeActivityListEventsForAuthenticatedUserParams(args [1]string, r *http. return params, nil } +// ActivityListNotificationsForAuthenticatedUserParams is parameters of activity/list-notifications-for-authenticated-user operation. type ActivityListNotificationsForAuthenticatedUserParams struct { // If `true`, show notifications marked as read. All OptBool @@ -9001,6 +9086,7 @@ func decodeActivityListNotificationsForAuthenticatedUserParams(args [0]string, r return params, nil } +// ActivityListOrgEventsForAuthenticatedUserParams is parameters of activity/list-org-events-for-authenticated-user operation. type ActivityListOrgEventsForAuthenticatedUserParams struct { Username string Org string @@ -9167,6 +9253,7 @@ func decodeActivityListOrgEventsForAuthenticatedUserParams(args [2]string, r *ht return params, nil } +// ActivityListPublicEventsParams is parameters of activity/list-public-events operation. type ActivityListPublicEventsParams struct { // Results per page (max 100). PerPage OptInt @@ -9267,6 +9354,7 @@ func decodeActivityListPublicEventsParams(args [0]string, r *http.Request) (para return params, nil } +// ActivityListPublicEventsForRepoNetworkParams is parameters of activity/list-public-events-for-repo-network operation. type ActivityListPublicEventsForRepoNetworkParams struct { Owner string Repo string @@ -9433,6 +9521,7 @@ func decodeActivityListPublicEventsForRepoNetworkParams(args [2]string, r *http. return params, nil } +// ActivityListPublicEventsForUserParams is parameters of activity/list-public-events-for-user operation. type ActivityListPublicEventsForUserParams struct { Username string // Results per page (max 100). @@ -9566,6 +9655,7 @@ func decodeActivityListPublicEventsForUserParams(args [1]string, r *http.Request return params, nil } +// ActivityListPublicOrgEventsParams is parameters of activity/list-public-org-events operation. type ActivityListPublicOrgEventsParams struct { Org string // Results per page (max 100). @@ -9699,6 +9789,7 @@ func decodeActivityListPublicOrgEventsParams(args [1]string, r *http.Request) (p return params, nil } +// ActivityListReceivedEventsForUserParams is parameters of activity/list-received-events-for-user operation. type ActivityListReceivedEventsForUserParams struct { Username string // Results per page (max 100). @@ -9832,6 +9923,7 @@ func decodeActivityListReceivedEventsForUserParams(args [1]string, r *http.Reque return params, nil } +// ActivityListReceivedPublicEventsForUserParams is parameters of activity/list-received-public-events-for-user operation. type ActivityListReceivedPublicEventsForUserParams struct { Username string // Results per page (max 100). @@ -9965,6 +10057,7 @@ func decodeActivityListReceivedPublicEventsForUserParams(args [1]string, r *http return params, nil } +// ActivityListRepoEventsParams is parameters of activity/list-repo-events operation. type ActivityListRepoEventsParams struct { Owner string Repo string @@ -10131,6 +10224,7 @@ func decodeActivityListRepoEventsParams(args [2]string, r *http.Request) (params return params, nil } +// ActivityListRepoNotificationsForAuthenticatedUserParams is parameters of activity/list-repo-notifications-for-authenticated-user operation. type ActivityListRepoNotificationsForAuthenticatedUserParams struct { Owner string Repo string @@ -10465,6 +10559,7 @@ func decodeActivityListRepoNotificationsForAuthenticatedUserParams(args [2]strin return params, nil } +// ActivityListReposStarredByAuthenticatedUserParams is parameters of activity/list-repos-starred-by-authenticated-user operation. type ActivityListReposStarredByAuthenticatedUserParams struct { // One of `created` (when the repository was starred) or `updated` (when it was last pushed to). Sort OptActivityListReposStarredByAuthenticatedUserSort @@ -10683,6 +10778,7 @@ func decodeActivityListReposStarredByAuthenticatedUserParams(args [0]string, r * return params, nil } +// ActivityListReposWatchedByUserParams is parameters of activity/list-repos-watched-by-user operation. type ActivityListReposWatchedByUserParams struct { Username string // Results per page (max 100). @@ -10816,6 +10912,7 @@ func decodeActivityListReposWatchedByUserParams(args [1]string, r *http.Request) return params, nil } +// ActivityListWatchedReposForAuthenticatedUserParams is parameters of activity/list-watched-repos-for-authenticated-user operation. type ActivityListWatchedReposForAuthenticatedUserParams struct { // Results per page (max 100). PerPage OptInt @@ -10916,6 +11013,7 @@ func decodeActivityListWatchedReposForAuthenticatedUserParams(args [0]string, r return params, nil } +// ActivityListWatchersForRepoParams is parameters of activity/list-watchers-for-repo operation. type ActivityListWatchersForRepoParams struct { Owner string Repo string @@ -11082,6 +11180,7 @@ func decodeActivityListWatchersForRepoParams(args [2]string, r *http.Request) (p return params, nil } +// ActivityMarkRepoNotificationsAsReadParams is parameters of activity/mark-repo-notifications-as-read operation. type ActivityMarkRepoNotificationsAsReadParams struct { Owner string Repo string @@ -11159,6 +11258,7 @@ func decodeActivityMarkRepoNotificationsAsReadParams(args [2]string, r *http.Req return params, nil } +// ActivityMarkThreadAsReadParams is parameters of activity/mark-thread-as-read operation. type ActivityMarkThreadAsReadParams struct { // Thread_id parameter. ThreadID int @@ -11204,6 +11304,7 @@ func decodeActivityMarkThreadAsReadParams(args [1]string, r *http.Request) (para return params, nil } +// ActivitySetRepoSubscriptionParams is parameters of activity/set-repo-subscription operation. type ActivitySetRepoSubscriptionParams struct { Owner string Repo string @@ -11281,6 +11382,7 @@ func decodeActivitySetRepoSubscriptionParams(args [2]string, r *http.Request) (p return params, nil } +// ActivitySetThreadSubscriptionParams is parameters of activity/set-thread-subscription operation. type ActivitySetThreadSubscriptionParams struct { // Thread_id parameter. ThreadID int @@ -11326,6 +11428,7 @@ func decodeActivitySetThreadSubscriptionParams(args [1]string, r *http.Request) return params, nil } +// ActivityStarRepoForAuthenticatedUserParams is parameters of activity/star-repo-for-authenticated-user operation. type ActivityStarRepoForAuthenticatedUserParams struct { Owner string Repo string @@ -11403,6 +11506,7 @@ func decodeActivityStarRepoForAuthenticatedUserParams(args [2]string, r *http.Re return params, nil } +// ActivityUnstarRepoForAuthenticatedUserParams is parameters of activity/unstar-repo-for-authenticated-user operation. type ActivityUnstarRepoForAuthenticatedUserParams struct { Owner string Repo string @@ -11480,6 +11584,7 @@ func decodeActivityUnstarRepoForAuthenticatedUserParams(args [2]string, r *http. return params, nil } +// AppsAddRepoToInstallationParams is parameters of apps/add-repo-to-installation operation. type AppsAddRepoToInstallationParams struct { // Installation_id parameter. InstallationID int @@ -11558,6 +11663,7 @@ func decodeAppsAddRepoToInstallationParams(args [2]string, r *http.Request) (par return params, nil } +// AppsCheckTokenParams is parameters of apps/check-token operation. type AppsCheckTokenParams struct { // The client ID of your GitHub app. ClientID string @@ -11603,6 +11709,7 @@ func decodeAppsCheckTokenParams(args [1]string, r *http.Request) (params AppsChe return params, nil } +// AppsCreateContentAttachmentParams is parameters of apps/create-content-attachment operation. type AppsCreateContentAttachmentParams struct { // The owner of the repository. Determined from the `repository` `full_name` of the // `content_reference` event. @@ -11718,6 +11825,7 @@ func decodeAppsCreateContentAttachmentParams(args [3]string, r *http.Request) (p return params, nil } +// AppsCreateFromManifestParams is parameters of apps/create-from-manifest operation. type AppsCreateFromManifestParams struct { Code string } @@ -11762,6 +11870,7 @@ func decodeAppsCreateFromManifestParams(args [1]string, r *http.Request) (params return params, nil } +// AppsCreateInstallationAccessTokenParams is parameters of apps/create-installation-access-token operation. type AppsCreateInstallationAccessTokenParams struct { // Installation_id parameter. InstallationID int @@ -11807,6 +11916,7 @@ func decodeAppsCreateInstallationAccessTokenParams(args [1]string, r *http.Reque return params, nil } +// AppsDeleteAuthorizationParams is parameters of apps/delete-authorization operation. type AppsDeleteAuthorizationParams struct { // The client ID of your GitHub app. ClientID string @@ -11852,6 +11962,7 @@ func decodeAppsDeleteAuthorizationParams(args [1]string, r *http.Request) (param return params, nil } +// AppsDeleteInstallationParams is parameters of apps/delete-installation operation. type AppsDeleteInstallationParams struct { // Installation_id parameter. InstallationID int @@ -11897,6 +12008,7 @@ func decodeAppsDeleteInstallationParams(args [1]string, r *http.Request) (params return params, nil } +// AppsDeleteTokenParams is parameters of apps/delete-token operation. type AppsDeleteTokenParams struct { // The client ID of your GitHub app. ClientID string @@ -11942,6 +12054,7 @@ func decodeAppsDeleteTokenParams(args [1]string, r *http.Request) (params AppsDe return params, nil } +// AppsGetBySlugParams is parameters of apps/get-by-slug operation. type AppsGetBySlugParams struct { AppSlug string } @@ -11986,6 +12099,7 @@ func decodeAppsGetBySlugParams(args [1]string, r *http.Request) (params AppsGetB return params, nil } +// AppsGetSubscriptionPlanForAccountParams is parameters of apps/get-subscription-plan-for-account operation. type AppsGetSubscriptionPlanForAccountParams struct { // Account_id parameter. AccountID int @@ -12031,6 +12145,7 @@ func decodeAppsGetSubscriptionPlanForAccountParams(args [1]string, r *http.Reque return params, nil } +// AppsGetSubscriptionPlanForAccountStubbedParams is parameters of apps/get-subscription-plan-for-account-stubbed operation. type AppsGetSubscriptionPlanForAccountStubbedParams struct { // Account_id parameter. AccountID int @@ -12076,6 +12191,7 @@ func decodeAppsGetSubscriptionPlanForAccountStubbedParams(args [1]string, r *htt return params, nil } +// AppsGetWebhookDeliveryParams is parameters of apps/get-webhook-delivery operation. type AppsGetWebhookDeliveryParams struct { DeliveryID int } @@ -12120,6 +12236,7 @@ func decodeAppsGetWebhookDeliveryParams(args [1]string, r *http.Request) (params return params, nil } +// AppsListAccountsForPlanParams is parameters of apps/list-accounts-for-plan operation. type AppsListAccountsForPlanParams struct { // Plan_id parameter. PlanID int @@ -12368,6 +12485,7 @@ func decodeAppsListAccountsForPlanParams(args [1]string, r *http.Request) (param return params, nil } +// AppsListAccountsForPlanStubbedParams is parameters of apps/list-accounts-for-plan-stubbed operation. type AppsListAccountsForPlanStubbedParams struct { // Plan_id parameter. PlanID int @@ -12616,6 +12734,7 @@ func decodeAppsListAccountsForPlanStubbedParams(args [1]string, r *http.Request) return params, nil } +// AppsListInstallationReposForAuthenticatedUserParams is parameters of apps/list-installation-repos-for-authenticated-user operation. type AppsListInstallationReposForAuthenticatedUserParams struct { // Installation_id parameter. InstallationID int @@ -12750,6 +12869,7 @@ func decodeAppsListInstallationReposForAuthenticatedUserParams(args [1]string, r return params, nil } +// AppsListPlansParams is parameters of apps/list-plans operation. type AppsListPlansParams struct { // Results per page (max 100). PerPage OptInt @@ -12850,6 +12970,7 @@ func decodeAppsListPlansParams(args [0]string, r *http.Request) (params AppsList return params, nil } +// AppsListPlansStubbedParams is parameters of apps/list-plans-stubbed operation. type AppsListPlansStubbedParams struct { // Results per page (max 100). PerPage OptInt @@ -12950,6 +13071,7 @@ func decodeAppsListPlansStubbedParams(args [0]string, r *http.Request) (params A return params, nil } +// AppsListReposAccessibleToInstallationParams is parameters of apps/list-repos-accessible-to-installation operation. type AppsListReposAccessibleToInstallationParams struct { // Results per page (max 100). PerPage OptInt @@ -13050,6 +13172,7 @@ func decodeAppsListReposAccessibleToInstallationParams(args [0]string, r *http.R return params, nil } +// AppsListSubscriptionsForAuthenticatedUserParams is parameters of apps/list-subscriptions-for-authenticated-user operation. type AppsListSubscriptionsForAuthenticatedUserParams struct { // Results per page (max 100). PerPage OptInt @@ -13150,6 +13273,7 @@ func decodeAppsListSubscriptionsForAuthenticatedUserParams(args [0]string, r *ht return params, nil } +// AppsListSubscriptionsForAuthenticatedUserStubbedParams is parameters of apps/list-subscriptions-for-authenticated-user-stubbed operation. type AppsListSubscriptionsForAuthenticatedUserStubbedParams struct { // Results per page (max 100). PerPage OptInt @@ -13250,6 +13374,7 @@ func decodeAppsListSubscriptionsForAuthenticatedUserStubbedParams(args [0]string return params, nil } +// AppsListWebhookDeliveriesParams is parameters of apps/list-webhook-deliveries operation. type AppsListWebhookDeliveriesParams struct { // Results per page (max 100). PerPage OptInt @@ -13346,6 +13471,7 @@ func decodeAppsListWebhookDeliveriesParams(args [0]string, r *http.Request) (par return params, nil } +// AppsRedeliverWebhookDeliveryParams is parameters of apps/redeliver-webhook-delivery operation. type AppsRedeliverWebhookDeliveryParams struct { DeliveryID int } @@ -13390,6 +13516,7 @@ func decodeAppsRedeliverWebhookDeliveryParams(args [1]string, r *http.Request) ( return params, nil } +// AppsRemoveRepoFromInstallationParams is parameters of apps/remove-repo-from-installation operation. type AppsRemoveRepoFromInstallationParams struct { // Installation_id parameter. InstallationID int @@ -13468,6 +13595,7 @@ func decodeAppsRemoveRepoFromInstallationParams(args [2]string, r *http.Request) return params, nil } +// AppsResetTokenParams is parameters of apps/reset-token operation. type AppsResetTokenParams struct { // The client ID of your GitHub app. ClientID string @@ -13513,6 +13641,7 @@ func decodeAppsResetTokenParams(args [1]string, r *http.Request) (params AppsRes return params, nil } +// AppsScopeTokenParams is parameters of apps/scope-token operation. type AppsScopeTokenParams struct { // The client ID of your GitHub app. ClientID string @@ -13558,6 +13687,7 @@ func decodeAppsScopeTokenParams(args [1]string, r *http.Request) (params AppsSco return params, nil } +// AppsSuspendInstallationParams is parameters of apps/suspend-installation operation. type AppsSuspendInstallationParams struct { // Installation_id parameter. InstallationID int @@ -13603,6 +13733,7 @@ func decodeAppsSuspendInstallationParams(args [1]string, r *http.Request) (param return params, nil } +// AppsUnsuspendInstallationParams is parameters of apps/unsuspend-installation operation. type AppsUnsuspendInstallationParams struct { // Installation_id parameter. InstallationID int @@ -13648,6 +13779,7 @@ func decodeAppsUnsuspendInstallationParams(args [1]string, r *http.Request) (par return params, nil } +// BillingGetGithubActionsBillingGheParams is parameters of billing/get-github-actions-billing-ghe operation. type BillingGetGithubActionsBillingGheParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -13693,6 +13825,7 @@ func decodeBillingGetGithubActionsBillingGheParams(args [1]string, r *http.Reque return params, nil } +// BillingGetGithubActionsBillingOrgParams is parameters of billing/get-github-actions-billing-org operation. type BillingGetGithubActionsBillingOrgParams struct { Org string } @@ -13737,6 +13870,7 @@ func decodeBillingGetGithubActionsBillingOrgParams(args [1]string, r *http.Reque return params, nil } +// BillingGetGithubActionsBillingUserParams is parameters of billing/get-github-actions-billing-user operation. type BillingGetGithubActionsBillingUserParams struct { Username string } @@ -13781,6 +13915,7 @@ func decodeBillingGetGithubActionsBillingUserParams(args [1]string, r *http.Requ return params, nil } +// BillingGetGithubPackagesBillingGheParams is parameters of billing/get-github-packages-billing-ghe operation. type BillingGetGithubPackagesBillingGheParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -13826,6 +13961,7 @@ func decodeBillingGetGithubPackagesBillingGheParams(args [1]string, r *http.Requ return params, nil } +// BillingGetGithubPackagesBillingOrgParams is parameters of billing/get-github-packages-billing-org operation. type BillingGetGithubPackagesBillingOrgParams struct { Org string } @@ -13870,6 +14006,7 @@ func decodeBillingGetGithubPackagesBillingOrgParams(args [1]string, r *http.Requ return params, nil } +// BillingGetGithubPackagesBillingUserParams is parameters of billing/get-github-packages-billing-user operation. type BillingGetGithubPackagesBillingUserParams struct { Username string } @@ -13914,6 +14051,7 @@ func decodeBillingGetGithubPackagesBillingUserParams(args [1]string, r *http.Req return params, nil } +// BillingGetSharedStorageBillingGheParams is parameters of billing/get-shared-storage-billing-ghe operation. type BillingGetSharedStorageBillingGheParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -13959,6 +14097,7 @@ func decodeBillingGetSharedStorageBillingGheParams(args [1]string, r *http.Reque return params, nil } +// BillingGetSharedStorageBillingOrgParams is parameters of billing/get-shared-storage-billing-org operation. type BillingGetSharedStorageBillingOrgParams struct { Org string } @@ -14003,6 +14142,7 @@ func decodeBillingGetSharedStorageBillingOrgParams(args [1]string, r *http.Reque return params, nil } +// BillingGetSharedStorageBillingUserParams is parameters of billing/get-shared-storage-billing-user operation. type BillingGetSharedStorageBillingUserParams struct { Username string } @@ -14047,6 +14187,7 @@ func decodeBillingGetSharedStorageBillingUserParams(args [1]string, r *http.Requ return params, nil } +// ChecksCreateSuiteParams is parameters of checks/create-suite operation. type ChecksCreateSuiteParams struct { Owner string Repo string @@ -14124,6 +14265,7 @@ func decodeChecksCreateSuiteParams(args [2]string, r *http.Request) (params Chec return params, nil } +// ChecksGetParams is parameters of checks/get operation. type ChecksGetParams struct { Owner string Repo string @@ -14235,6 +14377,7 @@ func decodeChecksGetParams(args [3]string, r *http.Request) (params ChecksGetPar return params, nil } +// ChecksGetSuiteParams is parameters of checks/get-suite operation. type ChecksGetSuiteParams struct { Owner string Repo string @@ -14346,6 +14489,7 @@ func decodeChecksGetSuiteParams(args [3]string, r *http.Request) (params ChecksG return params, nil } +// ChecksListAnnotationsParams is parameters of checks/list-annotations operation. type ChecksListAnnotationsParams struct { Owner string Repo string @@ -14546,6 +14690,7 @@ func decodeChecksListAnnotationsParams(args [3]string, r *http.Request) (params return params, nil } +// ChecksListForRefParams is parameters of checks/list-for-ref operation. type ChecksListForRefParams struct { Owner string Repo string @@ -14938,6 +15083,7 @@ func decodeChecksListForRefParams(args [3]string, r *http.Request) (params Check return params, nil } +// ChecksListForSuiteParams is parameters of checks/list-for-suite operation. type ChecksListForSuiteParams struct { Owner string Repo string @@ -15292,6 +15438,7 @@ func decodeChecksListForSuiteParams(args [3]string, r *http.Request) (params Che return params, nil } +// ChecksListSuitesForRefParams is parameters of checks/list-suites-for-ref operation. type ChecksListSuitesForRefParams struct { Owner string Repo string @@ -15570,6 +15717,7 @@ func decodeChecksListSuitesForRefParams(args [3]string, r *http.Request) (params return params, nil } +// ChecksRerequestSuiteParams is parameters of checks/rerequest-suite operation. type ChecksRerequestSuiteParams struct { Owner string Repo string @@ -15681,6 +15829,7 @@ func decodeChecksRerequestSuiteParams(args [3]string, r *http.Request) (params C return params, nil } +// ChecksSetSuitesPreferencesParams is parameters of checks/set-suites-preferences operation. type ChecksSetSuitesPreferencesParams struct { Owner string Repo string @@ -15758,6 +15907,7 @@ func decodeChecksSetSuitesPreferencesParams(args [2]string, r *http.Request) (pa return params, nil } +// CodeScanningDeleteAnalysisParams is parameters of code-scanning/delete-analysis operation. type CodeScanningDeleteAnalysisParams struct { Owner string Repo string @@ -15913,6 +16063,7 @@ func decodeCodeScanningDeleteAnalysisParams(args [3]string, r *http.Request) (pa return params, nil } +// CodeScanningGetAlertParams is parameters of code-scanning/get-alert operation. type CodeScanningGetAlertParams struct { Owner string Repo string @@ -16033,6 +16184,7 @@ func decodeCodeScanningGetAlertParams(args [3]string, r *http.Request) (params C return params, nil } +// CodeScanningGetAnalysisParams is parameters of code-scanning/get-analysis operation. type CodeScanningGetAnalysisParams struct { Owner string Repo string @@ -16145,6 +16297,7 @@ func decodeCodeScanningGetAnalysisParams(args [3]string, r *http.Request) (param return params, nil } +// CodeScanningGetSarifParams is parameters of code-scanning/get-sarif operation. type CodeScanningGetSarifParams struct { Owner string Repo string @@ -16256,6 +16409,7 @@ func decodeCodeScanningGetSarifParams(args [3]string, r *http.Request) (params C return params, nil } +// CodeScanningListAlertInstancesParams is parameters of code-scanning/list-alert-instances operation. type CodeScanningListAlertInstancesParams struct { Owner string Repo string @@ -16513,6 +16667,7 @@ func decodeCodeScanningListAlertInstancesParams(args [3]string, r *http.Request) return params, nil } +// CodeScanningListAlertsForRepoParams is parameters of code-scanning/list-alerts-for-repo operation. type CodeScanningListAlertsForRepoParams struct { Owner string Repo string @@ -16876,6 +17031,7 @@ func decodeCodeScanningListAlertsForRepoParams(args [2]string, r *http.Request) return params, nil } +// CodeScanningListRecentAnalysesParams is parameters of code-scanning/list-recent-analyses operation. type CodeScanningListRecentAnalysesParams struct { Owner string Repo string @@ -17231,6 +17387,7 @@ func decodeCodeScanningListRecentAnalysesParams(args [2]string, r *http.Request) return params, nil } +// CodeScanningUpdateAlertParams is parameters of code-scanning/update-alert operation. type CodeScanningUpdateAlertParams struct { Owner string Repo string @@ -17351,6 +17508,7 @@ func decodeCodeScanningUpdateAlertParams(args [3]string, r *http.Request) (param return params, nil } +// CodeScanningUploadSarifParams is parameters of code-scanning/upload-sarif operation. type CodeScanningUploadSarifParams struct { Owner string Repo string @@ -17428,6 +17586,7 @@ func decodeCodeScanningUploadSarifParams(args [2]string, r *http.Request) (param return params, nil } +// CodesOfConductGetConductCodeParams is parameters of codes-of-conduct/get-conduct-code operation. type CodesOfConductGetConductCodeParams struct { Key string } @@ -17472,6 +17631,7 @@ func decodeCodesOfConductGetConductCodeParams(args [1]string, r *http.Request) ( return params, nil } +// EnterpriseAdminAddOrgAccessToSelfHostedRunnerGroupInEnterpriseParams is parameters of enterprise-admin/add-org-access-to-self-hosted-runner-group-in-enterprise operation. type EnterpriseAdminAddOrgAccessToSelfHostedRunnerGroupInEnterpriseParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -17585,6 +17745,7 @@ func decodeEnterpriseAdminAddOrgAccessToSelfHostedRunnerGroupInEnterpriseParams( return params, nil } +// EnterpriseAdminAddSelfHostedRunnerToGroupForEnterpriseParams is parameters of enterprise-admin/add-self-hosted-runner-to-group-for-enterprise operation. type EnterpriseAdminAddSelfHostedRunnerToGroupForEnterpriseParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -17698,6 +17859,7 @@ func decodeEnterpriseAdminAddSelfHostedRunnerToGroupForEnterpriseParams(args [3] return params, nil } +// EnterpriseAdminCreateRegistrationTokenForEnterpriseParams is parameters of enterprise-admin/create-registration-token-for-enterprise operation. type EnterpriseAdminCreateRegistrationTokenForEnterpriseParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -17743,6 +17905,7 @@ func decodeEnterpriseAdminCreateRegistrationTokenForEnterpriseParams(args [1]str return params, nil } +// EnterpriseAdminCreateRemoveTokenForEnterpriseParams is parameters of enterprise-admin/create-remove-token-for-enterprise operation. type EnterpriseAdminCreateRemoveTokenForEnterpriseParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -17788,6 +17951,7 @@ func decodeEnterpriseAdminCreateRemoveTokenForEnterpriseParams(args [1]string, r return params, nil } +// EnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseParams is parameters of enterprise-admin/create-self-hosted-runner-group-for-enterprise operation. type EnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -17833,6 +17997,7 @@ func decodeEnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseParams(args [1 return params, nil } +// EnterpriseAdminDeleteScimGroupFromEnterpriseParams is parameters of enterprise-admin/delete-scim-group-from-enterprise operation. type EnterpriseAdminDeleteScimGroupFromEnterpriseParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -17912,6 +18077,7 @@ func decodeEnterpriseAdminDeleteScimGroupFromEnterpriseParams(args [2]string, r return params, nil } +// EnterpriseAdminDeleteSelfHostedRunnerFromEnterpriseParams is parameters of enterprise-admin/delete-self-hosted-runner-from-enterprise operation. type EnterpriseAdminDeleteSelfHostedRunnerFromEnterpriseParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -17991,6 +18157,7 @@ func decodeEnterpriseAdminDeleteSelfHostedRunnerFromEnterpriseParams(args [2]str return params, nil } +// EnterpriseAdminDeleteSelfHostedRunnerGroupFromEnterpriseParams is parameters of enterprise-admin/delete-self-hosted-runner-group-from-enterprise operation. type EnterpriseAdminDeleteSelfHostedRunnerGroupFromEnterpriseParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -18070,6 +18237,7 @@ func decodeEnterpriseAdminDeleteSelfHostedRunnerGroupFromEnterpriseParams(args [ return params, nil } +// EnterpriseAdminDeleteUserFromEnterpriseParams is parameters of enterprise-admin/delete-user-from-enterprise operation. type EnterpriseAdminDeleteUserFromEnterpriseParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -18149,6 +18317,7 @@ func decodeEnterpriseAdminDeleteUserFromEnterpriseParams(args [2]string, r *http return params, nil } +// EnterpriseAdminDisableSelectedOrganizationGithubActionsEnterpriseParams is parameters of enterprise-admin/disable-selected-organization-github-actions-enterprise operation. type EnterpriseAdminDisableSelectedOrganizationGithubActionsEnterpriseParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -18228,6 +18397,7 @@ func decodeEnterpriseAdminDisableSelectedOrganizationGithubActionsEnterprisePara return params, nil } +// EnterpriseAdminEnableSelectedOrganizationGithubActionsEnterpriseParams is parameters of enterprise-admin/enable-selected-organization-github-actions-enterprise operation. type EnterpriseAdminEnableSelectedOrganizationGithubActionsEnterpriseParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -18307,6 +18477,7 @@ func decodeEnterpriseAdminEnableSelectedOrganizationGithubActionsEnterpriseParam return params, nil } +// EnterpriseAdminGetAllowedActionsEnterpriseParams is parameters of enterprise-admin/get-allowed-actions-enterprise operation. type EnterpriseAdminGetAllowedActionsEnterpriseParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -18352,6 +18523,7 @@ func decodeEnterpriseAdminGetAllowedActionsEnterpriseParams(args [1]string, r *h return params, nil } +// EnterpriseAdminGetAuditLogParams is parameters of enterprise-admin/get-audit-log operation. type EnterpriseAdminGetAuditLogParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -18722,6 +18894,7 @@ func decodeEnterpriseAdminGetAuditLogParams(args [1]string, r *http.Request) (pa return params, nil } +// EnterpriseAdminGetGithubActionsPermissionsEnterpriseParams is parameters of enterprise-admin/get-github-actions-permissions-enterprise operation. type EnterpriseAdminGetGithubActionsPermissionsEnterpriseParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -18767,6 +18940,7 @@ func decodeEnterpriseAdminGetGithubActionsPermissionsEnterpriseParams(args [1]st return params, nil } +// EnterpriseAdminGetProvisioningInformationForEnterpriseGroupParams is parameters of enterprise-admin/get-provisioning-information-for-enterprise-group operation. type EnterpriseAdminGetProvisioningInformationForEnterpriseGroupParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -18886,6 +19060,7 @@ func decodeEnterpriseAdminGetProvisioningInformationForEnterpriseGroupParams(arg return params, nil } +// EnterpriseAdminGetProvisioningInformationForEnterpriseUserParams is parameters of enterprise-admin/get-provisioning-information-for-enterprise-user operation. type EnterpriseAdminGetProvisioningInformationForEnterpriseUserParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -18965,6 +19140,7 @@ func decodeEnterpriseAdminGetProvisioningInformationForEnterpriseUserParams(args return params, nil } +// EnterpriseAdminGetSelfHostedRunnerForEnterpriseParams is parameters of enterprise-admin/get-self-hosted-runner-for-enterprise operation. type EnterpriseAdminGetSelfHostedRunnerForEnterpriseParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -19044,6 +19220,7 @@ func decodeEnterpriseAdminGetSelfHostedRunnerForEnterpriseParams(args [2]string, return params, nil } +// EnterpriseAdminGetSelfHostedRunnerGroupForEnterpriseParams is parameters of enterprise-admin/get-self-hosted-runner-group-for-enterprise operation. type EnterpriseAdminGetSelfHostedRunnerGroupForEnterpriseParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -19123,6 +19300,7 @@ func decodeEnterpriseAdminGetSelfHostedRunnerGroupForEnterpriseParams(args [2]st return params, nil } +// EnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterpriseParams is parameters of enterprise-admin/list-org-access-to-self-hosted-runner-group-in-enterprise operation. type EnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterpriseParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -19291,6 +19469,7 @@ func decodeEnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterpriseParams return params, nil } +// EnterpriseAdminListProvisionedGroupsEnterpriseParams is parameters of enterprise-admin/list-provisioned-groups-enterprise operation. type EnterpriseAdminListProvisionedGroupsEnterpriseParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -19493,6 +19672,7 @@ func decodeEnterpriseAdminListProvisionedGroupsEnterpriseParams(args [1]string, return params, nil } +// EnterpriseAdminListProvisionedIdentitiesEnterpriseParams is parameters of enterprise-admin/list-provisioned-identities-enterprise operation. type EnterpriseAdminListProvisionedIdentitiesEnterpriseParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -19656,6 +19836,7 @@ func decodeEnterpriseAdminListProvisionedIdentitiesEnterpriseParams(args [1]stri return params, nil } +// EnterpriseAdminListRunnerApplicationsForEnterpriseParams is parameters of enterprise-admin/list-runner-applications-for-enterprise operation. type EnterpriseAdminListRunnerApplicationsForEnterpriseParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -19701,6 +19882,7 @@ func decodeEnterpriseAdminListRunnerApplicationsForEnterpriseParams(args [1]stri return params, nil } +// EnterpriseAdminListSelectedOrganizationsEnabledGithubActionsEnterpriseParams is parameters of enterprise-admin/list-selected-organizations-enabled-github-actions-enterprise operation. type EnterpriseAdminListSelectedOrganizationsEnabledGithubActionsEnterpriseParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -19835,6 +20017,7 @@ func decodeEnterpriseAdminListSelectedOrganizationsEnabledGithubActionsEnterpris return params, nil } +// EnterpriseAdminListSelfHostedRunnerGroupsForEnterpriseParams is parameters of enterprise-admin/list-self-hosted-runner-groups-for-enterprise operation. type EnterpriseAdminListSelfHostedRunnerGroupsForEnterpriseParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -19969,6 +20152,7 @@ func decodeEnterpriseAdminListSelfHostedRunnerGroupsForEnterpriseParams(args [1] return params, nil } +// EnterpriseAdminListSelfHostedRunnersForEnterpriseParams is parameters of enterprise-admin/list-self-hosted-runners-for-enterprise operation. type EnterpriseAdminListSelfHostedRunnersForEnterpriseParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -20103,6 +20287,7 @@ func decodeEnterpriseAdminListSelfHostedRunnersForEnterpriseParams(args [1]strin return params, nil } +// EnterpriseAdminListSelfHostedRunnersInGroupForEnterpriseParams is parameters of enterprise-admin/list-self-hosted-runners-in-group-for-enterprise operation. type EnterpriseAdminListSelfHostedRunnersInGroupForEnterpriseParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -20271,6 +20456,7 @@ func decodeEnterpriseAdminListSelfHostedRunnersInGroupForEnterpriseParams(args [ return params, nil } +// EnterpriseAdminProvisionAndInviteEnterpriseGroupParams is parameters of enterprise-admin/provision-and-invite-enterprise-group operation. type EnterpriseAdminProvisionAndInviteEnterpriseGroupParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -20316,6 +20502,7 @@ func decodeEnterpriseAdminProvisionAndInviteEnterpriseGroupParams(args [1]string return params, nil } +// EnterpriseAdminProvisionAndInviteEnterpriseUserParams is parameters of enterprise-admin/provision-and-invite-enterprise-user operation. type EnterpriseAdminProvisionAndInviteEnterpriseUserParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -20361,6 +20548,7 @@ func decodeEnterpriseAdminProvisionAndInviteEnterpriseUserParams(args [1]string, return params, nil } +// EnterpriseAdminRemoveOrgAccessToSelfHostedRunnerGroupInEnterpriseParams is parameters of enterprise-admin/remove-org-access-to-self-hosted-runner-group-in-enterprise operation. type EnterpriseAdminRemoveOrgAccessToSelfHostedRunnerGroupInEnterpriseParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -20474,6 +20662,7 @@ func decodeEnterpriseAdminRemoveOrgAccessToSelfHostedRunnerGroupInEnterprisePara return params, nil } +// EnterpriseAdminRemoveSelfHostedRunnerFromGroupForEnterpriseParams is parameters of enterprise-admin/remove-self-hosted-runner-from-group-for-enterprise operation. type EnterpriseAdminRemoveSelfHostedRunnerFromGroupForEnterpriseParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -20587,6 +20776,7 @@ func decodeEnterpriseAdminRemoveSelfHostedRunnerFromGroupForEnterpriseParams(arg return params, nil } +// EnterpriseAdminSetAllowedActionsEnterpriseParams is parameters of enterprise-admin/set-allowed-actions-enterprise operation. type EnterpriseAdminSetAllowedActionsEnterpriseParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -20632,6 +20822,7 @@ func decodeEnterpriseAdminSetAllowedActionsEnterpriseParams(args [1]string, r *h return params, nil } +// EnterpriseAdminSetGithubActionsPermissionsEnterpriseParams is parameters of enterprise-admin/set-github-actions-permissions-enterprise operation. type EnterpriseAdminSetGithubActionsPermissionsEnterpriseParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -20677,6 +20868,7 @@ func decodeEnterpriseAdminSetGithubActionsPermissionsEnterpriseParams(args [1]st return params, nil } +// EnterpriseAdminSetInformationForProvisionedEnterpriseGroupParams is parameters of enterprise-admin/set-information-for-provisioned-enterprise-group operation. type EnterpriseAdminSetInformationForProvisionedEnterpriseGroupParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -20756,6 +20948,7 @@ func decodeEnterpriseAdminSetInformationForProvisionedEnterpriseGroupParams(args return params, nil } +// EnterpriseAdminSetInformationForProvisionedEnterpriseUserParams is parameters of enterprise-admin/set-information-for-provisioned-enterprise-user operation. type EnterpriseAdminSetInformationForProvisionedEnterpriseUserParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -20835,6 +21028,7 @@ func decodeEnterpriseAdminSetInformationForProvisionedEnterpriseUserParams(args return params, nil } +// EnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterpriseParams is parameters of enterprise-admin/set-org-access-to-self-hosted-runner-group-in-enterprise operation. type EnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterpriseParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -20914,6 +21108,7 @@ func decodeEnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterpriseParams( return params, nil } +// EnterpriseAdminSetSelectedOrganizationsEnabledGithubActionsEnterpriseParams is parameters of enterprise-admin/set-selected-organizations-enabled-github-actions-enterprise operation. type EnterpriseAdminSetSelectedOrganizationsEnabledGithubActionsEnterpriseParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -20959,6 +21154,7 @@ func decodeEnterpriseAdminSetSelectedOrganizationsEnabledGithubActionsEnterprise return params, nil } +// EnterpriseAdminSetSelfHostedRunnersInGroupForEnterpriseParams is parameters of enterprise-admin/set-self-hosted-runners-in-group-for-enterprise operation. type EnterpriseAdminSetSelfHostedRunnersInGroupForEnterpriseParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -21038,6 +21234,7 @@ func decodeEnterpriseAdminSetSelfHostedRunnersInGroupForEnterpriseParams(args [2 return params, nil } +// EnterpriseAdminUpdateAttributeForEnterpriseGroupParams is parameters of enterprise-admin/update-attribute-for-enterprise-group operation. type EnterpriseAdminUpdateAttributeForEnterpriseGroupParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -21117,6 +21314,7 @@ func decodeEnterpriseAdminUpdateAttributeForEnterpriseGroupParams(args [2]string return params, nil } +// EnterpriseAdminUpdateAttributeForEnterpriseUserParams is parameters of enterprise-admin/update-attribute-for-enterprise-user operation. type EnterpriseAdminUpdateAttributeForEnterpriseUserParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -21196,6 +21394,7 @@ func decodeEnterpriseAdminUpdateAttributeForEnterpriseUserParams(args [2]string, return params, nil } +// EnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseParams is parameters of enterprise-admin/update-self-hosted-runner-group-for-enterprise operation. type EnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseParams struct { // The slug version of the enterprise name. You can also substitute this value with the enterprise id. Enterprise string @@ -21275,6 +21474,7 @@ func decodeEnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseParams(args [2 return params, nil } +// GistsCheckIsStarredParams is parameters of gists/check-is-starred operation. type GistsCheckIsStarredParams struct { // Gist_id parameter. GistID string @@ -21320,6 +21520,7 @@ func decodeGistsCheckIsStarredParams(args [1]string, r *http.Request) (params Gi return params, nil } +// GistsCreateCommentParams is parameters of gists/create-comment operation. type GistsCreateCommentParams struct { // Gist_id parameter. GistID string @@ -21365,6 +21566,7 @@ func decodeGistsCreateCommentParams(args [1]string, r *http.Request) (params Gis return params, nil } +// GistsDeleteParams is parameters of gists/delete operation. type GistsDeleteParams struct { // Gist_id parameter. GistID string @@ -21410,6 +21612,7 @@ func decodeGistsDeleteParams(args [1]string, r *http.Request) (params GistsDelet return params, nil } +// GistsDeleteCommentParams is parameters of gists/delete-comment operation. type GistsDeleteCommentParams struct { // Gist_id parameter. GistID string @@ -21489,6 +21692,7 @@ func decodeGistsDeleteCommentParams(args [2]string, r *http.Request) (params Gis return params, nil } +// GistsForkParams is parameters of gists/fork operation. type GistsForkParams struct { // Gist_id parameter. GistID string @@ -21534,6 +21738,7 @@ func decodeGistsForkParams(args [1]string, r *http.Request) (params GistsForkPar return params, nil } +// GistsGetParams is parameters of gists/get operation. type GistsGetParams struct { // Gist_id parameter. GistID string @@ -21579,6 +21784,7 @@ func decodeGistsGetParams(args [1]string, r *http.Request) (params GistsGetParam return params, nil } +// GistsGetCommentParams is parameters of gists/get-comment operation. type GistsGetCommentParams struct { // Gist_id parameter. GistID string @@ -21658,6 +21864,7 @@ func decodeGistsGetCommentParams(args [2]string, r *http.Request) (params GistsG return params, nil } +// GistsGetRevisionParams is parameters of gists/get-revision operation. type GistsGetRevisionParams struct { // Gist_id parameter. GistID string @@ -21736,6 +21943,7 @@ func decodeGistsGetRevisionParams(args [2]string, r *http.Request) (params Gists return params, nil } +// GistsListParams is parameters of gists/list operation. type GistsListParams struct { // Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en. // wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. @@ -21876,6 +22084,7 @@ func decodeGistsListParams(args [0]string, r *http.Request) (params GistsListPar return params, nil } +// GistsListCommentsParams is parameters of gists/list-comments operation. type GistsListCommentsParams struct { // Gist_id parameter. GistID string @@ -22010,6 +22219,7 @@ func decodeGistsListCommentsParams(args [1]string, r *http.Request) (params Gist return params, nil } +// GistsListCommitsParams is parameters of gists/list-commits operation. type GistsListCommitsParams struct { // Gist_id parameter. GistID string @@ -22144,6 +22354,7 @@ func decodeGistsListCommitsParams(args [1]string, r *http.Request) (params Gists return params, nil } +// GistsListForUserParams is parameters of gists/list-for-user operation. type GistsListForUserParams struct { Username string // Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en. @@ -22317,6 +22528,7 @@ func decodeGistsListForUserParams(args [1]string, r *http.Request) (params Gists return params, nil } +// GistsListForksParams is parameters of gists/list-forks operation. type GistsListForksParams struct { // Gist_id parameter. GistID string @@ -22451,6 +22663,7 @@ func decodeGistsListForksParams(args [1]string, r *http.Request) (params GistsLi return params, nil } +// GistsListPublicParams is parameters of gists/list-public operation. type GistsListPublicParams struct { // Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en. // wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. @@ -22591,6 +22804,7 @@ func decodeGistsListPublicParams(args [0]string, r *http.Request) (params GistsL return params, nil } +// GistsListStarredParams is parameters of gists/list-starred operation. type GistsListStarredParams struct { // Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en. // wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. @@ -22731,6 +22945,7 @@ func decodeGistsListStarredParams(args [0]string, r *http.Request) (params Gists return params, nil } +// GistsStarParams is parameters of gists/star operation. type GistsStarParams struct { // Gist_id parameter. GistID string @@ -22776,6 +22991,7 @@ func decodeGistsStarParams(args [1]string, r *http.Request) (params GistsStarPar return params, nil } +// GistsUnstarParams is parameters of gists/unstar operation. type GistsUnstarParams struct { // Gist_id parameter. GistID string @@ -22821,6 +23037,7 @@ func decodeGistsUnstarParams(args [1]string, r *http.Request) (params GistsUnsta return params, nil } +// GistsUpdateCommentParams is parameters of gists/update-comment operation. type GistsUpdateCommentParams struct { // Gist_id parameter. GistID string @@ -22900,6 +23117,7 @@ func decodeGistsUpdateCommentParams(args [2]string, r *http.Request) (params Gis return params, nil } +// GitCreateBlobParams is parameters of git/create-blob operation. type GitCreateBlobParams struct { Owner string Repo string @@ -22977,6 +23195,7 @@ func decodeGitCreateBlobParams(args [2]string, r *http.Request) (params GitCreat return params, nil } +// GitCreateCommitParams is parameters of git/create-commit operation. type GitCreateCommitParams struct { Owner string Repo string @@ -23054,6 +23273,7 @@ func decodeGitCreateCommitParams(args [2]string, r *http.Request) (params GitCre return params, nil } +// GitCreateRefParams is parameters of git/create-ref operation. type GitCreateRefParams struct { Owner string Repo string @@ -23131,6 +23351,7 @@ func decodeGitCreateRefParams(args [2]string, r *http.Request) (params GitCreate return params, nil } +// GitCreateTagParams is parameters of git/create-tag operation. type GitCreateTagParams struct { Owner string Repo string @@ -23208,6 +23429,7 @@ func decodeGitCreateTagParams(args [2]string, r *http.Request) (params GitCreate return params, nil } +// GitCreateTreeParams is parameters of git/create-tree operation. type GitCreateTreeParams struct { Owner string Repo string @@ -23285,6 +23507,7 @@ func decodeGitCreateTreeParams(args [2]string, r *http.Request) (params GitCreat return params, nil } +// GitDeleteRefParams is parameters of git/delete-ref operation. type GitDeleteRefParams struct { Owner string Repo string @@ -23396,6 +23619,7 @@ func decodeGitDeleteRefParams(args [3]string, r *http.Request) (params GitDelete return params, nil } +// GitGetBlobParams is parameters of git/get-blob operation. type GitGetBlobParams struct { Owner string Repo string @@ -23506,6 +23730,7 @@ func decodeGitGetBlobParams(args [3]string, r *http.Request) (params GitGetBlobP return params, nil } +// GitGetCommitParams is parameters of git/get-commit operation. type GitGetCommitParams struct { Owner string Repo string @@ -23617,6 +23842,7 @@ func decodeGitGetCommitParams(args [3]string, r *http.Request) (params GitGetCom return params, nil } +// GitGetRefParams is parameters of git/get-ref operation. type GitGetRefParams struct { Owner string Repo string @@ -23728,6 +23954,7 @@ func decodeGitGetRefParams(args [3]string, r *http.Request) (params GitGetRefPar return params, nil } +// GitGetTagParams is parameters of git/get-tag operation. type GitGetTagParams struct { Owner string Repo string @@ -23838,6 +24065,7 @@ func decodeGitGetTagParams(args [3]string, r *http.Request) (params GitGetTagPar return params, nil } +// GitGetTreeParams is parameters of git/get-tree operation. type GitGetTreeParams struct { Owner string Repo string @@ -23991,6 +24219,7 @@ func decodeGitGetTreeParams(args [3]string, r *http.Request) (params GitGetTreeP return params, nil } +// GitListMatchingRefsParams is parameters of git/list-matching-refs operation. type GitListMatchingRefsParams struct { Owner string Repo string @@ -24191,6 +24420,7 @@ func decodeGitListMatchingRefsParams(args [3]string, r *http.Request) (params Gi return params, nil } +// GitUpdateRefParams is parameters of git/update-ref operation. type GitUpdateRefParams struct { Owner string Repo string @@ -24302,6 +24532,7 @@ func decodeGitUpdateRefParams(args [3]string, r *http.Request) (params GitUpdate return params, nil } +// GitignoreGetTemplateParams is parameters of gitignore/get-template operation. type GitignoreGetTemplateParams struct { Name string } @@ -24346,6 +24577,7 @@ func decodeGitignoreGetTemplateParams(args [1]string, r *http.Request) (params G return params, nil } +// InteractionsRemoveRestrictionsForOrgParams is parameters of interactions/remove-restrictions-for-org operation. type InteractionsRemoveRestrictionsForOrgParams struct { Org string } @@ -24390,6 +24622,7 @@ func decodeInteractionsRemoveRestrictionsForOrgParams(args [1]string, r *http.Re return params, nil } +// InteractionsRemoveRestrictionsForRepoParams is parameters of interactions/remove-restrictions-for-repo operation. type InteractionsRemoveRestrictionsForRepoParams struct { Owner string Repo string @@ -24467,6 +24700,7 @@ func decodeInteractionsRemoveRestrictionsForRepoParams(args [2]string, r *http.R return params, nil } +// InteractionsSetRestrictionsForOrgParams is parameters of interactions/set-restrictions-for-org operation. type InteractionsSetRestrictionsForOrgParams struct { Org string } @@ -24511,6 +24745,7 @@ func decodeInteractionsSetRestrictionsForOrgParams(args [1]string, r *http.Reque return params, nil } +// InteractionsSetRestrictionsForRepoParams is parameters of interactions/set-restrictions-for-repo operation. type InteractionsSetRestrictionsForRepoParams struct { Owner string Repo string @@ -24588,6 +24823,7 @@ func decodeInteractionsSetRestrictionsForRepoParams(args [2]string, r *http.Requ return params, nil } +// IssuesAddAssigneesParams is parameters of issues/add-assignees operation. type IssuesAddAssigneesParams struct { Owner string Repo string @@ -24699,6 +24935,7 @@ func decodeIssuesAddAssigneesParams(args [3]string, r *http.Request) (params Iss return params, nil } +// IssuesCheckUserCanBeAssignedParams is parameters of issues/check-user-can-be-assigned operation. type IssuesCheckUserCanBeAssignedParams struct { Owner string Repo string @@ -24809,6 +25046,7 @@ func decodeIssuesCheckUserCanBeAssignedParams(args [3]string, r *http.Request) ( return params, nil } +// IssuesCreateParams is parameters of issues/create operation. type IssuesCreateParams struct { Owner string Repo string @@ -24886,6 +25124,7 @@ func decodeIssuesCreateParams(args [2]string, r *http.Request) (params IssuesCre return params, nil } +// IssuesCreateCommentParams is parameters of issues/create-comment operation. type IssuesCreateCommentParams struct { Owner string Repo string @@ -24997,6 +25236,7 @@ func decodeIssuesCreateCommentParams(args [3]string, r *http.Request) (params Is return params, nil } +// IssuesCreateLabelParams is parameters of issues/create-label operation. type IssuesCreateLabelParams struct { Owner string Repo string @@ -25074,6 +25314,7 @@ func decodeIssuesCreateLabelParams(args [2]string, r *http.Request) (params Issu return params, nil } +// IssuesCreateMilestoneParams is parameters of issues/create-milestone operation. type IssuesCreateMilestoneParams struct { Owner string Repo string @@ -25151,6 +25392,7 @@ func decodeIssuesCreateMilestoneParams(args [2]string, r *http.Request) (params return params, nil } +// IssuesDeleteCommentParams is parameters of issues/delete-comment operation. type IssuesDeleteCommentParams struct { Owner string Repo string @@ -25262,6 +25504,7 @@ func decodeIssuesDeleteCommentParams(args [3]string, r *http.Request) (params Is return params, nil } +// IssuesDeleteLabelParams is parameters of issues/delete-label operation. type IssuesDeleteLabelParams struct { Owner string Repo string @@ -25372,6 +25615,7 @@ func decodeIssuesDeleteLabelParams(args [3]string, r *http.Request) (params Issu return params, nil } +// IssuesDeleteMilestoneParams is parameters of issues/delete-milestone operation. type IssuesDeleteMilestoneParams struct { Owner string Repo string @@ -25483,6 +25727,7 @@ func decodeIssuesDeleteMilestoneParams(args [3]string, r *http.Request) (params return params, nil } +// IssuesGetParams is parameters of issues/get operation. type IssuesGetParams struct { Owner string Repo string @@ -25594,6 +25839,7 @@ func decodeIssuesGetParams(args [3]string, r *http.Request) (params IssuesGetPar return params, nil } +// IssuesGetCommentParams is parameters of issues/get-comment operation. type IssuesGetCommentParams struct { Owner string Repo string @@ -25705,6 +25951,7 @@ func decodeIssuesGetCommentParams(args [3]string, r *http.Request) (params Issue return params, nil } +// IssuesGetEventParams is parameters of issues/get-event operation. type IssuesGetEventParams struct { Owner string Repo string @@ -25815,6 +26062,7 @@ func decodeIssuesGetEventParams(args [3]string, r *http.Request) (params IssuesG return params, nil } +// IssuesGetLabelParams is parameters of issues/get-label operation. type IssuesGetLabelParams struct { Owner string Repo string @@ -25925,6 +26173,7 @@ func decodeIssuesGetLabelParams(args [3]string, r *http.Request) (params IssuesG return params, nil } +// IssuesGetMilestoneParams is parameters of issues/get-milestone operation. type IssuesGetMilestoneParams struct { Owner string Repo string @@ -26036,6 +26285,7 @@ func decodeIssuesGetMilestoneParams(args [3]string, r *http.Request) (params Iss return params, nil } +// IssuesListParams is parameters of issues/list operation. type IssuesListParams struct { // Indicates which sorts of issues to return. Can be one of: // \* `assigned`: Issues assigned to you @@ -26609,6 +26859,7 @@ func decodeIssuesListParams(args [0]string, r *http.Request) (params IssuesListP return params, nil } +// IssuesListAssigneesParams is parameters of issues/list-assignees operation. type IssuesListAssigneesParams struct { Owner string Repo string @@ -26775,6 +27026,7 @@ func decodeIssuesListAssigneesParams(args [2]string, r *http.Request) (params Is return params, nil } +// IssuesListCommentsParams is parameters of issues/list-comments operation. type IssuesListCommentsParams struct { Owner string Repo string @@ -27015,6 +27267,7 @@ func decodeIssuesListCommentsParams(args [3]string, r *http.Request) (params Iss return params, nil } +// IssuesListCommentsForRepoParams is parameters of issues/list-comments-for-repo operation. type IssuesListCommentsForRepoParams struct { Owner string Repo string @@ -27334,6 +27587,7 @@ func decodeIssuesListCommentsForRepoParams(args [2]string, r *http.Request) (par return params, nil } +// IssuesListEventsForRepoParams is parameters of issues/list-events-for-repo operation. type IssuesListEventsForRepoParams struct { Owner string Repo string @@ -27500,6 +27754,7 @@ func decodeIssuesListEventsForRepoParams(args [2]string, r *http.Request) (param return params, nil } +// IssuesListForAuthenticatedUserParams is parameters of issues/list-for-authenticated-user operation. type IssuesListForAuthenticatedUserParams struct { // Indicates which sorts of issues to return. Can be one of: // \* `assigned`: Issues assigned to you @@ -27921,6 +28176,7 @@ func decodeIssuesListForAuthenticatedUserParams(args [0]string, r *http.Request) return params, nil } +// IssuesListForOrgParams is parameters of issues/list-for-org operation. type IssuesListForOrgParams struct { Org string // Indicates which sorts of issues to return. Can be one of: @@ -28375,6 +28631,7 @@ func decodeIssuesListForOrgParams(args [1]string, r *http.Request) (params Issue return params, nil } +// IssuesListForRepoParams is parameters of issues/list-for-repo operation. type IssuesListForRepoParams struct { Owner string Repo string @@ -28956,6 +29213,7 @@ func decodeIssuesListForRepoParams(args [2]string, r *http.Request) (params Issu return params, nil } +// IssuesListLabelsForMilestoneParams is parameters of issues/list-labels-for-milestone operation. type IssuesListLabelsForMilestoneParams struct { Owner string Repo string @@ -29156,6 +29414,7 @@ func decodeIssuesListLabelsForMilestoneParams(args [3]string, r *http.Request) ( return params, nil } +// IssuesListLabelsForRepoParams is parameters of issues/list-labels-for-repo operation. type IssuesListLabelsForRepoParams struct { Owner string Repo string @@ -29322,6 +29581,7 @@ func decodeIssuesListLabelsForRepoParams(args [2]string, r *http.Request) (param return params, nil } +// IssuesListLabelsOnIssueParams is parameters of issues/list-labels-on-issue operation. type IssuesListLabelsOnIssueParams struct { Owner string Repo string @@ -29522,6 +29782,7 @@ func decodeIssuesListLabelsOnIssueParams(args [3]string, r *http.Request) (param return params, nil } +// IssuesListMilestonesParams is parameters of issues/list-milestones operation. type IssuesListMilestonesParams struct { Owner string Repo string @@ -29865,6 +30126,7 @@ func decodeIssuesListMilestonesParams(args [2]string, r *http.Request) (params I return params, nil } +// IssuesLockParams is parameters of issues/lock operation. type IssuesLockParams struct { Owner string Repo string @@ -29976,6 +30238,7 @@ func decodeIssuesLockParams(args [3]string, r *http.Request) (params IssuesLockP return params, nil } +// IssuesRemoveAllLabelsParams is parameters of issues/remove-all-labels operation. type IssuesRemoveAllLabelsParams struct { Owner string Repo string @@ -30087,6 +30350,7 @@ func decodeIssuesRemoveAllLabelsParams(args [3]string, r *http.Request) (params return params, nil } +// IssuesRemoveAssigneesParams is parameters of issues/remove-assignees operation. type IssuesRemoveAssigneesParams struct { Owner string Repo string @@ -30198,6 +30462,7 @@ func decodeIssuesRemoveAssigneesParams(args [3]string, r *http.Request) (params return params, nil } +// IssuesRemoveLabelParams is parameters of issues/remove-label operation. type IssuesRemoveLabelParams struct { Owner string Repo string @@ -30342,6 +30607,7 @@ func decodeIssuesRemoveLabelParams(args [4]string, r *http.Request) (params Issu return params, nil } +// IssuesUnlockParams is parameters of issues/unlock operation. type IssuesUnlockParams struct { Owner string Repo string @@ -30453,6 +30719,7 @@ func decodeIssuesUnlockParams(args [3]string, r *http.Request) (params IssuesUnl return params, nil } +// IssuesUpdateParams is parameters of issues/update operation. type IssuesUpdateParams struct { Owner string Repo string @@ -30564,6 +30831,7 @@ func decodeIssuesUpdateParams(args [3]string, r *http.Request) (params IssuesUpd return params, nil } +// IssuesUpdateCommentParams is parameters of issues/update-comment operation. type IssuesUpdateCommentParams struct { Owner string Repo string @@ -30675,6 +30943,7 @@ func decodeIssuesUpdateCommentParams(args [3]string, r *http.Request) (params Is return params, nil } +// IssuesUpdateLabelParams is parameters of issues/update-label operation. type IssuesUpdateLabelParams struct { Owner string Repo string @@ -30785,6 +31054,7 @@ func decodeIssuesUpdateLabelParams(args [3]string, r *http.Request) (params Issu return params, nil } +// IssuesUpdateMilestoneParams is parameters of issues/update-milestone operation. type IssuesUpdateMilestoneParams struct { Owner string Repo string @@ -30896,6 +31166,7 @@ func decodeIssuesUpdateMilestoneParams(args [3]string, r *http.Request) (params return params, nil } +// LicensesGetParams is parameters of licenses/get operation. type LicensesGetParams struct { License string } @@ -30940,6 +31211,7 @@ func decodeLicensesGetParams(args [1]string, r *http.Request) (params LicensesGe return params, nil } +// LicensesGetAllCommonlyUsedParams is parameters of licenses/get-all-commonly-used operation. type LicensesGetAllCommonlyUsedParams struct { Featured OptBool // Results per page (max 100). @@ -31078,6 +31350,7 @@ func decodeLicensesGetAllCommonlyUsedParams(args [0]string, r *http.Request) (pa return params, nil } +// LicensesGetForRepoParams is parameters of licenses/get-for-repo operation. type LicensesGetForRepoParams struct { Owner string Repo string @@ -31155,6 +31428,7 @@ func decodeLicensesGetForRepoParams(args [2]string, r *http.Request) (params Lic return params, nil } +// MigrationsCancelImportParams is parameters of migrations/cancel-import operation. type MigrationsCancelImportParams struct { Owner string Repo string @@ -31232,6 +31506,7 @@ func decodeMigrationsCancelImportParams(args [2]string, r *http.Request) (params return params, nil } +// MigrationsDeleteArchiveForAuthenticatedUserParams is parameters of migrations/delete-archive-for-authenticated-user operation. type MigrationsDeleteArchiveForAuthenticatedUserParams struct { // Migration_id parameter. MigrationID int @@ -31277,6 +31552,7 @@ func decodeMigrationsDeleteArchiveForAuthenticatedUserParams(args [1]string, r * return params, nil } +// MigrationsDeleteArchiveForOrgParams is parameters of migrations/delete-archive-for-org operation. type MigrationsDeleteArchiveForOrgParams struct { Org string // Migration_id parameter. @@ -31355,6 +31631,7 @@ func decodeMigrationsDeleteArchiveForOrgParams(args [2]string, r *http.Request) return params, nil } +// MigrationsDownloadArchiveForOrgParams is parameters of migrations/download-archive-for-org operation. type MigrationsDownloadArchiveForOrgParams struct { Org string // Migration_id parameter. @@ -31433,6 +31710,7 @@ func decodeMigrationsDownloadArchiveForOrgParams(args [2]string, r *http.Request return params, nil } +// MigrationsGetArchiveForAuthenticatedUserParams is parameters of migrations/get-archive-for-authenticated-user operation. type MigrationsGetArchiveForAuthenticatedUserParams struct { // Migration_id parameter. MigrationID int @@ -31478,6 +31756,7 @@ func decodeMigrationsGetArchiveForAuthenticatedUserParams(args [1]string, r *htt return params, nil } +// MigrationsGetCommitAuthorsParams is parameters of migrations/get-commit-authors operation. type MigrationsGetCommitAuthorsParams struct { Owner string Repo string @@ -31595,6 +31874,7 @@ func decodeMigrationsGetCommitAuthorsParams(args [2]string, r *http.Request) (pa return params, nil } +// MigrationsGetImportStatusParams is parameters of migrations/get-import-status operation. type MigrationsGetImportStatusParams struct { Owner string Repo string @@ -31672,6 +31952,7 @@ func decodeMigrationsGetImportStatusParams(args [2]string, r *http.Request) (par return params, nil } +// MigrationsGetLargeFilesParams is parameters of migrations/get-large-files operation. type MigrationsGetLargeFilesParams struct { Owner string Repo string @@ -31749,6 +32030,7 @@ func decodeMigrationsGetLargeFilesParams(args [2]string, r *http.Request) (param return params, nil } +// MigrationsGetStatusForAuthenticatedUserParams is parameters of migrations/get-status-for-authenticated-user operation. type MigrationsGetStatusForAuthenticatedUserParams struct { // Migration_id parameter. MigrationID int @@ -31835,6 +32117,7 @@ func decodeMigrationsGetStatusForAuthenticatedUserParams(args [1]string, r *http return params, nil } +// MigrationsGetStatusForOrgParams is parameters of migrations/get-status-for-org operation. type MigrationsGetStatusForOrgParams struct { Org string // Migration_id parameter. @@ -31977,6 +32260,7 @@ func decodeMigrationsGetStatusForOrgParams(args [2]string, r *http.Request) (par return params, nil } +// MigrationsListForAuthenticatedUserParams is parameters of migrations/list-for-authenticated-user operation. type MigrationsListForAuthenticatedUserParams struct { // Results per page (max 100). PerPage OptInt @@ -32077,6 +32361,7 @@ func decodeMigrationsListForAuthenticatedUserParams(args [0]string, r *http.Requ return params, nil } +// MigrationsListForOrgParams is parameters of migrations/list-for-org operation. type MigrationsListForOrgParams struct { Org string // Results per page (max 100). @@ -32273,6 +32558,7 @@ func decodeMigrationsListForOrgParams(args [1]string, r *http.Request) (params M return params, nil } +// MigrationsListReposForOrgParams is parameters of migrations/list-repos-for-org operation. type MigrationsListReposForOrgParams struct { Org string // Migration_id parameter. @@ -32440,6 +32726,7 @@ func decodeMigrationsListReposForOrgParams(args [2]string, r *http.Request) (par return params, nil } +// MigrationsListReposForUserParams is parameters of migrations/list-repos-for-user operation. type MigrationsListReposForUserParams struct { // Migration_id parameter. MigrationID int @@ -32574,6 +32861,7 @@ func decodeMigrationsListReposForUserParams(args [1]string, r *http.Request) (pa return params, nil } +// MigrationsMapCommitAuthorParams is parameters of migrations/map-commit-author operation. type MigrationsMapCommitAuthorParams struct { Owner string Repo string @@ -32684,6 +32972,7 @@ func decodeMigrationsMapCommitAuthorParams(args [3]string, r *http.Request) (par return params, nil } +// MigrationsSetLfsPreferenceParams is parameters of migrations/set-lfs-preference operation. type MigrationsSetLfsPreferenceParams struct { Owner string Repo string @@ -32761,6 +33050,7 @@ func decodeMigrationsSetLfsPreferenceParams(args [2]string, r *http.Request) (pa return params, nil } +// MigrationsStartForOrgParams is parameters of migrations/start-for-org operation. type MigrationsStartForOrgParams struct { Org string } @@ -32805,6 +33095,7 @@ func decodeMigrationsStartForOrgParams(args [1]string, r *http.Request) (params return params, nil } +// MigrationsStartImportParams is parameters of migrations/start-import operation. type MigrationsStartImportParams struct { Owner string Repo string @@ -32882,6 +33173,7 @@ func decodeMigrationsStartImportParams(args [2]string, r *http.Request) (params return params, nil } +// MigrationsUnlockRepoForAuthenticatedUserParams is parameters of migrations/unlock-repo-for-authenticated-user operation. type MigrationsUnlockRepoForAuthenticatedUserParams struct { // Migration_id parameter. MigrationID int @@ -32961,6 +33253,7 @@ func decodeMigrationsUnlockRepoForAuthenticatedUserParams(args [2]string, r *htt return params, nil } +// MigrationsUnlockRepoForOrgParams is parameters of migrations/unlock-repo-for-org operation. type MigrationsUnlockRepoForOrgParams struct { Org string // Migration_id parameter. @@ -33073,6 +33366,7 @@ func decodeMigrationsUnlockRepoForOrgParams(args [3]string, r *http.Request) (pa return params, nil } +// MigrationsUpdateImportParams is parameters of migrations/update-import operation. type MigrationsUpdateImportParams struct { Owner string Repo string @@ -33150,6 +33444,7 @@ func decodeMigrationsUpdateImportParams(args [2]string, r *http.Request) (params return params, nil } +// OAuthAuthorizationsDeleteAuthorizationParams is parameters of oauth-authorizations/delete-authorization operation. type OAuthAuthorizationsDeleteAuthorizationParams struct { // Authorization_id parameter. AuthorizationID int @@ -33195,6 +33490,7 @@ func decodeOAuthAuthorizationsDeleteAuthorizationParams(args [1]string, r *http. return params, nil } +// OAuthAuthorizationsDeleteGrantParams is parameters of oauth-authorizations/delete-grant operation. type OAuthAuthorizationsDeleteGrantParams struct { // Grant_id parameter. GrantID int @@ -33240,6 +33536,7 @@ func decodeOAuthAuthorizationsDeleteGrantParams(args [1]string, r *http.Request) return params, nil } +// OAuthAuthorizationsGetAuthorizationParams is parameters of oauth-authorizations/get-authorization operation. type OAuthAuthorizationsGetAuthorizationParams struct { // Authorization_id parameter. AuthorizationID int @@ -33285,6 +33582,7 @@ func decodeOAuthAuthorizationsGetAuthorizationParams(args [1]string, r *http.Req return params, nil } +// OAuthAuthorizationsGetGrantParams is parameters of oauth-authorizations/get-grant operation. type OAuthAuthorizationsGetGrantParams struct { // Grant_id parameter. GrantID int @@ -33330,6 +33628,7 @@ func decodeOAuthAuthorizationsGetGrantParams(args [1]string, r *http.Request) (p return params, nil } +// OAuthAuthorizationsGetOrCreateAuthorizationForAppParams is parameters of oauth-authorizations/get-or-create-authorization-for-app operation. type OAuthAuthorizationsGetOrCreateAuthorizationForAppParams struct { // The client ID of your GitHub app. ClientID string @@ -33375,6 +33674,7 @@ func decodeOAuthAuthorizationsGetOrCreateAuthorizationForAppParams(args [1]strin return params, nil } +// OAuthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintParams is parameters of oauth-authorizations/get-or-create-authorization-for-app-and-fingerprint operation. type OAuthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintParams struct { // The client ID of your GitHub app. ClientID string @@ -33453,6 +33753,7 @@ func decodeOAuthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintParams return params, nil } +// OAuthAuthorizationsListAuthorizationsParams is parameters of oauth-authorizations/list-authorizations operation. type OAuthAuthorizationsListAuthorizationsParams struct { // Results per page (max 100). PerPage OptInt @@ -33592,6 +33893,7 @@ func decodeOAuthAuthorizationsListAuthorizationsParams(args [0]string, r *http.R return params, nil } +// OAuthAuthorizationsListGrantsParams is parameters of oauth-authorizations/list-grants operation. type OAuthAuthorizationsListGrantsParams struct { // Results per page (max 100). PerPage OptInt @@ -33731,6 +34033,7 @@ func decodeOAuthAuthorizationsListGrantsParams(args [0]string, r *http.Request) return params, nil } +// OAuthAuthorizationsUpdateAuthorizationParams is parameters of oauth-authorizations/update-authorization operation. type OAuthAuthorizationsUpdateAuthorizationParams struct { // Authorization_id parameter. AuthorizationID int @@ -33776,6 +34079,7 @@ func decodeOAuthAuthorizationsUpdateAuthorizationParams(args [1]string, r *http. return params, nil } +// OrgsBlockUserParams is parameters of orgs/block-user operation. type OrgsBlockUserParams struct { Org string Username string @@ -33853,6 +34157,7 @@ func decodeOrgsBlockUserParams(args [2]string, r *http.Request) (params OrgsBloc return params, nil } +// OrgsCancelInvitationParams is parameters of orgs/cancel-invitation operation. type OrgsCancelInvitationParams struct { Org string // Invitation_id parameter. @@ -33931,6 +34236,7 @@ func decodeOrgsCancelInvitationParams(args [2]string, r *http.Request) (params O return params, nil } +// OrgsCheckBlockedUserParams is parameters of orgs/check-blocked-user operation. type OrgsCheckBlockedUserParams struct { Org string Username string @@ -34008,6 +34314,7 @@ func decodeOrgsCheckBlockedUserParams(args [2]string, r *http.Request) (params O return params, nil } +// OrgsCheckMembershipForUserParams is parameters of orgs/check-membership-for-user operation. type OrgsCheckMembershipForUserParams struct { Org string Username string @@ -34085,6 +34392,7 @@ func decodeOrgsCheckMembershipForUserParams(args [2]string, r *http.Request) (pa return params, nil } +// OrgsCheckPublicMembershipForUserParams is parameters of orgs/check-public-membership-for-user operation. type OrgsCheckPublicMembershipForUserParams struct { Org string Username string @@ -34162,6 +34470,7 @@ func decodeOrgsCheckPublicMembershipForUserParams(args [2]string, r *http.Reques return params, nil } +// OrgsConvertMemberToOutsideCollaboratorParams is parameters of orgs/convert-member-to-outside-collaborator operation. type OrgsConvertMemberToOutsideCollaboratorParams struct { Org string Username string @@ -34239,6 +34548,7 @@ func decodeOrgsConvertMemberToOutsideCollaboratorParams(args [2]string, r *http. return params, nil } +// OrgsCreateInvitationParams is parameters of orgs/create-invitation operation. type OrgsCreateInvitationParams struct { Org string } @@ -34283,6 +34593,7 @@ func decodeOrgsCreateInvitationParams(args [1]string, r *http.Request) (params O return params, nil } +// OrgsCreateWebhookParams is parameters of orgs/create-webhook operation. type OrgsCreateWebhookParams struct { Org string } @@ -34327,6 +34638,7 @@ func decodeOrgsCreateWebhookParams(args [1]string, r *http.Request) (params Orgs return params, nil } +// OrgsDeleteWebhookParams is parameters of orgs/delete-webhook operation. type OrgsDeleteWebhookParams struct { Org string HookID int @@ -34404,6 +34716,7 @@ func decodeOrgsDeleteWebhookParams(args [2]string, r *http.Request) (params Orgs return params, nil } +// OrgsGetParams is parameters of orgs/get operation. type OrgsGetParams struct { Org string } @@ -34448,6 +34761,7 @@ func decodeOrgsGetParams(args [1]string, r *http.Request) (params OrgsGetParams, return params, nil } +// OrgsGetAuditLogParams is parameters of orgs/get-audit-log operation. type OrgsGetAuditLogParams struct { Org string // A search phrase. For more information, see [Searching the audit log](https://docs.github. @@ -34817,6 +35131,7 @@ func decodeOrgsGetAuditLogParams(args [1]string, r *http.Request) (params OrgsGe return params, nil } +// OrgsGetMembershipForAuthenticatedUserParams is parameters of orgs/get-membership-for-authenticated-user operation. type OrgsGetMembershipForAuthenticatedUserParams struct { Org string } @@ -34861,6 +35176,7 @@ func decodeOrgsGetMembershipForAuthenticatedUserParams(args [1]string, r *http.R return params, nil } +// OrgsGetMembershipForUserParams is parameters of orgs/get-membership-for-user operation. type OrgsGetMembershipForUserParams struct { Org string Username string @@ -34938,6 +35254,7 @@ func decodeOrgsGetMembershipForUserParams(args [2]string, r *http.Request) (para return params, nil } +// OrgsGetWebhookParams is parameters of orgs/get-webhook operation. type OrgsGetWebhookParams struct { Org string HookID int @@ -35015,6 +35332,7 @@ func decodeOrgsGetWebhookParams(args [2]string, r *http.Request) (params OrgsGet return params, nil } +// OrgsGetWebhookConfigForOrgParams is parameters of orgs/get-webhook-config-for-org operation. type OrgsGetWebhookConfigForOrgParams struct { Org string HookID int @@ -35092,6 +35410,7 @@ func decodeOrgsGetWebhookConfigForOrgParams(args [2]string, r *http.Request) (pa return params, nil } +// OrgsGetWebhookDeliveryParams is parameters of orgs/get-webhook-delivery operation. type OrgsGetWebhookDeliveryParams struct { Org string HookID int @@ -35202,6 +35521,7 @@ func decodeOrgsGetWebhookDeliveryParams(args [3]string, r *http.Request) (params return params, nil } +// OrgsListParams is parameters of orgs/list operation. type OrgsListParams struct { // An organization ID. Only return organizations with an ID greater than this ID. Since OptInt @@ -35297,6 +35617,7 @@ func decodeOrgsListParams(args [0]string, r *http.Request) (params OrgsListParam return params, nil } +// OrgsListBlockedUsersParams is parameters of orgs/list-blocked-users operation. type OrgsListBlockedUsersParams struct { Org string } @@ -35341,6 +35662,7 @@ func decodeOrgsListBlockedUsersParams(args [1]string, r *http.Request) (params O return params, nil } +// OrgsListFailedInvitationsParams is parameters of orgs/list-failed-invitations operation. type OrgsListFailedInvitationsParams struct { Org string // Results per page (max 100). @@ -35474,6 +35796,7 @@ func decodeOrgsListFailedInvitationsParams(args [1]string, r *http.Request) (par return params, nil } +// OrgsListForAuthenticatedUserParams is parameters of orgs/list-for-authenticated-user operation. type OrgsListForAuthenticatedUserParams struct { // Results per page (max 100). PerPage OptInt @@ -35574,6 +35897,7 @@ func decodeOrgsListForAuthenticatedUserParams(args [0]string, r *http.Request) ( return params, nil } +// OrgsListForUserParams is parameters of orgs/list-for-user operation. type OrgsListForUserParams struct { Username string // Results per page (max 100). @@ -35707,6 +36031,7 @@ func decodeOrgsListForUserParams(args [1]string, r *http.Request) (params OrgsLi return params, nil } +// OrgsListInvitationTeamsParams is parameters of orgs/list-invitation-teams operation. type OrgsListInvitationTeamsParams struct { Org string // Invitation_id parameter. @@ -35874,6 +36199,7 @@ func decodeOrgsListInvitationTeamsParams(args [2]string, r *http.Request) (param return params, nil } +// OrgsListMembersParams is parameters of orgs/list-members operation. type OrgsListMembersParams struct { Org string // Filter members returned in the list. Can be one of: @@ -36131,6 +36457,7 @@ func decodeOrgsListMembersParams(args [1]string, r *http.Request) (params OrgsLi return params, nil } +// OrgsListMembershipsForAuthenticatedUserParams is parameters of orgs/list-memberships-for-authenticated-user operation. type OrgsListMembershipsForAuthenticatedUserParams struct { // Indicates the state of the memberships to return. Can be either `active` or `pending`. If not // specified, the API returns both active and pending memberships. @@ -36286,6 +36613,7 @@ func decodeOrgsListMembershipsForAuthenticatedUserParams(args [0]string, r *http return params, nil } +// OrgsListOutsideCollaboratorsParams is parameters of orgs/list-outside-collaborators operation. type OrgsListOutsideCollaboratorsParams struct { Org string // Filter the list of outside collaborators. Can be one of: @@ -36481,6 +36809,7 @@ func decodeOrgsListOutsideCollaboratorsParams(args [1]string, r *http.Request) ( return params, nil } +// OrgsListPendingInvitationsParams is parameters of orgs/list-pending-invitations operation. type OrgsListPendingInvitationsParams struct { Org string // Results per page (max 100). @@ -36614,6 +36943,7 @@ func decodeOrgsListPendingInvitationsParams(args [1]string, r *http.Request) (pa return params, nil } +// OrgsListPublicMembersParams is parameters of orgs/list-public-members operation. type OrgsListPublicMembersParams struct { Org string // Results per page (max 100). @@ -36747,6 +37077,7 @@ func decodeOrgsListPublicMembersParams(args [1]string, r *http.Request) (params return params, nil } +// OrgsListSamlSSOAuthorizationsParams is parameters of orgs/list-saml-sso-authorizations operation. type OrgsListSamlSSOAuthorizationsParams struct { Org string } @@ -36791,6 +37122,7 @@ func decodeOrgsListSamlSSOAuthorizationsParams(args [1]string, r *http.Request) return params, nil } +// OrgsListWebhookDeliveriesParams is parameters of orgs/list-webhook-deliveries operation. type OrgsListWebhookDeliveriesParams struct { Org string HookID int @@ -36953,6 +37285,7 @@ func decodeOrgsListWebhookDeliveriesParams(args [2]string, r *http.Request) (par return params, nil } +// OrgsListWebhooksParams is parameters of orgs/list-webhooks operation. type OrgsListWebhooksParams struct { Org string // Results per page (max 100). @@ -37086,6 +37419,7 @@ func decodeOrgsListWebhooksParams(args [1]string, r *http.Request) (params OrgsL return params, nil } +// OrgsPingWebhookParams is parameters of orgs/ping-webhook operation. type OrgsPingWebhookParams struct { Org string HookID int @@ -37163,6 +37497,7 @@ func decodeOrgsPingWebhookParams(args [2]string, r *http.Request) (params OrgsPi return params, nil } +// OrgsRedeliverWebhookDeliveryParams is parameters of orgs/redeliver-webhook-delivery operation. type OrgsRedeliverWebhookDeliveryParams struct { Org string HookID int @@ -37273,6 +37608,7 @@ func decodeOrgsRedeliverWebhookDeliveryParams(args [3]string, r *http.Request) ( return params, nil } +// OrgsRemoveMemberParams is parameters of orgs/remove-member operation. type OrgsRemoveMemberParams struct { Org string Username string @@ -37350,6 +37686,7 @@ func decodeOrgsRemoveMemberParams(args [2]string, r *http.Request) (params OrgsR return params, nil } +// OrgsRemoveMembershipForUserParams is parameters of orgs/remove-membership-for-user operation. type OrgsRemoveMembershipForUserParams struct { Org string Username string @@ -37427,6 +37764,7 @@ func decodeOrgsRemoveMembershipForUserParams(args [2]string, r *http.Request) (p return params, nil } +// OrgsRemoveOutsideCollaboratorParams is parameters of orgs/remove-outside-collaborator operation. type OrgsRemoveOutsideCollaboratorParams struct { Org string Username string @@ -37504,6 +37842,7 @@ func decodeOrgsRemoveOutsideCollaboratorParams(args [2]string, r *http.Request) return params, nil } +// OrgsRemovePublicMembershipForAuthenticatedUserParams is parameters of orgs/remove-public-membership-for-authenticated-user operation. type OrgsRemovePublicMembershipForAuthenticatedUserParams struct { Org string Username string @@ -37581,6 +37920,7 @@ func decodeOrgsRemovePublicMembershipForAuthenticatedUserParams(args [2]string, return params, nil } +// OrgsRemoveSamlSSOAuthorizationParams is parameters of orgs/remove-saml-sso-authorization operation. type OrgsRemoveSamlSSOAuthorizationParams struct { Org string CredentialID int @@ -37658,6 +37998,7 @@ func decodeOrgsRemoveSamlSSOAuthorizationParams(args [2]string, r *http.Request) return params, nil } +// OrgsSetMembershipForUserParams is parameters of orgs/set-membership-for-user operation. type OrgsSetMembershipForUserParams struct { Org string Username string @@ -37735,6 +38076,7 @@ func decodeOrgsSetMembershipForUserParams(args [2]string, r *http.Request) (para return params, nil } +// OrgsSetPublicMembershipForAuthenticatedUserParams is parameters of orgs/set-public-membership-for-authenticated-user operation. type OrgsSetPublicMembershipForAuthenticatedUserParams struct { Org string Username string @@ -37812,6 +38154,7 @@ func decodeOrgsSetPublicMembershipForAuthenticatedUserParams(args [2]string, r * return params, nil } +// OrgsUnblockUserParams is parameters of orgs/unblock-user operation. type OrgsUnblockUserParams struct { Org string Username string @@ -37889,6 +38232,7 @@ func decodeOrgsUnblockUserParams(args [2]string, r *http.Request) (params OrgsUn return params, nil } +// OrgsUpdateMembershipForAuthenticatedUserParams is parameters of orgs/update-membership-for-authenticated-user operation. type OrgsUpdateMembershipForAuthenticatedUserParams struct { Org string } @@ -37933,6 +38277,7 @@ func decodeOrgsUpdateMembershipForAuthenticatedUserParams(args [1]string, r *htt return params, nil } +// OrgsUpdateWebhookParams is parameters of orgs/update-webhook operation. type OrgsUpdateWebhookParams struct { Org string HookID int @@ -38010,6 +38355,7 @@ func decodeOrgsUpdateWebhookParams(args [2]string, r *http.Request) (params Orgs return params, nil } +// OrgsUpdateWebhookConfigForOrgParams is parameters of orgs/update-webhook-config-for-org operation. type OrgsUpdateWebhookConfigForOrgParams struct { Org string HookID int @@ -38087,6 +38433,7 @@ func decodeOrgsUpdateWebhookConfigForOrgParams(args [2]string, r *http.Request) return params, nil } +// PackagesDeletePackageForAuthenticatedUserParams is parameters of packages/delete-package-for-authenticated-user operation. type PackagesDeletePackageForAuthenticatedUserParams struct { // The type of supported package. Can be one of `npm`, `maven`, `rubygems`, `nuget`, `docker`, or // `container`. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to @@ -38178,6 +38525,7 @@ func decodePackagesDeletePackageForAuthenticatedUserParams(args [2]string, r *ht return params, nil } +// PackagesDeletePackageForOrgParams is parameters of packages/delete-package-for-org operation. type PackagesDeletePackageForOrgParams struct { // The type of supported package. Can be one of `npm`, `maven`, `rubygems`, `nuget`, `docker`, or // `container`. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to @@ -38302,6 +38650,7 @@ func decodePackagesDeletePackageForOrgParams(args [3]string, r *http.Request) (p return params, nil } +// PackagesDeletePackageForUserParams is parameters of packages/delete-package-for-user operation. type PackagesDeletePackageForUserParams struct { // The type of supported package. Can be one of `npm`, `maven`, `rubygems`, `nuget`, `docker`, or // `container`. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to @@ -38426,6 +38775,7 @@ func decodePackagesDeletePackageForUserParams(args [3]string, r *http.Request) ( return params, nil } +// PackagesDeletePackageVersionForAuthenticatedUserParams is parameters of packages/delete-package-version-for-authenticated-user operation. type PackagesDeletePackageVersionForAuthenticatedUserParams struct { // The type of supported package. Can be one of `npm`, `maven`, `rubygems`, `nuget`, `docker`, or // `container`. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to @@ -38551,6 +38901,7 @@ func decodePackagesDeletePackageVersionForAuthenticatedUserParams(args [3]string return params, nil } +// PackagesDeletePackageVersionForOrgParams is parameters of packages/delete-package-version-for-org operation. type PackagesDeletePackageVersionForOrgParams struct { // The type of supported package. Can be one of `npm`, `maven`, `rubygems`, `nuget`, `docker`, or // `container`. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to @@ -38709,6 +39060,7 @@ func decodePackagesDeletePackageVersionForOrgParams(args [4]string, r *http.Requ return params, nil } +// PackagesDeletePackageVersionForUserParams is parameters of packages/delete-package-version-for-user operation. type PackagesDeletePackageVersionForUserParams struct { // The type of supported package. Can be one of `npm`, `maven`, `rubygems`, `nuget`, `docker`, or // `container`. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to @@ -38867,6 +39219,7 @@ func decodePackagesDeletePackageVersionForUserParams(args [4]string, r *http.Req return params, nil } +// PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserParams is parameters of packages/get-all-package-versions-for-package-owned-by-authenticated-user operation. type PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserParams struct { // The type of supported package. Can be one of `npm`, `maven`, `rubygems`, `nuget`, `docker`, or // `container`. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to @@ -39106,6 +39459,7 @@ func decodePackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserParams return params, nil } +// PackagesGetAllPackageVersionsForPackageOwnedByOrgParams is parameters of packages/get-all-package-versions-for-package-owned-by-org operation. type PackagesGetAllPackageVersionsForPackageOwnedByOrgParams struct { // The type of supported package. Can be one of `npm`, `maven`, `rubygems`, `nuget`, `docker`, or // `container`. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to @@ -39378,6 +39732,7 @@ func decodePackagesGetAllPackageVersionsForPackageOwnedByOrgParams(args [3]strin return params, nil } +// PackagesGetAllPackageVersionsForPackageOwnedByUserParams is parameters of packages/get-all-package-versions-for-package-owned-by-user operation. type PackagesGetAllPackageVersionsForPackageOwnedByUserParams struct { // The type of supported package. Can be one of `npm`, `maven`, `rubygems`, `nuget`, `docker`, or // `container`. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to @@ -39502,6 +39857,7 @@ func decodePackagesGetAllPackageVersionsForPackageOwnedByUserParams(args [3]stri return params, nil } +// PackagesGetPackageForAuthenticatedUserParams is parameters of packages/get-package-for-authenticated-user operation. type PackagesGetPackageForAuthenticatedUserParams struct { // The type of supported package. Can be one of `npm`, `maven`, `rubygems`, `nuget`, `docker`, or // `container`. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to @@ -39593,6 +39949,7 @@ func decodePackagesGetPackageForAuthenticatedUserParams(args [2]string, r *http. return params, nil } +// PackagesGetPackageForOrganizationParams is parameters of packages/get-package-for-organization operation. type PackagesGetPackageForOrganizationParams struct { // The type of supported package. Can be one of `npm`, `maven`, `rubygems`, `nuget`, `docker`, or // `container`. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to @@ -39717,6 +40074,7 @@ func decodePackagesGetPackageForOrganizationParams(args [3]string, r *http.Reque return params, nil } +// PackagesGetPackageForUserParams is parameters of packages/get-package-for-user operation. type PackagesGetPackageForUserParams struct { // The type of supported package. Can be one of `npm`, `maven`, `rubygems`, `nuget`, `docker`, or // `container`. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to @@ -39841,6 +40199,7 @@ func decodePackagesGetPackageForUserParams(args [3]string, r *http.Request) (par return params, nil } +// PackagesGetPackageVersionForAuthenticatedUserParams is parameters of packages/get-package-version-for-authenticated-user operation. type PackagesGetPackageVersionForAuthenticatedUserParams struct { // The type of supported package. Can be one of `npm`, `maven`, `rubygems`, `nuget`, `docker`, or // `container`. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to @@ -39966,6 +40325,7 @@ func decodePackagesGetPackageVersionForAuthenticatedUserParams(args [3]string, r return params, nil } +// PackagesGetPackageVersionForOrganizationParams is parameters of packages/get-package-version-for-organization operation. type PackagesGetPackageVersionForOrganizationParams struct { // The type of supported package. Can be one of `npm`, `maven`, `rubygems`, `nuget`, `docker`, or // `container`. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to @@ -40124,6 +40484,7 @@ func decodePackagesGetPackageVersionForOrganizationParams(args [4]string, r *htt return params, nil } +// PackagesGetPackageVersionForUserParams is parameters of packages/get-package-version-for-user operation. type PackagesGetPackageVersionForUserParams struct { // The type of supported package. Can be one of `npm`, `maven`, `rubygems`, `nuget`, `docker`, or // `container`. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to @@ -40282,6 +40643,7 @@ func decodePackagesGetPackageVersionForUserParams(args [4]string, r *http.Reques return params, nil } +// PackagesListPackagesForAuthenticatedUserParams is parameters of packages/list-packages-for-authenticated-user operation. type PackagesListPackagesForAuthenticatedUserParams struct { // The type of supported package. Can be one of `npm`, `maven`, `rubygems`, `nuget`, `docker`, or // `container`. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to @@ -40395,6 +40757,7 @@ func decodePackagesListPackagesForAuthenticatedUserParams(args [0]string, r *htt return params, nil } +// PackagesListPackagesForOrganizationParams is parameters of packages/list-packages-for-organization operation. type PackagesListPackagesForOrganizationParams struct { // The type of supported package. Can be one of `npm`, `maven`, `rubygems`, `nuget`, `docker`, or // `container`. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to @@ -40541,6 +40904,7 @@ func decodePackagesListPackagesForOrganizationParams(args [1]string, r *http.Req return params, nil } +// PackagesListPackagesForUserParams is parameters of packages/list-packages-for-user operation. type PackagesListPackagesForUserParams struct { // The type of supported package. Can be one of `npm`, `maven`, `rubygems`, `nuget`, `docker`, or // `container`. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to @@ -40687,6 +41051,7 @@ func decodePackagesListPackagesForUserParams(args [1]string, r *http.Request) (p return params, nil } +// PackagesRestorePackageForAuthenticatedUserParams is parameters of packages/restore-package-for-authenticated-user operation. type PackagesRestorePackageForAuthenticatedUserParams struct { // The type of supported package. Can be one of `npm`, `maven`, `rubygems`, `nuget`, `docker`, or // `container`. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to @@ -40818,6 +41183,7 @@ func decodePackagesRestorePackageForAuthenticatedUserParams(args [2]string, r *h return params, nil } +// PackagesRestorePackageForOrgParams is parameters of packages/restore-package-for-org operation. type PackagesRestorePackageForOrgParams struct { // The type of supported package. Can be one of `npm`, `maven`, `rubygems`, `nuget`, `docker`, or // `container`. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to @@ -40982,6 +41348,7 @@ func decodePackagesRestorePackageForOrgParams(args [3]string, r *http.Request) ( return params, nil } +// PackagesRestorePackageForUserParams is parameters of packages/restore-package-for-user operation. type PackagesRestorePackageForUserParams struct { // The type of supported package. Can be one of `npm`, `maven`, `rubygems`, `nuget`, `docker`, or // `container`. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to @@ -41146,6 +41513,7 @@ func decodePackagesRestorePackageForUserParams(args [3]string, r *http.Request) return params, nil } +// PackagesRestorePackageVersionForAuthenticatedUserParams is parameters of packages/restore-package-version-for-authenticated-user operation. type PackagesRestorePackageVersionForAuthenticatedUserParams struct { // The type of supported package. Can be one of `npm`, `maven`, `rubygems`, `nuget`, `docker`, or // `container`. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to @@ -41271,6 +41639,7 @@ func decodePackagesRestorePackageVersionForAuthenticatedUserParams(args [3]strin return params, nil } +// PackagesRestorePackageVersionForOrgParams is parameters of packages/restore-package-version-for-org operation. type PackagesRestorePackageVersionForOrgParams struct { // The type of supported package. Can be one of `npm`, `maven`, `rubygems`, `nuget`, `docker`, or // `container`. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to @@ -41429,6 +41798,7 @@ func decodePackagesRestorePackageVersionForOrgParams(args [4]string, r *http.Req return params, nil } +// PackagesRestorePackageVersionForUserParams is parameters of packages/restore-package-version-for-user operation. type PackagesRestorePackageVersionForUserParams struct { // The type of supported package. Can be one of `npm`, `maven`, `rubygems`, `nuget`, `docker`, or // `container`. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to @@ -41587,6 +41957,7 @@ func decodePackagesRestorePackageVersionForUserParams(args [4]string, r *http.Re return params, nil } +// ProjectsAddCollaboratorParams is parameters of projects/add-collaborator operation. type ProjectsAddCollaboratorParams struct { ProjectID int Username string @@ -41664,6 +42035,7 @@ func decodeProjectsAddCollaboratorParams(args [2]string, r *http.Request) (param return params, nil } +// ProjectsCreateColumnParams is parameters of projects/create-column operation. type ProjectsCreateColumnParams struct { ProjectID int } @@ -41708,6 +42080,7 @@ func decodeProjectsCreateColumnParams(args [1]string, r *http.Request) (params P return params, nil } +// ProjectsCreateForOrgParams is parameters of projects/create-for-org operation. type ProjectsCreateForOrgParams struct { Org string } @@ -41752,6 +42125,7 @@ func decodeProjectsCreateForOrgParams(args [1]string, r *http.Request) (params P return params, nil } +// ProjectsCreateForRepoParams is parameters of projects/create-for-repo operation. type ProjectsCreateForRepoParams struct { Owner string Repo string @@ -41829,6 +42203,7 @@ func decodeProjectsCreateForRepoParams(args [2]string, r *http.Request) (params return params, nil } +// ProjectsDeleteParams is parameters of projects/delete operation. type ProjectsDeleteParams struct { ProjectID int } @@ -41873,6 +42248,7 @@ func decodeProjectsDeleteParams(args [1]string, r *http.Request) (params Project return params, nil } +// ProjectsDeleteCardParams is parameters of projects/delete-card operation. type ProjectsDeleteCardParams struct { // Card_id parameter. CardID int @@ -41918,6 +42294,7 @@ func decodeProjectsDeleteCardParams(args [1]string, r *http.Request) (params Pro return params, nil } +// ProjectsDeleteColumnParams is parameters of projects/delete-column operation. type ProjectsDeleteColumnParams struct { // Column_id parameter. ColumnID int @@ -41963,6 +42340,7 @@ func decodeProjectsDeleteColumnParams(args [1]string, r *http.Request) (params P return params, nil } +// ProjectsGetParams is parameters of projects/get operation. type ProjectsGetParams struct { ProjectID int } @@ -42007,6 +42385,7 @@ func decodeProjectsGetParams(args [1]string, r *http.Request) (params ProjectsGe return params, nil } +// ProjectsGetCardParams is parameters of projects/get-card operation. type ProjectsGetCardParams struct { // Card_id parameter. CardID int @@ -42052,6 +42431,7 @@ func decodeProjectsGetCardParams(args [1]string, r *http.Request) (params Projec return params, nil } +// ProjectsGetColumnParams is parameters of projects/get-column operation. type ProjectsGetColumnParams struct { // Column_id parameter. ColumnID int @@ -42097,6 +42477,7 @@ func decodeProjectsGetColumnParams(args [1]string, r *http.Request) (params Proj return params, nil } +// ProjectsGetPermissionForUserParams is parameters of projects/get-permission-for-user operation. type ProjectsGetPermissionForUserParams struct { ProjectID int Username string @@ -42174,6 +42555,7 @@ func decodeProjectsGetPermissionForUserParams(args [2]string, r *http.Request) ( return params, nil } +// ProjectsListCardsParams is parameters of projects/list-cards operation. type ProjectsListCardsParams struct { // Column_id parameter. ColumnID int @@ -42368,6 +42750,7 @@ func decodeProjectsListCardsParams(args [1]string, r *http.Request) (params Proj return params, nil } +// ProjectsListCollaboratorsParams is parameters of projects/list-collaborators operation. type ProjectsListCollaboratorsParams struct { ProjectID int // Filters the collaborators by their affiliation. Can be one of: @@ -42565,6 +42948,7 @@ func decodeProjectsListCollaboratorsParams(args [1]string, r *http.Request) (par return params, nil } +// ProjectsListColumnsParams is parameters of projects/list-columns operation. type ProjectsListColumnsParams struct { ProjectID int // Results per page (max 100). @@ -42698,6 +43082,7 @@ func decodeProjectsListColumnsParams(args [1]string, r *http.Request) (params Pr return params, nil } +// ProjectsListForOrgParams is parameters of projects/list-for-org operation. type ProjectsListForOrgParams struct { Org string // Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`. @@ -42890,6 +43275,7 @@ func decodeProjectsListForOrgParams(args [1]string, r *http.Request) (params Pro return params, nil } +// ProjectsListForRepoParams is parameters of projects/list-for-repo operation. type ProjectsListForRepoParams struct { Owner string Repo string @@ -43115,6 +43501,7 @@ func decodeProjectsListForRepoParams(args [2]string, r *http.Request) (params Pr return params, nil } +// ProjectsListForUserParams is parameters of projects/list-for-user operation. type ProjectsListForUserParams struct { Username string // Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`. @@ -43307,6 +43694,7 @@ func decodeProjectsListForUserParams(args [1]string, r *http.Request) (params Pr return params, nil } +// ProjectsMoveCardParams is parameters of projects/move-card operation. type ProjectsMoveCardParams struct { // Card_id parameter. CardID int @@ -43352,6 +43740,7 @@ func decodeProjectsMoveCardParams(args [1]string, r *http.Request) (params Proje return params, nil } +// ProjectsMoveColumnParams is parameters of projects/move-column operation. type ProjectsMoveColumnParams struct { // Column_id parameter. ColumnID int @@ -43397,6 +43786,7 @@ func decodeProjectsMoveColumnParams(args [1]string, r *http.Request) (params Pro return params, nil } +// ProjectsRemoveCollaboratorParams is parameters of projects/remove-collaborator operation. type ProjectsRemoveCollaboratorParams struct { ProjectID int Username string @@ -43474,6 +43864,7 @@ func decodeProjectsRemoveCollaboratorParams(args [2]string, r *http.Request) (pa return params, nil } +// ProjectsUpdateParams is parameters of projects/update operation. type ProjectsUpdateParams struct { ProjectID int } @@ -43518,6 +43909,7 @@ func decodeProjectsUpdateParams(args [1]string, r *http.Request) (params Project return params, nil } +// ProjectsUpdateCardParams is parameters of projects/update-card operation. type ProjectsUpdateCardParams struct { // Card_id parameter. CardID int @@ -43563,6 +43955,7 @@ func decodeProjectsUpdateCardParams(args [1]string, r *http.Request) (params Pro return params, nil } +// ProjectsUpdateColumnParams is parameters of projects/update-column operation. type ProjectsUpdateColumnParams struct { // Column_id parameter. ColumnID int @@ -43608,6 +44001,7 @@ func decodeProjectsUpdateColumnParams(args [1]string, r *http.Request) (params P return params, nil } +// PullsCheckIfMergedParams is parameters of pulls/check-if-merged operation. type PullsCheckIfMergedParams struct { Owner string Repo string @@ -43718,6 +44112,7 @@ func decodePullsCheckIfMergedParams(args [3]string, r *http.Request) (params Pul return params, nil } +// PullsCreateParams is parameters of pulls/create operation. type PullsCreateParams struct { Owner string Repo string @@ -43795,6 +44190,7 @@ func decodePullsCreateParams(args [2]string, r *http.Request) (params PullsCreat return params, nil } +// PullsCreateReplyForReviewCommentParams is parameters of pulls/create-reply-for-review-comment operation. type PullsCreateReplyForReviewCommentParams struct { Owner string Repo string @@ -43939,6 +44335,7 @@ func decodePullsCreateReplyForReviewCommentParams(args [4]string, r *http.Reques return params, nil } +// PullsCreateReviewParams is parameters of pulls/create-review operation. type PullsCreateReviewParams struct { Owner string Repo string @@ -44049,6 +44446,7 @@ func decodePullsCreateReviewParams(args [3]string, r *http.Request) (params Pull return params, nil } +// PullsCreateReviewCommentParams is parameters of pulls/create-review-comment operation. type PullsCreateReviewCommentParams struct { Owner string Repo string @@ -44159,6 +44557,7 @@ func decodePullsCreateReviewCommentParams(args [3]string, r *http.Request) (para return params, nil } +// PullsDeletePendingReviewParams is parameters of pulls/delete-pending-review operation. type PullsDeletePendingReviewParams struct { Owner string Repo string @@ -44303,6 +44702,7 @@ func decodePullsDeletePendingReviewParams(args [4]string, r *http.Request) (para return params, nil } +// PullsDeleteReviewCommentParams is parameters of pulls/delete-review-comment operation. type PullsDeleteReviewCommentParams struct { Owner string Repo string @@ -44414,6 +44814,7 @@ func decodePullsDeleteReviewCommentParams(args [3]string, r *http.Request) (para return params, nil } +// PullsDismissReviewParams is parameters of pulls/dismiss-review operation. type PullsDismissReviewParams struct { Owner string Repo string @@ -44558,6 +44959,7 @@ func decodePullsDismissReviewParams(args [4]string, r *http.Request) (params Pul return params, nil } +// PullsGetParams is parameters of pulls/get operation. type PullsGetParams struct { Owner string Repo string @@ -44668,6 +45070,7 @@ func decodePullsGetParams(args [3]string, r *http.Request) (params PullsGetParam return params, nil } +// PullsGetReviewParams is parameters of pulls/get-review operation. type PullsGetReviewParams struct { Owner string Repo string @@ -44812,6 +45215,7 @@ func decodePullsGetReviewParams(args [4]string, r *http.Request) (params PullsGe return params, nil } +// PullsGetReviewCommentParams is parameters of pulls/get-review-comment operation. type PullsGetReviewCommentParams struct { Owner string Repo string @@ -44923,6 +45327,7 @@ func decodePullsGetReviewCommentParams(args [3]string, r *http.Request) (params return params, nil } +// PullsListParams is parameters of pulls/list operation. type PullsListParams struct { Owner string Repo string @@ -45342,6 +45747,7 @@ func decodePullsListParams(args [2]string, r *http.Request) (params PullsListPar return params, nil } +// PullsListCommentsForReviewParams is parameters of pulls/list-comments-for-review operation. type PullsListCommentsForReviewParams struct { Owner string Repo string @@ -45575,6 +45981,7 @@ func decodePullsListCommentsForReviewParams(args [4]string, r *http.Request) (pa return params, nil } +// PullsListCommitsParams is parameters of pulls/list-commits operation. type PullsListCommitsParams struct { Owner string Repo string @@ -45774,6 +46181,7 @@ func decodePullsListCommitsParams(args [3]string, r *http.Request) (params Pulls return params, nil } +// PullsListFilesParams is parameters of pulls/list-files operation. type PullsListFilesParams struct { Owner string Repo string @@ -45973,6 +46381,7 @@ func decodePullsListFilesParams(args [3]string, r *http.Request) (params PullsLi return params, nil } +// PullsListRequestedReviewersParams is parameters of pulls/list-requested-reviewers operation. type PullsListRequestedReviewersParams struct { Owner string Repo string @@ -46172,6 +46581,7 @@ func decodePullsListRequestedReviewersParams(args [3]string, r *http.Request) (p return params, nil } +// PullsListReviewCommentsParams is parameters of pulls/list-review-comments operation. type PullsListReviewCommentsParams struct { Owner string Repo string @@ -46524,6 +46934,7 @@ func decodePullsListReviewCommentsParams(args [3]string, r *http.Request) (param return params, nil } +// PullsListReviewCommentsForRepoParams is parameters of pulls/list-review-comments-for-repo operation. type PullsListReviewCommentsForRepoParams struct { Owner string Repo string @@ -46837,6 +47248,7 @@ func decodePullsListReviewCommentsForRepoParams(args [2]string, r *http.Request) return params, nil } +// PullsListReviewsParams is parameters of pulls/list-reviews operation. type PullsListReviewsParams struct { Owner string Repo string @@ -47036,6 +47448,7 @@ func decodePullsListReviewsParams(args [3]string, r *http.Request) (params Pulls return params, nil } +// PullsMergeParams is parameters of pulls/merge operation. type PullsMergeParams struct { Owner string Repo string @@ -47146,6 +47559,7 @@ func decodePullsMergeParams(args [3]string, r *http.Request) (params PullsMergeP return params, nil } +// PullsRemoveRequestedReviewersParams is parameters of pulls/remove-requested-reviewers operation. type PullsRemoveRequestedReviewersParams struct { Owner string Repo string @@ -47256,6 +47670,7 @@ func decodePullsRemoveRequestedReviewersParams(args [3]string, r *http.Request) return params, nil } +// PullsSubmitReviewParams is parameters of pulls/submit-review operation. type PullsSubmitReviewParams struct { Owner string Repo string @@ -47400,6 +47815,7 @@ func decodePullsSubmitReviewParams(args [4]string, r *http.Request) (params Pull return params, nil } +// PullsUpdateParams is parameters of pulls/update operation. type PullsUpdateParams struct { Owner string Repo string @@ -47510,6 +47926,7 @@ func decodePullsUpdateParams(args [3]string, r *http.Request) (params PullsUpdat return params, nil } +// PullsUpdateBranchParams is parameters of pulls/update-branch operation. type PullsUpdateBranchParams struct { Owner string Repo string @@ -47620,6 +48037,7 @@ func decodePullsUpdateBranchParams(args [3]string, r *http.Request) (params Pull return params, nil } +// PullsUpdateReviewParams is parameters of pulls/update-review operation. type PullsUpdateReviewParams struct { Owner string Repo string @@ -47764,6 +48182,7 @@ func decodePullsUpdateReviewParams(args [4]string, r *http.Request) (params Pull return params, nil } +// PullsUpdateReviewCommentParams is parameters of pulls/update-review-comment operation. type PullsUpdateReviewCommentParams struct { Owner string Repo string @@ -47875,6 +48294,7 @@ func decodePullsUpdateReviewCommentParams(args [3]string, r *http.Request) (para return params, nil } +// ReactionsCreateForCommitCommentParams is parameters of reactions/create-for-commit-comment operation. type ReactionsCreateForCommitCommentParams struct { Owner string Repo string @@ -47986,6 +48406,7 @@ func decodeReactionsCreateForCommitCommentParams(args [3]string, r *http.Request return params, nil } +// ReactionsCreateForIssueParams is parameters of reactions/create-for-issue operation. type ReactionsCreateForIssueParams struct { Owner string Repo string @@ -48097,6 +48518,7 @@ func decodeReactionsCreateForIssueParams(args [3]string, r *http.Request) (param return params, nil } +// ReactionsCreateForIssueCommentParams is parameters of reactions/create-for-issue-comment operation. type ReactionsCreateForIssueCommentParams struct { Owner string Repo string @@ -48208,6 +48630,7 @@ func decodeReactionsCreateForIssueCommentParams(args [3]string, r *http.Request) return params, nil } +// ReactionsCreateForPullRequestReviewCommentParams is parameters of reactions/create-for-pull-request-review-comment operation. type ReactionsCreateForPullRequestReviewCommentParams struct { Owner string Repo string @@ -48319,6 +48742,7 @@ func decodeReactionsCreateForPullRequestReviewCommentParams(args [3]string, r *h return params, nil } +// ReactionsCreateForReleaseParams is parameters of reactions/create-for-release operation. type ReactionsCreateForReleaseParams struct { Owner string Repo string @@ -48430,6 +48854,7 @@ func decodeReactionsCreateForReleaseParams(args [3]string, r *http.Request) (par return params, nil } +// ReactionsCreateForTeamDiscussionCommentInOrgParams is parameters of reactions/create-for-team-discussion-comment-in-org operation. type ReactionsCreateForTeamDiscussionCommentInOrgParams struct { Org string // Team_slug parameter. @@ -48574,6 +48999,7 @@ func decodeReactionsCreateForTeamDiscussionCommentInOrgParams(args [4]string, r return params, nil } +// ReactionsCreateForTeamDiscussionCommentLegacyParams is parameters of reactions/create-for-team-discussion-comment-legacy operation. type ReactionsCreateForTeamDiscussionCommentLegacyParams struct { TeamID int DiscussionNumber int @@ -48684,6 +49110,7 @@ func decodeReactionsCreateForTeamDiscussionCommentLegacyParams(args [3]string, r return params, nil } +// ReactionsCreateForTeamDiscussionInOrgParams is parameters of reactions/create-for-team-discussion-in-org operation. type ReactionsCreateForTeamDiscussionInOrgParams struct { Org string // Team_slug parameter. @@ -48795,6 +49222,7 @@ func decodeReactionsCreateForTeamDiscussionInOrgParams(args [3]string, r *http.R return params, nil } +// ReactionsCreateForTeamDiscussionLegacyParams is parameters of reactions/create-for-team-discussion-legacy operation. type ReactionsCreateForTeamDiscussionLegacyParams struct { TeamID int DiscussionNumber int @@ -48872,6 +49300,7 @@ func decodeReactionsCreateForTeamDiscussionLegacyParams(args [2]string, r *http. return params, nil } +// ReactionsDeleteForCommitCommentParams is parameters of reactions/delete-for-commit-comment operation. type ReactionsDeleteForCommitCommentParams struct { Owner string Repo string @@ -49016,6 +49445,7 @@ func decodeReactionsDeleteForCommitCommentParams(args [4]string, r *http.Request return params, nil } +// ReactionsDeleteForIssueParams is parameters of reactions/delete-for-issue operation. type ReactionsDeleteForIssueParams struct { Owner string Repo string @@ -49160,6 +49590,7 @@ func decodeReactionsDeleteForIssueParams(args [4]string, r *http.Request) (param return params, nil } +// ReactionsDeleteForIssueCommentParams is parameters of reactions/delete-for-issue-comment operation. type ReactionsDeleteForIssueCommentParams struct { Owner string Repo string @@ -49304,6 +49735,7 @@ func decodeReactionsDeleteForIssueCommentParams(args [4]string, r *http.Request) return params, nil } +// ReactionsDeleteForPullRequestCommentParams is parameters of reactions/delete-for-pull-request-comment operation. type ReactionsDeleteForPullRequestCommentParams struct { Owner string Repo string @@ -49448,6 +49880,7 @@ func decodeReactionsDeleteForPullRequestCommentParams(args [4]string, r *http.Re return params, nil } +// ReactionsDeleteForTeamDiscussionParams is parameters of reactions/delete-for-team-discussion operation. type ReactionsDeleteForTeamDiscussionParams struct { Org string // Team_slug parameter. @@ -49592,6 +50025,7 @@ func decodeReactionsDeleteForTeamDiscussionParams(args [4]string, r *http.Reques return params, nil } +// ReactionsDeleteForTeamDiscussionCommentParams is parameters of reactions/delete-for-team-discussion-comment operation. type ReactionsDeleteForTeamDiscussionCommentParams struct { Org string // Team_slug parameter. @@ -49769,6 +50203,7 @@ func decodeReactionsDeleteForTeamDiscussionCommentParams(args [5]string, r *http return params, nil } +// ReactionsDeleteLegacyParams is parameters of reactions/delete-legacy operation. type ReactionsDeleteLegacyParams struct { ReactionID int } @@ -49813,6 +50248,7 @@ func decodeReactionsDeleteLegacyParams(args [1]string, r *http.Request) (params return params, nil } +// ReactionsListForCommitCommentParams is parameters of reactions/list-for-commit-comment operation. type ReactionsListForCommitCommentParams struct { Owner string Repo string @@ -50068,6 +50504,7 @@ func decodeReactionsListForCommitCommentParams(args [3]string, r *http.Request) return params, nil } +// ReactionsListForIssueParams is parameters of reactions/list-for-issue operation. type ReactionsListForIssueParams struct { Owner string Repo string @@ -50323,6 +50760,7 @@ func decodeReactionsListForIssueParams(args [3]string, r *http.Request) (params return params, nil } +// ReactionsListForIssueCommentParams is parameters of reactions/list-for-issue-comment operation. type ReactionsListForIssueCommentParams struct { Owner string Repo string @@ -50578,6 +51016,7 @@ func decodeReactionsListForIssueCommentParams(args [3]string, r *http.Request) ( return params, nil } +// ReactionsListForPullRequestReviewCommentParams is parameters of reactions/list-for-pull-request-review-comment operation. type ReactionsListForPullRequestReviewCommentParams struct { Owner string Repo string @@ -50833,6 +51272,7 @@ func decodeReactionsListForPullRequestReviewCommentParams(args [3]string, r *htt return params, nil } +// ReactionsListForTeamDiscussionCommentInOrgParams is parameters of reactions/list-for-team-discussion-comment-in-org operation. type ReactionsListForTeamDiscussionCommentInOrgParams struct { Org string // Team_slug parameter. @@ -51121,6 +51561,7 @@ func decodeReactionsListForTeamDiscussionCommentInOrgParams(args [4]string, r *h return params, nil } +// ReactionsListForTeamDiscussionCommentLegacyParams is parameters of reactions/list-for-team-discussion-comment-legacy operation. type ReactionsListForTeamDiscussionCommentLegacyParams struct { TeamID int DiscussionNumber int @@ -51375,6 +51816,7 @@ func decodeReactionsListForTeamDiscussionCommentLegacyParams(args [3]string, r * return params, nil } +// ReactionsListForTeamDiscussionInOrgParams is parameters of reactions/list-for-team-discussion-in-org operation. type ReactionsListForTeamDiscussionInOrgParams struct { Org string // Team_slug parameter. @@ -51630,6 +52072,7 @@ func decodeReactionsListForTeamDiscussionInOrgParams(args [3]string, r *http.Req return params, nil } +// ReactionsListForTeamDiscussionLegacyParams is parameters of reactions/list-for-team-discussion-legacy operation. type ReactionsListForTeamDiscussionLegacyParams struct { TeamID int DiscussionNumber int @@ -51851,6 +52294,7 @@ func decodeReactionsListForTeamDiscussionLegacyParams(args [2]string, r *http.Re return params, nil } +// ReposAcceptInvitationParams is parameters of repos/accept-invitation operation. type ReposAcceptInvitationParams struct { // Invitation_id parameter. InvitationID int @@ -51896,6 +52340,7 @@ func decodeReposAcceptInvitationParams(args [1]string, r *http.Request) (params return params, nil } +// ReposAddAppAccessRestrictionsParams is parameters of repos/add-app-access-restrictions operation. type ReposAddAppAccessRestrictionsParams struct { Owner string Repo string @@ -52007,6 +52452,7 @@ func decodeReposAddAppAccessRestrictionsParams(args [3]string, r *http.Request) return params, nil } +// ReposAddCollaboratorParams is parameters of repos/add-collaborator operation. type ReposAddCollaboratorParams struct { Owner string Repo string @@ -52117,6 +52563,7 @@ func decodeReposAddCollaboratorParams(args [3]string, r *http.Request) (params R return params, nil } +// ReposAddStatusCheckContextsParams is parameters of repos/add-status-check-contexts operation. type ReposAddStatusCheckContextsParams struct { Owner string Repo string @@ -52228,6 +52675,7 @@ func decodeReposAddStatusCheckContextsParams(args [3]string, r *http.Request) (p return params, nil } +// ReposAddTeamAccessRestrictionsParams is parameters of repos/add-team-access-restrictions operation. type ReposAddTeamAccessRestrictionsParams struct { Owner string Repo string @@ -52339,6 +52787,7 @@ func decodeReposAddTeamAccessRestrictionsParams(args [3]string, r *http.Request) return params, nil } +// ReposAddUserAccessRestrictionsParams is parameters of repos/add-user-access-restrictions operation. type ReposAddUserAccessRestrictionsParams struct { Owner string Repo string @@ -52450,6 +52899,7 @@ func decodeReposAddUserAccessRestrictionsParams(args [3]string, r *http.Request) return params, nil } +// ReposCheckCollaboratorParams is parameters of repos/check-collaborator operation. type ReposCheckCollaboratorParams struct { Owner string Repo string @@ -52560,6 +53010,7 @@ func decodeReposCheckCollaboratorParams(args [3]string, r *http.Request) (params return params, nil } +// ReposCheckVulnerabilityAlertsParams is parameters of repos/check-vulnerability-alerts operation. type ReposCheckVulnerabilityAlertsParams struct { Owner string Repo string @@ -52637,6 +53088,7 @@ func decodeReposCheckVulnerabilityAlertsParams(args [2]string, r *http.Request) return params, nil } +// ReposCompareCommitsParams is parameters of repos/compare-commits operation. type ReposCompareCommitsParams struct { Owner string Repo string @@ -52837,6 +53289,7 @@ func decodeReposCompareCommitsParams(args [3]string, r *http.Request) (params Re return params, nil } +// ReposCreateAutolinkParams is parameters of repos/create-autolink operation. type ReposCreateAutolinkParams struct { Owner string Repo string @@ -52914,6 +53367,7 @@ func decodeReposCreateAutolinkParams(args [2]string, r *http.Request) (params Re return params, nil } +// ReposCreateCommitCommentParams is parameters of repos/create-commit-comment operation. type ReposCreateCommitCommentParams struct { Owner string Repo string @@ -53025,6 +53479,7 @@ func decodeReposCreateCommitCommentParams(args [3]string, r *http.Request) (para return params, nil } +// ReposCreateCommitSignatureProtectionParams is parameters of repos/create-commit-signature-protection operation. type ReposCreateCommitSignatureProtectionParams struct { Owner string Repo string @@ -53136,6 +53591,7 @@ func decodeReposCreateCommitSignatureProtectionParams(args [3]string, r *http.Re return params, nil } +// ReposCreateCommitStatusParams is parameters of repos/create-commit-status operation. type ReposCreateCommitStatusParams struct { Owner string Repo string @@ -53246,6 +53702,7 @@ func decodeReposCreateCommitStatusParams(args [3]string, r *http.Request) (param return params, nil } +// ReposCreateDeployKeyParams is parameters of repos/create-deploy-key operation. type ReposCreateDeployKeyParams struct { Owner string Repo string @@ -53323,6 +53780,7 @@ func decodeReposCreateDeployKeyParams(args [2]string, r *http.Request) (params R return params, nil } +// ReposCreateDeploymentParams is parameters of repos/create-deployment operation. type ReposCreateDeploymentParams struct { Owner string Repo string @@ -53400,6 +53858,7 @@ func decodeReposCreateDeploymentParams(args [2]string, r *http.Request) (params return params, nil } +// ReposCreateDeploymentStatusParams is parameters of repos/create-deployment-status operation. type ReposCreateDeploymentStatusParams struct { Owner string Repo string @@ -53511,6 +53970,7 @@ func decodeReposCreateDeploymentStatusParams(args [3]string, r *http.Request) (p return params, nil } +// ReposCreateDispatchEventParams is parameters of repos/create-dispatch-event operation. type ReposCreateDispatchEventParams struct { Owner string Repo string @@ -53588,6 +54048,7 @@ func decodeReposCreateDispatchEventParams(args [2]string, r *http.Request) (para return params, nil } +// ReposCreateForkParams is parameters of repos/create-fork operation. type ReposCreateForkParams struct { Owner string Repo string @@ -53665,6 +54126,7 @@ func decodeReposCreateForkParams(args [2]string, r *http.Request) (params ReposC return params, nil } +// ReposCreateInOrgParams is parameters of repos/create-in-org operation. type ReposCreateInOrgParams struct { Org string } @@ -53709,6 +54171,7 @@ func decodeReposCreateInOrgParams(args [1]string, r *http.Request) (params Repos return params, nil } +// ReposCreateOrUpdateFileContentsParams is parameters of repos/create-or-update-file-contents operation. type ReposCreateOrUpdateFileContentsParams struct { Owner string Repo string @@ -53820,6 +54283,7 @@ func decodeReposCreateOrUpdateFileContentsParams(args [3]string, r *http.Request return params, nil } +// ReposCreatePagesSiteParams is parameters of repos/create-pages-site operation. type ReposCreatePagesSiteParams struct { Owner string Repo string @@ -53897,6 +54361,7 @@ func decodeReposCreatePagesSiteParams(args [2]string, r *http.Request) (params R return params, nil } +// ReposCreateReleaseParams is parameters of repos/create-release operation. type ReposCreateReleaseParams struct { Owner string Repo string @@ -53974,6 +54439,7 @@ func decodeReposCreateReleaseParams(args [2]string, r *http.Request) (params Rep return params, nil } +// ReposCreateUsingTemplateParams is parameters of repos/create-using-template operation. type ReposCreateUsingTemplateParams struct { TemplateOwner string TemplateRepo string @@ -54051,6 +54517,7 @@ func decodeReposCreateUsingTemplateParams(args [2]string, r *http.Request) (para return params, nil } +// ReposCreateWebhookParams is parameters of repos/create-webhook operation. type ReposCreateWebhookParams struct { Owner string Repo string @@ -54128,6 +54595,7 @@ func decodeReposCreateWebhookParams(args [2]string, r *http.Request) (params Rep return params, nil } +// ReposDeclineInvitationParams is parameters of repos/decline-invitation operation. type ReposDeclineInvitationParams struct { // Invitation_id parameter. InvitationID int @@ -54173,6 +54641,7 @@ func decodeReposDeclineInvitationParams(args [1]string, r *http.Request) (params return params, nil } +// ReposDeleteParams is parameters of repos/delete operation. type ReposDeleteParams struct { Owner string Repo string @@ -54250,6 +54719,7 @@ func decodeReposDeleteParams(args [2]string, r *http.Request) (params ReposDelet return params, nil } +// ReposDeleteAccessRestrictionsParams is parameters of repos/delete-access-restrictions operation. type ReposDeleteAccessRestrictionsParams struct { Owner string Repo string @@ -54361,6 +54831,7 @@ func decodeReposDeleteAccessRestrictionsParams(args [3]string, r *http.Request) return params, nil } +// ReposDeleteAdminBranchProtectionParams is parameters of repos/delete-admin-branch-protection operation. type ReposDeleteAdminBranchProtectionParams struct { Owner string Repo string @@ -54472,6 +54943,7 @@ func decodeReposDeleteAdminBranchProtectionParams(args [3]string, r *http.Reques return params, nil } +// ReposDeleteAnEnvironmentParams is parameters of repos/delete-an-environment operation. type ReposDeleteAnEnvironmentParams struct { Owner string Repo string @@ -54583,6 +55055,7 @@ func decodeReposDeleteAnEnvironmentParams(args [3]string, r *http.Request) (para return params, nil } +// ReposDeleteAutolinkParams is parameters of repos/delete-autolink operation. type ReposDeleteAutolinkParams struct { Owner string Repo string @@ -54694,6 +55167,7 @@ func decodeReposDeleteAutolinkParams(args [3]string, r *http.Request) (params Re return params, nil } +// ReposDeleteBranchProtectionParams is parameters of repos/delete-branch-protection operation. type ReposDeleteBranchProtectionParams struct { Owner string Repo string @@ -54805,6 +55279,7 @@ func decodeReposDeleteBranchProtectionParams(args [3]string, r *http.Request) (p return params, nil } +// ReposDeleteCommitCommentParams is parameters of repos/delete-commit-comment operation. type ReposDeleteCommitCommentParams struct { Owner string Repo string @@ -54916,6 +55391,7 @@ func decodeReposDeleteCommitCommentParams(args [3]string, r *http.Request) (para return params, nil } +// ReposDeleteCommitSignatureProtectionParams is parameters of repos/delete-commit-signature-protection operation. type ReposDeleteCommitSignatureProtectionParams struct { Owner string Repo string @@ -55027,6 +55503,7 @@ func decodeReposDeleteCommitSignatureProtectionParams(args [3]string, r *http.Re return params, nil } +// ReposDeleteDeployKeyParams is parameters of repos/delete-deploy-key operation. type ReposDeleteDeployKeyParams struct { Owner string Repo string @@ -55138,6 +55615,7 @@ func decodeReposDeleteDeployKeyParams(args [3]string, r *http.Request) (params R return params, nil } +// ReposDeleteDeploymentParams is parameters of repos/delete-deployment operation. type ReposDeleteDeploymentParams struct { Owner string Repo string @@ -55249,6 +55727,7 @@ func decodeReposDeleteDeploymentParams(args [3]string, r *http.Request) (params return params, nil } +// ReposDeleteFileParams is parameters of repos/delete-file operation. type ReposDeleteFileParams struct { Owner string Repo string @@ -55360,6 +55839,7 @@ func decodeReposDeleteFileParams(args [3]string, r *http.Request) (params ReposD return params, nil } +// ReposDeleteInvitationParams is parameters of repos/delete-invitation operation. type ReposDeleteInvitationParams struct { Owner string Repo string @@ -55471,6 +55951,7 @@ func decodeReposDeleteInvitationParams(args [3]string, r *http.Request) (params return params, nil } +// ReposDeletePagesSiteParams is parameters of repos/delete-pages-site operation. type ReposDeletePagesSiteParams struct { Owner string Repo string @@ -55548,6 +56029,7 @@ func decodeReposDeletePagesSiteParams(args [2]string, r *http.Request) (params R return params, nil } +// ReposDeletePullRequestReviewProtectionParams is parameters of repos/delete-pull-request-review-protection operation. type ReposDeletePullRequestReviewProtectionParams struct { Owner string Repo string @@ -55659,6 +56141,7 @@ func decodeReposDeletePullRequestReviewProtectionParams(args [3]string, r *http. return params, nil } +// ReposDeleteReleaseParams is parameters of repos/delete-release operation. type ReposDeleteReleaseParams struct { Owner string Repo string @@ -55770,6 +56253,7 @@ func decodeReposDeleteReleaseParams(args [3]string, r *http.Request) (params Rep return params, nil } +// ReposDeleteReleaseAssetParams is parameters of repos/delete-release-asset operation. type ReposDeleteReleaseAssetParams struct { Owner string Repo string @@ -55881,6 +56365,7 @@ func decodeReposDeleteReleaseAssetParams(args [3]string, r *http.Request) (param return params, nil } +// ReposDeleteWebhookParams is parameters of repos/delete-webhook operation. type ReposDeleteWebhookParams struct { Owner string Repo string @@ -55991,6 +56476,7 @@ func decodeReposDeleteWebhookParams(args [3]string, r *http.Request) (params Rep return params, nil } +// ReposDisableAutomatedSecurityFixesParams is parameters of repos/disable-automated-security-fixes operation. type ReposDisableAutomatedSecurityFixesParams struct { Owner string Repo string @@ -56068,6 +56554,7 @@ func decodeReposDisableAutomatedSecurityFixesParams(args [2]string, r *http.Requ return params, nil } +// ReposDisableLfsForRepoParams is parameters of repos/disable-lfs-for-repo operation. type ReposDisableLfsForRepoParams struct { Owner string Repo string @@ -56145,6 +56632,7 @@ func decodeReposDisableLfsForRepoParams(args [2]string, r *http.Request) (params return params, nil } +// ReposDisableVulnerabilityAlertsParams is parameters of repos/disable-vulnerability-alerts operation. type ReposDisableVulnerabilityAlertsParams struct { Owner string Repo string @@ -56222,6 +56710,7 @@ func decodeReposDisableVulnerabilityAlertsParams(args [2]string, r *http.Request return params, nil } +// ReposDownloadTarballArchiveParams is parameters of repos/download-tarball-archive operation. type ReposDownloadTarballArchiveParams struct { Owner string Repo string @@ -56332,6 +56821,7 @@ func decodeReposDownloadTarballArchiveParams(args [3]string, r *http.Request) (p return params, nil } +// ReposDownloadZipballArchiveParams is parameters of repos/download-zipball-archive operation. type ReposDownloadZipballArchiveParams struct { Owner string Repo string @@ -56442,6 +56932,7 @@ func decodeReposDownloadZipballArchiveParams(args [3]string, r *http.Request) (p return params, nil } +// ReposEnableAutomatedSecurityFixesParams is parameters of repos/enable-automated-security-fixes operation. type ReposEnableAutomatedSecurityFixesParams struct { Owner string Repo string @@ -56519,6 +57010,7 @@ func decodeReposEnableAutomatedSecurityFixesParams(args [2]string, r *http.Reque return params, nil } +// ReposEnableLfsForRepoParams is parameters of repos/enable-lfs-for-repo operation. type ReposEnableLfsForRepoParams struct { Owner string Repo string @@ -56596,6 +57088,7 @@ func decodeReposEnableLfsForRepoParams(args [2]string, r *http.Request) (params return params, nil } +// ReposEnableVulnerabilityAlertsParams is parameters of repos/enable-vulnerability-alerts operation. type ReposEnableVulnerabilityAlertsParams struct { Owner string Repo string @@ -56673,6 +57166,7 @@ func decodeReposEnableVulnerabilityAlertsParams(args [2]string, r *http.Request) return params, nil } +// ReposGetParams is parameters of repos/get operation. type ReposGetParams struct { Owner string Repo string @@ -56750,6 +57244,7 @@ func decodeReposGetParams(args [2]string, r *http.Request) (params ReposGetParam return params, nil } +// ReposGetAccessRestrictionsParams is parameters of repos/get-access-restrictions operation. type ReposGetAccessRestrictionsParams struct { Owner string Repo string @@ -56861,6 +57356,7 @@ func decodeReposGetAccessRestrictionsParams(args [3]string, r *http.Request) (pa return params, nil } +// ReposGetAdminBranchProtectionParams is parameters of repos/get-admin-branch-protection operation. type ReposGetAdminBranchProtectionParams struct { Owner string Repo string @@ -56972,6 +57468,7 @@ func decodeReposGetAdminBranchProtectionParams(args [3]string, r *http.Request) return params, nil } +// ReposGetAllStatusCheckContextsParams is parameters of repos/get-all-status-check-contexts operation. type ReposGetAllStatusCheckContextsParams struct { Owner string Repo string @@ -57083,6 +57580,7 @@ func decodeReposGetAllStatusCheckContextsParams(args [3]string, r *http.Request) return params, nil } +// ReposGetAllTopicsParams is parameters of repos/get-all-topics operation. type ReposGetAllTopicsParams struct { Owner string Repo string @@ -57249,6 +57747,7 @@ func decodeReposGetAllTopicsParams(args [2]string, r *http.Request) (params Repo return params, nil } +// ReposGetAppsWithAccessToProtectedBranchParams is parameters of repos/get-apps-with-access-to-protected-branch operation. type ReposGetAppsWithAccessToProtectedBranchParams struct { Owner string Repo string @@ -57360,6 +57859,7 @@ func decodeReposGetAppsWithAccessToProtectedBranchParams(args [3]string, r *http return params, nil } +// ReposGetAutolinkParams is parameters of repos/get-autolink operation. type ReposGetAutolinkParams struct { Owner string Repo string @@ -57471,6 +57971,7 @@ func decodeReposGetAutolinkParams(args [3]string, r *http.Request) (params Repos return params, nil } +// ReposGetBranchParams is parameters of repos/get-branch operation. type ReposGetBranchParams struct { Owner string Repo string @@ -57582,6 +58083,7 @@ func decodeReposGetBranchParams(args [3]string, r *http.Request) (params ReposGe return params, nil } +// ReposGetBranchProtectionParams is parameters of repos/get-branch-protection operation. type ReposGetBranchProtectionParams struct { Owner string Repo string @@ -57693,6 +58195,7 @@ func decodeReposGetBranchProtectionParams(args [3]string, r *http.Request) (para return params, nil } +// ReposGetClonesParams is parameters of repos/get-clones operation. type ReposGetClonesParams struct { Owner string Repo string @@ -57830,6 +58333,7 @@ func decodeReposGetClonesParams(args [2]string, r *http.Request) (params ReposGe return params, nil } +// ReposGetCodeFrequencyStatsParams is parameters of repos/get-code-frequency-stats operation. type ReposGetCodeFrequencyStatsParams struct { Owner string Repo string @@ -57907,6 +58411,7 @@ func decodeReposGetCodeFrequencyStatsParams(args [2]string, r *http.Request) (pa return params, nil } +// ReposGetCollaboratorPermissionLevelParams is parameters of repos/get-collaborator-permission-level operation. type ReposGetCollaboratorPermissionLevelParams struct { Owner string Repo string @@ -58017,6 +58522,7 @@ func decodeReposGetCollaboratorPermissionLevelParams(args [3]string, r *http.Req return params, nil } +// ReposGetCombinedStatusForRefParams is parameters of repos/get-combined-status-for-ref operation. type ReposGetCombinedStatusForRefParams struct { Owner string Repo string @@ -58217,6 +58723,7 @@ func decodeReposGetCombinedStatusForRefParams(args [3]string, r *http.Request) ( return params, nil } +// ReposGetCommitParams is parameters of repos/get-commit operation. type ReposGetCommitParams struct { Owner string Repo string @@ -58417,6 +58924,7 @@ func decodeReposGetCommitParams(args [3]string, r *http.Request) (params ReposGe return params, nil } +// ReposGetCommitActivityStatsParams is parameters of repos/get-commit-activity-stats operation. type ReposGetCommitActivityStatsParams struct { Owner string Repo string @@ -58494,6 +59002,7 @@ func decodeReposGetCommitActivityStatsParams(args [2]string, r *http.Request) (p return params, nil } +// ReposGetCommitCommentParams is parameters of repos/get-commit-comment operation. type ReposGetCommitCommentParams struct { Owner string Repo string @@ -58605,6 +59114,7 @@ func decodeReposGetCommitCommentParams(args [3]string, r *http.Request) (params return params, nil } +// ReposGetCommitSignatureProtectionParams is parameters of repos/get-commit-signature-protection operation. type ReposGetCommitSignatureProtectionParams struct { Owner string Repo string @@ -58716,6 +59226,7 @@ func decodeReposGetCommitSignatureProtectionParams(args [3]string, r *http.Reque return params, nil } +// ReposGetCommunityProfileMetricsParams is parameters of repos/get-community-profile-metrics operation. type ReposGetCommunityProfileMetricsParams struct { Owner string Repo string @@ -58793,6 +59304,7 @@ func decodeReposGetCommunityProfileMetricsParams(args [2]string, r *http.Request return params, nil } +// ReposGetContributorsStatsParams is parameters of repos/get-contributors-stats operation. type ReposGetContributorsStatsParams struct { Owner string Repo string @@ -58870,6 +59382,7 @@ func decodeReposGetContributorsStatsParams(args [2]string, r *http.Request) (par return params, nil } +// ReposGetDeployKeyParams is parameters of repos/get-deploy-key operation. type ReposGetDeployKeyParams struct { Owner string Repo string @@ -58981,6 +59494,7 @@ func decodeReposGetDeployKeyParams(args [3]string, r *http.Request) (params Repo return params, nil } +// ReposGetDeploymentParams is parameters of repos/get-deployment operation. type ReposGetDeploymentParams struct { Owner string Repo string @@ -59092,6 +59606,7 @@ func decodeReposGetDeploymentParams(args [3]string, r *http.Request) (params Rep return params, nil } +// ReposGetDeploymentStatusParams is parameters of repos/get-deployment-status operation. type ReposGetDeploymentStatusParams struct { Owner string Repo string @@ -59236,6 +59751,7 @@ func decodeReposGetDeploymentStatusParams(args [4]string, r *http.Request) (para return params, nil } +// ReposGetLatestPagesBuildParams is parameters of repos/get-latest-pages-build operation. type ReposGetLatestPagesBuildParams struct { Owner string Repo string @@ -59313,6 +59829,7 @@ func decodeReposGetLatestPagesBuildParams(args [2]string, r *http.Request) (para return params, nil } +// ReposGetLatestReleaseParams is parameters of repos/get-latest-release operation. type ReposGetLatestReleaseParams struct { Owner string Repo string @@ -59390,6 +59907,7 @@ func decodeReposGetLatestReleaseParams(args [2]string, r *http.Request) (params return params, nil } +// ReposGetPagesParams is parameters of repos/get-pages operation. type ReposGetPagesParams struct { Owner string Repo string @@ -59467,6 +59985,7 @@ func decodeReposGetPagesParams(args [2]string, r *http.Request) (params ReposGet return params, nil } +// ReposGetPagesBuildParams is parameters of repos/get-pages-build operation. type ReposGetPagesBuildParams struct { Owner string Repo string @@ -59577,6 +60096,7 @@ func decodeReposGetPagesBuildParams(args [3]string, r *http.Request) (params Rep return params, nil } +// ReposGetPagesHealthCheckParams is parameters of repos/get-pages-health-check operation. type ReposGetPagesHealthCheckParams struct { Owner string Repo string @@ -59654,6 +60174,7 @@ func decodeReposGetPagesHealthCheckParams(args [2]string, r *http.Request) (para return params, nil } +// ReposGetParticipationStatsParams is parameters of repos/get-participation-stats operation. type ReposGetParticipationStatsParams struct { Owner string Repo string @@ -59731,6 +60252,7 @@ func decodeReposGetParticipationStatsParams(args [2]string, r *http.Request) (pa return params, nil } +// ReposGetPullRequestReviewProtectionParams is parameters of repos/get-pull-request-review-protection operation. type ReposGetPullRequestReviewProtectionParams struct { Owner string Repo string @@ -59842,6 +60364,7 @@ func decodeReposGetPullRequestReviewProtectionParams(args [3]string, r *http.Req return params, nil } +// ReposGetPunchCardStatsParams is parameters of repos/get-punch-card-stats operation. type ReposGetPunchCardStatsParams struct { Owner string Repo string @@ -59919,6 +60442,7 @@ func decodeReposGetPunchCardStatsParams(args [2]string, r *http.Request) (params return params, nil } +// ReposGetReadmeParams is parameters of repos/get-readme operation. type ReposGetReadmeParams struct { Owner string Repo string @@ -60036,6 +60560,7 @@ func decodeReposGetReadmeParams(args [2]string, r *http.Request) (params ReposGe return params, nil } +// ReposGetReadmeInDirectoryParams is parameters of repos/get-readme-in-directory operation. type ReposGetReadmeInDirectoryParams struct { Owner string Repo string @@ -60187,6 +60712,7 @@ func decodeReposGetReadmeInDirectoryParams(args [3]string, r *http.Request) (par return params, nil } +// ReposGetReleaseParams is parameters of repos/get-release operation. type ReposGetReleaseParams struct { Owner string Repo string @@ -60298,6 +60824,7 @@ func decodeReposGetReleaseParams(args [3]string, r *http.Request) (params ReposG return params, nil } +// ReposGetReleaseAssetParams is parameters of repos/get-release-asset operation. type ReposGetReleaseAssetParams struct { Owner string Repo string @@ -60409,6 +60936,7 @@ func decodeReposGetReleaseAssetParams(args [3]string, r *http.Request) (params R return params, nil } +// ReposGetReleaseByTagParams is parameters of repos/get-release-by-tag operation. type ReposGetReleaseByTagParams struct { Owner string Repo string @@ -60520,6 +61048,7 @@ func decodeReposGetReleaseByTagParams(args [3]string, r *http.Request) (params R return params, nil } +// ReposGetStatusChecksProtectionParams is parameters of repos/get-status-checks-protection operation. type ReposGetStatusChecksProtectionParams struct { Owner string Repo string @@ -60631,6 +61160,7 @@ func decodeReposGetStatusChecksProtectionParams(args [3]string, r *http.Request) return params, nil } +// ReposGetTeamsWithAccessToProtectedBranchParams is parameters of repos/get-teams-with-access-to-protected-branch operation. type ReposGetTeamsWithAccessToProtectedBranchParams struct { Owner string Repo string @@ -60742,6 +61272,7 @@ func decodeReposGetTeamsWithAccessToProtectedBranchParams(args [3]string, r *htt return params, nil } +// ReposGetTopPathsParams is parameters of repos/get-top-paths operation. type ReposGetTopPathsParams struct { Owner string Repo string @@ -60819,6 +61350,7 @@ func decodeReposGetTopPathsParams(args [2]string, r *http.Request) (params Repos return params, nil } +// ReposGetTopReferrersParams is parameters of repos/get-top-referrers operation. type ReposGetTopReferrersParams struct { Owner string Repo string @@ -60896,6 +61428,7 @@ func decodeReposGetTopReferrersParams(args [2]string, r *http.Request) (params R return params, nil } +// ReposGetUsersWithAccessToProtectedBranchParams is parameters of repos/get-users-with-access-to-protected-branch operation. type ReposGetUsersWithAccessToProtectedBranchParams struct { Owner string Repo string @@ -61007,6 +61540,7 @@ func decodeReposGetUsersWithAccessToProtectedBranchParams(args [3]string, r *htt return params, nil } +// ReposGetViewsParams is parameters of repos/get-views operation. type ReposGetViewsParams struct { Owner string Repo string @@ -61144,6 +61678,7 @@ func decodeReposGetViewsParams(args [2]string, r *http.Request) (params ReposGet return params, nil } +// ReposGetWebhookParams is parameters of repos/get-webhook operation. type ReposGetWebhookParams struct { Owner string Repo string @@ -61254,6 +61789,7 @@ func decodeReposGetWebhookParams(args [3]string, r *http.Request) (params ReposG return params, nil } +// ReposGetWebhookConfigForRepoParams is parameters of repos/get-webhook-config-for-repo operation. type ReposGetWebhookConfigForRepoParams struct { Owner string Repo string @@ -61364,6 +61900,7 @@ func decodeReposGetWebhookConfigForRepoParams(args [3]string, r *http.Request) ( return params, nil } +// ReposGetWebhookDeliveryParams is parameters of repos/get-webhook-delivery operation. type ReposGetWebhookDeliveryParams struct { Owner string Repo string @@ -61507,6 +62044,7 @@ func decodeReposGetWebhookDeliveryParams(args [4]string, r *http.Request) (param return params, nil } +// ReposListAutolinksParams is parameters of repos/list-autolinks operation. type ReposListAutolinksParams struct { Owner string Repo string @@ -61629,6 +62167,7 @@ func decodeReposListAutolinksParams(args [2]string, r *http.Request) (params Rep return params, nil } +// ReposListBranchesParams is parameters of repos/list-branches operation. type ReposListBranchesParams struct { Owner string Repo string @@ -61835,6 +62374,7 @@ func decodeReposListBranchesParams(args [2]string, r *http.Request) (params Repo return params, nil } +// ReposListBranchesForHeadCommitParams is parameters of repos/list-branches-for-head-commit operation. type ReposListBranchesForHeadCommitParams struct { Owner string Repo string @@ -61946,6 +62486,7 @@ func decodeReposListBranchesForHeadCommitParams(args [3]string, r *http.Request) return params, nil } +// ReposListCollaboratorsParams is parameters of repos/list-collaborators operation. type ReposListCollaboratorsParams struct { Owner string Repo string @@ -62175,6 +62716,7 @@ func decodeReposListCollaboratorsParams(args [2]string, r *http.Request) (params return params, nil } +// ReposListCommentsForCommitParams is parameters of repos/list-comments-for-commit operation. type ReposListCommentsForCommitParams struct { Owner string Repo string @@ -62375,6 +62917,7 @@ func decodeReposListCommentsForCommitParams(args [3]string, r *http.Request) (pa return params, nil } +// ReposListCommitCommentsForRepoParams is parameters of repos/list-commit-comments-for-repo operation. type ReposListCommitCommentsForRepoParams struct { Owner string Repo string @@ -62541,6 +63084,7 @@ func decodeReposListCommitCommentsForRepoParams(args [2]string, r *http.Request) return params, nil } +// ReposListCommitStatusesForRefParams is parameters of repos/list-commit-statuses-for-ref operation. type ReposListCommitStatusesForRefParams struct { Owner string Repo string @@ -62741,6 +63285,7 @@ func decodeReposListCommitStatusesForRefParams(args [3]string, r *http.Request) return params, nil } +// ReposListCommitsParams is parameters of repos/list-commits operation. type ReposListCommitsParams struct { Owner string Repo string @@ -63105,6 +63650,7 @@ func decodeReposListCommitsParams(args [2]string, r *http.Request) (params Repos return params, nil } +// ReposListContributorsParams is parameters of repos/list-contributors operation. type ReposListContributorsParams struct { Owner string Repo string @@ -63310,6 +63856,7 @@ func decodeReposListContributorsParams(args [2]string, r *http.Request) (params return params, nil } +// ReposListDeployKeysParams is parameters of repos/list-deploy-keys operation. type ReposListDeployKeysParams struct { Owner string Repo string @@ -63476,6 +64023,7 @@ func decodeReposListDeployKeysParams(args [2]string, r *http.Request) (params Re return params, nil } +// ReposListDeploymentStatusesParams is parameters of repos/list-deployment-statuses operation. type ReposListDeploymentStatusesParams struct { Owner string Repo string @@ -63676,6 +64224,7 @@ func decodeReposListDeploymentStatusesParams(args [3]string, r *http.Request) (p return params, nil } +// ReposListDeploymentsParams is parameters of repos/list-deployments operation. type ReposListDeploymentsParams struct { Owner string Repo string @@ -64018,6 +64567,7 @@ func decodeReposListDeploymentsParams(args [2]string, r *http.Request) (params R return params, nil } +// ReposListForAuthenticatedUserParams is parameters of repos/list-for-authenticated-user operation. type ReposListForAuthenticatedUserParams struct { // Can be one of `all`, `public`, or `private`. Note: For GitHub AE, can be one of `all`, `internal`, // or `private`. @@ -64481,6 +65031,7 @@ func decodeReposListForAuthenticatedUserParams(args [0]string, r *http.Request) return params, nil } +// ReposListForOrgParams is parameters of repos/list-for-org operation. type ReposListForOrgParams struct { Org string // Specifies the types of repositories you want returned. Can be one of `all`, `public`, `private`, @@ -64786,6 +65337,7 @@ func decodeReposListForOrgParams(args [1]string, r *http.Request) (params ReposL return params, nil } +// ReposListForUserParams is parameters of repos/list-for-user operation. type ReposListForUserParams struct { Username string // Can be one of `all`, `owner`, `member`. @@ -65091,6 +65643,7 @@ func decodeReposListForUserParams(args [1]string, r *http.Request) (params Repos return params, nil } +// ReposListForksParams is parameters of repos/list-forks operation. type ReposListForksParams struct { Owner string Repo string @@ -65316,6 +65869,7 @@ func decodeReposListForksParams(args [2]string, r *http.Request) (params ReposLi return params, nil } +// ReposListInvitationsParams is parameters of repos/list-invitations operation. type ReposListInvitationsParams struct { Owner string Repo string @@ -65482,6 +66036,7 @@ func decodeReposListInvitationsParams(args [2]string, r *http.Request) (params R return params, nil } +// ReposListInvitationsForAuthenticatedUserParams is parameters of repos/list-invitations-for-authenticated-user operation. type ReposListInvitationsForAuthenticatedUserParams struct { // Results per page (max 100). PerPage OptInt @@ -65582,6 +66137,7 @@ func decodeReposListInvitationsForAuthenticatedUserParams(args [0]string, r *htt return params, nil } +// ReposListLanguagesParams is parameters of repos/list-languages operation. type ReposListLanguagesParams struct { Owner string Repo string @@ -65659,6 +66215,7 @@ func decodeReposListLanguagesParams(args [2]string, r *http.Request) (params Rep return params, nil } +// ReposListPagesBuildsParams is parameters of repos/list-pages-builds operation. type ReposListPagesBuildsParams struct { Owner string Repo string @@ -65825,6 +66382,7 @@ func decodeReposListPagesBuildsParams(args [2]string, r *http.Request) (params R return params, nil } +// ReposListPublicParams is parameters of repos/list-public operation. type ReposListPublicParams struct { // A repository ID. Only return repositories with an ID greater than this ID. Since OptInt @@ -65876,6 +66434,7 @@ func decodeReposListPublicParams(args [0]string, r *http.Request) (params ReposL return params, nil } +// ReposListPullRequestsAssociatedWithCommitParams is parameters of repos/list-pull-requests-associated-with-commit operation. type ReposListPullRequestsAssociatedWithCommitParams struct { Owner string Repo string @@ -66076,6 +66635,7 @@ func decodeReposListPullRequestsAssociatedWithCommitParams(args [3]string, r *ht return params, nil } +// ReposListReleaseAssetsParams is parameters of repos/list-release-assets operation. type ReposListReleaseAssetsParams struct { Owner string Repo string @@ -66276,6 +66836,7 @@ func decodeReposListReleaseAssetsParams(args [3]string, r *http.Request) (params return params, nil } +// ReposListReleasesParams is parameters of repos/list-releases operation. type ReposListReleasesParams struct { Owner string Repo string @@ -66442,6 +67003,7 @@ func decodeReposListReleasesParams(args [2]string, r *http.Request) (params Repo return params, nil } +// ReposListTagsParams is parameters of repos/list-tags operation. type ReposListTagsParams struct { Owner string Repo string @@ -66608,6 +67170,7 @@ func decodeReposListTagsParams(args [2]string, r *http.Request) (params ReposLis return params, nil } +// ReposListTeamsParams is parameters of repos/list-teams operation. type ReposListTeamsParams struct { Owner string Repo string @@ -66774,6 +67337,7 @@ func decodeReposListTeamsParams(args [2]string, r *http.Request) (params ReposLi return params, nil } +// ReposListWebhookDeliveriesParams is parameters of repos/list-webhook-deliveries operation. type ReposListWebhookDeliveriesParams struct { Owner string Repo string @@ -66969,6 +67533,7 @@ func decodeReposListWebhookDeliveriesParams(args [3]string, r *http.Request) (pa return params, nil } +// ReposListWebhooksParams is parameters of repos/list-webhooks operation. type ReposListWebhooksParams struct { Owner string Repo string @@ -67135,6 +67700,7 @@ func decodeReposListWebhooksParams(args [2]string, r *http.Request) (params Repo return params, nil } +// ReposMergeParams is parameters of repos/merge operation. type ReposMergeParams struct { Owner string Repo string @@ -67212,6 +67778,7 @@ func decodeReposMergeParams(args [2]string, r *http.Request) (params ReposMergeP return params, nil } +// ReposMergeUpstreamParams is parameters of repos/merge-upstream operation. type ReposMergeUpstreamParams struct { Owner string Repo string @@ -67289,6 +67856,7 @@ func decodeReposMergeUpstreamParams(args [2]string, r *http.Request) (params Rep return params, nil } +// ReposPingWebhookParams is parameters of repos/ping-webhook operation. type ReposPingWebhookParams struct { Owner string Repo string @@ -67399,6 +67967,7 @@ func decodeReposPingWebhookParams(args [3]string, r *http.Request) (params Repos return params, nil } +// ReposRedeliverWebhookDeliveryParams is parameters of repos/redeliver-webhook-delivery operation. type ReposRedeliverWebhookDeliveryParams struct { Owner string Repo string @@ -67542,6 +68111,7 @@ func decodeReposRedeliverWebhookDeliveryParams(args [4]string, r *http.Request) return params, nil } +// ReposRemoveAppAccessRestrictionsParams is parameters of repos/remove-app-access-restrictions operation. type ReposRemoveAppAccessRestrictionsParams struct { Owner string Repo string @@ -67653,6 +68223,7 @@ func decodeReposRemoveAppAccessRestrictionsParams(args [3]string, r *http.Reques return params, nil } +// ReposRemoveCollaboratorParams is parameters of repos/remove-collaborator operation. type ReposRemoveCollaboratorParams struct { Owner string Repo string @@ -67763,6 +68334,7 @@ func decodeReposRemoveCollaboratorParams(args [3]string, r *http.Request) (param return params, nil } +// ReposRemoveStatusCheckContextsParams is parameters of repos/remove-status-check-contexts operation. type ReposRemoveStatusCheckContextsParams struct { Owner string Repo string @@ -67874,6 +68446,7 @@ func decodeReposRemoveStatusCheckContextsParams(args [3]string, r *http.Request) return params, nil } +// ReposRemoveStatusCheckProtectionParams is parameters of repos/remove-status-check-protection operation. type ReposRemoveStatusCheckProtectionParams struct { Owner string Repo string @@ -67985,6 +68558,7 @@ func decodeReposRemoveStatusCheckProtectionParams(args [3]string, r *http.Reques return params, nil } +// ReposRemoveTeamAccessRestrictionsParams is parameters of repos/remove-team-access-restrictions operation. type ReposRemoveTeamAccessRestrictionsParams struct { Owner string Repo string @@ -68096,6 +68670,7 @@ func decodeReposRemoveTeamAccessRestrictionsParams(args [3]string, r *http.Reque return params, nil } +// ReposRemoveUserAccessRestrictionsParams is parameters of repos/remove-user-access-restrictions operation. type ReposRemoveUserAccessRestrictionsParams struct { Owner string Repo string @@ -68207,6 +68782,7 @@ func decodeReposRemoveUserAccessRestrictionsParams(args [3]string, r *http.Reque return params, nil } +// ReposRenameBranchParams is parameters of repos/rename-branch operation. type ReposRenameBranchParams struct { Owner string Repo string @@ -68318,6 +68894,7 @@ func decodeReposRenameBranchParams(args [3]string, r *http.Request) (params Repo return params, nil } +// ReposReplaceAllTopicsParams is parameters of repos/replace-all-topics operation. type ReposReplaceAllTopicsParams struct { Owner string Repo string @@ -68395,6 +68972,7 @@ func decodeReposReplaceAllTopicsParams(args [2]string, r *http.Request) (params return params, nil } +// ReposRequestPagesBuildParams is parameters of repos/request-pages-build operation. type ReposRequestPagesBuildParams struct { Owner string Repo string @@ -68472,6 +69050,7 @@ func decodeReposRequestPagesBuildParams(args [2]string, r *http.Request) (params return params, nil } +// ReposSetAdminBranchProtectionParams is parameters of repos/set-admin-branch-protection operation. type ReposSetAdminBranchProtectionParams struct { Owner string Repo string @@ -68583,6 +69162,7 @@ func decodeReposSetAdminBranchProtectionParams(args [3]string, r *http.Request) return params, nil } +// ReposSetAppAccessRestrictionsParams is parameters of repos/set-app-access-restrictions operation. type ReposSetAppAccessRestrictionsParams struct { Owner string Repo string @@ -68694,6 +69274,7 @@ func decodeReposSetAppAccessRestrictionsParams(args [3]string, r *http.Request) return params, nil } +// ReposSetStatusCheckContextsParams is parameters of repos/set-status-check-contexts operation. type ReposSetStatusCheckContextsParams struct { Owner string Repo string @@ -68805,6 +69386,7 @@ func decodeReposSetStatusCheckContextsParams(args [3]string, r *http.Request) (p return params, nil } +// ReposSetTeamAccessRestrictionsParams is parameters of repos/set-team-access-restrictions operation. type ReposSetTeamAccessRestrictionsParams struct { Owner string Repo string @@ -68916,6 +69498,7 @@ func decodeReposSetTeamAccessRestrictionsParams(args [3]string, r *http.Request) return params, nil } +// ReposSetUserAccessRestrictionsParams is parameters of repos/set-user-access-restrictions operation. type ReposSetUserAccessRestrictionsParams struct { Owner string Repo string @@ -69027,6 +69610,7 @@ func decodeReposSetUserAccessRestrictionsParams(args [3]string, r *http.Request) return params, nil } +// ReposTestPushWebhookParams is parameters of repos/test-push-webhook operation. type ReposTestPushWebhookParams struct { Owner string Repo string @@ -69137,6 +69721,7 @@ func decodeReposTestPushWebhookParams(args [3]string, r *http.Request) (params R return params, nil } +// ReposTransferParams is parameters of repos/transfer operation. type ReposTransferParams struct { Owner string Repo string @@ -69214,6 +69799,7 @@ func decodeReposTransferParams(args [2]string, r *http.Request) (params ReposTra return params, nil } +// ReposUpdateParams is parameters of repos/update operation. type ReposUpdateParams struct { Owner string Repo string @@ -69291,6 +69877,7 @@ func decodeReposUpdateParams(args [2]string, r *http.Request) (params ReposUpdat return params, nil } +// ReposUpdateBranchProtectionParams is parameters of repos/update-branch-protection operation. type ReposUpdateBranchProtectionParams struct { Owner string Repo string @@ -69402,6 +69989,7 @@ func decodeReposUpdateBranchProtectionParams(args [3]string, r *http.Request) (p return params, nil } +// ReposUpdateCommitCommentParams is parameters of repos/update-commit-comment operation. type ReposUpdateCommitCommentParams struct { Owner string Repo string @@ -69513,6 +70101,7 @@ func decodeReposUpdateCommitCommentParams(args [3]string, r *http.Request) (para return params, nil } +// ReposUpdateInvitationParams is parameters of repos/update-invitation operation. type ReposUpdateInvitationParams struct { Owner string Repo string @@ -69624,6 +70213,7 @@ func decodeReposUpdateInvitationParams(args [3]string, r *http.Request) (params return params, nil } +// ReposUpdatePullRequestReviewProtectionParams is parameters of repos/update-pull-request-review-protection operation. type ReposUpdatePullRequestReviewProtectionParams struct { Owner string Repo string @@ -69735,6 +70325,7 @@ func decodeReposUpdatePullRequestReviewProtectionParams(args [3]string, r *http. return params, nil } +// ReposUpdateReleaseParams is parameters of repos/update-release operation. type ReposUpdateReleaseParams struct { Owner string Repo string @@ -69846,6 +70437,7 @@ func decodeReposUpdateReleaseParams(args [3]string, r *http.Request) (params Rep return params, nil } +// ReposUpdateReleaseAssetParams is parameters of repos/update-release-asset operation. type ReposUpdateReleaseAssetParams struct { Owner string Repo string @@ -69957,6 +70549,7 @@ func decodeReposUpdateReleaseAssetParams(args [3]string, r *http.Request) (param return params, nil } +// ReposUpdateStatusCheckProtectionParams is parameters of repos/update-status-check-protection operation. type ReposUpdateStatusCheckProtectionParams struct { Owner string Repo string @@ -70068,6 +70661,7 @@ func decodeReposUpdateStatusCheckProtectionParams(args [3]string, r *http.Reques return params, nil } +// ReposUpdateWebhookParams is parameters of repos/update-webhook operation. type ReposUpdateWebhookParams struct { Owner string Repo string @@ -70178,6 +70772,7 @@ func decodeReposUpdateWebhookParams(args [3]string, r *http.Request) (params Rep return params, nil } +// ReposUpdateWebhookConfigForRepoParams is parameters of repos/update-webhook-config-for-repo operation. type ReposUpdateWebhookConfigForRepoParams struct { Owner string Repo string @@ -70288,6 +70883,7 @@ func decodeReposUpdateWebhookConfigForRepoParams(args [3]string, r *http.Request return params, nil } +// ScimDeleteUserFromOrgParams is parameters of scim/delete-user-from-org operation. type ScimDeleteUserFromOrgParams struct { Org string // Scim_user_id parameter. @@ -70366,6 +70962,7 @@ func decodeScimDeleteUserFromOrgParams(args [2]string, r *http.Request) (params return params, nil } +// SearchCodeParams is parameters of search/code operation. type SearchCodeParams struct { // The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your // search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To @@ -70618,6 +71215,7 @@ func decodeSearchCodeParams(args [0]string, r *http.Request) (params SearchCodeP return params, nil } +// SearchCommitsParams is parameters of search/commits operation. type SearchCommitsParams struct { // The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your // search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To @@ -70869,6 +71467,7 @@ func decodeSearchCommitsParams(args [0]string, r *http.Request) (params SearchCo return params, nil } +// SearchIssuesAndPullRequestsParams is parameters of search/issues-and-pull-requests operation. type SearchIssuesAndPullRequestsParams struct { // The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your // search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To @@ -71123,6 +71722,7 @@ func decodeSearchIssuesAndPullRequestsParams(args [0]string, r *http.Request) (p return params, nil } +// SearchLabelsParams is parameters of search/labels operation. type SearchLabelsParams struct { // The id of the repository. RepositoryID int @@ -71404,6 +72004,7 @@ func decodeSearchLabelsParams(args [0]string, r *http.Request) (params SearchLab return params, nil } +// SearchReposParams is parameters of search/repos operation. type SearchReposParams struct { // The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your // search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To @@ -71657,6 +72258,7 @@ func decodeSearchReposParams(args [0]string, r *http.Request) (params SearchRepo return params, nil } +// SearchTopicsParams is parameters of search/topics operation. type SearchTopicsParams struct { // The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your // search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To @@ -71792,6 +72394,7 @@ func decodeSearchTopicsParams(args [0]string, r *http.Request) (params SearchTop return params, nil } +// SearchUsersParams is parameters of search/users operation. type SearchUsersParams struct { // The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your // search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To @@ -72044,6 +72647,7 @@ func decodeSearchUsersParams(args [0]string, r *http.Request) (params SearchUser return params, nil } +// SecretScanningGetAlertParams is parameters of secret-scanning/get-alert operation. type SecretScanningGetAlertParams struct { Owner string Repo string @@ -72164,6 +72768,7 @@ func decodeSecretScanningGetAlertParams(args [3]string, r *http.Request) (params return params, nil } +// SecretScanningListAlertsForOrgParams is parameters of secret-scanning/list-alerts-for-org operation. type SecretScanningListAlertsForOrgParams struct { Org string // Set to `open` or `resolved` to only list secret scanning alerts in a specific state. @@ -72390,6 +72995,7 @@ func decodeSecretScanningListAlertsForOrgParams(args [1]string, r *http.Request) return params, nil } +// SecretScanningListAlertsForRepoParams is parameters of secret-scanning/list-alerts-for-repo operation. type SecretScanningListAlertsForRepoParams struct { Owner string Repo string @@ -72651,6 +73257,7 @@ func decodeSecretScanningListAlertsForRepoParams(args [2]string, r *http.Request return params, nil } +// SecretScanningUpdateAlertParams is parameters of secret-scanning/update-alert operation. type SecretScanningUpdateAlertParams struct { Owner string Repo string @@ -72771,6 +73378,7 @@ func decodeSecretScanningUpdateAlertParams(args [3]string, r *http.Request) (par return params, nil } +// TeamsAddMemberLegacyParams is parameters of teams/add-member-legacy operation. type TeamsAddMemberLegacyParams struct { TeamID int Username string @@ -72848,6 +73456,7 @@ func decodeTeamsAddMemberLegacyParams(args [2]string, r *http.Request) (params T return params, nil } +// TeamsAddOrUpdateMembershipForUserInOrgParams is parameters of teams/add-or-update-membership-for-user-in-org operation. type TeamsAddOrUpdateMembershipForUserInOrgParams struct { Org string // Team_slug parameter. @@ -72959,6 +73568,7 @@ func decodeTeamsAddOrUpdateMembershipForUserInOrgParams(args [3]string, r *http. return params, nil } +// TeamsAddOrUpdateMembershipForUserLegacyParams is parameters of teams/add-or-update-membership-for-user-legacy operation. type TeamsAddOrUpdateMembershipForUserLegacyParams struct { TeamID int Username string @@ -73036,6 +73646,7 @@ func decodeTeamsAddOrUpdateMembershipForUserLegacyParams(args [2]string, r *http return params, nil } +// TeamsAddOrUpdateProjectPermissionsInOrgParams is parameters of teams/add-or-update-project-permissions-in-org operation. type TeamsAddOrUpdateProjectPermissionsInOrgParams struct { Org string // Team_slug parameter. @@ -73147,6 +73758,7 @@ func decodeTeamsAddOrUpdateProjectPermissionsInOrgParams(args [3]string, r *http return params, nil } +// TeamsAddOrUpdateProjectPermissionsLegacyParams is parameters of teams/add-or-update-project-permissions-legacy operation. type TeamsAddOrUpdateProjectPermissionsLegacyParams struct { TeamID int ProjectID int @@ -73224,6 +73836,7 @@ func decodeTeamsAddOrUpdateProjectPermissionsLegacyParams(args [2]string, r *htt return params, nil } +// TeamsAddOrUpdateRepoPermissionsInOrgParams is parameters of teams/add-or-update-repo-permissions-in-org operation. type TeamsAddOrUpdateRepoPermissionsInOrgParams struct { Org string // Team_slug parameter. @@ -73368,6 +73981,7 @@ func decodeTeamsAddOrUpdateRepoPermissionsInOrgParams(args [4]string, r *http.Re return params, nil } +// TeamsAddOrUpdateRepoPermissionsLegacyParams is parameters of teams/add-or-update-repo-permissions-legacy operation. type TeamsAddOrUpdateRepoPermissionsLegacyParams struct { TeamID int Owner string @@ -73478,6 +74092,7 @@ func decodeTeamsAddOrUpdateRepoPermissionsLegacyParams(args [3]string, r *http.R return params, nil } +// TeamsCheckPermissionsForProjectInOrgParams is parameters of teams/check-permissions-for-project-in-org operation. type TeamsCheckPermissionsForProjectInOrgParams struct { Org string // Team_slug parameter. @@ -73589,6 +74204,7 @@ func decodeTeamsCheckPermissionsForProjectInOrgParams(args [3]string, r *http.Re return params, nil } +// TeamsCheckPermissionsForProjectLegacyParams is parameters of teams/check-permissions-for-project-legacy operation. type TeamsCheckPermissionsForProjectLegacyParams struct { TeamID int ProjectID int @@ -73666,6 +74282,7 @@ func decodeTeamsCheckPermissionsForProjectLegacyParams(args [2]string, r *http.R return params, nil } +// TeamsCheckPermissionsForRepoInOrgParams is parameters of teams/check-permissions-for-repo-in-org operation. type TeamsCheckPermissionsForRepoInOrgParams struct { Org string // Team_slug parameter. @@ -73810,6 +74427,7 @@ func decodeTeamsCheckPermissionsForRepoInOrgParams(args [4]string, r *http.Reque return params, nil } +// TeamsCheckPermissionsForRepoLegacyParams is parameters of teams/check-permissions-for-repo-legacy operation. type TeamsCheckPermissionsForRepoLegacyParams struct { TeamID int Owner string @@ -73920,6 +74538,7 @@ func decodeTeamsCheckPermissionsForRepoLegacyParams(args [3]string, r *http.Requ return params, nil } +// TeamsCreateParams is parameters of teams/create operation. type TeamsCreateParams struct { Org string } @@ -73964,6 +74583,7 @@ func decodeTeamsCreateParams(args [1]string, r *http.Request) (params TeamsCreat return params, nil } +// TeamsCreateDiscussionCommentInOrgParams is parameters of teams/create-discussion-comment-in-org operation. type TeamsCreateDiscussionCommentInOrgParams struct { Org string // Team_slug parameter. @@ -74075,6 +74695,7 @@ func decodeTeamsCreateDiscussionCommentInOrgParams(args [3]string, r *http.Reque return params, nil } +// TeamsCreateDiscussionCommentLegacyParams is parameters of teams/create-discussion-comment-legacy operation. type TeamsCreateDiscussionCommentLegacyParams struct { TeamID int DiscussionNumber int @@ -74152,6 +74773,7 @@ func decodeTeamsCreateDiscussionCommentLegacyParams(args [2]string, r *http.Requ return params, nil } +// TeamsCreateDiscussionInOrgParams is parameters of teams/create-discussion-in-org operation. type TeamsCreateDiscussionInOrgParams struct { Org string // Team_slug parameter. @@ -74230,6 +74852,7 @@ func decodeTeamsCreateDiscussionInOrgParams(args [2]string, r *http.Request) (pa return params, nil } +// TeamsCreateDiscussionLegacyParams is parameters of teams/create-discussion-legacy operation. type TeamsCreateDiscussionLegacyParams struct { TeamID int } @@ -74274,6 +74897,7 @@ func decodeTeamsCreateDiscussionLegacyParams(args [1]string, r *http.Request) (p return params, nil } +// TeamsCreateOrUpdateIdpGroupConnectionsInOrgParams is parameters of teams/create-or-update-idp-group-connections-in-org operation. type TeamsCreateOrUpdateIdpGroupConnectionsInOrgParams struct { Org string // Team_slug parameter. @@ -74352,6 +74976,7 @@ func decodeTeamsCreateOrUpdateIdpGroupConnectionsInOrgParams(args [2]string, r * return params, nil } +// TeamsCreateOrUpdateIdpGroupConnectionsLegacyParams is parameters of teams/create-or-update-idp-group-connections-legacy operation. type TeamsCreateOrUpdateIdpGroupConnectionsLegacyParams struct { TeamID int } @@ -74396,6 +75021,7 @@ func decodeTeamsCreateOrUpdateIdpGroupConnectionsLegacyParams(args [1]string, r return params, nil } +// TeamsDeleteDiscussionCommentInOrgParams is parameters of teams/delete-discussion-comment-in-org operation. type TeamsDeleteDiscussionCommentInOrgParams struct { Org string // Team_slug parameter. @@ -74540,6 +75166,7 @@ func decodeTeamsDeleteDiscussionCommentInOrgParams(args [4]string, r *http.Reque return params, nil } +// TeamsDeleteDiscussionCommentLegacyParams is parameters of teams/delete-discussion-comment-legacy operation. type TeamsDeleteDiscussionCommentLegacyParams struct { TeamID int DiscussionNumber int @@ -74650,6 +75277,7 @@ func decodeTeamsDeleteDiscussionCommentLegacyParams(args [3]string, r *http.Requ return params, nil } +// TeamsDeleteDiscussionInOrgParams is parameters of teams/delete-discussion-in-org operation. type TeamsDeleteDiscussionInOrgParams struct { Org string // Team_slug parameter. @@ -74761,6 +75389,7 @@ func decodeTeamsDeleteDiscussionInOrgParams(args [3]string, r *http.Request) (pa return params, nil } +// TeamsDeleteDiscussionLegacyParams is parameters of teams/delete-discussion-legacy operation. type TeamsDeleteDiscussionLegacyParams struct { TeamID int DiscussionNumber int @@ -74838,6 +75467,7 @@ func decodeTeamsDeleteDiscussionLegacyParams(args [2]string, r *http.Request) (p return params, nil } +// TeamsDeleteInOrgParams is parameters of teams/delete-in-org operation. type TeamsDeleteInOrgParams struct { Org string // Team_slug parameter. @@ -74916,6 +75546,7 @@ func decodeTeamsDeleteInOrgParams(args [2]string, r *http.Request) (params Teams return params, nil } +// TeamsDeleteLegacyParams is parameters of teams/delete-legacy operation. type TeamsDeleteLegacyParams struct { TeamID int } @@ -74960,6 +75591,7 @@ func decodeTeamsDeleteLegacyParams(args [1]string, r *http.Request) (params Team return params, nil } +// TeamsGetByNameParams is parameters of teams/get-by-name operation. type TeamsGetByNameParams struct { Org string // Team_slug parameter. @@ -75038,6 +75670,7 @@ func decodeTeamsGetByNameParams(args [2]string, r *http.Request) (params TeamsGe return params, nil } +// TeamsGetDiscussionCommentInOrgParams is parameters of teams/get-discussion-comment-in-org operation. type TeamsGetDiscussionCommentInOrgParams struct { Org string // Team_slug parameter. @@ -75182,6 +75815,7 @@ func decodeTeamsGetDiscussionCommentInOrgParams(args [4]string, r *http.Request) return params, nil } +// TeamsGetDiscussionCommentLegacyParams is parameters of teams/get-discussion-comment-legacy operation. type TeamsGetDiscussionCommentLegacyParams struct { TeamID int DiscussionNumber int @@ -75292,6 +75926,7 @@ func decodeTeamsGetDiscussionCommentLegacyParams(args [3]string, r *http.Request return params, nil } +// TeamsGetDiscussionInOrgParams is parameters of teams/get-discussion-in-org operation. type TeamsGetDiscussionInOrgParams struct { Org string // Team_slug parameter. @@ -75403,6 +76038,7 @@ func decodeTeamsGetDiscussionInOrgParams(args [3]string, r *http.Request) (param return params, nil } +// TeamsGetDiscussionLegacyParams is parameters of teams/get-discussion-legacy operation. type TeamsGetDiscussionLegacyParams struct { TeamID int DiscussionNumber int @@ -75480,6 +76116,7 @@ func decodeTeamsGetDiscussionLegacyParams(args [2]string, r *http.Request) (para return params, nil } +// TeamsGetLegacyParams is parameters of teams/get-legacy operation. type TeamsGetLegacyParams struct { TeamID int } @@ -75524,6 +76161,7 @@ func decodeTeamsGetLegacyParams(args [1]string, r *http.Request) (params TeamsGe return params, nil } +// TeamsGetMemberLegacyParams is parameters of teams/get-member-legacy operation. type TeamsGetMemberLegacyParams struct { TeamID int Username string @@ -75601,6 +76239,7 @@ func decodeTeamsGetMemberLegacyParams(args [2]string, r *http.Request) (params T return params, nil } +// TeamsGetMembershipForUserInOrgParams is parameters of teams/get-membership-for-user-in-org operation. type TeamsGetMembershipForUserInOrgParams struct { Org string // Team_slug parameter. @@ -75712,6 +76351,7 @@ func decodeTeamsGetMembershipForUserInOrgParams(args [3]string, r *http.Request) return params, nil } +// TeamsGetMembershipForUserLegacyParams is parameters of teams/get-membership-for-user-legacy operation. type TeamsGetMembershipForUserLegacyParams struct { TeamID int Username string @@ -75789,6 +76429,7 @@ func decodeTeamsGetMembershipForUserLegacyParams(args [2]string, r *http.Request return params, nil } +// TeamsListParams is parameters of teams/list operation. type TeamsListParams struct { Org string // Results per page (max 100). @@ -75922,6 +76563,7 @@ func decodeTeamsListParams(args [1]string, r *http.Request) (params TeamsListPar return params, nil } +// TeamsListChildInOrgParams is parameters of teams/list-child-in-org operation. type TeamsListChildInOrgParams struct { Org string // Team_slug parameter. @@ -76089,6 +76731,7 @@ func decodeTeamsListChildInOrgParams(args [2]string, r *http.Request) (params Te return params, nil } +// TeamsListChildLegacyParams is parameters of teams/list-child-legacy operation. type TeamsListChildLegacyParams struct { TeamID int // Results per page (max 100). @@ -76222,6 +76865,7 @@ func decodeTeamsListChildLegacyParams(args [1]string, r *http.Request) (params T return params, nil } +// TeamsListDiscussionCommentsInOrgParams is parameters of teams/list-discussion-comments-in-org operation. type TeamsListDiscussionCommentsInOrgParams struct { Org string // Team_slug parameter. @@ -76481,6 +77125,7 @@ func decodeTeamsListDiscussionCommentsInOrgParams(args [3]string, r *http.Reques return params, nil } +// TeamsListDiscussionCommentsLegacyParams is parameters of teams/list-discussion-comments-legacy operation. type TeamsListDiscussionCommentsLegacyParams struct { TeamID int DiscussionNumber int @@ -76706,6 +77351,7 @@ func decodeTeamsListDiscussionCommentsLegacyParams(args [2]string, r *http.Reque return params, nil } +// TeamsListDiscussionsInOrgParams is parameters of teams/list-discussions-in-org operation. type TeamsListDiscussionsInOrgParams struct { Org string // Team_slug parameter. @@ -76971,6 +77617,7 @@ func decodeTeamsListDiscussionsInOrgParams(args [2]string, r *http.Request) (par return params, nil } +// TeamsListDiscussionsLegacyParams is parameters of teams/list-discussions-legacy operation. type TeamsListDiscussionsLegacyParams struct { TeamID int // One of `asc` (ascending) or `desc` (descending). @@ -77163,6 +77810,7 @@ func decodeTeamsListDiscussionsLegacyParams(args [1]string, r *http.Request) (pa return params, nil } +// TeamsListForAuthenticatedUserParams is parameters of teams/list-for-authenticated-user operation. type TeamsListForAuthenticatedUserParams struct { // Results per page (max 100). PerPage OptInt @@ -77263,6 +77911,7 @@ func decodeTeamsListForAuthenticatedUserParams(args [0]string, r *http.Request) return params, nil } +// TeamsListIdpGroupsForLegacyParams is parameters of teams/list-idp-groups-for-legacy operation. type TeamsListIdpGroupsForLegacyParams struct { TeamID int } @@ -77307,6 +77956,7 @@ func decodeTeamsListIdpGroupsForLegacyParams(args [1]string, r *http.Request) (p return params, nil } +// TeamsListIdpGroupsForOrgParams is parameters of teams/list-idp-groups-for-org operation. type TeamsListIdpGroupsForOrgParams struct { Org string // Results per page (max 100). @@ -77435,6 +78085,7 @@ func decodeTeamsListIdpGroupsForOrgParams(args [1]string, r *http.Request) (para return params, nil } +// TeamsListIdpGroupsInOrgParams is parameters of teams/list-idp-groups-in-org operation. type TeamsListIdpGroupsInOrgParams struct { Org string // Team_slug parameter. @@ -77513,6 +78164,7 @@ func decodeTeamsListIdpGroupsInOrgParams(args [2]string, r *http.Request) (param return params, nil } +// TeamsListMembersInOrgParams is parameters of teams/list-members-in-org operation. type TeamsListMembersInOrgParams struct { Org string // Team_slug parameter. @@ -77742,6 +78394,7 @@ func decodeTeamsListMembersInOrgParams(args [2]string, r *http.Request) (params return params, nil } +// TeamsListMembersLegacyParams is parameters of teams/list-members-legacy operation. type TeamsListMembersLegacyParams struct { TeamID int // Filters members returned by their role in the team. Can be one of: @@ -77937,6 +78590,7 @@ func decodeTeamsListMembersLegacyParams(args [1]string, r *http.Request) (params return params, nil } +// TeamsListPendingInvitationsInOrgParams is parameters of teams/list-pending-invitations-in-org operation. type TeamsListPendingInvitationsInOrgParams struct { Org string // Team_slug parameter. @@ -78104,6 +78758,7 @@ func decodeTeamsListPendingInvitationsInOrgParams(args [2]string, r *http.Reques return params, nil } +// TeamsListPendingInvitationsLegacyParams is parameters of teams/list-pending-invitations-legacy operation. type TeamsListPendingInvitationsLegacyParams struct { TeamID int // Results per page (max 100). @@ -78237,6 +78892,7 @@ func decodeTeamsListPendingInvitationsLegacyParams(args [1]string, r *http.Reque return params, nil } +// TeamsListProjectsInOrgParams is parameters of teams/list-projects-in-org operation. type TeamsListProjectsInOrgParams struct { Org string // Team_slug parameter. @@ -78404,6 +79060,7 @@ func decodeTeamsListProjectsInOrgParams(args [2]string, r *http.Request) (params return params, nil } +// TeamsListProjectsLegacyParams is parameters of teams/list-projects-legacy operation. type TeamsListProjectsLegacyParams struct { TeamID int // Results per page (max 100). @@ -78537,6 +79194,7 @@ func decodeTeamsListProjectsLegacyParams(args [1]string, r *http.Request) (param return params, nil } +// TeamsListReposInOrgParams is parameters of teams/list-repos-in-org operation. type TeamsListReposInOrgParams struct { Org string // Team_slug parameter. @@ -78704,6 +79362,7 @@ func decodeTeamsListReposInOrgParams(args [2]string, r *http.Request) (params Te return params, nil } +// TeamsListReposLegacyParams is parameters of teams/list-repos-legacy operation. type TeamsListReposLegacyParams struct { TeamID int // Results per page (max 100). @@ -78837,6 +79496,7 @@ func decodeTeamsListReposLegacyParams(args [1]string, r *http.Request) (params T return params, nil } +// TeamsRemoveMemberLegacyParams is parameters of teams/remove-member-legacy operation. type TeamsRemoveMemberLegacyParams struct { TeamID int Username string @@ -78914,6 +79574,7 @@ func decodeTeamsRemoveMemberLegacyParams(args [2]string, r *http.Request) (param return params, nil } +// TeamsRemoveMembershipForUserInOrgParams is parameters of teams/remove-membership-for-user-in-org operation. type TeamsRemoveMembershipForUserInOrgParams struct { Org string // Team_slug parameter. @@ -79025,6 +79686,7 @@ func decodeTeamsRemoveMembershipForUserInOrgParams(args [3]string, r *http.Reque return params, nil } +// TeamsRemoveMembershipForUserLegacyParams is parameters of teams/remove-membership-for-user-legacy operation. type TeamsRemoveMembershipForUserLegacyParams struct { TeamID int Username string @@ -79102,6 +79764,7 @@ func decodeTeamsRemoveMembershipForUserLegacyParams(args [2]string, r *http.Requ return params, nil } +// TeamsRemoveProjectInOrgParams is parameters of teams/remove-project-in-org operation. type TeamsRemoveProjectInOrgParams struct { Org string // Team_slug parameter. @@ -79213,6 +79876,7 @@ func decodeTeamsRemoveProjectInOrgParams(args [3]string, r *http.Request) (param return params, nil } +// TeamsRemoveProjectLegacyParams is parameters of teams/remove-project-legacy operation. type TeamsRemoveProjectLegacyParams struct { TeamID int ProjectID int @@ -79290,6 +79954,7 @@ func decodeTeamsRemoveProjectLegacyParams(args [2]string, r *http.Request) (para return params, nil } +// TeamsRemoveRepoInOrgParams is parameters of teams/remove-repo-in-org operation. type TeamsRemoveRepoInOrgParams struct { Org string // Team_slug parameter. @@ -79434,6 +80099,7 @@ func decodeTeamsRemoveRepoInOrgParams(args [4]string, r *http.Request) (params T return params, nil } +// TeamsRemoveRepoLegacyParams is parameters of teams/remove-repo-legacy operation. type TeamsRemoveRepoLegacyParams struct { TeamID int Owner string @@ -79544,6 +80210,7 @@ func decodeTeamsRemoveRepoLegacyParams(args [3]string, r *http.Request) (params return params, nil } +// TeamsUpdateDiscussionCommentInOrgParams is parameters of teams/update-discussion-comment-in-org operation. type TeamsUpdateDiscussionCommentInOrgParams struct { Org string // Team_slug parameter. @@ -79688,6 +80355,7 @@ func decodeTeamsUpdateDiscussionCommentInOrgParams(args [4]string, r *http.Reque return params, nil } +// TeamsUpdateDiscussionCommentLegacyParams is parameters of teams/update-discussion-comment-legacy operation. type TeamsUpdateDiscussionCommentLegacyParams struct { TeamID int DiscussionNumber int @@ -79798,6 +80466,7 @@ func decodeTeamsUpdateDiscussionCommentLegacyParams(args [3]string, r *http.Requ return params, nil } +// TeamsUpdateDiscussionInOrgParams is parameters of teams/update-discussion-in-org operation. type TeamsUpdateDiscussionInOrgParams struct { Org string // Team_slug parameter. @@ -79909,6 +80578,7 @@ func decodeTeamsUpdateDiscussionInOrgParams(args [3]string, r *http.Request) (pa return params, nil } +// TeamsUpdateDiscussionLegacyParams is parameters of teams/update-discussion-legacy operation. type TeamsUpdateDiscussionLegacyParams struct { TeamID int DiscussionNumber int @@ -79986,6 +80656,7 @@ func decodeTeamsUpdateDiscussionLegacyParams(args [2]string, r *http.Request) (p return params, nil } +// TeamsUpdateInOrgParams is parameters of teams/update-in-org operation. type TeamsUpdateInOrgParams struct { Org string // Team_slug parameter. @@ -80064,6 +80735,7 @@ func decodeTeamsUpdateInOrgParams(args [2]string, r *http.Request) (params Teams return params, nil } +// TeamsUpdateLegacyParams is parameters of teams/update-legacy operation. type TeamsUpdateLegacyParams struct { TeamID int } @@ -80108,6 +80780,7 @@ func decodeTeamsUpdateLegacyParams(args [1]string, r *http.Request) (params Team return params, nil } +// UsersBlockParams is parameters of users/block operation. type UsersBlockParams struct { Username string } @@ -80152,6 +80825,7 @@ func decodeUsersBlockParams(args [1]string, r *http.Request) (params UsersBlockP return params, nil } +// UsersCheckBlockedParams is parameters of users/check-blocked operation. type UsersCheckBlockedParams struct { Username string } @@ -80196,6 +80870,7 @@ func decodeUsersCheckBlockedParams(args [1]string, r *http.Request) (params User return params, nil } +// UsersCheckFollowingForUserParams is parameters of users/check-following-for-user operation. type UsersCheckFollowingForUserParams struct { Username string TargetUser string @@ -80273,6 +80948,7 @@ func decodeUsersCheckFollowingForUserParams(args [2]string, r *http.Request) (pa return params, nil } +// UsersCheckPersonIsFollowedByAuthenticatedParams is parameters of users/check-person-is-followed-by-authenticated operation. type UsersCheckPersonIsFollowedByAuthenticatedParams struct { Username string } @@ -80317,6 +80993,7 @@ func decodeUsersCheckPersonIsFollowedByAuthenticatedParams(args [1]string, r *ht return params, nil } +// UsersDeleteGpgKeyForAuthenticatedParams is parameters of users/delete-gpg-key-for-authenticated operation. type UsersDeleteGpgKeyForAuthenticatedParams struct { // Gpg_key_id parameter. GpgKeyID int @@ -80362,6 +81039,7 @@ func decodeUsersDeleteGpgKeyForAuthenticatedParams(args [1]string, r *http.Reque return params, nil } +// UsersDeletePublicSSHKeyForAuthenticatedParams is parameters of users/delete-public-ssh-key-for-authenticated operation. type UsersDeletePublicSSHKeyForAuthenticatedParams struct { // Key_id parameter. KeyID int @@ -80407,6 +81085,7 @@ func decodeUsersDeletePublicSSHKeyForAuthenticatedParams(args [1]string, r *http return params, nil } +// UsersFollowParams is parameters of users/follow operation. type UsersFollowParams struct { Username string } @@ -80451,6 +81130,7 @@ func decodeUsersFollowParams(args [1]string, r *http.Request) (params UsersFollo return params, nil } +// UsersGetByUsernameParams is parameters of users/get-by-username operation. type UsersGetByUsernameParams struct { Username string } @@ -80495,6 +81175,7 @@ func decodeUsersGetByUsernameParams(args [1]string, r *http.Request) (params Use return params, nil } +// UsersGetContextForUserParams is parameters of users/get-context-for-user operation. type UsersGetContextForUserParams struct { Username string // Identifies which additional information you'd like to receive about the person's hovercard. Can be @@ -80634,6 +81315,7 @@ func decodeUsersGetContextForUserParams(args [1]string, r *http.Request) (params return params, nil } +// UsersGetGpgKeyForAuthenticatedParams is parameters of users/get-gpg-key-for-authenticated operation. type UsersGetGpgKeyForAuthenticatedParams struct { // Gpg_key_id parameter. GpgKeyID int @@ -80679,6 +81361,7 @@ func decodeUsersGetGpgKeyForAuthenticatedParams(args [1]string, r *http.Request) return params, nil } +// UsersGetPublicSSHKeyForAuthenticatedParams is parameters of users/get-public-ssh-key-for-authenticated operation. type UsersGetPublicSSHKeyForAuthenticatedParams struct { // Key_id parameter. KeyID int @@ -80724,6 +81407,7 @@ func decodeUsersGetPublicSSHKeyForAuthenticatedParams(args [1]string, r *http.Re return params, nil } +// UsersListParams is parameters of users/list operation. type UsersListParams struct { // A user ID. Only return users with an ID greater than this ID. Since OptInt @@ -80819,6 +81503,7 @@ func decodeUsersListParams(args [0]string, r *http.Request) (params UsersListPar return params, nil } +// UsersListEmailsForAuthenticatedParams is parameters of users/list-emails-for-authenticated operation. type UsersListEmailsForAuthenticatedParams struct { // Results per page (max 100). PerPage OptInt @@ -80919,6 +81604,7 @@ func decodeUsersListEmailsForAuthenticatedParams(args [0]string, r *http.Request return params, nil } +// UsersListFollowedByAuthenticatedParams is parameters of users/list-followed-by-authenticated operation. type UsersListFollowedByAuthenticatedParams struct { // Results per page (max 100). PerPage OptInt @@ -81019,6 +81705,7 @@ func decodeUsersListFollowedByAuthenticatedParams(args [0]string, r *http.Reques return params, nil } +// UsersListFollowersForAuthenticatedUserParams is parameters of users/list-followers-for-authenticated-user operation. type UsersListFollowersForAuthenticatedUserParams struct { // Results per page (max 100). PerPage OptInt @@ -81119,6 +81806,7 @@ func decodeUsersListFollowersForAuthenticatedUserParams(args [0]string, r *http. return params, nil } +// UsersListFollowersForUserParams is parameters of users/list-followers-for-user operation. type UsersListFollowersForUserParams struct { Username string // Results per page (max 100). @@ -81252,6 +81940,7 @@ func decodeUsersListFollowersForUserParams(args [1]string, r *http.Request) (par return params, nil } +// UsersListFollowingForUserParams is parameters of users/list-following-for-user operation. type UsersListFollowingForUserParams struct { Username string // Results per page (max 100). @@ -81385,6 +82074,7 @@ func decodeUsersListFollowingForUserParams(args [1]string, r *http.Request) (par return params, nil } +// UsersListGpgKeysForAuthenticatedParams is parameters of users/list-gpg-keys-for-authenticated operation. type UsersListGpgKeysForAuthenticatedParams struct { // Results per page (max 100). PerPage OptInt @@ -81485,6 +82175,7 @@ func decodeUsersListGpgKeysForAuthenticatedParams(args [0]string, r *http.Reques return params, nil } +// UsersListGpgKeysForUserParams is parameters of users/list-gpg-keys-for-user operation. type UsersListGpgKeysForUserParams struct { Username string // Results per page (max 100). @@ -81618,6 +82309,7 @@ func decodeUsersListGpgKeysForUserParams(args [1]string, r *http.Request) (param return params, nil } +// UsersListPublicEmailsForAuthenticatedParams is parameters of users/list-public-emails-for-authenticated operation. type UsersListPublicEmailsForAuthenticatedParams struct { // Results per page (max 100). PerPage OptInt @@ -81718,6 +82410,7 @@ func decodeUsersListPublicEmailsForAuthenticatedParams(args [0]string, r *http.R return params, nil } +// UsersListPublicKeysForUserParams is parameters of users/list-public-keys-for-user operation. type UsersListPublicKeysForUserParams struct { Username string // Results per page (max 100). @@ -81851,6 +82544,7 @@ func decodeUsersListPublicKeysForUserParams(args [1]string, r *http.Request) (pa return params, nil } +// UsersListPublicSSHKeysForAuthenticatedParams is parameters of users/list-public-ssh-keys-for-authenticated operation. type UsersListPublicSSHKeysForAuthenticatedParams struct { // Results per page (max 100). PerPage OptInt @@ -81951,6 +82645,7 @@ func decodeUsersListPublicSSHKeysForAuthenticatedParams(args [0]string, r *http. return params, nil } +// UsersUnblockParams is parameters of users/unblock operation. type UsersUnblockParams struct { Username string } @@ -81995,6 +82690,7 @@ func decodeUsersUnblockParams(args [1]string, r *http.Request) (params UsersUnbl return params, nil } +// UsersUnfollowParams is parameters of users/unfollow operation. type UsersUnfollowParams struct { Username string } diff --git a/examples/ex_github/oas_request_encoders_gen.go b/examples/ex_github/oas_request_encoders_gen.go index 0d6dbe403..fc6582842 100644 --- a/examples/ex_github/oas_request_encoders_gen.go +++ b/examples/ex_github/oas_request_encoders_gen.go @@ -24,6 +24,7 @@ func encodeActionsCreateOrUpdateEnvironmentSecretRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeActionsCreateOrUpdateOrgSecretRequest( req ActionsCreateOrUpdateOrgSecretReq, r *http.Request, @@ -37,6 +38,7 @@ func encodeActionsCreateOrUpdateOrgSecretRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeActionsCreateOrUpdateRepoSecretRequest( req ActionsCreateOrUpdateRepoSecretReq, r *http.Request, @@ -50,6 +52,7 @@ func encodeActionsCreateOrUpdateRepoSecretRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeActionsCreateSelfHostedRunnerGroupForOrgRequest( req ActionsCreateSelfHostedRunnerGroupForOrgReq, r *http.Request, @@ -63,6 +66,7 @@ func encodeActionsCreateSelfHostedRunnerGroupForOrgRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeActionsReviewPendingDeploymentsForRunRequest( req ActionsReviewPendingDeploymentsForRunReq, r *http.Request, @@ -76,6 +80,7 @@ func encodeActionsReviewPendingDeploymentsForRunRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeActionsSetAllowedActionsOrganizationRequest( req OptSelectedActions, r *http.Request, @@ -95,6 +100,7 @@ func encodeActionsSetAllowedActionsOrganizationRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeActionsSetAllowedActionsRepositoryRequest( req OptSelectedActions, r *http.Request, @@ -114,6 +120,7 @@ func encodeActionsSetAllowedActionsRepositoryRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeActionsSetGithubActionsPermissionsOrganizationRequest( req ActionsSetGithubActionsPermissionsOrganizationReq, r *http.Request, @@ -127,6 +134,7 @@ func encodeActionsSetGithubActionsPermissionsOrganizationRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeActionsSetGithubActionsPermissionsRepositoryRequest( req ActionsSetGithubActionsPermissionsRepositoryReq, r *http.Request, @@ -140,6 +148,7 @@ func encodeActionsSetGithubActionsPermissionsRepositoryRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeActionsSetRepoAccessToSelfHostedRunnerGroupInOrgRequest( req ActionsSetRepoAccessToSelfHostedRunnerGroupInOrgReq, r *http.Request, @@ -153,6 +162,7 @@ func encodeActionsSetRepoAccessToSelfHostedRunnerGroupInOrgRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeActionsSetSelectedReposForOrgSecretRequest( req ActionsSetSelectedReposForOrgSecretReq, r *http.Request, @@ -166,6 +176,7 @@ func encodeActionsSetSelectedReposForOrgSecretRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationRequest( req ActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationReq, r *http.Request, @@ -179,6 +190,7 @@ func encodeActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationRequest ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeActionsSetSelfHostedRunnersInGroupForOrgRequest( req ActionsSetSelfHostedRunnersInGroupForOrgReq, r *http.Request, @@ -192,6 +204,7 @@ func encodeActionsSetSelfHostedRunnersInGroupForOrgRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeActionsUpdateSelfHostedRunnerGroupForOrgRequest( req ActionsUpdateSelfHostedRunnerGroupForOrgReq, r *http.Request, @@ -205,6 +218,7 @@ func encodeActionsUpdateSelfHostedRunnerGroupForOrgRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeActivityMarkNotificationsAsReadRequest( req OptActivityMarkNotificationsAsReadReq, r *http.Request, @@ -224,6 +238,7 @@ func encodeActivityMarkNotificationsAsReadRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeActivityMarkRepoNotificationsAsReadRequest( req OptActivityMarkRepoNotificationsAsReadReq, r *http.Request, @@ -243,6 +258,7 @@ func encodeActivityMarkRepoNotificationsAsReadRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeActivitySetRepoSubscriptionRequest( req OptActivitySetRepoSubscriptionReq, r *http.Request, @@ -262,6 +278,7 @@ func encodeActivitySetRepoSubscriptionRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeActivitySetThreadSubscriptionRequest( req OptActivitySetThreadSubscriptionReq, r *http.Request, @@ -281,6 +298,7 @@ func encodeActivitySetThreadSubscriptionRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeAppsCheckTokenRequest( req AppsCheckTokenReq, r *http.Request, @@ -294,6 +312,7 @@ func encodeAppsCheckTokenRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeAppsCreateContentAttachmentRequest( req AppsCreateContentAttachmentReq, r *http.Request, @@ -307,6 +326,7 @@ func encodeAppsCreateContentAttachmentRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeAppsCreateFromManifestRequest( req *AppsCreateFromManifestReq, r *http.Request, @@ -322,6 +342,7 @@ func encodeAppsCreateFromManifestRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeAppsCreateInstallationAccessTokenRequest( req OptAppsCreateInstallationAccessTokenReq, r *http.Request, @@ -341,6 +362,7 @@ func encodeAppsCreateInstallationAccessTokenRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeAppsDeleteAuthorizationRequest( req AppsDeleteAuthorizationReq, r *http.Request, @@ -354,6 +376,7 @@ func encodeAppsDeleteAuthorizationRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeAppsDeleteTokenRequest( req AppsDeleteTokenReq, r *http.Request, @@ -367,6 +390,7 @@ func encodeAppsDeleteTokenRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeAppsResetTokenRequest( req AppsResetTokenReq, r *http.Request, @@ -380,6 +404,7 @@ func encodeAppsResetTokenRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeAppsScopeTokenRequest( req AppsScopeTokenReq, r *http.Request, @@ -393,6 +418,7 @@ func encodeAppsScopeTokenRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeAppsUpdateWebhookConfigForAppRequest( req OptAppsUpdateWebhookConfigForAppReq, r *http.Request, @@ -412,6 +438,7 @@ func encodeAppsUpdateWebhookConfigForAppRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeChecksCreateSuiteRequest( req ChecksCreateSuiteReq, r *http.Request, @@ -425,6 +452,7 @@ func encodeChecksCreateSuiteRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeChecksSetSuitesPreferencesRequest( req ChecksSetSuitesPreferencesReq, r *http.Request, @@ -438,6 +466,7 @@ func encodeChecksSetSuitesPreferencesRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeCodeScanningUpdateAlertRequest( req CodeScanningUpdateAlertReq, r *http.Request, @@ -451,6 +480,7 @@ func encodeCodeScanningUpdateAlertRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeCodeScanningUploadSarifRequest( req CodeScanningUploadSarifReq, r *http.Request, @@ -464,6 +494,7 @@ func encodeCodeScanningUploadSarifRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeEnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseRequest( req EnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseReq, r *http.Request, @@ -477,6 +508,7 @@ func encodeEnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeEnterpriseAdminProvisionAndInviteEnterpriseGroupRequest( req EnterpriseAdminProvisionAndInviteEnterpriseGroupReq, r *http.Request, @@ -490,6 +522,7 @@ func encodeEnterpriseAdminProvisionAndInviteEnterpriseGroupRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeEnterpriseAdminProvisionAndInviteEnterpriseUserRequest( req EnterpriseAdminProvisionAndInviteEnterpriseUserReq, r *http.Request, @@ -503,6 +536,7 @@ func encodeEnterpriseAdminProvisionAndInviteEnterpriseUserRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeEnterpriseAdminSetAllowedActionsEnterpriseRequest( req SelectedActions, r *http.Request, @@ -516,6 +550,7 @@ func encodeEnterpriseAdminSetAllowedActionsEnterpriseRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeEnterpriseAdminSetGithubActionsPermissionsEnterpriseRequest( req EnterpriseAdminSetGithubActionsPermissionsEnterpriseReq, r *http.Request, @@ -529,6 +564,7 @@ func encodeEnterpriseAdminSetGithubActionsPermissionsEnterpriseRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeEnterpriseAdminSetInformationForProvisionedEnterpriseGroupRequest( req EnterpriseAdminSetInformationForProvisionedEnterpriseGroupReq, r *http.Request, @@ -542,6 +578,7 @@ func encodeEnterpriseAdminSetInformationForProvisionedEnterpriseGroupRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeEnterpriseAdminSetInformationForProvisionedEnterpriseUserRequest( req EnterpriseAdminSetInformationForProvisionedEnterpriseUserReq, r *http.Request, @@ -555,6 +592,7 @@ func encodeEnterpriseAdminSetInformationForProvisionedEnterpriseUserRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeEnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterpriseRequest( req EnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterpriseReq, r *http.Request, @@ -568,6 +606,7 @@ func encodeEnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterpriseRequest ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeEnterpriseAdminSetSelectedOrganizationsEnabledGithubActionsEnterpriseRequest( req EnterpriseAdminSetSelectedOrganizationsEnabledGithubActionsEnterpriseReq, r *http.Request, @@ -581,6 +620,7 @@ func encodeEnterpriseAdminSetSelectedOrganizationsEnabledGithubActionsEnterprise ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeEnterpriseAdminSetSelfHostedRunnersInGroupForEnterpriseRequest( req EnterpriseAdminSetSelfHostedRunnersInGroupForEnterpriseReq, r *http.Request, @@ -594,6 +634,7 @@ func encodeEnterpriseAdminSetSelfHostedRunnersInGroupForEnterpriseRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeEnterpriseAdminUpdateAttributeForEnterpriseGroupRequest( req EnterpriseAdminUpdateAttributeForEnterpriseGroupReq, r *http.Request, @@ -607,6 +648,7 @@ func encodeEnterpriseAdminUpdateAttributeForEnterpriseGroupRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeEnterpriseAdminUpdateAttributeForEnterpriseUserRequest( req EnterpriseAdminUpdateAttributeForEnterpriseUserReq, r *http.Request, @@ -620,6 +662,7 @@ func encodeEnterpriseAdminUpdateAttributeForEnterpriseUserRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeEnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseRequest( req OptEnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseReq, r *http.Request, @@ -639,6 +682,7 @@ func encodeEnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeGistsCreateRequest( req GistsCreateReq, r *http.Request, @@ -652,6 +696,7 @@ func encodeGistsCreateRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeGistsCreateCommentRequest( req GistsCreateCommentReq, r *http.Request, @@ -665,6 +710,7 @@ func encodeGistsCreateCommentRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeGistsUpdateCommentRequest( req GistsUpdateCommentReq, r *http.Request, @@ -678,6 +724,7 @@ func encodeGistsUpdateCommentRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeGitCreateBlobRequest( req GitCreateBlobReq, r *http.Request, @@ -691,6 +738,7 @@ func encodeGitCreateBlobRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeGitCreateCommitRequest( req GitCreateCommitReq, r *http.Request, @@ -704,6 +752,7 @@ func encodeGitCreateCommitRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeGitCreateRefRequest( req GitCreateRefReq, r *http.Request, @@ -717,6 +766,7 @@ func encodeGitCreateRefRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeGitCreateTagRequest( req GitCreateTagReq, r *http.Request, @@ -730,6 +780,7 @@ func encodeGitCreateTagRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeGitCreateTreeRequest( req GitCreateTreeReq, r *http.Request, @@ -743,6 +794,7 @@ func encodeGitCreateTreeRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeGitUpdateRefRequest( req GitUpdateRefReq, r *http.Request, @@ -756,6 +808,7 @@ func encodeGitUpdateRefRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeInteractionsSetRestrictionsForAuthenticatedUserRequest( req InteractionLimit, r *http.Request, @@ -769,6 +822,7 @@ func encodeInteractionsSetRestrictionsForAuthenticatedUserRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeInteractionsSetRestrictionsForOrgRequest( req InteractionLimit, r *http.Request, @@ -782,6 +836,7 @@ func encodeInteractionsSetRestrictionsForOrgRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeInteractionsSetRestrictionsForRepoRequest( req InteractionLimit, r *http.Request, @@ -795,6 +850,7 @@ func encodeInteractionsSetRestrictionsForRepoRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeIssuesAddAssigneesRequest( req OptIssuesAddAssigneesReq, r *http.Request, @@ -814,6 +870,7 @@ func encodeIssuesAddAssigneesRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeIssuesCreateRequest( req IssuesCreateReq, r *http.Request, @@ -827,6 +884,7 @@ func encodeIssuesCreateRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeIssuesCreateCommentRequest( req IssuesCreateCommentReq, r *http.Request, @@ -840,6 +898,7 @@ func encodeIssuesCreateCommentRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeIssuesCreateLabelRequest( req IssuesCreateLabelReq, r *http.Request, @@ -853,6 +912,7 @@ func encodeIssuesCreateLabelRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeIssuesCreateMilestoneRequest( req IssuesCreateMilestoneReq, r *http.Request, @@ -866,6 +926,7 @@ func encodeIssuesCreateMilestoneRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeIssuesLockRequest( req OptNilIssuesLockReq, r *http.Request, @@ -885,6 +946,7 @@ func encodeIssuesLockRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeIssuesRemoveAssigneesRequest( req OptIssuesRemoveAssigneesReq, r *http.Request, @@ -904,6 +966,7 @@ func encodeIssuesRemoveAssigneesRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeIssuesUpdateRequest( req OptIssuesUpdateReq, r *http.Request, @@ -923,6 +986,7 @@ func encodeIssuesUpdateRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeIssuesUpdateCommentRequest( req IssuesUpdateCommentReq, r *http.Request, @@ -936,6 +1000,7 @@ func encodeIssuesUpdateCommentRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeIssuesUpdateLabelRequest( req OptIssuesUpdateLabelReq, r *http.Request, @@ -955,6 +1020,7 @@ func encodeIssuesUpdateLabelRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeIssuesUpdateMilestoneRequest( req OptIssuesUpdateMilestoneReq, r *http.Request, @@ -974,6 +1040,7 @@ func encodeIssuesUpdateMilestoneRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeMigrationsMapCommitAuthorRequest( req OptMigrationsMapCommitAuthorReq, r *http.Request, @@ -993,6 +1060,7 @@ func encodeMigrationsMapCommitAuthorRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeMigrationsSetLfsPreferenceRequest( req MigrationsSetLfsPreferenceReq, r *http.Request, @@ -1006,6 +1074,7 @@ func encodeMigrationsSetLfsPreferenceRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeMigrationsStartForAuthenticatedUserRequest( req MigrationsStartForAuthenticatedUserReq, r *http.Request, @@ -1019,6 +1088,7 @@ func encodeMigrationsStartForAuthenticatedUserRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeMigrationsStartForOrgRequest( req MigrationsStartForOrgReq, r *http.Request, @@ -1032,6 +1102,7 @@ func encodeMigrationsStartForOrgRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeMigrationsStartImportRequest( req MigrationsStartImportReq, r *http.Request, @@ -1045,6 +1116,7 @@ func encodeMigrationsStartImportRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeMigrationsUpdateImportRequest( req OptNilMigrationsUpdateImportReq, r *http.Request, @@ -1064,6 +1136,7 @@ func encodeMigrationsUpdateImportRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeOAuthAuthorizationsCreateAuthorizationRequest( req OptOAuthAuthorizationsCreateAuthorizationReq, r *http.Request, @@ -1083,6 +1156,7 @@ func encodeOAuthAuthorizationsCreateAuthorizationRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeOAuthAuthorizationsGetOrCreateAuthorizationForAppRequest( req OAuthAuthorizationsGetOrCreateAuthorizationForAppReq, r *http.Request, @@ -1096,6 +1170,7 @@ func encodeOAuthAuthorizationsGetOrCreateAuthorizationForAppRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeOAuthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintRequest( req OAuthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintReq, r *http.Request, @@ -1109,6 +1184,7 @@ func encodeOAuthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintReques ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeOAuthAuthorizationsUpdateAuthorizationRequest( req OptOAuthAuthorizationsUpdateAuthorizationReq, r *http.Request, @@ -1128,6 +1204,7 @@ func encodeOAuthAuthorizationsUpdateAuthorizationRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeOrgsCreateInvitationRequest( req OptOrgsCreateInvitationReq, r *http.Request, @@ -1147,6 +1224,7 @@ func encodeOrgsCreateInvitationRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeOrgsCreateWebhookRequest( req OrgsCreateWebhookReq, r *http.Request, @@ -1160,6 +1238,7 @@ func encodeOrgsCreateWebhookRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeOrgsSetMembershipForUserRequest( req OptOrgsSetMembershipForUserReq, r *http.Request, @@ -1179,6 +1258,7 @@ func encodeOrgsSetMembershipForUserRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeOrgsUpdateMembershipForAuthenticatedUserRequest( req OrgsUpdateMembershipForAuthenticatedUserReq, r *http.Request, @@ -1192,6 +1272,7 @@ func encodeOrgsUpdateMembershipForAuthenticatedUserRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeOrgsUpdateWebhookRequest( req OptOrgsUpdateWebhookReq, r *http.Request, @@ -1211,6 +1292,7 @@ func encodeOrgsUpdateWebhookRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeOrgsUpdateWebhookConfigForOrgRequest( req OptOrgsUpdateWebhookConfigForOrgReq, r *http.Request, @@ -1230,6 +1312,7 @@ func encodeOrgsUpdateWebhookConfigForOrgRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeProjectsAddCollaboratorRequest( req OptNilProjectsAddCollaboratorReq, r *http.Request, @@ -1249,6 +1332,7 @@ func encodeProjectsAddCollaboratorRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeProjectsCreateColumnRequest( req ProjectsCreateColumnReq, r *http.Request, @@ -1262,6 +1346,7 @@ func encodeProjectsCreateColumnRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeProjectsCreateForAuthenticatedUserRequest( req ProjectsCreateForAuthenticatedUserReq, r *http.Request, @@ -1275,6 +1360,7 @@ func encodeProjectsCreateForAuthenticatedUserRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeProjectsCreateForOrgRequest( req ProjectsCreateForOrgReq, r *http.Request, @@ -1288,6 +1374,7 @@ func encodeProjectsCreateForOrgRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeProjectsCreateForRepoRequest( req ProjectsCreateForRepoReq, r *http.Request, @@ -1301,6 +1388,7 @@ func encodeProjectsCreateForRepoRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeProjectsMoveCardRequest( req ProjectsMoveCardReq, r *http.Request, @@ -1314,6 +1402,7 @@ func encodeProjectsMoveCardRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeProjectsMoveColumnRequest( req ProjectsMoveColumnReq, r *http.Request, @@ -1327,6 +1416,7 @@ func encodeProjectsMoveColumnRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeProjectsUpdateRequest( req OptProjectsUpdateReq, r *http.Request, @@ -1346,6 +1436,7 @@ func encodeProjectsUpdateRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeProjectsUpdateCardRequest( req OptProjectsUpdateCardReq, r *http.Request, @@ -1365,6 +1456,7 @@ func encodeProjectsUpdateCardRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeProjectsUpdateColumnRequest( req ProjectsUpdateColumnReq, r *http.Request, @@ -1378,6 +1470,7 @@ func encodeProjectsUpdateColumnRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePullsCreateRequest( req PullsCreateReq, r *http.Request, @@ -1391,6 +1484,7 @@ func encodePullsCreateRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePullsCreateReplyForReviewCommentRequest( req PullsCreateReplyForReviewCommentReq, r *http.Request, @@ -1404,6 +1498,7 @@ func encodePullsCreateReplyForReviewCommentRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePullsCreateReviewRequest( req OptPullsCreateReviewReq, r *http.Request, @@ -1423,6 +1518,7 @@ func encodePullsCreateReviewRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePullsCreateReviewCommentRequest( req PullsCreateReviewCommentReq, r *http.Request, @@ -1436,6 +1532,7 @@ func encodePullsCreateReviewCommentRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePullsDismissReviewRequest( req PullsDismissReviewReq, r *http.Request, @@ -1449,6 +1546,7 @@ func encodePullsDismissReviewRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePullsMergeRequest( req OptNilPullsMergeReq, r *http.Request, @@ -1468,6 +1566,7 @@ func encodePullsMergeRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePullsRemoveRequestedReviewersRequest( req PullsRemoveRequestedReviewersReq, r *http.Request, @@ -1481,6 +1580,7 @@ func encodePullsRemoveRequestedReviewersRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePullsSubmitReviewRequest( req PullsSubmitReviewReq, r *http.Request, @@ -1494,6 +1594,7 @@ func encodePullsSubmitReviewRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePullsUpdateRequest( req OptPullsUpdateReq, r *http.Request, @@ -1513,6 +1614,7 @@ func encodePullsUpdateRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePullsUpdateBranchRequest( req OptNilPullsUpdateBranchReq, r *http.Request, @@ -1532,6 +1634,7 @@ func encodePullsUpdateBranchRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePullsUpdateReviewRequest( req PullsUpdateReviewReq, r *http.Request, @@ -1545,6 +1648,7 @@ func encodePullsUpdateReviewRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePullsUpdateReviewCommentRequest( req PullsUpdateReviewCommentReq, r *http.Request, @@ -1558,6 +1662,7 @@ func encodePullsUpdateReviewCommentRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReactionsCreateForCommitCommentRequest( req ReactionsCreateForCommitCommentReq, r *http.Request, @@ -1571,6 +1676,7 @@ func encodeReactionsCreateForCommitCommentRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReactionsCreateForIssueRequest( req ReactionsCreateForIssueReq, r *http.Request, @@ -1584,6 +1690,7 @@ func encodeReactionsCreateForIssueRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReactionsCreateForIssueCommentRequest( req ReactionsCreateForIssueCommentReq, r *http.Request, @@ -1597,6 +1704,7 @@ func encodeReactionsCreateForIssueCommentRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReactionsCreateForPullRequestReviewCommentRequest( req ReactionsCreateForPullRequestReviewCommentReq, r *http.Request, @@ -1610,6 +1718,7 @@ func encodeReactionsCreateForPullRequestReviewCommentRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReactionsCreateForReleaseRequest( req ReactionsCreateForReleaseReq, r *http.Request, @@ -1623,6 +1732,7 @@ func encodeReactionsCreateForReleaseRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReactionsCreateForTeamDiscussionCommentInOrgRequest( req ReactionsCreateForTeamDiscussionCommentInOrgReq, r *http.Request, @@ -1636,6 +1746,7 @@ func encodeReactionsCreateForTeamDiscussionCommentInOrgRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReactionsCreateForTeamDiscussionCommentLegacyRequest( req ReactionsCreateForTeamDiscussionCommentLegacyReq, r *http.Request, @@ -1649,6 +1760,7 @@ func encodeReactionsCreateForTeamDiscussionCommentLegacyRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReactionsCreateForTeamDiscussionInOrgRequest( req ReactionsCreateForTeamDiscussionInOrgReq, r *http.Request, @@ -1662,6 +1774,7 @@ func encodeReactionsCreateForTeamDiscussionInOrgRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReactionsCreateForTeamDiscussionLegacyRequest( req ReactionsCreateForTeamDiscussionLegacyReq, r *http.Request, @@ -1675,6 +1788,7 @@ func encodeReactionsCreateForTeamDiscussionLegacyRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposAddAppAccessRestrictionsRequest( req OptReposAddAppAccessRestrictionsReq, r *http.Request, @@ -1694,6 +1808,7 @@ func encodeReposAddAppAccessRestrictionsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposAddCollaboratorRequest( req OptReposAddCollaboratorReq, r *http.Request, @@ -1713,6 +1828,7 @@ func encodeReposAddCollaboratorRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposAddStatusCheckContextsRequest( req OptReposAddStatusCheckContextsReq, r *http.Request, @@ -1732,6 +1848,7 @@ func encodeReposAddStatusCheckContextsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposAddTeamAccessRestrictionsRequest( req OptReposAddTeamAccessRestrictionsReq, r *http.Request, @@ -1751,6 +1868,7 @@ func encodeReposAddTeamAccessRestrictionsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposAddUserAccessRestrictionsRequest( req OptReposAddUserAccessRestrictionsReq, r *http.Request, @@ -1770,6 +1888,7 @@ func encodeReposAddUserAccessRestrictionsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposCreateAutolinkRequest( req ReposCreateAutolinkReq, r *http.Request, @@ -1783,6 +1902,7 @@ func encodeReposCreateAutolinkRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposCreateCommitCommentRequest( req ReposCreateCommitCommentReq, r *http.Request, @@ -1796,6 +1916,7 @@ func encodeReposCreateCommitCommentRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposCreateCommitStatusRequest( req ReposCreateCommitStatusReq, r *http.Request, @@ -1809,6 +1930,7 @@ func encodeReposCreateCommitStatusRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposCreateDeployKeyRequest( req ReposCreateDeployKeyReq, r *http.Request, @@ -1822,6 +1944,7 @@ func encodeReposCreateDeployKeyRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposCreateDeploymentRequest( req ReposCreateDeploymentReq, r *http.Request, @@ -1835,6 +1958,7 @@ func encodeReposCreateDeploymentRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposCreateDeploymentStatusRequest( req ReposCreateDeploymentStatusReq, r *http.Request, @@ -1848,6 +1972,7 @@ func encodeReposCreateDeploymentStatusRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposCreateDispatchEventRequest( req ReposCreateDispatchEventReq, r *http.Request, @@ -1861,6 +1986,7 @@ func encodeReposCreateDispatchEventRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposCreateForAuthenticatedUserRequest( req ReposCreateForAuthenticatedUserReq, r *http.Request, @@ -1874,6 +2000,7 @@ func encodeReposCreateForAuthenticatedUserRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposCreateForkRequest( req OptNilReposCreateForkReq, r *http.Request, @@ -1893,6 +2020,7 @@ func encodeReposCreateForkRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposCreateInOrgRequest( req ReposCreateInOrgReq, r *http.Request, @@ -1906,6 +2034,7 @@ func encodeReposCreateInOrgRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposCreateOrUpdateFileContentsRequest( req ReposCreateOrUpdateFileContentsReq, r *http.Request, @@ -1919,6 +2048,7 @@ func encodeReposCreateOrUpdateFileContentsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposCreatePagesSiteRequest( req NilReposCreatePagesSiteReq, r *http.Request, @@ -1932,6 +2062,7 @@ func encodeReposCreatePagesSiteRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposCreateReleaseRequest( req ReposCreateReleaseReq, r *http.Request, @@ -1945,6 +2076,7 @@ func encodeReposCreateReleaseRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposCreateUsingTemplateRequest( req ReposCreateUsingTemplateReq, r *http.Request, @@ -1958,6 +2090,7 @@ func encodeReposCreateUsingTemplateRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposCreateWebhookRequest( req OptNilReposCreateWebhookReq, r *http.Request, @@ -1977,6 +2110,7 @@ func encodeReposCreateWebhookRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposDeleteFileRequest( req ReposDeleteFileReq, r *http.Request, @@ -1990,6 +2124,7 @@ func encodeReposDeleteFileRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposMergeRequest( req ReposMergeReq, r *http.Request, @@ -2003,6 +2138,7 @@ func encodeReposMergeRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposMergeUpstreamRequest( req ReposMergeUpstreamReq, r *http.Request, @@ -2016,6 +2152,7 @@ func encodeReposMergeUpstreamRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposRemoveAppAccessRestrictionsRequest( req OptReposRemoveAppAccessRestrictionsReq, r *http.Request, @@ -2035,6 +2172,7 @@ func encodeReposRemoveAppAccessRestrictionsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposRemoveStatusCheckContextsRequest( req OptReposRemoveStatusCheckContextsReq, r *http.Request, @@ -2054,6 +2192,7 @@ func encodeReposRemoveStatusCheckContextsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposRemoveTeamAccessRestrictionsRequest( req OptReposRemoveTeamAccessRestrictionsReq, r *http.Request, @@ -2073,6 +2212,7 @@ func encodeReposRemoveTeamAccessRestrictionsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposRemoveUserAccessRestrictionsRequest( req OptReposRemoveUserAccessRestrictionsReq, r *http.Request, @@ -2092,6 +2232,7 @@ func encodeReposRemoveUserAccessRestrictionsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposRenameBranchRequest( req OptReposRenameBranchReq, r *http.Request, @@ -2111,6 +2252,7 @@ func encodeReposRenameBranchRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposReplaceAllTopicsRequest( req ReposReplaceAllTopicsReq, r *http.Request, @@ -2124,6 +2266,7 @@ func encodeReposReplaceAllTopicsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposSetAppAccessRestrictionsRequest( req OptReposSetAppAccessRestrictionsReq, r *http.Request, @@ -2143,6 +2286,7 @@ func encodeReposSetAppAccessRestrictionsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposSetStatusCheckContextsRequest( req OptReposSetStatusCheckContextsReq, r *http.Request, @@ -2162,6 +2306,7 @@ func encodeReposSetStatusCheckContextsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposSetTeamAccessRestrictionsRequest( req OptReposSetTeamAccessRestrictionsReq, r *http.Request, @@ -2181,6 +2326,7 @@ func encodeReposSetTeamAccessRestrictionsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposSetUserAccessRestrictionsRequest( req OptReposSetUserAccessRestrictionsReq, r *http.Request, @@ -2200,6 +2346,7 @@ func encodeReposSetUserAccessRestrictionsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposTransferRequest( req ReposTransferReq, r *http.Request, @@ -2213,6 +2360,7 @@ func encodeReposTransferRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposUpdateRequest( req OptReposUpdateReq, r *http.Request, @@ -2232,6 +2380,7 @@ func encodeReposUpdateRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposUpdateBranchProtectionRequest( req ReposUpdateBranchProtectionReq, r *http.Request, @@ -2245,6 +2394,7 @@ func encodeReposUpdateBranchProtectionRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposUpdateCommitCommentRequest( req ReposUpdateCommitCommentReq, r *http.Request, @@ -2258,6 +2408,7 @@ func encodeReposUpdateCommitCommentRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposUpdateInvitationRequest( req OptReposUpdateInvitationReq, r *http.Request, @@ -2277,6 +2428,7 @@ func encodeReposUpdateInvitationRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposUpdatePullRequestReviewProtectionRequest( req OptReposUpdatePullRequestReviewProtectionReq, r *http.Request, @@ -2296,6 +2448,7 @@ func encodeReposUpdatePullRequestReviewProtectionRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposUpdateReleaseRequest( req OptReposUpdateReleaseReq, r *http.Request, @@ -2315,6 +2468,7 @@ func encodeReposUpdateReleaseRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposUpdateReleaseAssetRequest( req OptReposUpdateReleaseAssetReq, r *http.Request, @@ -2334,6 +2488,7 @@ func encodeReposUpdateReleaseAssetRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposUpdateStatusCheckProtectionRequest( req OptReposUpdateStatusCheckProtectionReq, r *http.Request, @@ -2353,6 +2508,7 @@ func encodeReposUpdateStatusCheckProtectionRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposUpdateWebhookRequest( req OptReposUpdateWebhookReq, r *http.Request, @@ -2372,6 +2528,7 @@ func encodeReposUpdateWebhookRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReposUpdateWebhookConfigForRepoRequest( req OptReposUpdateWebhookConfigForRepoReq, r *http.Request, @@ -2391,6 +2548,7 @@ func encodeReposUpdateWebhookConfigForRepoRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSecretScanningUpdateAlertRequest( req SecretScanningUpdateAlertReq, r *http.Request, @@ -2404,6 +2562,7 @@ func encodeSecretScanningUpdateAlertRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTeamsAddOrUpdateMembershipForUserInOrgRequest( req OptTeamsAddOrUpdateMembershipForUserInOrgReq, r *http.Request, @@ -2423,6 +2582,7 @@ func encodeTeamsAddOrUpdateMembershipForUserInOrgRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTeamsAddOrUpdateMembershipForUserLegacyRequest( req OptTeamsAddOrUpdateMembershipForUserLegacyReq, r *http.Request, @@ -2442,6 +2602,7 @@ func encodeTeamsAddOrUpdateMembershipForUserLegacyRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTeamsAddOrUpdateProjectPermissionsInOrgRequest( req OptNilTeamsAddOrUpdateProjectPermissionsInOrgReq, r *http.Request, @@ -2461,6 +2622,7 @@ func encodeTeamsAddOrUpdateProjectPermissionsInOrgRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTeamsAddOrUpdateProjectPermissionsLegacyRequest( req OptTeamsAddOrUpdateProjectPermissionsLegacyReq, r *http.Request, @@ -2480,6 +2642,7 @@ func encodeTeamsAddOrUpdateProjectPermissionsLegacyRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTeamsAddOrUpdateRepoPermissionsInOrgRequest( req OptTeamsAddOrUpdateRepoPermissionsInOrgReq, r *http.Request, @@ -2499,6 +2662,7 @@ func encodeTeamsAddOrUpdateRepoPermissionsInOrgRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTeamsAddOrUpdateRepoPermissionsLegacyRequest( req OptTeamsAddOrUpdateRepoPermissionsLegacyReq, r *http.Request, @@ -2518,6 +2682,7 @@ func encodeTeamsAddOrUpdateRepoPermissionsLegacyRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTeamsCreateRequest( req TeamsCreateReq, r *http.Request, @@ -2531,6 +2696,7 @@ func encodeTeamsCreateRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTeamsCreateDiscussionCommentInOrgRequest( req TeamsCreateDiscussionCommentInOrgReq, r *http.Request, @@ -2544,6 +2710,7 @@ func encodeTeamsCreateDiscussionCommentInOrgRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTeamsCreateDiscussionCommentLegacyRequest( req TeamsCreateDiscussionCommentLegacyReq, r *http.Request, @@ -2557,6 +2724,7 @@ func encodeTeamsCreateDiscussionCommentLegacyRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTeamsCreateDiscussionInOrgRequest( req TeamsCreateDiscussionInOrgReq, r *http.Request, @@ -2570,6 +2738,7 @@ func encodeTeamsCreateDiscussionInOrgRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTeamsCreateDiscussionLegacyRequest( req TeamsCreateDiscussionLegacyReq, r *http.Request, @@ -2583,6 +2752,7 @@ func encodeTeamsCreateDiscussionLegacyRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTeamsCreateOrUpdateIdpGroupConnectionsInOrgRequest( req TeamsCreateOrUpdateIdpGroupConnectionsInOrgReq, r *http.Request, @@ -2596,6 +2766,7 @@ func encodeTeamsCreateOrUpdateIdpGroupConnectionsInOrgRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTeamsCreateOrUpdateIdpGroupConnectionsLegacyRequest( req TeamsCreateOrUpdateIdpGroupConnectionsLegacyReq, r *http.Request, @@ -2609,6 +2780,7 @@ func encodeTeamsCreateOrUpdateIdpGroupConnectionsLegacyRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTeamsUpdateDiscussionCommentInOrgRequest( req TeamsUpdateDiscussionCommentInOrgReq, r *http.Request, @@ -2622,6 +2794,7 @@ func encodeTeamsUpdateDiscussionCommentInOrgRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTeamsUpdateDiscussionCommentLegacyRequest( req TeamsUpdateDiscussionCommentLegacyReq, r *http.Request, @@ -2635,6 +2808,7 @@ func encodeTeamsUpdateDiscussionCommentLegacyRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTeamsUpdateDiscussionInOrgRequest( req OptTeamsUpdateDiscussionInOrgReq, r *http.Request, @@ -2654,6 +2828,7 @@ func encodeTeamsUpdateDiscussionInOrgRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTeamsUpdateDiscussionLegacyRequest( req OptTeamsUpdateDiscussionLegacyReq, r *http.Request, @@ -2673,6 +2848,7 @@ func encodeTeamsUpdateDiscussionLegacyRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTeamsUpdateInOrgRequest( req OptTeamsUpdateInOrgReq, r *http.Request, @@ -2692,6 +2868,7 @@ func encodeTeamsUpdateInOrgRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTeamsUpdateLegacyRequest( req TeamsUpdateLegacyReq, r *http.Request, @@ -2705,6 +2882,7 @@ func encodeTeamsUpdateLegacyRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeUsersAddEmailForAuthenticatedRequest( req OptUsersAddEmailForAuthenticatedReq, r *http.Request, @@ -2724,6 +2902,7 @@ func encodeUsersAddEmailForAuthenticatedRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeUsersCreateGpgKeyForAuthenticatedRequest( req UsersCreateGpgKeyForAuthenticatedReq, r *http.Request, @@ -2737,6 +2916,7 @@ func encodeUsersCreateGpgKeyForAuthenticatedRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeUsersCreatePublicSSHKeyForAuthenticatedRequest( req UsersCreatePublicSSHKeyForAuthenticatedReq, r *http.Request, @@ -2750,6 +2930,7 @@ func encodeUsersCreatePublicSSHKeyForAuthenticatedRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeUsersDeleteEmailForAuthenticatedRequest( req OptUsersDeleteEmailForAuthenticatedReq, r *http.Request, @@ -2769,6 +2950,7 @@ func encodeUsersDeleteEmailForAuthenticatedRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeUsersSetPrimaryEmailVisibilityForAuthenticatedRequest( req UsersSetPrimaryEmailVisibilityForAuthenticatedReq, r *http.Request, @@ -2782,6 +2964,7 @@ func encodeUsersSetPrimaryEmailVisibilityForAuthenticatedRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeUsersUpdateAuthenticatedRequest( req OptUsersUpdateAuthenticatedReq, r *http.Request, diff --git a/examples/ex_github/oas_response_encoders_gen.go b/examples/ex_github/oas_response_encoders_gen.go index 2725c794d..bd1678dd8 100644 --- a/examples/ex_github/oas_response_encoders_gen.go +++ b/examples/ex_github/oas_response_encoders_gen.go @@ -21,6 +21,7 @@ func encodeActionsAddRepoAccessToSelfHostedRunnerGroupInOrgResponse(response Act return nil } + func encodeActionsAddSelectedRepoToOrgSecretResponse(response ActionsAddSelectedRepoToOrgSecretRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ActionsAddSelectedRepoToOrgSecretNoContent: @@ -37,12 +38,14 @@ func encodeActionsAddSelectedRepoToOrgSecretResponse(response ActionsAddSelected return errors.Errorf("unexpected response type: %T", response) } } + func encodeActionsAddSelfHostedRunnerToGroupForOrgResponse(response ActionsAddSelfHostedRunnerToGroupForOrgNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeActionsApproveWorkflowRunResponse(response ActionsApproveWorkflowRunRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *EmptyObject: @@ -85,6 +88,7 @@ func encodeActionsApproveWorkflowRunResponse(response ActionsApproveWorkflowRunR return errors.Errorf("unexpected response type: %T", response) } } + func encodeActionsCancelWorkflowRunResponse(response ActionsCancelWorkflowRunAccepted, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(202) @@ -98,6 +102,7 @@ func encodeActionsCancelWorkflowRunResponse(response ActionsCancelWorkflowRunAcc return nil } + func encodeActionsCreateOrUpdateEnvironmentSecretResponse(response ActionsCreateOrUpdateEnvironmentSecretRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *EmptyObject: @@ -121,6 +126,7 @@ func encodeActionsCreateOrUpdateEnvironmentSecretResponse(response ActionsCreate return errors.Errorf("unexpected response type: %T", response) } } + func encodeActionsCreateOrUpdateOrgSecretResponse(response ActionsCreateOrUpdateOrgSecretRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *EmptyObject: @@ -144,6 +150,7 @@ func encodeActionsCreateOrUpdateOrgSecretResponse(response ActionsCreateOrUpdate return errors.Errorf("unexpected response type: %T", response) } } + func encodeActionsCreateOrUpdateRepoSecretResponse(response ActionsCreateOrUpdateRepoSecretRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ActionsCreateOrUpdateRepoSecretCreated: @@ -167,6 +174,7 @@ func encodeActionsCreateOrUpdateRepoSecretResponse(response ActionsCreateOrUpdat return errors.Errorf("unexpected response type: %T", response) } } + func encodeActionsCreateRegistrationTokenForOrgResponse(response AuthenticationToken, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(201) @@ -180,6 +188,7 @@ func encodeActionsCreateRegistrationTokenForOrgResponse(response AuthenticationT return nil } + func encodeActionsCreateRegistrationTokenForRepoResponse(response AuthenticationToken, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(201) @@ -193,6 +202,7 @@ func encodeActionsCreateRegistrationTokenForRepoResponse(response Authentication return nil } + func encodeActionsCreateRemoveTokenForOrgResponse(response AuthenticationToken, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(201) @@ -206,6 +216,7 @@ func encodeActionsCreateRemoveTokenForOrgResponse(response AuthenticationToken, return nil } + func encodeActionsCreateRemoveTokenForRepoResponse(response AuthenticationToken, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(201) @@ -219,6 +230,7 @@ func encodeActionsCreateRemoveTokenForRepoResponse(response AuthenticationToken, return nil } + func encodeActionsCreateSelfHostedRunnerGroupForOrgResponse(response RunnerGroupsOrg, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(201) @@ -232,66 +244,77 @@ func encodeActionsCreateSelfHostedRunnerGroupForOrgResponse(response RunnerGroup return nil } + func encodeActionsDeleteArtifactResponse(response ActionsDeleteArtifactNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeActionsDeleteEnvironmentSecretResponse(response ActionsDeleteEnvironmentSecretNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeActionsDeleteOrgSecretResponse(response ActionsDeleteOrgSecretNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeActionsDeleteRepoSecretResponse(response ActionsDeleteRepoSecretNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeActionsDeleteSelfHostedRunnerFromOrgResponse(response ActionsDeleteSelfHostedRunnerFromOrgNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeActionsDeleteSelfHostedRunnerFromRepoResponse(response ActionsDeleteSelfHostedRunnerFromRepoNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeActionsDeleteSelfHostedRunnerGroupFromOrgResponse(response ActionsDeleteSelfHostedRunnerGroupFromOrgNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeActionsDeleteWorkflowRunResponse(response ActionsDeleteWorkflowRunNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeActionsDeleteWorkflowRunLogsResponse(response ActionsDeleteWorkflowRunLogsNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeActionsDisableSelectedRepositoryGithubActionsOrganizationResponse(response ActionsDisableSelectedRepositoryGithubActionsOrganizationNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeActionsDownloadArtifactResponse(response ActionsDownloadArtifactFound, w http.ResponseWriter, span trace.Span) error { // Encoding response headers. { @@ -317,6 +340,7 @@ func encodeActionsDownloadArtifactResponse(response ActionsDownloadArtifactFound return nil } + func encodeActionsDownloadJobLogsForWorkflowRunResponse(response ActionsDownloadJobLogsForWorkflowRunFound, w http.ResponseWriter, span trace.Span) error { // Encoding response headers. { @@ -342,6 +366,7 @@ func encodeActionsDownloadJobLogsForWorkflowRunResponse(response ActionsDownload return nil } + func encodeActionsDownloadWorkflowRunLogsResponse(response ActionsDownloadWorkflowRunLogsFound, w http.ResponseWriter, span trace.Span) error { // Encoding response headers. { @@ -367,12 +392,14 @@ func encodeActionsDownloadWorkflowRunLogsResponse(response ActionsDownloadWorkfl return nil } + func encodeActionsEnableSelectedRepositoryGithubActionsOrganizationResponse(response ActionsEnableSelectedRepositoryGithubActionsOrganizationNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeActionsGetAllowedActionsOrganizationResponse(response SelectedActions, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -386,6 +413,7 @@ func encodeActionsGetAllowedActionsOrganizationResponse(response SelectedActions return nil } + func encodeActionsGetAllowedActionsRepositoryResponse(response SelectedActions, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -399,6 +427,7 @@ func encodeActionsGetAllowedActionsRepositoryResponse(response SelectedActions, return nil } + func encodeActionsGetArtifactResponse(response Artifact, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -412,6 +441,7 @@ func encodeActionsGetArtifactResponse(response Artifact, w http.ResponseWriter, return nil } + func encodeActionsGetEnvironmentPublicKeyResponse(response ActionsPublicKey, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -425,6 +455,7 @@ func encodeActionsGetEnvironmentPublicKeyResponse(response ActionsPublicKey, w h return nil } + func encodeActionsGetEnvironmentSecretResponse(response ActionsSecret, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -438,6 +469,7 @@ func encodeActionsGetEnvironmentSecretResponse(response ActionsSecret, w http.Re return nil } + func encodeActionsGetGithubActionsPermissionsOrganizationResponse(response ActionsOrganizationPermissions, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -451,6 +483,7 @@ func encodeActionsGetGithubActionsPermissionsOrganizationResponse(response Actio return nil } + func encodeActionsGetGithubActionsPermissionsRepositoryResponse(response ActionsRepositoryPermissions, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -464,6 +497,7 @@ func encodeActionsGetGithubActionsPermissionsRepositoryResponse(response Actions return nil } + func encodeActionsGetJobForWorkflowRunResponse(response Job, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -477,6 +511,7 @@ func encodeActionsGetJobForWorkflowRunResponse(response Job, w http.ResponseWrit return nil } + func encodeActionsGetOrgPublicKeyResponse(response ActionsPublicKey, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -490,6 +525,7 @@ func encodeActionsGetOrgPublicKeyResponse(response ActionsPublicKey, w http.Resp return nil } + func encodeActionsGetOrgSecretResponse(response OrganizationActionsSecret, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -503,6 +539,7 @@ func encodeActionsGetOrgSecretResponse(response OrganizationActionsSecret, w htt return nil } + func encodeActionsGetRepoPublicKeyResponse(response ActionsPublicKey, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -516,6 +553,7 @@ func encodeActionsGetRepoPublicKeyResponse(response ActionsPublicKey, w http.Res return nil } + func encodeActionsGetRepoSecretResponse(response ActionsSecret, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -529,6 +567,7 @@ func encodeActionsGetRepoSecretResponse(response ActionsSecret, w http.ResponseW return nil } + func encodeActionsGetReviewsForRunResponse(response []EnvironmentApprovals, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -546,6 +585,7 @@ func encodeActionsGetReviewsForRunResponse(response []EnvironmentApprovals, w ht return nil } + func encodeActionsGetSelfHostedRunnerForOrgResponse(response Runner, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -559,6 +599,7 @@ func encodeActionsGetSelfHostedRunnerForOrgResponse(response Runner, w http.Resp return nil } + func encodeActionsGetSelfHostedRunnerForRepoResponse(response Runner, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -572,6 +613,7 @@ func encodeActionsGetSelfHostedRunnerForRepoResponse(response Runner, w http.Res return nil } + func encodeActionsGetSelfHostedRunnerGroupForOrgResponse(response RunnerGroupsOrg, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -585,6 +627,7 @@ func encodeActionsGetSelfHostedRunnerGroupForOrgResponse(response RunnerGroupsOr return nil } + func encodeActionsGetWorkflowRunResponse(response WorkflowRun, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -598,6 +641,7 @@ func encodeActionsGetWorkflowRunResponse(response WorkflowRun, w http.ResponseWr return nil } + func encodeActionsGetWorkflowRunUsageResponse(response WorkflowRunUsage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -611,6 +655,7 @@ func encodeActionsGetWorkflowRunUsageResponse(response WorkflowRunUsage, w http. return nil } + func encodeActionsListArtifactsForRepoResponse(response ActionsListArtifactsForRepoOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -643,6 +688,7 @@ func encodeActionsListArtifactsForRepoResponse(response ActionsListArtifactsForR return nil } + func encodeActionsListEnvironmentSecretsResponse(response ActionsListEnvironmentSecretsOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -675,6 +721,7 @@ func encodeActionsListEnvironmentSecretsResponse(response ActionsListEnvironment return nil } + func encodeActionsListJobsForWorkflowRunResponse(response ActionsListJobsForWorkflowRunOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -707,6 +754,7 @@ func encodeActionsListJobsForWorkflowRunResponse(response ActionsListJobsForWork return nil } + func encodeActionsListOrgSecretsResponse(response ActionsListOrgSecretsOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -739,6 +787,7 @@ func encodeActionsListOrgSecretsResponse(response ActionsListOrgSecretsOKHeaders return nil } + func encodeActionsListRepoAccessToSelfHostedRunnerGroupInOrgResponse(response ActionsListRepoAccessToSelfHostedRunnerGroupInOrgOK, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -752,6 +801,7 @@ func encodeActionsListRepoAccessToSelfHostedRunnerGroupInOrgResponse(response Ac return nil } + func encodeActionsListRepoSecretsResponse(response ActionsListRepoSecretsOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -784,6 +834,7 @@ func encodeActionsListRepoSecretsResponse(response ActionsListRepoSecretsOKHeade return nil } + func encodeActionsListRepoWorkflowsResponse(response ActionsListRepoWorkflowsOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -816,6 +867,7 @@ func encodeActionsListRepoWorkflowsResponse(response ActionsListRepoWorkflowsOKH return nil } + func encodeActionsListRunnerApplicationsForOrgResponse(response []RunnerApplication, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -833,6 +885,7 @@ func encodeActionsListRunnerApplicationsForOrgResponse(response []RunnerApplicat return nil } + func encodeActionsListRunnerApplicationsForRepoResponse(response []RunnerApplication, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -850,6 +903,7 @@ func encodeActionsListRunnerApplicationsForRepoResponse(response []RunnerApplica return nil } + func encodeActionsListSelectedReposForOrgSecretResponse(response ActionsListSelectedReposForOrgSecretOK, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -863,6 +917,7 @@ func encodeActionsListSelectedReposForOrgSecretResponse(response ActionsListSele return nil } + func encodeActionsListSelectedRepositoriesEnabledGithubActionsOrganizationResponse(response ActionsListSelectedRepositoriesEnabledGithubActionsOrganizationOK, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -876,6 +931,7 @@ func encodeActionsListSelectedRepositoriesEnabledGithubActionsOrganizationRespon return nil } + func encodeActionsListSelfHostedRunnerGroupsForOrgResponse(response ActionsListSelfHostedRunnerGroupsForOrgOK, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -889,6 +945,7 @@ func encodeActionsListSelfHostedRunnerGroupsForOrgResponse(response ActionsListS return nil } + func encodeActionsListSelfHostedRunnersForOrgResponse(response ActionsListSelfHostedRunnersForOrgOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -921,6 +978,7 @@ func encodeActionsListSelfHostedRunnersForOrgResponse(response ActionsListSelfHo return nil } + func encodeActionsListSelfHostedRunnersForRepoResponse(response ActionsListSelfHostedRunnersForRepoOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -953,6 +1011,7 @@ func encodeActionsListSelfHostedRunnersForRepoResponse(response ActionsListSelfH return nil } + func encodeActionsListSelfHostedRunnersInGroupForOrgResponse(response ActionsListSelfHostedRunnersInGroupForOrgOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -985,6 +1044,7 @@ func encodeActionsListSelfHostedRunnersInGroupForOrgResponse(response ActionsLis return nil } + func encodeActionsListWorkflowRunArtifactsResponse(response ActionsListWorkflowRunArtifactsOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -1017,6 +1077,7 @@ func encodeActionsListWorkflowRunArtifactsResponse(response ActionsListWorkflowR return nil } + func encodeActionsListWorkflowRunsForRepoResponse(response ActionsListWorkflowRunsForRepoOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -1049,6 +1110,7 @@ func encodeActionsListWorkflowRunsForRepoResponse(response ActionsListWorkflowRu return nil } + func encodeActionsReRunWorkflowResponse(response ActionsReRunWorkflowCreated, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(201) @@ -1062,12 +1124,14 @@ func encodeActionsReRunWorkflowResponse(response ActionsReRunWorkflowCreated, w return nil } + func encodeActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgResponse(response ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeActionsRemoveSelectedRepoFromOrgSecretResponse(response ActionsRemoveSelectedRepoFromOrgSecretRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ActionsRemoveSelectedRepoFromOrgSecretNoContent: @@ -1084,12 +1148,14 @@ func encodeActionsRemoveSelectedRepoFromOrgSecretResponse(response ActionsRemove return errors.Errorf("unexpected response type: %T", response) } } + func encodeActionsRemoveSelfHostedRunnerFromGroupForOrgResponse(response ActionsRemoveSelfHostedRunnerFromGroupForOrgNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeActionsRetryWorkflowResponse(response ActionsRetryWorkflowCreated, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(201) @@ -1103,6 +1169,7 @@ func encodeActionsRetryWorkflowResponse(response ActionsRetryWorkflowCreated, w return nil } + func encodeActionsReviewPendingDeploymentsForRunResponse(response []Deployment, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1120,54 +1187,63 @@ func encodeActionsReviewPendingDeploymentsForRunResponse(response []Deployment, return nil } + func encodeActionsSetAllowedActionsOrganizationResponse(response ActionsSetAllowedActionsOrganizationNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeActionsSetAllowedActionsRepositoryResponse(response ActionsSetAllowedActionsRepositoryNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeActionsSetGithubActionsPermissionsOrganizationResponse(response ActionsSetGithubActionsPermissionsOrganizationNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeActionsSetGithubActionsPermissionsRepositoryResponse(response ActionsSetGithubActionsPermissionsRepositoryNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeActionsSetRepoAccessToSelfHostedRunnerGroupInOrgResponse(response ActionsSetRepoAccessToSelfHostedRunnerGroupInOrgNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeActionsSetSelectedReposForOrgSecretResponse(response ActionsSetSelectedReposForOrgSecretNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationResponse(response ActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeActionsSetSelfHostedRunnersInGroupForOrgResponse(response ActionsSetSelfHostedRunnersInGroupForOrgNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeActionsUpdateSelfHostedRunnerGroupForOrgResponse(response RunnerGroupsOrg, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1181,6 +1257,7 @@ func encodeActionsUpdateSelfHostedRunnerGroupForOrgResponse(response RunnerGroup return nil } + func encodeActivityCheckRepoIsStarredByAuthenticatedUserResponse(response ActivityCheckRepoIsStarredByAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ActivityCheckRepoIsStarredByAuthenticatedUserNoContent: @@ -1233,12 +1310,14 @@ func encodeActivityCheckRepoIsStarredByAuthenticatedUserResponse(response Activi return errors.Errorf("unexpected response type: %T", response) } } + func encodeActivityDeleteRepoSubscriptionResponse(response ActivityDeleteRepoSubscriptionNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeActivityDeleteThreadSubscriptionResponse(response ActivityDeleteThreadSubscriptionRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ActivityDeleteThreadSubscriptionNoContent: @@ -1279,6 +1358,7 @@ func encodeActivityDeleteThreadSubscriptionResponse(response ActivityDeleteThrea return errors.Errorf("unexpected response type: %T", response) } } + func encodeActivityGetFeedsResponse(response Feed, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1292,6 +1372,7 @@ func encodeActivityGetFeedsResponse(response Feed, w http.ResponseWriter, span t return nil } + func encodeActivityGetRepoSubscriptionResponse(response ActivityGetRepoSubscriptionRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *RepositorySubscription: @@ -1327,6 +1408,7 @@ func encodeActivityGetRepoSubscriptionResponse(response ActivityGetRepoSubscript return errors.Errorf("unexpected response type: %T", response) } } + func encodeActivityGetThreadResponse(response ActivityGetThreadRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Thread: @@ -1374,6 +1456,7 @@ func encodeActivityGetThreadResponse(response ActivityGetThreadRes, w http.Respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeActivityGetThreadSubscriptionForAuthenticatedUserResponse(response ActivityGetThreadSubscriptionForAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ThreadSubscription: @@ -1421,6 +1504,7 @@ func encodeActivityGetThreadSubscriptionForAuthenticatedUserResponse(response Ac return errors.Errorf("unexpected response type: %T", response) } } + func encodeActivityListEventsForAuthenticatedUserResponse(response []Event, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1438,6 +1522,7 @@ func encodeActivityListEventsForAuthenticatedUserResponse(response []Event, w ht return nil } + func encodeActivityListNotificationsForAuthenticatedUserResponse(response ActivityListNotificationsForAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ActivityListNotificationsForAuthenticatedUserOKHeaders: @@ -1520,6 +1605,7 @@ func encodeActivityListNotificationsForAuthenticatedUserResponse(response Activi return errors.Errorf("unexpected response type: %T", response) } } + func encodeActivityListOrgEventsForAuthenticatedUserResponse(response []Event, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1537,6 +1623,7 @@ func encodeActivityListOrgEventsForAuthenticatedUserResponse(response []Event, w return nil } + func encodeActivityListPublicEventsResponse(response ActivityListPublicEventsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ActivityListPublicEventsOKApplicationJSON: @@ -1584,6 +1671,7 @@ func encodeActivityListPublicEventsResponse(response ActivityListPublicEventsRes return errors.Errorf("unexpected response type: %T", response) } } + func encodeActivityListPublicEventsForRepoNetworkResponse(response ActivityListPublicEventsForRepoNetworkRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ActivityListPublicEventsForRepoNetworkOKApplicationJSON: @@ -1643,6 +1731,7 @@ func encodeActivityListPublicEventsForRepoNetworkResponse(response ActivityListP return errors.Errorf("unexpected response type: %T", response) } } + func encodeActivityListPublicEventsForUserResponse(response []Event, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1660,6 +1749,7 @@ func encodeActivityListPublicEventsForUserResponse(response []Event, w http.Resp return nil } + func encodeActivityListPublicOrgEventsResponse(response []Event, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1677,6 +1767,7 @@ func encodeActivityListPublicOrgEventsResponse(response []Event, w http.Response return nil } + func encodeActivityListReceivedEventsForUserResponse(response []Event, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1694,6 +1785,7 @@ func encodeActivityListReceivedEventsForUserResponse(response []Event, w http.Re return nil } + func encodeActivityListReceivedPublicEventsForUserResponse(response []Event, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1711,6 +1803,7 @@ func encodeActivityListReceivedPublicEventsForUserResponse(response []Event, w h return nil } + func encodeActivityListRepoEventsResponse(response []Event, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1728,6 +1821,7 @@ func encodeActivityListRepoEventsResponse(response []Event, w http.ResponseWrite return nil } + func encodeActivityListRepoNotificationsForAuthenticatedUserResponse(response ActivityListRepoNotificationsForAuthenticatedUserOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -1764,6 +1858,7 @@ func encodeActivityListRepoNotificationsForAuthenticatedUserResponse(response Ac return nil } + func encodeActivityListReposStarredByAuthenticatedUserResponse(response ActivityListReposStarredByAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ActivityListReposStarredByAuthenticatedUserOKHeaders: @@ -1834,6 +1929,7 @@ func encodeActivityListReposStarredByAuthenticatedUserResponse(response Activity return errors.Errorf("unexpected response type: %T", response) } } + func encodeActivityListReposWatchedByUserResponse(response ActivityListReposWatchedByUserOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -1870,6 +1966,7 @@ func encodeActivityListReposWatchedByUserResponse(response ActivityListReposWatc return nil } + func encodeActivityListWatchedReposForAuthenticatedUserResponse(response ActivityListWatchedReposForAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ActivityListWatchedReposForAuthenticatedUserOKHeaders: @@ -1940,6 +2037,7 @@ func encodeActivityListWatchedReposForAuthenticatedUserResponse(response Activit return errors.Errorf("unexpected response type: %T", response) } } + func encodeActivityListWatchersForRepoResponse(response ActivityListWatchersForRepoOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -1976,6 +2074,7 @@ func encodeActivityListWatchersForRepoResponse(response ActivityListWatchersForR return nil } + func encodeActivityMarkNotificationsAsReadResponse(response ActivityMarkNotificationsAsReadRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ActivityMarkNotificationsAsReadAccepted: @@ -2028,6 +2127,7 @@ func encodeActivityMarkNotificationsAsReadResponse(response ActivityMarkNotifica return errors.Errorf("unexpected response type: %T", response) } } + func encodeActivityMarkRepoNotificationsAsReadResponse(response ActivityMarkRepoNotificationsAsReadRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ActivityMarkRepoNotificationsAsReadAccepted: @@ -2051,6 +2151,7 @@ func encodeActivityMarkRepoNotificationsAsReadResponse(response ActivityMarkRepo return errors.Errorf("unexpected response type: %T", response) } } + func encodeActivityMarkThreadAsReadResponse(response ActivityMarkThreadAsReadRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ActivityMarkThreadAsReadResetContent: @@ -2079,6 +2180,7 @@ func encodeActivityMarkThreadAsReadResponse(response ActivityMarkThreadAsReadRes return errors.Errorf("unexpected response type: %T", response) } } + func encodeActivitySetRepoSubscriptionResponse(response RepositorySubscription, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2092,6 +2194,7 @@ func encodeActivitySetRepoSubscriptionResponse(response RepositorySubscription, return nil } + func encodeActivitySetThreadSubscriptionResponse(response ActivitySetThreadSubscriptionRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ThreadSubscription: @@ -2139,6 +2242,7 @@ func encodeActivitySetThreadSubscriptionResponse(response ActivitySetThreadSubsc return errors.Errorf("unexpected response type: %T", response) } } + func encodeActivityStarRepoForAuthenticatedUserResponse(response ActivityStarRepoForAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ActivityStarRepoForAuthenticatedUserNoContent: @@ -2191,6 +2295,7 @@ func encodeActivityStarRepoForAuthenticatedUserResponse(response ActivityStarRep return errors.Errorf("unexpected response type: %T", response) } } + func encodeActivityUnstarRepoForAuthenticatedUserResponse(response ActivityUnstarRepoForAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ActivityUnstarRepoForAuthenticatedUserNoContent: @@ -2243,6 +2348,7 @@ func encodeActivityUnstarRepoForAuthenticatedUserResponse(response ActivityUnsta return errors.Errorf("unexpected response type: %T", response) } } + func encodeAppsAddRepoToInstallationResponse(response AppsAddRepoToInstallationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *AppsAddRepoToInstallationNoContent: @@ -2283,6 +2389,7 @@ func encodeAppsAddRepoToInstallationResponse(response AppsAddRepoToInstallationR return errors.Errorf("unexpected response type: %T", response) } } + func encodeAppsCheckTokenResponse(response AppsCheckTokenRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Authorization: @@ -2325,6 +2432,7 @@ func encodeAppsCheckTokenResponse(response AppsCheckTokenRes, w http.ResponseWri return errors.Errorf("unexpected response type: %T", response) } } + func encodeAppsCreateContentAttachmentResponse(response AppsCreateContentAttachmentRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ContentReferenceAttachment: @@ -2408,6 +2516,7 @@ func encodeAppsCreateContentAttachmentResponse(response AppsCreateContentAttachm return errors.Errorf("unexpected response type: %T", response) } } + func encodeAppsCreateFromManifestResponse(response AppsCreateFromManifestRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *AppsCreateFromManifestCreated: @@ -2450,6 +2559,7 @@ func encodeAppsCreateFromManifestResponse(response AppsCreateFromManifestRes, w return errors.Errorf("unexpected response type: %T", response) } } + func encodeAppsCreateInstallationAccessTokenResponse(response AppsCreateInstallationAccessTokenRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *InstallationToken: @@ -2528,6 +2638,7 @@ func encodeAppsCreateInstallationAccessTokenResponse(response AppsCreateInstalla return errors.Errorf("unexpected response type: %T", response) } } + func encodeAppsDeleteAuthorizationResponse(response AppsDeleteAuthorizationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *AppsDeleteAuthorizationNoContent: @@ -2551,6 +2662,7 @@ func encodeAppsDeleteAuthorizationResponse(response AppsDeleteAuthorizationRes, return errors.Errorf("unexpected response type: %T", response) } } + func encodeAppsDeleteInstallationResponse(response AppsDeleteInstallationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *AppsDeleteInstallationNoContent: @@ -2574,6 +2686,7 @@ func encodeAppsDeleteInstallationResponse(response AppsDeleteInstallationRes, w return errors.Errorf("unexpected response type: %T", response) } } + func encodeAppsDeleteTokenResponse(response AppsDeleteTokenRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *AppsDeleteTokenNoContent: @@ -2597,6 +2710,7 @@ func encodeAppsDeleteTokenResponse(response AppsDeleteTokenRes, w http.ResponseW return errors.Errorf("unexpected response type: %T", response) } } + func encodeAppsGetAuthenticatedResponse(response Integration, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2610,6 +2724,7 @@ func encodeAppsGetAuthenticatedResponse(response Integration, w http.ResponseWri return nil } + func encodeAppsGetBySlugResponse(response AppsGetBySlugRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Integration: @@ -2664,6 +2779,7 @@ func encodeAppsGetBySlugResponse(response AppsGetBySlugRes, w http.ResponseWrite return errors.Errorf("unexpected response type: %T", response) } } + func encodeAppsGetSubscriptionPlanForAccountResponse(response AppsGetSubscriptionPlanForAccountRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *MarketplacePurchase: @@ -2706,6 +2822,7 @@ func encodeAppsGetSubscriptionPlanForAccountResponse(response AppsGetSubscriptio return errors.Errorf("unexpected response type: %T", response) } } + func encodeAppsGetSubscriptionPlanForAccountStubbedResponse(response AppsGetSubscriptionPlanForAccountStubbedRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *MarketplacePurchase: @@ -2741,6 +2858,7 @@ func encodeAppsGetSubscriptionPlanForAccountStubbedResponse(response AppsGetSubs return errors.Errorf("unexpected response type: %T", response) } } + func encodeAppsGetWebhookConfigForAppResponse(response WebhookConfig, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2754,6 +2872,7 @@ func encodeAppsGetWebhookConfigForAppResponse(response WebhookConfig, w http.Res return nil } + func encodeAppsGetWebhookDeliveryResponse(response AppsGetWebhookDeliveryRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *HookDelivery: @@ -2796,6 +2915,7 @@ func encodeAppsGetWebhookDeliveryResponse(response AppsGetWebhookDeliveryRes, w return errors.Errorf("unexpected response type: %T", response) } } + func encodeAppsListAccountsForPlanResponse(response AppsListAccountsForPlanRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *AppsListAccountsForPlanOKHeaders: @@ -2873,6 +2993,7 @@ func encodeAppsListAccountsForPlanResponse(response AppsListAccountsForPlanRes, return errors.Errorf("unexpected response type: %T", response) } } + func encodeAppsListAccountsForPlanStubbedResponse(response AppsListAccountsForPlanStubbedRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *AppsListAccountsForPlanStubbedOKHeaders: @@ -2926,6 +3047,7 @@ func encodeAppsListAccountsForPlanStubbedResponse(response AppsListAccountsForPl return errors.Errorf("unexpected response type: %T", response) } } + func encodeAppsListInstallationReposForAuthenticatedUserResponse(response AppsListInstallationReposForAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *AppsListInstallationReposForAuthenticatedUserOKHeaders: @@ -2992,6 +3114,7 @@ func encodeAppsListInstallationReposForAuthenticatedUserResponse(response AppsLi return errors.Errorf("unexpected response type: %T", response) } } + func encodeAppsListPlansResponse(response AppsListPlansRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *AppsListPlansOKHeaders: @@ -3057,6 +3180,7 @@ func encodeAppsListPlansResponse(response AppsListPlansRes, w http.ResponseWrite return errors.Errorf("unexpected response type: %T", response) } } + func encodeAppsListPlansStubbedResponse(response AppsListPlansStubbedRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *AppsListPlansStubbedOKHeaders: @@ -3110,6 +3234,7 @@ func encodeAppsListPlansStubbedResponse(response AppsListPlansStubbedRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodeAppsListReposAccessibleToInstallationResponse(response AppsListReposAccessibleToInstallationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *AppsListReposAccessibleToInstallationOKHeaders: @@ -3176,6 +3301,7 @@ func encodeAppsListReposAccessibleToInstallationResponse(response AppsListReposA return errors.Errorf("unexpected response type: %T", response) } } + func encodeAppsListSubscriptionsForAuthenticatedUserResponse(response AppsListSubscriptionsForAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *AppsListSubscriptionsForAuthenticatedUserOKHeaders: @@ -3246,6 +3372,7 @@ func encodeAppsListSubscriptionsForAuthenticatedUserResponse(response AppsListSu return errors.Errorf("unexpected response type: %T", response) } } + func encodeAppsListSubscriptionsForAuthenticatedUserStubbedResponse(response AppsListSubscriptionsForAuthenticatedUserStubbedRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *AppsListSubscriptionsForAuthenticatedUserStubbedOKHeaders: @@ -3304,6 +3431,7 @@ func encodeAppsListSubscriptionsForAuthenticatedUserStubbedResponse(response App return errors.Errorf("unexpected response type: %T", response) } } + func encodeAppsListWebhookDeliveriesResponse(response AppsListWebhookDeliveriesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *AppsListWebhookDeliveriesOKApplicationJSON: @@ -3346,6 +3474,7 @@ func encodeAppsListWebhookDeliveriesResponse(response AppsListWebhookDeliveriesR return errors.Errorf("unexpected response type: %T", response) } } + func encodeAppsRedeliverWebhookDeliveryResponse(response AppsRedeliverWebhookDeliveryRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Accepted: @@ -3388,6 +3517,7 @@ func encodeAppsRedeliverWebhookDeliveryResponse(response AppsRedeliverWebhookDel return errors.Errorf("unexpected response type: %T", response) } } + func encodeAppsRemoveRepoFromInstallationResponse(response AppsRemoveRepoFromInstallationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *AppsRemoveRepoFromInstallationNoContent: @@ -3428,6 +3558,7 @@ func encodeAppsRemoveRepoFromInstallationResponse(response AppsRemoveRepoFromIns return errors.Errorf("unexpected response type: %T", response) } } + func encodeAppsResetTokenResponse(response AppsResetTokenRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Authorization: @@ -3458,12 +3589,14 @@ func encodeAppsResetTokenResponse(response AppsResetTokenRes, w http.ResponseWri return errors.Errorf("unexpected response type: %T", response) } } + func encodeAppsRevokeInstallationAccessTokenResponse(response AppsRevokeInstallationAccessTokenNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeAppsScopeTokenResponse(response AppsScopeTokenRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Authorization: @@ -3530,6 +3663,7 @@ func encodeAppsScopeTokenResponse(response AppsScopeTokenRes, w http.ResponseWri return errors.Errorf("unexpected response type: %T", response) } } + func encodeAppsSuspendInstallationResponse(response AppsSuspendInstallationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *AppsSuspendInstallationNoContent: @@ -3553,6 +3687,7 @@ func encodeAppsSuspendInstallationResponse(response AppsSuspendInstallationRes, return errors.Errorf("unexpected response type: %T", response) } } + func encodeAppsUnsuspendInstallationResponse(response AppsUnsuspendInstallationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *AppsUnsuspendInstallationNoContent: @@ -3576,6 +3711,7 @@ func encodeAppsUnsuspendInstallationResponse(response AppsUnsuspendInstallationR return errors.Errorf("unexpected response type: %T", response) } } + func encodeAppsUpdateWebhookConfigForAppResponse(response WebhookConfig, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3589,6 +3725,7 @@ func encodeAppsUpdateWebhookConfigForAppResponse(response WebhookConfig, w http. return nil } + func encodeBillingGetGithubActionsBillingGheResponse(response ActionsBillingUsage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3602,6 +3739,7 @@ func encodeBillingGetGithubActionsBillingGheResponse(response ActionsBillingUsag return nil } + func encodeBillingGetGithubActionsBillingOrgResponse(response ActionsBillingUsage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3615,6 +3753,7 @@ func encodeBillingGetGithubActionsBillingOrgResponse(response ActionsBillingUsag return nil } + func encodeBillingGetGithubActionsBillingUserResponse(response ActionsBillingUsage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3628,6 +3767,7 @@ func encodeBillingGetGithubActionsBillingUserResponse(response ActionsBillingUsa return nil } + func encodeBillingGetGithubPackagesBillingGheResponse(response PackagesBillingUsage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3641,6 +3781,7 @@ func encodeBillingGetGithubPackagesBillingGheResponse(response PackagesBillingUs return nil } + func encodeBillingGetGithubPackagesBillingOrgResponse(response PackagesBillingUsage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3654,6 +3795,7 @@ func encodeBillingGetGithubPackagesBillingOrgResponse(response PackagesBillingUs return nil } + func encodeBillingGetGithubPackagesBillingUserResponse(response PackagesBillingUsage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3667,6 +3809,7 @@ func encodeBillingGetGithubPackagesBillingUserResponse(response PackagesBillingU return nil } + func encodeBillingGetSharedStorageBillingGheResponse(response CombinedBillingUsage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3680,6 +3823,7 @@ func encodeBillingGetSharedStorageBillingGheResponse(response CombinedBillingUsa return nil } + func encodeBillingGetSharedStorageBillingOrgResponse(response CombinedBillingUsage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3693,6 +3837,7 @@ func encodeBillingGetSharedStorageBillingOrgResponse(response CombinedBillingUsa return nil } + func encodeBillingGetSharedStorageBillingUserResponse(response CombinedBillingUsage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3706,6 +3851,7 @@ func encodeBillingGetSharedStorageBillingUserResponse(response CombinedBillingUs return nil } + func encodeChecksCreateSuiteResponse(response ChecksCreateSuiteRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ChecksCreateSuiteApplicationJSONOK: @@ -3736,6 +3882,7 @@ func encodeChecksCreateSuiteResponse(response ChecksCreateSuiteRes, w http.Respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeChecksGetResponse(response CheckRun, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3749,6 +3896,7 @@ func encodeChecksGetResponse(response CheckRun, w http.ResponseWriter, span trac return nil } + func encodeChecksGetSuiteResponse(response CheckSuite, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3762,6 +3910,7 @@ func encodeChecksGetSuiteResponse(response CheckSuite, w http.ResponseWriter, sp return nil } + func encodeChecksListAnnotationsResponse(response ChecksListAnnotationsOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -3798,6 +3947,7 @@ func encodeChecksListAnnotationsResponse(response ChecksListAnnotationsOKHeaders return nil } + func encodeChecksListForRefResponse(response ChecksListForRefOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -3830,6 +3980,7 @@ func encodeChecksListForRefResponse(response ChecksListForRefOKHeaders, w http.R return nil } + func encodeChecksListForSuiteResponse(response ChecksListForSuiteOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -3862,6 +4013,7 @@ func encodeChecksListForSuiteResponse(response ChecksListForSuiteOKHeaders, w ht return nil } + func encodeChecksListSuitesForRefResponse(response ChecksListSuitesForRefOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -3894,6 +4046,7 @@ func encodeChecksListSuitesForRefResponse(response ChecksListSuitesForRefOKHeade return nil } + func encodeChecksRerequestSuiteResponse(response ChecksRerequestSuiteCreated, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(201) @@ -3907,6 +4060,7 @@ func encodeChecksRerequestSuiteResponse(response ChecksRerequestSuiteCreated, w return nil } + func encodeChecksSetSuitesPreferencesResponse(response CheckSuitePreference, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3920,6 +4074,7 @@ func encodeChecksSetSuitesPreferencesResponse(response CheckSuitePreference, w h return nil } + func encodeCodeScanningDeleteAnalysisResponse(response CodeScanningDeleteAnalysisRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *CodeScanningAnalysisDeletion: @@ -3986,6 +4141,7 @@ func encodeCodeScanningDeleteAnalysisResponse(response CodeScanningDeleteAnalysi return errors.Errorf("unexpected response type: %T", response) } } + func encodeCodeScanningGetAlertResponse(response CodeScanningGetAlertRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *CodeScanningAlert: @@ -4040,6 +4196,7 @@ func encodeCodeScanningGetAlertResponse(response CodeScanningGetAlertRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodeCodeScanningGetAnalysisResponse(response CodeScanningGetAnalysisRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *CodeScanningAnalysis: @@ -4094,6 +4251,7 @@ func encodeCodeScanningGetAnalysisResponse(response CodeScanningGetAnalysisRes, return errors.Errorf("unexpected response type: %T", response) } } + func encodeCodeScanningGetSarifResponse(response CodeScanningGetSarifRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *CodeScanningSarifsStatus: @@ -4141,6 +4299,7 @@ func encodeCodeScanningGetSarifResponse(response CodeScanningGetSarifRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodeCodeScanningListAlertInstancesResponse(response CodeScanningListAlertInstancesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *CodeScanningListAlertInstancesOKApplicationJSON: @@ -4195,6 +4354,7 @@ func encodeCodeScanningListAlertInstancesResponse(response CodeScanningListAlert return errors.Errorf("unexpected response type: %T", response) } } + func encodeCodeScanningListAlertsForRepoResponse(response CodeScanningListAlertsForRepoRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *CodeScanningListAlertsForRepoOKApplicationJSON: @@ -4249,6 +4409,7 @@ func encodeCodeScanningListAlertsForRepoResponse(response CodeScanningListAlerts return errors.Errorf("unexpected response type: %T", response) } } + func encodeCodeScanningListRecentAnalysesResponse(response CodeScanningListRecentAnalysesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *CodeScanningListRecentAnalysesOKApplicationJSON: @@ -4303,6 +4464,7 @@ func encodeCodeScanningListRecentAnalysesResponse(response CodeScanningListRecen return errors.Errorf("unexpected response type: %T", response) } } + func encodeCodeScanningUpdateAlertResponse(response CodeScanningUpdateAlertRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *CodeScanningAlert: @@ -4357,6 +4519,7 @@ func encodeCodeScanningUpdateAlertResponse(response CodeScanningUpdateAlertRes, return errors.Errorf("unexpected response type: %T", response) } } + func encodeCodeScanningUploadSarifResponse(response CodeScanningUploadSarifRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *CodeScanningSarifsReceipt: @@ -4421,6 +4584,7 @@ func encodeCodeScanningUploadSarifResponse(response CodeScanningUploadSarifRes, return errors.Errorf("unexpected response type: %T", response) } } + func encodeCodesOfConductGetAllCodesOfConductResponse(response CodesOfConductGetAllCodesOfConductRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *CodesOfConductGetAllCodesOfConductOKApplicationJSON: @@ -4444,6 +4608,7 @@ func encodeCodesOfConductGetAllCodesOfConductResponse(response CodesOfConductGet return errors.Errorf("unexpected response type: %T", response) } } + func encodeCodesOfConductGetConductCodeResponse(response CodesOfConductGetConductCodeRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *CodeOfConduct: @@ -4479,6 +4644,7 @@ func encodeCodesOfConductGetConductCodeResponse(response CodesOfConductGetConduc return errors.Errorf("unexpected response type: %T", response) } } + func encodeEmojisGetResponse(response EmojisGetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *EmojisGetOK: @@ -4502,18 +4668,21 @@ func encodeEmojisGetResponse(response EmojisGetRes, w http.ResponseWriter, span return errors.Errorf("unexpected response type: %T", response) } } + func encodeEnterpriseAdminAddOrgAccessToSelfHostedRunnerGroupInEnterpriseResponse(response EnterpriseAdminAddOrgAccessToSelfHostedRunnerGroupInEnterpriseNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeEnterpriseAdminAddSelfHostedRunnerToGroupForEnterpriseResponse(response EnterpriseAdminAddSelfHostedRunnerToGroupForEnterpriseNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeEnterpriseAdminCreateRegistrationTokenForEnterpriseResponse(response AuthenticationToken, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(201) @@ -4527,6 +4696,7 @@ func encodeEnterpriseAdminCreateRegistrationTokenForEnterpriseResponse(response return nil } + func encodeEnterpriseAdminCreateRemoveTokenForEnterpriseResponse(response AuthenticationToken, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(201) @@ -4540,6 +4710,7 @@ func encodeEnterpriseAdminCreateRemoveTokenForEnterpriseResponse(response Authen return nil } + func encodeEnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseResponse(response RunnerGroupsEnterprise, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(201) @@ -4553,42 +4724,49 @@ func encodeEnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseResponse(respo return nil } + func encodeEnterpriseAdminDeleteScimGroupFromEnterpriseResponse(response EnterpriseAdminDeleteScimGroupFromEnterpriseNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeEnterpriseAdminDeleteSelfHostedRunnerFromEnterpriseResponse(response EnterpriseAdminDeleteSelfHostedRunnerFromEnterpriseNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeEnterpriseAdminDeleteSelfHostedRunnerGroupFromEnterpriseResponse(response EnterpriseAdminDeleteSelfHostedRunnerGroupFromEnterpriseNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeEnterpriseAdminDeleteUserFromEnterpriseResponse(response EnterpriseAdminDeleteUserFromEnterpriseNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeEnterpriseAdminDisableSelectedOrganizationGithubActionsEnterpriseResponse(response EnterpriseAdminDisableSelectedOrganizationGithubActionsEnterpriseNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeEnterpriseAdminEnableSelectedOrganizationGithubActionsEnterpriseResponse(response EnterpriseAdminEnableSelectedOrganizationGithubActionsEnterpriseNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeEnterpriseAdminGetAllowedActionsEnterpriseResponse(response SelectedActions, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4602,6 +4780,7 @@ func encodeEnterpriseAdminGetAllowedActionsEnterpriseResponse(response SelectedA return nil } + func encodeEnterpriseAdminGetAuditLogResponse(response []AuditLogEvent, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4619,6 +4798,7 @@ func encodeEnterpriseAdminGetAuditLogResponse(response []AuditLogEvent, w http.R return nil } + func encodeEnterpriseAdminGetGithubActionsPermissionsEnterpriseResponse(response ActionsEnterprisePermissions, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4632,6 +4812,7 @@ func encodeEnterpriseAdminGetGithubActionsPermissionsEnterpriseResponse(response return nil } + func encodeEnterpriseAdminGetProvisioningInformationForEnterpriseGroupResponse(response ScimEnterpriseGroup, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4645,6 +4826,7 @@ func encodeEnterpriseAdminGetProvisioningInformationForEnterpriseGroupResponse(r return nil } + func encodeEnterpriseAdminGetProvisioningInformationForEnterpriseUserResponse(response ScimEnterpriseUser, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4658,6 +4840,7 @@ func encodeEnterpriseAdminGetProvisioningInformationForEnterpriseUserResponse(re return nil } + func encodeEnterpriseAdminGetSelfHostedRunnerForEnterpriseResponse(response Runner, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4671,6 +4854,7 @@ func encodeEnterpriseAdminGetSelfHostedRunnerForEnterpriseResponse(response Runn return nil } + func encodeEnterpriseAdminGetSelfHostedRunnerGroupForEnterpriseResponse(response RunnerGroupsEnterprise, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4684,6 +4868,7 @@ func encodeEnterpriseAdminGetSelfHostedRunnerGroupForEnterpriseResponse(response return nil } + func encodeEnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterpriseResponse(response EnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterpriseOK, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4697,6 +4882,7 @@ func encodeEnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterpriseRespon return nil } + func encodeEnterpriseAdminListProvisionedGroupsEnterpriseResponse(response ScimGroupListEnterprise, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4710,6 +4896,7 @@ func encodeEnterpriseAdminListProvisionedGroupsEnterpriseResponse(response ScimG return nil } + func encodeEnterpriseAdminListProvisionedIdentitiesEnterpriseResponse(response ScimUserListEnterprise, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4723,6 +4910,7 @@ func encodeEnterpriseAdminListProvisionedIdentitiesEnterpriseResponse(response S return nil } + func encodeEnterpriseAdminListRunnerApplicationsForEnterpriseResponse(response []RunnerApplication, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4740,6 +4928,7 @@ func encodeEnterpriseAdminListRunnerApplicationsForEnterpriseResponse(response [ return nil } + func encodeEnterpriseAdminListSelectedOrganizationsEnabledGithubActionsEnterpriseResponse(response EnterpriseAdminListSelectedOrganizationsEnabledGithubActionsEnterpriseOK, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4753,6 +4942,7 @@ func encodeEnterpriseAdminListSelectedOrganizationsEnabledGithubActionsEnterpris return nil } + func encodeEnterpriseAdminListSelfHostedRunnerGroupsForEnterpriseResponse(response EnterpriseAdminListSelfHostedRunnerGroupsForEnterpriseOK, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4766,6 +4956,7 @@ func encodeEnterpriseAdminListSelfHostedRunnerGroupsForEnterpriseResponse(respon return nil } + func encodeEnterpriseAdminListSelfHostedRunnersForEnterpriseResponse(response EnterpriseAdminListSelfHostedRunnersForEnterpriseOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -4798,6 +4989,7 @@ func encodeEnterpriseAdminListSelfHostedRunnersForEnterpriseResponse(response En return nil } + func encodeEnterpriseAdminListSelfHostedRunnersInGroupForEnterpriseResponse(response EnterpriseAdminListSelfHostedRunnersInGroupForEnterpriseOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -4830,6 +5022,7 @@ func encodeEnterpriseAdminListSelfHostedRunnersInGroupForEnterpriseResponse(resp return nil } + func encodeEnterpriseAdminProvisionAndInviteEnterpriseGroupResponse(response ScimEnterpriseGroup, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(201) @@ -4843,6 +5036,7 @@ func encodeEnterpriseAdminProvisionAndInviteEnterpriseGroupResponse(response Sci return nil } + func encodeEnterpriseAdminProvisionAndInviteEnterpriseUserResponse(response ScimEnterpriseUser, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(201) @@ -4856,30 +5050,35 @@ func encodeEnterpriseAdminProvisionAndInviteEnterpriseUserResponse(response Scim return nil } + func encodeEnterpriseAdminRemoveOrgAccessToSelfHostedRunnerGroupInEnterpriseResponse(response EnterpriseAdminRemoveOrgAccessToSelfHostedRunnerGroupInEnterpriseNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeEnterpriseAdminRemoveSelfHostedRunnerFromGroupForEnterpriseResponse(response EnterpriseAdminRemoveSelfHostedRunnerFromGroupForEnterpriseNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeEnterpriseAdminSetAllowedActionsEnterpriseResponse(response EnterpriseAdminSetAllowedActionsEnterpriseNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeEnterpriseAdminSetGithubActionsPermissionsEnterpriseResponse(response EnterpriseAdminSetGithubActionsPermissionsEnterpriseNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeEnterpriseAdminSetInformationForProvisionedEnterpriseGroupResponse(response ScimEnterpriseGroup, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4893,6 +5092,7 @@ func encodeEnterpriseAdminSetInformationForProvisionedEnterpriseGroupResponse(re return nil } + func encodeEnterpriseAdminSetInformationForProvisionedEnterpriseUserResponse(response ScimEnterpriseUser, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4906,24 +5106,28 @@ func encodeEnterpriseAdminSetInformationForProvisionedEnterpriseUserResponse(res return nil } + func encodeEnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterpriseResponse(response EnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterpriseNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeEnterpriseAdminSetSelectedOrganizationsEnabledGithubActionsEnterpriseResponse(response EnterpriseAdminSetSelectedOrganizationsEnabledGithubActionsEnterpriseNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeEnterpriseAdminSetSelfHostedRunnersInGroupForEnterpriseResponse(response EnterpriseAdminSetSelfHostedRunnersInGroupForEnterpriseNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeEnterpriseAdminUpdateAttributeForEnterpriseGroupResponse(response ScimEnterpriseGroup, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4937,6 +5141,7 @@ func encodeEnterpriseAdminUpdateAttributeForEnterpriseGroupResponse(response Sci return nil } + func encodeEnterpriseAdminUpdateAttributeForEnterpriseUserResponse(response ScimEnterpriseUser, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4950,6 +5155,7 @@ func encodeEnterpriseAdminUpdateAttributeForEnterpriseUserResponse(response Scim return nil } + func encodeEnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseResponse(response RunnerGroupsEnterprise, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4963,6 +5169,7 @@ func encodeEnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseResponse(respo return nil } + func encodeGistsCheckIsStarredResponse(response GistsCheckIsStarredRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GistsCheckIsStarredNoContent: @@ -5003,6 +5210,7 @@ func encodeGistsCheckIsStarredResponse(response GistsCheckIsStarredRes, w http.R return errors.Errorf("unexpected response type: %T", response) } } + func encodeGistsCreateResponse(response GistsCreateRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GistSimpleHeaders: @@ -5081,6 +5289,7 @@ func encodeGistsCreateResponse(response GistsCreateRes, w http.ResponseWriter, s return errors.Errorf("unexpected response type: %T", response) } } + func encodeGistsCreateCommentResponse(response GistsCreateCommentRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GistCommentHeaders: @@ -5147,6 +5356,7 @@ func encodeGistsCreateCommentResponse(response GistsCreateCommentRes, w http.Res return errors.Errorf("unexpected response type: %T", response) } } + func encodeGistsDeleteResponse(response GistsDeleteRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GistsDeleteNoContent: @@ -5187,6 +5397,7 @@ func encodeGistsDeleteResponse(response GistsDeleteRes, w http.ResponseWriter, s return errors.Errorf("unexpected response type: %T", response) } } + func encodeGistsDeleteCommentResponse(response GistsDeleteCommentRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GistsDeleteCommentNoContent: @@ -5227,6 +5438,7 @@ func encodeGistsDeleteCommentResponse(response GistsDeleteCommentRes, w http.Res return errors.Errorf("unexpected response type: %T", response) } } + func encodeGistsForkResponse(response GistsForkRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *BaseGistHeaders: @@ -5305,6 +5517,7 @@ func encodeGistsForkResponse(response GistsForkRes, w http.ResponseWriter, span return errors.Errorf("unexpected response type: %T", response) } } + func encodeGistsGetResponse(response GistsGetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GistSimple: @@ -5352,6 +5565,7 @@ func encodeGistsGetResponse(response GistsGetRes, w http.ResponseWriter, span tr return errors.Errorf("unexpected response type: %T", response) } } + func encodeGistsGetCommentResponse(response GistsGetCommentRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GistComment: @@ -5399,6 +5613,7 @@ func encodeGistsGetCommentResponse(response GistsGetCommentRes, w http.ResponseW return errors.Errorf("unexpected response type: %T", response) } } + func encodeGistsGetRevisionResponse(response GistsGetRevisionRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GistSimple: @@ -5453,6 +5668,7 @@ func encodeGistsGetRevisionResponse(response GistsGetRevisionRes, w http.Respons return errors.Errorf("unexpected response type: %T", response) } } + func encodeGistsListResponse(response GistsListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GistsListOKHeaders: @@ -5511,6 +5727,7 @@ func encodeGistsListResponse(response GistsListRes, w http.ResponseWriter, span return errors.Errorf("unexpected response type: %T", response) } } + func encodeGistsListCommentsResponse(response GistsListCommentsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GistsListCommentsOKHeaders: @@ -5581,6 +5798,7 @@ func encodeGistsListCommentsResponse(response GistsListCommentsRes, w http.Respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeGistsListCommitsResponse(response GistsListCommitsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GistsListCommitsOKHeaders: @@ -5651,6 +5869,7 @@ func encodeGistsListCommitsResponse(response GistsListCommitsRes, w http.Respons return errors.Errorf("unexpected response type: %T", response) } } + func encodeGistsListForUserResponse(response GistsListForUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GistsListForUserOKHeaders: @@ -5704,6 +5923,7 @@ func encodeGistsListForUserResponse(response GistsListForUserRes, w http.Respons return errors.Errorf("unexpected response type: %T", response) } } + func encodeGistsListForksResponse(response GistsListForksRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GistsListForksOKHeaders: @@ -5774,6 +5994,7 @@ func encodeGistsListForksResponse(response GistsListForksRes, w http.ResponseWri return errors.Errorf("unexpected response type: %T", response) } } + func encodeGistsListPublicResponse(response GistsListPublicRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GistsListPublicOKHeaders: @@ -5844,6 +6065,7 @@ func encodeGistsListPublicResponse(response GistsListPublicRes, w http.ResponseW return errors.Errorf("unexpected response type: %T", response) } } + func encodeGistsListStarredResponse(response GistsListStarredRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GistsListStarredOKHeaders: @@ -5914,6 +6136,7 @@ func encodeGistsListStarredResponse(response GistsListStarredRes, w http.Respons return errors.Errorf("unexpected response type: %T", response) } } + func encodeGistsStarResponse(response GistsStarRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GistsStarNoContent: @@ -5954,6 +6177,7 @@ func encodeGistsStarResponse(response GistsStarRes, w http.ResponseWriter, span return errors.Errorf("unexpected response type: %T", response) } } + func encodeGistsUnstarResponse(response GistsUnstarRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GistsUnstarNoContent: @@ -5994,6 +6218,7 @@ func encodeGistsUnstarResponse(response GistsUnstarRes, w http.ResponseWriter, s return errors.Errorf("unexpected response type: %T", response) } } + func encodeGistsUpdateCommentResponse(response GistsUpdateCommentRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GistComment: @@ -6024,6 +6249,7 @@ func encodeGistsUpdateCommentResponse(response GistsUpdateCommentRes, w http.Res return errors.Errorf("unexpected response type: %T", response) } } + func encodeGitCreateBlobResponse(response GitCreateBlobRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ShortBlobHeaders: @@ -6109,6 +6335,7 @@ func encodeGitCreateBlobResponse(response GitCreateBlobRes, w http.ResponseWrite return errors.Errorf("unexpected response type: %T", response) } } + func encodeGitCreateCommitResponse(response GitCreateCommitRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GitCommitHeaders: @@ -6170,6 +6397,7 @@ func encodeGitCreateCommitResponse(response GitCreateCommitRes, w http.ResponseW return errors.Errorf("unexpected response type: %T", response) } } + func encodeGitCreateRefResponse(response GitCreateRefRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GitRefHeaders: @@ -6219,6 +6447,7 @@ func encodeGitCreateRefResponse(response GitCreateRefRes, w http.ResponseWriter, return errors.Errorf("unexpected response type: %T", response) } } + func encodeGitCreateTagResponse(response GitCreateTagRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GitTagHeaders: @@ -6268,6 +6497,7 @@ func encodeGitCreateTagResponse(response GitCreateTagRes, w http.ResponseWriter, return errors.Errorf("unexpected response type: %T", response) } } + func encodeGitCreateTreeResponse(response GitCreateTreeRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GitTreeHeaders: @@ -6341,6 +6571,7 @@ func encodeGitCreateTreeResponse(response GitCreateTreeRes, w http.ResponseWrite return errors.Errorf("unexpected response type: %T", response) } } + func encodeGitDeleteRefResponse(response GitDeleteRefRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GitDeleteRefNoContent: @@ -6364,6 +6595,7 @@ func encodeGitDeleteRefResponse(response GitDeleteRefRes, w http.ResponseWriter, return errors.Errorf("unexpected response type: %T", response) } } + func encodeGitGetBlobResponse(response GitGetBlobRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Blob: @@ -6418,6 +6650,7 @@ func encodeGitGetBlobResponse(response GitGetBlobRes, w http.ResponseWriter, spa return errors.Errorf("unexpected response type: %T", response) } } + func encodeGitGetCommitResponse(response GitGetCommitRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GitCommit: @@ -6448,6 +6681,7 @@ func encodeGitGetCommitResponse(response GitGetCommitRes, w http.ResponseWriter, return errors.Errorf("unexpected response type: %T", response) } } + func encodeGitGetRefResponse(response GitGetRefRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GitRef: @@ -6478,6 +6712,7 @@ func encodeGitGetRefResponse(response GitGetRefRes, w http.ResponseWriter, span return errors.Errorf("unexpected response type: %T", response) } } + func encodeGitGetTagResponse(response GitGetTagRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GitTag: @@ -6508,6 +6743,7 @@ func encodeGitGetTagResponse(response GitGetTagRes, w http.ResponseWriter, span return errors.Errorf("unexpected response type: %T", response) } } + func encodeGitGetTreeResponse(response GitGetTreeRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GitTree: @@ -6550,6 +6786,7 @@ func encodeGitGetTreeResponse(response GitGetTreeRes, w http.ResponseWriter, spa return errors.Errorf("unexpected response type: %T", response) } } + func encodeGitListMatchingRefsResponse(response GitListMatchingRefsOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -6586,6 +6823,7 @@ func encodeGitListMatchingRefsResponse(response GitListMatchingRefsOKHeaders, w return nil } + func encodeGitUpdateRefResponse(response GitUpdateRefRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GitRef: @@ -6616,6 +6854,7 @@ func encodeGitUpdateRefResponse(response GitUpdateRefRes, w http.ResponseWriter, return errors.Errorf("unexpected response type: %T", response) } } + func encodeGitignoreGetAllTemplatesResponse(response GitignoreGetAllTemplatesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GitignoreGetAllTemplatesOKApplicationJSON: @@ -6639,6 +6878,7 @@ func encodeGitignoreGetAllTemplatesResponse(response GitignoreGetAllTemplatesRes return errors.Errorf("unexpected response type: %T", response) } } + func encodeGitignoreGetTemplateResponse(response GitignoreGetTemplateRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GitignoreTemplate: @@ -6662,18 +6902,21 @@ func encodeGitignoreGetTemplateResponse(response GitignoreGetTemplateRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodeInteractionsRemoveRestrictionsForAuthenticatedUserResponse(response InteractionsRemoveRestrictionsForAuthenticatedUserNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeInteractionsRemoveRestrictionsForOrgResponse(response InteractionsRemoveRestrictionsForOrgNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeInteractionsRemoveRestrictionsForRepoResponse(response InteractionsRemoveRestrictionsForRepoRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *InteractionsRemoveRestrictionsForRepoNoContent: @@ -6690,6 +6933,7 @@ func encodeInteractionsRemoveRestrictionsForRepoResponse(response InteractionsRe return errors.Errorf("unexpected response type: %T", response) } } + func encodeInteractionsSetRestrictionsForAuthenticatedUserResponse(response InteractionsSetRestrictionsForAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *InteractionLimitResponse: @@ -6720,6 +6964,7 @@ func encodeInteractionsSetRestrictionsForAuthenticatedUserResponse(response Inte return errors.Errorf("unexpected response type: %T", response) } } + func encodeInteractionsSetRestrictionsForOrgResponse(response InteractionsSetRestrictionsForOrgRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *InteractionLimitResponse: @@ -6750,6 +6995,7 @@ func encodeInteractionsSetRestrictionsForOrgResponse(response InteractionsSetRes return errors.Errorf("unexpected response type: %T", response) } } + func encodeInteractionsSetRestrictionsForRepoResponse(response InteractionsSetRestrictionsForRepoRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *InteractionLimitResponse: @@ -6773,6 +7019,7 @@ func encodeInteractionsSetRestrictionsForRepoResponse(response InteractionsSetRe return errors.Errorf("unexpected response type: %T", response) } } + func encodeIssuesAddAssigneesResponse(response IssueSimple, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(201) @@ -6786,6 +7033,7 @@ func encodeIssuesAddAssigneesResponse(response IssueSimple, w http.ResponseWrite return nil } + func encodeIssuesCheckUserCanBeAssignedResponse(response IssuesCheckUserCanBeAssignedRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IssuesCheckUserCanBeAssignedNoContent: @@ -6809,6 +7057,7 @@ func encodeIssuesCheckUserCanBeAssignedResponse(response IssuesCheckUserCanBeAss return errors.Errorf("unexpected response type: %T", response) } } + func encodeIssuesCreateResponse(response IssuesCreateRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IssueHeaders: @@ -6906,6 +7155,7 @@ func encodeIssuesCreateResponse(response IssuesCreateRes, w http.ResponseWriter, return errors.Errorf("unexpected response type: %T", response) } } + func encodeIssuesCreateCommentResponse(response IssuesCreateCommentRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IssueCommentHeaders: @@ -6991,6 +7241,7 @@ func encodeIssuesCreateCommentResponse(response IssuesCreateCommentRes, w http.R return errors.Errorf("unexpected response type: %T", response) } } + func encodeIssuesCreateLabelResponse(response IssuesCreateLabelRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *LabelHeaders: @@ -7052,6 +7303,7 @@ func encodeIssuesCreateLabelResponse(response IssuesCreateLabelRes, w http.Respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeIssuesCreateMilestoneResponse(response IssuesCreateMilestoneRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *MilestoneHeaders: @@ -7113,18 +7365,21 @@ func encodeIssuesCreateMilestoneResponse(response IssuesCreateMilestoneRes, w ht return errors.Errorf("unexpected response type: %T", response) } } + func encodeIssuesDeleteCommentResponse(response IssuesDeleteCommentNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeIssuesDeleteLabelResponse(response IssuesDeleteLabelNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeIssuesDeleteMilestoneResponse(response IssuesDeleteMilestoneRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IssuesDeleteMilestoneNoContent: @@ -7148,6 +7403,7 @@ func encodeIssuesDeleteMilestoneResponse(response IssuesDeleteMilestoneRes, w ht return errors.Errorf("unexpected response type: %T", response) } } + func encodeIssuesGetResponse(response IssuesGetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Issue: @@ -7207,6 +7463,7 @@ func encodeIssuesGetResponse(response IssuesGetRes, w http.ResponseWriter, span return errors.Errorf("unexpected response type: %T", response) } } + func encodeIssuesGetCommentResponse(response IssuesGetCommentRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IssueComment: @@ -7237,6 +7494,7 @@ func encodeIssuesGetCommentResponse(response IssuesGetCommentRes, w http.Respons return errors.Errorf("unexpected response type: %T", response) } } + func encodeIssuesGetEventResponse(response IssuesGetEventRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IssueEvent: @@ -7291,6 +7549,7 @@ func encodeIssuesGetEventResponse(response IssuesGetEventRes, w http.ResponseWri return errors.Errorf("unexpected response type: %T", response) } } + func encodeIssuesGetLabelResponse(response IssuesGetLabelRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Label: @@ -7321,6 +7580,7 @@ func encodeIssuesGetLabelResponse(response IssuesGetLabelRes, w http.ResponseWri return errors.Errorf("unexpected response type: %T", response) } } + func encodeIssuesGetMilestoneResponse(response IssuesGetMilestoneRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Milestone: @@ -7351,6 +7611,7 @@ func encodeIssuesGetMilestoneResponse(response IssuesGetMilestoneRes, w http.Res return errors.Errorf("unexpected response type: %T", response) } } + func encodeIssuesListResponse(response IssuesListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IssuesListOKHeaders: @@ -7421,6 +7682,7 @@ func encodeIssuesListResponse(response IssuesListRes, w http.ResponseWriter, spa return errors.Errorf("unexpected response type: %T", response) } } + func encodeIssuesListAssigneesResponse(response IssuesListAssigneesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IssuesListAssigneesOKHeaders: @@ -7474,6 +7736,7 @@ func encodeIssuesListAssigneesResponse(response IssuesListAssigneesRes, w http.R return errors.Errorf("unexpected response type: %T", response) } } + func encodeIssuesListCommentsResponse(response IssuesListCommentsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IssuesListCommentsOKHeaders: @@ -7539,6 +7802,7 @@ func encodeIssuesListCommentsResponse(response IssuesListCommentsRes, w http.Res return errors.Errorf("unexpected response type: %T", response) } } + func encodeIssuesListCommentsForRepoResponse(response IssuesListCommentsForRepoRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IssuesListCommentsForRepoOKHeaders: @@ -7604,6 +7868,7 @@ func encodeIssuesListCommentsForRepoResponse(response IssuesListCommentsForRepoR return errors.Errorf("unexpected response type: %T", response) } } + func encodeIssuesListEventsForRepoResponse(response IssuesListEventsForRepoRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IssuesListEventsForRepoOKHeaders: @@ -7657,6 +7922,7 @@ func encodeIssuesListEventsForRepoResponse(response IssuesListEventsForRepoRes, return errors.Errorf("unexpected response type: %T", response) } } + func encodeIssuesListForAuthenticatedUserResponse(response IssuesListForAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IssuesListForAuthenticatedUserOKHeaders: @@ -7715,6 +7981,7 @@ func encodeIssuesListForAuthenticatedUserResponse(response IssuesListForAuthenti return errors.Errorf("unexpected response type: %T", response) } } + func encodeIssuesListForOrgResponse(response IssuesListForOrgRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IssuesListForOrgOKHeaders: @@ -7768,6 +8035,7 @@ func encodeIssuesListForOrgResponse(response IssuesListForOrgRes, w http.Respons return errors.Errorf("unexpected response type: %T", response) } } + func encodeIssuesListForRepoResponse(response IssuesListForRepoRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IssuesListForRepoOKHeaders: @@ -7845,6 +8113,7 @@ func encodeIssuesListForRepoResponse(response IssuesListForRepoRes, w http.Respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeIssuesListLabelsForMilestoneResponse(response IssuesListLabelsForMilestoneOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -7881,6 +8150,7 @@ func encodeIssuesListLabelsForMilestoneResponse(response IssuesListLabelsForMile return nil } + func encodeIssuesListLabelsForRepoResponse(response IssuesListLabelsForRepoRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IssuesListLabelsForRepoOKHeaders: @@ -7934,6 +8204,7 @@ func encodeIssuesListLabelsForRepoResponse(response IssuesListLabelsForRepoRes, return errors.Errorf("unexpected response type: %T", response) } } + func encodeIssuesListLabelsOnIssueResponse(response IssuesListLabelsOnIssueRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IssuesListLabelsOnIssueOKHeaders: @@ -7987,6 +8258,7 @@ func encodeIssuesListLabelsOnIssueResponse(response IssuesListLabelsOnIssueRes, return errors.Errorf("unexpected response type: %T", response) } } + func encodeIssuesListMilestonesResponse(response IssuesListMilestonesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IssuesListMilestonesOKHeaders: @@ -8040,6 +8312,7 @@ func encodeIssuesListMilestonesResponse(response IssuesListMilestonesRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodeIssuesLockResponse(response IssuesLockRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IssuesLockNoContent: @@ -8099,6 +8372,7 @@ func encodeIssuesLockResponse(response IssuesLockRes, w http.ResponseWriter, spa return errors.Errorf("unexpected response type: %T", response) } } + func encodeIssuesRemoveAllLabelsResponse(response IssuesRemoveAllLabelsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IssuesRemoveAllLabelsNoContent: @@ -8122,6 +8396,7 @@ func encodeIssuesRemoveAllLabelsResponse(response IssuesRemoveAllLabelsRes, w ht return errors.Errorf("unexpected response type: %T", response) } } + func encodeIssuesRemoveAssigneesResponse(response IssueSimple, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8135,6 +8410,7 @@ func encodeIssuesRemoveAssigneesResponse(response IssueSimple, w http.ResponseWr return nil } + func encodeIssuesRemoveLabelResponse(response IssuesRemoveLabelRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IssuesRemoveLabelOKApplicationJSON: @@ -8177,6 +8453,7 @@ func encodeIssuesRemoveLabelResponse(response IssuesRemoveLabelRes, w http.Respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeIssuesUnlockResponse(response IssuesUnlockRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IssuesUnlockNoContent: @@ -8212,6 +8489,7 @@ func encodeIssuesUnlockResponse(response IssuesUnlockRes, w http.ResponseWriter, return errors.Errorf("unexpected response type: %T", response) } } + func encodeIssuesUpdateResponse(response IssuesUpdateRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Issue: @@ -8302,6 +8580,7 @@ func encodeIssuesUpdateResponse(response IssuesUpdateRes, w http.ResponseWriter, return errors.Errorf("unexpected response type: %T", response) } } + func encodeIssuesUpdateCommentResponse(response IssuesUpdateCommentRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IssueComment: @@ -8332,6 +8611,7 @@ func encodeIssuesUpdateCommentResponse(response IssuesUpdateCommentRes, w http.R return errors.Errorf("unexpected response type: %T", response) } } + func encodeIssuesUpdateLabelResponse(response Label, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8345,6 +8625,7 @@ func encodeIssuesUpdateLabelResponse(response Label, w http.ResponseWriter, span return nil } + func encodeIssuesUpdateMilestoneResponse(response Milestone, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8358,6 +8639,7 @@ func encodeIssuesUpdateMilestoneResponse(response Milestone, w http.ResponseWrit return nil } + func encodeLicensesGetResponse(response LicensesGetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *License: @@ -8405,6 +8687,7 @@ func encodeLicensesGetResponse(response LicensesGetRes, w http.ResponseWriter, s return errors.Errorf("unexpected response type: %T", response) } } + func encodeLicensesGetAllCommonlyUsedResponse(response LicensesGetAllCommonlyUsedRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *LicensesGetAllCommonlyUsedOKApplicationJSON: @@ -8428,6 +8711,7 @@ func encodeLicensesGetAllCommonlyUsedResponse(response LicensesGetAllCommonlyUse return errors.Errorf("unexpected response type: %T", response) } } + func encodeLicensesGetForRepoResponse(response LicenseContent, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8441,6 +8725,7 @@ func encodeLicensesGetForRepoResponse(response LicenseContent, w http.ResponseWr return nil } + func encodeMetaGetResponse(response MetaGetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *APIOverview: @@ -8464,6 +8749,7 @@ func encodeMetaGetResponse(response MetaGetRes, w http.ResponseWriter, span trac return errors.Errorf("unexpected response type: %T", response) } } + func encodeMetaGetZenResponse(response MetaGetZenOK, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "text/plain") w.WriteHeader(200) @@ -8474,6 +8760,7 @@ func encodeMetaGetZenResponse(response MetaGetZenOK, w http.ResponseWriter, span return nil } + func encodeMetaRootResponse(response MetaRootOK, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8487,12 +8774,14 @@ func encodeMetaRootResponse(response MetaRootOK, w http.ResponseWriter, span tra return nil } + func encodeMigrationsCancelImportResponse(response MigrationsCancelImportNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeMigrationsDeleteArchiveForAuthenticatedUserResponse(response MigrationsDeleteArchiveForAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *MigrationsDeleteArchiveForAuthenticatedUserNoContent: @@ -8545,6 +8834,7 @@ func encodeMigrationsDeleteArchiveForAuthenticatedUserResponse(response Migratio return errors.Errorf("unexpected response type: %T", response) } } + func encodeMigrationsDeleteArchiveForOrgResponse(response MigrationsDeleteArchiveForOrgRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *MigrationsDeleteArchiveForOrgNoContent: @@ -8568,6 +8858,7 @@ func encodeMigrationsDeleteArchiveForOrgResponse(response MigrationsDeleteArchiv return errors.Errorf("unexpected response type: %T", response) } } + func encodeMigrationsDownloadArchiveForOrgResponse(response MigrationsDownloadArchiveForOrgRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *MigrationsDownloadArchiveForOrgFound: @@ -8591,6 +8882,7 @@ func encodeMigrationsDownloadArchiveForOrgResponse(response MigrationsDownloadAr return errors.Errorf("unexpected response type: %T", response) } } + func encodeMigrationsGetArchiveForAuthenticatedUserResponse(response MigrationsGetArchiveForAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *MigrationsGetArchiveForAuthenticatedUserFound: @@ -8631,6 +8923,7 @@ func encodeMigrationsGetArchiveForAuthenticatedUserResponse(response MigrationsG return errors.Errorf("unexpected response type: %T", response) } } + func encodeMigrationsGetCommitAuthorsResponse(response MigrationsGetCommitAuthorsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *MigrationsGetCommitAuthorsOKApplicationJSON: @@ -8661,6 +8954,7 @@ func encodeMigrationsGetCommitAuthorsResponse(response MigrationsGetCommitAuthor return errors.Errorf("unexpected response type: %T", response) } } + func encodeMigrationsGetImportStatusResponse(response MigrationsGetImportStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Import: @@ -8691,6 +8985,7 @@ func encodeMigrationsGetImportStatusResponse(response MigrationsGetImportStatusR return errors.Errorf("unexpected response type: %T", response) } } + func encodeMigrationsGetLargeFilesResponse(response []PorterLargeFile, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8708,6 +9003,7 @@ func encodeMigrationsGetLargeFilesResponse(response []PorterLargeFile, w http.Re return nil } + func encodeMigrationsGetStatusForAuthenticatedUserResponse(response MigrationsGetStatusForAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Migration: @@ -8767,6 +9063,7 @@ func encodeMigrationsGetStatusForAuthenticatedUserResponse(response MigrationsGe return errors.Errorf("unexpected response type: %T", response) } } + func encodeMigrationsGetStatusForOrgResponse(response MigrationsGetStatusForOrgRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Migration: @@ -8797,6 +9094,7 @@ func encodeMigrationsGetStatusForOrgResponse(response MigrationsGetStatusForOrgR return errors.Errorf("unexpected response type: %T", response) } } + func encodeMigrationsListForAuthenticatedUserResponse(response MigrationsListForAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *MigrationsListForAuthenticatedUserOKHeaders: @@ -8867,6 +9165,7 @@ func encodeMigrationsListForAuthenticatedUserResponse(response MigrationsListFor return errors.Errorf("unexpected response type: %T", response) } } + func encodeMigrationsListForOrgResponse(response MigrationsListForOrgOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -8903,6 +9202,7 @@ func encodeMigrationsListForOrgResponse(response MigrationsListForOrgOKHeaders, return nil } + func encodeMigrationsListReposForOrgResponse(response MigrationsListReposForOrgRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *MigrationsListReposForOrgOKHeaders: @@ -8956,6 +9256,7 @@ func encodeMigrationsListReposForOrgResponse(response MigrationsListReposForOrgR return errors.Errorf("unexpected response type: %T", response) } } + func encodeMigrationsListReposForUserResponse(response MigrationsListReposForUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *MigrationsListReposForUserOKHeaders: @@ -9009,6 +9310,7 @@ func encodeMigrationsListReposForUserResponse(response MigrationsListReposForUse return errors.Errorf("unexpected response type: %T", response) } } + func encodeMigrationsMapCommitAuthorResponse(response MigrationsMapCommitAuthorRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PorterAuthor: @@ -9051,6 +9353,7 @@ func encodeMigrationsMapCommitAuthorResponse(response MigrationsMapCommitAuthorR return errors.Errorf("unexpected response type: %T", response) } } + func encodeMigrationsSetLfsPreferenceResponse(response MigrationsSetLfsPreferenceRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Import: @@ -9081,6 +9384,7 @@ func encodeMigrationsSetLfsPreferenceResponse(response MigrationsSetLfsPreferenc return errors.Errorf("unexpected response type: %T", response) } } + func encodeMigrationsStartForAuthenticatedUserResponse(response MigrationsStartForAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Migration: @@ -9140,6 +9444,7 @@ func encodeMigrationsStartForAuthenticatedUserResponse(response MigrationsStartF return errors.Errorf("unexpected response type: %T", response) } } + func encodeMigrationsStartForOrgResponse(response MigrationsStartForOrgRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Migration: @@ -9182,6 +9487,7 @@ func encodeMigrationsStartForOrgResponse(response MigrationsStartForOrgRes, w ht return errors.Errorf("unexpected response type: %T", response) } } + func encodeMigrationsStartImportResponse(response MigrationsStartImportRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ImportHeaders: @@ -9243,6 +9549,7 @@ func encodeMigrationsStartImportResponse(response MigrationsStartImportRes, w ht return errors.Errorf("unexpected response type: %T", response) } } + func encodeMigrationsUnlockRepoForAuthenticatedUserResponse(response MigrationsUnlockRepoForAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *MigrationsUnlockRepoForAuthenticatedUserNoContent: @@ -9295,6 +9602,7 @@ func encodeMigrationsUnlockRepoForAuthenticatedUserResponse(response MigrationsU return errors.Errorf("unexpected response type: %T", response) } } + func encodeMigrationsUnlockRepoForOrgResponse(response MigrationsUnlockRepoForOrgRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *MigrationsUnlockRepoForOrgNoContent: @@ -9318,6 +9626,7 @@ func encodeMigrationsUnlockRepoForOrgResponse(response MigrationsUnlockRepoForOr return errors.Errorf("unexpected response type: %T", response) } } + func encodeMigrationsUpdateImportResponse(response Import, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9331,6 +9640,7 @@ func encodeMigrationsUpdateImportResponse(response Import, w http.ResponseWriter return nil } + func encodeOAuthAuthorizationsCreateAuthorizationResponse(response OAuthAuthorizationsCreateAuthorizationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *AuthorizationHeaders: @@ -9421,6 +9731,7 @@ func encodeOAuthAuthorizationsCreateAuthorizationResponse(response OAuthAuthoriz return errors.Errorf("unexpected response type: %T", response) } } + func encodeOAuthAuthorizationsDeleteAuthorizationResponse(response OAuthAuthorizationsDeleteAuthorizationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OAuthAuthorizationsDeleteAuthorizationNoContent: @@ -9461,6 +9772,7 @@ func encodeOAuthAuthorizationsDeleteAuthorizationResponse(response OAuthAuthoriz return errors.Errorf("unexpected response type: %T", response) } } + func encodeOAuthAuthorizationsDeleteGrantResponse(response OAuthAuthorizationsDeleteGrantRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OAuthAuthorizationsDeleteGrantNoContent: @@ -9501,6 +9813,7 @@ func encodeOAuthAuthorizationsDeleteGrantResponse(response OAuthAuthorizationsDe return errors.Errorf("unexpected response type: %T", response) } } + func encodeOAuthAuthorizationsGetAuthorizationResponse(response OAuthAuthorizationsGetAuthorizationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Authorization: @@ -9548,6 +9861,7 @@ func encodeOAuthAuthorizationsGetAuthorizationResponse(response OAuthAuthorizati return errors.Errorf("unexpected response type: %T", response) } } + func encodeOAuthAuthorizationsGetGrantResponse(response OAuthAuthorizationsGetGrantRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ApplicationGrant: @@ -9595,6 +9909,7 @@ func encodeOAuthAuthorizationsGetGrantResponse(response OAuthAuthorizationsGetGr return errors.Errorf("unexpected response type: %T", response) } } + func encodeOAuthAuthorizationsGetOrCreateAuthorizationForAppResponse(response OAuthAuthorizationsGetOrCreateAuthorizationForAppRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OAuthAuthorizationsGetOrCreateAuthorizationForAppApplicationJSONOK: @@ -9704,6 +10019,7 @@ func encodeOAuthAuthorizationsGetOrCreateAuthorizationForAppResponse(response OA return errors.Errorf("unexpected response type: %T", response) } } + func encodeOAuthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintResponse(response OAuthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OAuthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintApplicationJSONOK: @@ -9784,6 +10100,7 @@ func encodeOAuthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintRespon return errors.Errorf("unexpected response type: %T", response) } } + func encodeOAuthAuthorizationsListAuthorizationsResponse(response OAuthAuthorizationsListAuthorizationsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OAuthAuthorizationsListAuthorizationsOKHeaders: @@ -9866,6 +10183,7 @@ func encodeOAuthAuthorizationsListAuthorizationsResponse(response OAuthAuthoriza return errors.Errorf("unexpected response type: %T", response) } } + func encodeOAuthAuthorizationsListGrantsResponse(response OAuthAuthorizationsListGrantsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OAuthAuthorizationsListGrantsOKHeaders: @@ -9948,6 +10266,7 @@ func encodeOAuthAuthorizationsListGrantsResponse(response OAuthAuthorizationsLis return errors.Errorf("unexpected response type: %T", response) } } + func encodeOAuthAuthorizationsUpdateAuthorizationResponse(response OAuthAuthorizationsUpdateAuthorizationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Authorization: @@ -9978,6 +10297,7 @@ func encodeOAuthAuthorizationsUpdateAuthorizationResponse(response OAuthAuthoriz return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsBlockUserResponse(response OrgsBlockUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrgsBlockUserNoContent: @@ -10001,6 +10321,7 @@ func encodeOrgsBlockUserResponse(response OrgsBlockUserRes, w http.ResponseWrite return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsCancelInvitationResponse(response OrgsCancelInvitationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrgsCancelInvitationNoContent: @@ -10036,6 +10357,7 @@ func encodeOrgsCancelInvitationResponse(response OrgsCancelInvitationRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsCheckBlockedUserResponse(response OrgsCheckBlockedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrgsCheckBlockedUserNoContent: @@ -10059,6 +10381,7 @@ func encodeOrgsCheckBlockedUserResponse(response OrgsCheckBlockedUserRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsCheckMembershipForUserResponse(response OrgsCheckMembershipForUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrgsCheckMembershipForUserNoContent: @@ -10099,6 +10422,7 @@ func encodeOrgsCheckMembershipForUserResponse(response OrgsCheckMembershipForUse return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsCheckPublicMembershipForUserResponse(response OrgsCheckPublicMembershipForUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrgsCheckPublicMembershipForUserNoContent: @@ -10115,6 +10439,7 @@ func encodeOrgsCheckPublicMembershipForUserResponse(response OrgsCheckPublicMemb return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsConvertMemberToOutsideCollaboratorResponse(response OrgsConvertMemberToOutsideCollaboratorRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrgsConvertMemberToOutsideCollaboratorAccepted: @@ -10155,6 +10480,7 @@ func encodeOrgsConvertMemberToOutsideCollaboratorResponse(response OrgsConvertMe return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsCreateInvitationResponse(response OrgsCreateInvitationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrganizationInvitation: @@ -10197,6 +10523,7 @@ func encodeOrgsCreateInvitationResponse(response OrgsCreateInvitationRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsCreateWebhookResponse(response OrgsCreateWebhookRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrgHookHeaders: @@ -10258,6 +10585,7 @@ func encodeOrgsCreateWebhookResponse(response OrgsCreateWebhookRes, w http.Respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsDeleteWebhookResponse(response OrgsDeleteWebhookRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrgsDeleteWebhookNoContent: @@ -10281,6 +10609,7 @@ func encodeOrgsDeleteWebhookResponse(response OrgsDeleteWebhookRes, w http.Respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsGetResponse(response OrgsGetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrganizationFull: @@ -10311,6 +10640,7 @@ func encodeOrgsGetResponse(response OrgsGetRes, w http.ResponseWriter, span trac return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsGetAuditLogResponse(response []AuditLogEvent, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -10328,6 +10658,7 @@ func encodeOrgsGetAuditLogResponse(response []AuditLogEvent, w http.ResponseWrit return nil } + func encodeOrgsGetMembershipForAuthenticatedUserResponse(response OrgsGetMembershipForAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrgMembership: @@ -10370,6 +10701,7 @@ func encodeOrgsGetMembershipForAuthenticatedUserResponse(response OrgsGetMembers return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsGetMembershipForUserResponse(response OrgsGetMembershipForUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrgMembership: @@ -10412,6 +10744,7 @@ func encodeOrgsGetMembershipForUserResponse(response OrgsGetMembershipForUserRes return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsGetWebhookResponse(response OrgsGetWebhookRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrgHook: @@ -10442,6 +10775,7 @@ func encodeOrgsGetWebhookResponse(response OrgsGetWebhookRes, w http.ResponseWri return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsGetWebhookConfigForOrgResponse(response WebhookConfig, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -10455,6 +10789,7 @@ func encodeOrgsGetWebhookConfigForOrgResponse(response WebhookConfig, w http.Res return nil } + func encodeOrgsGetWebhookDeliveryResponse(response OrgsGetWebhookDeliveryRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *HookDelivery: @@ -10497,6 +10832,7 @@ func encodeOrgsGetWebhookDeliveryResponse(response OrgsGetWebhookDeliveryRes, w return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsListResponse(response OrgsListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrgsListOKHeaders: @@ -10543,6 +10879,7 @@ func encodeOrgsListResponse(response OrgsListRes, w http.ResponseWriter, span tr return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsListBlockedUsersResponse(response OrgsListBlockedUsersRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrgsListBlockedUsersOKApplicationJSON: @@ -10573,6 +10910,7 @@ func encodeOrgsListBlockedUsersResponse(response OrgsListBlockedUsersRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsListFailedInvitationsResponse(response OrgsListFailedInvitationsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrgsListFailedInvitationsOKHeaders: @@ -10626,6 +10964,7 @@ func encodeOrgsListFailedInvitationsResponse(response OrgsListFailedInvitationsR return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsListForAuthenticatedUserResponse(response OrgsListForAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrgsListForAuthenticatedUserOKHeaders: @@ -10696,6 +11035,7 @@ func encodeOrgsListForAuthenticatedUserResponse(response OrgsListForAuthenticate return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsListForUserResponse(response OrgsListForUserOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -10732,6 +11072,7 @@ func encodeOrgsListForUserResponse(response OrgsListForUserOKHeaders, w http.Res return nil } + func encodeOrgsListInvitationTeamsResponse(response OrgsListInvitationTeamsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrgsListInvitationTeamsOKHeaders: @@ -10785,6 +11126,7 @@ func encodeOrgsListInvitationTeamsResponse(response OrgsListInvitationTeamsRes, return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsListMembersResponse(response OrgsListMembersRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrgsListMembersOKHeaders: @@ -10862,6 +11204,7 @@ func encodeOrgsListMembersResponse(response OrgsListMembersRes, w http.ResponseW return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsListMembershipsForAuthenticatedUserResponse(response OrgsListMembershipsForAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrgsListMembershipsForAuthenticatedUserOKHeaders: @@ -10944,6 +11287,7 @@ func encodeOrgsListMembershipsForAuthenticatedUserResponse(response OrgsListMemb return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsListOutsideCollaboratorsResponse(response OrgsListOutsideCollaboratorsOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -10980,6 +11324,7 @@ func encodeOrgsListOutsideCollaboratorsResponse(response OrgsListOutsideCollabor return nil } + func encodeOrgsListPendingInvitationsResponse(response OrgsListPendingInvitationsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrgsListPendingInvitationsOKHeaders: @@ -11033,6 +11378,7 @@ func encodeOrgsListPendingInvitationsResponse(response OrgsListPendingInvitation return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsListPublicMembersResponse(response OrgsListPublicMembersOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -11069,6 +11415,7 @@ func encodeOrgsListPublicMembersResponse(response OrgsListPublicMembersOKHeaders return nil } + func encodeOrgsListSamlSSOAuthorizationsResponse(response []CredentialAuthorization, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -11086,6 +11433,7 @@ func encodeOrgsListSamlSSOAuthorizationsResponse(response []CredentialAuthorizat return nil } + func encodeOrgsListWebhookDeliveriesResponse(response OrgsListWebhookDeliveriesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrgsListWebhookDeliveriesOKApplicationJSON: @@ -11128,6 +11476,7 @@ func encodeOrgsListWebhookDeliveriesResponse(response OrgsListWebhookDeliveriesR return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsListWebhooksResponse(response OrgsListWebhooksRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrgsListWebhooksOKHeaders: @@ -11181,6 +11530,7 @@ func encodeOrgsListWebhooksResponse(response OrgsListWebhooksRes, w http.Respons return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsPingWebhookResponse(response OrgsPingWebhookRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrgsPingWebhookNoContent: @@ -11204,6 +11554,7 @@ func encodeOrgsPingWebhookResponse(response OrgsPingWebhookRes, w http.ResponseW return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsRedeliverWebhookDeliveryResponse(response OrgsRedeliverWebhookDeliveryRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Accepted: @@ -11246,6 +11597,7 @@ func encodeOrgsRedeliverWebhookDeliveryResponse(response OrgsRedeliverWebhookDel return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsRemoveMemberResponse(response OrgsRemoveMemberRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrgsRemoveMemberNoContent: @@ -11269,6 +11621,7 @@ func encodeOrgsRemoveMemberResponse(response OrgsRemoveMemberRes, w http.Respons return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsRemoveMembershipForUserResponse(response OrgsRemoveMembershipForUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrgsRemoveMembershipForUserNoContent: @@ -11304,6 +11657,7 @@ func encodeOrgsRemoveMembershipForUserResponse(response OrgsRemoveMembershipForU return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsRemoveOutsideCollaboratorResponse(response OrgsRemoveOutsideCollaboratorRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrgsRemoveOutsideCollaboratorNoContent: @@ -11327,12 +11681,14 @@ func encodeOrgsRemoveOutsideCollaboratorResponse(response OrgsRemoveOutsideColla return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsRemovePublicMembershipForAuthenticatedUserResponse(response OrgsRemovePublicMembershipForAuthenticatedUserNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeOrgsRemoveSamlSSOAuthorizationResponse(response OrgsRemoveSamlSSOAuthorizationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrgsRemoveSamlSSOAuthorizationNoContent: @@ -11356,6 +11712,7 @@ func encodeOrgsRemoveSamlSSOAuthorizationResponse(response OrgsRemoveSamlSSOAuth return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsSetMembershipForUserResponse(response OrgsSetMembershipForUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrgMembership: @@ -11398,6 +11755,7 @@ func encodeOrgsSetMembershipForUserResponse(response OrgsSetMembershipForUserRes return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsSetPublicMembershipForAuthenticatedUserResponse(response OrgsSetPublicMembershipForAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrgsSetPublicMembershipForAuthenticatedUserNoContent: @@ -11421,12 +11779,14 @@ func encodeOrgsSetPublicMembershipForAuthenticatedUserResponse(response OrgsSetP return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsUnblockUserResponse(response OrgsUnblockUserNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeOrgsUpdateMembershipForAuthenticatedUserResponse(response OrgsUpdateMembershipForAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrgMembership: @@ -11481,6 +11841,7 @@ func encodeOrgsUpdateMembershipForAuthenticatedUserResponse(response OrgsUpdateM return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsUpdateWebhookResponse(response OrgsUpdateWebhookRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrgHook: @@ -11523,6 +11884,7 @@ func encodeOrgsUpdateWebhookResponse(response OrgsUpdateWebhookRes, w http.Respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrgsUpdateWebhookConfigForOrgResponse(response WebhookConfig, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -11536,6 +11898,7 @@ func encodeOrgsUpdateWebhookConfigForOrgResponse(response WebhookConfig, w http. return nil } + func encodePackagesDeletePackageForAuthenticatedUserResponse(response PackagesDeletePackageForAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PackagesDeletePackageForAuthenticatedUserNoContent: @@ -11583,6 +11946,7 @@ func encodePackagesDeletePackageForAuthenticatedUserResponse(response PackagesDe return errors.Errorf("unexpected response type: %T", response) } } + func encodePackagesDeletePackageForOrgResponse(response PackagesDeletePackageForOrgRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PackagesDeletePackageForOrgNoContent: @@ -11630,6 +11994,7 @@ func encodePackagesDeletePackageForOrgResponse(response PackagesDeletePackageFor return errors.Errorf("unexpected response type: %T", response) } } + func encodePackagesDeletePackageForUserResponse(response PackagesDeletePackageForUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PackagesDeletePackageForUserNoContent: @@ -11677,6 +12042,7 @@ func encodePackagesDeletePackageForUserResponse(response PackagesDeletePackageFo return errors.Errorf("unexpected response type: %T", response) } } + func encodePackagesDeletePackageVersionForAuthenticatedUserResponse(response PackagesDeletePackageVersionForAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PackagesDeletePackageVersionForAuthenticatedUserNoContent: @@ -11724,6 +12090,7 @@ func encodePackagesDeletePackageVersionForAuthenticatedUserResponse(response Pac return errors.Errorf("unexpected response type: %T", response) } } + func encodePackagesDeletePackageVersionForOrgResponse(response PackagesDeletePackageVersionForOrgRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PackagesDeletePackageVersionForOrgNoContent: @@ -11771,6 +12138,7 @@ func encodePackagesDeletePackageVersionForOrgResponse(response PackagesDeletePac return errors.Errorf("unexpected response type: %T", response) } } + func encodePackagesDeletePackageVersionForUserResponse(response PackagesDeletePackageVersionForUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PackagesDeletePackageVersionForUserNoContent: @@ -11818,6 +12186,7 @@ func encodePackagesDeletePackageVersionForUserResponse(response PackagesDeletePa return errors.Errorf("unexpected response type: %T", response) } } + func encodePackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserResponse(response PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserOKApplicationJSON: @@ -11872,6 +12241,7 @@ func encodePackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserRespon return errors.Errorf("unexpected response type: %T", response) } } + func encodePackagesGetAllPackageVersionsForPackageOwnedByOrgResponse(response PackagesGetAllPackageVersionsForPackageOwnedByOrgRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PackagesGetAllPackageVersionsForPackageOwnedByOrgOKApplicationJSON: @@ -11926,6 +12296,7 @@ func encodePackagesGetAllPackageVersionsForPackageOwnedByOrgResponse(response Pa return errors.Errorf("unexpected response type: %T", response) } } + func encodePackagesGetAllPackageVersionsForPackageOwnedByUserResponse(response PackagesGetAllPackageVersionsForPackageOwnedByUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PackagesGetAllPackageVersionsForPackageOwnedByUserOKApplicationJSON: @@ -11980,6 +12351,7 @@ func encodePackagesGetAllPackageVersionsForPackageOwnedByUserResponse(response P return errors.Errorf("unexpected response type: %T", response) } } + func encodePackagesGetPackageForAuthenticatedUserResponse(response Package, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -11993,6 +12365,7 @@ func encodePackagesGetPackageForAuthenticatedUserResponse(response Package, w ht return nil } + func encodePackagesGetPackageForOrganizationResponse(response Package, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -12006,6 +12379,7 @@ func encodePackagesGetPackageForOrganizationResponse(response Package, w http.Re return nil } + func encodePackagesGetPackageForUserResponse(response Package, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -12019,6 +12393,7 @@ func encodePackagesGetPackageForUserResponse(response Package, w http.ResponseWr return nil } + func encodePackagesGetPackageVersionForAuthenticatedUserResponse(response PackageVersion, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -12032,6 +12407,7 @@ func encodePackagesGetPackageVersionForAuthenticatedUserResponse(response Packag return nil } + func encodePackagesGetPackageVersionForOrganizationResponse(response PackageVersion, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -12045,6 +12421,7 @@ func encodePackagesGetPackageVersionForOrganizationResponse(response PackageVers return nil } + func encodePackagesGetPackageVersionForUserResponse(response PackageVersion, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -12058,6 +12435,7 @@ func encodePackagesGetPackageVersionForUserResponse(response PackageVersion, w h return nil } + func encodePackagesListPackagesForAuthenticatedUserResponse(response []Package, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -12075,6 +12453,7 @@ func encodePackagesListPackagesForAuthenticatedUserResponse(response []Package, return nil } + func encodePackagesListPackagesForOrganizationResponse(response PackagesListPackagesForOrganizationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PackagesListPackagesForOrganizationOKApplicationJSON: @@ -12117,6 +12496,7 @@ func encodePackagesListPackagesForOrganizationResponse(response PackagesListPack return errors.Errorf("unexpected response type: %T", response) } } + func encodePackagesListPackagesForUserResponse(response PackagesListPackagesForUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PackagesListPackagesForUserOKApplicationJSON: @@ -12159,6 +12539,7 @@ func encodePackagesListPackagesForUserResponse(response PackagesListPackagesForU return errors.Errorf("unexpected response type: %T", response) } } + func encodePackagesRestorePackageForAuthenticatedUserResponse(response PackagesRestorePackageForAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PackagesRestorePackageForAuthenticatedUserNoContent: @@ -12206,6 +12587,7 @@ func encodePackagesRestorePackageForAuthenticatedUserResponse(response PackagesR return errors.Errorf("unexpected response type: %T", response) } } + func encodePackagesRestorePackageForOrgResponse(response PackagesRestorePackageForOrgRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PackagesRestorePackageForOrgNoContent: @@ -12253,6 +12635,7 @@ func encodePackagesRestorePackageForOrgResponse(response PackagesRestorePackageF return errors.Errorf("unexpected response type: %T", response) } } + func encodePackagesRestorePackageForUserResponse(response PackagesRestorePackageForUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PackagesRestorePackageForUserNoContent: @@ -12300,6 +12683,7 @@ func encodePackagesRestorePackageForUserResponse(response PackagesRestorePackage return errors.Errorf("unexpected response type: %T", response) } } + func encodePackagesRestorePackageVersionForAuthenticatedUserResponse(response PackagesRestorePackageVersionForAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PackagesRestorePackageVersionForAuthenticatedUserNoContent: @@ -12347,6 +12731,7 @@ func encodePackagesRestorePackageVersionForAuthenticatedUserResponse(response Pa return errors.Errorf("unexpected response type: %T", response) } } + func encodePackagesRestorePackageVersionForOrgResponse(response PackagesRestorePackageVersionForOrgRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PackagesRestorePackageVersionForOrgNoContent: @@ -12394,6 +12779,7 @@ func encodePackagesRestorePackageVersionForOrgResponse(response PackagesRestoreP return errors.Errorf("unexpected response type: %T", response) } } + func encodePackagesRestorePackageVersionForUserResponse(response PackagesRestorePackageVersionForUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PackagesRestorePackageVersionForUserNoContent: @@ -12441,6 +12827,7 @@ func encodePackagesRestorePackageVersionForUserResponse(response PackagesRestore return errors.Errorf("unexpected response type: %T", response) } } + func encodeProjectsAddCollaboratorResponse(response ProjectsAddCollaboratorRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ProjectsAddCollaboratorNoContent: @@ -12505,6 +12892,7 @@ func encodeProjectsAddCollaboratorResponse(response ProjectsAddCollaboratorRes, return errors.Errorf("unexpected response type: %T", response) } } + func encodeProjectsCreateColumnResponse(response ProjectsCreateColumnRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ProjectColumn: @@ -12564,6 +12952,7 @@ func encodeProjectsCreateColumnResponse(response ProjectsCreateColumnRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodeProjectsCreateForAuthenticatedUserResponse(response ProjectsCreateForAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Project: @@ -12635,6 +13024,7 @@ func encodeProjectsCreateForAuthenticatedUserResponse(response ProjectsCreateFor return errors.Errorf("unexpected response type: %T", response) } } + func encodeProjectsCreateForOrgResponse(response ProjectsCreateForOrgRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Project: @@ -12713,6 +13103,7 @@ func encodeProjectsCreateForOrgResponse(response ProjectsCreateForOrgRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodeProjectsCreateForRepoResponse(response ProjectsCreateForRepoRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Project: @@ -12791,6 +13182,7 @@ func encodeProjectsCreateForRepoResponse(response ProjectsCreateForRepoRes, w ht return errors.Errorf("unexpected response type: %T", response) } } + func encodeProjectsDeleteResponse(response ProjectsDeleteRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ProjectsDeleteNoContent: @@ -12855,6 +13247,7 @@ func encodeProjectsDeleteResponse(response ProjectsDeleteRes, w http.ResponseWri return errors.Errorf("unexpected response type: %T", response) } } + func encodeProjectsDeleteCardResponse(response ProjectsDeleteCardRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ProjectsDeleteCardNoContent: @@ -12907,6 +13300,7 @@ func encodeProjectsDeleteCardResponse(response ProjectsDeleteCardRes, w http.Res return errors.Errorf("unexpected response type: %T", response) } } + func encodeProjectsDeleteColumnResponse(response ProjectsDeleteColumnRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ProjectsDeleteColumnNoContent: @@ -12947,6 +13341,7 @@ func encodeProjectsDeleteColumnResponse(response ProjectsDeleteColumnRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodeProjectsGetResponse(response ProjectsGetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Project: @@ -12994,6 +13389,7 @@ func encodeProjectsGetResponse(response ProjectsGetRes, w http.ResponseWriter, s return errors.Errorf("unexpected response type: %T", response) } } + func encodeProjectsGetCardResponse(response ProjectsGetCardRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ProjectCard: @@ -13053,6 +13449,7 @@ func encodeProjectsGetCardResponse(response ProjectsGetCardRes, w http.ResponseW return errors.Errorf("unexpected response type: %T", response) } } + func encodeProjectsGetColumnResponse(response ProjectsGetColumnRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ProjectColumn: @@ -13112,6 +13509,7 @@ func encodeProjectsGetColumnResponse(response ProjectsGetColumnRes, w http.Respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeProjectsGetPermissionForUserResponse(response ProjectsGetPermissionForUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *RepositoryCollaboratorPermission: @@ -13183,6 +13581,7 @@ func encodeProjectsGetPermissionForUserResponse(response ProjectsGetPermissionFo return errors.Errorf("unexpected response type: %T", response) } } + func encodeProjectsListCardsResponse(response ProjectsListCardsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ProjectsListCardsOKHeaders: @@ -13253,6 +13652,7 @@ func encodeProjectsListCardsResponse(response ProjectsListCardsRes, w http.Respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeProjectsListCollaboratorsResponse(response ProjectsListCollaboratorsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ProjectsListCollaboratorsOKHeaders: @@ -13347,6 +13747,7 @@ func encodeProjectsListCollaboratorsResponse(response ProjectsListCollaboratorsR return errors.Errorf("unexpected response type: %T", response) } } + func encodeProjectsListColumnsResponse(response ProjectsListColumnsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ProjectsListColumnsOKHeaders: @@ -13417,6 +13818,7 @@ func encodeProjectsListColumnsResponse(response ProjectsListColumnsRes, w http.R return errors.Errorf("unexpected response type: %T", response) } } + func encodeProjectsListForOrgResponse(response ProjectsListForOrgRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ProjectsListForOrgOKHeaders: @@ -13470,6 +13872,7 @@ func encodeProjectsListForOrgResponse(response ProjectsListForOrgRes, w http.Res return errors.Errorf("unexpected response type: %T", response) } } + func encodeProjectsListForRepoResponse(response ProjectsListForRepoRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ProjectsListForRepoOKHeaders: @@ -13571,6 +13974,7 @@ func encodeProjectsListForRepoResponse(response ProjectsListForRepoRes, w http.R return errors.Errorf("unexpected response type: %T", response) } } + func encodeProjectsListForUserResponse(response ProjectsListForUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ProjectsListForUserOKHeaders: @@ -13624,6 +14028,7 @@ func encodeProjectsListForUserResponse(response ProjectsListForUserRes, w http.R return errors.Errorf("unexpected response type: %T", response) } } + func encodeProjectsMoveCardResponse(response ProjectsMoveCardRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ProjectsMoveCardCreated: @@ -13695,6 +14100,7 @@ func encodeProjectsMoveCardResponse(response ProjectsMoveCardRes, w http.Respons return errors.Errorf("unexpected response type: %T", response) } } + func encodeProjectsMoveColumnResponse(response ProjectsMoveColumnRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ProjectsMoveColumnCreated: @@ -13754,6 +14160,7 @@ func encodeProjectsMoveColumnResponse(response ProjectsMoveColumnRes, w http.Res return errors.Errorf("unexpected response type: %T", response) } } + func encodeProjectsRemoveCollaboratorResponse(response ProjectsRemoveCollaboratorRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ProjectsRemoveCollaboratorNoContent: @@ -13818,6 +14225,7 @@ func encodeProjectsRemoveCollaboratorResponse(response ProjectsRemoveCollaborato return errors.Errorf("unexpected response type: %T", response) } } + func encodeProjectsUpdateResponse(response ProjectsUpdateRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Project: @@ -13894,6 +14302,7 @@ func encodeProjectsUpdateResponse(response ProjectsUpdateRes, w http.ResponseWri return errors.Errorf("unexpected response type: %T", response) } } + func encodeProjectsUpdateCardResponse(response ProjectsUpdateCardRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ProjectCard: @@ -13965,6 +14374,7 @@ func encodeProjectsUpdateCardResponse(response ProjectsUpdateCardRes, w http.Res return errors.Errorf("unexpected response type: %T", response) } } + func encodeProjectsUpdateColumnResponse(response ProjectsUpdateColumnRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ProjectColumn: @@ -14012,6 +14422,7 @@ func encodeProjectsUpdateColumnResponse(response ProjectsUpdateColumnRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodePullsCheckIfMergedResponse(response PullsCheckIfMergedRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PullsCheckIfMergedNoContent: @@ -14028,6 +14439,7 @@ func encodePullsCheckIfMergedResponse(response PullsCheckIfMergedRes, w http.Res return errors.Errorf("unexpected response type: %T", response) } } + func encodePullsCreateResponse(response PullsCreateRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PullRequestHeaders: @@ -14089,6 +14501,7 @@ func encodePullsCreateResponse(response PullsCreateRes, w http.ResponseWriter, s return errors.Errorf("unexpected response type: %T", response) } } + func encodePullsCreateReplyForReviewCommentResponse(response PullsCreateReplyForReviewCommentRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PullRequestReviewCommentHeaders: @@ -14138,6 +14551,7 @@ func encodePullsCreateReplyForReviewCommentResponse(response PullsCreateReplyFor return errors.Errorf("unexpected response type: %T", response) } } + func encodePullsCreateReviewResponse(response PullsCreateReviewRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PullRequestReview: @@ -14180,6 +14594,7 @@ func encodePullsCreateReviewResponse(response PullsCreateReviewRes, w http.Respo return errors.Errorf("unexpected response type: %T", response) } } + func encodePullsCreateReviewCommentResponse(response PullsCreateReviewCommentRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PullRequestReviewCommentHeaders: @@ -14241,6 +14656,7 @@ func encodePullsCreateReviewCommentResponse(response PullsCreateReviewCommentRes return errors.Errorf("unexpected response type: %T", response) } } + func encodePullsDeletePendingReviewResponse(response PullsDeletePendingReviewRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PullRequestReview: @@ -14283,6 +14699,7 @@ func encodePullsDeletePendingReviewResponse(response PullsDeletePendingReviewRes return errors.Errorf("unexpected response type: %T", response) } } + func encodePullsDeleteReviewCommentResponse(response PullsDeleteReviewCommentRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PullsDeleteReviewCommentNoContent: @@ -14306,6 +14723,7 @@ func encodePullsDeleteReviewCommentResponse(response PullsDeleteReviewCommentRes return errors.Errorf("unexpected response type: %T", response) } } + func encodePullsDismissReviewResponse(response PullsDismissReviewRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PullRequestReview: @@ -14348,6 +14766,7 @@ func encodePullsDismissReviewResponse(response PullsDismissReviewRes, w http.Res return errors.Errorf("unexpected response type: %T", response) } } + func encodePullsGetResponse(response PullsGetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PullRequest: @@ -14395,6 +14814,7 @@ func encodePullsGetResponse(response PullsGetRes, w http.ResponseWriter, span tr return errors.Errorf("unexpected response type: %T", response) } } + func encodePullsGetReviewResponse(response PullsGetReviewRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PullRequestReview: @@ -14425,6 +14845,7 @@ func encodePullsGetReviewResponse(response PullsGetReviewRes, w http.ResponseWri return errors.Errorf("unexpected response type: %T", response) } } + func encodePullsGetReviewCommentResponse(response PullsGetReviewCommentRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PullRequestReviewComment: @@ -14455,6 +14876,7 @@ func encodePullsGetReviewCommentResponse(response PullsGetReviewCommentRes, w ht return errors.Errorf("unexpected response type: %T", response) } } + func encodePullsListResponse(response PullsListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PullsListOKHeaders: @@ -14513,6 +14935,7 @@ func encodePullsListResponse(response PullsListRes, w http.ResponseWriter, span return errors.Errorf("unexpected response type: %T", response) } } + func encodePullsListCommentsForReviewResponse(response PullsListCommentsForReviewRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PullsListCommentsForReviewOKHeaders: @@ -14566,6 +14989,7 @@ func encodePullsListCommentsForReviewResponse(response PullsListCommentsForRevie return errors.Errorf("unexpected response type: %T", response) } } + func encodePullsListCommitsResponse(response PullsListCommitsOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -14602,6 +15026,7 @@ func encodePullsListCommitsResponse(response PullsListCommitsOKHeaders, w http.R return nil } + func encodePullsListFilesResponse(response PullsListFilesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PullsListFilesOKHeaders: @@ -14667,6 +15092,7 @@ func encodePullsListFilesResponse(response PullsListFilesRes, w http.ResponseWri return errors.Errorf("unexpected response type: %T", response) } } + func encodePullsListRequestedReviewersResponse(response PullRequestReviewRequestHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -14699,6 +15125,7 @@ func encodePullsListRequestedReviewersResponse(response PullRequestReviewRequest return nil } + func encodePullsListReviewCommentsResponse(response PullsListReviewCommentsOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -14735,6 +15162,7 @@ func encodePullsListReviewCommentsResponse(response PullsListReviewCommentsOKHea return nil } + func encodePullsListReviewCommentsForRepoResponse(response PullsListReviewCommentsForRepoOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -14771,6 +15199,7 @@ func encodePullsListReviewCommentsForRepoResponse(response PullsListReviewCommen return nil } + func encodePullsListReviewsResponse(response PullsListReviewsOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -14807,6 +15236,7 @@ func encodePullsListReviewsResponse(response PullsListReviewsOKHeaders, w http.R return nil } + func encodePullsMergeResponse(response PullsMergeRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PullRequestMergeResult: @@ -14885,6 +15315,7 @@ func encodePullsMergeResponse(response PullsMergeRes, w http.ResponseWriter, spa return errors.Errorf("unexpected response type: %T", response) } } + func encodePullsRemoveRequestedReviewersResponse(response PullsRemoveRequestedReviewersRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PullRequestSimple: @@ -14915,6 +15346,7 @@ func encodePullsRemoveRequestedReviewersResponse(response PullsRemoveRequestedRe return errors.Errorf("unexpected response type: %T", response) } } + func encodePullsSubmitReviewResponse(response PullsSubmitReviewRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PullRequestReview: @@ -14969,6 +15401,7 @@ func encodePullsSubmitReviewResponse(response PullsSubmitReviewRes, w http.Respo return errors.Errorf("unexpected response type: %T", response) } } + func encodePullsUpdateResponse(response PullsUpdateRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PullRequest: @@ -15011,6 +15444,7 @@ func encodePullsUpdateResponse(response PullsUpdateRes, w http.ResponseWriter, s return errors.Errorf("unexpected response type: %T", response) } } + func encodePullsUpdateBranchResponse(response PullsUpdateBranchRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PullsUpdateBranchAccepted: @@ -15053,6 +15487,7 @@ func encodePullsUpdateBranchResponse(response PullsUpdateBranchRes, w http.Respo return errors.Errorf("unexpected response type: %T", response) } } + func encodePullsUpdateReviewResponse(response PullsUpdateReviewRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PullRequestReview: @@ -15083,6 +15518,7 @@ func encodePullsUpdateReviewResponse(response PullsUpdateReviewRes, w http.Respo return errors.Errorf("unexpected response type: %T", response) } } + func encodePullsUpdateReviewCommentResponse(response PullRequestReviewComment, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -15096,6 +15532,7 @@ func encodePullsUpdateReviewCommentResponse(response PullRequestReviewComment, w return nil } + func encodeRateLimitGetResponse(response RateLimitGetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *RateLimitOverviewHeaders: @@ -15180,6 +15617,7 @@ func encodeRateLimitGetResponse(response RateLimitGetRes, w http.ResponseWriter, return errors.Errorf("unexpected response type: %T", response) } } + func encodeReactionsCreateForCommitCommentResponse(response ReactionsCreateForCommitCommentRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReactionsCreateForCommitCommentApplicationJSONOK: @@ -15234,6 +15672,7 @@ func encodeReactionsCreateForCommitCommentResponse(response ReactionsCreateForCo return errors.Errorf("unexpected response type: %T", response) } } + func encodeReactionsCreateForIssueResponse(response ReactionsCreateForIssueRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReactionsCreateForIssueApplicationJSONOK: @@ -15288,6 +15727,7 @@ func encodeReactionsCreateForIssueResponse(response ReactionsCreateForIssueRes, return errors.Errorf("unexpected response type: %T", response) } } + func encodeReactionsCreateForIssueCommentResponse(response ReactionsCreateForIssueCommentRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReactionsCreateForIssueCommentApplicationJSONOK: @@ -15342,6 +15782,7 @@ func encodeReactionsCreateForIssueCommentResponse(response ReactionsCreateForIss return errors.Errorf("unexpected response type: %T", response) } } + func encodeReactionsCreateForPullRequestReviewCommentResponse(response ReactionsCreateForPullRequestReviewCommentRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReactionsCreateForPullRequestReviewCommentApplicationJSONOK: @@ -15396,6 +15837,7 @@ func encodeReactionsCreateForPullRequestReviewCommentResponse(response Reactions return errors.Errorf("unexpected response type: %T", response) } } + func encodeReactionsCreateForReleaseResponse(response ReactionsCreateForReleaseRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReactionsCreateForReleaseApplicationJSONOK: @@ -15450,6 +15892,7 @@ func encodeReactionsCreateForReleaseResponse(response ReactionsCreateForReleaseR return errors.Errorf("unexpected response type: %T", response) } } + func encodeReactionsCreateForTeamDiscussionCommentInOrgResponse(response ReactionsCreateForTeamDiscussionCommentInOrgRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReactionsCreateForTeamDiscussionCommentInOrgApplicationJSONOK: @@ -15480,6 +15923,7 @@ func encodeReactionsCreateForTeamDiscussionCommentInOrgResponse(response Reactio return errors.Errorf("unexpected response type: %T", response) } } + func encodeReactionsCreateForTeamDiscussionCommentLegacyResponse(response Reaction, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(201) @@ -15493,6 +15937,7 @@ func encodeReactionsCreateForTeamDiscussionCommentLegacyResponse(response Reacti return nil } + func encodeReactionsCreateForTeamDiscussionInOrgResponse(response ReactionsCreateForTeamDiscussionInOrgRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReactionsCreateForTeamDiscussionInOrgApplicationJSONOK: @@ -15523,6 +15968,7 @@ func encodeReactionsCreateForTeamDiscussionInOrgResponse(response ReactionsCreat return errors.Errorf("unexpected response type: %T", response) } } + func encodeReactionsCreateForTeamDiscussionLegacyResponse(response Reaction, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(201) @@ -15536,42 +15982,49 @@ func encodeReactionsCreateForTeamDiscussionLegacyResponse(response Reaction, w h return nil } + func encodeReactionsDeleteForCommitCommentResponse(response ReactionsDeleteForCommitCommentNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeReactionsDeleteForIssueResponse(response ReactionsDeleteForIssueNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeReactionsDeleteForIssueCommentResponse(response ReactionsDeleteForIssueCommentNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeReactionsDeleteForPullRequestCommentResponse(response ReactionsDeleteForPullRequestCommentNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeReactionsDeleteForTeamDiscussionResponse(response ReactionsDeleteForTeamDiscussionNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeReactionsDeleteForTeamDiscussionCommentResponse(response ReactionsDeleteForTeamDiscussionCommentNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeReactionsDeleteLegacyResponse(response ReactionsDeleteLegacyRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReactionsDeleteLegacyNoContent: @@ -15636,6 +16089,7 @@ func encodeReactionsDeleteLegacyResponse(response ReactionsDeleteLegacyRes, w ht return errors.Errorf("unexpected response type: %T", response) } } + func encodeReactionsListForCommitCommentResponse(response ReactionsListForCommitCommentRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReactionsListForCommitCommentOKHeaders: @@ -15701,6 +16155,7 @@ func encodeReactionsListForCommitCommentResponse(response ReactionsListForCommit return errors.Errorf("unexpected response type: %T", response) } } + func encodeReactionsListForIssueResponse(response ReactionsListForIssueRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReactionsListForIssueOKHeaders: @@ -15778,6 +16233,7 @@ func encodeReactionsListForIssueResponse(response ReactionsListForIssueRes, w ht return errors.Errorf("unexpected response type: %T", response) } } + func encodeReactionsListForIssueCommentResponse(response ReactionsListForIssueCommentRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReactionsListForIssueCommentOKHeaders: @@ -15843,6 +16299,7 @@ func encodeReactionsListForIssueCommentResponse(response ReactionsListForIssueCo return errors.Errorf("unexpected response type: %T", response) } } + func encodeReactionsListForPullRequestReviewCommentResponse(response ReactionsListForPullRequestReviewCommentRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReactionsListForPullRequestReviewCommentOKHeaders: @@ -15908,6 +16365,7 @@ func encodeReactionsListForPullRequestReviewCommentResponse(response ReactionsLi return errors.Errorf("unexpected response type: %T", response) } } + func encodeReactionsListForTeamDiscussionCommentInOrgResponse(response ReactionsListForTeamDiscussionCommentInOrgOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -15944,6 +16402,7 @@ func encodeReactionsListForTeamDiscussionCommentInOrgResponse(response Reactions return nil } + func encodeReactionsListForTeamDiscussionCommentLegacyResponse(response ReactionsListForTeamDiscussionCommentLegacyOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -15980,6 +16439,7 @@ func encodeReactionsListForTeamDiscussionCommentLegacyResponse(response Reaction return nil } + func encodeReactionsListForTeamDiscussionInOrgResponse(response ReactionsListForTeamDiscussionInOrgOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -16016,6 +16476,7 @@ func encodeReactionsListForTeamDiscussionInOrgResponse(response ReactionsListFor return nil } + func encodeReactionsListForTeamDiscussionLegacyResponse(response ReactionsListForTeamDiscussionLegacyOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -16052,6 +16513,7 @@ func encodeReactionsListForTeamDiscussionLegacyResponse(response ReactionsListFo return nil } + func encodeReposAcceptInvitationResponse(response ReposAcceptInvitationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposAcceptInvitationNoContent: @@ -16104,6 +16566,7 @@ func encodeReposAcceptInvitationResponse(response ReposAcceptInvitationRes, w ht return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposAddAppAccessRestrictionsResponse(response ReposAddAppAccessRestrictionsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposAddAppAccessRestrictionsOKApplicationJSON: @@ -16134,6 +16597,7 @@ func encodeReposAddAppAccessRestrictionsResponse(response ReposAddAppAccessRestr return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposAddCollaboratorResponse(response ReposAddCollaboratorRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *RepositoryInvitation: @@ -16181,6 +16645,7 @@ func encodeReposAddCollaboratorResponse(response ReposAddCollaboratorRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposAddStatusCheckContextsResponse(response ReposAddStatusCheckContextsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposAddStatusCheckContextsOKApplicationJSON: @@ -16235,6 +16700,7 @@ func encodeReposAddStatusCheckContextsResponse(response ReposAddStatusCheckConte return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposAddTeamAccessRestrictionsResponse(response ReposAddTeamAccessRestrictionsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposAddTeamAccessRestrictionsOKApplicationJSON: @@ -16265,6 +16731,7 @@ func encodeReposAddTeamAccessRestrictionsResponse(response ReposAddTeamAccessRes return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposAddUserAccessRestrictionsResponse(response ReposAddUserAccessRestrictionsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposAddUserAccessRestrictionsOKApplicationJSON: @@ -16295,6 +16762,7 @@ func encodeReposAddUserAccessRestrictionsResponse(response ReposAddUserAccessRes return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposCheckCollaboratorResponse(response ReposCheckCollaboratorRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposCheckCollaboratorNoContent: @@ -16311,6 +16779,7 @@ func encodeReposCheckCollaboratorResponse(response ReposCheckCollaboratorRes, w return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposCheckVulnerabilityAlertsResponse(response ReposCheckVulnerabilityAlertsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposCheckVulnerabilityAlertsNoContent: @@ -16327,6 +16796,7 @@ func encodeReposCheckVulnerabilityAlertsResponse(response ReposCheckVulnerabilit return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposCompareCommitsResponse(response ReposCompareCommitsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *CommitComparison: @@ -16369,6 +16839,7 @@ func encodeReposCompareCommitsResponse(response ReposCompareCommitsRes, w http.R return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposCreateAutolinkResponse(response ReposCreateAutolinkRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *AutolinkHeaders: @@ -16418,6 +16889,7 @@ func encodeReposCreateAutolinkResponse(response ReposCreateAutolinkRes, w http.R return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposCreateCommitCommentResponse(response ReposCreateCommitCommentRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *CommitCommentHeaders: @@ -16479,6 +16951,7 @@ func encodeReposCreateCommitCommentResponse(response ReposCreateCommitCommentRes return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposCreateCommitSignatureProtectionResponse(response ReposCreateCommitSignatureProtectionRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ProtectedBranchAdminEnforced: @@ -16509,6 +16982,7 @@ func encodeReposCreateCommitSignatureProtectionResponse(response ReposCreateComm return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposCreateCommitStatusResponse(response StatusHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -16541,6 +17015,7 @@ func encodeReposCreateCommitStatusResponse(response StatusHeaders, w http.Respon return nil } + func encodeReposCreateDeployKeyResponse(response ReposCreateDeployKeyRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *DeployKeyHeaders: @@ -16590,6 +17065,7 @@ func encodeReposCreateDeployKeyResponse(response ReposCreateDeployKeyRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposCreateDeploymentResponse(response ReposCreateDeploymentRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Deployment: @@ -16637,6 +17113,7 @@ func encodeReposCreateDeploymentResponse(response ReposCreateDeploymentRes, w ht return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposCreateDeploymentStatusResponse(response ReposCreateDeploymentStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *DeploymentStatusHeaders: @@ -16686,6 +17163,7 @@ func encodeReposCreateDeploymentStatusResponse(response ReposCreateDeploymentSta return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposCreateDispatchEventResponse(response ReposCreateDispatchEventRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposCreateDispatchEventNoContent: @@ -16709,6 +17187,7 @@ func encodeReposCreateDispatchEventResponse(response ReposCreateDispatchEventRes return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposCreateForAuthenticatedUserResponse(response ReposCreateForAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *RepositoryHeaders: @@ -16811,6 +17290,7 @@ func encodeReposCreateForAuthenticatedUserResponse(response ReposCreateForAuthen return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposCreateForkResponse(response ReposCreateForkRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *FullRepository: @@ -16877,6 +17357,7 @@ func encodeReposCreateForkResponse(response ReposCreateForkRes, w http.ResponseW return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposCreateInOrgResponse(response ReposCreateInOrgRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *RepositoryHeaders: @@ -16938,6 +17419,7 @@ func encodeReposCreateInOrgResponse(response ReposCreateInOrgRes, w http.Respons return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposCreateOrUpdateFileContentsResponse(response ReposCreateOrUpdateFileContentsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposCreateOrUpdateFileContentsApplicationJSONOK: @@ -17004,6 +17486,7 @@ func encodeReposCreateOrUpdateFileContentsResponse(response ReposCreateOrUpdateF return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposCreatePagesSiteResponse(response ReposCreatePagesSiteRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Page: @@ -17058,6 +17541,7 @@ func encodeReposCreatePagesSiteResponse(response ReposCreatePagesSiteRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposCreateReleaseResponse(response ReposCreateReleaseRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReleaseHeaders: @@ -17119,6 +17603,7 @@ func encodeReposCreateReleaseResponse(response ReposCreateReleaseRes, w http.Res return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposCreateUsingTemplateResponse(response RepositoryHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -17151,6 +17636,7 @@ func encodeReposCreateUsingTemplateResponse(response RepositoryHeaders, w http.R return nil } + func encodeReposCreateWebhookResponse(response ReposCreateWebhookRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *HookHeaders: @@ -17224,6 +17710,7 @@ func encodeReposCreateWebhookResponse(response ReposCreateWebhookRes, w http.Res return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposDeclineInvitationResponse(response ReposDeclineInvitationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposDeclineInvitationNoContent: @@ -17276,6 +17763,7 @@ func encodeReposDeclineInvitationResponse(response ReposDeclineInvitationRes, w return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposDeleteResponse(response ReposDeleteRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposDeleteNoContent: @@ -17323,12 +17811,14 @@ func encodeReposDeleteResponse(response ReposDeleteRes, w http.ResponseWriter, s return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposDeleteAccessRestrictionsResponse(response ReposDeleteAccessRestrictionsNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeReposDeleteAdminBranchProtectionResponse(response ReposDeleteAdminBranchProtectionRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposDeleteAdminBranchProtectionNoContent: @@ -17352,12 +17842,14 @@ func encodeReposDeleteAdminBranchProtectionResponse(response ReposDeleteAdminBra return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposDeleteAnEnvironmentResponse(response ReposDeleteAnEnvironmentNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeReposDeleteAutolinkResponse(response ReposDeleteAutolinkRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposDeleteAutolinkNoContent: @@ -17381,6 +17873,7 @@ func encodeReposDeleteAutolinkResponse(response ReposDeleteAutolinkRes, w http.R return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposDeleteBranchProtectionResponse(response ReposDeleteBranchProtectionRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposDeleteBranchProtectionNoContent: @@ -17404,6 +17897,7 @@ func encodeReposDeleteBranchProtectionResponse(response ReposDeleteBranchProtect return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposDeleteCommitCommentResponse(response ReposDeleteCommitCommentRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposDeleteCommitCommentNoContent: @@ -17427,6 +17921,7 @@ func encodeReposDeleteCommitCommentResponse(response ReposDeleteCommitCommentRes return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposDeleteCommitSignatureProtectionResponse(response ReposDeleteCommitSignatureProtectionRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposDeleteCommitSignatureProtectionNoContent: @@ -17450,12 +17945,14 @@ func encodeReposDeleteCommitSignatureProtectionResponse(response ReposDeleteComm return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposDeleteDeployKeyResponse(response ReposDeleteDeployKeyNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeReposDeleteDeploymentResponse(response ReposDeleteDeploymentRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposDeleteDeploymentNoContent: @@ -17491,6 +17988,7 @@ func encodeReposDeleteDeploymentResponse(response ReposDeleteDeploymentRes, w ht return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposDeleteFileResponse(response ReposDeleteFileRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *FileCommit: @@ -17557,12 +18055,14 @@ func encodeReposDeleteFileResponse(response ReposDeleteFileRes, w http.ResponseW return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposDeleteInvitationResponse(response ReposDeleteInvitationNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeReposDeletePagesSiteResponse(response ReposDeletePagesSiteRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposDeletePagesSiteNoContent: @@ -17610,6 +18110,7 @@ func encodeReposDeletePagesSiteResponse(response ReposDeletePagesSiteRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposDeletePullRequestReviewProtectionResponse(response ReposDeletePullRequestReviewProtectionRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposDeletePullRequestReviewProtectionNoContent: @@ -17633,18 +18134,21 @@ func encodeReposDeletePullRequestReviewProtectionResponse(response ReposDeletePu return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposDeleteReleaseResponse(response ReposDeleteReleaseNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeReposDeleteReleaseAssetResponse(response ReposDeleteReleaseAssetNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeReposDeleteWebhookResponse(response ReposDeleteWebhookRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposDeleteWebhookNoContent: @@ -17668,24 +18172,28 @@ func encodeReposDeleteWebhookResponse(response ReposDeleteWebhookRes, w http.Res return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposDisableAutomatedSecurityFixesResponse(response ReposDisableAutomatedSecurityFixesNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeReposDisableLfsForRepoResponse(response ReposDisableLfsForRepoNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeReposDisableVulnerabilityAlertsResponse(response ReposDisableVulnerabilityAlertsNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeReposDownloadTarballArchiveResponse(response ReposDownloadTarballArchiveFound, w http.ResponseWriter, span trace.Span) error { // Encoding response headers. { @@ -17711,6 +18219,7 @@ func encodeReposDownloadTarballArchiveResponse(response ReposDownloadTarballArch return nil } + func encodeReposDownloadZipballArchiveResponse(response ReposDownloadZipballArchiveFound, w http.ResponseWriter, span trace.Span) error { // Encoding response headers. { @@ -17736,12 +18245,14 @@ func encodeReposDownloadZipballArchiveResponse(response ReposDownloadZipballArch return nil } + func encodeReposEnableAutomatedSecurityFixesResponse(response ReposEnableAutomatedSecurityFixesNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeReposEnableLfsForRepoResponse(response ReposEnableLfsForRepoRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Accepted: @@ -17765,12 +18276,14 @@ func encodeReposEnableLfsForRepoResponse(response ReposEnableLfsForRepoRes, w ht return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposEnableVulnerabilityAlertsResponse(response ReposEnableVulnerabilityAlertsNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeReposGetResponse(response ReposGetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *FullRepository: @@ -17825,6 +18338,7 @@ func encodeReposGetResponse(response ReposGetRes, w http.ResponseWriter, span tr return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetAccessRestrictionsResponse(response ReposGetAccessRestrictionsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *BranchRestrictionPolicy: @@ -17855,6 +18369,7 @@ func encodeReposGetAccessRestrictionsResponse(response ReposGetAccessRestriction return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetAdminBranchProtectionResponse(response ProtectedBranchAdminEnforced, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -17868,6 +18383,7 @@ func encodeReposGetAdminBranchProtectionResponse(response ProtectedBranchAdminEn return nil } + func encodeReposGetAllStatusCheckContextsResponse(response ReposGetAllStatusCheckContextsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposGetAllStatusCheckContextsOKApplicationJSON: @@ -17898,6 +18414,7 @@ func encodeReposGetAllStatusCheckContextsResponse(response ReposGetAllStatusChec return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetAllTopicsResponse(response ReposGetAllTopicsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Topic: @@ -17940,6 +18457,7 @@ func encodeReposGetAllTopicsResponse(response ReposGetAllTopicsRes, w http.Respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetAppsWithAccessToProtectedBranchResponse(response ReposGetAppsWithAccessToProtectedBranchRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposGetAppsWithAccessToProtectedBranchOKApplicationJSON: @@ -17970,6 +18488,7 @@ func encodeReposGetAppsWithAccessToProtectedBranchResponse(response ReposGetApps return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetAutolinkResponse(response ReposGetAutolinkRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Autolink: @@ -18000,6 +18519,7 @@ func encodeReposGetAutolinkResponse(response ReposGetAutolinkRes, w http.Respons return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetBranchResponse(response ReposGetBranchRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *BranchWithProtection: @@ -18054,6 +18574,7 @@ func encodeReposGetBranchResponse(response ReposGetBranchRes, w http.ResponseWri return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetBranchProtectionResponse(response ReposGetBranchProtectionRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *BranchProtection: @@ -18084,6 +18605,7 @@ func encodeReposGetBranchProtectionResponse(response ReposGetBranchProtectionRes return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetClonesResponse(response ReposGetClonesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *CloneTraffic: @@ -18114,6 +18636,7 @@ func encodeReposGetClonesResponse(response ReposGetClonesRes, w http.ResponseWri return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetCodeFrequencyStatsResponse(response ReposGetCodeFrequencyStatsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposGetCodeFrequencyStatsOKApplicationJSON: @@ -18149,6 +18672,7 @@ func encodeReposGetCodeFrequencyStatsResponse(response ReposGetCodeFrequencyStat return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetCollaboratorPermissionLevelResponse(response ReposGetCollaboratorPermissionLevelRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *RepositoryCollaboratorPermission: @@ -18179,6 +18703,7 @@ func encodeReposGetCollaboratorPermissionLevelResponse(response ReposGetCollabor return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetCombinedStatusForRefResponse(response ReposGetCombinedStatusForRefRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *CombinedCommitStatus: @@ -18209,6 +18734,7 @@ func encodeReposGetCombinedStatusForRefResponse(response ReposGetCombinedStatusF return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetCommitResponse(response ReposGetCommitRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Commit: @@ -18263,6 +18789,7 @@ func encodeReposGetCommitResponse(response ReposGetCommitRes, w http.ResponseWri return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetCommitActivityStatsResponse(response ReposGetCommitActivityStatsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposGetCommitActivityStatsOKApplicationJSON: @@ -18298,6 +18825,7 @@ func encodeReposGetCommitActivityStatsResponse(response ReposGetCommitActivitySt return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetCommitCommentResponse(response ReposGetCommitCommentRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *CommitComment: @@ -18328,6 +18856,7 @@ func encodeReposGetCommitCommentResponse(response ReposGetCommitCommentRes, w ht return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetCommitSignatureProtectionResponse(response ReposGetCommitSignatureProtectionRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ProtectedBranchAdminEnforced: @@ -18358,6 +18887,7 @@ func encodeReposGetCommitSignatureProtectionResponse(response ReposGetCommitSign return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetCommunityProfileMetricsResponse(response CommunityProfile, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -18371,6 +18901,7 @@ func encodeReposGetCommunityProfileMetricsResponse(response CommunityProfile, w return nil } + func encodeReposGetContributorsStatsResponse(response ReposGetContributorsStatsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposGetContributorsStatsOKApplicationJSON: @@ -18406,6 +18937,7 @@ func encodeReposGetContributorsStatsResponse(response ReposGetContributorsStatsR return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetDeployKeyResponse(response ReposGetDeployKeyRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *DeployKey: @@ -18436,6 +18968,7 @@ func encodeReposGetDeployKeyResponse(response ReposGetDeployKeyRes, w http.Respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetDeploymentResponse(response ReposGetDeploymentRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Deployment: @@ -18466,6 +18999,7 @@ func encodeReposGetDeploymentResponse(response ReposGetDeploymentRes, w http.Res return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetDeploymentStatusResponse(response ReposGetDeploymentStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *DeploymentStatus: @@ -18508,6 +19042,7 @@ func encodeReposGetDeploymentStatusResponse(response ReposGetDeploymentStatusRes return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetLatestPagesBuildResponse(response PageBuild, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -18521,6 +19056,7 @@ func encodeReposGetLatestPagesBuildResponse(response PageBuild, w http.ResponseW return nil } + func encodeReposGetLatestReleaseResponse(response Release, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -18534,6 +19070,7 @@ func encodeReposGetLatestReleaseResponse(response Release, w http.ResponseWriter return nil } + func encodeReposGetPagesResponse(response ReposGetPagesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Page: @@ -18564,6 +19101,7 @@ func encodeReposGetPagesResponse(response ReposGetPagesRes, w http.ResponseWrite return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetPagesBuildResponse(response PageBuild, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -18577,6 +19115,7 @@ func encodeReposGetPagesBuildResponse(response PageBuild, w http.ResponseWriter, return nil } + func encodeReposGetPagesHealthCheckResponse(response ReposGetPagesHealthCheckRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PagesHealthCheck: @@ -18629,6 +19168,7 @@ func encodeReposGetPagesHealthCheckResponse(response ReposGetPagesHealthCheckRes return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetParticipationStatsResponse(response ReposGetParticipationStatsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ParticipationStats: @@ -18659,6 +19199,7 @@ func encodeReposGetParticipationStatsResponse(response ReposGetParticipationStat return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetPullRequestReviewProtectionResponse(response ProtectedBranchPullRequestReview, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -18672,6 +19213,7 @@ func encodeReposGetPullRequestReviewProtectionResponse(response ProtectedBranchP return nil } + func encodeReposGetPunchCardStatsResponse(response ReposGetPunchCardStatsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposGetPunchCardStatsOKApplicationJSON: @@ -18695,6 +19237,7 @@ func encodeReposGetPunchCardStatsResponse(response ReposGetPunchCardStatsRes, w return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetReadmeResponse(response ReposGetReadmeRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ContentFile: @@ -18737,6 +19280,7 @@ func encodeReposGetReadmeResponse(response ReposGetReadmeRes, w http.ResponseWri return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetReadmeInDirectoryResponse(response ReposGetReadmeInDirectoryRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ContentFile: @@ -18779,6 +19323,7 @@ func encodeReposGetReadmeInDirectoryResponse(response ReposGetReadmeInDirectoryR return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetReleaseResponse(response ReposGetReleaseRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Release: @@ -18809,6 +19354,7 @@ func encodeReposGetReleaseResponse(response ReposGetReleaseRes, w http.ResponseW return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetReleaseAssetResponse(response ReposGetReleaseAssetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReleaseAsset: @@ -18856,6 +19402,7 @@ func encodeReposGetReleaseAssetResponse(response ReposGetReleaseAssetRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetReleaseByTagResponse(response ReposGetReleaseByTagRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Release: @@ -18886,6 +19433,7 @@ func encodeReposGetReleaseByTagResponse(response ReposGetReleaseByTagRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetStatusChecksProtectionResponse(response ReposGetStatusChecksProtectionRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *StatusCheckPolicy: @@ -18916,6 +19464,7 @@ func encodeReposGetStatusChecksProtectionResponse(response ReposGetStatusChecksP return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetTeamsWithAccessToProtectedBranchResponse(response ReposGetTeamsWithAccessToProtectedBranchRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposGetTeamsWithAccessToProtectedBranchOKApplicationJSON: @@ -18946,6 +19495,7 @@ func encodeReposGetTeamsWithAccessToProtectedBranchResponse(response ReposGetTea return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetTopPathsResponse(response ReposGetTopPathsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposGetTopPathsOKApplicationJSON: @@ -18976,6 +19526,7 @@ func encodeReposGetTopPathsResponse(response ReposGetTopPathsRes, w http.Respons return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetTopReferrersResponse(response ReposGetTopReferrersRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposGetTopReferrersOKApplicationJSON: @@ -19006,6 +19557,7 @@ func encodeReposGetTopReferrersResponse(response ReposGetTopReferrersRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetUsersWithAccessToProtectedBranchResponse(response ReposGetUsersWithAccessToProtectedBranchRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposGetUsersWithAccessToProtectedBranchOKApplicationJSON: @@ -19036,6 +19588,7 @@ func encodeReposGetUsersWithAccessToProtectedBranchResponse(response ReposGetUse return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetViewsResponse(response ReposGetViewsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ViewTraffic: @@ -19066,6 +19619,7 @@ func encodeReposGetViewsResponse(response ReposGetViewsRes, w http.ResponseWrite return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetWebhookResponse(response ReposGetWebhookRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Hook: @@ -19096,6 +19650,7 @@ func encodeReposGetWebhookResponse(response ReposGetWebhookRes, w http.ResponseW return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposGetWebhookConfigForRepoResponse(response WebhookConfig, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -19109,6 +19664,7 @@ func encodeReposGetWebhookConfigForRepoResponse(response WebhookConfig, w http.R return nil } + func encodeReposGetWebhookDeliveryResponse(response ReposGetWebhookDeliveryRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *HookDelivery: @@ -19151,6 +19707,7 @@ func encodeReposGetWebhookDeliveryResponse(response ReposGetWebhookDeliveryRes, return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposListAutolinksResponse(response []Autolink, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -19168,6 +19725,7 @@ func encodeReposListAutolinksResponse(response []Autolink, w http.ResponseWriter return nil } + func encodeReposListBranchesResponse(response ReposListBranchesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposListBranchesOKHeaders: @@ -19221,6 +19779,7 @@ func encodeReposListBranchesResponse(response ReposListBranchesRes, w http.Respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposListBranchesForHeadCommitResponse(response ReposListBranchesForHeadCommitRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposListBranchesForHeadCommitOKApplicationJSON: @@ -19251,6 +19810,7 @@ func encodeReposListBranchesForHeadCommitResponse(response ReposListBranchesForH return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposListCollaboratorsResponse(response ReposListCollaboratorsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposListCollaboratorsOKHeaders: @@ -19304,6 +19864,7 @@ func encodeReposListCollaboratorsResponse(response ReposListCollaboratorsRes, w return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposListCommentsForCommitResponse(response ReposListCommentsForCommitOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -19340,6 +19901,7 @@ func encodeReposListCommentsForCommitResponse(response ReposListCommentsForCommi return nil } + func encodeReposListCommitCommentsForRepoResponse(response ReposListCommitCommentsForRepoOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -19376,6 +19938,7 @@ func encodeReposListCommitCommentsForRepoResponse(response ReposListCommitCommen return nil } + func encodeReposListCommitStatusesForRefResponse(response ReposListCommitStatusesForRefRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposListCommitStatusesForRefOKHeaders: @@ -19429,6 +19992,7 @@ func encodeReposListCommitStatusesForRefResponse(response ReposListCommitStatuse return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposListCommitsResponse(response ReposListCommitsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposListCommitsOKHeaders: @@ -19518,6 +20082,7 @@ func encodeReposListCommitsResponse(response ReposListCommitsRes, w http.Respons return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposListContributorsResponse(response ReposListContributorsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposListContributorsOKHeaders: @@ -19588,6 +20153,7 @@ func encodeReposListContributorsResponse(response ReposListContributorsRes, w ht return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposListDeployKeysResponse(response ReposListDeployKeysOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -19624,6 +20190,7 @@ func encodeReposListDeployKeysResponse(response ReposListDeployKeysOKHeaders, w return nil } + func encodeReposListDeploymentStatusesResponse(response ReposListDeploymentStatusesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposListDeploymentStatusesOKHeaders: @@ -19677,6 +20244,7 @@ func encodeReposListDeploymentStatusesResponse(response ReposListDeploymentStatu return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposListDeploymentsResponse(response ReposListDeploymentsOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -19713,6 +20281,7 @@ func encodeReposListDeploymentsResponse(response ReposListDeploymentsOKHeaders, return nil } + func encodeReposListForAuthenticatedUserResponse(response ReposListForAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposListForAuthenticatedUserOKApplicationJSON: @@ -19772,6 +20341,7 @@ func encodeReposListForAuthenticatedUserResponse(response ReposListForAuthentica return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposListForOrgResponse(response ReposListForOrgOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -19808,6 +20378,7 @@ func encodeReposListForOrgResponse(response ReposListForOrgOKHeaders, w http.Res return nil } + func encodeReposListForUserResponse(response ReposListForUserOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -19844,6 +20415,7 @@ func encodeReposListForUserResponse(response ReposListForUserOKHeaders, w http.R return nil } + func encodeReposListForksResponse(response ReposListForksRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposListForksOKHeaders: @@ -19897,6 +20469,7 @@ func encodeReposListForksResponse(response ReposListForksRes, w http.ResponseWri return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposListInvitationsResponse(response ReposListInvitationsOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -19933,6 +20506,7 @@ func encodeReposListInvitationsResponse(response ReposListInvitationsOKHeaders, return nil } + func encodeReposListInvitationsForAuthenticatedUserResponse(response ReposListInvitationsForAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposListInvitationsForAuthenticatedUserOKHeaders: @@ -20015,6 +20589,7 @@ func encodeReposListInvitationsForAuthenticatedUserResponse(response ReposListIn return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposListLanguagesResponse(response Language, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -20028,6 +20603,7 @@ func encodeReposListLanguagesResponse(response Language, w http.ResponseWriter, return nil } + func encodeReposListPagesBuildsResponse(response ReposListPagesBuildsOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -20064,6 +20640,7 @@ func encodeReposListPagesBuildsResponse(response ReposListPagesBuildsOKHeaders, return nil } + func encodeReposListPublicResponse(response ReposListPublicRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposListPublicOKHeaders: @@ -20122,6 +20699,7 @@ func encodeReposListPublicResponse(response ReposListPublicRes, w http.ResponseW return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposListPullRequestsAssociatedWithCommitResponse(response ReposListPullRequestsAssociatedWithCommitOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -20158,6 +20736,7 @@ func encodeReposListPullRequestsAssociatedWithCommitResponse(response ReposListP return nil } + func encodeReposListReleaseAssetsResponse(response ReposListReleaseAssetsOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -20194,6 +20773,7 @@ func encodeReposListReleaseAssetsResponse(response ReposListReleaseAssetsOKHeade return nil } + func encodeReposListReleasesResponse(response ReposListReleasesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposListReleasesOKHeaders: @@ -20247,6 +20827,7 @@ func encodeReposListReleasesResponse(response ReposListReleasesRes, w http.Respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposListTagsResponse(response ReposListTagsOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -20283,6 +20864,7 @@ func encodeReposListTagsResponse(response ReposListTagsOKHeaders, w http.Respons return nil } + func encodeReposListTeamsResponse(response ReposListTeamsOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -20319,6 +20901,7 @@ func encodeReposListTeamsResponse(response ReposListTeamsOKHeaders, w http.Respo return nil } + func encodeReposListWebhookDeliveriesResponse(response ReposListWebhookDeliveriesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposListWebhookDeliveriesOKApplicationJSON: @@ -20361,6 +20944,7 @@ func encodeReposListWebhookDeliveriesResponse(response ReposListWebhookDeliverie return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposListWebhooksResponse(response ReposListWebhooksRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposListWebhooksOKHeaders: @@ -20414,6 +20998,7 @@ func encodeReposListWebhooksResponse(response ReposListWebhooksRes, w http.Respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposMergeResponse(response ReposMergeRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Commit: @@ -20471,6 +21056,7 @@ func encodeReposMergeResponse(response ReposMergeRes, w http.ResponseWriter, spa return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposMergeUpstreamResponse(response ReposMergeUpstreamRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *MergedUpstream: @@ -20499,6 +21085,7 @@ func encodeReposMergeUpstreamResponse(response ReposMergeUpstreamRes, w http.Res return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposPingWebhookResponse(response ReposPingWebhookRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposPingWebhookNoContent: @@ -20522,6 +21109,7 @@ func encodeReposPingWebhookResponse(response ReposPingWebhookRes, w http.Respons return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposRedeliverWebhookDeliveryResponse(response ReposRedeliverWebhookDeliveryRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Accepted: @@ -20564,6 +21152,7 @@ func encodeReposRedeliverWebhookDeliveryResponse(response ReposRedeliverWebhookD return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposRemoveAppAccessRestrictionsResponse(response ReposRemoveAppAccessRestrictionsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposRemoveAppAccessRestrictionsOKApplicationJSON: @@ -20594,12 +21183,14 @@ func encodeReposRemoveAppAccessRestrictionsResponse(response ReposRemoveAppAcces return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposRemoveCollaboratorResponse(response ReposRemoveCollaboratorNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeReposRemoveStatusCheckContextsResponse(response ReposRemoveStatusCheckContextsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposRemoveStatusCheckContextsOKApplicationJSON: @@ -20642,12 +21233,14 @@ func encodeReposRemoveStatusCheckContextsResponse(response ReposRemoveStatusChec return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposRemoveStatusCheckProtectionResponse(response ReposRemoveStatusCheckProtectionNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeReposRemoveTeamAccessRestrictionsResponse(response ReposRemoveTeamAccessRestrictionsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposRemoveTeamAccessRestrictionsOKApplicationJSON: @@ -20678,6 +21271,7 @@ func encodeReposRemoveTeamAccessRestrictionsResponse(response ReposRemoveTeamAcc return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposRemoveUserAccessRestrictionsResponse(response ReposRemoveUserAccessRestrictionsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposRemoveUserAccessRestrictionsOKApplicationJSON: @@ -20708,6 +21302,7 @@ func encodeReposRemoveUserAccessRestrictionsResponse(response ReposRemoveUserAcc return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposRenameBranchResponse(response ReposRenameBranchRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *BranchWithProtection: @@ -20762,6 +21357,7 @@ func encodeReposRenameBranchResponse(response ReposRenameBranchRes, w http.Respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposReplaceAllTopicsResponse(response ReposReplaceAllTopicsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Topic: @@ -20816,6 +21412,7 @@ func encodeReposReplaceAllTopicsResponse(response ReposReplaceAllTopicsRes, w ht return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposRequestPagesBuildResponse(response PageBuildStatus, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(201) @@ -20829,6 +21426,7 @@ func encodeReposRequestPagesBuildResponse(response PageBuildStatus, w http.Respo return nil } + func encodeReposSetAdminBranchProtectionResponse(response ProtectedBranchAdminEnforced, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -20842,6 +21440,7 @@ func encodeReposSetAdminBranchProtectionResponse(response ProtectedBranchAdminEn return nil } + func encodeReposSetAppAccessRestrictionsResponse(response ReposSetAppAccessRestrictionsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposSetAppAccessRestrictionsOKApplicationJSON: @@ -20872,6 +21471,7 @@ func encodeReposSetAppAccessRestrictionsResponse(response ReposSetAppAccessRestr return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposSetStatusCheckContextsResponse(response ReposSetStatusCheckContextsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposSetStatusCheckContextsOKApplicationJSON: @@ -20914,6 +21514,7 @@ func encodeReposSetStatusCheckContextsResponse(response ReposSetStatusCheckConte return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposSetTeamAccessRestrictionsResponse(response ReposSetTeamAccessRestrictionsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposSetTeamAccessRestrictionsOKApplicationJSON: @@ -20944,6 +21545,7 @@ func encodeReposSetTeamAccessRestrictionsResponse(response ReposSetTeamAccessRes return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposSetUserAccessRestrictionsResponse(response ReposSetUserAccessRestrictionsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposSetUserAccessRestrictionsOKApplicationJSON: @@ -20974,6 +21576,7 @@ func encodeReposSetUserAccessRestrictionsResponse(response ReposSetUserAccessRes return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposTestPushWebhookResponse(response ReposTestPushWebhookRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReposTestPushWebhookNoContent: @@ -20997,6 +21600,7 @@ func encodeReposTestPushWebhookResponse(response ReposTestPushWebhookRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposTransferResponse(response MinimalRepository, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(202) @@ -21010,6 +21614,7 @@ func encodeReposTransferResponse(response MinimalRepository, w http.ResponseWrit return nil } + func encodeReposUpdateResponse(response ReposUpdateRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *FullRepository: @@ -21076,6 +21681,7 @@ func encodeReposUpdateResponse(response ReposUpdateRes, w http.ResponseWriter, s return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposUpdateBranchProtectionResponse(response ReposUpdateBranchProtectionRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ProtectedBranch: @@ -21130,6 +21736,7 @@ func encodeReposUpdateBranchProtectionResponse(response ReposUpdateBranchProtect return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposUpdateCommitCommentResponse(response ReposUpdateCommitCommentRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *CommitComment: @@ -21160,6 +21767,7 @@ func encodeReposUpdateCommitCommentResponse(response ReposUpdateCommitCommentRes return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposUpdateInvitationResponse(response RepositoryInvitation, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -21173,6 +21781,7 @@ func encodeReposUpdateInvitationResponse(response RepositoryInvitation, w http.R return nil } + func encodeReposUpdatePullRequestReviewProtectionResponse(response ReposUpdatePullRequestReviewProtectionRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ProtectedBranchPullRequestReview: @@ -21203,6 +21812,7 @@ func encodeReposUpdatePullRequestReviewProtectionResponse(response ReposUpdatePu return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposUpdateReleaseResponse(response ReposUpdateReleaseRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Release: @@ -21233,6 +21843,7 @@ func encodeReposUpdateReleaseResponse(response ReposUpdateReleaseRes, w http.Res return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposUpdateReleaseAssetResponse(response ReleaseAsset, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -21246,6 +21857,7 @@ func encodeReposUpdateReleaseAssetResponse(response ReleaseAsset, w http.Respons return nil } + func encodeReposUpdateStatusCheckProtectionResponse(response ReposUpdateStatusCheckProtectionRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *StatusCheckPolicy: @@ -21288,6 +21900,7 @@ func encodeReposUpdateStatusCheckProtectionResponse(response ReposUpdateStatusCh return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposUpdateWebhookResponse(response ReposUpdateWebhookRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Hook: @@ -21330,6 +21943,7 @@ func encodeReposUpdateWebhookResponse(response ReposUpdateWebhookRes, w http.Res return errors.Errorf("unexpected response type: %T", response) } } + func encodeReposUpdateWebhookConfigForRepoResponse(response WebhookConfig, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -21343,6 +21957,7 @@ func encodeReposUpdateWebhookConfigForRepoResponse(response WebhookConfig, w htt return nil } + func encodeScimDeleteUserFromOrgResponse(response ScimDeleteUserFromOrgRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ScimDeleteUserFromOrgNoContent: @@ -21383,6 +21998,7 @@ func encodeScimDeleteUserFromOrgResponse(response ScimDeleteUserFromOrgRes, w ht return errors.Errorf("unexpected response type: %T", response) } } + func encodeSearchCodeResponse(response SearchCodeRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *SearchCodeOK: @@ -21442,6 +22058,7 @@ func encodeSearchCodeResponse(response SearchCodeRes, w http.ResponseWriter, spa return errors.Errorf("unexpected response type: %T", response) } } + func encodeSearchCommitsResponse(response SearchCommitsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *SearchCommitsOK: @@ -21477,6 +22094,7 @@ func encodeSearchCommitsResponse(response SearchCommitsRes, w http.ResponseWrite return errors.Errorf("unexpected response type: %T", response) } } + func encodeSearchIssuesAndPullRequestsResponse(response SearchIssuesAndPullRequestsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *SearchIssuesAndPullRequestsOK: @@ -21536,6 +22154,7 @@ func encodeSearchIssuesAndPullRequestsResponse(response SearchIssuesAndPullReque return errors.Errorf("unexpected response type: %T", response) } } + func encodeSearchLabelsResponse(response SearchLabelsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *SearchLabelsOK: @@ -21595,6 +22214,7 @@ func encodeSearchLabelsResponse(response SearchLabelsRes, w http.ResponseWriter, return errors.Errorf("unexpected response type: %T", response) } } + func encodeSearchReposResponse(response SearchReposRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *SearchReposOK: @@ -21642,6 +22262,7 @@ func encodeSearchReposResponse(response SearchReposRes, w http.ResponseWriter, s return errors.Errorf("unexpected response type: %T", response) } } + func encodeSearchTopicsResponse(response SearchTopicsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *SearchTopicsOK: @@ -21677,6 +22298,7 @@ func encodeSearchTopicsResponse(response SearchTopicsRes, w http.ResponseWriter, return errors.Errorf("unexpected response type: %T", response) } } + func encodeSearchUsersResponse(response SearchUsersRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *SearchUsersOK: @@ -21724,6 +22346,7 @@ func encodeSearchUsersResponse(response SearchUsersRes, w http.ResponseWriter, s return errors.Errorf("unexpected response type: %T", response) } } + func encodeSecretScanningGetAlertResponse(response SecretScanningGetAlertRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *SecretScanningAlert: @@ -21759,6 +22382,7 @@ func encodeSecretScanningGetAlertResponse(response SecretScanningGetAlertRes, w return errors.Errorf("unexpected response type: %T", response) } } + func encodeSecretScanningListAlertsForOrgResponse(response SecretScanningListAlertsForOrgRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *SecretScanningListAlertsForOrgOKHeaders: @@ -21824,6 +22448,7 @@ func encodeSecretScanningListAlertsForOrgResponse(response SecretScanningListAle return errors.Errorf("unexpected response type: %T", response) } } + func encodeSecretScanningListAlertsForRepoResponse(response SecretScanningListAlertsForRepoRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *SecretScanningListAlertsForRepoOKApplicationJSON: @@ -21859,6 +22484,7 @@ func encodeSecretScanningListAlertsForRepoResponse(response SecretScanningListAl return errors.Errorf("unexpected response type: %T", response) } } + func encodeSecretScanningUpdateAlertResponse(response SecretScanningUpdateAlertRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *SecretScanningAlert: @@ -21899,6 +22525,7 @@ func encodeSecretScanningUpdateAlertResponse(response SecretScanningUpdateAlertR return errors.Errorf("unexpected response type: %T", response) } } + func encodeTeamsAddMemberLegacyResponse(response TeamsAddMemberLegacyRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *TeamsAddMemberLegacyNoContent: @@ -21932,6 +22559,7 @@ func encodeTeamsAddMemberLegacyResponse(response TeamsAddMemberLegacyRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodeTeamsAddOrUpdateMembershipForUserInOrgResponse(response TeamsAddOrUpdateMembershipForUserInOrgRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *TeamMembership: @@ -21960,6 +22588,7 @@ func encodeTeamsAddOrUpdateMembershipForUserInOrgResponse(response TeamsAddOrUpd return errors.Errorf("unexpected response type: %T", response) } } + func encodeTeamsAddOrUpdateMembershipForUserLegacyResponse(response TeamsAddOrUpdateMembershipForUserLegacyRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *TeamMembership: @@ -22000,6 +22629,7 @@ func encodeTeamsAddOrUpdateMembershipForUserLegacyResponse(response TeamsAddOrUp return errors.Errorf("unexpected response type: %T", response) } } + func encodeTeamsAddOrUpdateProjectPermissionsInOrgResponse(response TeamsAddOrUpdateProjectPermissionsInOrgRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *TeamsAddOrUpdateProjectPermissionsInOrgNoContent: @@ -22023,6 +22653,7 @@ func encodeTeamsAddOrUpdateProjectPermissionsInOrgResponse(response TeamsAddOrUp return errors.Errorf("unexpected response type: %T", response) } } + func encodeTeamsAddOrUpdateProjectPermissionsLegacyResponse(response TeamsAddOrUpdateProjectPermissionsLegacyRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *TeamsAddOrUpdateProjectPermissionsLegacyNoContent: @@ -22070,12 +22701,14 @@ func encodeTeamsAddOrUpdateProjectPermissionsLegacyResponse(response TeamsAddOrU return errors.Errorf("unexpected response type: %T", response) } } + func encodeTeamsAddOrUpdateRepoPermissionsInOrgResponse(response TeamsAddOrUpdateRepoPermissionsInOrgNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeTeamsAddOrUpdateRepoPermissionsLegacyResponse(response TeamsAddOrUpdateRepoPermissionsLegacyRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *TeamsAddOrUpdateRepoPermissionsLegacyNoContent: @@ -22111,6 +22744,7 @@ func encodeTeamsAddOrUpdateRepoPermissionsLegacyResponse(response TeamsAddOrUpda return errors.Errorf("unexpected response type: %T", response) } } + func encodeTeamsCheckPermissionsForProjectInOrgResponse(response TeamsCheckPermissionsForProjectInOrgRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *TeamProject: @@ -22134,6 +22768,7 @@ func encodeTeamsCheckPermissionsForProjectInOrgResponse(response TeamsCheckPermi return errors.Errorf("unexpected response type: %T", response) } } + func encodeTeamsCheckPermissionsForProjectLegacyResponse(response TeamsCheckPermissionsForProjectLegacyRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *TeamProject: @@ -22157,6 +22792,7 @@ func encodeTeamsCheckPermissionsForProjectLegacyResponse(response TeamsCheckPerm return errors.Errorf("unexpected response type: %T", response) } } + func encodeTeamsCheckPermissionsForRepoInOrgResponse(response TeamsCheckPermissionsForRepoInOrgRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *TeamRepository: @@ -22185,6 +22821,7 @@ func encodeTeamsCheckPermissionsForRepoInOrgResponse(response TeamsCheckPermissi return errors.Errorf("unexpected response type: %T", response) } } + func encodeTeamsCheckPermissionsForRepoLegacyResponse(response TeamsCheckPermissionsForRepoLegacyRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *TeamRepository: @@ -22213,6 +22850,7 @@ func encodeTeamsCheckPermissionsForRepoLegacyResponse(response TeamsCheckPermiss return errors.Errorf("unexpected response type: %T", response) } } + func encodeTeamsCreateResponse(response TeamsCreateRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *TeamFull: @@ -22255,6 +22893,7 @@ func encodeTeamsCreateResponse(response TeamsCreateRes, w http.ResponseWriter, s return errors.Errorf("unexpected response type: %T", response) } } + func encodeTeamsCreateDiscussionCommentInOrgResponse(response TeamDiscussionComment, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(201) @@ -22268,6 +22907,7 @@ func encodeTeamsCreateDiscussionCommentInOrgResponse(response TeamDiscussionComm return nil } + func encodeTeamsCreateDiscussionCommentLegacyResponse(response TeamDiscussionComment, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(201) @@ -22281,6 +22921,7 @@ func encodeTeamsCreateDiscussionCommentLegacyResponse(response TeamDiscussionCom return nil } + func encodeTeamsCreateDiscussionInOrgResponse(response TeamDiscussion, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(201) @@ -22294,6 +22935,7 @@ func encodeTeamsCreateDiscussionInOrgResponse(response TeamDiscussion, w http.Re return nil } + func encodeTeamsCreateDiscussionLegacyResponse(response TeamDiscussion, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(201) @@ -22307,6 +22949,7 @@ func encodeTeamsCreateDiscussionLegacyResponse(response TeamDiscussion, w http.R return nil } + func encodeTeamsCreateOrUpdateIdpGroupConnectionsInOrgResponse(response GroupMapping, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -22320,6 +22963,7 @@ func encodeTeamsCreateOrUpdateIdpGroupConnectionsInOrgResponse(response GroupMap return nil } + func encodeTeamsCreateOrUpdateIdpGroupConnectionsLegacyResponse(response TeamsCreateOrUpdateIdpGroupConnectionsLegacyRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GroupMapping: @@ -22362,36 +23006,42 @@ func encodeTeamsCreateOrUpdateIdpGroupConnectionsLegacyResponse(response TeamsCr return errors.Errorf("unexpected response type: %T", response) } } + func encodeTeamsDeleteDiscussionCommentInOrgResponse(response TeamsDeleteDiscussionCommentInOrgNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeTeamsDeleteDiscussionCommentLegacyResponse(response TeamsDeleteDiscussionCommentLegacyNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeTeamsDeleteDiscussionInOrgResponse(response TeamsDeleteDiscussionInOrgNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeTeamsDeleteDiscussionLegacyResponse(response TeamsDeleteDiscussionLegacyNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeTeamsDeleteInOrgResponse(response TeamsDeleteInOrgNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeTeamsDeleteLegacyResponse(response TeamsDeleteLegacyRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *TeamsDeleteLegacyNoContent: @@ -22427,6 +23077,7 @@ func encodeTeamsDeleteLegacyResponse(response TeamsDeleteLegacyRes, w http.Respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeTeamsGetByNameResponse(response TeamsGetByNameRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *TeamFull: @@ -22457,6 +23108,7 @@ func encodeTeamsGetByNameResponse(response TeamsGetByNameRes, w http.ResponseWri return errors.Errorf("unexpected response type: %T", response) } } + func encodeTeamsGetDiscussionCommentInOrgResponse(response TeamDiscussionComment, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -22470,6 +23122,7 @@ func encodeTeamsGetDiscussionCommentInOrgResponse(response TeamDiscussionComment return nil } + func encodeTeamsGetDiscussionCommentLegacyResponse(response TeamDiscussionComment, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -22483,6 +23136,7 @@ func encodeTeamsGetDiscussionCommentLegacyResponse(response TeamDiscussionCommen return nil } + func encodeTeamsGetDiscussionInOrgResponse(response TeamDiscussion, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -22496,6 +23150,7 @@ func encodeTeamsGetDiscussionInOrgResponse(response TeamDiscussion, w http.Respo return nil } + func encodeTeamsGetDiscussionLegacyResponse(response TeamDiscussion, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -22509,6 +23164,7 @@ func encodeTeamsGetDiscussionLegacyResponse(response TeamDiscussion, w http.Resp return nil } + func encodeTeamsGetLegacyResponse(response TeamsGetLegacyRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *TeamFull: @@ -22539,6 +23195,7 @@ func encodeTeamsGetLegacyResponse(response TeamsGetLegacyRes, w http.ResponseWri return errors.Errorf("unexpected response type: %T", response) } } + func encodeTeamsGetMemberLegacyResponse(response TeamsGetMemberLegacyRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *TeamsGetMemberLegacyNoContent: @@ -22555,6 +23212,7 @@ func encodeTeamsGetMemberLegacyResponse(response TeamsGetMemberLegacyRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodeTeamsGetMembershipForUserInOrgResponse(response TeamsGetMembershipForUserInOrgRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *TeamMembership: @@ -22578,6 +23236,7 @@ func encodeTeamsGetMembershipForUserInOrgResponse(response TeamsGetMembershipFor return errors.Errorf("unexpected response type: %T", response) } } + func encodeTeamsGetMembershipForUserLegacyResponse(response TeamsGetMembershipForUserLegacyRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *TeamMembership: @@ -22608,6 +23267,7 @@ func encodeTeamsGetMembershipForUserLegacyResponse(response TeamsGetMembershipFo return errors.Errorf("unexpected response type: %T", response) } } + func encodeTeamsListResponse(response TeamsListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *TeamsListOKHeaders: @@ -22661,6 +23321,7 @@ func encodeTeamsListResponse(response TeamsListRes, w http.ResponseWriter, span return errors.Errorf("unexpected response type: %T", response) } } + func encodeTeamsListChildInOrgResponse(response TeamsListChildInOrgOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -22697,6 +23358,7 @@ func encodeTeamsListChildInOrgResponse(response TeamsListChildInOrgOKHeaders, w return nil } + func encodeTeamsListChildLegacyResponse(response TeamsListChildLegacyRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *TeamsListChildLegacyOKHeaders: @@ -22774,6 +23436,7 @@ func encodeTeamsListChildLegacyResponse(response TeamsListChildLegacyRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodeTeamsListDiscussionCommentsInOrgResponse(response TeamsListDiscussionCommentsInOrgOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -22810,6 +23473,7 @@ func encodeTeamsListDiscussionCommentsInOrgResponse(response TeamsListDiscussion return nil } + func encodeTeamsListDiscussionCommentsLegacyResponse(response TeamsListDiscussionCommentsLegacyOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -22846,6 +23510,7 @@ func encodeTeamsListDiscussionCommentsLegacyResponse(response TeamsListDiscussio return nil } + func encodeTeamsListDiscussionsInOrgResponse(response TeamsListDiscussionsInOrgOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -22882,6 +23547,7 @@ func encodeTeamsListDiscussionsInOrgResponse(response TeamsListDiscussionsInOrgO return nil } + func encodeTeamsListDiscussionsLegacyResponse(response TeamsListDiscussionsLegacyOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -22918,6 +23584,7 @@ func encodeTeamsListDiscussionsLegacyResponse(response TeamsListDiscussionsLegac return nil } + func encodeTeamsListForAuthenticatedUserResponse(response TeamsListForAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *TeamsListForAuthenticatedUserOKHeaders: @@ -22988,6 +23655,7 @@ func encodeTeamsListForAuthenticatedUserResponse(response TeamsListForAuthentica return errors.Errorf("unexpected response type: %T", response) } } + func encodeTeamsListIdpGroupsForLegacyResponse(response TeamsListIdpGroupsForLegacyRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GroupMapping: @@ -23030,6 +23698,7 @@ func encodeTeamsListIdpGroupsForLegacyResponse(response TeamsListIdpGroupsForLeg return errors.Errorf("unexpected response type: %T", response) } } + func encodeTeamsListIdpGroupsForOrgResponse(response GroupMappingHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -23062,6 +23731,7 @@ func encodeTeamsListIdpGroupsForOrgResponse(response GroupMappingHeaders, w http return nil } + func encodeTeamsListIdpGroupsInOrgResponse(response GroupMapping, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -23075,6 +23745,7 @@ func encodeTeamsListIdpGroupsInOrgResponse(response GroupMapping, w http.Respons return nil } + func encodeTeamsListMembersInOrgResponse(response TeamsListMembersInOrgOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -23111,6 +23782,7 @@ func encodeTeamsListMembersInOrgResponse(response TeamsListMembersInOrgOKHeaders return nil } + func encodeTeamsListMembersLegacyResponse(response TeamsListMembersLegacyRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *TeamsListMembersLegacyOKHeaders: @@ -23164,6 +23836,7 @@ func encodeTeamsListMembersLegacyResponse(response TeamsListMembersLegacyRes, w return errors.Errorf("unexpected response type: %T", response) } } + func encodeTeamsListPendingInvitationsInOrgResponse(response TeamsListPendingInvitationsInOrgOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -23200,6 +23873,7 @@ func encodeTeamsListPendingInvitationsInOrgResponse(response TeamsListPendingInv return nil } + func encodeTeamsListPendingInvitationsLegacyResponse(response TeamsListPendingInvitationsLegacyOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -23236,6 +23910,7 @@ func encodeTeamsListPendingInvitationsLegacyResponse(response TeamsListPendingIn return nil } + func encodeTeamsListProjectsInOrgResponse(response TeamsListProjectsInOrgOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -23272,6 +23947,7 @@ func encodeTeamsListProjectsInOrgResponse(response TeamsListProjectsInOrgOKHeade return nil } + func encodeTeamsListProjectsLegacyResponse(response TeamsListProjectsLegacyRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *TeamsListProjectsLegacyOKHeaders: @@ -23325,6 +24001,7 @@ func encodeTeamsListProjectsLegacyResponse(response TeamsListProjectsLegacyRes, return errors.Errorf("unexpected response type: %T", response) } } + func encodeTeamsListReposInOrgResponse(response TeamsListReposInOrgOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -23361,6 +24038,7 @@ func encodeTeamsListReposInOrgResponse(response TeamsListReposInOrgOKHeaders, w return nil } + func encodeTeamsListReposLegacyResponse(response TeamsListReposLegacyRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *TeamsListReposLegacyOKHeaders: @@ -23414,6 +24092,7 @@ func encodeTeamsListReposLegacyResponse(response TeamsListReposLegacyRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodeTeamsRemoveMemberLegacyResponse(response TeamsRemoveMemberLegacyRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *TeamsRemoveMemberLegacyNoContent: @@ -23430,6 +24109,7 @@ func encodeTeamsRemoveMemberLegacyResponse(response TeamsRemoveMemberLegacyRes, return errors.Errorf("unexpected response type: %T", response) } } + func encodeTeamsRemoveMembershipForUserInOrgResponse(response TeamsRemoveMembershipForUserInOrgRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *TeamsRemoveMembershipForUserInOrgNoContent: @@ -23446,6 +24126,7 @@ func encodeTeamsRemoveMembershipForUserInOrgResponse(response TeamsRemoveMembers return errors.Errorf("unexpected response type: %T", response) } } + func encodeTeamsRemoveMembershipForUserLegacyResponse(response TeamsRemoveMembershipForUserLegacyRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *TeamsRemoveMembershipForUserLegacyNoContent: @@ -23462,12 +24143,14 @@ func encodeTeamsRemoveMembershipForUserLegacyResponse(response TeamsRemoveMember return errors.Errorf("unexpected response type: %T", response) } } + func encodeTeamsRemoveProjectInOrgResponse(response TeamsRemoveProjectInOrgNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeTeamsRemoveProjectLegacyResponse(response TeamsRemoveProjectLegacyRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *TeamsRemoveProjectLegacyNoContent: @@ -23515,18 +24198,21 @@ func encodeTeamsRemoveProjectLegacyResponse(response TeamsRemoveProjectLegacyRes return errors.Errorf("unexpected response type: %T", response) } } + func encodeTeamsRemoveRepoInOrgResponse(response TeamsRemoveRepoInOrgNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeTeamsRemoveRepoLegacyResponse(response TeamsRemoveRepoLegacyNoContent, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(204) span.SetStatus(codes.Ok, http.StatusText(204)) return nil } + func encodeTeamsUpdateDiscussionCommentInOrgResponse(response TeamDiscussionComment, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -23540,6 +24226,7 @@ func encodeTeamsUpdateDiscussionCommentInOrgResponse(response TeamDiscussionComm return nil } + func encodeTeamsUpdateDiscussionCommentLegacyResponse(response TeamDiscussionComment, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -23553,6 +24240,7 @@ func encodeTeamsUpdateDiscussionCommentLegacyResponse(response TeamDiscussionCom return nil } + func encodeTeamsUpdateDiscussionInOrgResponse(response TeamDiscussion, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -23566,6 +24254,7 @@ func encodeTeamsUpdateDiscussionInOrgResponse(response TeamDiscussion, w http.Re return nil } + func encodeTeamsUpdateDiscussionLegacyResponse(response TeamDiscussion, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -23579,6 +24268,7 @@ func encodeTeamsUpdateDiscussionLegacyResponse(response TeamDiscussion, w http.R return nil } + func encodeTeamsUpdateInOrgResponse(response TeamFull, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(201) @@ -23592,6 +24282,7 @@ func encodeTeamsUpdateInOrgResponse(response TeamFull, w http.ResponseWriter, sp return nil } + func encodeTeamsUpdateLegacyResponse(response TeamsUpdateLegacyRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *TeamsUpdateLegacyApplicationJSONOK: @@ -23658,6 +24349,7 @@ func encodeTeamsUpdateLegacyResponse(response TeamsUpdateLegacyRes, w http.Respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeUsersAddEmailForAuthenticatedResponse(response UsersAddEmailForAuthenticatedRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *UsersAddEmailForAuthenticatedCreatedApplicationJSON: @@ -23729,6 +24421,7 @@ func encodeUsersAddEmailForAuthenticatedResponse(response UsersAddEmailForAuthen return errors.Errorf("unexpected response type: %T", response) } } + func encodeUsersBlockResponse(response UsersBlockRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *UsersBlockNoContent: @@ -23793,6 +24486,7 @@ func encodeUsersBlockResponse(response UsersBlockRes, w http.ResponseWriter, spa return errors.Errorf("unexpected response type: %T", response) } } + func encodeUsersCheckBlockedResponse(response UsersCheckBlockedRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *UsersCheckBlockedNoContent: @@ -23845,6 +24539,7 @@ func encodeUsersCheckBlockedResponse(response UsersCheckBlockedRes, w http.Respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeUsersCheckFollowingForUserResponse(response UsersCheckFollowingForUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *UsersCheckFollowingForUserNoContent: @@ -23861,6 +24556,7 @@ func encodeUsersCheckFollowingForUserResponse(response UsersCheckFollowingForUse return errors.Errorf("unexpected response type: %T", response) } } + func encodeUsersCheckPersonIsFollowedByAuthenticatedResponse(response UsersCheckPersonIsFollowedByAuthenticatedRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *UsersCheckPersonIsFollowedByAuthenticatedNoContent: @@ -23913,6 +24609,7 @@ func encodeUsersCheckPersonIsFollowedByAuthenticatedResponse(response UsersCheck return errors.Errorf("unexpected response type: %T", response) } } + func encodeUsersCreateGpgKeyForAuthenticatedResponse(response UsersCreateGpgKeyForAuthenticatedRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GpgKey: @@ -23984,6 +24681,7 @@ func encodeUsersCreateGpgKeyForAuthenticatedResponse(response UsersCreateGpgKeyF return errors.Errorf("unexpected response type: %T", response) } } + func encodeUsersCreatePublicSSHKeyForAuthenticatedResponse(response UsersCreatePublicSSHKeyForAuthenticatedRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Key: @@ -24055,6 +24753,7 @@ func encodeUsersCreatePublicSSHKeyForAuthenticatedResponse(response UsersCreateP return errors.Errorf("unexpected response type: %T", response) } } + func encodeUsersDeleteEmailForAuthenticatedResponse(response UsersDeleteEmailForAuthenticatedRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *UsersDeleteEmailForAuthenticatedNoContent: @@ -24119,6 +24818,7 @@ func encodeUsersDeleteEmailForAuthenticatedResponse(response UsersDeleteEmailFor return errors.Errorf("unexpected response type: %T", response) } } + func encodeUsersDeleteGpgKeyForAuthenticatedResponse(response UsersDeleteGpgKeyForAuthenticatedRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *UsersDeleteGpgKeyForAuthenticatedNoContent: @@ -24183,6 +24883,7 @@ func encodeUsersDeleteGpgKeyForAuthenticatedResponse(response UsersDeleteGpgKeyF return errors.Errorf("unexpected response type: %T", response) } } + func encodeUsersDeletePublicSSHKeyForAuthenticatedResponse(response UsersDeletePublicSSHKeyForAuthenticatedRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *UsersDeletePublicSSHKeyForAuthenticatedNoContent: @@ -24235,6 +24936,7 @@ func encodeUsersDeletePublicSSHKeyForAuthenticatedResponse(response UsersDeleteP return errors.Errorf("unexpected response type: %T", response) } } + func encodeUsersFollowResponse(response UsersFollowRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *UsersFollowNoContent: @@ -24287,6 +24989,7 @@ func encodeUsersFollowResponse(response UsersFollowRes, w http.ResponseWriter, s return errors.Errorf("unexpected response type: %T", response) } } + func encodeUsersGetAuthenticatedResponse(response UsersGetAuthenticatedRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *UsersGetAuthenticatedOK: @@ -24334,6 +25037,7 @@ func encodeUsersGetAuthenticatedResponse(response UsersGetAuthenticatedRes, w ht return errors.Errorf("unexpected response type: %T", response) } } + func encodeUsersGetByUsernameResponse(response UsersGetByUsernameRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *UsersGetByUsernameOK: @@ -24376,6 +25080,7 @@ func encodeUsersGetByUsernameResponse(response UsersGetByUsernameRes, w http.Res return errors.Errorf("unexpected response type: %T", response) } } + func encodeUsersGetContextForUserResponse(response UsersGetContextForUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Hovercard: @@ -24418,6 +25123,7 @@ func encodeUsersGetContextForUserResponse(response UsersGetContextForUserRes, w return errors.Errorf("unexpected response type: %T", response) } } + func encodeUsersGetGpgKeyForAuthenticatedResponse(response UsersGetGpgKeyForAuthenticatedRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GpgKey: @@ -24477,6 +25183,7 @@ func encodeUsersGetGpgKeyForAuthenticatedResponse(response UsersGetGpgKeyForAuth return errors.Errorf("unexpected response type: %T", response) } } + func encodeUsersGetPublicSSHKeyForAuthenticatedResponse(response UsersGetPublicSSHKeyForAuthenticatedRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Key: @@ -24536,6 +25243,7 @@ func encodeUsersGetPublicSSHKeyForAuthenticatedResponse(response UsersGetPublicS return errors.Errorf("unexpected response type: %T", response) } } + func encodeUsersListResponse(response UsersListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *UsersListOKHeaders: @@ -24582,6 +25290,7 @@ func encodeUsersListResponse(response UsersListRes, w http.ResponseWriter, span return errors.Errorf("unexpected response type: %T", response) } } + func encodeUsersListBlockedByAuthenticatedResponse(response UsersListBlockedByAuthenticatedRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *UsersListBlockedByAuthenticatedOKApplicationJSON: @@ -24653,6 +25362,7 @@ func encodeUsersListBlockedByAuthenticatedResponse(response UsersListBlockedByAu return errors.Errorf("unexpected response type: %T", response) } } + func encodeUsersListEmailsForAuthenticatedResponse(response UsersListEmailsForAuthenticatedRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *UsersListEmailsForAuthenticatedOKHeaders: @@ -24735,6 +25445,7 @@ func encodeUsersListEmailsForAuthenticatedResponse(response UsersListEmailsForAu return errors.Errorf("unexpected response type: %T", response) } } + func encodeUsersListFollowedByAuthenticatedResponse(response UsersListFollowedByAuthenticatedRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *UsersListFollowedByAuthenticatedOKHeaders: @@ -24805,6 +25516,7 @@ func encodeUsersListFollowedByAuthenticatedResponse(response UsersListFollowedBy return errors.Errorf("unexpected response type: %T", response) } } + func encodeUsersListFollowersForAuthenticatedUserResponse(response UsersListFollowersForAuthenticatedUserRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *UsersListFollowersForAuthenticatedUserOKHeaders: @@ -24875,6 +25587,7 @@ func encodeUsersListFollowersForAuthenticatedUserResponse(response UsersListFoll return errors.Errorf("unexpected response type: %T", response) } } + func encodeUsersListFollowersForUserResponse(response UsersListFollowersForUserOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -24911,6 +25624,7 @@ func encodeUsersListFollowersForUserResponse(response UsersListFollowersForUserO return nil } + func encodeUsersListFollowingForUserResponse(response UsersListFollowingForUserOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -24947,6 +25661,7 @@ func encodeUsersListFollowingForUserResponse(response UsersListFollowingForUserO return nil } + func encodeUsersListGpgKeysForAuthenticatedResponse(response UsersListGpgKeysForAuthenticatedRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *UsersListGpgKeysForAuthenticatedOKHeaders: @@ -25029,6 +25744,7 @@ func encodeUsersListGpgKeysForAuthenticatedResponse(response UsersListGpgKeysFor return errors.Errorf("unexpected response type: %T", response) } } + func encodeUsersListGpgKeysForUserResponse(response UsersListGpgKeysForUserOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -25065,6 +25781,7 @@ func encodeUsersListGpgKeysForUserResponse(response UsersListGpgKeysForUserOKHea return nil } + func encodeUsersListPublicEmailsForAuthenticatedResponse(response UsersListPublicEmailsForAuthenticatedRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *UsersListPublicEmailsForAuthenticatedOKHeaders: @@ -25147,6 +25864,7 @@ func encodeUsersListPublicEmailsForAuthenticatedResponse(response UsersListPubli return errors.Errorf("unexpected response type: %T", response) } } + func encodeUsersListPublicKeysForUserResponse(response UsersListPublicKeysForUserOKHeaders, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") // Encoding response headers. @@ -25183,6 +25901,7 @@ func encodeUsersListPublicKeysForUserResponse(response UsersListPublicKeysForUse return nil } + func encodeUsersListPublicSSHKeysForAuthenticatedResponse(response UsersListPublicSSHKeysForAuthenticatedRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *UsersListPublicSSHKeysForAuthenticatedOKHeaders: @@ -25265,6 +25984,7 @@ func encodeUsersListPublicSSHKeysForAuthenticatedResponse(response UsersListPubl return errors.Errorf("unexpected response type: %T", response) } } + func encodeUsersSetPrimaryEmailVisibilityForAuthenticatedResponse(response UsersSetPrimaryEmailVisibilityForAuthenticatedRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *UsersSetPrimaryEmailVisibilityForAuthenticatedOKApplicationJSON: @@ -25336,6 +26056,7 @@ func encodeUsersSetPrimaryEmailVisibilityForAuthenticatedResponse(response Users return errors.Errorf("unexpected response type: %T", response) } } + func encodeUsersUnblockResponse(response UsersUnblockRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *UsersUnblockNoContent: @@ -25388,6 +26109,7 @@ func encodeUsersUnblockResponse(response UsersUnblockRes, w http.ResponseWriter, return errors.Errorf("unexpected response type: %T", response) } } + func encodeUsersUnfollowResponse(response UsersUnfollowRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *UsersUnfollowNoContent: @@ -25440,6 +26162,7 @@ func encodeUsersUnfollowResponse(response UsersUnfollowRes, w http.ResponseWrite return errors.Errorf("unexpected response type: %T", response) } } + func encodeUsersUpdateAuthenticatedResponse(response UsersUpdateAuthenticatedRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PrivateUser: diff --git a/examples/ex_github/oas_router_gen.go b/examples/ex_github/oas_router_gen.go index c3cee9e28..f3bc98946 100644 --- a/examples/ex_github/oas_router_gen.go +++ b/examples/ex_github/oas_router_gen.go @@ -7,14 +7,6 @@ import ( "strings" ) -func (s *Server) notFound(w http.ResponseWriter, r *http.Request) { - s.cfg.NotFound(w, r) -} - -func (s *Server) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { - s.cfg.MethodNotAllowed(w, r, allowed) -} - // ServeHTTP serves http request as defined by OpenAPI v3 specification, // calling handler that matches the path or returning not found error. func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { diff --git a/examples/ex_github/oas_server_gen.go b/examples/ex_github/oas_server_gen.go index 9d183b18e..38995c5ed 100644 --- a/examples/ex_github/oas_server_gen.go +++ b/examples/ex_github/oas_server_gen.go @@ -4,10 +4,6 @@ package api import ( "context" - - "go.opentelemetry.io/otel/metric/instrument/syncint64" - - "github.com/ogen-go/ogen/otelogen" ) // Handler handles operations described by OpenAPI v3 specification. @@ -7709,29 +7705,18 @@ type Handler interface { // Server implements http server based on OpenAPI v3 specification and // calls Handler to handle requests. type Server struct { - h Handler - cfg config - - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + h Handler + baseServer } // NewServer creates new Server. func NewServer(h Handler, opts ...Option) (*Server, error) { - s := &Server{ - h: h, - cfg: newConfig(opts...), - } - var err error - if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { - return nil, err - } - if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { - return nil, err - } - if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + s, err := newConfig(opts...).baseServer() + if err != nil { return nil, err } - return s, nil + return &Server{ + h: h, + baseServer: s, + }, nil } diff --git a/examples/ex_github/oas_unimplemented_gen.go b/examples/ex_github/oas_unimplemented_gen.go index 5606a5699..2ba40090f 100644 --- a/examples/ex_github/oas_unimplemented_gen.go +++ b/examples/ex_github/oas_unimplemented_gen.go @@ -8,11 +8,11 @@ import ( ht "github.com/ogen-go/ogen/http" ) -var _ Handler = UnimplementedHandler{} - // UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented. type UnimplementedHandler struct{} +var _ Handler = UnimplementedHandler{} + // ActionsAddRepoAccessToSelfHostedRunnerGroupInOrg implements actions/add-repo-access-to-self-hosted-runner-group-in-org operation. // // The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more diff --git a/examples/ex_gotd/oas_cfg_gen.go b/examples/ex_gotd/oas_cfg_gen.go index 43cd6eec1..d1c81762b 100644 --- a/examples/ex_gotd/oas_cfg_gen.go +++ b/examples/ex_gotd/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -15,6 +16,13 @@ import ( "github.com/ogen-go/ogen/otelogen" ) +var ( + // Allocate option closure once. + clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) + // Allocate option closure once. + serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) +) + // ErrorHandler is error handler. type ErrorHandler = ogenerrors.ErrorHandler @@ -56,6 +64,57 @@ func newConfig(opts ...Option) config { return cfg } +type baseServer struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (s baseServer) notFound(w http.ResponseWriter, r *http.Request) { + s.cfg.NotFound(w, r) +} + +func (s baseServer) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { + s.cfg.MethodNotAllowed(w, r, allowed) +} + +func (cfg config) baseServer() (s baseServer, err error) { + s = baseServer{cfg: cfg} + if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { + return s, err + } + if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { + return s, err + } + if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + return s, err + } + return s, nil +} + +type baseClient struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (cfg config) baseClient() (c baseClient, err error) { + c = baseClient{cfg: cfg} + if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { + return c, err + } + if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { + return c, err + } + if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + return c, err + } + return c, nil +} + +// Option is config option. type Option interface { apply(*config) } diff --git a/examples/ex_gotd/oas_client_gen.go b/examples/ex_gotd/oas_client_gen.go index 8d1efcda9..60b911a82 100644 --- a/examples/ex_gotd/oas_client_gen.go +++ b/examples/ex_gotd/oas_client_gen.go @@ -10,7 +10,6 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" - "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -27,16 +26,10 @@ var _ Handler = struct { *Client }{} -// Allocate option closure once. -var clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) - // Client implements OAS client. type Client struct { serverURL *url.URL - cfg config - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + baseClient } // NewClient initializes new Client defined by OAS. @@ -45,20 +38,14 @@ func NewClient(serverURL string, opts ...Option) (*Client, error) { if err != nil { return nil, err } - c := &Client{ - cfg: newConfig(opts...), - serverURL: u, - } - if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { - return nil, err - } - if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { - return nil, err - } - if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + c, err := newConfig(opts...).baseClient() + if err != nil { return nil, err } - return c, nil + return &Client{ + serverURL: u, + baseClient: c, + }, nil } type serverURLKey struct{} diff --git a/examples/ex_gotd/oas_handlers_gen.go b/examples/ex_gotd/oas_handlers_gen.go index 39450c705..84fc4fa56 100644 --- a/examples/ex_gotd/oas_handlers_gen.go +++ b/examples/ex_gotd/oas_handlers_gen.go @@ -18,9 +18,6 @@ import ( "github.com/ogen-go/ogen/otelogen" ) -// Allocate option closure once. -var serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) - // handleAddStickerToSetRequest handles addStickerToSet operation. // // POST /addStickerToSet diff --git a/examples/ex_gotd/oas_request_encoders_gen.go b/examples/ex_gotd/oas_request_encoders_gen.go index 5a4d75318..130fff0ee 100644 --- a/examples/ex_gotd/oas_request_encoders_gen.go +++ b/examples/ex_gotd/oas_request_encoders_gen.go @@ -24,6 +24,7 @@ func encodeAddStickerToSetRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeAnswerCallbackQueryRequest( req AnswerCallbackQuery, r *http.Request, @@ -37,6 +38,7 @@ func encodeAnswerCallbackQueryRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeAnswerInlineQueryRequest( req AnswerInlineQuery, r *http.Request, @@ -50,6 +52,7 @@ func encodeAnswerInlineQueryRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeAnswerPreCheckoutQueryRequest( req AnswerPreCheckoutQuery, r *http.Request, @@ -63,6 +66,7 @@ func encodeAnswerPreCheckoutQueryRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeAnswerShippingQueryRequest( req AnswerShippingQuery, r *http.Request, @@ -76,6 +80,7 @@ func encodeAnswerShippingQueryRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeAnswerWebAppQueryRequest( req AnswerWebAppQuery, r *http.Request, @@ -89,6 +94,7 @@ func encodeAnswerWebAppQueryRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeApproveChatJoinRequestRequest( req ApproveChatJoinRequest, r *http.Request, @@ -102,6 +108,7 @@ func encodeApproveChatJoinRequestRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeBanChatMemberRequest( req BanChatMember, r *http.Request, @@ -115,6 +122,7 @@ func encodeBanChatMemberRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeBanChatSenderChatRequest( req BanChatSenderChat, r *http.Request, @@ -128,6 +136,7 @@ func encodeBanChatSenderChatRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeCopyMessageRequest( req CopyMessage, r *http.Request, @@ -141,6 +150,7 @@ func encodeCopyMessageRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeCreateChatInviteLinkRequest( req CreateChatInviteLink, r *http.Request, @@ -154,6 +164,7 @@ func encodeCreateChatInviteLinkRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeCreateNewStickerSetRequest( req CreateNewStickerSet, r *http.Request, @@ -167,6 +178,7 @@ func encodeCreateNewStickerSetRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeDeclineChatJoinRequestRequest( req DeclineChatJoinRequest, r *http.Request, @@ -180,6 +192,7 @@ func encodeDeclineChatJoinRequestRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeDeleteChatPhotoRequest( req DeleteChatPhoto, r *http.Request, @@ -193,6 +206,7 @@ func encodeDeleteChatPhotoRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeDeleteChatStickerSetRequest( req DeleteChatStickerSet, r *http.Request, @@ -206,6 +220,7 @@ func encodeDeleteChatStickerSetRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeDeleteMessageRequest( req DeleteMessage, r *http.Request, @@ -219,6 +234,7 @@ func encodeDeleteMessageRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeDeleteMyCommandsRequest( req OptDeleteMyCommands, r *http.Request, @@ -238,6 +254,7 @@ func encodeDeleteMyCommandsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeDeleteStickerFromSetRequest( req DeleteStickerFromSet, r *http.Request, @@ -251,6 +268,7 @@ func encodeDeleteStickerFromSetRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeDeleteWebhookRequest( req OptDeleteWebhook, r *http.Request, @@ -270,6 +288,7 @@ func encodeDeleteWebhookRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeEditChatInviteLinkRequest( req EditChatInviteLink, r *http.Request, @@ -283,6 +302,7 @@ func encodeEditChatInviteLinkRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeEditMessageCaptionRequest( req EditMessageCaption, r *http.Request, @@ -296,6 +316,7 @@ func encodeEditMessageCaptionRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeEditMessageLiveLocationRequest( req EditMessageLiveLocation, r *http.Request, @@ -309,6 +330,7 @@ func encodeEditMessageLiveLocationRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeEditMessageMediaRequest( req EditMessageMedia, r *http.Request, @@ -322,6 +344,7 @@ func encodeEditMessageMediaRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeEditMessageReplyMarkupRequest( req EditMessageReplyMarkup, r *http.Request, @@ -335,6 +358,7 @@ func encodeEditMessageReplyMarkupRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeEditMessageTextRequest( req EditMessageText, r *http.Request, @@ -348,6 +372,7 @@ func encodeEditMessageTextRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeExportChatInviteLinkRequest( req ExportChatInviteLink, r *http.Request, @@ -361,6 +386,7 @@ func encodeExportChatInviteLinkRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeForwardMessageRequest( req ForwardMessage, r *http.Request, @@ -374,6 +400,7 @@ func encodeForwardMessageRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeGetChatRequest( req GetChat, r *http.Request, @@ -387,6 +414,7 @@ func encodeGetChatRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeGetChatAdministratorsRequest( req GetChatAdministrators, r *http.Request, @@ -400,6 +428,7 @@ func encodeGetChatAdministratorsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeGetChatMemberRequest( req GetChatMember, r *http.Request, @@ -413,6 +442,7 @@ func encodeGetChatMemberRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeGetChatMemberCountRequest( req GetChatMemberCount, r *http.Request, @@ -426,6 +456,7 @@ func encodeGetChatMemberCountRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeGetChatMenuButtonRequest( req OptGetChatMenuButton, r *http.Request, @@ -445,6 +476,7 @@ func encodeGetChatMenuButtonRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeGetFileRequest( req GetFile, r *http.Request, @@ -458,6 +490,7 @@ func encodeGetFileRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeGetGameHighScoresRequest( req GetGameHighScores, r *http.Request, @@ -471,6 +504,7 @@ func encodeGetGameHighScoresRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeGetMyCommandsRequest( req OptGetMyCommands, r *http.Request, @@ -490,6 +524,7 @@ func encodeGetMyCommandsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeGetMyDefaultAdministratorRightsRequest( req OptGetMyDefaultAdministratorRights, r *http.Request, @@ -509,6 +544,7 @@ func encodeGetMyDefaultAdministratorRightsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeGetStickerSetRequest( req GetStickerSet, r *http.Request, @@ -522,6 +558,7 @@ func encodeGetStickerSetRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeGetUpdatesRequest( req OptGetUpdates, r *http.Request, @@ -541,6 +578,7 @@ func encodeGetUpdatesRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeGetUserProfilePhotosRequest( req GetUserProfilePhotos, r *http.Request, @@ -554,6 +592,7 @@ func encodeGetUserProfilePhotosRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeLeaveChatRequest( req LeaveChat, r *http.Request, @@ -567,6 +606,7 @@ func encodeLeaveChatRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePinChatMessageRequest( req PinChatMessage, r *http.Request, @@ -580,6 +620,7 @@ func encodePinChatMessageRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePromoteChatMemberRequest( req PromoteChatMember, r *http.Request, @@ -593,6 +634,7 @@ func encodePromoteChatMemberRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeRestrictChatMemberRequest( req RestrictChatMember, r *http.Request, @@ -606,6 +648,7 @@ func encodeRestrictChatMemberRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeRevokeChatInviteLinkRequest( req RevokeChatInviteLink, r *http.Request, @@ -619,6 +662,7 @@ func encodeRevokeChatInviteLinkRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendAnimationRequest( req SendAnimation, r *http.Request, @@ -632,6 +676,7 @@ func encodeSendAnimationRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendAudioRequest( req SendAudio, r *http.Request, @@ -645,6 +690,7 @@ func encodeSendAudioRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendChatActionRequest( req SendChatAction, r *http.Request, @@ -658,6 +704,7 @@ func encodeSendChatActionRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendContactRequest( req SendContact, r *http.Request, @@ -671,6 +718,7 @@ func encodeSendContactRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendDiceRequest( req SendDice, r *http.Request, @@ -684,6 +732,7 @@ func encodeSendDiceRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendDocumentRequest( req SendDocument, r *http.Request, @@ -697,6 +746,7 @@ func encodeSendDocumentRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendGameRequest( req SendGame, r *http.Request, @@ -710,6 +760,7 @@ func encodeSendGameRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendInvoiceRequest( req SendInvoice, r *http.Request, @@ -723,6 +774,7 @@ func encodeSendInvoiceRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendLocationRequest( req SendLocation, r *http.Request, @@ -736,6 +788,7 @@ func encodeSendLocationRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendMediaGroupRequest( req SendMediaGroup, r *http.Request, @@ -749,6 +802,7 @@ func encodeSendMediaGroupRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendMessageRequest( req SendMessage, r *http.Request, @@ -762,6 +816,7 @@ func encodeSendMessageRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendPhotoRequest( req SendPhoto, r *http.Request, @@ -775,6 +830,7 @@ func encodeSendPhotoRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendPollRequest( req SendPoll, r *http.Request, @@ -788,6 +844,7 @@ func encodeSendPollRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendStickerRequest( req SendSticker, r *http.Request, @@ -801,6 +858,7 @@ func encodeSendStickerRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendVenueRequest( req SendVenue, r *http.Request, @@ -814,6 +872,7 @@ func encodeSendVenueRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendVideoRequest( req SendVideo, r *http.Request, @@ -827,6 +886,7 @@ func encodeSendVideoRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendVideoNoteRequest( req SendVideoNote, r *http.Request, @@ -840,6 +900,7 @@ func encodeSendVideoNoteRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendVoiceRequest( req SendVoice, r *http.Request, @@ -853,6 +914,7 @@ func encodeSendVoiceRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSetChatAdministratorCustomTitleRequest( req SetChatAdministratorCustomTitle, r *http.Request, @@ -866,6 +928,7 @@ func encodeSetChatAdministratorCustomTitleRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSetChatDescriptionRequest( req SetChatDescription, r *http.Request, @@ -879,6 +942,7 @@ func encodeSetChatDescriptionRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSetChatMenuButtonRequest( req OptSetChatMenuButton, r *http.Request, @@ -898,6 +962,7 @@ func encodeSetChatMenuButtonRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSetChatPermissionsRequest( req SetChatPermissions, r *http.Request, @@ -911,6 +976,7 @@ func encodeSetChatPermissionsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSetChatPhotoRequest( req SetChatPhoto, r *http.Request, @@ -924,6 +990,7 @@ func encodeSetChatPhotoRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSetChatStickerSetRequest( req SetChatStickerSet, r *http.Request, @@ -937,6 +1004,7 @@ func encodeSetChatStickerSetRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSetChatTitleRequest( req SetChatTitle, r *http.Request, @@ -950,6 +1018,7 @@ func encodeSetChatTitleRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSetGameScoreRequest( req SetGameScore, r *http.Request, @@ -963,6 +1032,7 @@ func encodeSetGameScoreRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSetMyCommandsRequest( req SetMyCommands, r *http.Request, @@ -976,6 +1046,7 @@ func encodeSetMyCommandsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSetMyDefaultAdministratorRightsRequest( req OptSetMyDefaultAdministratorRights, r *http.Request, @@ -995,6 +1066,7 @@ func encodeSetMyDefaultAdministratorRightsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSetPassportDataErrorsRequest( req SetPassportDataErrors, r *http.Request, @@ -1008,6 +1080,7 @@ func encodeSetPassportDataErrorsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSetStickerPositionInSetRequest( req SetStickerPositionInSet, r *http.Request, @@ -1021,6 +1094,7 @@ func encodeSetStickerPositionInSetRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSetStickerSetThumbRequest( req SetStickerSetThumb, r *http.Request, @@ -1034,6 +1108,7 @@ func encodeSetStickerSetThumbRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSetWebhookRequest( req SetWebhook, r *http.Request, @@ -1047,6 +1122,7 @@ func encodeSetWebhookRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeStopMessageLiveLocationRequest( req StopMessageLiveLocation, r *http.Request, @@ -1060,6 +1136,7 @@ func encodeStopMessageLiveLocationRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeStopPollRequest( req StopPoll, r *http.Request, @@ -1073,6 +1150,7 @@ func encodeStopPollRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeUnbanChatMemberRequest( req UnbanChatMember, r *http.Request, @@ -1086,6 +1164,7 @@ func encodeUnbanChatMemberRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeUnbanChatSenderChatRequest( req UnbanChatSenderChat, r *http.Request, @@ -1099,6 +1178,7 @@ func encodeUnbanChatSenderChatRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeUnpinAllChatMessagesRequest( req UnpinAllChatMessages, r *http.Request, @@ -1112,6 +1192,7 @@ func encodeUnpinAllChatMessagesRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeUnpinChatMessageRequest( req UnpinChatMessage, r *http.Request, @@ -1125,6 +1206,7 @@ func encodeUnpinChatMessageRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeUploadStickerFileRequest( req UploadStickerFile, r *http.Request, diff --git a/examples/ex_gotd/oas_response_encoders_gen.go b/examples/ex_gotd/oas_response_encoders_gen.go index 9a31d432b..1b6bf0da0 100644 --- a/examples/ex_gotd/oas_response_encoders_gen.go +++ b/examples/ex_gotd/oas_response_encoders_gen.go @@ -24,6 +24,7 @@ func encodeAddStickerToSetResponse(response Result, w http.ResponseWriter, span return nil } + func encodeAnswerCallbackQueryResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -37,6 +38,7 @@ func encodeAnswerCallbackQueryResponse(response Result, w http.ResponseWriter, s return nil } + func encodeAnswerInlineQueryResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -50,6 +52,7 @@ func encodeAnswerInlineQueryResponse(response Result, w http.ResponseWriter, spa return nil } + func encodeAnswerPreCheckoutQueryResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -63,6 +66,7 @@ func encodeAnswerPreCheckoutQueryResponse(response Result, w http.ResponseWriter return nil } + func encodeAnswerShippingQueryResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -76,6 +80,7 @@ func encodeAnswerShippingQueryResponse(response Result, w http.ResponseWriter, s return nil } + func encodeAnswerWebAppQueryResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -89,6 +94,7 @@ func encodeAnswerWebAppQueryResponse(response Result, w http.ResponseWriter, spa return nil } + func encodeApproveChatJoinRequestResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -102,6 +108,7 @@ func encodeApproveChatJoinRequestResponse(response Result, w http.ResponseWriter return nil } + func encodeBanChatMemberResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -115,6 +122,7 @@ func encodeBanChatMemberResponse(response Result, w http.ResponseWriter, span tr return nil } + func encodeBanChatSenderChatResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -128,6 +136,7 @@ func encodeBanChatSenderChatResponse(response Result, w http.ResponseWriter, spa return nil } + func encodeCloseResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -141,6 +150,7 @@ func encodeCloseResponse(response Result, w http.ResponseWriter, span trace.Span return nil } + func encodeCopyMessageResponse(response ResultMessageId, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -154,6 +164,7 @@ func encodeCopyMessageResponse(response ResultMessageId, w http.ResponseWriter, return nil } + func encodeCreateChatInviteLinkResponse(response ResultChatInviteLink, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -167,6 +178,7 @@ func encodeCreateChatInviteLinkResponse(response ResultChatInviteLink, w http.Re return nil } + func encodeCreateNewStickerSetResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -180,6 +192,7 @@ func encodeCreateNewStickerSetResponse(response Result, w http.ResponseWriter, s return nil } + func encodeDeclineChatJoinRequestResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -193,6 +206,7 @@ func encodeDeclineChatJoinRequestResponse(response Result, w http.ResponseWriter return nil } + func encodeDeleteChatPhotoResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -206,6 +220,7 @@ func encodeDeleteChatPhotoResponse(response Result, w http.ResponseWriter, span return nil } + func encodeDeleteChatStickerSetResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -219,6 +234,7 @@ func encodeDeleteChatStickerSetResponse(response Result, w http.ResponseWriter, return nil } + func encodeDeleteMessageResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -232,6 +248,7 @@ func encodeDeleteMessageResponse(response Result, w http.ResponseWriter, span tr return nil } + func encodeDeleteMyCommandsResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -245,6 +262,7 @@ func encodeDeleteMyCommandsResponse(response Result, w http.ResponseWriter, span return nil } + func encodeDeleteStickerFromSetResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -258,6 +276,7 @@ func encodeDeleteStickerFromSetResponse(response Result, w http.ResponseWriter, return nil } + func encodeDeleteWebhookResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -271,6 +290,7 @@ func encodeDeleteWebhookResponse(response Result, w http.ResponseWriter, span tr return nil } + func encodeEditChatInviteLinkResponse(response ResultChatInviteLink, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -284,6 +304,7 @@ func encodeEditChatInviteLinkResponse(response ResultChatInviteLink, w http.Resp return nil } + func encodeEditMessageCaptionResponse(response ResultMessageOrBoolean, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -297,6 +318,7 @@ func encodeEditMessageCaptionResponse(response ResultMessageOrBoolean, w http.Re return nil } + func encodeEditMessageLiveLocationResponse(response ResultMessageOrBoolean, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -310,6 +332,7 @@ func encodeEditMessageLiveLocationResponse(response ResultMessageOrBoolean, w ht return nil } + func encodeEditMessageMediaResponse(response ResultMessageOrBoolean, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -323,6 +346,7 @@ func encodeEditMessageMediaResponse(response ResultMessageOrBoolean, w http.Resp return nil } + func encodeEditMessageReplyMarkupResponse(response ResultMessageOrBoolean, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -336,6 +360,7 @@ func encodeEditMessageReplyMarkupResponse(response ResultMessageOrBoolean, w htt return nil } + func encodeEditMessageTextResponse(response ResultMessageOrBoolean, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -349,6 +374,7 @@ func encodeEditMessageTextResponse(response ResultMessageOrBoolean, w http.Respo return nil } + func encodeExportChatInviteLinkResponse(response ResultString, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -362,6 +388,7 @@ func encodeExportChatInviteLinkResponse(response ResultString, w http.ResponseWr return nil } + func encodeForwardMessageResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -375,6 +402,7 @@ func encodeForwardMessageResponse(response ResultMessage, w http.ResponseWriter, return nil } + func encodeGetChatResponse(response ResultChat, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -388,6 +416,7 @@ func encodeGetChatResponse(response ResultChat, w http.ResponseWriter, span trac return nil } + func encodeGetChatAdministratorsResponse(response ResultArrayOfChatMember, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -401,6 +430,7 @@ func encodeGetChatAdministratorsResponse(response ResultArrayOfChatMember, w htt return nil } + func encodeGetChatMemberResponse(response ResultChatMember, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -414,6 +444,7 @@ func encodeGetChatMemberResponse(response ResultChatMember, w http.ResponseWrite return nil } + func encodeGetChatMemberCountResponse(response ResultInt, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -427,6 +458,7 @@ func encodeGetChatMemberCountResponse(response ResultInt, w http.ResponseWriter, return nil } + func encodeGetChatMenuButtonResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -440,6 +472,7 @@ func encodeGetChatMenuButtonResponse(response Result, w http.ResponseWriter, spa return nil } + func encodeGetFileResponse(response ResultFile, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -453,6 +486,7 @@ func encodeGetFileResponse(response ResultFile, w http.ResponseWriter, span trac return nil } + func encodeGetGameHighScoresResponse(response ResultArrayOfGameHighScore, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -466,6 +500,7 @@ func encodeGetGameHighScoresResponse(response ResultArrayOfGameHighScore, w http return nil } + func encodeGetMeResponse(response ResultUser, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -479,6 +514,7 @@ func encodeGetMeResponse(response ResultUser, w http.ResponseWriter, span trace. return nil } + func encodeGetMyCommandsResponse(response ResultArrayOfBotCommand, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -492,6 +528,7 @@ func encodeGetMyCommandsResponse(response ResultArrayOfBotCommand, w http.Respon return nil } + func encodeGetMyDefaultAdministratorRightsResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -505,6 +542,7 @@ func encodeGetMyDefaultAdministratorRightsResponse(response Result, w http.Respo return nil } + func encodeGetStickerSetResponse(response ResultStickerSet, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -518,6 +556,7 @@ func encodeGetStickerSetResponse(response ResultStickerSet, w http.ResponseWrite return nil } + func encodeGetUpdatesResponse(response ResultArrayOfUpdate, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -531,6 +570,7 @@ func encodeGetUpdatesResponse(response ResultArrayOfUpdate, w http.ResponseWrite return nil } + func encodeGetUserProfilePhotosResponse(response ResultUserProfilePhotos, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -544,6 +584,7 @@ func encodeGetUserProfilePhotosResponse(response ResultUserProfilePhotos, w http return nil } + func encodeGetWebhookInfoResponse(response ResultWebhookInfo, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -557,6 +598,7 @@ func encodeGetWebhookInfoResponse(response ResultWebhookInfo, w http.ResponseWri return nil } + func encodeLeaveChatResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -570,6 +612,7 @@ func encodeLeaveChatResponse(response Result, w http.ResponseWriter, span trace. return nil } + func encodeLogOutResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -583,6 +626,7 @@ func encodeLogOutResponse(response Result, w http.ResponseWriter, span trace.Spa return nil } + func encodePinChatMessageResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -596,6 +640,7 @@ func encodePinChatMessageResponse(response Result, w http.ResponseWriter, span t return nil } + func encodePromoteChatMemberResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -609,6 +654,7 @@ func encodePromoteChatMemberResponse(response Result, w http.ResponseWriter, spa return nil } + func encodeRestrictChatMemberResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -622,6 +668,7 @@ func encodeRestrictChatMemberResponse(response Result, w http.ResponseWriter, sp return nil } + func encodeRevokeChatInviteLinkResponse(response ResultChatInviteLink, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -635,6 +682,7 @@ func encodeRevokeChatInviteLinkResponse(response ResultChatInviteLink, w http.Re return nil } + func encodeSendAnimationResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -648,6 +696,7 @@ func encodeSendAnimationResponse(response ResultMessage, w http.ResponseWriter, return nil } + func encodeSendAudioResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -661,6 +710,7 @@ func encodeSendAudioResponse(response ResultMessage, w http.ResponseWriter, span return nil } + func encodeSendChatActionResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -674,6 +724,7 @@ func encodeSendChatActionResponse(response Result, w http.ResponseWriter, span t return nil } + func encodeSendContactResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -687,6 +738,7 @@ func encodeSendContactResponse(response ResultMessage, w http.ResponseWriter, sp return nil } + func encodeSendDiceResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -700,6 +752,7 @@ func encodeSendDiceResponse(response ResultMessage, w http.ResponseWriter, span return nil } + func encodeSendDocumentResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -713,6 +766,7 @@ func encodeSendDocumentResponse(response ResultMessage, w http.ResponseWriter, s return nil } + func encodeSendGameResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -726,6 +780,7 @@ func encodeSendGameResponse(response ResultMessage, w http.ResponseWriter, span return nil } + func encodeSendInvoiceResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -739,6 +794,7 @@ func encodeSendInvoiceResponse(response ResultMessage, w http.ResponseWriter, sp return nil } + func encodeSendLocationResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -752,6 +808,7 @@ func encodeSendLocationResponse(response ResultMessage, w http.ResponseWriter, s return nil } + func encodeSendMediaGroupResponse(response ResultArrayOfMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -765,6 +822,7 @@ func encodeSendMediaGroupResponse(response ResultArrayOfMessage, w http.Response return nil } + func encodeSendMessageResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -778,6 +836,7 @@ func encodeSendMessageResponse(response ResultMessage, w http.ResponseWriter, sp return nil } + func encodeSendPhotoResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -791,6 +850,7 @@ func encodeSendPhotoResponse(response ResultMessage, w http.ResponseWriter, span return nil } + func encodeSendPollResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -804,6 +864,7 @@ func encodeSendPollResponse(response ResultMessage, w http.ResponseWriter, span return nil } + func encodeSendStickerResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -817,6 +878,7 @@ func encodeSendStickerResponse(response ResultMessage, w http.ResponseWriter, sp return nil } + func encodeSendVenueResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -830,6 +892,7 @@ func encodeSendVenueResponse(response ResultMessage, w http.ResponseWriter, span return nil } + func encodeSendVideoResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -843,6 +906,7 @@ func encodeSendVideoResponse(response ResultMessage, w http.ResponseWriter, span return nil } + func encodeSendVideoNoteResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -856,6 +920,7 @@ func encodeSendVideoNoteResponse(response ResultMessage, w http.ResponseWriter, return nil } + func encodeSendVoiceResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -869,6 +934,7 @@ func encodeSendVoiceResponse(response ResultMessage, w http.ResponseWriter, span return nil } + func encodeSetChatAdministratorCustomTitleResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -882,6 +948,7 @@ func encodeSetChatAdministratorCustomTitleResponse(response Result, w http.Respo return nil } + func encodeSetChatDescriptionResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -895,6 +962,7 @@ func encodeSetChatDescriptionResponse(response Result, w http.ResponseWriter, sp return nil } + func encodeSetChatMenuButtonResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -908,6 +976,7 @@ func encodeSetChatMenuButtonResponse(response Result, w http.ResponseWriter, spa return nil } + func encodeSetChatPermissionsResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -921,6 +990,7 @@ func encodeSetChatPermissionsResponse(response Result, w http.ResponseWriter, sp return nil } + func encodeSetChatPhotoResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -934,6 +1004,7 @@ func encodeSetChatPhotoResponse(response Result, w http.ResponseWriter, span tra return nil } + func encodeSetChatStickerSetResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -947,6 +1018,7 @@ func encodeSetChatStickerSetResponse(response Result, w http.ResponseWriter, spa return nil } + func encodeSetChatTitleResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -960,6 +1032,7 @@ func encodeSetChatTitleResponse(response Result, w http.ResponseWriter, span tra return nil } + func encodeSetGameScoreResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -973,6 +1046,7 @@ func encodeSetGameScoreResponse(response Result, w http.ResponseWriter, span tra return nil } + func encodeSetMyCommandsResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -986,6 +1060,7 @@ func encodeSetMyCommandsResponse(response Result, w http.ResponseWriter, span tr return nil } + func encodeSetMyDefaultAdministratorRightsResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -999,6 +1074,7 @@ func encodeSetMyDefaultAdministratorRightsResponse(response Result, w http.Respo return nil } + func encodeSetPassportDataErrorsResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1012,6 +1088,7 @@ func encodeSetPassportDataErrorsResponse(response Result, w http.ResponseWriter, return nil } + func encodeSetStickerPositionInSetResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1025,6 +1102,7 @@ func encodeSetStickerPositionInSetResponse(response Result, w http.ResponseWrite return nil } + func encodeSetStickerSetThumbResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1038,6 +1116,7 @@ func encodeSetStickerSetThumbResponse(response Result, w http.ResponseWriter, sp return nil } + func encodeSetWebhookResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1051,6 +1130,7 @@ func encodeSetWebhookResponse(response Result, w http.ResponseWriter, span trace return nil } + func encodeStopMessageLiveLocationResponse(response ResultMessageOrBoolean, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1064,6 +1144,7 @@ func encodeStopMessageLiveLocationResponse(response ResultMessageOrBoolean, w ht return nil } + func encodeStopPollResponse(response ResultPoll, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1077,6 +1158,7 @@ func encodeStopPollResponse(response ResultPoll, w http.ResponseWriter, span tra return nil } + func encodeUnbanChatMemberResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1090,6 +1172,7 @@ func encodeUnbanChatMemberResponse(response Result, w http.ResponseWriter, span return nil } + func encodeUnbanChatSenderChatResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1103,6 +1186,7 @@ func encodeUnbanChatSenderChatResponse(response Result, w http.ResponseWriter, s return nil } + func encodeUnpinAllChatMessagesResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1116,6 +1200,7 @@ func encodeUnpinAllChatMessagesResponse(response Result, w http.ResponseWriter, return nil } + func encodeUnpinChatMessageResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1129,6 +1214,7 @@ func encodeUnpinChatMessageResponse(response Result, w http.ResponseWriter, span return nil } + func encodeUploadStickerFileResponse(response ResultFile, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1142,6 +1228,7 @@ func encodeUploadStickerFileResponse(response ResultFile, w http.ResponseWriter, return nil } + func encodeErrorResponse(response ErrorStatusCode, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") code := response.StatusCode diff --git a/examples/ex_gotd/oas_router_gen.go b/examples/ex_gotd/oas_router_gen.go index cbb68f3e8..5b731c5f8 100644 --- a/examples/ex_gotd/oas_router_gen.go +++ b/examples/ex_gotd/oas_router_gen.go @@ -7,14 +7,6 @@ import ( "strings" ) -func (s *Server) notFound(w http.ResponseWriter, r *http.Request) { - s.cfg.NotFound(w, r) -} - -func (s *Server) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { - s.cfg.MethodNotAllowed(w, r, allowed) -} - // ServeHTTP serves http request as defined by OpenAPI v3 specification, // calling handler that matches the path or returning not found error. func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { diff --git a/examples/ex_gotd/oas_server_gen.go b/examples/ex_gotd/oas_server_gen.go index a20110996..2612e564f 100644 --- a/examples/ex_gotd/oas_server_gen.go +++ b/examples/ex_gotd/oas_server_gen.go @@ -4,10 +4,6 @@ package api import ( "context" - - "go.opentelemetry.io/otel/metric/instrument/syncint64" - - "github.com/ogen-go/ogen/otelogen" ) // Handler handles operations described by OpenAPI v3 specification. @@ -369,29 +365,18 @@ type Handler interface { // Server implements http server based on OpenAPI v3 specification and // calls Handler to handle requests. type Server struct { - h Handler - cfg config - - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + h Handler + baseServer } // NewServer creates new Server. func NewServer(h Handler, opts ...Option) (*Server, error) { - s := &Server{ - h: h, - cfg: newConfig(opts...), - } - var err error - if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { - return nil, err - } - if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { - return nil, err - } - if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + s, err := newConfig(opts...).baseServer() + if err != nil { return nil, err } - return s, nil + return &Server{ + h: h, + baseServer: s, + }, nil } diff --git a/examples/ex_gotd/oas_unimplemented_gen.go b/examples/ex_gotd/oas_unimplemented_gen.go index b7f61c83f..89b193eb7 100644 --- a/examples/ex_gotd/oas_unimplemented_gen.go +++ b/examples/ex_gotd/oas_unimplemented_gen.go @@ -8,11 +8,11 @@ import ( ht "github.com/ogen-go/ogen/http" ) -var _ Handler = UnimplementedHandler{} - // UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented. type UnimplementedHandler struct{} +var _ Handler = UnimplementedHandler{} + // AddStickerToSet implements addStickerToSet operation. // // POST /addStickerToSet diff --git a/examples/ex_k8s/oas_cfg_gen.go b/examples/ex_k8s/oas_cfg_gen.go index 3debdeffb..5dce5d170 100644 --- a/examples/ex_k8s/oas_cfg_gen.go +++ b/examples/ex_k8s/oas_cfg_gen.go @@ -8,6 +8,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -19,6 +20,12 @@ import ( var regexMap = map[string]*regexp.Regexp{ "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$": regexp.MustCompile("^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"), } +var ( + // Allocate option closure once. + clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) + // Allocate option closure once. + serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) +) // ErrorHandler is error handler. type ErrorHandler = ogenerrors.ErrorHandler @@ -61,6 +68,57 @@ func newConfig(opts ...Option) config { return cfg } +type baseServer struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (s baseServer) notFound(w http.ResponseWriter, r *http.Request) { + s.cfg.NotFound(w, r) +} + +func (s baseServer) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { + s.cfg.MethodNotAllowed(w, r, allowed) +} + +func (cfg config) baseServer() (s baseServer, err error) { + s = baseServer{cfg: cfg} + if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { + return s, err + } + if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { + return s, err + } + if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + return s, err + } + return s, nil +} + +type baseClient struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (cfg config) baseClient() (c baseClient, err error) { + c = baseClient{cfg: cfg} + if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { + return c, err + } + if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { + return c, err + } + if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + return c, err + } + return c, nil +} + +// Option is config option. type Option interface { apply(*config) } diff --git a/examples/ex_k8s/oas_client_gen.go b/examples/ex_k8s/oas_client_gen.go index d0de49e9a..f63db957c 100644 --- a/examples/ex_k8s/oas_client_gen.go +++ b/examples/ex_k8s/oas_client_gen.go @@ -10,7 +10,6 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" - "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/conv" @@ -23,17 +22,11 @@ var _ Handler = struct { *Client }{} -// Allocate option closure once. -var clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) - // Client implements OAS client. type Client struct { serverURL *url.URL sec SecuritySource - cfg config - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + baseClient } // NewClient initializes new Client defined by OAS. @@ -42,21 +35,15 @@ func NewClient(serverURL string, sec SecuritySource, opts ...Option) (*Client, e if err != nil { return nil, err } - c := &Client{ - cfg: newConfig(opts...), - sec: sec, - serverURL: u, - } - if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { - return nil, err - } - if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { - return nil, err - } - if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + c, err := newConfig(opts...).baseClient() + if err != nil { return nil, err } - return c, nil + return &Client{ + serverURL: u, + sec: sec, + baseClient: c, + }, nil } type serverURLKey struct{} diff --git a/examples/ex_k8s/oas_handlers_gen.go b/examples/ex_k8s/oas_handlers_gen.go index d48b98369..0f0e9115f 100644 --- a/examples/ex_k8s/oas_handlers_gen.go +++ b/examples/ex_k8s/oas_handlers_gen.go @@ -16,11 +16,10 @@ import ( "github.com/ogen-go/ogen/otelogen" ) -// Allocate option closure once. -var serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) - // handleGetAPIVersionsRequest handles getAPIVersions operation. // +// Get available API versions. +// // GET /apis/ func (s *Server) handleGetAPIVersionsRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -116,6 +115,8 @@ func (s *Server) handleGetAPIVersionsRequest(args [0]string, w http.ResponseWrit // handleGetAdmissionregistrationAPIGroupRequest handles getAdmissionregistrationAPIGroup operation. // +// Get information of a group. +// // GET /apis/admissionregistration.k8s.io/ func (s *Server) handleGetAdmissionregistrationAPIGroupRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -211,6 +212,8 @@ func (s *Server) handleGetAdmissionregistrationAPIGroupRequest(args [0]string, w // handleGetAdmissionregistrationV1APIResourcesRequest handles getAdmissionregistrationV1APIResources operation. // +// Get available resources. +// // GET /apis/admissionregistration.k8s.io/v1/ func (s *Server) handleGetAdmissionregistrationV1APIResourcesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -306,6 +309,8 @@ func (s *Server) handleGetAdmissionregistrationV1APIResourcesRequest(args [0]str // handleGetApiextensionsAPIGroupRequest handles getApiextensionsAPIGroup operation. // +// Get information of a group. +// // GET /apis/apiextensions.k8s.io/ func (s *Server) handleGetApiextensionsAPIGroupRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -401,6 +406,8 @@ func (s *Server) handleGetApiextensionsAPIGroupRequest(args [0]string, w http.Re // handleGetApiextensionsV1APIResourcesRequest handles getApiextensionsV1APIResources operation. // +// Get available resources. +// // GET /apis/apiextensions.k8s.io/v1/ func (s *Server) handleGetApiextensionsV1APIResourcesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -496,6 +503,8 @@ func (s *Server) handleGetApiextensionsV1APIResourcesRequest(args [0]string, w h // handleGetApiregistrationAPIGroupRequest handles getApiregistrationAPIGroup operation. // +// Get information of a group. +// // GET /apis/apiregistration.k8s.io/ func (s *Server) handleGetApiregistrationAPIGroupRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -591,6 +600,8 @@ func (s *Server) handleGetApiregistrationAPIGroupRequest(args [0]string, w http. // handleGetApiregistrationV1APIResourcesRequest handles getApiregistrationV1APIResources operation. // +// Get available resources. +// // GET /apis/apiregistration.k8s.io/v1/ func (s *Server) handleGetApiregistrationV1APIResourcesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -686,6 +697,8 @@ func (s *Server) handleGetApiregistrationV1APIResourcesRequest(args [0]string, w // handleGetAppsAPIGroupRequest handles getAppsAPIGroup operation. // +// Get information of a group. +// // GET /apis/apps/ func (s *Server) handleGetAppsAPIGroupRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -781,6 +794,8 @@ func (s *Server) handleGetAppsAPIGroupRequest(args [0]string, w http.ResponseWri // handleGetAppsV1APIResourcesRequest handles getAppsV1APIResources operation. // +// Get available resources. +// // GET /apis/apps/v1/ func (s *Server) handleGetAppsV1APIResourcesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -876,6 +891,8 @@ func (s *Server) handleGetAppsV1APIResourcesRequest(args [0]string, w http.Respo // handleGetAuthenticationAPIGroupRequest handles getAuthenticationAPIGroup operation. // +// Get information of a group. +// // GET /apis/authentication.k8s.io/ func (s *Server) handleGetAuthenticationAPIGroupRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -971,6 +988,8 @@ func (s *Server) handleGetAuthenticationAPIGroupRequest(args [0]string, w http.R // handleGetAuthenticationV1APIResourcesRequest handles getAuthenticationV1APIResources operation. // +// Get available resources. +// // GET /apis/authentication.k8s.io/v1/ func (s *Server) handleGetAuthenticationV1APIResourcesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1066,6 +1085,8 @@ func (s *Server) handleGetAuthenticationV1APIResourcesRequest(args [0]string, w // handleGetAuthorizationAPIGroupRequest handles getAuthorizationAPIGroup operation. // +// Get information of a group. +// // GET /apis/authorization.k8s.io/ func (s *Server) handleGetAuthorizationAPIGroupRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1161,6 +1182,8 @@ func (s *Server) handleGetAuthorizationAPIGroupRequest(args [0]string, w http.Re // handleGetAuthorizationV1APIResourcesRequest handles getAuthorizationV1APIResources operation. // +// Get available resources. +// // GET /apis/authorization.k8s.io/v1/ func (s *Server) handleGetAuthorizationV1APIResourcesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1256,6 +1279,8 @@ func (s *Server) handleGetAuthorizationV1APIResourcesRequest(args [0]string, w h // handleGetAutoscalingAPIGroupRequest handles getAutoscalingAPIGroup operation. // +// Get information of a group. +// // GET /apis/autoscaling/ func (s *Server) handleGetAutoscalingAPIGroupRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1351,6 +1376,8 @@ func (s *Server) handleGetAutoscalingAPIGroupRequest(args [0]string, w http.Resp // handleGetAutoscalingV1APIResourcesRequest handles getAutoscalingV1APIResources operation. // +// Get available resources. +// // GET /apis/autoscaling/v1/ func (s *Server) handleGetAutoscalingV1APIResourcesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1446,6 +1473,8 @@ func (s *Server) handleGetAutoscalingV1APIResourcesRequest(args [0]string, w htt // handleGetAutoscalingV2beta1APIResourcesRequest handles getAutoscalingV2beta1APIResources operation. // +// Get available resources. +// // GET /apis/autoscaling/v2beta1/ func (s *Server) handleGetAutoscalingV2beta1APIResourcesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1541,6 +1570,8 @@ func (s *Server) handleGetAutoscalingV2beta1APIResourcesRequest(args [0]string, // handleGetAutoscalingV2beta2APIResourcesRequest handles getAutoscalingV2beta2APIResources operation. // +// Get available resources. +// // GET /apis/autoscaling/v2beta2/ func (s *Server) handleGetAutoscalingV2beta2APIResourcesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1636,6 +1667,8 @@ func (s *Server) handleGetAutoscalingV2beta2APIResourcesRequest(args [0]string, // handleGetBatchAPIGroupRequest handles getBatchAPIGroup operation. // +// Get information of a group. +// // GET /apis/batch/ func (s *Server) handleGetBatchAPIGroupRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1731,6 +1764,8 @@ func (s *Server) handleGetBatchAPIGroupRequest(args [0]string, w http.ResponseWr // handleGetBatchV1APIResourcesRequest handles getBatchV1APIResources operation. // +// Get available resources. +// // GET /apis/batch/v1/ func (s *Server) handleGetBatchV1APIResourcesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1826,6 +1861,8 @@ func (s *Server) handleGetBatchV1APIResourcesRequest(args [0]string, w http.Resp // handleGetBatchV1beta1APIResourcesRequest handles getBatchV1beta1APIResources operation. // +// Get available resources. +// // GET /apis/batch/v1beta1/ func (s *Server) handleGetBatchV1beta1APIResourcesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1921,6 +1958,8 @@ func (s *Server) handleGetBatchV1beta1APIResourcesRequest(args [0]string, w http // handleGetCertificatesAPIGroupRequest handles getCertificatesAPIGroup operation. // +// Get information of a group. +// // GET /apis/certificates.k8s.io/ func (s *Server) handleGetCertificatesAPIGroupRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -2016,6 +2055,8 @@ func (s *Server) handleGetCertificatesAPIGroupRequest(args [0]string, w http.Res // handleGetCertificatesV1APIResourcesRequest handles getCertificatesV1APIResources operation. // +// Get available resources. +// // GET /apis/certificates.k8s.io/v1/ func (s *Server) handleGetCertificatesV1APIResourcesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -2111,6 +2152,8 @@ func (s *Server) handleGetCertificatesV1APIResourcesRequest(args [0]string, w ht // handleGetCodeVersionRequest handles getCodeVersion operation. // +// Get the code version. +// // GET /version/ func (s *Server) handleGetCodeVersionRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -2206,6 +2249,8 @@ func (s *Server) handleGetCodeVersionRequest(args [0]string, w http.ResponseWrit // handleGetCoordinationAPIGroupRequest handles getCoordinationAPIGroup operation. // +// Get information of a group. +// // GET /apis/coordination.k8s.io/ func (s *Server) handleGetCoordinationAPIGroupRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -2301,6 +2346,8 @@ func (s *Server) handleGetCoordinationAPIGroupRequest(args [0]string, w http.Res // handleGetCoordinationV1APIResourcesRequest handles getCoordinationV1APIResources operation. // +// Get available resources. +// // GET /apis/coordination.k8s.io/v1/ func (s *Server) handleGetCoordinationV1APIResourcesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -2396,6 +2443,8 @@ func (s *Server) handleGetCoordinationV1APIResourcesRequest(args [0]string, w ht // handleGetCoreAPIVersionsRequest handles getCoreAPIVersions operation. // +// Get available API versions. +// // GET /api/ func (s *Server) handleGetCoreAPIVersionsRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -2491,6 +2540,8 @@ func (s *Server) handleGetCoreAPIVersionsRequest(args [0]string, w http.Response // handleGetCoreV1APIResourcesRequest handles getCoreV1APIResources operation. // +// Get available resources. +// // GET /api/v1/ func (s *Server) handleGetCoreV1APIResourcesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -2586,6 +2637,8 @@ func (s *Server) handleGetCoreV1APIResourcesRequest(args [0]string, w http.Respo // handleGetDiscoveryAPIGroupRequest handles getDiscoveryAPIGroup operation. // +// Get information of a group. +// // GET /apis/discovery.k8s.io/ func (s *Server) handleGetDiscoveryAPIGroupRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -2681,6 +2734,8 @@ func (s *Server) handleGetDiscoveryAPIGroupRequest(args [0]string, w http.Respon // handleGetDiscoveryV1APIResourcesRequest handles getDiscoveryV1APIResources operation. // +// Get available resources. +// // GET /apis/discovery.k8s.io/v1/ func (s *Server) handleGetDiscoveryV1APIResourcesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -2776,6 +2831,8 @@ func (s *Server) handleGetDiscoveryV1APIResourcesRequest(args [0]string, w http. // handleGetDiscoveryV1beta1APIResourcesRequest handles getDiscoveryV1beta1APIResources operation. // +// Get available resources. +// // GET /apis/discovery.k8s.io/v1beta1/ func (s *Server) handleGetDiscoveryV1beta1APIResourcesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -2871,6 +2928,8 @@ func (s *Server) handleGetDiscoveryV1beta1APIResourcesRequest(args [0]string, w // handleGetEventsAPIGroupRequest handles getEventsAPIGroup operation. // +// Get information of a group. +// // GET /apis/events.k8s.io/ func (s *Server) handleGetEventsAPIGroupRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -2966,6 +3025,8 @@ func (s *Server) handleGetEventsAPIGroupRequest(args [0]string, w http.ResponseW // handleGetEventsV1APIResourcesRequest handles getEventsV1APIResources operation. // +// Get available resources. +// // GET /apis/events.k8s.io/v1/ func (s *Server) handleGetEventsV1APIResourcesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -3061,6 +3122,8 @@ func (s *Server) handleGetEventsV1APIResourcesRequest(args [0]string, w http.Res // handleGetEventsV1beta1APIResourcesRequest handles getEventsV1beta1APIResources operation. // +// Get available resources. +// // GET /apis/events.k8s.io/v1beta1/ func (s *Server) handleGetEventsV1beta1APIResourcesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -3156,6 +3219,8 @@ func (s *Server) handleGetEventsV1beta1APIResourcesRequest(args [0]string, w htt // handleGetFlowcontrolApiserverAPIGroupRequest handles getFlowcontrolApiserverAPIGroup operation. // +// Get information of a group. +// // GET /apis/flowcontrol.apiserver.k8s.io/ func (s *Server) handleGetFlowcontrolApiserverAPIGroupRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -3251,6 +3316,8 @@ func (s *Server) handleGetFlowcontrolApiserverAPIGroupRequest(args [0]string, w // handleGetFlowcontrolApiserverV1beta1APIResourcesRequest handles getFlowcontrolApiserverV1beta1APIResources operation. // +// Get available resources. +// // GET /apis/flowcontrol.apiserver.k8s.io/v1beta1/ func (s *Server) handleGetFlowcontrolApiserverV1beta1APIResourcesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -3346,6 +3413,8 @@ func (s *Server) handleGetFlowcontrolApiserverV1beta1APIResourcesRequest(args [0 // handleGetFlowcontrolApiserverV1beta2APIResourcesRequest handles getFlowcontrolApiserverV1beta2APIResources operation. // +// Get available resources. +// // GET /apis/flowcontrol.apiserver.k8s.io/v1beta2/ func (s *Server) handleGetFlowcontrolApiserverV1beta2APIResourcesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -3441,6 +3510,8 @@ func (s *Server) handleGetFlowcontrolApiserverV1beta2APIResourcesRequest(args [0 // handleGetInternalApiserverAPIGroupRequest handles getInternalApiserverAPIGroup operation. // +// Get information of a group. +// // GET /apis/internal.apiserver.k8s.io/ func (s *Server) handleGetInternalApiserverAPIGroupRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -3536,6 +3607,8 @@ func (s *Server) handleGetInternalApiserverAPIGroupRequest(args [0]string, w htt // handleGetInternalApiserverV1alpha1APIResourcesRequest handles getInternalApiserverV1alpha1APIResources operation. // +// Get available resources. +// // GET /apis/internal.apiserver.k8s.io/v1alpha1/ func (s *Server) handleGetInternalApiserverV1alpha1APIResourcesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -3631,6 +3704,8 @@ func (s *Server) handleGetInternalApiserverV1alpha1APIResourcesRequest(args [0]s // handleGetNetworkingAPIGroupRequest handles getNetworkingAPIGroup operation. // +// Get information of a group. +// // GET /apis/networking.k8s.io/ func (s *Server) handleGetNetworkingAPIGroupRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -3726,6 +3801,8 @@ func (s *Server) handleGetNetworkingAPIGroupRequest(args [0]string, w http.Respo // handleGetNetworkingV1APIResourcesRequest handles getNetworkingV1APIResources operation. // +// Get available resources. +// // GET /apis/networking.k8s.io/v1/ func (s *Server) handleGetNetworkingV1APIResourcesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -3821,6 +3898,8 @@ func (s *Server) handleGetNetworkingV1APIResourcesRequest(args [0]string, w http // handleGetNodeAPIGroupRequest handles getNodeAPIGroup operation. // +// Get information of a group. +// // GET /apis/node.k8s.io/ func (s *Server) handleGetNodeAPIGroupRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -3916,6 +3995,8 @@ func (s *Server) handleGetNodeAPIGroupRequest(args [0]string, w http.ResponseWri // handleGetNodeV1APIResourcesRequest handles getNodeV1APIResources operation. // +// Get available resources. +// // GET /apis/node.k8s.io/v1/ func (s *Server) handleGetNodeV1APIResourcesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -4011,6 +4092,8 @@ func (s *Server) handleGetNodeV1APIResourcesRequest(args [0]string, w http.Respo // handleGetNodeV1alpha1APIResourcesRequest handles getNodeV1alpha1APIResources operation. // +// Get available resources. +// // GET /apis/node.k8s.io/v1alpha1/ func (s *Server) handleGetNodeV1alpha1APIResourcesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -4106,6 +4189,8 @@ func (s *Server) handleGetNodeV1alpha1APIResourcesRequest(args [0]string, w http // handleGetNodeV1beta1APIResourcesRequest handles getNodeV1beta1APIResources operation. // +// Get available resources. +// // GET /apis/node.k8s.io/v1beta1/ func (s *Server) handleGetNodeV1beta1APIResourcesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -4201,6 +4286,8 @@ func (s *Server) handleGetNodeV1beta1APIResourcesRequest(args [0]string, w http. // handleGetPolicyAPIGroupRequest handles getPolicyAPIGroup operation. // +// Get information of a group. +// // GET /apis/policy/ func (s *Server) handleGetPolicyAPIGroupRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -4296,6 +4383,8 @@ func (s *Server) handleGetPolicyAPIGroupRequest(args [0]string, w http.ResponseW // handleGetPolicyV1APIResourcesRequest handles getPolicyV1APIResources operation. // +// Get available resources. +// // GET /apis/policy/v1/ func (s *Server) handleGetPolicyV1APIResourcesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -4391,6 +4480,8 @@ func (s *Server) handleGetPolicyV1APIResourcesRequest(args [0]string, w http.Res // handleGetPolicyV1beta1APIResourcesRequest handles getPolicyV1beta1APIResources operation. // +// Get available resources. +// // GET /apis/policy/v1beta1/ func (s *Server) handleGetPolicyV1beta1APIResourcesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -4486,6 +4577,8 @@ func (s *Server) handleGetPolicyV1beta1APIResourcesRequest(args [0]string, w htt // handleGetRbacAuthorizationAPIGroupRequest handles getRbacAuthorizationAPIGroup operation. // +// Get information of a group. +// // GET /apis/rbac.authorization.k8s.io/ func (s *Server) handleGetRbacAuthorizationAPIGroupRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -4581,6 +4674,8 @@ func (s *Server) handleGetRbacAuthorizationAPIGroupRequest(args [0]string, w htt // handleGetRbacAuthorizationV1APIResourcesRequest handles getRbacAuthorizationV1APIResources operation. // +// Get available resources. +// // GET /apis/rbac.authorization.k8s.io/v1/ func (s *Server) handleGetRbacAuthorizationV1APIResourcesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -4676,6 +4771,8 @@ func (s *Server) handleGetRbacAuthorizationV1APIResourcesRequest(args [0]string, // handleGetSchedulingAPIGroupRequest handles getSchedulingAPIGroup operation. // +// Get information of a group. +// // GET /apis/scheduling.k8s.io/ func (s *Server) handleGetSchedulingAPIGroupRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -4771,6 +4868,8 @@ func (s *Server) handleGetSchedulingAPIGroupRequest(args [0]string, w http.Respo // handleGetSchedulingV1APIResourcesRequest handles getSchedulingV1APIResources operation. // +// Get available resources. +// // GET /apis/scheduling.k8s.io/v1/ func (s *Server) handleGetSchedulingV1APIResourcesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -4866,6 +4965,8 @@ func (s *Server) handleGetSchedulingV1APIResourcesRequest(args [0]string, w http // handleGetServiceAccountIssuerOpenIDConfigurationRequest handles getServiceAccountIssuerOpenIDConfiguration operation. // +// Get service account issuer OpenID configuration, also known as the 'OIDC discovery doc'. +// // GET /.well-known/openid-configuration/ func (s *Server) handleGetServiceAccountIssuerOpenIDConfigurationRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -4961,6 +5062,8 @@ func (s *Server) handleGetServiceAccountIssuerOpenIDConfigurationRequest(args [0 // handleGetStorageAPIGroupRequest handles getStorageAPIGroup operation. // +// Get information of a group. +// // GET /apis/storage.k8s.io/ func (s *Server) handleGetStorageAPIGroupRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -5056,6 +5159,8 @@ func (s *Server) handleGetStorageAPIGroupRequest(args [0]string, w http.Response // handleGetStorageV1APIResourcesRequest handles getStorageV1APIResources operation. // +// Get available resources. +// // GET /apis/storage.k8s.io/v1/ func (s *Server) handleGetStorageV1APIResourcesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -5151,6 +5256,8 @@ func (s *Server) handleGetStorageV1APIResourcesRequest(args [0]string, w http.Re // handleGetStorageV1alpha1APIResourcesRequest handles getStorageV1alpha1APIResources operation. // +// Get available resources. +// // GET /apis/storage.k8s.io/v1alpha1/ func (s *Server) handleGetStorageV1alpha1APIResourcesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -5246,6 +5353,8 @@ func (s *Server) handleGetStorageV1alpha1APIResourcesRequest(args [0]string, w h // handleGetStorageV1beta1APIResourcesRequest handles getStorageV1beta1APIResources operation. // +// Get available resources. +// // GET /apis/storage.k8s.io/v1beta1/ func (s *Server) handleGetStorageV1beta1APIResourcesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -5341,6 +5450,8 @@ func (s *Server) handleGetStorageV1beta1APIResourcesRequest(args [0]string, w ht // handleListAdmissionregistrationV1MutatingWebhookConfigurationRequest handles listAdmissionregistrationV1MutatingWebhookConfiguration operation. // +// List or watch objects of kind MutatingWebhookConfiguration. +// // GET /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations func (s *Server) handleListAdmissionregistrationV1MutatingWebhookConfigurationRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -5457,6 +5568,8 @@ func (s *Server) handleListAdmissionregistrationV1MutatingWebhookConfigurationRe // handleListAdmissionregistrationV1ValidatingWebhookConfigurationRequest handles listAdmissionregistrationV1ValidatingWebhookConfiguration operation. // +// List or watch objects of kind ValidatingWebhookConfiguration. +// // GET /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations func (s *Server) handleListAdmissionregistrationV1ValidatingWebhookConfigurationRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -5573,6 +5686,8 @@ func (s *Server) handleListAdmissionregistrationV1ValidatingWebhookConfiguration // handleListApiextensionsV1CustomResourceDefinitionRequest handles listApiextensionsV1CustomResourceDefinition operation. // +// List or watch objects of kind CustomResourceDefinition. +// // GET /apis/apiextensions.k8s.io/v1/customresourcedefinitions func (s *Server) handleListApiextensionsV1CustomResourceDefinitionRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -5689,6 +5804,8 @@ func (s *Server) handleListApiextensionsV1CustomResourceDefinitionRequest(args [ // handleListApiregistrationV1APIServiceRequest handles listApiregistrationV1APIService operation. // +// List or watch objects of kind APIService. +// // GET /apis/apiregistration.k8s.io/v1/apiservices func (s *Server) handleListApiregistrationV1APIServiceRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -5805,6 +5922,8 @@ func (s *Server) handleListApiregistrationV1APIServiceRequest(args [0]string, w // handleListAppsV1ControllerRevisionForAllNamespacesRequest handles listAppsV1ControllerRevisionForAllNamespaces operation. // +// List or watch objects of kind ControllerRevision. +// // GET /apis/apps/v1/controllerrevisions func (s *Server) handleListAppsV1ControllerRevisionForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -5921,6 +6040,8 @@ func (s *Server) handleListAppsV1ControllerRevisionForAllNamespacesRequest(args // handleListAppsV1DaemonSetForAllNamespacesRequest handles listAppsV1DaemonSetForAllNamespaces operation. // +// List or watch objects of kind DaemonSet. +// // GET /apis/apps/v1/daemonsets func (s *Server) handleListAppsV1DaemonSetForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -6037,6 +6158,8 @@ func (s *Server) handleListAppsV1DaemonSetForAllNamespacesRequest(args [0]string // handleListAppsV1DeploymentForAllNamespacesRequest handles listAppsV1DeploymentForAllNamespaces operation. // +// List or watch objects of kind Deployment. +// // GET /apis/apps/v1/deployments func (s *Server) handleListAppsV1DeploymentForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -6153,6 +6276,8 @@ func (s *Server) handleListAppsV1DeploymentForAllNamespacesRequest(args [0]strin // handleListAppsV1NamespacedControllerRevisionRequest handles listAppsV1NamespacedControllerRevision operation. // +// List or watch objects of kind ControllerRevision. +// // GET /apis/apps/v1/namespaces/{namespace}/controllerrevisions func (s *Server) handleListAppsV1NamespacedControllerRevisionRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -6270,6 +6395,8 @@ func (s *Server) handleListAppsV1NamespacedControllerRevisionRequest(args [1]str // handleListAppsV1NamespacedDaemonSetRequest handles listAppsV1NamespacedDaemonSet operation. // +// List or watch objects of kind DaemonSet. +// // GET /apis/apps/v1/namespaces/{namespace}/daemonsets func (s *Server) handleListAppsV1NamespacedDaemonSetRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -6387,6 +6514,8 @@ func (s *Server) handleListAppsV1NamespacedDaemonSetRequest(args [1]string, w ht // handleListAppsV1NamespacedDeploymentRequest handles listAppsV1NamespacedDeployment operation. // +// List or watch objects of kind Deployment. +// // GET /apis/apps/v1/namespaces/{namespace}/deployments func (s *Server) handleListAppsV1NamespacedDeploymentRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -6504,6 +6633,8 @@ func (s *Server) handleListAppsV1NamespacedDeploymentRequest(args [1]string, w h // handleListAppsV1NamespacedReplicaSetRequest handles listAppsV1NamespacedReplicaSet operation. // +// List or watch objects of kind ReplicaSet. +// // GET /apis/apps/v1/namespaces/{namespace}/replicasets func (s *Server) handleListAppsV1NamespacedReplicaSetRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -6621,6 +6752,8 @@ func (s *Server) handleListAppsV1NamespacedReplicaSetRequest(args [1]string, w h // handleListAppsV1NamespacedStatefulSetRequest handles listAppsV1NamespacedStatefulSet operation. // +// List or watch objects of kind StatefulSet. +// // GET /apis/apps/v1/namespaces/{namespace}/statefulsets func (s *Server) handleListAppsV1NamespacedStatefulSetRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -6738,6 +6871,8 @@ func (s *Server) handleListAppsV1NamespacedStatefulSetRequest(args [1]string, w // handleListAppsV1ReplicaSetForAllNamespacesRequest handles listAppsV1ReplicaSetForAllNamespaces operation. // +// List or watch objects of kind ReplicaSet. +// // GET /apis/apps/v1/replicasets func (s *Server) handleListAppsV1ReplicaSetForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -6854,6 +6989,8 @@ func (s *Server) handleListAppsV1ReplicaSetForAllNamespacesRequest(args [0]strin // handleListAppsV1StatefulSetForAllNamespacesRequest handles listAppsV1StatefulSetForAllNamespaces operation. // +// List or watch objects of kind StatefulSet. +// // GET /apis/apps/v1/statefulsets func (s *Server) handleListAppsV1StatefulSetForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -6970,6 +7107,8 @@ func (s *Server) handleListAppsV1StatefulSetForAllNamespacesRequest(args [0]stri // handleListAutoscalingV1HorizontalPodAutoscalerForAllNamespacesRequest handles listAutoscalingV1HorizontalPodAutoscalerForAllNamespaces operation. // +// List or watch objects of kind HorizontalPodAutoscaler. +// // GET /apis/autoscaling/v1/horizontalpodautoscalers func (s *Server) handleListAutoscalingV1HorizontalPodAutoscalerForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -7086,6 +7225,8 @@ func (s *Server) handleListAutoscalingV1HorizontalPodAutoscalerForAllNamespacesR // handleListAutoscalingV1NamespacedHorizontalPodAutoscalerRequest handles listAutoscalingV1NamespacedHorizontalPodAutoscaler operation. // +// List or watch objects of kind HorizontalPodAutoscaler. +// // GET /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers func (s *Server) handleListAutoscalingV1NamespacedHorizontalPodAutoscalerRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -7203,6 +7344,8 @@ func (s *Server) handleListAutoscalingV1NamespacedHorizontalPodAutoscalerRequest // handleListAutoscalingV2beta1HorizontalPodAutoscalerForAllNamespacesRequest handles listAutoscalingV2beta1HorizontalPodAutoscalerForAllNamespaces operation. // +// List or watch objects of kind HorizontalPodAutoscaler. +// // GET /apis/autoscaling/v2beta1/horizontalpodautoscalers func (s *Server) handleListAutoscalingV2beta1HorizontalPodAutoscalerForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -7319,6 +7462,8 @@ func (s *Server) handleListAutoscalingV2beta1HorizontalPodAutoscalerForAllNamesp // handleListAutoscalingV2beta1NamespacedHorizontalPodAutoscalerRequest handles listAutoscalingV2beta1NamespacedHorizontalPodAutoscaler operation. // +// List or watch objects of kind HorizontalPodAutoscaler. +// // GET /apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers func (s *Server) handleListAutoscalingV2beta1NamespacedHorizontalPodAutoscalerRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -7436,6 +7581,8 @@ func (s *Server) handleListAutoscalingV2beta1NamespacedHorizontalPodAutoscalerRe // handleListAutoscalingV2beta2HorizontalPodAutoscalerForAllNamespacesRequest handles listAutoscalingV2beta2HorizontalPodAutoscalerForAllNamespaces operation. // +// List or watch objects of kind HorizontalPodAutoscaler. +// // GET /apis/autoscaling/v2beta2/horizontalpodautoscalers func (s *Server) handleListAutoscalingV2beta2HorizontalPodAutoscalerForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -7552,6 +7699,8 @@ func (s *Server) handleListAutoscalingV2beta2HorizontalPodAutoscalerForAllNamesp // handleListAutoscalingV2beta2NamespacedHorizontalPodAutoscalerRequest handles listAutoscalingV2beta2NamespacedHorizontalPodAutoscaler operation. // +// List or watch objects of kind HorizontalPodAutoscaler. +// // GET /apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers func (s *Server) handleListAutoscalingV2beta2NamespacedHorizontalPodAutoscalerRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -7669,6 +7818,8 @@ func (s *Server) handleListAutoscalingV2beta2NamespacedHorizontalPodAutoscalerRe // handleListBatchV1CronJobForAllNamespacesRequest handles listBatchV1CronJobForAllNamespaces operation. // +// List or watch objects of kind CronJob. +// // GET /apis/batch/v1/cronjobs func (s *Server) handleListBatchV1CronJobForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -7785,6 +7936,8 @@ func (s *Server) handleListBatchV1CronJobForAllNamespacesRequest(args [0]string, // handleListBatchV1JobForAllNamespacesRequest handles listBatchV1JobForAllNamespaces operation. // +// List or watch objects of kind Job. +// // GET /apis/batch/v1/jobs func (s *Server) handleListBatchV1JobForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -7901,6 +8054,8 @@ func (s *Server) handleListBatchV1JobForAllNamespacesRequest(args [0]string, w h // handleListBatchV1NamespacedCronJobRequest handles listBatchV1NamespacedCronJob operation. // +// List or watch objects of kind CronJob. +// // GET /apis/batch/v1/namespaces/{namespace}/cronjobs func (s *Server) handleListBatchV1NamespacedCronJobRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -8018,6 +8173,8 @@ func (s *Server) handleListBatchV1NamespacedCronJobRequest(args [1]string, w htt // handleListBatchV1NamespacedJobRequest handles listBatchV1NamespacedJob operation. // +// List or watch objects of kind Job. +// // GET /apis/batch/v1/namespaces/{namespace}/jobs func (s *Server) handleListBatchV1NamespacedJobRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -8135,6 +8292,8 @@ func (s *Server) handleListBatchV1NamespacedJobRequest(args [1]string, w http.Re // handleListBatchV1beta1CronJobForAllNamespacesRequest handles listBatchV1beta1CronJobForAllNamespaces operation. // +// List or watch objects of kind CronJob. +// // GET /apis/batch/v1beta1/cronjobs func (s *Server) handleListBatchV1beta1CronJobForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -8251,6 +8410,8 @@ func (s *Server) handleListBatchV1beta1CronJobForAllNamespacesRequest(args [0]st // handleListBatchV1beta1NamespacedCronJobRequest handles listBatchV1beta1NamespacedCronJob operation. // +// List or watch objects of kind CronJob. +// // GET /apis/batch/v1beta1/namespaces/{namespace}/cronjobs func (s *Server) handleListBatchV1beta1NamespacedCronJobRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -8368,6 +8529,8 @@ func (s *Server) handleListBatchV1beta1NamespacedCronJobRequest(args [1]string, // handleListCertificatesV1CertificateSigningRequestRequest handles listCertificatesV1CertificateSigningRequest operation. // +// List or watch objects of kind CertificateSigningRequest. +// // GET /apis/certificates.k8s.io/v1/certificatesigningrequests func (s *Server) handleListCertificatesV1CertificateSigningRequestRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -8484,6 +8647,8 @@ func (s *Server) handleListCertificatesV1CertificateSigningRequestRequest(args [ // handleListCoordinationV1LeaseForAllNamespacesRequest handles listCoordinationV1LeaseForAllNamespaces operation. // +// List or watch objects of kind Lease. +// // GET /apis/coordination.k8s.io/v1/leases func (s *Server) handleListCoordinationV1LeaseForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -8600,6 +8765,8 @@ func (s *Server) handleListCoordinationV1LeaseForAllNamespacesRequest(args [0]st // handleListCoordinationV1NamespacedLeaseRequest handles listCoordinationV1NamespacedLease operation. // +// List or watch objects of kind Lease. +// // GET /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases func (s *Server) handleListCoordinationV1NamespacedLeaseRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -8717,6 +8884,8 @@ func (s *Server) handleListCoordinationV1NamespacedLeaseRequest(args [1]string, // handleListCoreV1ComponentStatusRequest handles listCoreV1ComponentStatus operation. // +// List objects of kind ComponentStatus. +// // GET /api/v1/componentstatuses func (s *Server) handleListCoreV1ComponentStatusRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -8833,6 +9002,8 @@ func (s *Server) handleListCoreV1ComponentStatusRequest(args [0]string, w http.R // handleListCoreV1ConfigMapForAllNamespacesRequest handles listCoreV1ConfigMapForAllNamespaces operation. // +// List or watch objects of kind ConfigMap. +// // GET /api/v1/configmaps func (s *Server) handleListCoreV1ConfigMapForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -8949,6 +9120,8 @@ func (s *Server) handleListCoreV1ConfigMapForAllNamespacesRequest(args [0]string // handleListCoreV1EndpointsForAllNamespacesRequest handles listCoreV1EndpointsForAllNamespaces operation. // +// List or watch objects of kind Endpoints. +// // GET /api/v1/endpoints func (s *Server) handleListCoreV1EndpointsForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -9065,6 +9238,8 @@ func (s *Server) handleListCoreV1EndpointsForAllNamespacesRequest(args [0]string // handleListCoreV1EventForAllNamespacesRequest handles listCoreV1EventForAllNamespaces operation. // +// List or watch objects of kind Event. +// // GET /api/v1/events func (s *Server) handleListCoreV1EventForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -9181,6 +9356,8 @@ func (s *Server) handleListCoreV1EventForAllNamespacesRequest(args [0]string, w // handleListCoreV1LimitRangeForAllNamespacesRequest handles listCoreV1LimitRangeForAllNamespaces operation. // +// List or watch objects of kind LimitRange. +// // GET /api/v1/limitranges func (s *Server) handleListCoreV1LimitRangeForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -9297,6 +9474,8 @@ func (s *Server) handleListCoreV1LimitRangeForAllNamespacesRequest(args [0]strin // handleListCoreV1NamespaceRequest handles listCoreV1Namespace operation. // +// List or watch objects of kind Namespace. +// // GET /api/v1/namespaces func (s *Server) handleListCoreV1NamespaceRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -9413,6 +9592,8 @@ func (s *Server) handleListCoreV1NamespaceRequest(args [0]string, w http.Respons // handleListCoreV1NamespacedConfigMapRequest handles listCoreV1NamespacedConfigMap operation. // +// List or watch objects of kind ConfigMap. +// // GET /api/v1/namespaces/{namespace}/configmaps func (s *Server) handleListCoreV1NamespacedConfigMapRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -9530,6 +9711,8 @@ func (s *Server) handleListCoreV1NamespacedConfigMapRequest(args [1]string, w ht // handleListCoreV1NamespacedEndpointsRequest handles listCoreV1NamespacedEndpoints operation. // +// List or watch objects of kind Endpoints. +// // GET /api/v1/namespaces/{namespace}/endpoints func (s *Server) handleListCoreV1NamespacedEndpointsRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -9647,6 +9830,8 @@ func (s *Server) handleListCoreV1NamespacedEndpointsRequest(args [1]string, w ht // handleListCoreV1NamespacedEventRequest handles listCoreV1NamespacedEvent operation. // +// List or watch objects of kind Event. +// // GET /api/v1/namespaces/{namespace}/events func (s *Server) handleListCoreV1NamespacedEventRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -9764,6 +9949,8 @@ func (s *Server) handleListCoreV1NamespacedEventRequest(args [1]string, w http.R // handleListCoreV1NamespacedLimitRangeRequest handles listCoreV1NamespacedLimitRange operation. // +// List or watch objects of kind LimitRange. +// // GET /api/v1/namespaces/{namespace}/limitranges func (s *Server) handleListCoreV1NamespacedLimitRangeRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -9881,6 +10068,8 @@ func (s *Server) handleListCoreV1NamespacedLimitRangeRequest(args [1]string, w h // handleListCoreV1NamespacedPersistentVolumeClaimRequest handles listCoreV1NamespacedPersistentVolumeClaim operation. // +// List or watch objects of kind PersistentVolumeClaim. +// // GET /api/v1/namespaces/{namespace}/persistentvolumeclaims func (s *Server) handleListCoreV1NamespacedPersistentVolumeClaimRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -9998,6 +10187,8 @@ func (s *Server) handleListCoreV1NamespacedPersistentVolumeClaimRequest(args [1] // handleListCoreV1NamespacedPodRequest handles listCoreV1NamespacedPod operation. // +// List or watch objects of kind Pod. +// // GET /api/v1/namespaces/{namespace}/pods func (s *Server) handleListCoreV1NamespacedPodRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -10115,6 +10306,8 @@ func (s *Server) handleListCoreV1NamespacedPodRequest(args [1]string, w http.Res // handleListCoreV1NamespacedPodTemplateRequest handles listCoreV1NamespacedPodTemplate operation. // +// List or watch objects of kind PodTemplate. +// // GET /api/v1/namespaces/{namespace}/podtemplates func (s *Server) handleListCoreV1NamespacedPodTemplateRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -10232,6 +10425,8 @@ func (s *Server) handleListCoreV1NamespacedPodTemplateRequest(args [1]string, w // handleListCoreV1NamespacedReplicationControllerRequest handles listCoreV1NamespacedReplicationController operation. // +// List or watch objects of kind ReplicationController. +// // GET /api/v1/namespaces/{namespace}/replicationcontrollers func (s *Server) handleListCoreV1NamespacedReplicationControllerRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -10349,6 +10544,8 @@ func (s *Server) handleListCoreV1NamespacedReplicationControllerRequest(args [1] // handleListCoreV1NamespacedResourceQuotaRequest handles listCoreV1NamespacedResourceQuota operation. // +// List or watch objects of kind ResourceQuota. +// // GET /api/v1/namespaces/{namespace}/resourcequotas func (s *Server) handleListCoreV1NamespacedResourceQuotaRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -10466,6 +10663,8 @@ func (s *Server) handleListCoreV1NamespacedResourceQuotaRequest(args [1]string, // handleListCoreV1NamespacedSecretRequest handles listCoreV1NamespacedSecret operation. // +// List or watch objects of kind Secret. +// // GET /api/v1/namespaces/{namespace}/secrets func (s *Server) handleListCoreV1NamespacedSecretRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -10583,6 +10782,8 @@ func (s *Server) handleListCoreV1NamespacedSecretRequest(args [1]string, w http. // handleListCoreV1NamespacedServiceRequest handles listCoreV1NamespacedService operation. // +// List or watch objects of kind Service. +// // GET /api/v1/namespaces/{namespace}/services func (s *Server) handleListCoreV1NamespacedServiceRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -10700,6 +10901,8 @@ func (s *Server) handleListCoreV1NamespacedServiceRequest(args [1]string, w http // handleListCoreV1NamespacedServiceAccountRequest handles listCoreV1NamespacedServiceAccount operation. // +// List or watch objects of kind ServiceAccount. +// // GET /api/v1/namespaces/{namespace}/serviceaccounts func (s *Server) handleListCoreV1NamespacedServiceAccountRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -10817,6 +11020,8 @@ func (s *Server) handleListCoreV1NamespacedServiceAccountRequest(args [1]string, // handleListCoreV1NodeRequest handles listCoreV1Node operation. // +// List or watch objects of kind Node. +// // GET /api/v1/nodes func (s *Server) handleListCoreV1NodeRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -10933,6 +11138,8 @@ func (s *Server) handleListCoreV1NodeRequest(args [0]string, w http.ResponseWrit // handleListCoreV1PersistentVolumeRequest handles listCoreV1PersistentVolume operation. // +// List or watch objects of kind PersistentVolume. +// // GET /api/v1/persistentvolumes func (s *Server) handleListCoreV1PersistentVolumeRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -11049,6 +11256,8 @@ func (s *Server) handleListCoreV1PersistentVolumeRequest(args [0]string, w http. // handleListCoreV1PersistentVolumeClaimForAllNamespacesRequest handles listCoreV1PersistentVolumeClaimForAllNamespaces operation. // +// List or watch objects of kind PersistentVolumeClaim. +// // GET /api/v1/persistentvolumeclaims func (s *Server) handleListCoreV1PersistentVolumeClaimForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -11165,6 +11374,8 @@ func (s *Server) handleListCoreV1PersistentVolumeClaimForAllNamespacesRequest(ar // handleListCoreV1PodForAllNamespacesRequest handles listCoreV1PodForAllNamespaces operation. // +// List or watch objects of kind Pod. +// // GET /api/v1/pods func (s *Server) handleListCoreV1PodForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -11281,6 +11492,8 @@ func (s *Server) handleListCoreV1PodForAllNamespacesRequest(args [0]string, w ht // handleListCoreV1PodTemplateForAllNamespacesRequest handles listCoreV1PodTemplateForAllNamespaces operation. // +// List or watch objects of kind PodTemplate. +// // GET /api/v1/podtemplates func (s *Server) handleListCoreV1PodTemplateForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -11397,6 +11610,8 @@ func (s *Server) handleListCoreV1PodTemplateForAllNamespacesRequest(args [0]stri // handleListCoreV1ReplicationControllerForAllNamespacesRequest handles listCoreV1ReplicationControllerForAllNamespaces operation. // +// List or watch objects of kind ReplicationController. +// // GET /api/v1/replicationcontrollers func (s *Server) handleListCoreV1ReplicationControllerForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -11513,6 +11728,8 @@ func (s *Server) handleListCoreV1ReplicationControllerForAllNamespacesRequest(ar // handleListCoreV1ResourceQuotaForAllNamespacesRequest handles listCoreV1ResourceQuotaForAllNamespaces operation. // +// List or watch objects of kind ResourceQuota. +// // GET /api/v1/resourcequotas func (s *Server) handleListCoreV1ResourceQuotaForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -11629,6 +11846,8 @@ func (s *Server) handleListCoreV1ResourceQuotaForAllNamespacesRequest(args [0]st // handleListCoreV1SecretForAllNamespacesRequest handles listCoreV1SecretForAllNamespaces operation. // +// List or watch objects of kind Secret. +// // GET /api/v1/secrets func (s *Server) handleListCoreV1SecretForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -11745,6 +11964,8 @@ func (s *Server) handleListCoreV1SecretForAllNamespacesRequest(args [0]string, w // handleListCoreV1ServiceAccountForAllNamespacesRequest handles listCoreV1ServiceAccountForAllNamespaces operation. // +// List or watch objects of kind ServiceAccount. +// // GET /api/v1/serviceaccounts func (s *Server) handleListCoreV1ServiceAccountForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -11861,6 +12082,8 @@ func (s *Server) handleListCoreV1ServiceAccountForAllNamespacesRequest(args [0]s // handleListCoreV1ServiceForAllNamespacesRequest handles listCoreV1ServiceForAllNamespaces operation. // +// List or watch objects of kind Service. +// // GET /api/v1/services func (s *Server) handleListCoreV1ServiceForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -11977,6 +12200,8 @@ func (s *Server) handleListCoreV1ServiceForAllNamespacesRequest(args [0]string, // handleListDiscoveryV1EndpointSliceForAllNamespacesRequest handles listDiscoveryV1EndpointSliceForAllNamespaces operation. // +// List or watch objects of kind EndpointSlice. +// // GET /apis/discovery.k8s.io/v1/endpointslices func (s *Server) handleListDiscoveryV1EndpointSliceForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -12093,6 +12318,8 @@ func (s *Server) handleListDiscoveryV1EndpointSliceForAllNamespacesRequest(args // handleListDiscoveryV1NamespacedEndpointSliceRequest handles listDiscoveryV1NamespacedEndpointSlice operation. // +// List or watch objects of kind EndpointSlice. +// // GET /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices func (s *Server) handleListDiscoveryV1NamespacedEndpointSliceRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -12210,6 +12437,8 @@ func (s *Server) handleListDiscoveryV1NamespacedEndpointSliceRequest(args [1]str // handleListDiscoveryV1beta1EndpointSliceForAllNamespacesRequest handles listDiscoveryV1beta1EndpointSliceForAllNamespaces operation. // +// List or watch objects of kind EndpointSlice. +// // GET /apis/discovery.k8s.io/v1beta1/endpointslices func (s *Server) handleListDiscoveryV1beta1EndpointSliceForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -12326,6 +12555,8 @@ func (s *Server) handleListDiscoveryV1beta1EndpointSliceForAllNamespacesRequest( // handleListDiscoveryV1beta1NamespacedEndpointSliceRequest handles listDiscoveryV1beta1NamespacedEndpointSlice operation. // +// List or watch objects of kind EndpointSlice. +// // GET /apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices func (s *Server) handleListDiscoveryV1beta1NamespacedEndpointSliceRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -12443,6 +12674,8 @@ func (s *Server) handleListDiscoveryV1beta1NamespacedEndpointSliceRequest(args [ // handleListEventsV1EventForAllNamespacesRequest handles listEventsV1EventForAllNamespaces operation. // +// List or watch objects of kind Event. +// // GET /apis/events.k8s.io/v1/events func (s *Server) handleListEventsV1EventForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -12559,6 +12792,8 @@ func (s *Server) handleListEventsV1EventForAllNamespacesRequest(args [0]string, // handleListEventsV1NamespacedEventRequest handles listEventsV1NamespacedEvent operation. // +// List or watch objects of kind Event. +// // GET /apis/events.k8s.io/v1/namespaces/{namespace}/events func (s *Server) handleListEventsV1NamespacedEventRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -12676,6 +12911,8 @@ func (s *Server) handleListEventsV1NamespacedEventRequest(args [1]string, w http // handleListEventsV1beta1EventForAllNamespacesRequest handles listEventsV1beta1EventForAllNamespaces operation. // +// List or watch objects of kind Event. +// // GET /apis/events.k8s.io/v1beta1/events func (s *Server) handleListEventsV1beta1EventForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -12792,6 +13029,8 @@ func (s *Server) handleListEventsV1beta1EventForAllNamespacesRequest(args [0]str // handleListEventsV1beta1NamespacedEventRequest handles listEventsV1beta1NamespacedEvent operation. // +// List or watch objects of kind Event. +// // GET /apis/events.k8s.io/v1beta1/namespaces/{namespace}/events func (s *Server) handleListEventsV1beta1NamespacedEventRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -12909,6 +13148,8 @@ func (s *Server) handleListEventsV1beta1NamespacedEventRequest(args [1]string, w // handleListFlowcontrolApiserverV1beta1FlowSchemaRequest handles listFlowcontrolApiserverV1beta1FlowSchema operation. // +// List or watch objects of kind FlowSchema. +// // GET /apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas func (s *Server) handleListFlowcontrolApiserverV1beta1FlowSchemaRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -13025,6 +13266,8 @@ func (s *Server) handleListFlowcontrolApiserverV1beta1FlowSchemaRequest(args [0] // handleListFlowcontrolApiserverV1beta1PriorityLevelConfigurationRequest handles listFlowcontrolApiserverV1beta1PriorityLevelConfiguration operation. // +// List or watch objects of kind PriorityLevelConfiguration. +// // GET /apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations func (s *Server) handleListFlowcontrolApiserverV1beta1PriorityLevelConfigurationRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -13141,6 +13384,8 @@ func (s *Server) handleListFlowcontrolApiserverV1beta1PriorityLevelConfiguration // handleListFlowcontrolApiserverV1beta2FlowSchemaRequest handles listFlowcontrolApiserverV1beta2FlowSchema operation. // +// List or watch objects of kind FlowSchema. +// // GET /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas func (s *Server) handleListFlowcontrolApiserverV1beta2FlowSchemaRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -13257,6 +13502,8 @@ func (s *Server) handleListFlowcontrolApiserverV1beta2FlowSchemaRequest(args [0] // handleListFlowcontrolApiserverV1beta2PriorityLevelConfigurationRequest handles listFlowcontrolApiserverV1beta2PriorityLevelConfiguration operation. // +// List or watch objects of kind PriorityLevelConfiguration. +// // GET /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations func (s *Server) handleListFlowcontrolApiserverV1beta2PriorityLevelConfigurationRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -13373,6 +13620,8 @@ func (s *Server) handleListFlowcontrolApiserverV1beta2PriorityLevelConfiguration // handleListInternalApiserverV1alpha1StorageVersionRequest handles listInternalApiserverV1alpha1StorageVersion operation. // +// List or watch objects of kind StorageVersion. +// // GET /apis/internal.apiserver.k8s.io/v1alpha1/storageversions func (s *Server) handleListInternalApiserverV1alpha1StorageVersionRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -13489,6 +13738,8 @@ func (s *Server) handleListInternalApiserverV1alpha1StorageVersionRequest(args [ // handleListNetworkingV1IngressClassRequest handles listNetworkingV1IngressClass operation. // +// List or watch objects of kind IngressClass. +// // GET /apis/networking.k8s.io/v1/ingressclasses func (s *Server) handleListNetworkingV1IngressClassRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -13605,6 +13856,8 @@ func (s *Server) handleListNetworkingV1IngressClassRequest(args [0]string, w htt // handleListNetworkingV1IngressForAllNamespacesRequest handles listNetworkingV1IngressForAllNamespaces operation. // +// List or watch objects of kind Ingress. +// // GET /apis/networking.k8s.io/v1/ingresses func (s *Server) handleListNetworkingV1IngressForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -13721,6 +13974,8 @@ func (s *Server) handleListNetworkingV1IngressForAllNamespacesRequest(args [0]st // handleListNetworkingV1NamespacedIngressRequest handles listNetworkingV1NamespacedIngress operation. // +// List or watch objects of kind Ingress. +// // GET /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses func (s *Server) handleListNetworkingV1NamespacedIngressRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -13838,6 +14093,8 @@ func (s *Server) handleListNetworkingV1NamespacedIngressRequest(args [1]string, // handleListNetworkingV1NamespacedNetworkPolicyRequest handles listNetworkingV1NamespacedNetworkPolicy operation. // +// List or watch objects of kind NetworkPolicy. +// // GET /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies func (s *Server) handleListNetworkingV1NamespacedNetworkPolicyRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -13955,6 +14212,8 @@ func (s *Server) handleListNetworkingV1NamespacedNetworkPolicyRequest(args [1]st // handleListNetworkingV1NetworkPolicyForAllNamespacesRequest handles listNetworkingV1NetworkPolicyForAllNamespaces operation. // +// List or watch objects of kind NetworkPolicy. +// // GET /apis/networking.k8s.io/v1/networkpolicies func (s *Server) handleListNetworkingV1NetworkPolicyForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -14071,6 +14330,8 @@ func (s *Server) handleListNetworkingV1NetworkPolicyForAllNamespacesRequest(args // handleListNodeV1RuntimeClassRequest handles listNodeV1RuntimeClass operation. // +// List or watch objects of kind RuntimeClass. +// // GET /apis/node.k8s.io/v1/runtimeclasses func (s *Server) handleListNodeV1RuntimeClassRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -14187,6 +14448,8 @@ func (s *Server) handleListNodeV1RuntimeClassRequest(args [0]string, w http.Resp // handleListNodeV1alpha1RuntimeClassRequest handles listNodeV1alpha1RuntimeClass operation. // +// List or watch objects of kind RuntimeClass. +// // GET /apis/node.k8s.io/v1alpha1/runtimeclasses func (s *Server) handleListNodeV1alpha1RuntimeClassRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -14303,6 +14566,8 @@ func (s *Server) handleListNodeV1alpha1RuntimeClassRequest(args [0]string, w htt // handleListNodeV1beta1RuntimeClassRequest handles listNodeV1beta1RuntimeClass operation. // +// List or watch objects of kind RuntimeClass. +// // GET /apis/node.k8s.io/v1beta1/runtimeclasses func (s *Server) handleListNodeV1beta1RuntimeClassRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -14419,6 +14684,8 @@ func (s *Server) handleListNodeV1beta1RuntimeClassRequest(args [0]string, w http // handleListPolicyV1NamespacedPodDisruptionBudgetRequest handles listPolicyV1NamespacedPodDisruptionBudget operation. // +// List or watch objects of kind PodDisruptionBudget. +// // GET /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets func (s *Server) handleListPolicyV1NamespacedPodDisruptionBudgetRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -14536,6 +14803,8 @@ func (s *Server) handleListPolicyV1NamespacedPodDisruptionBudgetRequest(args [1] // handleListPolicyV1PodDisruptionBudgetForAllNamespacesRequest handles listPolicyV1PodDisruptionBudgetForAllNamespaces operation. // +// List or watch objects of kind PodDisruptionBudget. +// // GET /apis/policy/v1/poddisruptionbudgets func (s *Server) handleListPolicyV1PodDisruptionBudgetForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -14652,6 +14921,8 @@ func (s *Server) handleListPolicyV1PodDisruptionBudgetForAllNamespacesRequest(ar // handleListPolicyV1beta1NamespacedPodDisruptionBudgetRequest handles listPolicyV1beta1NamespacedPodDisruptionBudget operation. // +// List or watch objects of kind PodDisruptionBudget. +// // GET /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets func (s *Server) handleListPolicyV1beta1NamespacedPodDisruptionBudgetRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -14769,6 +15040,8 @@ func (s *Server) handleListPolicyV1beta1NamespacedPodDisruptionBudgetRequest(arg // handleListPolicyV1beta1PodDisruptionBudgetForAllNamespacesRequest handles listPolicyV1beta1PodDisruptionBudgetForAllNamespaces operation. // +// List or watch objects of kind PodDisruptionBudget. +// // GET /apis/policy/v1beta1/poddisruptionbudgets func (s *Server) handleListPolicyV1beta1PodDisruptionBudgetForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -14885,6 +15158,8 @@ func (s *Server) handleListPolicyV1beta1PodDisruptionBudgetForAllNamespacesReque // handleListPolicyV1beta1PodSecurityPolicyRequest handles listPolicyV1beta1PodSecurityPolicy operation. // +// List or watch objects of kind PodSecurityPolicy. +// // GET /apis/policy/v1beta1/podsecuritypolicies func (s *Server) handleListPolicyV1beta1PodSecurityPolicyRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -15001,6 +15276,8 @@ func (s *Server) handleListPolicyV1beta1PodSecurityPolicyRequest(args [0]string, // handleListRbacAuthorizationV1ClusterRoleRequest handles listRbacAuthorizationV1ClusterRole operation. // +// List or watch objects of kind ClusterRole. +// // GET /apis/rbac.authorization.k8s.io/v1/clusterroles func (s *Server) handleListRbacAuthorizationV1ClusterRoleRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -15117,6 +15394,8 @@ func (s *Server) handleListRbacAuthorizationV1ClusterRoleRequest(args [0]string, // handleListRbacAuthorizationV1ClusterRoleBindingRequest handles listRbacAuthorizationV1ClusterRoleBinding operation. // +// List or watch objects of kind ClusterRoleBinding. +// // GET /apis/rbac.authorization.k8s.io/v1/clusterrolebindings func (s *Server) handleListRbacAuthorizationV1ClusterRoleBindingRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -15233,6 +15512,8 @@ func (s *Server) handleListRbacAuthorizationV1ClusterRoleBindingRequest(args [0] // handleListRbacAuthorizationV1NamespacedRoleRequest handles listRbacAuthorizationV1NamespacedRole operation. // +// List or watch objects of kind Role. +// // GET /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles func (s *Server) handleListRbacAuthorizationV1NamespacedRoleRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -15350,6 +15631,8 @@ func (s *Server) handleListRbacAuthorizationV1NamespacedRoleRequest(args [1]stri // handleListRbacAuthorizationV1NamespacedRoleBindingRequest handles listRbacAuthorizationV1NamespacedRoleBinding operation. // +// List or watch objects of kind RoleBinding. +// // GET /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings func (s *Server) handleListRbacAuthorizationV1NamespacedRoleBindingRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -15467,6 +15750,8 @@ func (s *Server) handleListRbacAuthorizationV1NamespacedRoleBindingRequest(args // handleListRbacAuthorizationV1RoleBindingForAllNamespacesRequest handles listRbacAuthorizationV1RoleBindingForAllNamespaces operation. // +// List or watch objects of kind RoleBinding. +// // GET /apis/rbac.authorization.k8s.io/v1/rolebindings func (s *Server) handleListRbacAuthorizationV1RoleBindingForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -15583,6 +15868,8 @@ func (s *Server) handleListRbacAuthorizationV1RoleBindingForAllNamespacesRequest // handleListRbacAuthorizationV1RoleForAllNamespacesRequest handles listRbacAuthorizationV1RoleForAllNamespaces operation. // +// List or watch objects of kind Role. +// // GET /apis/rbac.authorization.k8s.io/v1/roles func (s *Server) handleListRbacAuthorizationV1RoleForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -15699,6 +15986,8 @@ func (s *Server) handleListRbacAuthorizationV1RoleForAllNamespacesRequest(args [ // handleListSchedulingV1PriorityClassRequest handles listSchedulingV1PriorityClass operation. // +// List or watch objects of kind PriorityClass. +// // GET /apis/scheduling.k8s.io/v1/priorityclasses func (s *Server) handleListSchedulingV1PriorityClassRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -15815,6 +16104,8 @@ func (s *Server) handleListSchedulingV1PriorityClassRequest(args [0]string, w ht // handleListStorageV1CSIDriverRequest handles listStorageV1CSIDriver operation. // +// List or watch objects of kind CSIDriver. +// // GET /apis/storage.k8s.io/v1/csidrivers func (s *Server) handleListStorageV1CSIDriverRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -15931,6 +16222,8 @@ func (s *Server) handleListStorageV1CSIDriverRequest(args [0]string, w http.Resp // handleListStorageV1CSINodeRequest handles listStorageV1CSINode operation. // +// List or watch objects of kind CSINode. +// // GET /apis/storage.k8s.io/v1/csinodes func (s *Server) handleListStorageV1CSINodeRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -16047,6 +16340,8 @@ func (s *Server) handleListStorageV1CSINodeRequest(args [0]string, w http.Respon // handleListStorageV1StorageClassRequest handles listStorageV1StorageClass operation. // +// List or watch objects of kind StorageClass. +// // GET /apis/storage.k8s.io/v1/storageclasses func (s *Server) handleListStorageV1StorageClassRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -16163,6 +16458,8 @@ func (s *Server) handleListStorageV1StorageClassRequest(args [0]string, w http.R // handleListStorageV1VolumeAttachmentRequest handles listStorageV1VolumeAttachment operation. // +// List or watch objects of kind VolumeAttachment. +// // GET /apis/storage.k8s.io/v1/volumeattachments func (s *Server) handleListStorageV1VolumeAttachmentRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -16279,6 +16576,8 @@ func (s *Server) handleListStorageV1VolumeAttachmentRequest(args [0]string, w ht // handleListStorageV1alpha1CSIStorageCapacityForAllNamespacesRequest handles listStorageV1alpha1CSIStorageCapacityForAllNamespaces operation. // +// List or watch objects of kind CSIStorageCapacity. +// // GET /apis/storage.k8s.io/v1alpha1/csistoragecapacities func (s *Server) handleListStorageV1alpha1CSIStorageCapacityForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -16395,6 +16694,8 @@ func (s *Server) handleListStorageV1alpha1CSIStorageCapacityForAllNamespacesRequ // handleListStorageV1alpha1NamespacedCSIStorageCapacityRequest handles listStorageV1alpha1NamespacedCSIStorageCapacity operation. // +// List or watch objects of kind CSIStorageCapacity. +// // GET /apis/storage.k8s.io/v1alpha1/namespaces/{namespace}/csistoragecapacities func (s *Server) handleListStorageV1alpha1NamespacedCSIStorageCapacityRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -16512,6 +16813,8 @@ func (s *Server) handleListStorageV1alpha1NamespacedCSIStorageCapacityRequest(ar // handleListStorageV1beta1CSIStorageCapacityForAllNamespacesRequest handles listStorageV1beta1CSIStorageCapacityForAllNamespaces operation. // +// List or watch objects of kind CSIStorageCapacity. +// // GET /apis/storage.k8s.io/v1beta1/csistoragecapacities func (s *Server) handleListStorageV1beta1CSIStorageCapacityForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -16628,6 +16931,8 @@ func (s *Server) handleListStorageV1beta1CSIStorageCapacityForAllNamespacesReque // handleListStorageV1beta1NamespacedCSIStorageCapacityRequest handles listStorageV1beta1NamespacedCSIStorageCapacity operation. // +// List or watch objects of kind CSIStorageCapacity. +// // GET /apis/storage.k8s.io/v1beta1/namespaces/{namespace}/csistoragecapacities func (s *Server) handleListStorageV1beta1NamespacedCSIStorageCapacityRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -16947,6 +17252,8 @@ func (s *Server) handleLogFileListHandlerRequest(args [0]string, w http.Response // handleReadAdmissionregistrationV1MutatingWebhookConfigurationRequest handles readAdmissionregistrationV1MutatingWebhookConfiguration operation. // +// Read the specified MutatingWebhookConfiguration. +// // GET /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name} func (s *Server) handleReadAdmissionregistrationV1MutatingWebhookConfigurationRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -17055,6 +17362,8 @@ func (s *Server) handleReadAdmissionregistrationV1MutatingWebhookConfigurationRe // handleReadAdmissionregistrationV1ValidatingWebhookConfigurationRequest handles readAdmissionregistrationV1ValidatingWebhookConfiguration operation. // +// Read the specified ValidatingWebhookConfiguration. +// // GET /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name} func (s *Server) handleReadAdmissionregistrationV1ValidatingWebhookConfigurationRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -17163,6 +17472,8 @@ func (s *Server) handleReadAdmissionregistrationV1ValidatingWebhookConfiguration // handleReadApiextensionsV1CustomResourceDefinitionRequest handles readApiextensionsV1CustomResourceDefinition operation. // +// Read the specified CustomResourceDefinition. +// // GET /apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name} func (s *Server) handleReadApiextensionsV1CustomResourceDefinitionRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -17271,6 +17582,8 @@ func (s *Server) handleReadApiextensionsV1CustomResourceDefinitionRequest(args [ // handleReadApiextensionsV1CustomResourceDefinitionStatusRequest handles readApiextensionsV1CustomResourceDefinitionStatus operation. // +// Read status of the specified CustomResourceDefinition. +// // GET /apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}/status func (s *Server) handleReadApiextensionsV1CustomResourceDefinitionStatusRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -17379,6 +17692,8 @@ func (s *Server) handleReadApiextensionsV1CustomResourceDefinitionStatusRequest( // handleReadApiregistrationV1APIServiceRequest handles readApiregistrationV1APIService operation. // +// Read the specified APIService. +// // GET /apis/apiregistration.k8s.io/v1/apiservices/{name} func (s *Server) handleReadApiregistrationV1APIServiceRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -17487,6 +17802,8 @@ func (s *Server) handleReadApiregistrationV1APIServiceRequest(args [1]string, w // handleReadApiregistrationV1APIServiceStatusRequest handles readApiregistrationV1APIServiceStatus operation. // +// Read status of the specified APIService. +// // GET /apis/apiregistration.k8s.io/v1/apiservices/{name}/status func (s *Server) handleReadApiregistrationV1APIServiceStatusRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -17595,6 +17912,8 @@ func (s *Server) handleReadApiregistrationV1APIServiceStatusRequest(args [1]stri // handleReadAppsV1NamespacedControllerRevisionRequest handles readAppsV1NamespacedControllerRevision operation. // +// Read the specified ControllerRevision. +// // GET /apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name} func (s *Server) handleReadAppsV1NamespacedControllerRevisionRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -17704,6 +18023,8 @@ func (s *Server) handleReadAppsV1NamespacedControllerRevisionRequest(args [2]str // handleReadAppsV1NamespacedDaemonSetRequest handles readAppsV1NamespacedDaemonSet operation. // +// Read the specified DaemonSet. +// // GET /apis/apps/v1/namespaces/{namespace}/daemonsets/{name} func (s *Server) handleReadAppsV1NamespacedDaemonSetRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -17813,6 +18134,8 @@ func (s *Server) handleReadAppsV1NamespacedDaemonSetRequest(args [2]string, w ht // handleReadAppsV1NamespacedDaemonSetStatusRequest handles readAppsV1NamespacedDaemonSetStatus operation. // +// Read status of the specified DaemonSet. +// // GET /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status func (s *Server) handleReadAppsV1NamespacedDaemonSetStatusRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -17922,6 +18245,8 @@ func (s *Server) handleReadAppsV1NamespacedDaemonSetStatusRequest(args [2]string // handleReadAppsV1NamespacedDeploymentRequest handles readAppsV1NamespacedDeployment operation. // +// Read the specified Deployment. +// // GET /apis/apps/v1/namespaces/{namespace}/deployments/{name} func (s *Server) handleReadAppsV1NamespacedDeploymentRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -18031,6 +18356,8 @@ func (s *Server) handleReadAppsV1NamespacedDeploymentRequest(args [2]string, w h // handleReadAppsV1NamespacedDeploymentScaleRequest handles readAppsV1NamespacedDeploymentScale operation. // +// Read scale of the specified Deployment. +// // GET /apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale func (s *Server) handleReadAppsV1NamespacedDeploymentScaleRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -18140,6 +18467,8 @@ func (s *Server) handleReadAppsV1NamespacedDeploymentScaleRequest(args [2]string // handleReadAppsV1NamespacedDeploymentStatusRequest handles readAppsV1NamespacedDeploymentStatus operation. // +// Read status of the specified Deployment. +// // GET /apis/apps/v1/namespaces/{namespace}/deployments/{name}/status func (s *Server) handleReadAppsV1NamespacedDeploymentStatusRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -18249,6 +18578,8 @@ func (s *Server) handleReadAppsV1NamespacedDeploymentStatusRequest(args [2]strin // handleReadAppsV1NamespacedReplicaSetRequest handles readAppsV1NamespacedReplicaSet operation. // +// Read the specified ReplicaSet. +// // GET /apis/apps/v1/namespaces/{namespace}/replicasets/{name} func (s *Server) handleReadAppsV1NamespacedReplicaSetRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -18358,6 +18689,8 @@ func (s *Server) handleReadAppsV1NamespacedReplicaSetRequest(args [2]string, w h // handleReadAppsV1NamespacedReplicaSetScaleRequest handles readAppsV1NamespacedReplicaSetScale operation. // +// Read scale of the specified ReplicaSet. +// // GET /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale func (s *Server) handleReadAppsV1NamespacedReplicaSetScaleRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -18467,6 +18800,8 @@ func (s *Server) handleReadAppsV1NamespacedReplicaSetScaleRequest(args [2]string // handleReadAppsV1NamespacedReplicaSetStatusRequest handles readAppsV1NamespacedReplicaSetStatus operation. // +// Read status of the specified ReplicaSet. +// // GET /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status func (s *Server) handleReadAppsV1NamespacedReplicaSetStatusRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -18576,6 +18911,8 @@ func (s *Server) handleReadAppsV1NamespacedReplicaSetStatusRequest(args [2]strin // handleReadAppsV1NamespacedStatefulSetRequest handles readAppsV1NamespacedStatefulSet operation. // +// Read the specified StatefulSet. +// // GET /apis/apps/v1/namespaces/{namespace}/statefulsets/{name} func (s *Server) handleReadAppsV1NamespacedStatefulSetRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -18685,6 +19022,8 @@ func (s *Server) handleReadAppsV1NamespacedStatefulSetRequest(args [2]string, w // handleReadAppsV1NamespacedStatefulSetScaleRequest handles readAppsV1NamespacedStatefulSetScale operation. // +// Read scale of the specified StatefulSet. +// // GET /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale func (s *Server) handleReadAppsV1NamespacedStatefulSetScaleRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -18794,6 +19133,8 @@ func (s *Server) handleReadAppsV1NamespacedStatefulSetScaleRequest(args [2]strin // handleReadAppsV1NamespacedStatefulSetStatusRequest handles readAppsV1NamespacedStatefulSetStatus operation. // +// Read status of the specified StatefulSet. +// // GET /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status func (s *Server) handleReadAppsV1NamespacedStatefulSetStatusRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -18903,6 +19244,8 @@ func (s *Server) handleReadAppsV1NamespacedStatefulSetStatusRequest(args [2]stri // handleReadAutoscalingV1NamespacedHorizontalPodAutoscalerRequest handles readAutoscalingV1NamespacedHorizontalPodAutoscaler operation. // +// Read the specified HorizontalPodAutoscaler. +// // GET /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} func (s *Server) handleReadAutoscalingV1NamespacedHorizontalPodAutoscalerRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -19012,6 +19355,8 @@ func (s *Server) handleReadAutoscalingV1NamespacedHorizontalPodAutoscalerRequest // handleReadAutoscalingV1NamespacedHorizontalPodAutoscalerStatusRequest handles readAutoscalingV1NamespacedHorizontalPodAutoscalerStatus operation. // +// Read status of the specified HorizontalPodAutoscaler. +// // GET /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status func (s *Server) handleReadAutoscalingV1NamespacedHorizontalPodAutoscalerStatusRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -19121,6 +19466,8 @@ func (s *Server) handleReadAutoscalingV1NamespacedHorizontalPodAutoscalerStatusR // handleReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerRequest handles readAutoscalingV2beta1NamespacedHorizontalPodAutoscaler operation. // +// Read the specified HorizontalPodAutoscaler. +// // GET /apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} func (s *Server) handleReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -19230,6 +19577,8 @@ func (s *Server) handleReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerRe // handleReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerStatusRequest handles readAutoscalingV2beta1NamespacedHorizontalPodAutoscalerStatus operation. // +// Read status of the specified HorizontalPodAutoscaler. +// // GET /apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status func (s *Server) handleReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerStatusRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -19339,6 +19688,8 @@ func (s *Server) handleReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerSt // handleReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerRequest handles readAutoscalingV2beta2NamespacedHorizontalPodAutoscaler operation. // +// Read the specified HorizontalPodAutoscaler. +// // GET /apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name} func (s *Server) handleReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -19448,6 +19799,8 @@ func (s *Server) handleReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerRe // handleReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerStatusRequest handles readAutoscalingV2beta2NamespacedHorizontalPodAutoscalerStatus operation. // +// Read status of the specified HorizontalPodAutoscaler. +// // GET /apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status func (s *Server) handleReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerStatusRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -19557,6 +19910,8 @@ func (s *Server) handleReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerSt // handleReadBatchV1NamespacedCronJobRequest handles readBatchV1NamespacedCronJob operation. // +// Read the specified CronJob. +// // GET /apis/batch/v1/namespaces/{namespace}/cronjobs/{name} func (s *Server) handleReadBatchV1NamespacedCronJobRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -19666,6 +20021,8 @@ func (s *Server) handleReadBatchV1NamespacedCronJobRequest(args [2]string, w htt // handleReadBatchV1NamespacedCronJobStatusRequest handles readBatchV1NamespacedCronJobStatus operation. // +// Read status of the specified CronJob. +// // GET /apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status func (s *Server) handleReadBatchV1NamespacedCronJobStatusRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -19775,6 +20132,8 @@ func (s *Server) handleReadBatchV1NamespacedCronJobStatusRequest(args [2]string, // handleReadBatchV1NamespacedJobRequest handles readBatchV1NamespacedJob operation. // +// Read the specified Job. +// // GET /apis/batch/v1/namespaces/{namespace}/jobs/{name} func (s *Server) handleReadBatchV1NamespacedJobRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -19884,6 +20243,8 @@ func (s *Server) handleReadBatchV1NamespacedJobRequest(args [2]string, w http.Re // handleReadBatchV1NamespacedJobStatusRequest handles readBatchV1NamespacedJobStatus operation. // +// Read status of the specified Job. +// // GET /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status func (s *Server) handleReadBatchV1NamespacedJobStatusRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -19993,6 +20354,8 @@ func (s *Server) handleReadBatchV1NamespacedJobStatusRequest(args [2]string, w h // handleReadBatchV1beta1NamespacedCronJobRequest handles readBatchV1beta1NamespacedCronJob operation. // +// Read the specified CronJob. +// // GET /apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name} func (s *Server) handleReadBatchV1beta1NamespacedCronJobRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -20102,6 +20465,8 @@ func (s *Server) handleReadBatchV1beta1NamespacedCronJobRequest(args [2]string, // handleReadBatchV1beta1NamespacedCronJobStatusRequest handles readBatchV1beta1NamespacedCronJobStatus operation. // +// Read status of the specified CronJob. +// // GET /apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status func (s *Server) handleReadBatchV1beta1NamespacedCronJobStatusRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -20211,6 +20576,8 @@ func (s *Server) handleReadBatchV1beta1NamespacedCronJobStatusRequest(args [2]st // handleReadCertificatesV1CertificateSigningRequestRequest handles readCertificatesV1CertificateSigningRequest operation. // +// Read the specified CertificateSigningRequest. +// // GET /apis/certificates.k8s.io/v1/certificatesigningrequests/{name} func (s *Server) handleReadCertificatesV1CertificateSigningRequestRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -20319,6 +20686,8 @@ func (s *Server) handleReadCertificatesV1CertificateSigningRequestRequest(args [ // handleReadCertificatesV1CertificateSigningRequestApprovalRequest handles readCertificatesV1CertificateSigningRequestApproval operation. // +// Read approval of the specified CertificateSigningRequest. +// // GET /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval func (s *Server) handleReadCertificatesV1CertificateSigningRequestApprovalRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -20427,6 +20796,8 @@ func (s *Server) handleReadCertificatesV1CertificateSigningRequestApprovalReques // handleReadCertificatesV1CertificateSigningRequestStatusRequest handles readCertificatesV1CertificateSigningRequestStatus operation. // +// Read status of the specified CertificateSigningRequest. +// // GET /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status func (s *Server) handleReadCertificatesV1CertificateSigningRequestStatusRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -20535,6 +20906,8 @@ func (s *Server) handleReadCertificatesV1CertificateSigningRequestStatusRequest( // handleReadCoordinationV1NamespacedLeaseRequest handles readCoordinationV1NamespacedLease operation. // +// Read the specified Lease. +// // GET /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} func (s *Server) handleReadCoordinationV1NamespacedLeaseRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -20644,6 +21017,8 @@ func (s *Server) handleReadCoordinationV1NamespacedLeaseRequest(args [2]string, // handleReadCoreV1ComponentStatusRequest handles readCoreV1ComponentStatus operation. // +// Read the specified ComponentStatus. +// // GET /api/v1/componentstatuses/{name} func (s *Server) handleReadCoreV1ComponentStatusRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -20752,6 +21127,8 @@ func (s *Server) handleReadCoreV1ComponentStatusRequest(args [1]string, w http.R // handleReadCoreV1NamespaceRequest handles readCoreV1Namespace operation. // +// Read the specified Namespace. +// // GET /api/v1/namespaces/{name} func (s *Server) handleReadCoreV1NamespaceRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -20860,6 +21237,8 @@ func (s *Server) handleReadCoreV1NamespaceRequest(args [1]string, w http.Respons // handleReadCoreV1NamespaceStatusRequest handles readCoreV1NamespaceStatus operation. // +// Read status of the specified Namespace. +// // GET /api/v1/namespaces/{name}/status func (s *Server) handleReadCoreV1NamespaceStatusRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -20968,6 +21347,8 @@ func (s *Server) handleReadCoreV1NamespaceStatusRequest(args [1]string, w http.R // handleReadCoreV1NamespacedConfigMapRequest handles readCoreV1NamespacedConfigMap operation. // +// Read the specified ConfigMap. +// // GET /api/v1/namespaces/{namespace}/configmaps/{name} func (s *Server) handleReadCoreV1NamespacedConfigMapRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -21077,6 +21458,8 @@ func (s *Server) handleReadCoreV1NamespacedConfigMapRequest(args [2]string, w ht // handleReadCoreV1NamespacedEndpointsRequest handles readCoreV1NamespacedEndpoints operation. // +// Read the specified Endpoints. +// // GET /api/v1/namespaces/{namespace}/endpoints/{name} func (s *Server) handleReadCoreV1NamespacedEndpointsRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -21186,6 +21569,8 @@ func (s *Server) handleReadCoreV1NamespacedEndpointsRequest(args [2]string, w ht // handleReadCoreV1NamespacedEventRequest handles readCoreV1NamespacedEvent operation. // +// Read the specified Event. +// // GET /api/v1/namespaces/{namespace}/events/{name} func (s *Server) handleReadCoreV1NamespacedEventRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -21295,6 +21680,8 @@ func (s *Server) handleReadCoreV1NamespacedEventRequest(args [2]string, w http.R // handleReadCoreV1NamespacedLimitRangeRequest handles readCoreV1NamespacedLimitRange operation. // +// Read the specified LimitRange. +// // GET /api/v1/namespaces/{namespace}/limitranges/{name} func (s *Server) handleReadCoreV1NamespacedLimitRangeRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -21404,6 +21791,8 @@ func (s *Server) handleReadCoreV1NamespacedLimitRangeRequest(args [2]string, w h // handleReadCoreV1NamespacedPersistentVolumeClaimRequest handles readCoreV1NamespacedPersistentVolumeClaim operation. // +// Read the specified PersistentVolumeClaim. +// // GET /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} func (s *Server) handleReadCoreV1NamespacedPersistentVolumeClaimRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -21513,6 +21902,8 @@ func (s *Server) handleReadCoreV1NamespacedPersistentVolumeClaimRequest(args [2] // handleReadCoreV1NamespacedPersistentVolumeClaimStatusRequest handles readCoreV1NamespacedPersistentVolumeClaimStatus operation. // +// Read status of the specified PersistentVolumeClaim. +// // GET /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status func (s *Server) handleReadCoreV1NamespacedPersistentVolumeClaimStatusRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -21622,6 +22013,8 @@ func (s *Server) handleReadCoreV1NamespacedPersistentVolumeClaimStatusRequest(ar // handleReadCoreV1NamespacedPodRequest handles readCoreV1NamespacedPod operation. // +// Read the specified Pod. +// // GET /api/v1/namespaces/{namespace}/pods/{name} func (s *Server) handleReadCoreV1NamespacedPodRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -21731,6 +22124,8 @@ func (s *Server) handleReadCoreV1NamespacedPodRequest(args [2]string, w http.Res // handleReadCoreV1NamespacedPodEphemeralcontainersRequest handles readCoreV1NamespacedPodEphemeralcontainers operation. // +// Read ephemeralcontainers of the specified Pod. +// // GET /api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers func (s *Server) handleReadCoreV1NamespacedPodEphemeralcontainersRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -21840,6 +22235,8 @@ func (s *Server) handleReadCoreV1NamespacedPodEphemeralcontainersRequest(args [2 // handleReadCoreV1NamespacedPodLogRequest handles readCoreV1NamespacedPodLog operation. // +// Read log of the specified Pod. +// // GET /api/v1/namespaces/{namespace}/pods/{name}/log func (s *Server) handleReadCoreV1NamespacedPodLogRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -21957,6 +22354,8 @@ func (s *Server) handleReadCoreV1NamespacedPodLogRequest(args [2]string, w http. // handleReadCoreV1NamespacedPodStatusRequest handles readCoreV1NamespacedPodStatus operation. // +// Read status of the specified Pod. +// // GET /api/v1/namespaces/{namespace}/pods/{name}/status func (s *Server) handleReadCoreV1NamespacedPodStatusRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -22066,6 +22465,8 @@ func (s *Server) handleReadCoreV1NamespacedPodStatusRequest(args [2]string, w ht // handleReadCoreV1NamespacedPodTemplateRequest handles readCoreV1NamespacedPodTemplate operation. // +// Read the specified PodTemplate. +// // GET /api/v1/namespaces/{namespace}/podtemplates/{name} func (s *Server) handleReadCoreV1NamespacedPodTemplateRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -22175,6 +22576,8 @@ func (s *Server) handleReadCoreV1NamespacedPodTemplateRequest(args [2]string, w // handleReadCoreV1NamespacedReplicationControllerRequest handles readCoreV1NamespacedReplicationController operation. // +// Read the specified ReplicationController. +// // GET /api/v1/namespaces/{namespace}/replicationcontrollers/{name} func (s *Server) handleReadCoreV1NamespacedReplicationControllerRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -22284,6 +22687,8 @@ func (s *Server) handleReadCoreV1NamespacedReplicationControllerRequest(args [2] // handleReadCoreV1NamespacedReplicationControllerScaleRequest handles readCoreV1NamespacedReplicationControllerScale operation. // +// Read scale of the specified ReplicationController. +// // GET /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale func (s *Server) handleReadCoreV1NamespacedReplicationControllerScaleRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -22393,6 +22798,8 @@ func (s *Server) handleReadCoreV1NamespacedReplicationControllerScaleRequest(arg // handleReadCoreV1NamespacedReplicationControllerStatusRequest handles readCoreV1NamespacedReplicationControllerStatus operation. // +// Read status of the specified ReplicationController. +// // GET /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status func (s *Server) handleReadCoreV1NamespacedReplicationControllerStatusRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -22502,6 +22909,8 @@ func (s *Server) handleReadCoreV1NamespacedReplicationControllerStatusRequest(ar // handleReadCoreV1NamespacedResourceQuotaRequest handles readCoreV1NamespacedResourceQuota operation. // +// Read the specified ResourceQuota. +// // GET /api/v1/namespaces/{namespace}/resourcequotas/{name} func (s *Server) handleReadCoreV1NamespacedResourceQuotaRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -22611,6 +23020,8 @@ func (s *Server) handleReadCoreV1NamespacedResourceQuotaRequest(args [2]string, // handleReadCoreV1NamespacedResourceQuotaStatusRequest handles readCoreV1NamespacedResourceQuotaStatus operation. // +// Read status of the specified ResourceQuota. +// // GET /api/v1/namespaces/{namespace}/resourcequotas/{name}/status func (s *Server) handleReadCoreV1NamespacedResourceQuotaStatusRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -22720,6 +23131,8 @@ func (s *Server) handleReadCoreV1NamespacedResourceQuotaStatusRequest(args [2]st // handleReadCoreV1NamespacedSecretRequest handles readCoreV1NamespacedSecret operation. // +// Read the specified Secret. +// // GET /api/v1/namespaces/{namespace}/secrets/{name} func (s *Server) handleReadCoreV1NamespacedSecretRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -22829,6 +23242,8 @@ func (s *Server) handleReadCoreV1NamespacedSecretRequest(args [2]string, w http. // handleReadCoreV1NamespacedServiceRequest handles readCoreV1NamespacedService operation. // +// Read the specified Service. +// // GET /api/v1/namespaces/{namespace}/services/{name} func (s *Server) handleReadCoreV1NamespacedServiceRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -22938,6 +23353,8 @@ func (s *Server) handleReadCoreV1NamespacedServiceRequest(args [2]string, w http // handleReadCoreV1NamespacedServiceAccountRequest handles readCoreV1NamespacedServiceAccount operation. // +// Read the specified ServiceAccount. +// // GET /api/v1/namespaces/{namespace}/serviceaccounts/{name} func (s *Server) handleReadCoreV1NamespacedServiceAccountRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -23047,6 +23464,8 @@ func (s *Server) handleReadCoreV1NamespacedServiceAccountRequest(args [2]string, // handleReadCoreV1NamespacedServiceStatusRequest handles readCoreV1NamespacedServiceStatus operation. // +// Read status of the specified Service. +// // GET /api/v1/namespaces/{namespace}/services/{name}/status func (s *Server) handleReadCoreV1NamespacedServiceStatusRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -23156,6 +23575,8 @@ func (s *Server) handleReadCoreV1NamespacedServiceStatusRequest(args [2]string, // handleReadCoreV1NodeRequest handles readCoreV1Node operation. // +// Read the specified Node. +// // GET /api/v1/nodes/{name} func (s *Server) handleReadCoreV1NodeRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -23264,6 +23685,8 @@ func (s *Server) handleReadCoreV1NodeRequest(args [1]string, w http.ResponseWrit // handleReadCoreV1NodeStatusRequest handles readCoreV1NodeStatus operation. // +// Read status of the specified Node. +// // GET /api/v1/nodes/{name}/status func (s *Server) handleReadCoreV1NodeStatusRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -23372,6 +23795,8 @@ func (s *Server) handleReadCoreV1NodeStatusRequest(args [1]string, w http.Respon // handleReadCoreV1PersistentVolumeRequest handles readCoreV1PersistentVolume operation. // +// Read the specified PersistentVolume. +// // GET /api/v1/persistentvolumes/{name} func (s *Server) handleReadCoreV1PersistentVolumeRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -23480,6 +23905,8 @@ func (s *Server) handleReadCoreV1PersistentVolumeRequest(args [1]string, w http. // handleReadCoreV1PersistentVolumeStatusRequest handles readCoreV1PersistentVolumeStatus operation. // +// Read status of the specified PersistentVolume. +// // GET /api/v1/persistentvolumes/{name}/status func (s *Server) handleReadCoreV1PersistentVolumeStatusRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -23588,6 +24015,8 @@ func (s *Server) handleReadCoreV1PersistentVolumeStatusRequest(args [1]string, w // handleReadDiscoveryV1NamespacedEndpointSliceRequest handles readDiscoveryV1NamespacedEndpointSlice operation. // +// Read the specified EndpointSlice. +// // GET /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name} func (s *Server) handleReadDiscoveryV1NamespacedEndpointSliceRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -23697,6 +24126,8 @@ func (s *Server) handleReadDiscoveryV1NamespacedEndpointSliceRequest(args [2]str // handleReadDiscoveryV1beta1NamespacedEndpointSliceRequest handles readDiscoveryV1beta1NamespacedEndpointSlice operation. // +// Read the specified EndpointSlice. +// // GET /apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices/{name} func (s *Server) handleReadDiscoveryV1beta1NamespacedEndpointSliceRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -23806,6 +24237,8 @@ func (s *Server) handleReadDiscoveryV1beta1NamespacedEndpointSliceRequest(args [ // handleReadEventsV1NamespacedEventRequest handles readEventsV1NamespacedEvent operation. // +// Read the specified Event. +// // GET /apis/events.k8s.io/v1/namespaces/{namespace}/events/{name} func (s *Server) handleReadEventsV1NamespacedEventRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -23915,6 +24348,8 @@ func (s *Server) handleReadEventsV1NamespacedEventRequest(args [2]string, w http // handleReadEventsV1beta1NamespacedEventRequest handles readEventsV1beta1NamespacedEvent operation. // +// Read the specified Event. +// // GET /apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name} func (s *Server) handleReadEventsV1beta1NamespacedEventRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -24024,6 +24459,8 @@ func (s *Server) handleReadEventsV1beta1NamespacedEventRequest(args [2]string, w // handleReadFlowcontrolApiserverV1beta1FlowSchemaRequest handles readFlowcontrolApiserverV1beta1FlowSchema operation. // +// Read the specified FlowSchema. +// // GET /apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name} func (s *Server) handleReadFlowcontrolApiserverV1beta1FlowSchemaRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -24132,6 +24569,8 @@ func (s *Server) handleReadFlowcontrolApiserverV1beta1FlowSchemaRequest(args [1] // handleReadFlowcontrolApiserverV1beta1FlowSchemaStatusRequest handles readFlowcontrolApiserverV1beta1FlowSchemaStatus operation. // +// Read status of the specified FlowSchema. +// // GET /apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}/status func (s *Server) handleReadFlowcontrolApiserverV1beta1FlowSchemaStatusRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -24240,6 +24679,8 @@ func (s *Server) handleReadFlowcontrolApiserverV1beta1FlowSchemaStatusRequest(ar // handleReadFlowcontrolApiserverV1beta1PriorityLevelConfigurationRequest handles readFlowcontrolApiserverV1beta1PriorityLevelConfiguration operation. // +// Read the specified PriorityLevelConfiguration. +// // GET /apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name} func (s *Server) handleReadFlowcontrolApiserverV1beta1PriorityLevelConfigurationRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -24348,6 +24789,8 @@ func (s *Server) handleReadFlowcontrolApiserverV1beta1PriorityLevelConfiguration // handleReadFlowcontrolApiserverV1beta1PriorityLevelConfigurationStatusRequest handles readFlowcontrolApiserverV1beta1PriorityLevelConfigurationStatus operation. // +// Read status of the specified PriorityLevelConfiguration. +// // GET /apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}/status func (s *Server) handleReadFlowcontrolApiserverV1beta1PriorityLevelConfigurationStatusRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -24456,6 +24899,8 @@ func (s *Server) handleReadFlowcontrolApiserverV1beta1PriorityLevelConfiguration // handleReadFlowcontrolApiserverV1beta2FlowSchemaRequest handles readFlowcontrolApiserverV1beta2FlowSchema operation. // +// Read the specified FlowSchema. +// // GET /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name} func (s *Server) handleReadFlowcontrolApiserverV1beta2FlowSchemaRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -24564,6 +25009,8 @@ func (s *Server) handleReadFlowcontrolApiserverV1beta2FlowSchemaRequest(args [1] // handleReadFlowcontrolApiserverV1beta2FlowSchemaStatusRequest handles readFlowcontrolApiserverV1beta2FlowSchemaStatus operation. // +// Read status of the specified FlowSchema. +// // GET /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}/status func (s *Server) handleReadFlowcontrolApiserverV1beta2FlowSchemaStatusRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -24672,6 +25119,8 @@ func (s *Server) handleReadFlowcontrolApiserverV1beta2FlowSchemaStatusRequest(ar // handleReadFlowcontrolApiserverV1beta2PriorityLevelConfigurationRequest handles readFlowcontrolApiserverV1beta2PriorityLevelConfiguration operation. // +// Read the specified PriorityLevelConfiguration. +// // GET /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name} func (s *Server) handleReadFlowcontrolApiserverV1beta2PriorityLevelConfigurationRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -24780,6 +25229,8 @@ func (s *Server) handleReadFlowcontrolApiserverV1beta2PriorityLevelConfiguration // handleReadFlowcontrolApiserverV1beta2PriorityLevelConfigurationStatusRequest handles readFlowcontrolApiserverV1beta2PriorityLevelConfigurationStatus operation. // +// Read status of the specified PriorityLevelConfiguration. +// // GET /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}/status func (s *Server) handleReadFlowcontrolApiserverV1beta2PriorityLevelConfigurationStatusRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -24888,6 +25339,8 @@ func (s *Server) handleReadFlowcontrolApiserverV1beta2PriorityLevelConfiguration // handleReadInternalApiserverV1alpha1StorageVersionRequest handles readInternalApiserverV1alpha1StorageVersion operation. // +// Read the specified StorageVersion. +// // GET /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name} func (s *Server) handleReadInternalApiserverV1alpha1StorageVersionRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -24996,6 +25449,8 @@ func (s *Server) handleReadInternalApiserverV1alpha1StorageVersionRequest(args [ // handleReadInternalApiserverV1alpha1StorageVersionStatusRequest handles readInternalApiserverV1alpha1StorageVersionStatus operation. // +// Read status of the specified StorageVersion. +// // GET /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status func (s *Server) handleReadInternalApiserverV1alpha1StorageVersionStatusRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -25104,6 +25559,8 @@ func (s *Server) handleReadInternalApiserverV1alpha1StorageVersionStatusRequest( // handleReadNetworkingV1IngressClassRequest handles readNetworkingV1IngressClass operation. // +// Read the specified IngressClass. +// // GET /apis/networking.k8s.io/v1/ingressclasses/{name} func (s *Server) handleReadNetworkingV1IngressClassRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -25212,6 +25669,8 @@ func (s *Server) handleReadNetworkingV1IngressClassRequest(args [1]string, w htt // handleReadNetworkingV1NamespacedIngressRequest handles readNetworkingV1NamespacedIngress operation. // +// Read the specified Ingress. +// // GET /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name} func (s *Server) handleReadNetworkingV1NamespacedIngressRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -25321,6 +25780,8 @@ func (s *Server) handleReadNetworkingV1NamespacedIngressRequest(args [2]string, // handleReadNetworkingV1NamespacedIngressStatusRequest handles readNetworkingV1NamespacedIngressStatus operation. // +// Read status of the specified Ingress. +// // GET /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status func (s *Server) handleReadNetworkingV1NamespacedIngressStatusRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -25430,6 +25891,8 @@ func (s *Server) handleReadNetworkingV1NamespacedIngressStatusRequest(args [2]st // handleReadNetworkingV1NamespacedNetworkPolicyRequest handles readNetworkingV1NamespacedNetworkPolicy operation. // +// Read the specified NetworkPolicy. +// // GET /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name} func (s *Server) handleReadNetworkingV1NamespacedNetworkPolicyRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -25539,6 +26002,8 @@ func (s *Server) handleReadNetworkingV1NamespacedNetworkPolicyRequest(args [2]st // handleReadNodeV1RuntimeClassRequest handles readNodeV1RuntimeClass operation. // +// Read the specified RuntimeClass. +// // GET /apis/node.k8s.io/v1/runtimeclasses/{name} func (s *Server) handleReadNodeV1RuntimeClassRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -25647,6 +26112,8 @@ func (s *Server) handleReadNodeV1RuntimeClassRequest(args [1]string, w http.Resp // handleReadNodeV1alpha1RuntimeClassRequest handles readNodeV1alpha1RuntimeClass operation. // +// Read the specified RuntimeClass. +// // GET /apis/node.k8s.io/v1alpha1/runtimeclasses/{name} func (s *Server) handleReadNodeV1alpha1RuntimeClassRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -25755,6 +26222,8 @@ func (s *Server) handleReadNodeV1alpha1RuntimeClassRequest(args [1]string, w htt // handleReadNodeV1beta1RuntimeClassRequest handles readNodeV1beta1RuntimeClass operation. // +// Read the specified RuntimeClass. +// // GET /apis/node.k8s.io/v1beta1/runtimeclasses/{name} func (s *Server) handleReadNodeV1beta1RuntimeClassRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -25863,6 +26332,8 @@ func (s *Server) handleReadNodeV1beta1RuntimeClassRequest(args [1]string, w http // handleReadPolicyV1NamespacedPodDisruptionBudgetRequest handles readPolicyV1NamespacedPodDisruptionBudget operation. // +// Read the specified PodDisruptionBudget. +// // GET /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name} func (s *Server) handleReadPolicyV1NamespacedPodDisruptionBudgetRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -25972,6 +26443,8 @@ func (s *Server) handleReadPolicyV1NamespacedPodDisruptionBudgetRequest(args [2] // handleReadPolicyV1NamespacedPodDisruptionBudgetStatusRequest handles readPolicyV1NamespacedPodDisruptionBudgetStatus operation. // +// Read status of the specified PodDisruptionBudget. +// // GET /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status func (s *Server) handleReadPolicyV1NamespacedPodDisruptionBudgetStatusRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -26081,6 +26554,8 @@ func (s *Server) handleReadPolicyV1NamespacedPodDisruptionBudgetStatusRequest(ar // handleReadPolicyV1beta1NamespacedPodDisruptionBudgetRequest handles readPolicyV1beta1NamespacedPodDisruptionBudget operation. // +// Read the specified PodDisruptionBudget. +// // GET /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name} func (s *Server) handleReadPolicyV1beta1NamespacedPodDisruptionBudgetRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -26190,6 +26665,8 @@ func (s *Server) handleReadPolicyV1beta1NamespacedPodDisruptionBudgetRequest(arg // handleReadPolicyV1beta1NamespacedPodDisruptionBudgetStatusRequest handles readPolicyV1beta1NamespacedPodDisruptionBudgetStatus operation. // +// Read status of the specified PodDisruptionBudget. +// // GET /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status func (s *Server) handleReadPolicyV1beta1NamespacedPodDisruptionBudgetStatusRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -26299,6 +26776,8 @@ func (s *Server) handleReadPolicyV1beta1NamespacedPodDisruptionBudgetStatusReque // handleReadPolicyV1beta1PodSecurityPolicyRequest handles readPolicyV1beta1PodSecurityPolicy operation. // +// Read the specified PodSecurityPolicy. +// // GET /apis/policy/v1beta1/podsecuritypolicies/{name} func (s *Server) handleReadPolicyV1beta1PodSecurityPolicyRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -26407,6 +26886,8 @@ func (s *Server) handleReadPolicyV1beta1PodSecurityPolicyRequest(args [1]string, // handleReadRbacAuthorizationV1ClusterRoleRequest handles readRbacAuthorizationV1ClusterRole operation. // +// Read the specified ClusterRole. +// // GET /apis/rbac.authorization.k8s.io/v1/clusterroles/{name} func (s *Server) handleReadRbacAuthorizationV1ClusterRoleRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -26515,6 +26996,8 @@ func (s *Server) handleReadRbacAuthorizationV1ClusterRoleRequest(args [1]string, // handleReadRbacAuthorizationV1ClusterRoleBindingRequest handles readRbacAuthorizationV1ClusterRoleBinding operation. // +// Read the specified ClusterRoleBinding. +// // GET /apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name} func (s *Server) handleReadRbacAuthorizationV1ClusterRoleBindingRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -26623,6 +27106,8 @@ func (s *Server) handleReadRbacAuthorizationV1ClusterRoleBindingRequest(args [1] // handleReadRbacAuthorizationV1NamespacedRoleRequest handles readRbacAuthorizationV1NamespacedRole operation. // +// Read the specified Role. +// // GET /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name} func (s *Server) handleReadRbacAuthorizationV1NamespacedRoleRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -26732,6 +27217,8 @@ func (s *Server) handleReadRbacAuthorizationV1NamespacedRoleRequest(args [2]stri // handleReadRbacAuthorizationV1NamespacedRoleBindingRequest handles readRbacAuthorizationV1NamespacedRoleBinding operation. // +// Read the specified RoleBinding. +// // GET /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name} func (s *Server) handleReadRbacAuthorizationV1NamespacedRoleBindingRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -26841,6 +27328,8 @@ func (s *Server) handleReadRbacAuthorizationV1NamespacedRoleBindingRequest(args // handleReadSchedulingV1PriorityClassRequest handles readSchedulingV1PriorityClass operation. // +// Read the specified PriorityClass. +// // GET /apis/scheduling.k8s.io/v1/priorityclasses/{name} func (s *Server) handleReadSchedulingV1PriorityClassRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -26949,6 +27438,8 @@ func (s *Server) handleReadSchedulingV1PriorityClassRequest(args [1]string, w ht // handleReadStorageV1CSIDriverRequest handles readStorageV1CSIDriver operation. // +// Read the specified CSIDriver. +// // GET /apis/storage.k8s.io/v1/csidrivers/{name} func (s *Server) handleReadStorageV1CSIDriverRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -27057,6 +27548,8 @@ func (s *Server) handleReadStorageV1CSIDriverRequest(args [1]string, w http.Resp // handleReadStorageV1CSINodeRequest handles readStorageV1CSINode operation. // +// Read the specified CSINode. +// // GET /apis/storage.k8s.io/v1/csinodes/{name} func (s *Server) handleReadStorageV1CSINodeRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -27165,6 +27658,8 @@ func (s *Server) handleReadStorageV1CSINodeRequest(args [1]string, w http.Respon // handleReadStorageV1StorageClassRequest handles readStorageV1StorageClass operation. // +// Read the specified StorageClass. +// // GET /apis/storage.k8s.io/v1/storageclasses/{name} func (s *Server) handleReadStorageV1StorageClassRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -27273,6 +27768,8 @@ func (s *Server) handleReadStorageV1StorageClassRequest(args [1]string, w http.R // handleReadStorageV1VolumeAttachmentRequest handles readStorageV1VolumeAttachment operation. // +// Read the specified VolumeAttachment. +// // GET /apis/storage.k8s.io/v1/volumeattachments/{name} func (s *Server) handleReadStorageV1VolumeAttachmentRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -27381,6 +27878,8 @@ func (s *Server) handleReadStorageV1VolumeAttachmentRequest(args [1]string, w ht // handleReadStorageV1VolumeAttachmentStatusRequest handles readStorageV1VolumeAttachmentStatus operation. // +// Read status of the specified VolumeAttachment. +// // GET /apis/storage.k8s.io/v1/volumeattachments/{name}/status func (s *Server) handleReadStorageV1VolumeAttachmentStatusRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -27489,6 +27988,8 @@ func (s *Server) handleReadStorageV1VolumeAttachmentStatusRequest(args [1]string // handleReadStorageV1alpha1NamespacedCSIStorageCapacityRequest handles readStorageV1alpha1NamespacedCSIStorageCapacity operation. // +// Read the specified CSIStorageCapacity. +// // GET /apis/storage.k8s.io/v1alpha1/namespaces/{namespace}/csistoragecapacities/{name} func (s *Server) handleReadStorageV1alpha1NamespacedCSIStorageCapacityRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -27598,6 +28099,8 @@ func (s *Server) handleReadStorageV1alpha1NamespacedCSIStorageCapacityRequest(ar // handleReadStorageV1beta1NamespacedCSIStorageCapacityRequest handles readStorageV1beta1NamespacedCSIStorageCapacity operation. // +// Read the specified CSIStorageCapacity. +// // GET /apis/storage.k8s.io/v1beta1/namespaces/{namespace}/csistoragecapacities/{name} func (s *Server) handleReadStorageV1beta1NamespacedCSIStorageCapacityRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -27707,6 +28210,10 @@ func (s *Server) handleReadStorageV1beta1NamespacedCSIStorageCapacityRequest(arg // handleWatchAdmissionregistrationV1MutatingWebhookConfigurationRequest handles watchAdmissionregistrationV1MutatingWebhookConfiguration operation. // +// Watch changes to an object of kind MutatingWebhookConfiguration. deprecated: use the 'watch' +// parameter with a list operation instead, filtered to a single item with the 'fieldSelector' +// parameter. +// // GET /apis/admissionregistration.k8s.io/v1/watch/mutatingwebhookconfigurations/{name} func (s *Server) handleWatchAdmissionregistrationV1MutatingWebhookConfigurationRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -27824,6 +28331,9 @@ func (s *Server) handleWatchAdmissionregistrationV1MutatingWebhookConfigurationR // handleWatchAdmissionregistrationV1MutatingWebhookConfigurationListRequest handles watchAdmissionregistrationV1MutatingWebhookConfigurationList operation. // +// Watch individual changes to a list of MutatingWebhookConfiguration. deprecated: use the 'watch' +// parameter with a list operation instead. +// // GET /apis/admissionregistration.k8s.io/v1/watch/mutatingwebhookconfigurations func (s *Server) handleWatchAdmissionregistrationV1MutatingWebhookConfigurationListRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -27940,6 +28450,10 @@ func (s *Server) handleWatchAdmissionregistrationV1MutatingWebhookConfigurationL // handleWatchAdmissionregistrationV1ValidatingWebhookConfigurationRequest handles watchAdmissionregistrationV1ValidatingWebhookConfiguration operation. // +// Watch changes to an object of kind ValidatingWebhookConfiguration. deprecated: use the 'watch' +// parameter with a list operation instead, filtered to a single item with the 'fieldSelector' +// parameter. +// // GET /apis/admissionregistration.k8s.io/v1/watch/validatingwebhookconfigurations/{name} func (s *Server) handleWatchAdmissionregistrationV1ValidatingWebhookConfigurationRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -28057,6 +28571,9 @@ func (s *Server) handleWatchAdmissionregistrationV1ValidatingWebhookConfiguratio // handleWatchAdmissionregistrationV1ValidatingWebhookConfigurationListRequest handles watchAdmissionregistrationV1ValidatingWebhookConfigurationList operation. // +// Watch individual changes to a list of ValidatingWebhookConfiguration. deprecated: use the 'watch' +// parameter with a list operation instead. +// // GET /apis/admissionregistration.k8s.io/v1/watch/validatingwebhookconfigurations func (s *Server) handleWatchAdmissionregistrationV1ValidatingWebhookConfigurationListRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -28173,6 +28690,9 @@ func (s *Server) handleWatchAdmissionregistrationV1ValidatingWebhookConfiguratio // handleWatchApiextensionsV1CustomResourceDefinitionRequest handles watchApiextensionsV1CustomResourceDefinition operation. // +// Watch changes to an object of kind CustomResourceDefinition. deprecated: use the 'watch' parameter +// with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions/{name} func (s *Server) handleWatchApiextensionsV1CustomResourceDefinitionRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -28290,6 +28810,9 @@ func (s *Server) handleWatchApiextensionsV1CustomResourceDefinitionRequest(args // handleWatchApiextensionsV1CustomResourceDefinitionListRequest handles watchApiextensionsV1CustomResourceDefinitionList operation. // +// Watch individual changes to a list of CustomResourceDefinition. deprecated: use the 'watch' +// parameter with a list operation instead. +// // GET /apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions func (s *Server) handleWatchApiextensionsV1CustomResourceDefinitionListRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -28406,6 +28929,9 @@ func (s *Server) handleWatchApiextensionsV1CustomResourceDefinitionListRequest(a // handleWatchApiregistrationV1APIServiceRequest handles watchApiregistrationV1APIService operation. // +// Watch changes to an object of kind APIService. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/apiregistration.k8s.io/v1/watch/apiservices/{name} func (s *Server) handleWatchApiregistrationV1APIServiceRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -28523,6 +29049,9 @@ func (s *Server) handleWatchApiregistrationV1APIServiceRequest(args [1]string, w // handleWatchApiregistrationV1APIServiceListRequest handles watchApiregistrationV1APIServiceList operation. // +// Watch individual changes to a list of APIService. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /apis/apiregistration.k8s.io/v1/watch/apiservices func (s *Server) handleWatchApiregistrationV1APIServiceListRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -28639,6 +29168,9 @@ func (s *Server) handleWatchApiregistrationV1APIServiceListRequest(args [0]strin // handleWatchAppsV1ControllerRevisionListForAllNamespacesRequest handles watchAppsV1ControllerRevisionListForAllNamespaces operation. // +// Watch individual changes to a list of ControllerRevision. deprecated: use the 'watch' parameter +// with a list operation instead. +// // GET /apis/apps/v1/watch/controllerrevisions func (s *Server) handleWatchAppsV1ControllerRevisionListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -28755,6 +29287,9 @@ func (s *Server) handleWatchAppsV1ControllerRevisionListForAllNamespacesRequest( // handleWatchAppsV1DaemonSetListForAllNamespacesRequest handles watchAppsV1DaemonSetListForAllNamespaces operation. // +// Watch individual changes to a list of DaemonSet. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /apis/apps/v1/watch/daemonsets func (s *Server) handleWatchAppsV1DaemonSetListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -28871,6 +29406,9 @@ func (s *Server) handleWatchAppsV1DaemonSetListForAllNamespacesRequest(args [0]s // handleWatchAppsV1DeploymentListForAllNamespacesRequest handles watchAppsV1DeploymentListForAllNamespaces operation. // +// Watch individual changes to a list of Deployment. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /apis/apps/v1/watch/deployments func (s *Server) handleWatchAppsV1DeploymentListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -28987,6 +29525,9 @@ func (s *Server) handleWatchAppsV1DeploymentListForAllNamespacesRequest(args [0] // handleWatchAppsV1NamespacedControllerRevisionRequest handles watchAppsV1NamespacedControllerRevision operation. // +// Watch changes to an object of kind ControllerRevision. deprecated: use the 'watch' parameter with +// a list operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions/{name} func (s *Server) handleWatchAppsV1NamespacedControllerRevisionRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -29105,6 +29646,9 @@ func (s *Server) handleWatchAppsV1NamespacedControllerRevisionRequest(args [2]st // handleWatchAppsV1NamespacedControllerRevisionListRequest handles watchAppsV1NamespacedControllerRevisionList operation. // +// Watch individual changes to a list of ControllerRevision. deprecated: use the 'watch' parameter +// with a list operation instead. +// // GET /apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions func (s *Server) handleWatchAppsV1NamespacedControllerRevisionListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -29222,6 +29766,9 @@ func (s *Server) handleWatchAppsV1NamespacedControllerRevisionListRequest(args [ // handleWatchAppsV1NamespacedDaemonSetRequest handles watchAppsV1NamespacedDaemonSet operation. // +// Watch changes to an object of kind DaemonSet. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/apps/v1/watch/namespaces/{namespace}/daemonsets/{name} func (s *Server) handleWatchAppsV1NamespacedDaemonSetRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -29340,6 +29887,9 @@ func (s *Server) handleWatchAppsV1NamespacedDaemonSetRequest(args [2]string, w h // handleWatchAppsV1NamespacedDaemonSetListRequest handles watchAppsV1NamespacedDaemonSetList operation. // +// Watch individual changes to a list of DaemonSet. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /apis/apps/v1/watch/namespaces/{namespace}/daemonsets func (s *Server) handleWatchAppsV1NamespacedDaemonSetListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -29457,6 +30007,9 @@ func (s *Server) handleWatchAppsV1NamespacedDaemonSetListRequest(args [1]string, // handleWatchAppsV1NamespacedDeploymentRequest handles watchAppsV1NamespacedDeployment operation. // +// Watch changes to an object of kind Deployment. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/apps/v1/watch/namespaces/{namespace}/deployments/{name} func (s *Server) handleWatchAppsV1NamespacedDeploymentRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -29575,6 +30128,9 @@ func (s *Server) handleWatchAppsV1NamespacedDeploymentRequest(args [2]string, w // handleWatchAppsV1NamespacedDeploymentListRequest handles watchAppsV1NamespacedDeploymentList operation. // +// Watch individual changes to a list of Deployment. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /apis/apps/v1/watch/namespaces/{namespace}/deployments func (s *Server) handleWatchAppsV1NamespacedDeploymentListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -29692,6 +30248,9 @@ func (s *Server) handleWatchAppsV1NamespacedDeploymentListRequest(args [1]string // handleWatchAppsV1NamespacedReplicaSetRequest handles watchAppsV1NamespacedReplicaSet operation. // +// Watch changes to an object of kind ReplicaSet. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/apps/v1/watch/namespaces/{namespace}/replicasets/{name} func (s *Server) handleWatchAppsV1NamespacedReplicaSetRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -29810,6 +30369,9 @@ func (s *Server) handleWatchAppsV1NamespacedReplicaSetRequest(args [2]string, w // handleWatchAppsV1NamespacedReplicaSetListRequest handles watchAppsV1NamespacedReplicaSetList operation. // +// Watch individual changes to a list of ReplicaSet. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /apis/apps/v1/watch/namespaces/{namespace}/replicasets func (s *Server) handleWatchAppsV1NamespacedReplicaSetListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -29927,6 +30489,9 @@ func (s *Server) handleWatchAppsV1NamespacedReplicaSetListRequest(args [1]string // handleWatchAppsV1NamespacedStatefulSetRequest handles watchAppsV1NamespacedStatefulSet operation. // +// Watch changes to an object of kind StatefulSet. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/apps/v1/watch/namespaces/{namespace}/statefulsets/{name} func (s *Server) handleWatchAppsV1NamespacedStatefulSetRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -30045,6 +30610,9 @@ func (s *Server) handleWatchAppsV1NamespacedStatefulSetRequest(args [2]string, w // handleWatchAppsV1NamespacedStatefulSetListRequest handles watchAppsV1NamespacedStatefulSetList operation. // +// Watch individual changes to a list of StatefulSet. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /apis/apps/v1/watch/namespaces/{namespace}/statefulsets func (s *Server) handleWatchAppsV1NamespacedStatefulSetListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -30162,6 +30730,9 @@ func (s *Server) handleWatchAppsV1NamespacedStatefulSetListRequest(args [1]strin // handleWatchAppsV1ReplicaSetListForAllNamespacesRequest handles watchAppsV1ReplicaSetListForAllNamespaces operation. // +// Watch individual changes to a list of ReplicaSet. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /apis/apps/v1/watch/replicasets func (s *Server) handleWatchAppsV1ReplicaSetListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -30278,6 +30849,9 @@ func (s *Server) handleWatchAppsV1ReplicaSetListForAllNamespacesRequest(args [0] // handleWatchAppsV1StatefulSetListForAllNamespacesRequest handles watchAppsV1StatefulSetListForAllNamespaces operation. // +// Watch individual changes to a list of StatefulSet. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /apis/apps/v1/watch/statefulsets func (s *Server) handleWatchAppsV1StatefulSetListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -30394,6 +30968,9 @@ func (s *Server) handleWatchAppsV1StatefulSetListForAllNamespacesRequest(args [0 // handleWatchAutoscalingV1HorizontalPodAutoscalerListForAllNamespacesRequest handles watchAutoscalingV1HorizontalPodAutoscalerListForAllNamespaces operation. // +// Watch individual changes to a list of HorizontalPodAutoscaler. deprecated: use the 'watch' +// parameter with a list operation instead. +// // GET /apis/autoscaling/v1/watch/horizontalpodautoscalers func (s *Server) handleWatchAutoscalingV1HorizontalPodAutoscalerListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -30510,6 +31087,9 @@ func (s *Server) handleWatchAutoscalingV1HorizontalPodAutoscalerListForAllNamesp // handleWatchAutoscalingV1NamespacedHorizontalPodAutoscalerRequest handles watchAutoscalingV1NamespacedHorizontalPodAutoscaler operation. // +// Watch changes to an object of kind HorizontalPodAutoscaler. deprecated: use the 'watch' parameter +// with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name} func (s *Server) handleWatchAutoscalingV1NamespacedHorizontalPodAutoscalerRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -30628,6 +31208,9 @@ func (s *Server) handleWatchAutoscalingV1NamespacedHorizontalPodAutoscalerReques // handleWatchAutoscalingV1NamespacedHorizontalPodAutoscalerListRequest handles watchAutoscalingV1NamespacedHorizontalPodAutoscalerList operation. // +// Watch individual changes to a list of HorizontalPodAutoscaler. deprecated: use the 'watch' +// parameter with a list operation instead. +// // GET /apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers func (s *Server) handleWatchAutoscalingV1NamespacedHorizontalPodAutoscalerListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -30745,6 +31328,9 @@ func (s *Server) handleWatchAutoscalingV1NamespacedHorizontalPodAutoscalerListRe // handleWatchAutoscalingV2beta1HorizontalPodAutoscalerListForAllNamespacesRequest handles watchAutoscalingV2beta1HorizontalPodAutoscalerListForAllNamespaces operation. // +// Watch individual changes to a list of HorizontalPodAutoscaler. deprecated: use the 'watch' +// parameter with a list operation instead. +// // GET /apis/autoscaling/v2beta1/watch/horizontalpodautoscalers func (s *Server) handleWatchAutoscalingV2beta1HorizontalPodAutoscalerListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -30861,6 +31447,9 @@ func (s *Server) handleWatchAutoscalingV2beta1HorizontalPodAutoscalerListForAllN // handleWatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerRequest handles watchAutoscalingV2beta1NamespacedHorizontalPodAutoscaler operation. // +// Watch changes to an object of kind HorizontalPodAutoscaler. deprecated: use the 'watch' parameter +// with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/autoscaling/v2beta1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name} func (s *Server) handleWatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -30979,6 +31568,9 @@ func (s *Server) handleWatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerR // handleWatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerListRequest handles watchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerList operation. // +// Watch individual changes to a list of HorizontalPodAutoscaler. deprecated: use the 'watch' +// parameter with a list operation instead. +// // GET /apis/autoscaling/v2beta1/watch/namespaces/{namespace}/horizontalpodautoscalers func (s *Server) handleWatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -31096,6 +31688,9 @@ func (s *Server) handleWatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerL // handleWatchAutoscalingV2beta2HorizontalPodAutoscalerListForAllNamespacesRequest handles watchAutoscalingV2beta2HorizontalPodAutoscalerListForAllNamespaces operation. // +// Watch individual changes to a list of HorizontalPodAutoscaler. deprecated: use the 'watch' +// parameter with a list operation instead. +// // GET /apis/autoscaling/v2beta2/watch/horizontalpodautoscalers func (s *Server) handleWatchAutoscalingV2beta2HorizontalPodAutoscalerListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -31212,6 +31807,9 @@ func (s *Server) handleWatchAutoscalingV2beta2HorizontalPodAutoscalerListForAllN // handleWatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerRequest handles watchAutoscalingV2beta2NamespacedHorizontalPodAutoscaler operation. // +// Watch changes to an object of kind HorizontalPodAutoscaler. deprecated: use the 'watch' parameter +// with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/autoscaling/v2beta2/watch/namespaces/{namespace}/horizontalpodautoscalers/{name} func (s *Server) handleWatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -31330,6 +31928,9 @@ func (s *Server) handleWatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerR // handleWatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerListRequest handles watchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerList operation. // +// Watch individual changes to a list of HorizontalPodAutoscaler. deprecated: use the 'watch' +// parameter with a list operation instead. +// // GET /apis/autoscaling/v2beta2/watch/namespaces/{namespace}/horizontalpodautoscalers func (s *Server) handleWatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -31447,6 +32048,9 @@ func (s *Server) handleWatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerL // handleWatchBatchV1CronJobListForAllNamespacesRequest handles watchBatchV1CronJobListForAllNamespaces operation. // +// Watch individual changes to a list of CronJob. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /apis/batch/v1/watch/cronjobs func (s *Server) handleWatchBatchV1CronJobListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -31563,6 +32167,9 @@ func (s *Server) handleWatchBatchV1CronJobListForAllNamespacesRequest(args [0]st // handleWatchBatchV1JobListForAllNamespacesRequest handles watchBatchV1JobListForAllNamespaces operation. // +// Watch individual changes to a list of Job. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /apis/batch/v1/watch/jobs func (s *Server) handleWatchBatchV1JobListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -31679,6 +32286,9 @@ func (s *Server) handleWatchBatchV1JobListForAllNamespacesRequest(args [0]string // handleWatchBatchV1NamespacedCronJobRequest handles watchBatchV1NamespacedCronJob operation. // +// Watch changes to an object of kind CronJob. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/batch/v1/watch/namespaces/{namespace}/cronjobs/{name} func (s *Server) handleWatchBatchV1NamespacedCronJobRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -31797,6 +32407,9 @@ func (s *Server) handleWatchBatchV1NamespacedCronJobRequest(args [2]string, w ht // handleWatchBatchV1NamespacedCronJobListRequest handles watchBatchV1NamespacedCronJobList operation. // +// Watch individual changes to a list of CronJob. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /apis/batch/v1/watch/namespaces/{namespace}/cronjobs func (s *Server) handleWatchBatchV1NamespacedCronJobListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -31914,6 +32527,9 @@ func (s *Server) handleWatchBatchV1NamespacedCronJobListRequest(args [1]string, // handleWatchBatchV1NamespacedJobRequest handles watchBatchV1NamespacedJob operation. // +// Watch changes to an object of kind Job. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/batch/v1/watch/namespaces/{namespace}/jobs/{name} func (s *Server) handleWatchBatchV1NamespacedJobRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -32032,6 +32648,9 @@ func (s *Server) handleWatchBatchV1NamespacedJobRequest(args [2]string, w http.R // handleWatchBatchV1NamespacedJobListRequest handles watchBatchV1NamespacedJobList operation. // +// Watch individual changes to a list of Job. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /apis/batch/v1/watch/namespaces/{namespace}/jobs func (s *Server) handleWatchBatchV1NamespacedJobListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -32149,6 +32768,9 @@ func (s *Server) handleWatchBatchV1NamespacedJobListRequest(args [1]string, w ht // handleWatchBatchV1beta1CronJobListForAllNamespacesRequest handles watchBatchV1beta1CronJobListForAllNamespaces operation. // +// Watch individual changes to a list of CronJob. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /apis/batch/v1beta1/watch/cronjobs func (s *Server) handleWatchBatchV1beta1CronJobListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -32265,6 +32887,9 @@ func (s *Server) handleWatchBatchV1beta1CronJobListForAllNamespacesRequest(args // handleWatchBatchV1beta1NamespacedCronJobRequest handles watchBatchV1beta1NamespacedCronJob operation. // +// Watch changes to an object of kind CronJob. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/batch/v1beta1/watch/namespaces/{namespace}/cronjobs/{name} func (s *Server) handleWatchBatchV1beta1NamespacedCronJobRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -32383,6 +33008,9 @@ func (s *Server) handleWatchBatchV1beta1NamespacedCronJobRequest(args [2]string, // handleWatchBatchV1beta1NamespacedCronJobListRequest handles watchBatchV1beta1NamespacedCronJobList operation. // +// Watch individual changes to a list of CronJob. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /apis/batch/v1beta1/watch/namespaces/{namespace}/cronjobs func (s *Server) handleWatchBatchV1beta1NamespacedCronJobListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -32500,6 +33128,10 @@ func (s *Server) handleWatchBatchV1beta1NamespacedCronJobListRequest(args [1]str // handleWatchCertificatesV1CertificateSigningRequestRequest handles watchCertificatesV1CertificateSigningRequest operation. // +// Watch changes to an object of kind CertificateSigningRequest. deprecated: use the 'watch' +// parameter with a list operation instead, filtered to a single item with the 'fieldSelector' +// parameter. +// // GET /apis/certificates.k8s.io/v1/watch/certificatesigningrequests/{name} func (s *Server) handleWatchCertificatesV1CertificateSigningRequestRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -32617,6 +33249,9 @@ func (s *Server) handleWatchCertificatesV1CertificateSigningRequestRequest(args // handleWatchCertificatesV1CertificateSigningRequestListRequest handles watchCertificatesV1CertificateSigningRequestList operation. // +// Watch individual changes to a list of CertificateSigningRequest. deprecated: use the 'watch' +// parameter with a list operation instead. +// // GET /apis/certificates.k8s.io/v1/watch/certificatesigningrequests func (s *Server) handleWatchCertificatesV1CertificateSigningRequestListRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -32733,6 +33368,9 @@ func (s *Server) handleWatchCertificatesV1CertificateSigningRequestListRequest(a // handleWatchCoordinationV1LeaseListForAllNamespacesRequest handles watchCoordinationV1LeaseListForAllNamespaces operation. // +// Watch individual changes to a list of Lease. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /apis/coordination.k8s.io/v1/watch/leases func (s *Server) handleWatchCoordinationV1LeaseListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -32849,6 +33487,9 @@ func (s *Server) handleWatchCoordinationV1LeaseListForAllNamespacesRequest(args // handleWatchCoordinationV1NamespacedLeaseRequest handles watchCoordinationV1NamespacedLease operation. // +// Watch changes to an object of kind Lease. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases/{name} func (s *Server) handleWatchCoordinationV1NamespacedLeaseRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -32967,6 +33608,9 @@ func (s *Server) handleWatchCoordinationV1NamespacedLeaseRequest(args [2]string, // handleWatchCoordinationV1NamespacedLeaseListRequest handles watchCoordinationV1NamespacedLeaseList operation. // +// Watch individual changes to a list of Lease. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases func (s *Server) handleWatchCoordinationV1NamespacedLeaseListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -33084,6 +33728,9 @@ func (s *Server) handleWatchCoordinationV1NamespacedLeaseListRequest(args [1]str // handleWatchCoreV1ConfigMapListForAllNamespacesRequest handles watchCoreV1ConfigMapListForAllNamespaces operation. // +// Watch individual changes to a list of ConfigMap. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /api/v1/watch/configmaps func (s *Server) handleWatchCoreV1ConfigMapListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -33200,6 +33847,9 @@ func (s *Server) handleWatchCoreV1ConfigMapListForAllNamespacesRequest(args [0]s // handleWatchCoreV1EndpointsListForAllNamespacesRequest handles watchCoreV1EndpointsListForAllNamespaces operation. // +// Watch individual changes to a list of Endpoints. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /api/v1/watch/endpoints func (s *Server) handleWatchCoreV1EndpointsListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -33316,6 +33966,9 @@ func (s *Server) handleWatchCoreV1EndpointsListForAllNamespacesRequest(args [0]s // handleWatchCoreV1EventListForAllNamespacesRequest handles watchCoreV1EventListForAllNamespaces operation. // +// Watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /api/v1/watch/events func (s *Server) handleWatchCoreV1EventListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -33432,6 +34085,9 @@ func (s *Server) handleWatchCoreV1EventListForAllNamespacesRequest(args [0]strin // handleWatchCoreV1LimitRangeListForAllNamespacesRequest handles watchCoreV1LimitRangeListForAllNamespaces operation. // +// Watch individual changes to a list of LimitRange. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /api/v1/watch/limitranges func (s *Server) handleWatchCoreV1LimitRangeListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -33548,6 +34204,9 @@ func (s *Server) handleWatchCoreV1LimitRangeListForAllNamespacesRequest(args [0] // handleWatchCoreV1NamespaceRequest handles watchCoreV1Namespace operation. // +// Watch changes to an object of kind Namespace. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /api/v1/watch/namespaces/{name} func (s *Server) handleWatchCoreV1NamespaceRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -33665,6 +34324,9 @@ func (s *Server) handleWatchCoreV1NamespaceRequest(args [1]string, w http.Respon // handleWatchCoreV1NamespaceListRequest handles watchCoreV1NamespaceList operation. // +// Watch individual changes to a list of Namespace. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /api/v1/watch/namespaces func (s *Server) handleWatchCoreV1NamespaceListRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -33781,6 +34443,9 @@ func (s *Server) handleWatchCoreV1NamespaceListRequest(args [0]string, w http.Re // handleWatchCoreV1NamespacedConfigMapRequest handles watchCoreV1NamespacedConfigMap operation. // +// Watch changes to an object of kind ConfigMap. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /api/v1/watch/namespaces/{namespace}/configmaps/{name} func (s *Server) handleWatchCoreV1NamespacedConfigMapRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -33899,6 +34564,9 @@ func (s *Server) handleWatchCoreV1NamespacedConfigMapRequest(args [2]string, w h // handleWatchCoreV1NamespacedConfigMapListRequest handles watchCoreV1NamespacedConfigMapList operation. // +// Watch individual changes to a list of ConfigMap. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /api/v1/watch/namespaces/{namespace}/configmaps func (s *Server) handleWatchCoreV1NamespacedConfigMapListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -34016,6 +34684,9 @@ func (s *Server) handleWatchCoreV1NamespacedConfigMapListRequest(args [1]string, // handleWatchCoreV1NamespacedEndpointsRequest handles watchCoreV1NamespacedEndpoints operation. // +// Watch changes to an object of kind Endpoints. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /api/v1/watch/namespaces/{namespace}/endpoints/{name} func (s *Server) handleWatchCoreV1NamespacedEndpointsRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -34134,6 +34805,9 @@ func (s *Server) handleWatchCoreV1NamespacedEndpointsRequest(args [2]string, w h // handleWatchCoreV1NamespacedEndpointsListRequest handles watchCoreV1NamespacedEndpointsList operation. // +// Watch individual changes to a list of Endpoints. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /api/v1/watch/namespaces/{namespace}/endpoints func (s *Server) handleWatchCoreV1NamespacedEndpointsListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -34251,6 +34925,9 @@ func (s *Server) handleWatchCoreV1NamespacedEndpointsListRequest(args [1]string, // handleWatchCoreV1NamespacedEventRequest handles watchCoreV1NamespacedEvent operation. // +// Watch changes to an object of kind Event. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /api/v1/watch/namespaces/{namespace}/events/{name} func (s *Server) handleWatchCoreV1NamespacedEventRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -34369,6 +35046,9 @@ func (s *Server) handleWatchCoreV1NamespacedEventRequest(args [2]string, w http. // handleWatchCoreV1NamespacedEventListRequest handles watchCoreV1NamespacedEventList operation. // +// Watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /api/v1/watch/namespaces/{namespace}/events func (s *Server) handleWatchCoreV1NamespacedEventListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -34486,6 +35166,9 @@ func (s *Server) handleWatchCoreV1NamespacedEventListRequest(args [1]string, w h // handleWatchCoreV1NamespacedLimitRangeRequest handles watchCoreV1NamespacedLimitRange operation. // +// Watch changes to an object of kind LimitRange. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /api/v1/watch/namespaces/{namespace}/limitranges/{name} func (s *Server) handleWatchCoreV1NamespacedLimitRangeRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -34604,6 +35287,9 @@ func (s *Server) handleWatchCoreV1NamespacedLimitRangeRequest(args [2]string, w // handleWatchCoreV1NamespacedLimitRangeListRequest handles watchCoreV1NamespacedLimitRangeList operation. // +// Watch individual changes to a list of LimitRange. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /api/v1/watch/namespaces/{namespace}/limitranges func (s *Server) handleWatchCoreV1NamespacedLimitRangeListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -34721,6 +35407,9 @@ func (s *Server) handleWatchCoreV1NamespacedLimitRangeListRequest(args [1]string // handleWatchCoreV1NamespacedPersistentVolumeClaimRequest handles watchCoreV1NamespacedPersistentVolumeClaim operation. // +// Watch changes to an object of kind PersistentVolumeClaim. deprecated: use the 'watch' parameter +// with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /api/v1/watch/namespaces/{namespace}/persistentvolumeclaims/{name} func (s *Server) handleWatchCoreV1NamespacedPersistentVolumeClaimRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -34839,6 +35528,9 @@ func (s *Server) handleWatchCoreV1NamespacedPersistentVolumeClaimRequest(args [2 // handleWatchCoreV1NamespacedPersistentVolumeClaimListRequest handles watchCoreV1NamespacedPersistentVolumeClaimList operation. // +// Watch individual changes to a list of PersistentVolumeClaim. deprecated: use the 'watch' parameter +// with a list operation instead. +// // GET /api/v1/watch/namespaces/{namespace}/persistentvolumeclaims func (s *Server) handleWatchCoreV1NamespacedPersistentVolumeClaimListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -34956,6 +35648,9 @@ func (s *Server) handleWatchCoreV1NamespacedPersistentVolumeClaimListRequest(arg // handleWatchCoreV1NamespacedPodRequest handles watchCoreV1NamespacedPod operation. // +// Watch changes to an object of kind Pod. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /api/v1/watch/namespaces/{namespace}/pods/{name} func (s *Server) handleWatchCoreV1NamespacedPodRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -35074,6 +35769,9 @@ func (s *Server) handleWatchCoreV1NamespacedPodRequest(args [2]string, w http.Re // handleWatchCoreV1NamespacedPodListRequest handles watchCoreV1NamespacedPodList operation. // +// Watch individual changes to a list of Pod. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /api/v1/watch/namespaces/{namespace}/pods func (s *Server) handleWatchCoreV1NamespacedPodListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -35191,6 +35889,9 @@ func (s *Server) handleWatchCoreV1NamespacedPodListRequest(args [1]string, w htt // handleWatchCoreV1NamespacedPodTemplateRequest handles watchCoreV1NamespacedPodTemplate operation. // +// Watch changes to an object of kind PodTemplate. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /api/v1/watch/namespaces/{namespace}/podtemplates/{name} func (s *Server) handleWatchCoreV1NamespacedPodTemplateRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -35309,6 +36010,9 @@ func (s *Server) handleWatchCoreV1NamespacedPodTemplateRequest(args [2]string, w // handleWatchCoreV1NamespacedPodTemplateListRequest handles watchCoreV1NamespacedPodTemplateList operation. // +// Watch individual changes to a list of PodTemplate. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /api/v1/watch/namespaces/{namespace}/podtemplates func (s *Server) handleWatchCoreV1NamespacedPodTemplateListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -35426,6 +36130,9 @@ func (s *Server) handleWatchCoreV1NamespacedPodTemplateListRequest(args [1]strin // handleWatchCoreV1NamespacedReplicationControllerRequest handles watchCoreV1NamespacedReplicationController operation. // +// Watch changes to an object of kind ReplicationController. deprecated: use the 'watch' parameter +// with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /api/v1/watch/namespaces/{namespace}/replicationcontrollers/{name} func (s *Server) handleWatchCoreV1NamespacedReplicationControllerRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -35544,6 +36251,9 @@ func (s *Server) handleWatchCoreV1NamespacedReplicationControllerRequest(args [2 // handleWatchCoreV1NamespacedReplicationControllerListRequest handles watchCoreV1NamespacedReplicationControllerList operation. // +// Watch individual changes to a list of ReplicationController. deprecated: use the 'watch' parameter +// with a list operation instead. +// // GET /api/v1/watch/namespaces/{namespace}/replicationcontrollers func (s *Server) handleWatchCoreV1NamespacedReplicationControllerListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -35661,6 +36371,9 @@ func (s *Server) handleWatchCoreV1NamespacedReplicationControllerListRequest(arg // handleWatchCoreV1NamespacedResourceQuotaRequest handles watchCoreV1NamespacedResourceQuota operation. // +// Watch changes to an object of kind ResourceQuota. deprecated: use the 'watch' parameter with a +// list operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /api/v1/watch/namespaces/{namespace}/resourcequotas/{name} func (s *Server) handleWatchCoreV1NamespacedResourceQuotaRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -35779,6 +36492,9 @@ func (s *Server) handleWatchCoreV1NamespacedResourceQuotaRequest(args [2]string, // handleWatchCoreV1NamespacedResourceQuotaListRequest handles watchCoreV1NamespacedResourceQuotaList operation. // +// Watch individual changes to a list of ResourceQuota. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /api/v1/watch/namespaces/{namespace}/resourcequotas func (s *Server) handleWatchCoreV1NamespacedResourceQuotaListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -35896,6 +36612,9 @@ func (s *Server) handleWatchCoreV1NamespacedResourceQuotaListRequest(args [1]str // handleWatchCoreV1NamespacedSecretRequest handles watchCoreV1NamespacedSecret operation. // +// Watch changes to an object of kind Secret. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /api/v1/watch/namespaces/{namespace}/secrets/{name} func (s *Server) handleWatchCoreV1NamespacedSecretRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -36014,6 +36733,9 @@ func (s *Server) handleWatchCoreV1NamespacedSecretRequest(args [2]string, w http // handleWatchCoreV1NamespacedSecretListRequest handles watchCoreV1NamespacedSecretList operation. // +// Watch individual changes to a list of Secret. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /api/v1/watch/namespaces/{namespace}/secrets func (s *Server) handleWatchCoreV1NamespacedSecretListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -36131,6 +36853,9 @@ func (s *Server) handleWatchCoreV1NamespacedSecretListRequest(args [1]string, w // handleWatchCoreV1NamespacedServiceRequest handles watchCoreV1NamespacedService operation. // +// Watch changes to an object of kind Service. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /api/v1/watch/namespaces/{namespace}/services/{name} func (s *Server) handleWatchCoreV1NamespacedServiceRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -36249,6 +36974,9 @@ func (s *Server) handleWatchCoreV1NamespacedServiceRequest(args [2]string, w htt // handleWatchCoreV1NamespacedServiceAccountRequest handles watchCoreV1NamespacedServiceAccount operation. // +// Watch changes to an object of kind ServiceAccount. deprecated: use the 'watch' parameter with a +// list operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /api/v1/watch/namespaces/{namespace}/serviceaccounts/{name} func (s *Server) handleWatchCoreV1NamespacedServiceAccountRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -36367,6 +37095,9 @@ func (s *Server) handleWatchCoreV1NamespacedServiceAccountRequest(args [2]string // handleWatchCoreV1NamespacedServiceAccountListRequest handles watchCoreV1NamespacedServiceAccountList operation. // +// Watch individual changes to a list of ServiceAccount. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /api/v1/watch/namespaces/{namespace}/serviceaccounts func (s *Server) handleWatchCoreV1NamespacedServiceAccountListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -36484,6 +37215,9 @@ func (s *Server) handleWatchCoreV1NamespacedServiceAccountListRequest(args [1]st // handleWatchCoreV1NamespacedServiceListRequest handles watchCoreV1NamespacedServiceList operation. // +// Watch individual changes to a list of Service. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /api/v1/watch/namespaces/{namespace}/services func (s *Server) handleWatchCoreV1NamespacedServiceListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -36601,6 +37335,9 @@ func (s *Server) handleWatchCoreV1NamespacedServiceListRequest(args [1]string, w // handleWatchCoreV1NodeRequest handles watchCoreV1Node operation. // +// Watch changes to an object of kind Node. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /api/v1/watch/nodes/{name} func (s *Server) handleWatchCoreV1NodeRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -36718,6 +37455,9 @@ func (s *Server) handleWatchCoreV1NodeRequest(args [1]string, w http.ResponseWri // handleWatchCoreV1NodeListRequest handles watchCoreV1NodeList operation. // +// Watch individual changes to a list of Node. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /api/v1/watch/nodes func (s *Server) handleWatchCoreV1NodeListRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -36834,6 +37574,9 @@ func (s *Server) handleWatchCoreV1NodeListRequest(args [0]string, w http.Respons // handleWatchCoreV1PersistentVolumeRequest handles watchCoreV1PersistentVolume operation. // +// Watch changes to an object of kind PersistentVolume. deprecated: use the 'watch' parameter with a +// list operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /api/v1/watch/persistentvolumes/{name} func (s *Server) handleWatchCoreV1PersistentVolumeRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -36951,6 +37694,9 @@ func (s *Server) handleWatchCoreV1PersistentVolumeRequest(args [1]string, w http // handleWatchCoreV1PersistentVolumeClaimListForAllNamespacesRequest handles watchCoreV1PersistentVolumeClaimListForAllNamespaces operation. // +// Watch individual changes to a list of PersistentVolumeClaim. deprecated: use the 'watch' parameter +// with a list operation instead. +// // GET /api/v1/watch/persistentvolumeclaims func (s *Server) handleWatchCoreV1PersistentVolumeClaimListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -37067,6 +37813,9 @@ func (s *Server) handleWatchCoreV1PersistentVolumeClaimListForAllNamespacesReque // handleWatchCoreV1PersistentVolumeListRequest handles watchCoreV1PersistentVolumeList operation. // +// Watch individual changes to a list of PersistentVolume. deprecated: use the 'watch' parameter with +// a list operation instead. +// // GET /api/v1/watch/persistentvolumes func (s *Server) handleWatchCoreV1PersistentVolumeListRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -37183,6 +37932,9 @@ func (s *Server) handleWatchCoreV1PersistentVolumeListRequest(args [0]string, w // handleWatchCoreV1PodListForAllNamespacesRequest handles watchCoreV1PodListForAllNamespaces operation. // +// Watch individual changes to a list of Pod. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /api/v1/watch/pods func (s *Server) handleWatchCoreV1PodListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -37299,6 +38051,9 @@ func (s *Server) handleWatchCoreV1PodListForAllNamespacesRequest(args [0]string, // handleWatchCoreV1PodTemplateListForAllNamespacesRequest handles watchCoreV1PodTemplateListForAllNamespaces operation. // +// Watch individual changes to a list of PodTemplate. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /api/v1/watch/podtemplates func (s *Server) handleWatchCoreV1PodTemplateListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -37415,6 +38170,9 @@ func (s *Server) handleWatchCoreV1PodTemplateListForAllNamespacesRequest(args [0 // handleWatchCoreV1ReplicationControllerListForAllNamespacesRequest handles watchCoreV1ReplicationControllerListForAllNamespaces operation. // +// Watch individual changes to a list of ReplicationController. deprecated: use the 'watch' parameter +// with a list operation instead. +// // GET /api/v1/watch/replicationcontrollers func (s *Server) handleWatchCoreV1ReplicationControllerListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -37531,6 +38289,9 @@ func (s *Server) handleWatchCoreV1ReplicationControllerListForAllNamespacesReque // handleWatchCoreV1ResourceQuotaListForAllNamespacesRequest handles watchCoreV1ResourceQuotaListForAllNamespaces operation. // +// Watch individual changes to a list of ResourceQuota. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /api/v1/watch/resourcequotas func (s *Server) handleWatchCoreV1ResourceQuotaListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -37647,6 +38408,9 @@ func (s *Server) handleWatchCoreV1ResourceQuotaListForAllNamespacesRequest(args // handleWatchCoreV1SecretListForAllNamespacesRequest handles watchCoreV1SecretListForAllNamespaces operation. // +// Watch individual changes to a list of Secret. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /api/v1/watch/secrets func (s *Server) handleWatchCoreV1SecretListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -37763,6 +38527,9 @@ func (s *Server) handleWatchCoreV1SecretListForAllNamespacesRequest(args [0]stri // handleWatchCoreV1ServiceAccountListForAllNamespacesRequest handles watchCoreV1ServiceAccountListForAllNamespaces operation. // +// Watch individual changes to a list of ServiceAccount. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /api/v1/watch/serviceaccounts func (s *Server) handleWatchCoreV1ServiceAccountListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -37879,6 +38646,9 @@ func (s *Server) handleWatchCoreV1ServiceAccountListForAllNamespacesRequest(args // handleWatchCoreV1ServiceListForAllNamespacesRequest handles watchCoreV1ServiceListForAllNamespaces operation. // +// Watch individual changes to a list of Service. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /api/v1/watch/services func (s *Server) handleWatchCoreV1ServiceListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -37995,6 +38765,9 @@ func (s *Server) handleWatchCoreV1ServiceListForAllNamespacesRequest(args [0]str // handleWatchDiscoveryV1EndpointSliceListForAllNamespacesRequest handles watchDiscoveryV1EndpointSliceListForAllNamespaces operation. // +// Watch individual changes to a list of EndpointSlice. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /apis/discovery.k8s.io/v1/watch/endpointslices func (s *Server) handleWatchDiscoveryV1EndpointSliceListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -38111,6 +38884,9 @@ func (s *Server) handleWatchDiscoveryV1EndpointSliceListForAllNamespacesRequest( // handleWatchDiscoveryV1NamespacedEndpointSliceRequest handles watchDiscoveryV1NamespacedEndpointSlice operation. // +// Watch changes to an object of kind EndpointSlice. deprecated: use the 'watch' parameter with a +// list operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices/{name} func (s *Server) handleWatchDiscoveryV1NamespacedEndpointSliceRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -38229,6 +39005,9 @@ func (s *Server) handleWatchDiscoveryV1NamespacedEndpointSliceRequest(args [2]st // handleWatchDiscoveryV1NamespacedEndpointSliceListRequest handles watchDiscoveryV1NamespacedEndpointSliceList operation. // +// Watch individual changes to a list of EndpointSlice. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices func (s *Server) handleWatchDiscoveryV1NamespacedEndpointSliceListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -38346,6 +39125,9 @@ func (s *Server) handleWatchDiscoveryV1NamespacedEndpointSliceListRequest(args [ // handleWatchDiscoveryV1beta1EndpointSliceListForAllNamespacesRequest handles watchDiscoveryV1beta1EndpointSliceListForAllNamespaces operation. // +// Watch individual changes to a list of EndpointSlice. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /apis/discovery.k8s.io/v1beta1/watch/endpointslices func (s *Server) handleWatchDiscoveryV1beta1EndpointSliceListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -38462,6 +39244,9 @@ func (s *Server) handleWatchDiscoveryV1beta1EndpointSliceListForAllNamespacesReq // handleWatchDiscoveryV1beta1NamespacedEndpointSliceRequest handles watchDiscoveryV1beta1NamespacedEndpointSlice operation. // +// Watch changes to an object of kind EndpointSlice. deprecated: use the 'watch' parameter with a +// list operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/discovery.k8s.io/v1beta1/watch/namespaces/{namespace}/endpointslices/{name} func (s *Server) handleWatchDiscoveryV1beta1NamespacedEndpointSliceRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -38580,6 +39365,9 @@ func (s *Server) handleWatchDiscoveryV1beta1NamespacedEndpointSliceRequest(args // handleWatchDiscoveryV1beta1NamespacedEndpointSliceListRequest handles watchDiscoveryV1beta1NamespacedEndpointSliceList operation. // +// Watch individual changes to a list of EndpointSlice. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /apis/discovery.k8s.io/v1beta1/watch/namespaces/{namespace}/endpointslices func (s *Server) handleWatchDiscoveryV1beta1NamespacedEndpointSliceListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -38697,6 +39485,9 @@ func (s *Server) handleWatchDiscoveryV1beta1NamespacedEndpointSliceListRequest(a // handleWatchEventsV1EventListForAllNamespacesRequest handles watchEventsV1EventListForAllNamespaces operation. // +// Watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /apis/events.k8s.io/v1/watch/events func (s *Server) handleWatchEventsV1EventListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -38813,6 +39604,9 @@ func (s *Server) handleWatchEventsV1EventListForAllNamespacesRequest(args [0]str // handleWatchEventsV1NamespacedEventRequest handles watchEventsV1NamespacedEvent operation. // +// Watch changes to an object of kind Event. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/events.k8s.io/v1/watch/namespaces/{namespace}/events/{name} func (s *Server) handleWatchEventsV1NamespacedEventRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -38931,6 +39725,9 @@ func (s *Server) handleWatchEventsV1NamespacedEventRequest(args [2]string, w htt // handleWatchEventsV1NamespacedEventListRequest handles watchEventsV1NamespacedEventList operation. // +// Watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /apis/events.k8s.io/v1/watch/namespaces/{namespace}/events func (s *Server) handleWatchEventsV1NamespacedEventListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -39048,6 +39845,9 @@ func (s *Server) handleWatchEventsV1NamespacedEventListRequest(args [1]string, w // handleWatchEventsV1beta1EventListForAllNamespacesRequest handles watchEventsV1beta1EventListForAllNamespaces operation. // +// Watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /apis/events.k8s.io/v1beta1/watch/events func (s *Server) handleWatchEventsV1beta1EventListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -39164,6 +39964,9 @@ func (s *Server) handleWatchEventsV1beta1EventListForAllNamespacesRequest(args [ // handleWatchEventsV1beta1NamespacedEventRequest handles watchEventsV1beta1NamespacedEvent operation. // +// Watch changes to an object of kind Event. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/events.k8s.io/v1beta1/watch/namespaces/{namespace}/events/{name} func (s *Server) handleWatchEventsV1beta1NamespacedEventRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -39282,6 +40085,9 @@ func (s *Server) handleWatchEventsV1beta1NamespacedEventRequest(args [2]string, // handleWatchEventsV1beta1NamespacedEventListRequest handles watchEventsV1beta1NamespacedEventList operation. // +// Watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /apis/events.k8s.io/v1beta1/watch/namespaces/{namespace}/events func (s *Server) handleWatchEventsV1beta1NamespacedEventListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -39399,6 +40205,9 @@ func (s *Server) handleWatchEventsV1beta1NamespacedEventListRequest(args [1]stri // handleWatchFlowcontrolApiserverV1beta1FlowSchemaRequest handles watchFlowcontrolApiserverV1beta1FlowSchema operation. // +// Watch changes to an object of kind FlowSchema. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/flowschemas/{name} func (s *Server) handleWatchFlowcontrolApiserverV1beta1FlowSchemaRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -39516,6 +40325,9 @@ func (s *Server) handleWatchFlowcontrolApiserverV1beta1FlowSchemaRequest(args [1 // handleWatchFlowcontrolApiserverV1beta1FlowSchemaListRequest handles watchFlowcontrolApiserverV1beta1FlowSchemaList operation. // +// Watch individual changes to a list of FlowSchema. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/flowschemas func (s *Server) handleWatchFlowcontrolApiserverV1beta1FlowSchemaListRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -39632,6 +40444,10 @@ func (s *Server) handleWatchFlowcontrolApiserverV1beta1FlowSchemaListRequest(arg // handleWatchFlowcontrolApiserverV1beta1PriorityLevelConfigurationRequest handles watchFlowcontrolApiserverV1beta1PriorityLevelConfiguration operation. // +// Watch changes to an object of kind PriorityLevelConfiguration. deprecated: use the 'watch' +// parameter with a list operation instead, filtered to a single item with the 'fieldSelector' +// parameter. +// // GET /apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/prioritylevelconfigurations/{name} func (s *Server) handleWatchFlowcontrolApiserverV1beta1PriorityLevelConfigurationRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -39749,6 +40565,9 @@ func (s *Server) handleWatchFlowcontrolApiserverV1beta1PriorityLevelConfiguratio // handleWatchFlowcontrolApiserverV1beta1PriorityLevelConfigurationListRequest handles watchFlowcontrolApiserverV1beta1PriorityLevelConfigurationList operation. // +// Watch individual changes to a list of PriorityLevelConfiguration. deprecated: use the 'watch' +// parameter with a list operation instead. +// // GET /apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/prioritylevelconfigurations func (s *Server) handleWatchFlowcontrolApiserverV1beta1PriorityLevelConfigurationListRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -39865,6 +40684,9 @@ func (s *Server) handleWatchFlowcontrolApiserverV1beta1PriorityLevelConfiguratio // handleWatchFlowcontrolApiserverV1beta2FlowSchemaRequest handles watchFlowcontrolApiserverV1beta2FlowSchema operation. // +// Watch changes to an object of kind FlowSchema. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/flowschemas/{name} func (s *Server) handleWatchFlowcontrolApiserverV1beta2FlowSchemaRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -39982,6 +40804,9 @@ func (s *Server) handleWatchFlowcontrolApiserverV1beta2FlowSchemaRequest(args [1 // handleWatchFlowcontrolApiserverV1beta2FlowSchemaListRequest handles watchFlowcontrolApiserverV1beta2FlowSchemaList operation. // +// Watch individual changes to a list of FlowSchema. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/flowschemas func (s *Server) handleWatchFlowcontrolApiserverV1beta2FlowSchemaListRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -40098,6 +40923,10 @@ func (s *Server) handleWatchFlowcontrolApiserverV1beta2FlowSchemaListRequest(arg // handleWatchFlowcontrolApiserverV1beta2PriorityLevelConfigurationRequest handles watchFlowcontrolApiserverV1beta2PriorityLevelConfiguration operation. // +// Watch changes to an object of kind PriorityLevelConfiguration. deprecated: use the 'watch' +// parameter with a list operation instead, filtered to a single item with the 'fieldSelector' +// parameter. +// // GET /apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/prioritylevelconfigurations/{name} func (s *Server) handleWatchFlowcontrolApiserverV1beta2PriorityLevelConfigurationRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -40215,6 +41044,9 @@ func (s *Server) handleWatchFlowcontrolApiserverV1beta2PriorityLevelConfiguratio // handleWatchFlowcontrolApiserverV1beta2PriorityLevelConfigurationListRequest handles watchFlowcontrolApiserverV1beta2PriorityLevelConfigurationList operation. // +// Watch individual changes to a list of PriorityLevelConfiguration. deprecated: use the 'watch' +// parameter with a list operation instead. +// // GET /apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/prioritylevelconfigurations func (s *Server) handleWatchFlowcontrolApiserverV1beta2PriorityLevelConfigurationListRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -40331,6 +41163,9 @@ func (s *Server) handleWatchFlowcontrolApiserverV1beta2PriorityLevelConfiguratio // handleWatchInternalApiserverV1alpha1StorageVersionRequest handles watchInternalApiserverV1alpha1StorageVersion operation. // +// Watch changes to an object of kind StorageVersion. deprecated: use the 'watch' parameter with a +// list operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions/{name} func (s *Server) handleWatchInternalApiserverV1alpha1StorageVersionRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -40448,6 +41283,9 @@ func (s *Server) handleWatchInternalApiserverV1alpha1StorageVersionRequest(args // handleWatchInternalApiserverV1alpha1StorageVersionListRequest handles watchInternalApiserverV1alpha1StorageVersionList operation. // +// Watch individual changes to a list of StorageVersion. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions func (s *Server) handleWatchInternalApiserverV1alpha1StorageVersionListRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -40564,6 +41402,9 @@ func (s *Server) handleWatchInternalApiserverV1alpha1StorageVersionListRequest(a // handleWatchNetworkingV1IngressClassRequest handles watchNetworkingV1IngressClass operation. // +// Watch changes to an object of kind IngressClass. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/networking.k8s.io/v1/watch/ingressclasses/{name} func (s *Server) handleWatchNetworkingV1IngressClassRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -40681,6 +41522,9 @@ func (s *Server) handleWatchNetworkingV1IngressClassRequest(args [1]string, w ht // handleWatchNetworkingV1IngressClassListRequest handles watchNetworkingV1IngressClassList operation. // +// Watch individual changes to a list of IngressClass. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /apis/networking.k8s.io/v1/watch/ingressclasses func (s *Server) handleWatchNetworkingV1IngressClassListRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -40797,6 +41641,9 @@ func (s *Server) handleWatchNetworkingV1IngressClassListRequest(args [0]string, // handleWatchNetworkingV1IngressListForAllNamespacesRequest handles watchNetworkingV1IngressListForAllNamespaces operation. // +// Watch individual changes to a list of Ingress. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /apis/networking.k8s.io/v1/watch/ingresses func (s *Server) handleWatchNetworkingV1IngressListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -40913,6 +41760,9 @@ func (s *Server) handleWatchNetworkingV1IngressListForAllNamespacesRequest(args // handleWatchNetworkingV1NamespacedIngressRequest handles watchNetworkingV1NamespacedIngress operation. // +// Watch changes to an object of kind Ingress. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses/{name} func (s *Server) handleWatchNetworkingV1NamespacedIngressRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -41031,6 +41881,9 @@ func (s *Server) handleWatchNetworkingV1NamespacedIngressRequest(args [2]string, // handleWatchNetworkingV1NamespacedIngressListRequest handles watchNetworkingV1NamespacedIngressList operation. // +// Watch individual changes to a list of Ingress. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses func (s *Server) handleWatchNetworkingV1NamespacedIngressListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -41148,6 +42001,9 @@ func (s *Server) handleWatchNetworkingV1NamespacedIngressListRequest(args [1]str // handleWatchNetworkingV1NamespacedNetworkPolicyRequest handles watchNetworkingV1NamespacedNetworkPolicy operation. // +// Watch changes to an object of kind NetworkPolicy. deprecated: use the 'watch' parameter with a +// list operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies/{name} func (s *Server) handleWatchNetworkingV1NamespacedNetworkPolicyRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -41266,6 +42122,9 @@ func (s *Server) handleWatchNetworkingV1NamespacedNetworkPolicyRequest(args [2]s // handleWatchNetworkingV1NamespacedNetworkPolicyListRequest handles watchNetworkingV1NamespacedNetworkPolicyList operation. // +// Watch individual changes to a list of NetworkPolicy. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies func (s *Server) handleWatchNetworkingV1NamespacedNetworkPolicyListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -41383,6 +42242,9 @@ func (s *Server) handleWatchNetworkingV1NamespacedNetworkPolicyListRequest(args // handleWatchNetworkingV1NetworkPolicyListForAllNamespacesRequest handles watchNetworkingV1NetworkPolicyListForAllNamespaces operation. // +// Watch individual changes to a list of NetworkPolicy. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /apis/networking.k8s.io/v1/watch/networkpolicies func (s *Server) handleWatchNetworkingV1NetworkPolicyListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -41499,6 +42361,9 @@ func (s *Server) handleWatchNetworkingV1NetworkPolicyListForAllNamespacesRequest // handleWatchNodeV1RuntimeClassRequest handles watchNodeV1RuntimeClass operation. // +// Watch changes to an object of kind RuntimeClass. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/node.k8s.io/v1/watch/runtimeclasses/{name} func (s *Server) handleWatchNodeV1RuntimeClassRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -41616,6 +42481,9 @@ func (s *Server) handleWatchNodeV1RuntimeClassRequest(args [1]string, w http.Res // handleWatchNodeV1RuntimeClassListRequest handles watchNodeV1RuntimeClassList operation. // +// Watch individual changes to a list of RuntimeClass. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /apis/node.k8s.io/v1/watch/runtimeclasses func (s *Server) handleWatchNodeV1RuntimeClassListRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -41732,6 +42600,9 @@ func (s *Server) handleWatchNodeV1RuntimeClassListRequest(args [0]string, w http // handleWatchNodeV1alpha1RuntimeClassRequest handles watchNodeV1alpha1RuntimeClass operation. // +// Watch changes to an object of kind RuntimeClass. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/node.k8s.io/v1alpha1/watch/runtimeclasses/{name} func (s *Server) handleWatchNodeV1alpha1RuntimeClassRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -41849,6 +42720,9 @@ func (s *Server) handleWatchNodeV1alpha1RuntimeClassRequest(args [1]string, w ht // handleWatchNodeV1alpha1RuntimeClassListRequest handles watchNodeV1alpha1RuntimeClassList operation. // +// Watch individual changes to a list of RuntimeClass. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /apis/node.k8s.io/v1alpha1/watch/runtimeclasses func (s *Server) handleWatchNodeV1alpha1RuntimeClassListRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -41965,6 +42839,9 @@ func (s *Server) handleWatchNodeV1alpha1RuntimeClassListRequest(args [0]string, // handleWatchNodeV1beta1RuntimeClassRequest handles watchNodeV1beta1RuntimeClass operation. // +// Watch changes to an object of kind RuntimeClass. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/node.k8s.io/v1beta1/watch/runtimeclasses/{name} func (s *Server) handleWatchNodeV1beta1RuntimeClassRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -42082,6 +42959,9 @@ func (s *Server) handleWatchNodeV1beta1RuntimeClassRequest(args [1]string, w htt // handleWatchNodeV1beta1RuntimeClassListRequest handles watchNodeV1beta1RuntimeClassList operation. // +// Watch individual changes to a list of RuntimeClass. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /apis/node.k8s.io/v1beta1/watch/runtimeclasses func (s *Server) handleWatchNodeV1beta1RuntimeClassListRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -42198,6 +43078,9 @@ func (s *Server) handleWatchNodeV1beta1RuntimeClassListRequest(args [0]string, w // handleWatchPolicyV1NamespacedPodDisruptionBudgetRequest handles watchPolicyV1NamespacedPodDisruptionBudget operation. // +// Watch changes to an object of kind PodDisruptionBudget. deprecated: use the 'watch' parameter with +// a list operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets/{name} func (s *Server) handleWatchPolicyV1NamespacedPodDisruptionBudgetRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -42316,6 +43199,9 @@ func (s *Server) handleWatchPolicyV1NamespacedPodDisruptionBudgetRequest(args [2 // handleWatchPolicyV1NamespacedPodDisruptionBudgetListRequest handles watchPolicyV1NamespacedPodDisruptionBudgetList operation. // +// Watch individual changes to a list of PodDisruptionBudget. deprecated: use the 'watch' parameter +// with a list operation instead. +// // GET /apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets func (s *Server) handleWatchPolicyV1NamespacedPodDisruptionBudgetListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -42433,6 +43319,9 @@ func (s *Server) handleWatchPolicyV1NamespacedPodDisruptionBudgetListRequest(arg // handleWatchPolicyV1PodDisruptionBudgetListForAllNamespacesRequest handles watchPolicyV1PodDisruptionBudgetListForAllNamespaces operation. // +// Watch individual changes to a list of PodDisruptionBudget. deprecated: use the 'watch' parameter +// with a list operation instead. +// // GET /apis/policy/v1/watch/poddisruptionbudgets func (s *Server) handleWatchPolicyV1PodDisruptionBudgetListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -42549,6 +43438,9 @@ func (s *Server) handleWatchPolicyV1PodDisruptionBudgetListForAllNamespacesReque // handleWatchPolicyV1beta1NamespacedPodDisruptionBudgetRequest handles watchPolicyV1beta1NamespacedPodDisruptionBudget operation. // +// Watch changes to an object of kind PodDisruptionBudget. deprecated: use the 'watch' parameter with +// a list operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/policy/v1beta1/watch/namespaces/{namespace}/poddisruptionbudgets/{name} func (s *Server) handleWatchPolicyV1beta1NamespacedPodDisruptionBudgetRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -42667,6 +43559,9 @@ func (s *Server) handleWatchPolicyV1beta1NamespacedPodDisruptionBudgetRequest(ar // handleWatchPolicyV1beta1NamespacedPodDisruptionBudgetListRequest handles watchPolicyV1beta1NamespacedPodDisruptionBudgetList operation. // +// Watch individual changes to a list of PodDisruptionBudget. deprecated: use the 'watch' parameter +// with a list operation instead. +// // GET /apis/policy/v1beta1/watch/namespaces/{namespace}/poddisruptionbudgets func (s *Server) handleWatchPolicyV1beta1NamespacedPodDisruptionBudgetListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -42784,6 +43679,9 @@ func (s *Server) handleWatchPolicyV1beta1NamespacedPodDisruptionBudgetListReques // handleWatchPolicyV1beta1PodDisruptionBudgetListForAllNamespacesRequest handles watchPolicyV1beta1PodDisruptionBudgetListForAllNamespaces operation. // +// Watch individual changes to a list of PodDisruptionBudget. deprecated: use the 'watch' parameter +// with a list operation instead. +// // GET /apis/policy/v1beta1/watch/poddisruptionbudgets func (s *Server) handleWatchPolicyV1beta1PodDisruptionBudgetListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -42900,6 +43798,9 @@ func (s *Server) handleWatchPolicyV1beta1PodDisruptionBudgetListForAllNamespaces // handleWatchPolicyV1beta1PodSecurityPolicyRequest handles watchPolicyV1beta1PodSecurityPolicy operation. // +// Watch changes to an object of kind PodSecurityPolicy. deprecated: use the 'watch' parameter with a +// list operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/policy/v1beta1/watch/podsecuritypolicies/{name} func (s *Server) handleWatchPolicyV1beta1PodSecurityPolicyRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -43017,6 +43918,9 @@ func (s *Server) handleWatchPolicyV1beta1PodSecurityPolicyRequest(args [1]string // handleWatchPolicyV1beta1PodSecurityPolicyListRequest handles watchPolicyV1beta1PodSecurityPolicyList operation. // +// Watch individual changes to a list of PodSecurityPolicy. deprecated: use the 'watch' parameter +// with a list operation instead. +// // GET /apis/policy/v1beta1/watch/podsecuritypolicies func (s *Server) handleWatchPolicyV1beta1PodSecurityPolicyListRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -43133,6 +44037,9 @@ func (s *Server) handleWatchPolicyV1beta1PodSecurityPolicyListRequest(args [0]st // handleWatchRbacAuthorizationV1ClusterRoleRequest handles watchRbacAuthorizationV1ClusterRole operation. // +// Watch changes to an object of kind ClusterRole. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/rbac.authorization.k8s.io/v1/watch/clusterroles/{name} func (s *Server) handleWatchRbacAuthorizationV1ClusterRoleRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -43250,6 +44157,9 @@ func (s *Server) handleWatchRbacAuthorizationV1ClusterRoleRequest(args [1]string // handleWatchRbacAuthorizationV1ClusterRoleBindingRequest handles watchRbacAuthorizationV1ClusterRoleBinding operation. // +// Watch changes to an object of kind ClusterRoleBinding. deprecated: use the 'watch' parameter with +// a list operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings/{name} func (s *Server) handleWatchRbacAuthorizationV1ClusterRoleBindingRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -43367,6 +44277,9 @@ func (s *Server) handleWatchRbacAuthorizationV1ClusterRoleBindingRequest(args [1 // handleWatchRbacAuthorizationV1ClusterRoleBindingListRequest handles watchRbacAuthorizationV1ClusterRoleBindingList operation. // +// Watch individual changes to a list of ClusterRoleBinding. deprecated: use the 'watch' parameter +// with a list operation instead. +// // GET /apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings func (s *Server) handleWatchRbacAuthorizationV1ClusterRoleBindingListRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -43483,6 +44396,9 @@ func (s *Server) handleWatchRbacAuthorizationV1ClusterRoleBindingListRequest(arg // handleWatchRbacAuthorizationV1ClusterRoleListRequest handles watchRbacAuthorizationV1ClusterRoleList operation. // +// Watch individual changes to a list of ClusterRole. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /apis/rbac.authorization.k8s.io/v1/watch/clusterroles func (s *Server) handleWatchRbacAuthorizationV1ClusterRoleListRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -43599,6 +44515,9 @@ func (s *Server) handleWatchRbacAuthorizationV1ClusterRoleListRequest(args [0]st // handleWatchRbacAuthorizationV1NamespacedRoleRequest handles watchRbacAuthorizationV1NamespacedRole operation. // +// Watch changes to an object of kind Role. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles/{name} func (s *Server) handleWatchRbacAuthorizationV1NamespacedRoleRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -43717,6 +44636,9 @@ func (s *Server) handleWatchRbacAuthorizationV1NamespacedRoleRequest(args [2]str // handleWatchRbacAuthorizationV1NamespacedRoleBindingRequest handles watchRbacAuthorizationV1NamespacedRoleBinding operation. // +// Watch changes to an object of kind RoleBinding. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings/{name} func (s *Server) handleWatchRbacAuthorizationV1NamespacedRoleBindingRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -43835,6 +44757,9 @@ func (s *Server) handleWatchRbacAuthorizationV1NamespacedRoleBindingRequest(args // handleWatchRbacAuthorizationV1NamespacedRoleBindingListRequest handles watchRbacAuthorizationV1NamespacedRoleBindingList operation. // +// Watch individual changes to a list of RoleBinding. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings func (s *Server) handleWatchRbacAuthorizationV1NamespacedRoleBindingListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -43952,6 +44877,9 @@ func (s *Server) handleWatchRbacAuthorizationV1NamespacedRoleBindingListRequest( // handleWatchRbacAuthorizationV1NamespacedRoleListRequest handles watchRbacAuthorizationV1NamespacedRoleList operation. // +// Watch individual changes to a list of Role. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles func (s *Server) handleWatchRbacAuthorizationV1NamespacedRoleListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -44069,6 +44997,9 @@ func (s *Server) handleWatchRbacAuthorizationV1NamespacedRoleListRequest(args [1 // handleWatchRbacAuthorizationV1RoleBindingListForAllNamespacesRequest handles watchRbacAuthorizationV1RoleBindingListForAllNamespaces operation. // +// Watch individual changes to a list of RoleBinding. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /apis/rbac.authorization.k8s.io/v1/watch/rolebindings func (s *Server) handleWatchRbacAuthorizationV1RoleBindingListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -44185,6 +45116,9 @@ func (s *Server) handleWatchRbacAuthorizationV1RoleBindingListForAllNamespacesRe // handleWatchRbacAuthorizationV1RoleListForAllNamespacesRequest handles watchRbacAuthorizationV1RoleListForAllNamespaces operation. // +// Watch individual changes to a list of Role. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /apis/rbac.authorization.k8s.io/v1/watch/roles func (s *Server) handleWatchRbacAuthorizationV1RoleListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -44301,6 +45235,9 @@ func (s *Server) handleWatchRbacAuthorizationV1RoleListForAllNamespacesRequest(a // handleWatchSchedulingV1PriorityClassRequest handles watchSchedulingV1PriorityClass operation. // +// Watch changes to an object of kind PriorityClass. deprecated: use the 'watch' parameter with a +// list operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/scheduling.k8s.io/v1/watch/priorityclasses/{name} func (s *Server) handleWatchSchedulingV1PriorityClassRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -44418,6 +45355,9 @@ func (s *Server) handleWatchSchedulingV1PriorityClassRequest(args [1]string, w h // handleWatchSchedulingV1PriorityClassListRequest handles watchSchedulingV1PriorityClassList operation. // +// Watch individual changes to a list of PriorityClass. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /apis/scheduling.k8s.io/v1/watch/priorityclasses func (s *Server) handleWatchSchedulingV1PriorityClassListRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -44534,6 +45474,9 @@ func (s *Server) handleWatchSchedulingV1PriorityClassListRequest(args [0]string, // handleWatchStorageV1CSIDriverRequest handles watchStorageV1CSIDriver operation. // +// Watch changes to an object of kind CSIDriver. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/storage.k8s.io/v1/watch/csidrivers/{name} func (s *Server) handleWatchStorageV1CSIDriverRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -44651,6 +45594,9 @@ func (s *Server) handleWatchStorageV1CSIDriverRequest(args [1]string, w http.Res // handleWatchStorageV1CSIDriverListRequest handles watchStorageV1CSIDriverList operation. // +// Watch individual changes to a list of CSIDriver. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /apis/storage.k8s.io/v1/watch/csidrivers func (s *Server) handleWatchStorageV1CSIDriverListRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -44767,6 +45713,9 @@ func (s *Server) handleWatchStorageV1CSIDriverListRequest(args [0]string, w http // handleWatchStorageV1CSINodeRequest handles watchStorageV1CSINode operation. // +// Watch changes to an object of kind CSINode. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/storage.k8s.io/v1/watch/csinodes/{name} func (s *Server) handleWatchStorageV1CSINodeRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -44884,6 +45833,9 @@ func (s *Server) handleWatchStorageV1CSINodeRequest(args [1]string, w http.Respo // handleWatchStorageV1CSINodeListRequest handles watchStorageV1CSINodeList operation. // +// Watch individual changes to a list of CSINode. deprecated: use the 'watch' parameter with a list +// operation instead. +// // GET /apis/storage.k8s.io/v1/watch/csinodes func (s *Server) handleWatchStorageV1CSINodeListRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -45000,6 +45952,9 @@ func (s *Server) handleWatchStorageV1CSINodeListRequest(args [0]string, w http.R // handleWatchStorageV1StorageClassRequest handles watchStorageV1StorageClass operation. // +// Watch changes to an object of kind StorageClass. deprecated: use the 'watch' parameter with a list +// operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/storage.k8s.io/v1/watch/storageclasses/{name} func (s *Server) handleWatchStorageV1StorageClassRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -45117,6 +46072,9 @@ func (s *Server) handleWatchStorageV1StorageClassRequest(args [1]string, w http. // handleWatchStorageV1StorageClassListRequest handles watchStorageV1StorageClassList operation. // +// Watch individual changes to a list of StorageClass. deprecated: use the 'watch' parameter with a +// list operation instead. +// // GET /apis/storage.k8s.io/v1/watch/storageclasses func (s *Server) handleWatchStorageV1StorageClassListRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -45233,6 +46191,9 @@ func (s *Server) handleWatchStorageV1StorageClassListRequest(args [0]string, w h // handleWatchStorageV1VolumeAttachmentRequest handles watchStorageV1VolumeAttachment operation. // +// Watch changes to an object of kind VolumeAttachment. deprecated: use the 'watch' parameter with a +// list operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/storage.k8s.io/v1/watch/volumeattachments/{name} func (s *Server) handleWatchStorageV1VolumeAttachmentRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -45350,6 +46311,9 @@ func (s *Server) handleWatchStorageV1VolumeAttachmentRequest(args [1]string, w h // handleWatchStorageV1VolumeAttachmentListRequest handles watchStorageV1VolumeAttachmentList operation. // +// Watch individual changes to a list of VolumeAttachment. deprecated: use the 'watch' parameter with +// a list operation instead. +// // GET /apis/storage.k8s.io/v1/watch/volumeattachments func (s *Server) handleWatchStorageV1VolumeAttachmentListRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -45466,6 +46430,9 @@ func (s *Server) handleWatchStorageV1VolumeAttachmentListRequest(args [0]string, // handleWatchStorageV1alpha1CSIStorageCapacityListForAllNamespacesRequest handles watchStorageV1alpha1CSIStorageCapacityListForAllNamespaces operation. // +// Watch individual changes to a list of CSIStorageCapacity. deprecated: use the 'watch' parameter +// with a list operation instead. +// // GET /apis/storage.k8s.io/v1alpha1/watch/csistoragecapacities func (s *Server) handleWatchStorageV1alpha1CSIStorageCapacityListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -45582,6 +46549,9 @@ func (s *Server) handleWatchStorageV1alpha1CSIStorageCapacityListForAllNamespace // handleWatchStorageV1alpha1NamespacedCSIStorageCapacityRequest handles watchStorageV1alpha1NamespacedCSIStorageCapacity operation. // +// Watch changes to an object of kind CSIStorageCapacity. deprecated: use the 'watch' parameter with +// a list operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/storage.k8s.io/v1alpha1/watch/namespaces/{namespace}/csistoragecapacities/{name} func (s *Server) handleWatchStorageV1alpha1NamespacedCSIStorageCapacityRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -45700,6 +46670,9 @@ func (s *Server) handleWatchStorageV1alpha1NamespacedCSIStorageCapacityRequest(a // handleWatchStorageV1alpha1NamespacedCSIStorageCapacityListRequest handles watchStorageV1alpha1NamespacedCSIStorageCapacityList operation. // +// Watch individual changes to a list of CSIStorageCapacity. deprecated: use the 'watch' parameter +// with a list operation instead. +// // GET /apis/storage.k8s.io/v1alpha1/watch/namespaces/{namespace}/csistoragecapacities func (s *Server) handleWatchStorageV1alpha1NamespacedCSIStorageCapacityListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -45817,6 +46790,9 @@ func (s *Server) handleWatchStorageV1alpha1NamespacedCSIStorageCapacityListReque // handleWatchStorageV1beta1CSIStorageCapacityListForAllNamespacesRequest handles watchStorageV1beta1CSIStorageCapacityListForAllNamespaces operation. // +// Watch individual changes to a list of CSIStorageCapacity. deprecated: use the 'watch' parameter +// with a list operation instead. +// // GET /apis/storage.k8s.io/v1beta1/watch/csistoragecapacities func (s *Server) handleWatchStorageV1beta1CSIStorageCapacityListForAllNamespacesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -45933,6 +46909,9 @@ func (s *Server) handleWatchStorageV1beta1CSIStorageCapacityListForAllNamespaces // handleWatchStorageV1beta1NamespacedCSIStorageCapacityRequest handles watchStorageV1beta1NamespacedCSIStorageCapacity operation. // +// Watch changes to an object of kind CSIStorageCapacity. deprecated: use the 'watch' parameter with +// a list operation instead, filtered to a single item with the 'fieldSelector' parameter. +// // GET /apis/storage.k8s.io/v1beta1/watch/namespaces/{namespace}/csistoragecapacities/{name} func (s *Server) handleWatchStorageV1beta1NamespacedCSIStorageCapacityRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -46051,6 +47030,9 @@ func (s *Server) handleWatchStorageV1beta1NamespacedCSIStorageCapacityRequest(ar // handleWatchStorageV1beta1NamespacedCSIStorageCapacityListRequest handles watchStorageV1beta1NamespacedCSIStorageCapacityList operation. // +// Watch individual changes to a list of CSIStorageCapacity. deprecated: use the 'watch' parameter +// with a list operation instead. +// // GET /apis/storage.k8s.io/v1beta1/watch/namespaces/{namespace}/csistoragecapacities func (s *Server) handleWatchStorageV1beta1NamespacedCSIStorageCapacityListRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ diff --git a/examples/ex_k8s/oas_parameters_gen.go b/examples/ex_k8s/oas_parameters_gen.go index 720e3b967..e4f16fb47 100644 --- a/examples/ex_k8s/oas_parameters_gen.go +++ b/examples/ex_k8s/oas_parameters_gen.go @@ -11,6 +11,7 @@ import ( "github.com/ogen-go/ogen/uri" ) +// ListAdmissionregistrationV1MutatingWebhookConfigurationParams is parameters of listAdmissionregistrationV1MutatingWebhookConfiguration operation. type ListAdmissionregistrationV1MutatingWebhookConfigurationParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -449,6 +450,7 @@ func decodeListAdmissionregistrationV1MutatingWebhookConfigurationParams(args [0 return params, nil } +// ListAdmissionregistrationV1ValidatingWebhookConfigurationParams is parameters of listAdmissionregistrationV1ValidatingWebhookConfiguration operation. type ListAdmissionregistrationV1ValidatingWebhookConfigurationParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -887,6 +889,7 @@ func decodeListAdmissionregistrationV1ValidatingWebhookConfigurationParams(args return params, nil } +// ListApiextensionsV1CustomResourceDefinitionParams is parameters of listApiextensionsV1CustomResourceDefinition operation. type ListApiextensionsV1CustomResourceDefinitionParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -1325,6 +1328,7 @@ func decodeListApiextensionsV1CustomResourceDefinitionParams(args [0]string, r * return params, nil } +// ListApiregistrationV1APIServiceParams is parameters of listApiregistrationV1APIService operation. type ListApiregistrationV1APIServiceParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -1763,6 +1767,7 @@ func decodeListApiregistrationV1APIServiceParams(args [0]string, r *http.Request return params, nil } +// ListAppsV1ControllerRevisionForAllNamespacesParams is parameters of listAppsV1ControllerRevisionForAllNamespaces operation. type ListAppsV1ControllerRevisionForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -2201,6 +2206,7 @@ func decodeListAppsV1ControllerRevisionForAllNamespacesParams(args [0]string, r return params, nil } +// ListAppsV1DaemonSetForAllNamespacesParams is parameters of listAppsV1DaemonSetForAllNamespaces operation. type ListAppsV1DaemonSetForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -2639,6 +2645,7 @@ func decodeListAppsV1DaemonSetForAllNamespacesParams(args [0]string, r *http.Req return params, nil } +// ListAppsV1DeploymentForAllNamespacesParams is parameters of listAppsV1DeploymentForAllNamespaces operation. type ListAppsV1DeploymentForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -3077,6 +3084,7 @@ func decodeListAppsV1DeploymentForAllNamespacesParams(args [0]string, r *http.Re return params, nil } +// ListAppsV1NamespacedControllerRevisionParams is parameters of listAppsV1NamespacedControllerRevision operation. type ListAppsV1NamespacedControllerRevisionParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -3549,6 +3557,7 @@ func decodeListAppsV1NamespacedControllerRevisionParams(args [1]string, r *http. return params, nil } +// ListAppsV1NamespacedDaemonSetParams is parameters of listAppsV1NamespacedDaemonSet operation. type ListAppsV1NamespacedDaemonSetParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -4021,6 +4030,7 @@ func decodeListAppsV1NamespacedDaemonSetParams(args [1]string, r *http.Request) return params, nil } +// ListAppsV1NamespacedDeploymentParams is parameters of listAppsV1NamespacedDeployment operation. type ListAppsV1NamespacedDeploymentParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -4493,6 +4503,7 @@ func decodeListAppsV1NamespacedDeploymentParams(args [1]string, r *http.Request) return params, nil } +// ListAppsV1NamespacedReplicaSetParams is parameters of listAppsV1NamespacedReplicaSet operation. type ListAppsV1NamespacedReplicaSetParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -4965,6 +4976,7 @@ func decodeListAppsV1NamespacedReplicaSetParams(args [1]string, r *http.Request) return params, nil } +// ListAppsV1NamespacedStatefulSetParams is parameters of listAppsV1NamespacedStatefulSet operation. type ListAppsV1NamespacedStatefulSetParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -5437,6 +5449,7 @@ func decodeListAppsV1NamespacedStatefulSetParams(args [1]string, r *http.Request return params, nil } +// ListAppsV1ReplicaSetForAllNamespacesParams is parameters of listAppsV1ReplicaSetForAllNamespaces operation. type ListAppsV1ReplicaSetForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -5875,6 +5888,7 @@ func decodeListAppsV1ReplicaSetForAllNamespacesParams(args [0]string, r *http.Re return params, nil } +// ListAppsV1StatefulSetForAllNamespacesParams is parameters of listAppsV1StatefulSetForAllNamespaces operation. type ListAppsV1StatefulSetForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -6313,6 +6327,7 @@ func decodeListAppsV1StatefulSetForAllNamespacesParams(args [0]string, r *http.R return params, nil } +// ListAutoscalingV1HorizontalPodAutoscalerForAllNamespacesParams is parameters of listAutoscalingV1HorizontalPodAutoscalerForAllNamespaces operation. type ListAutoscalingV1HorizontalPodAutoscalerForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -6751,6 +6766,7 @@ func decodeListAutoscalingV1HorizontalPodAutoscalerForAllNamespacesParams(args [ return params, nil } +// ListAutoscalingV1NamespacedHorizontalPodAutoscalerParams is parameters of listAutoscalingV1NamespacedHorizontalPodAutoscaler operation. type ListAutoscalingV1NamespacedHorizontalPodAutoscalerParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -7223,6 +7239,7 @@ func decodeListAutoscalingV1NamespacedHorizontalPodAutoscalerParams(args [1]stri return params, nil } +// ListAutoscalingV2beta1HorizontalPodAutoscalerForAllNamespacesParams is parameters of listAutoscalingV2beta1HorizontalPodAutoscalerForAllNamespaces operation. type ListAutoscalingV2beta1HorizontalPodAutoscalerForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -7661,6 +7678,7 @@ func decodeListAutoscalingV2beta1HorizontalPodAutoscalerForAllNamespacesParams(a return params, nil } +// ListAutoscalingV2beta1NamespacedHorizontalPodAutoscalerParams is parameters of listAutoscalingV2beta1NamespacedHorizontalPodAutoscaler operation. type ListAutoscalingV2beta1NamespacedHorizontalPodAutoscalerParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -8133,6 +8151,7 @@ func decodeListAutoscalingV2beta1NamespacedHorizontalPodAutoscalerParams(args [1 return params, nil } +// ListAutoscalingV2beta2HorizontalPodAutoscalerForAllNamespacesParams is parameters of listAutoscalingV2beta2HorizontalPodAutoscalerForAllNamespaces operation. type ListAutoscalingV2beta2HorizontalPodAutoscalerForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -8571,6 +8590,7 @@ func decodeListAutoscalingV2beta2HorizontalPodAutoscalerForAllNamespacesParams(a return params, nil } +// ListAutoscalingV2beta2NamespacedHorizontalPodAutoscalerParams is parameters of listAutoscalingV2beta2NamespacedHorizontalPodAutoscaler operation. type ListAutoscalingV2beta2NamespacedHorizontalPodAutoscalerParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -9043,6 +9063,7 @@ func decodeListAutoscalingV2beta2NamespacedHorizontalPodAutoscalerParams(args [1 return params, nil } +// ListBatchV1CronJobForAllNamespacesParams is parameters of listBatchV1CronJobForAllNamespaces operation. type ListBatchV1CronJobForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -9481,6 +9502,7 @@ func decodeListBatchV1CronJobForAllNamespacesParams(args [0]string, r *http.Requ return params, nil } +// ListBatchV1JobForAllNamespacesParams is parameters of listBatchV1JobForAllNamespaces operation. type ListBatchV1JobForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -9919,6 +9941,7 @@ func decodeListBatchV1JobForAllNamespacesParams(args [0]string, r *http.Request) return params, nil } +// ListBatchV1NamespacedCronJobParams is parameters of listBatchV1NamespacedCronJob operation. type ListBatchV1NamespacedCronJobParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -10391,6 +10414,7 @@ func decodeListBatchV1NamespacedCronJobParams(args [1]string, r *http.Request) ( return params, nil } +// ListBatchV1NamespacedJobParams is parameters of listBatchV1NamespacedJob operation. type ListBatchV1NamespacedJobParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -10863,6 +10887,7 @@ func decodeListBatchV1NamespacedJobParams(args [1]string, r *http.Request) (para return params, nil } +// ListBatchV1beta1CronJobForAllNamespacesParams is parameters of listBatchV1beta1CronJobForAllNamespaces operation. type ListBatchV1beta1CronJobForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -11301,6 +11326,7 @@ func decodeListBatchV1beta1CronJobForAllNamespacesParams(args [0]string, r *http return params, nil } +// ListBatchV1beta1NamespacedCronJobParams is parameters of listBatchV1beta1NamespacedCronJob operation. type ListBatchV1beta1NamespacedCronJobParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -11773,6 +11799,7 @@ func decodeListBatchV1beta1NamespacedCronJobParams(args [1]string, r *http.Reque return params, nil } +// ListCertificatesV1CertificateSigningRequestParams is parameters of listCertificatesV1CertificateSigningRequest operation. type ListCertificatesV1CertificateSigningRequestParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -12211,6 +12238,7 @@ func decodeListCertificatesV1CertificateSigningRequestParams(args [0]string, r * return params, nil } +// ListCoordinationV1LeaseForAllNamespacesParams is parameters of listCoordinationV1LeaseForAllNamespaces operation. type ListCoordinationV1LeaseForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -12649,6 +12677,7 @@ func decodeListCoordinationV1LeaseForAllNamespacesParams(args [0]string, r *http return params, nil } +// ListCoordinationV1NamespacedLeaseParams is parameters of listCoordinationV1NamespacedLease operation. type ListCoordinationV1NamespacedLeaseParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -13121,6 +13150,7 @@ func decodeListCoordinationV1NamespacedLeaseParams(args [1]string, r *http.Reque return params, nil } +// ListCoreV1ComponentStatusParams is parameters of listCoreV1ComponentStatus operation. type ListCoreV1ComponentStatusParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -13559,6 +13589,7 @@ func decodeListCoreV1ComponentStatusParams(args [0]string, r *http.Request) (par return params, nil } +// ListCoreV1ConfigMapForAllNamespacesParams is parameters of listCoreV1ConfigMapForAllNamespaces operation. type ListCoreV1ConfigMapForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -13997,6 +14028,7 @@ func decodeListCoreV1ConfigMapForAllNamespacesParams(args [0]string, r *http.Req return params, nil } +// ListCoreV1EndpointsForAllNamespacesParams is parameters of listCoreV1EndpointsForAllNamespaces operation. type ListCoreV1EndpointsForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -14435,6 +14467,7 @@ func decodeListCoreV1EndpointsForAllNamespacesParams(args [0]string, r *http.Req return params, nil } +// ListCoreV1EventForAllNamespacesParams is parameters of listCoreV1EventForAllNamespaces operation. type ListCoreV1EventForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -14873,6 +14906,7 @@ func decodeListCoreV1EventForAllNamespacesParams(args [0]string, r *http.Request return params, nil } +// ListCoreV1LimitRangeForAllNamespacesParams is parameters of listCoreV1LimitRangeForAllNamespaces operation. type ListCoreV1LimitRangeForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -15311,6 +15345,7 @@ func decodeListCoreV1LimitRangeForAllNamespacesParams(args [0]string, r *http.Re return params, nil } +// ListCoreV1NamespaceParams is parameters of listCoreV1Namespace operation. type ListCoreV1NamespaceParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -15749,6 +15784,7 @@ func decodeListCoreV1NamespaceParams(args [0]string, r *http.Request) (params Li return params, nil } +// ListCoreV1NamespacedConfigMapParams is parameters of listCoreV1NamespacedConfigMap operation. type ListCoreV1NamespacedConfigMapParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -16221,6 +16257,7 @@ func decodeListCoreV1NamespacedConfigMapParams(args [1]string, r *http.Request) return params, nil } +// ListCoreV1NamespacedEndpointsParams is parameters of listCoreV1NamespacedEndpoints operation. type ListCoreV1NamespacedEndpointsParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -16693,6 +16730,7 @@ func decodeListCoreV1NamespacedEndpointsParams(args [1]string, r *http.Request) return params, nil } +// ListCoreV1NamespacedEventParams is parameters of listCoreV1NamespacedEvent operation. type ListCoreV1NamespacedEventParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -17165,6 +17203,7 @@ func decodeListCoreV1NamespacedEventParams(args [1]string, r *http.Request) (par return params, nil } +// ListCoreV1NamespacedLimitRangeParams is parameters of listCoreV1NamespacedLimitRange operation. type ListCoreV1NamespacedLimitRangeParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -17637,6 +17676,7 @@ func decodeListCoreV1NamespacedLimitRangeParams(args [1]string, r *http.Request) return params, nil } +// ListCoreV1NamespacedPersistentVolumeClaimParams is parameters of listCoreV1NamespacedPersistentVolumeClaim operation. type ListCoreV1NamespacedPersistentVolumeClaimParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -18109,6 +18149,7 @@ func decodeListCoreV1NamespacedPersistentVolumeClaimParams(args [1]string, r *ht return params, nil } +// ListCoreV1NamespacedPodParams is parameters of listCoreV1NamespacedPod operation. type ListCoreV1NamespacedPodParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -18581,6 +18622,7 @@ func decodeListCoreV1NamespacedPodParams(args [1]string, r *http.Request) (param return params, nil } +// ListCoreV1NamespacedPodTemplateParams is parameters of listCoreV1NamespacedPodTemplate operation. type ListCoreV1NamespacedPodTemplateParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -19053,6 +19095,7 @@ func decodeListCoreV1NamespacedPodTemplateParams(args [1]string, r *http.Request return params, nil } +// ListCoreV1NamespacedReplicationControllerParams is parameters of listCoreV1NamespacedReplicationController operation. type ListCoreV1NamespacedReplicationControllerParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -19525,6 +19568,7 @@ func decodeListCoreV1NamespacedReplicationControllerParams(args [1]string, r *ht return params, nil } +// ListCoreV1NamespacedResourceQuotaParams is parameters of listCoreV1NamespacedResourceQuota operation. type ListCoreV1NamespacedResourceQuotaParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -19997,6 +20041,7 @@ func decodeListCoreV1NamespacedResourceQuotaParams(args [1]string, r *http.Reque return params, nil } +// ListCoreV1NamespacedSecretParams is parameters of listCoreV1NamespacedSecret operation. type ListCoreV1NamespacedSecretParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -20469,6 +20514,7 @@ func decodeListCoreV1NamespacedSecretParams(args [1]string, r *http.Request) (pa return params, nil } +// ListCoreV1NamespacedServiceParams is parameters of listCoreV1NamespacedService operation. type ListCoreV1NamespacedServiceParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -20941,6 +20987,7 @@ func decodeListCoreV1NamespacedServiceParams(args [1]string, r *http.Request) (p return params, nil } +// ListCoreV1NamespacedServiceAccountParams is parameters of listCoreV1NamespacedServiceAccount operation. type ListCoreV1NamespacedServiceAccountParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -21413,6 +21460,7 @@ func decodeListCoreV1NamespacedServiceAccountParams(args [1]string, r *http.Requ return params, nil } +// ListCoreV1NodeParams is parameters of listCoreV1Node operation. type ListCoreV1NodeParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -21851,6 +21899,7 @@ func decodeListCoreV1NodeParams(args [0]string, r *http.Request) (params ListCor return params, nil } +// ListCoreV1PersistentVolumeParams is parameters of listCoreV1PersistentVolume operation. type ListCoreV1PersistentVolumeParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -22289,6 +22338,7 @@ func decodeListCoreV1PersistentVolumeParams(args [0]string, r *http.Request) (pa return params, nil } +// ListCoreV1PersistentVolumeClaimForAllNamespacesParams is parameters of listCoreV1PersistentVolumeClaimForAllNamespaces operation. type ListCoreV1PersistentVolumeClaimForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -22727,6 +22777,7 @@ func decodeListCoreV1PersistentVolumeClaimForAllNamespacesParams(args [0]string, return params, nil } +// ListCoreV1PodForAllNamespacesParams is parameters of listCoreV1PodForAllNamespaces operation. type ListCoreV1PodForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -23165,6 +23216,7 @@ func decodeListCoreV1PodForAllNamespacesParams(args [0]string, r *http.Request) return params, nil } +// ListCoreV1PodTemplateForAllNamespacesParams is parameters of listCoreV1PodTemplateForAllNamespaces operation. type ListCoreV1PodTemplateForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -23603,6 +23655,7 @@ func decodeListCoreV1PodTemplateForAllNamespacesParams(args [0]string, r *http.R return params, nil } +// ListCoreV1ReplicationControllerForAllNamespacesParams is parameters of listCoreV1ReplicationControllerForAllNamespaces operation. type ListCoreV1ReplicationControllerForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -24041,6 +24094,7 @@ func decodeListCoreV1ReplicationControllerForAllNamespacesParams(args [0]string, return params, nil } +// ListCoreV1ResourceQuotaForAllNamespacesParams is parameters of listCoreV1ResourceQuotaForAllNamespaces operation. type ListCoreV1ResourceQuotaForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -24479,6 +24533,7 @@ func decodeListCoreV1ResourceQuotaForAllNamespacesParams(args [0]string, r *http return params, nil } +// ListCoreV1SecretForAllNamespacesParams is parameters of listCoreV1SecretForAllNamespaces operation. type ListCoreV1SecretForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -24917,6 +24972,7 @@ func decodeListCoreV1SecretForAllNamespacesParams(args [0]string, r *http.Reques return params, nil } +// ListCoreV1ServiceAccountForAllNamespacesParams is parameters of listCoreV1ServiceAccountForAllNamespaces operation. type ListCoreV1ServiceAccountForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -25355,6 +25411,7 @@ func decodeListCoreV1ServiceAccountForAllNamespacesParams(args [0]string, r *htt return params, nil } +// ListCoreV1ServiceForAllNamespacesParams is parameters of listCoreV1ServiceForAllNamespaces operation. type ListCoreV1ServiceForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -25793,6 +25850,7 @@ func decodeListCoreV1ServiceForAllNamespacesParams(args [0]string, r *http.Reque return params, nil } +// ListDiscoveryV1EndpointSliceForAllNamespacesParams is parameters of listDiscoveryV1EndpointSliceForAllNamespaces operation. type ListDiscoveryV1EndpointSliceForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -26231,6 +26289,7 @@ func decodeListDiscoveryV1EndpointSliceForAllNamespacesParams(args [0]string, r return params, nil } +// ListDiscoveryV1NamespacedEndpointSliceParams is parameters of listDiscoveryV1NamespacedEndpointSlice operation. type ListDiscoveryV1NamespacedEndpointSliceParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -26703,6 +26762,7 @@ func decodeListDiscoveryV1NamespacedEndpointSliceParams(args [1]string, r *http. return params, nil } +// ListDiscoveryV1beta1EndpointSliceForAllNamespacesParams is parameters of listDiscoveryV1beta1EndpointSliceForAllNamespaces operation. type ListDiscoveryV1beta1EndpointSliceForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -27141,6 +27201,7 @@ func decodeListDiscoveryV1beta1EndpointSliceForAllNamespacesParams(args [0]strin return params, nil } +// ListDiscoveryV1beta1NamespacedEndpointSliceParams is parameters of listDiscoveryV1beta1NamespacedEndpointSlice operation. type ListDiscoveryV1beta1NamespacedEndpointSliceParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -27613,6 +27674,7 @@ func decodeListDiscoveryV1beta1NamespacedEndpointSliceParams(args [1]string, r * return params, nil } +// ListEventsV1EventForAllNamespacesParams is parameters of listEventsV1EventForAllNamespaces operation. type ListEventsV1EventForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -28051,6 +28113,7 @@ func decodeListEventsV1EventForAllNamespacesParams(args [0]string, r *http.Reque return params, nil } +// ListEventsV1NamespacedEventParams is parameters of listEventsV1NamespacedEvent operation. type ListEventsV1NamespacedEventParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -28523,6 +28586,7 @@ func decodeListEventsV1NamespacedEventParams(args [1]string, r *http.Request) (p return params, nil } +// ListEventsV1beta1EventForAllNamespacesParams is parameters of listEventsV1beta1EventForAllNamespaces operation. type ListEventsV1beta1EventForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -28961,6 +29025,7 @@ func decodeListEventsV1beta1EventForAllNamespacesParams(args [0]string, r *http. return params, nil } +// ListEventsV1beta1NamespacedEventParams is parameters of listEventsV1beta1NamespacedEvent operation. type ListEventsV1beta1NamespacedEventParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -29433,6 +29498,7 @@ func decodeListEventsV1beta1NamespacedEventParams(args [1]string, r *http.Reques return params, nil } +// ListFlowcontrolApiserverV1beta1FlowSchemaParams is parameters of listFlowcontrolApiserverV1beta1FlowSchema operation. type ListFlowcontrolApiserverV1beta1FlowSchemaParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -29871,6 +29937,7 @@ func decodeListFlowcontrolApiserverV1beta1FlowSchemaParams(args [0]string, r *ht return params, nil } +// ListFlowcontrolApiserverV1beta1PriorityLevelConfigurationParams is parameters of listFlowcontrolApiserverV1beta1PriorityLevelConfiguration operation. type ListFlowcontrolApiserverV1beta1PriorityLevelConfigurationParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -30309,6 +30376,7 @@ func decodeListFlowcontrolApiserverV1beta1PriorityLevelConfigurationParams(args return params, nil } +// ListFlowcontrolApiserverV1beta2FlowSchemaParams is parameters of listFlowcontrolApiserverV1beta2FlowSchema operation. type ListFlowcontrolApiserverV1beta2FlowSchemaParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -30747,6 +30815,7 @@ func decodeListFlowcontrolApiserverV1beta2FlowSchemaParams(args [0]string, r *ht return params, nil } +// ListFlowcontrolApiserverV1beta2PriorityLevelConfigurationParams is parameters of listFlowcontrolApiserverV1beta2PriorityLevelConfiguration operation. type ListFlowcontrolApiserverV1beta2PriorityLevelConfigurationParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -31185,6 +31254,7 @@ func decodeListFlowcontrolApiserverV1beta2PriorityLevelConfigurationParams(args return params, nil } +// ListInternalApiserverV1alpha1StorageVersionParams is parameters of listInternalApiserverV1alpha1StorageVersion operation. type ListInternalApiserverV1alpha1StorageVersionParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -31623,6 +31693,7 @@ func decodeListInternalApiserverV1alpha1StorageVersionParams(args [0]string, r * return params, nil } +// ListNetworkingV1IngressClassParams is parameters of listNetworkingV1IngressClass operation. type ListNetworkingV1IngressClassParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -32061,6 +32132,7 @@ func decodeListNetworkingV1IngressClassParams(args [0]string, r *http.Request) ( return params, nil } +// ListNetworkingV1IngressForAllNamespacesParams is parameters of listNetworkingV1IngressForAllNamespaces operation. type ListNetworkingV1IngressForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -32499,6 +32571,7 @@ func decodeListNetworkingV1IngressForAllNamespacesParams(args [0]string, r *http return params, nil } +// ListNetworkingV1NamespacedIngressParams is parameters of listNetworkingV1NamespacedIngress operation. type ListNetworkingV1NamespacedIngressParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -32971,6 +33044,7 @@ func decodeListNetworkingV1NamespacedIngressParams(args [1]string, r *http.Reque return params, nil } +// ListNetworkingV1NamespacedNetworkPolicyParams is parameters of listNetworkingV1NamespacedNetworkPolicy operation. type ListNetworkingV1NamespacedNetworkPolicyParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -33443,6 +33517,7 @@ func decodeListNetworkingV1NamespacedNetworkPolicyParams(args [1]string, r *http return params, nil } +// ListNetworkingV1NetworkPolicyForAllNamespacesParams is parameters of listNetworkingV1NetworkPolicyForAllNamespaces operation. type ListNetworkingV1NetworkPolicyForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -33881,6 +33956,7 @@ func decodeListNetworkingV1NetworkPolicyForAllNamespacesParams(args [0]string, r return params, nil } +// ListNodeV1RuntimeClassParams is parameters of listNodeV1RuntimeClass operation. type ListNodeV1RuntimeClassParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -34319,6 +34395,7 @@ func decodeListNodeV1RuntimeClassParams(args [0]string, r *http.Request) (params return params, nil } +// ListNodeV1alpha1RuntimeClassParams is parameters of listNodeV1alpha1RuntimeClass operation. type ListNodeV1alpha1RuntimeClassParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -34757,6 +34834,7 @@ func decodeListNodeV1alpha1RuntimeClassParams(args [0]string, r *http.Request) ( return params, nil } +// ListNodeV1beta1RuntimeClassParams is parameters of listNodeV1beta1RuntimeClass operation. type ListNodeV1beta1RuntimeClassParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -35195,6 +35273,7 @@ func decodeListNodeV1beta1RuntimeClassParams(args [0]string, r *http.Request) (p return params, nil } +// ListPolicyV1NamespacedPodDisruptionBudgetParams is parameters of listPolicyV1NamespacedPodDisruptionBudget operation. type ListPolicyV1NamespacedPodDisruptionBudgetParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -35667,6 +35746,7 @@ func decodeListPolicyV1NamespacedPodDisruptionBudgetParams(args [1]string, r *ht return params, nil } +// ListPolicyV1PodDisruptionBudgetForAllNamespacesParams is parameters of listPolicyV1PodDisruptionBudgetForAllNamespaces operation. type ListPolicyV1PodDisruptionBudgetForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -36105,6 +36185,7 @@ func decodeListPolicyV1PodDisruptionBudgetForAllNamespacesParams(args [0]string, return params, nil } +// ListPolicyV1beta1NamespacedPodDisruptionBudgetParams is parameters of listPolicyV1beta1NamespacedPodDisruptionBudget operation. type ListPolicyV1beta1NamespacedPodDisruptionBudgetParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -36577,6 +36658,7 @@ func decodeListPolicyV1beta1NamespacedPodDisruptionBudgetParams(args [1]string, return params, nil } +// ListPolicyV1beta1PodDisruptionBudgetForAllNamespacesParams is parameters of listPolicyV1beta1PodDisruptionBudgetForAllNamespaces operation. type ListPolicyV1beta1PodDisruptionBudgetForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -37015,6 +37097,7 @@ func decodeListPolicyV1beta1PodDisruptionBudgetForAllNamespacesParams(args [0]st return params, nil } +// ListPolicyV1beta1PodSecurityPolicyParams is parameters of listPolicyV1beta1PodSecurityPolicy operation. type ListPolicyV1beta1PodSecurityPolicyParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -37453,6 +37536,7 @@ func decodeListPolicyV1beta1PodSecurityPolicyParams(args [0]string, r *http.Requ return params, nil } +// ListRbacAuthorizationV1ClusterRoleParams is parameters of listRbacAuthorizationV1ClusterRole operation. type ListRbacAuthorizationV1ClusterRoleParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -37891,6 +37975,7 @@ func decodeListRbacAuthorizationV1ClusterRoleParams(args [0]string, r *http.Requ return params, nil } +// ListRbacAuthorizationV1ClusterRoleBindingParams is parameters of listRbacAuthorizationV1ClusterRoleBinding operation. type ListRbacAuthorizationV1ClusterRoleBindingParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -38329,6 +38414,7 @@ func decodeListRbacAuthorizationV1ClusterRoleBindingParams(args [0]string, r *ht return params, nil } +// ListRbacAuthorizationV1NamespacedRoleParams is parameters of listRbacAuthorizationV1NamespacedRole operation. type ListRbacAuthorizationV1NamespacedRoleParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -38801,6 +38887,7 @@ func decodeListRbacAuthorizationV1NamespacedRoleParams(args [1]string, r *http.R return params, nil } +// ListRbacAuthorizationV1NamespacedRoleBindingParams is parameters of listRbacAuthorizationV1NamespacedRoleBinding operation. type ListRbacAuthorizationV1NamespacedRoleBindingParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -39273,6 +39360,7 @@ func decodeListRbacAuthorizationV1NamespacedRoleBindingParams(args [1]string, r return params, nil } +// ListRbacAuthorizationV1RoleBindingForAllNamespacesParams is parameters of listRbacAuthorizationV1RoleBindingForAllNamespaces operation. type ListRbacAuthorizationV1RoleBindingForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -39711,6 +39799,7 @@ func decodeListRbacAuthorizationV1RoleBindingForAllNamespacesParams(args [0]stri return params, nil } +// ListRbacAuthorizationV1RoleForAllNamespacesParams is parameters of listRbacAuthorizationV1RoleForAllNamespaces operation. type ListRbacAuthorizationV1RoleForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -40149,6 +40238,7 @@ func decodeListRbacAuthorizationV1RoleForAllNamespacesParams(args [0]string, r * return params, nil } +// ListSchedulingV1PriorityClassParams is parameters of listSchedulingV1PriorityClass operation. type ListSchedulingV1PriorityClassParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -40587,6 +40677,7 @@ func decodeListSchedulingV1PriorityClassParams(args [0]string, r *http.Request) return params, nil } +// ListStorageV1CSIDriverParams is parameters of listStorageV1CSIDriver operation. type ListStorageV1CSIDriverParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -41025,6 +41116,7 @@ func decodeListStorageV1CSIDriverParams(args [0]string, r *http.Request) (params return params, nil } +// ListStorageV1CSINodeParams is parameters of listStorageV1CSINode operation. type ListStorageV1CSINodeParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -41463,6 +41555,7 @@ func decodeListStorageV1CSINodeParams(args [0]string, r *http.Request) (params L return params, nil } +// ListStorageV1StorageClassParams is parameters of listStorageV1StorageClass operation. type ListStorageV1StorageClassParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -41901,6 +41994,7 @@ func decodeListStorageV1StorageClassParams(args [0]string, r *http.Request) (par return params, nil } +// ListStorageV1VolumeAttachmentParams is parameters of listStorageV1VolumeAttachment operation. type ListStorageV1VolumeAttachmentParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -42339,6 +42433,7 @@ func decodeListStorageV1VolumeAttachmentParams(args [0]string, r *http.Request) return params, nil } +// ListStorageV1alpha1CSIStorageCapacityForAllNamespacesParams is parameters of listStorageV1alpha1CSIStorageCapacityForAllNamespaces operation. type ListStorageV1alpha1CSIStorageCapacityForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -42777,6 +42872,7 @@ func decodeListStorageV1alpha1CSIStorageCapacityForAllNamespacesParams(args [0]s return params, nil } +// ListStorageV1alpha1NamespacedCSIStorageCapacityParams is parameters of listStorageV1alpha1NamespacedCSIStorageCapacity operation. type ListStorageV1alpha1NamespacedCSIStorageCapacityParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -43249,6 +43345,7 @@ func decodeListStorageV1alpha1NamespacedCSIStorageCapacityParams(args [1]string, return params, nil } +// ListStorageV1beta1CSIStorageCapacityForAllNamespacesParams is parameters of listStorageV1beta1CSIStorageCapacityForAllNamespaces operation. type ListStorageV1beta1CSIStorageCapacityForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -43687,6 +43784,7 @@ func decodeListStorageV1beta1CSIStorageCapacityForAllNamespacesParams(args [0]st return params, nil } +// ListStorageV1beta1NamespacedCSIStorageCapacityParams is parameters of listStorageV1beta1NamespacedCSIStorageCapacity operation. type ListStorageV1beta1NamespacedCSIStorageCapacityParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -44159,6 +44257,7 @@ func decodeListStorageV1beta1NamespacedCSIStorageCapacityParams(args [1]string, return params, nil } +// LogFileHandlerParams is parameters of logFileHandler operation. type LogFileHandlerParams struct { // Path to the log. Logpath string @@ -44204,6 +44303,7 @@ func decodeLogFileHandlerParams(args [1]string, r *http.Request) (params LogFile return params, nil } +// ReadAdmissionregistrationV1MutatingWebhookConfigurationParams is parameters of readAdmissionregistrationV1MutatingWebhookConfiguration operation. type ReadAdmissionregistrationV1MutatingWebhookConfigurationParams struct { // Name of the MutatingWebhookConfiguration. Name string @@ -44289,6 +44389,7 @@ func decodeReadAdmissionregistrationV1MutatingWebhookConfigurationParams(args [1 return params, nil } +// ReadAdmissionregistrationV1ValidatingWebhookConfigurationParams is parameters of readAdmissionregistrationV1ValidatingWebhookConfiguration operation. type ReadAdmissionregistrationV1ValidatingWebhookConfigurationParams struct { // Name of the ValidatingWebhookConfiguration. Name string @@ -44374,6 +44475,7 @@ func decodeReadAdmissionregistrationV1ValidatingWebhookConfigurationParams(args return params, nil } +// ReadApiextensionsV1CustomResourceDefinitionParams is parameters of readApiextensionsV1CustomResourceDefinition operation. type ReadApiextensionsV1CustomResourceDefinitionParams struct { // Name of the CustomResourceDefinition. Name string @@ -44459,6 +44561,7 @@ func decodeReadApiextensionsV1CustomResourceDefinitionParams(args [1]string, r * return params, nil } +// ReadApiextensionsV1CustomResourceDefinitionStatusParams is parameters of readApiextensionsV1CustomResourceDefinitionStatus operation. type ReadApiextensionsV1CustomResourceDefinitionStatusParams struct { // Name of the CustomResourceDefinition. Name string @@ -44544,6 +44647,7 @@ func decodeReadApiextensionsV1CustomResourceDefinitionStatusParams(args [1]strin return params, nil } +// ReadApiregistrationV1APIServiceParams is parameters of readApiregistrationV1APIService operation. type ReadApiregistrationV1APIServiceParams struct { // Name of the APIService. Name string @@ -44629,6 +44733,7 @@ func decodeReadApiregistrationV1APIServiceParams(args [1]string, r *http.Request return params, nil } +// ReadApiregistrationV1APIServiceStatusParams is parameters of readApiregistrationV1APIServiceStatus operation. type ReadApiregistrationV1APIServiceStatusParams struct { // Name of the APIService. Name string @@ -44714,6 +44819,7 @@ func decodeReadApiregistrationV1APIServiceStatusParams(args [1]string, r *http.R return params, nil } +// ReadAppsV1NamespacedControllerRevisionParams is parameters of readAppsV1NamespacedControllerRevision operation. type ReadAppsV1NamespacedControllerRevisionParams struct { // Name of the ControllerRevision. Name string @@ -44833,6 +44939,7 @@ func decodeReadAppsV1NamespacedControllerRevisionParams(args [2]string, r *http. return params, nil } +// ReadAppsV1NamespacedDaemonSetParams is parameters of readAppsV1NamespacedDaemonSet operation. type ReadAppsV1NamespacedDaemonSetParams struct { // Name of the DaemonSet. Name string @@ -44952,6 +45059,7 @@ func decodeReadAppsV1NamespacedDaemonSetParams(args [2]string, r *http.Request) return params, nil } +// ReadAppsV1NamespacedDaemonSetStatusParams is parameters of readAppsV1NamespacedDaemonSetStatus operation. type ReadAppsV1NamespacedDaemonSetStatusParams struct { // Name of the DaemonSet. Name string @@ -45071,6 +45179,7 @@ func decodeReadAppsV1NamespacedDaemonSetStatusParams(args [2]string, r *http.Req return params, nil } +// ReadAppsV1NamespacedDeploymentParams is parameters of readAppsV1NamespacedDeployment operation. type ReadAppsV1NamespacedDeploymentParams struct { // Name of the Deployment. Name string @@ -45190,6 +45299,7 @@ func decodeReadAppsV1NamespacedDeploymentParams(args [2]string, r *http.Request) return params, nil } +// ReadAppsV1NamespacedDeploymentScaleParams is parameters of readAppsV1NamespacedDeploymentScale operation. type ReadAppsV1NamespacedDeploymentScaleParams struct { // Name of the Scale. Name string @@ -45309,6 +45419,7 @@ func decodeReadAppsV1NamespacedDeploymentScaleParams(args [2]string, r *http.Req return params, nil } +// ReadAppsV1NamespacedDeploymentStatusParams is parameters of readAppsV1NamespacedDeploymentStatus operation. type ReadAppsV1NamespacedDeploymentStatusParams struct { // Name of the Deployment. Name string @@ -45428,6 +45539,7 @@ func decodeReadAppsV1NamespacedDeploymentStatusParams(args [2]string, r *http.Re return params, nil } +// ReadAppsV1NamespacedReplicaSetParams is parameters of readAppsV1NamespacedReplicaSet operation. type ReadAppsV1NamespacedReplicaSetParams struct { // Name of the ReplicaSet. Name string @@ -45547,6 +45659,7 @@ func decodeReadAppsV1NamespacedReplicaSetParams(args [2]string, r *http.Request) return params, nil } +// ReadAppsV1NamespacedReplicaSetScaleParams is parameters of readAppsV1NamespacedReplicaSetScale operation. type ReadAppsV1NamespacedReplicaSetScaleParams struct { // Name of the Scale. Name string @@ -45666,6 +45779,7 @@ func decodeReadAppsV1NamespacedReplicaSetScaleParams(args [2]string, r *http.Req return params, nil } +// ReadAppsV1NamespacedReplicaSetStatusParams is parameters of readAppsV1NamespacedReplicaSetStatus operation. type ReadAppsV1NamespacedReplicaSetStatusParams struct { // Name of the ReplicaSet. Name string @@ -45785,6 +45899,7 @@ func decodeReadAppsV1NamespacedReplicaSetStatusParams(args [2]string, r *http.Re return params, nil } +// ReadAppsV1NamespacedStatefulSetParams is parameters of readAppsV1NamespacedStatefulSet operation. type ReadAppsV1NamespacedStatefulSetParams struct { // Name of the StatefulSet. Name string @@ -45904,6 +46019,7 @@ func decodeReadAppsV1NamespacedStatefulSetParams(args [2]string, r *http.Request return params, nil } +// ReadAppsV1NamespacedStatefulSetScaleParams is parameters of readAppsV1NamespacedStatefulSetScale operation. type ReadAppsV1NamespacedStatefulSetScaleParams struct { // Name of the Scale. Name string @@ -46023,6 +46139,7 @@ func decodeReadAppsV1NamespacedStatefulSetScaleParams(args [2]string, r *http.Re return params, nil } +// ReadAppsV1NamespacedStatefulSetStatusParams is parameters of readAppsV1NamespacedStatefulSetStatus operation. type ReadAppsV1NamespacedStatefulSetStatusParams struct { // Name of the StatefulSet. Name string @@ -46142,6 +46259,7 @@ func decodeReadAppsV1NamespacedStatefulSetStatusParams(args [2]string, r *http.R return params, nil } +// ReadAutoscalingV1NamespacedHorizontalPodAutoscalerParams is parameters of readAutoscalingV1NamespacedHorizontalPodAutoscaler operation. type ReadAutoscalingV1NamespacedHorizontalPodAutoscalerParams struct { // Name of the HorizontalPodAutoscaler. Name string @@ -46261,6 +46379,7 @@ func decodeReadAutoscalingV1NamespacedHorizontalPodAutoscalerParams(args [2]stri return params, nil } +// ReadAutoscalingV1NamespacedHorizontalPodAutoscalerStatusParams is parameters of readAutoscalingV1NamespacedHorizontalPodAutoscalerStatus operation. type ReadAutoscalingV1NamespacedHorizontalPodAutoscalerStatusParams struct { // Name of the HorizontalPodAutoscaler. Name string @@ -46380,6 +46499,7 @@ func decodeReadAutoscalingV1NamespacedHorizontalPodAutoscalerStatusParams(args [ return params, nil } +// ReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerParams is parameters of readAutoscalingV2beta1NamespacedHorizontalPodAutoscaler operation. type ReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerParams struct { // Name of the HorizontalPodAutoscaler. Name string @@ -46499,6 +46619,7 @@ func decodeReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerParams(args [2 return params, nil } +// ReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerStatusParams is parameters of readAutoscalingV2beta1NamespacedHorizontalPodAutoscalerStatus operation. type ReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerStatusParams struct { // Name of the HorizontalPodAutoscaler. Name string @@ -46618,6 +46739,7 @@ func decodeReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerStatusParams(a return params, nil } +// ReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerParams is parameters of readAutoscalingV2beta2NamespacedHorizontalPodAutoscaler operation. type ReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerParams struct { // Name of the HorizontalPodAutoscaler. Name string @@ -46737,6 +46859,7 @@ func decodeReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerParams(args [2 return params, nil } +// ReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerStatusParams is parameters of readAutoscalingV2beta2NamespacedHorizontalPodAutoscalerStatus operation. type ReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerStatusParams struct { // Name of the HorizontalPodAutoscaler. Name string @@ -46856,6 +46979,7 @@ func decodeReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerStatusParams(a return params, nil } +// ReadBatchV1NamespacedCronJobParams is parameters of readBatchV1NamespacedCronJob operation. type ReadBatchV1NamespacedCronJobParams struct { // Name of the CronJob. Name string @@ -46975,6 +47099,7 @@ func decodeReadBatchV1NamespacedCronJobParams(args [2]string, r *http.Request) ( return params, nil } +// ReadBatchV1NamespacedCronJobStatusParams is parameters of readBatchV1NamespacedCronJobStatus operation. type ReadBatchV1NamespacedCronJobStatusParams struct { // Name of the CronJob. Name string @@ -47094,6 +47219,7 @@ func decodeReadBatchV1NamespacedCronJobStatusParams(args [2]string, r *http.Requ return params, nil } +// ReadBatchV1NamespacedJobParams is parameters of readBatchV1NamespacedJob operation. type ReadBatchV1NamespacedJobParams struct { // Name of the Job. Name string @@ -47213,6 +47339,7 @@ func decodeReadBatchV1NamespacedJobParams(args [2]string, r *http.Request) (para return params, nil } +// ReadBatchV1NamespacedJobStatusParams is parameters of readBatchV1NamespacedJobStatus operation. type ReadBatchV1NamespacedJobStatusParams struct { // Name of the Job. Name string @@ -47332,6 +47459,7 @@ func decodeReadBatchV1NamespacedJobStatusParams(args [2]string, r *http.Request) return params, nil } +// ReadBatchV1beta1NamespacedCronJobParams is parameters of readBatchV1beta1NamespacedCronJob operation. type ReadBatchV1beta1NamespacedCronJobParams struct { // Name of the CronJob. Name string @@ -47451,6 +47579,7 @@ func decodeReadBatchV1beta1NamespacedCronJobParams(args [2]string, r *http.Reque return params, nil } +// ReadBatchV1beta1NamespacedCronJobStatusParams is parameters of readBatchV1beta1NamespacedCronJobStatus operation. type ReadBatchV1beta1NamespacedCronJobStatusParams struct { // Name of the CronJob. Name string @@ -47570,6 +47699,7 @@ func decodeReadBatchV1beta1NamespacedCronJobStatusParams(args [2]string, r *http return params, nil } +// ReadCertificatesV1CertificateSigningRequestParams is parameters of readCertificatesV1CertificateSigningRequest operation. type ReadCertificatesV1CertificateSigningRequestParams struct { // Name of the CertificateSigningRequest. Name string @@ -47655,6 +47785,7 @@ func decodeReadCertificatesV1CertificateSigningRequestParams(args [1]string, r * return params, nil } +// ReadCertificatesV1CertificateSigningRequestApprovalParams is parameters of readCertificatesV1CertificateSigningRequestApproval operation. type ReadCertificatesV1CertificateSigningRequestApprovalParams struct { // Name of the CertificateSigningRequest. Name string @@ -47740,6 +47871,7 @@ func decodeReadCertificatesV1CertificateSigningRequestApprovalParams(args [1]str return params, nil } +// ReadCertificatesV1CertificateSigningRequestStatusParams is parameters of readCertificatesV1CertificateSigningRequestStatus operation. type ReadCertificatesV1CertificateSigningRequestStatusParams struct { // Name of the CertificateSigningRequest. Name string @@ -47825,6 +47957,7 @@ func decodeReadCertificatesV1CertificateSigningRequestStatusParams(args [1]strin return params, nil } +// ReadCoordinationV1NamespacedLeaseParams is parameters of readCoordinationV1NamespacedLease operation. type ReadCoordinationV1NamespacedLeaseParams struct { // Name of the Lease. Name string @@ -47944,6 +48077,7 @@ func decodeReadCoordinationV1NamespacedLeaseParams(args [2]string, r *http.Reque return params, nil } +// ReadCoreV1ComponentStatusParams is parameters of readCoreV1ComponentStatus operation. type ReadCoreV1ComponentStatusParams struct { // Name of the ComponentStatus. Name string @@ -48029,6 +48163,7 @@ func decodeReadCoreV1ComponentStatusParams(args [1]string, r *http.Request) (par return params, nil } +// ReadCoreV1NamespaceParams is parameters of readCoreV1Namespace operation. type ReadCoreV1NamespaceParams struct { // Name of the Namespace. Name string @@ -48114,6 +48249,7 @@ func decodeReadCoreV1NamespaceParams(args [1]string, r *http.Request) (params Re return params, nil } +// ReadCoreV1NamespaceStatusParams is parameters of readCoreV1NamespaceStatus operation. type ReadCoreV1NamespaceStatusParams struct { // Name of the Namespace. Name string @@ -48199,6 +48335,7 @@ func decodeReadCoreV1NamespaceStatusParams(args [1]string, r *http.Request) (par return params, nil } +// ReadCoreV1NamespacedConfigMapParams is parameters of readCoreV1NamespacedConfigMap operation. type ReadCoreV1NamespacedConfigMapParams struct { // Name of the ConfigMap. Name string @@ -48318,6 +48455,7 @@ func decodeReadCoreV1NamespacedConfigMapParams(args [2]string, r *http.Request) return params, nil } +// ReadCoreV1NamespacedEndpointsParams is parameters of readCoreV1NamespacedEndpoints operation. type ReadCoreV1NamespacedEndpointsParams struct { // Name of the Endpoints. Name string @@ -48437,6 +48575,7 @@ func decodeReadCoreV1NamespacedEndpointsParams(args [2]string, r *http.Request) return params, nil } +// ReadCoreV1NamespacedEventParams is parameters of readCoreV1NamespacedEvent operation. type ReadCoreV1NamespacedEventParams struct { // Name of the Event. Name string @@ -48556,6 +48695,7 @@ func decodeReadCoreV1NamespacedEventParams(args [2]string, r *http.Request) (par return params, nil } +// ReadCoreV1NamespacedLimitRangeParams is parameters of readCoreV1NamespacedLimitRange operation. type ReadCoreV1NamespacedLimitRangeParams struct { // Name of the LimitRange. Name string @@ -48675,6 +48815,7 @@ func decodeReadCoreV1NamespacedLimitRangeParams(args [2]string, r *http.Request) return params, nil } +// ReadCoreV1NamespacedPersistentVolumeClaimParams is parameters of readCoreV1NamespacedPersistentVolumeClaim operation. type ReadCoreV1NamespacedPersistentVolumeClaimParams struct { // Name of the PersistentVolumeClaim. Name string @@ -48794,6 +48935,7 @@ func decodeReadCoreV1NamespacedPersistentVolumeClaimParams(args [2]string, r *ht return params, nil } +// ReadCoreV1NamespacedPersistentVolumeClaimStatusParams is parameters of readCoreV1NamespacedPersistentVolumeClaimStatus operation. type ReadCoreV1NamespacedPersistentVolumeClaimStatusParams struct { // Name of the PersistentVolumeClaim. Name string @@ -48913,6 +49055,7 @@ func decodeReadCoreV1NamespacedPersistentVolumeClaimStatusParams(args [2]string, return params, nil } +// ReadCoreV1NamespacedPodParams is parameters of readCoreV1NamespacedPod operation. type ReadCoreV1NamespacedPodParams struct { // Name of the Pod. Name string @@ -49032,6 +49175,7 @@ func decodeReadCoreV1NamespacedPodParams(args [2]string, r *http.Request) (param return params, nil } +// ReadCoreV1NamespacedPodEphemeralcontainersParams is parameters of readCoreV1NamespacedPodEphemeralcontainers operation. type ReadCoreV1NamespacedPodEphemeralcontainersParams struct { // Name of the Pod. Name string @@ -49151,6 +49295,7 @@ func decodeReadCoreV1NamespacedPodEphemeralcontainersParams(args [2]string, r *h return params, nil } +// ReadCoreV1NamespacedPodLogParams is parameters of readCoreV1NamespacedPodLog operation. type ReadCoreV1NamespacedPodLogParams struct { // The container for which to stream logs. Defaults to only container if there is one container in // the pod. @@ -49595,6 +49740,7 @@ func decodeReadCoreV1NamespacedPodLogParams(args [2]string, r *http.Request) (pa return params, nil } +// ReadCoreV1NamespacedPodStatusParams is parameters of readCoreV1NamespacedPodStatus operation. type ReadCoreV1NamespacedPodStatusParams struct { // Name of the Pod. Name string @@ -49714,6 +49860,7 @@ func decodeReadCoreV1NamespacedPodStatusParams(args [2]string, r *http.Request) return params, nil } +// ReadCoreV1NamespacedPodTemplateParams is parameters of readCoreV1NamespacedPodTemplate operation. type ReadCoreV1NamespacedPodTemplateParams struct { // Name of the PodTemplate. Name string @@ -49833,6 +49980,7 @@ func decodeReadCoreV1NamespacedPodTemplateParams(args [2]string, r *http.Request return params, nil } +// ReadCoreV1NamespacedReplicationControllerParams is parameters of readCoreV1NamespacedReplicationController operation. type ReadCoreV1NamespacedReplicationControllerParams struct { // Name of the ReplicationController. Name string @@ -49952,6 +50100,7 @@ func decodeReadCoreV1NamespacedReplicationControllerParams(args [2]string, r *ht return params, nil } +// ReadCoreV1NamespacedReplicationControllerScaleParams is parameters of readCoreV1NamespacedReplicationControllerScale operation. type ReadCoreV1NamespacedReplicationControllerScaleParams struct { // Name of the Scale. Name string @@ -50071,6 +50220,7 @@ func decodeReadCoreV1NamespacedReplicationControllerScaleParams(args [2]string, return params, nil } +// ReadCoreV1NamespacedReplicationControllerStatusParams is parameters of readCoreV1NamespacedReplicationControllerStatus operation. type ReadCoreV1NamespacedReplicationControllerStatusParams struct { // Name of the ReplicationController. Name string @@ -50190,6 +50340,7 @@ func decodeReadCoreV1NamespacedReplicationControllerStatusParams(args [2]string, return params, nil } +// ReadCoreV1NamespacedResourceQuotaParams is parameters of readCoreV1NamespacedResourceQuota operation. type ReadCoreV1NamespacedResourceQuotaParams struct { // Name of the ResourceQuota. Name string @@ -50309,6 +50460,7 @@ func decodeReadCoreV1NamespacedResourceQuotaParams(args [2]string, r *http.Reque return params, nil } +// ReadCoreV1NamespacedResourceQuotaStatusParams is parameters of readCoreV1NamespacedResourceQuotaStatus operation. type ReadCoreV1NamespacedResourceQuotaStatusParams struct { // Name of the ResourceQuota. Name string @@ -50428,6 +50580,7 @@ func decodeReadCoreV1NamespacedResourceQuotaStatusParams(args [2]string, r *http return params, nil } +// ReadCoreV1NamespacedSecretParams is parameters of readCoreV1NamespacedSecret operation. type ReadCoreV1NamespacedSecretParams struct { // Name of the Secret. Name string @@ -50547,6 +50700,7 @@ func decodeReadCoreV1NamespacedSecretParams(args [2]string, r *http.Request) (pa return params, nil } +// ReadCoreV1NamespacedServiceParams is parameters of readCoreV1NamespacedService operation. type ReadCoreV1NamespacedServiceParams struct { // Name of the Service. Name string @@ -50666,6 +50820,7 @@ func decodeReadCoreV1NamespacedServiceParams(args [2]string, r *http.Request) (p return params, nil } +// ReadCoreV1NamespacedServiceAccountParams is parameters of readCoreV1NamespacedServiceAccount operation. type ReadCoreV1NamespacedServiceAccountParams struct { // Name of the ServiceAccount. Name string @@ -50785,6 +50940,7 @@ func decodeReadCoreV1NamespacedServiceAccountParams(args [2]string, r *http.Requ return params, nil } +// ReadCoreV1NamespacedServiceStatusParams is parameters of readCoreV1NamespacedServiceStatus operation. type ReadCoreV1NamespacedServiceStatusParams struct { // Name of the Service. Name string @@ -50904,6 +51060,7 @@ func decodeReadCoreV1NamespacedServiceStatusParams(args [2]string, r *http.Reque return params, nil } +// ReadCoreV1NodeParams is parameters of readCoreV1Node operation. type ReadCoreV1NodeParams struct { // Name of the Node. Name string @@ -50989,6 +51146,7 @@ func decodeReadCoreV1NodeParams(args [1]string, r *http.Request) (params ReadCor return params, nil } +// ReadCoreV1NodeStatusParams is parameters of readCoreV1NodeStatus operation. type ReadCoreV1NodeStatusParams struct { // Name of the Node. Name string @@ -51074,6 +51232,7 @@ func decodeReadCoreV1NodeStatusParams(args [1]string, r *http.Request) (params R return params, nil } +// ReadCoreV1PersistentVolumeParams is parameters of readCoreV1PersistentVolume operation. type ReadCoreV1PersistentVolumeParams struct { // Name of the PersistentVolume. Name string @@ -51159,6 +51318,7 @@ func decodeReadCoreV1PersistentVolumeParams(args [1]string, r *http.Request) (pa return params, nil } +// ReadCoreV1PersistentVolumeStatusParams is parameters of readCoreV1PersistentVolumeStatus operation. type ReadCoreV1PersistentVolumeStatusParams struct { // Name of the PersistentVolume. Name string @@ -51244,6 +51404,7 @@ func decodeReadCoreV1PersistentVolumeStatusParams(args [1]string, r *http.Reques return params, nil } +// ReadDiscoveryV1NamespacedEndpointSliceParams is parameters of readDiscoveryV1NamespacedEndpointSlice operation. type ReadDiscoveryV1NamespacedEndpointSliceParams struct { // Name of the EndpointSlice. Name string @@ -51363,6 +51524,7 @@ func decodeReadDiscoveryV1NamespacedEndpointSliceParams(args [2]string, r *http. return params, nil } +// ReadDiscoveryV1beta1NamespacedEndpointSliceParams is parameters of readDiscoveryV1beta1NamespacedEndpointSlice operation. type ReadDiscoveryV1beta1NamespacedEndpointSliceParams struct { // Name of the EndpointSlice. Name string @@ -51482,6 +51644,7 @@ func decodeReadDiscoveryV1beta1NamespacedEndpointSliceParams(args [2]string, r * return params, nil } +// ReadEventsV1NamespacedEventParams is parameters of readEventsV1NamespacedEvent operation. type ReadEventsV1NamespacedEventParams struct { // Name of the Event. Name string @@ -51601,6 +51764,7 @@ func decodeReadEventsV1NamespacedEventParams(args [2]string, r *http.Request) (p return params, nil } +// ReadEventsV1beta1NamespacedEventParams is parameters of readEventsV1beta1NamespacedEvent operation. type ReadEventsV1beta1NamespacedEventParams struct { // Name of the Event. Name string @@ -51720,6 +51884,7 @@ func decodeReadEventsV1beta1NamespacedEventParams(args [2]string, r *http.Reques return params, nil } +// ReadFlowcontrolApiserverV1beta1FlowSchemaParams is parameters of readFlowcontrolApiserverV1beta1FlowSchema operation. type ReadFlowcontrolApiserverV1beta1FlowSchemaParams struct { // Name of the FlowSchema. Name string @@ -51805,6 +51970,7 @@ func decodeReadFlowcontrolApiserverV1beta1FlowSchemaParams(args [1]string, r *ht return params, nil } +// ReadFlowcontrolApiserverV1beta1FlowSchemaStatusParams is parameters of readFlowcontrolApiserverV1beta1FlowSchemaStatus operation. type ReadFlowcontrolApiserverV1beta1FlowSchemaStatusParams struct { // Name of the FlowSchema. Name string @@ -51890,6 +52056,7 @@ func decodeReadFlowcontrolApiserverV1beta1FlowSchemaStatusParams(args [1]string, return params, nil } +// ReadFlowcontrolApiserverV1beta1PriorityLevelConfigurationParams is parameters of readFlowcontrolApiserverV1beta1PriorityLevelConfiguration operation. type ReadFlowcontrolApiserverV1beta1PriorityLevelConfigurationParams struct { // Name of the PriorityLevelConfiguration. Name string @@ -51975,6 +52142,7 @@ func decodeReadFlowcontrolApiserverV1beta1PriorityLevelConfigurationParams(args return params, nil } +// ReadFlowcontrolApiserverV1beta1PriorityLevelConfigurationStatusParams is parameters of readFlowcontrolApiserverV1beta1PriorityLevelConfigurationStatus operation. type ReadFlowcontrolApiserverV1beta1PriorityLevelConfigurationStatusParams struct { // Name of the PriorityLevelConfiguration. Name string @@ -52060,6 +52228,7 @@ func decodeReadFlowcontrolApiserverV1beta1PriorityLevelConfigurationStatusParams return params, nil } +// ReadFlowcontrolApiserverV1beta2FlowSchemaParams is parameters of readFlowcontrolApiserverV1beta2FlowSchema operation. type ReadFlowcontrolApiserverV1beta2FlowSchemaParams struct { // Name of the FlowSchema. Name string @@ -52145,6 +52314,7 @@ func decodeReadFlowcontrolApiserverV1beta2FlowSchemaParams(args [1]string, r *ht return params, nil } +// ReadFlowcontrolApiserverV1beta2FlowSchemaStatusParams is parameters of readFlowcontrolApiserverV1beta2FlowSchemaStatus operation. type ReadFlowcontrolApiserverV1beta2FlowSchemaStatusParams struct { // Name of the FlowSchema. Name string @@ -52230,6 +52400,7 @@ func decodeReadFlowcontrolApiserverV1beta2FlowSchemaStatusParams(args [1]string, return params, nil } +// ReadFlowcontrolApiserverV1beta2PriorityLevelConfigurationParams is parameters of readFlowcontrolApiserverV1beta2PriorityLevelConfiguration operation. type ReadFlowcontrolApiserverV1beta2PriorityLevelConfigurationParams struct { // Name of the PriorityLevelConfiguration. Name string @@ -52315,6 +52486,7 @@ func decodeReadFlowcontrolApiserverV1beta2PriorityLevelConfigurationParams(args return params, nil } +// ReadFlowcontrolApiserverV1beta2PriorityLevelConfigurationStatusParams is parameters of readFlowcontrolApiserverV1beta2PriorityLevelConfigurationStatus operation. type ReadFlowcontrolApiserverV1beta2PriorityLevelConfigurationStatusParams struct { // Name of the PriorityLevelConfiguration. Name string @@ -52400,6 +52572,7 @@ func decodeReadFlowcontrolApiserverV1beta2PriorityLevelConfigurationStatusParams return params, nil } +// ReadInternalApiserverV1alpha1StorageVersionParams is parameters of readInternalApiserverV1alpha1StorageVersion operation. type ReadInternalApiserverV1alpha1StorageVersionParams struct { // Name of the StorageVersion. Name string @@ -52485,6 +52658,7 @@ func decodeReadInternalApiserverV1alpha1StorageVersionParams(args [1]string, r * return params, nil } +// ReadInternalApiserverV1alpha1StorageVersionStatusParams is parameters of readInternalApiserverV1alpha1StorageVersionStatus operation. type ReadInternalApiserverV1alpha1StorageVersionStatusParams struct { // Name of the StorageVersion. Name string @@ -52570,6 +52744,7 @@ func decodeReadInternalApiserverV1alpha1StorageVersionStatusParams(args [1]strin return params, nil } +// ReadNetworkingV1IngressClassParams is parameters of readNetworkingV1IngressClass operation. type ReadNetworkingV1IngressClassParams struct { // Name of the IngressClass. Name string @@ -52655,6 +52830,7 @@ func decodeReadNetworkingV1IngressClassParams(args [1]string, r *http.Request) ( return params, nil } +// ReadNetworkingV1NamespacedIngressParams is parameters of readNetworkingV1NamespacedIngress operation. type ReadNetworkingV1NamespacedIngressParams struct { // Name of the Ingress. Name string @@ -52774,6 +52950,7 @@ func decodeReadNetworkingV1NamespacedIngressParams(args [2]string, r *http.Reque return params, nil } +// ReadNetworkingV1NamespacedIngressStatusParams is parameters of readNetworkingV1NamespacedIngressStatus operation. type ReadNetworkingV1NamespacedIngressStatusParams struct { // Name of the Ingress. Name string @@ -52893,6 +53070,7 @@ func decodeReadNetworkingV1NamespacedIngressStatusParams(args [2]string, r *http return params, nil } +// ReadNetworkingV1NamespacedNetworkPolicyParams is parameters of readNetworkingV1NamespacedNetworkPolicy operation. type ReadNetworkingV1NamespacedNetworkPolicyParams struct { // Name of the NetworkPolicy. Name string @@ -53012,6 +53190,7 @@ func decodeReadNetworkingV1NamespacedNetworkPolicyParams(args [2]string, r *http return params, nil } +// ReadNodeV1RuntimeClassParams is parameters of readNodeV1RuntimeClass operation. type ReadNodeV1RuntimeClassParams struct { // Name of the RuntimeClass. Name string @@ -53097,6 +53276,7 @@ func decodeReadNodeV1RuntimeClassParams(args [1]string, r *http.Request) (params return params, nil } +// ReadNodeV1alpha1RuntimeClassParams is parameters of readNodeV1alpha1RuntimeClass operation. type ReadNodeV1alpha1RuntimeClassParams struct { // Name of the RuntimeClass. Name string @@ -53182,6 +53362,7 @@ func decodeReadNodeV1alpha1RuntimeClassParams(args [1]string, r *http.Request) ( return params, nil } +// ReadNodeV1beta1RuntimeClassParams is parameters of readNodeV1beta1RuntimeClass operation. type ReadNodeV1beta1RuntimeClassParams struct { // Name of the RuntimeClass. Name string @@ -53267,6 +53448,7 @@ func decodeReadNodeV1beta1RuntimeClassParams(args [1]string, r *http.Request) (p return params, nil } +// ReadPolicyV1NamespacedPodDisruptionBudgetParams is parameters of readPolicyV1NamespacedPodDisruptionBudget operation. type ReadPolicyV1NamespacedPodDisruptionBudgetParams struct { // Name of the PodDisruptionBudget. Name string @@ -53386,6 +53568,7 @@ func decodeReadPolicyV1NamespacedPodDisruptionBudgetParams(args [2]string, r *ht return params, nil } +// ReadPolicyV1NamespacedPodDisruptionBudgetStatusParams is parameters of readPolicyV1NamespacedPodDisruptionBudgetStatus operation. type ReadPolicyV1NamespacedPodDisruptionBudgetStatusParams struct { // Name of the PodDisruptionBudget. Name string @@ -53505,6 +53688,7 @@ func decodeReadPolicyV1NamespacedPodDisruptionBudgetStatusParams(args [2]string, return params, nil } +// ReadPolicyV1beta1NamespacedPodDisruptionBudgetParams is parameters of readPolicyV1beta1NamespacedPodDisruptionBudget operation. type ReadPolicyV1beta1NamespacedPodDisruptionBudgetParams struct { // Name of the PodDisruptionBudget. Name string @@ -53624,6 +53808,7 @@ func decodeReadPolicyV1beta1NamespacedPodDisruptionBudgetParams(args [2]string, return params, nil } +// ReadPolicyV1beta1NamespacedPodDisruptionBudgetStatusParams is parameters of readPolicyV1beta1NamespacedPodDisruptionBudgetStatus operation. type ReadPolicyV1beta1NamespacedPodDisruptionBudgetStatusParams struct { // Name of the PodDisruptionBudget. Name string @@ -53743,6 +53928,7 @@ func decodeReadPolicyV1beta1NamespacedPodDisruptionBudgetStatusParams(args [2]st return params, nil } +// ReadPolicyV1beta1PodSecurityPolicyParams is parameters of readPolicyV1beta1PodSecurityPolicy operation. type ReadPolicyV1beta1PodSecurityPolicyParams struct { // Name of the PodSecurityPolicy. Name string @@ -53828,6 +54014,7 @@ func decodeReadPolicyV1beta1PodSecurityPolicyParams(args [1]string, r *http.Requ return params, nil } +// ReadRbacAuthorizationV1ClusterRoleParams is parameters of readRbacAuthorizationV1ClusterRole operation. type ReadRbacAuthorizationV1ClusterRoleParams struct { // Name of the ClusterRole. Name string @@ -53913,6 +54100,7 @@ func decodeReadRbacAuthorizationV1ClusterRoleParams(args [1]string, r *http.Requ return params, nil } +// ReadRbacAuthorizationV1ClusterRoleBindingParams is parameters of readRbacAuthorizationV1ClusterRoleBinding operation. type ReadRbacAuthorizationV1ClusterRoleBindingParams struct { // Name of the ClusterRoleBinding. Name string @@ -53998,6 +54186,7 @@ func decodeReadRbacAuthorizationV1ClusterRoleBindingParams(args [1]string, r *ht return params, nil } +// ReadRbacAuthorizationV1NamespacedRoleParams is parameters of readRbacAuthorizationV1NamespacedRole operation. type ReadRbacAuthorizationV1NamespacedRoleParams struct { // Name of the Role. Name string @@ -54117,6 +54306,7 @@ func decodeReadRbacAuthorizationV1NamespacedRoleParams(args [2]string, r *http.R return params, nil } +// ReadRbacAuthorizationV1NamespacedRoleBindingParams is parameters of readRbacAuthorizationV1NamespacedRoleBinding operation. type ReadRbacAuthorizationV1NamespacedRoleBindingParams struct { // Name of the RoleBinding. Name string @@ -54236,6 +54426,7 @@ func decodeReadRbacAuthorizationV1NamespacedRoleBindingParams(args [2]string, r return params, nil } +// ReadSchedulingV1PriorityClassParams is parameters of readSchedulingV1PriorityClass operation. type ReadSchedulingV1PriorityClassParams struct { // Name of the PriorityClass. Name string @@ -54321,6 +54512,7 @@ func decodeReadSchedulingV1PriorityClassParams(args [1]string, r *http.Request) return params, nil } +// ReadStorageV1CSIDriverParams is parameters of readStorageV1CSIDriver operation. type ReadStorageV1CSIDriverParams struct { // Name of the CSIDriver. Name string @@ -54406,6 +54598,7 @@ func decodeReadStorageV1CSIDriverParams(args [1]string, r *http.Request) (params return params, nil } +// ReadStorageV1CSINodeParams is parameters of readStorageV1CSINode operation. type ReadStorageV1CSINodeParams struct { // Name of the CSINode. Name string @@ -54491,6 +54684,7 @@ func decodeReadStorageV1CSINodeParams(args [1]string, r *http.Request) (params R return params, nil } +// ReadStorageV1StorageClassParams is parameters of readStorageV1StorageClass operation. type ReadStorageV1StorageClassParams struct { // Name of the StorageClass. Name string @@ -54576,6 +54770,7 @@ func decodeReadStorageV1StorageClassParams(args [1]string, r *http.Request) (par return params, nil } +// ReadStorageV1VolumeAttachmentParams is parameters of readStorageV1VolumeAttachment operation. type ReadStorageV1VolumeAttachmentParams struct { // Name of the VolumeAttachment. Name string @@ -54661,6 +54856,7 @@ func decodeReadStorageV1VolumeAttachmentParams(args [1]string, r *http.Request) return params, nil } +// ReadStorageV1VolumeAttachmentStatusParams is parameters of readStorageV1VolumeAttachmentStatus operation. type ReadStorageV1VolumeAttachmentStatusParams struct { // Name of the VolumeAttachment. Name string @@ -54746,6 +54942,7 @@ func decodeReadStorageV1VolumeAttachmentStatusParams(args [1]string, r *http.Req return params, nil } +// ReadStorageV1alpha1NamespacedCSIStorageCapacityParams is parameters of readStorageV1alpha1NamespacedCSIStorageCapacity operation. type ReadStorageV1alpha1NamespacedCSIStorageCapacityParams struct { // Name of the CSIStorageCapacity. Name string @@ -54865,6 +55062,7 @@ func decodeReadStorageV1alpha1NamespacedCSIStorageCapacityParams(args [2]string, return params, nil } +// ReadStorageV1beta1NamespacedCSIStorageCapacityParams is parameters of readStorageV1beta1NamespacedCSIStorageCapacity operation. type ReadStorageV1beta1NamespacedCSIStorageCapacityParams struct { // Name of the CSIStorageCapacity. Name string @@ -54984,6 +55182,7 @@ func decodeReadStorageV1beta1NamespacedCSIStorageCapacityParams(args [2]string, return params, nil } +// WatchAdmissionregistrationV1MutatingWebhookConfigurationParams is parameters of watchAdmissionregistrationV1MutatingWebhookConfiguration operation. type WatchAdmissionregistrationV1MutatingWebhookConfigurationParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -55456,6 +55655,7 @@ func decodeWatchAdmissionregistrationV1MutatingWebhookConfigurationParams(args [ return params, nil } +// WatchAdmissionregistrationV1MutatingWebhookConfigurationListParams is parameters of watchAdmissionregistrationV1MutatingWebhookConfigurationList operation. type WatchAdmissionregistrationV1MutatingWebhookConfigurationListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -55894,6 +56094,7 @@ func decodeWatchAdmissionregistrationV1MutatingWebhookConfigurationListParams(ar return params, nil } +// WatchAdmissionregistrationV1ValidatingWebhookConfigurationParams is parameters of watchAdmissionregistrationV1ValidatingWebhookConfiguration operation. type WatchAdmissionregistrationV1ValidatingWebhookConfigurationParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -56366,6 +56567,7 @@ func decodeWatchAdmissionregistrationV1ValidatingWebhookConfigurationParams(args return params, nil } +// WatchAdmissionregistrationV1ValidatingWebhookConfigurationListParams is parameters of watchAdmissionregistrationV1ValidatingWebhookConfigurationList operation. type WatchAdmissionregistrationV1ValidatingWebhookConfigurationListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -56804,6 +57006,7 @@ func decodeWatchAdmissionregistrationV1ValidatingWebhookConfigurationListParams( return params, nil } +// WatchApiextensionsV1CustomResourceDefinitionParams is parameters of watchApiextensionsV1CustomResourceDefinition operation. type WatchApiextensionsV1CustomResourceDefinitionParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -57276,6 +57479,7 @@ func decodeWatchApiextensionsV1CustomResourceDefinitionParams(args [1]string, r return params, nil } +// WatchApiextensionsV1CustomResourceDefinitionListParams is parameters of watchApiextensionsV1CustomResourceDefinitionList operation. type WatchApiextensionsV1CustomResourceDefinitionListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -57714,6 +57918,7 @@ func decodeWatchApiextensionsV1CustomResourceDefinitionListParams(args [0]string return params, nil } +// WatchApiregistrationV1APIServiceParams is parameters of watchApiregistrationV1APIService operation. type WatchApiregistrationV1APIServiceParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -58186,6 +58391,7 @@ func decodeWatchApiregistrationV1APIServiceParams(args [1]string, r *http.Reques return params, nil } +// WatchApiregistrationV1APIServiceListParams is parameters of watchApiregistrationV1APIServiceList operation. type WatchApiregistrationV1APIServiceListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -58624,6 +58830,7 @@ func decodeWatchApiregistrationV1APIServiceListParams(args [0]string, r *http.Re return params, nil } +// WatchAppsV1ControllerRevisionListForAllNamespacesParams is parameters of watchAppsV1ControllerRevisionListForAllNamespaces operation. type WatchAppsV1ControllerRevisionListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -59062,6 +59269,7 @@ func decodeWatchAppsV1ControllerRevisionListForAllNamespacesParams(args [0]strin return params, nil } +// WatchAppsV1DaemonSetListForAllNamespacesParams is parameters of watchAppsV1DaemonSetListForAllNamespaces operation. type WatchAppsV1DaemonSetListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -59500,6 +59708,7 @@ func decodeWatchAppsV1DaemonSetListForAllNamespacesParams(args [0]string, r *htt return params, nil } +// WatchAppsV1DeploymentListForAllNamespacesParams is parameters of watchAppsV1DeploymentListForAllNamespaces operation. type WatchAppsV1DeploymentListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -59938,6 +60147,7 @@ func decodeWatchAppsV1DeploymentListForAllNamespacesParams(args [0]string, r *ht return params, nil } +// WatchAppsV1NamespacedControllerRevisionParams is parameters of watchAppsV1NamespacedControllerRevision operation. type WatchAppsV1NamespacedControllerRevisionParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -60444,6 +60654,7 @@ func decodeWatchAppsV1NamespacedControllerRevisionParams(args [2]string, r *http return params, nil } +// WatchAppsV1NamespacedControllerRevisionListParams is parameters of watchAppsV1NamespacedControllerRevisionList operation. type WatchAppsV1NamespacedControllerRevisionListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -60916,6 +61127,7 @@ func decodeWatchAppsV1NamespacedControllerRevisionListParams(args [1]string, r * return params, nil } +// WatchAppsV1NamespacedDaemonSetParams is parameters of watchAppsV1NamespacedDaemonSet operation. type WatchAppsV1NamespacedDaemonSetParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -61422,6 +61634,7 @@ func decodeWatchAppsV1NamespacedDaemonSetParams(args [2]string, r *http.Request) return params, nil } +// WatchAppsV1NamespacedDaemonSetListParams is parameters of watchAppsV1NamespacedDaemonSetList operation. type WatchAppsV1NamespacedDaemonSetListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -61894,6 +62107,7 @@ func decodeWatchAppsV1NamespacedDaemonSetListParams(args [1]string, r *http.Requ return params, nil } +// WatchAppsV1NamespacedDeploymentParams is parameters of watchAppsV1NamespacedDeployment operation. type WatchAppsV1NamespacedDeploymentParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -62400,6 +62614,7 @@ func decodeWatchAppsV1NamespacedDeploymentParams(args [2]string, r *http.Request return params, nil } +// WatchAppsV1NamespacedDeploymentListParams is parameters of watchAppsV1NamespacedDeploymentList operation. type WatchAppsV1NamespacedDeploymentListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -62872,6 +63087,7 @@ func decodeWatchAppsV1NamespacedDeploymentListParams(args [1]string, r *http.Req return params, nil } +// WatchAppsV1NamespacedReplicaSetParams is parameters of watchAppsV1NamespacedReplicaSet operation. type WatchAppsV1NamespacedReplicaSetParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -63378,6 +63594,7 @@ func decodeWatchAppsV1NamespacedReplicaSetParams(args [2]string, r *http.Request return params, nil } +// WatchAppsV1NamespacedReplicaSetListParams is parameters of watchAppsV1NamespacedReplicaSetList operation. type WatchAppsV1NamespacedReplicaSetListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -63850,6 +64067,7 @@ func decodeWatchAppsV1NamespacedReplicaSetListParams(args [1]string, r *http.Req return params, nil } +// WatchAppsV1NamespacedStatefulSetParams is parameters of watchAppsV1NamespacedStatefulSet operation. type WatchAppsV1NamespacedStatefulSetParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -64356,6 +64574,7 @@ func decodeWatchAppsV1NamespacedStatefulSetParams(args [2]string, r *http.Reques return params, nil } +// WatchAppsV1NamespacedStatefulSetListParams is parameters of watchAppsV1NamespacedStatefulSetList operation. type WatchAppsV1NamespacedStatefulSetListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -64828,6 +65047,7 @@ func decodeWatchAppsV1NamespacedStatefulSetListParams(args [1]string, r *http.Re return params, nil } +// WatchAppsV1ReplicaSetListForAllNamespacesParams is parameters of watchAppsV1ReplicaSetListForAllNamespaces operation. type WatchAppsV1ReplicaSetListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -65266,6 +65486,7 @@ func decodeWatchAppsV1ReplicaSetListForAllNamespacesParams(args [0]string, r *ht return params, nil } +// WatchAppsV1StatefulSetListForAllNamespacesParams is parameters of watchAppsV1StatefulSetListForAllNamespaces operation. type WatchAppsV1StatefulSetListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -65704,6 +65925,7 @@ func decodeWatchAppsV1StatefulSetListForAllNamespacesParams(args [0]string, r *h return params, nil } +// WatchAutoscalingV1HorizontalPodAutoscalerListForAllNamespacesParams is parameters of watchAutoscalingV1HorizontalPodAutoscalerListForAllNamespaces operation. type WatchAutoscalingV1HorizontalPodAutoscalerListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -66142,6 +66364,7 @@ func decodeWatchAutoscalingV1HorizontalPodAutoscalerListForAllNamespacesParams(a return params, nil } +// WatchAutoscalingV1NamespacedHorizontalPodAutoscalerParams is parameters of watchAutoscalingV1NamespacedHorizontalPodAutoscaler operation. type WatchAutoscalingV1NamespacedHorizontalPodAutoscalerParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -66648,6 +66871,7 @@ func decodeWatchAutoscalingV1NamespacedHorizontalPodAutoscalerParams(args [2]str return params, nil } +// WatchAutoscalingV1NamespacedHorizontalPodAutoscalerListParams is parameters of watchAutoscalingV1NamespacedHorizontalPodAutoscalerList operation. type WatchAutoscalingV1NamespacedHorizontalPodAutoscalerListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -67120,6 +67344,7 @@ func decodeWatchAutoscalingV1NamespacedHorizontalPodAutoscalerListParams(args [1 return params, nil } +// WatchAutoscalingV2beta1HorizontalPodAutoscalerListForAllNamespacesParams is parameters of watchAutoscalingV2beta1HorizontalPodAutoscalerListForAllNamespaces operation. type WatchAutoscalingV2beta1HorizontalPodAutoscalerListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -67558,6 +67783,7 @@ func decodeWatchAutoscalingV2beta1HorizontalPodAutoscalerListForAllNamespacesPar return params, nil } +// WatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerParams is parameters of watchAutoscalingV2beta1NamespacedHorizontalPodAutoscaler operation. type WatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -68064,6 +68290,7 @@ func decodeWatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerParams(args [ return params, nil } +// WatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerListParams is parameters of watchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerList operation. type WatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -68536,6 +68763,7 @@ func decodeWatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerListParams(ar return params, nil } +// WatchAutoscalingV2beta2HorizontalPodAutoscalerListForAllNamespacesParams is parameters of watchAutoscalingV2beta2HorizontalPodAutoscalerListForAllNamespaces operation. type WatchAutoscalingV2beta2HorizontalPodAutoscalerListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -68974,6 +69202,7 @@ func decodeWatchAutoscalingV2beta2HorizontalPodAutoscalerListForAllNamespacesPar return params, nil } +// WatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerParams is parameters of watchAutoscalingV2beta2NamespacedHorizontalPodAutoscaler operation. type WatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -69480,6 +69709,7 @@ func decodeWatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerParams(args [ return params, nil } +// WatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerListParams is parameters of watchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerList operation. type WatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -69952,6 +70182,7 @@ func decodeWatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerListParams(ar return params, nil } +// WatchBatchV1CronJobListForAllNamespacesParams is parameters of watchBatchV1CronJobListForAllNamespaces operation. type WatchBatchV1CronJobListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -70390,6 +70621,7 @@ func decodeWatchBatchV1CronJobListForAllNamespacesParams(args [0]string, r *http return params, nil } +// WatchBatchV1JobListForAllNamespacesParams is parameters of watchBatchV1JobListForAllNamespaces operation. type WatchBatchV1JobListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -70828,6 +71060,7 @@ func decodeWatchBatchV1JobListForAllNamespacesParams(args [0]string, r *http.Req return params, nil } +// WatchBatchV1NamespacedCronJobParams is parameters of watchBatchV1NamespacedCronJob operation. type WatchBatchV1NamespacedCronJobParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -71334,6 +71567,7 @@ func decodeWatchBatchV1NamespacedCronJobParams(args [2]string, r *http.Request) return params, nil } +// WatchBatchV1NamespacedCronJobListParams is parameters of watchBatchV1NamespacedCronJobList operation. type WatchBatchV1NamespacedCronJobListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -71806,6 +72040,7 @@ func decodeWatchBatchV1NamespacedCronJobListParams(args [1]string, r *http.Reque return params, nil } +// WatchBatchV1NamespacedJobParams is parameters of watchBatchV1NamespacedJob operation. type WatchBatchV1NamespacedJobParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -72312,6 +72547,7 @@ func decodeWatchBatchV1NamespacedJobParams(args [2]string, r *http.Request) (par return params, nil } +// WatchBatchV1NamespacedJobListParams is parameters of watchBatchV1NamespacedJobList operation. type WatchBatchV1NamespacedJobListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -72784,6 +73020,7 @@ func decodeWatchBatchV1NamespacedJobListParams(args [1]string, r *http.Request) return params, nil } +// WatchBatchV1beta1CronJobListForAllNamespacesParams is parameters of watchBatchV1beta1CronJobListForAllNamespaces operation. type WatchBatchV1beta1CronJobListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -73222,6 +73459,7 @@ func decodeWatchBatchV1beta1CronJobListForAllNamespacesParams(args [0]string, r return params, nil } +// WatchBatchV1beta1NamespacedCronJobParams is parameters of watchBatchV1beta1NamespacedCronJob operation. type WatchBatchV1beta1NamespacedCronJobParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -73728,6 +73966,7 @@ func decodeWatchBatchV1beta1NamespacedCronJobParams(args [2]string, r *http.Requ return params, nil } +// WatchBatchV1beta1NamespacedCronJobListParams is parameters of watchBatchV1beta1NamespacedCronJobList operation. type WatchBatchV1beta1NamespacedCronJobListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -74200,6 +74439,7 @@ func decodeWatchBatchV1beta1NamespacedCronJobListParams(args [1]string, r *http. return params, nil } +// WatchCertificatesV1CertificateSigningRequestParams is parameters of watchCertificatesV1CertificateSigningRequest operation. type WatchCertificatesV1CertificateSigningRequestParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -74672,6 +74912,7 @@ func decodeWatchCertificatesV1CertificateSigningRequestParams(args [1]string, r return params, nil } +// WatchCertificatesV1CertificateSigningRequestListParams is parameters of watchCertificatesV1CertificateSigningRequestList operation. type WatchCertificatesV1CertificateSigningRequestListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -75110,6 +75351,7 @@ func decodeWatchCertificatesV1CertificateSigningRequestListParams(args [0]string return params, nil } +// WatchCoordinationV1LeaseListForAllNamespacesParams is parameters of watchCoordinationV1LeaseListForAllNamespaces operation. type WatchCoordinationV1LeaseListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -75548,6 +75790,7 @@ func decodeWatchCoordinationV1LeaseListForAllNamespacesParams(args [0]string, r return params, nil } +// WatchCoordinationV1NamespacedLeaseParams is parameters of watchCoordinationV1NamespacedLease operation. type WatchCoordinationV1NamespacedLeaseParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -76054,6 +76297,7 @@ func decodeWatchCoordinationV1NamespacedLeaseParams(args [2]string, r *http.Requ return params, nil } +// WatchCoordinationV1NamespacedLeaseListParams is parameters of watchCoordinationV1NamespacedLeaseList operation. type WatchCoordinationV1NamespacedLeaseListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -76526,6 +76770,7 @@ func decodeWatchCoordinationV1NamespacedLeaseListParams(args [1]string, r *http. return params, nil } +// WatchCoreV1ConfigMapListForAllNamespacesParams is parameters of watchCoreV1ConfigMapListForAllNamespaces operation. type WatchCoreV1ConfigMapListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -76964,6 +77209,7 @@ func decodeWatchCoreV1ConfigMapListForAllNamespacesParams(args [0]string, r *htt return params, nil } +// WatchCoreV1EndpointsListForAllNamespacesParams is parameters of watchCoreV1EndpointsListForAllNamespaces operation. type WatchCoreV1EndpointsListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -77402,6 +77648,7 @@ func decodeWatchCoreV1EndpointsListForAllNamespacesParams(args [0]string, r *htt return params, nil } +// WatchCoreV1EventListForAllNamespacesParams is parameters of watchCoreV1EventListForAllNamespaces operation. type WatchCoreV1EventListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -77840,6 +78087,7 @@ func decodeWatchCoreV1EventListForAllNamespacesParams(args [0]string, r *http.Re return params, nil } +// WatchCoreV1LimitRangeListForAllNamespacesParams is parameters of watchCoreV1LimitRangeListForAllNamespaces operation. type WatchCoreV1LimitRangeListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -78278,6 +78526,7 @@ func decodeWatchCoreV1LimitRangeListForAllNamespacesParams(args [0]string, r *ht return params, nil } +// WatchCoreV1NamespaceParams is parameters of watchCoreV1Namespace operation. type WatchCoreV1NamespaceParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -78750,6 +78999,7 @@ func decodeWatchCoreV1NamespaceParams(args [1]string, r *http.Request) (params W return params, nil } +// WatchCoreV1NamespaceListParams is parameters of watchCoreV1NamespaceList operation. type WatchCoreV1NamespaceListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -79188,6 +79438,7 @@ func decodeWatchCoreV1NamespaceListParams(args [0]string, r *http.Request) (para return params, nil } +// WatchCoreV1NamespacedConfigMapParams is parameters of watchCoreV1NamespacedConfigMap operation. type WatchCoreV1NamespacedConfigMapParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -79694,6 +79945,7 @@ func decodeWatchCoreV1NamespacedConfigMapParams(args [2]string, r *http.Request) return params, nil } +// WatchCoreV1NamespacedConfigMapListParams is parameters of watchCoreV1NamespacedConfigMapList operation. type WatchCoreV1NamespacedConfigMapListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -80166,6 +80418,7 @@ func decodeWatchCoreV1NamespacedConfigMapListParams(args [1]string, r *http.Requ return params, nil } +// WatchCoreV1NamespacedEndpointsParams is parameters of watchCoreV1NamespacedEndpoints operation. type WatchCoreV1NamespacedEndpointsParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -80672,6 +80925,7 @@ func decodeWatchCoreV1NamespacedEndpointsParams(args [2]string, r *http.Request) return params, nil } +// WatchCoreV1NamespacedEndpointsListParams is parameters of watchCoreV1NamespacedEndpointsList operation. type WatchCoreV1NamespacedEndpointsListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -81144,6 +81398,7 @@ func decodeWatchCoreV1NamespacedEndpointsListParams(args [1]string, r *http.Requ return params, nil } +// WatchCoreV1NamespacedEventParams is parameters of watchCoreV1NamespacedEvent operation. type WatchCoreV1NamespacedEventParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -81650,6 +81905,7 @@ func decodeWatchCoreV1NamespacedEventParams(args [2]string, r *http.Request) (pa return params, nil } +// WatchCoreV1NamespacedEventListParams is parameters of watchCoreV1NamespacedEventList operation. type WatchCoreV1NamespacedEventListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -82122,6 +82378,7 @@ func decodeWatchCoreV1NamespacedEventListParams(args [1]string, r *http.Request) return params, nil } +// WatchCoreV1NamespacedLimitRangeParams is parameters of watchCoreV1NamespacedLimitRange operation. type WatchCoreV1NamespacedLimitRangeParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -82628,6 +82885,7 @@ func decodeWatchCoreV1NamespacedLimitRangeParams(args [2]string, r *http.Request return params, nil } +// WatchCoreV1NamespacedLimitRangeListParams is parameters of watchCoreV1NamespacedLimitRangeList operation. type WatchCoreV1NamespacedLimitRangeListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -83100,6 +83358,7 @@ func decodeWatchCoreV1NamespacedLimitRangeListParams(args [1]string, r *http.Req return params, nil } +// WatchCoreV1NamespacedPersistentVolumeClaimParams is parameters of watchCoreV1NamespacedPersistentVolumeClaim operation. type WatchCoreV1NamespacedPersistentVolumeClaimParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -83606,6 +83865,7 @@ func decodeWatchCoreV1NamespacedPersistentVolumeClaimParams(args [2]string, r *h return params, nil } +// WatchCoreV1NamespacedPersistentVolumeClaimListParams is parameters of watchCoreV1NamespacedPersistentVolumeClaimList operation. type WatchCoreV1NamespacedPersistentVolumeClaimListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -84078,6 +84338,7 @@ func decodeWatchCoreV1NamespacedPersistentVolumeClaimListParams(args [1]string, return params, nil } +// WatchCoreV1NamespacedPodParams is parameters of watchCoreV1NamespacedPod operation. type WatchCoreV1NamespacedPodParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -84584,6 +84845,7 @@ func decodeWatchCoreV1NamespacedPodParams(args [2]string, r *http.Request) (para return params, nil } +// WatchCoreV1NamespacedPodListParams is parameters of watchCoreV1NamespacedPodList operation. type WatchCoreV1NamespacedPodListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -85056,6 +85318,7 @@ func decodeWatchCoreV1NamespacedPodListParams(args [1]string, r *http.Request) ( return params, nil } +// WatchCoreV1NamespacedPodTemplateParams is parameters of watchCoreV1NamespacedPodTemplate operation. type WatchCoreV1NamespacedPodTemplateParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -85562,6 +85825,7 @@ func decodeWatchCoreV1NamespacedPodTemplateParams(args [2]string, r *http.Reques return params, nil } +// WatchCoreV1NamespacedPodTemplateListParams is parameters of watchCoreV1NamespacedPodTemplateList operation. type WatchCoreV1NamespacedPodTemplateListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -86034,6 +86298,7 @@ func decodeWatchCoreV1NamespacedPodTemplateListParams(args [1]string, r *http.Re return params, nil } +// WatchCoreV1NamespacedReplicationControllerParams is parameters of watchCoreV1NamespacedReplicationController operation. type WatchCoreV1NamespacedReplicationControllerParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -86540,6 +86805,7 @@ func decodeWatchCoreV1NamespacedReplicationControllerParams(args [2]string, r *h return params, nil } +// WatchCoreV1NamespacedReplicationControllerListParams is parameters of watchCoreV1NamespacedReplicationControllerList operation. type WatchCoreV1NamespacedReplicationControllerListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -87012,6 +87278,7 @@ func decodeWatchCoreV1NamespacedReplicationControllerListParams(args [1]string, return params, nil } +// WatchCoreV1NamespacedResourceQuotaParams is parameters of watchCoreV1NamespacedResourceQuota operation. type WatchCoreV1NamespacedResourceQuotaParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -87518,6 +87785,7 @@ func decodeWatchCoreV1NamespacedResourceQuotaParams(args [2]string, r *http.Requ return params, nil } +// WatchCoreV1NamespacedResourceQuotaListParams is parameters of watchCoreV1NamespacedResourceQuotaList operation. type WatchCoreV1NamespacedResourceQuotaListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -87990,6 +88258,7 @@ func decodeWatchCoreV1NamespacedResourceQuotaListParams(args [1]string, r *http. return params, nil } +// WatchCoreV1NamespacedSecretParams is parameters of watchCoreV1NamespacedSecret operation. type WatchCoreV1NamespacedSecretParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -88496,6 +88765,7 @@ func decodeWatchCoreV1NamespacedSecretParams(args [2]string, r *http.Request) (p return params, nil } +// WatchCoreV1NamespacedSecretListParams is parameters of watchCoreV1NamespacedSecretList operation. type WatchCoreV1NamespacedSecretListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -88968,6 +89238,7 @@ func decodeWatchCoreV1NamespacedSecretListParams(args [1]string, r *http.Request return params, nil } +// WatchCoreV1NamespacedServiceParams is parameters of watchCoreV1NamespacedService operation. type WatchCoreV1NamespacedServiceParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -89474,6 +89745,7 @@ func decodeWatchCoreV1NamespacedServiceParams(args [2]string, r *http.Request) ( return params, nil } +// WatchCoreV1NamespacedServiceAccountParams is parameters of watchCoreV1NamespacedServiceAccount operation. type WatchCoreV1NamespacedServiceAccountParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -89980,6 +90252,7 @@ func decodeWatchCoreV1NamespacedServiceAccountParams(args [2]string, r *http.Req return params, nil } +// WatchCoreV1NamespacedServiceAccountListParams is parameters of watchCoreV1NamespacedServiceAccountList operation. type WatchCoreV1NamespacedServiceAccountListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -90452,6 +90725,7 @@ func decodeWatchCoreV1NamespacedServiceAccountListParams(args [1]string, r *http return params, nil } +// WatchCoreV1NamespacedServiceListParams is parameters of watchCoreV1NamespacedServiceList operation. type WatchCoreV1NamespacedServiceListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -90924,6 +91198,7 @@ func decodeWatchCoreV1NamespacedServiceListParams(args [1]string, r *http.Reques return params, nil } +// WatchCoreV1NodeParams is parameters of watchCoreV1Node operation. type WatchCoreV1NodeParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -91396,6 +91671,7 @@ func decodeWatchCoreV1NodeParams(args [1]string, r *http.Request) (params WatchC return params, nil } +// WatchCoreV1NodeListParams is parameters of watchCoreV1NodeList operation. type WatchCoreV1NodeListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -91834,6 +92110,7 @@ func decodeWatchCoreV1NodeListParams(args [0]string, r *http.Request) (params Wa return params, nil } +// WatchCoreV1PersistentVolumeParams is parameters of watchCoreV1PersistentVolume operation. type WatchCoreV1PersistentVolumeParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -92306,6 +92583,7 @@ func decodeWatchCoreV1PersistentVolumeParams(args [1]string, r *http.Request) (p return params, nil } +// WatchCoreV1PersistentVolumeClaimListForAllNamespacesParams is parameters of watchCoreV1PersistentVolumeClaimListForAllNamespaces operation. type WatchCoreV1PersistentVolumeClaimListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -92744,6 +93022,7 @@ func decodeWatchCoreV1PersistentVolumeClaimListForAllNamespacesParams(args [0]st return params, nil } +// WatchCoreV1PersistentVolumeListParams is parameters of watchCoreV1PersistentVolumeList operation. type WatchCoreV1PersistentVolumeListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -93182,6 +93461,7 @@ func decodeWatchCoreV1PersistentVolumeListParams(args [0]string, r *http.Request return params, nil } +// WatchCoreV1PodListForAllNamespacesParams is parameters of watchCoreV1PodListForAllNamespaces operation. type WatchCoreV1PodListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -93620,6 +93900,7 @@ func decodeWatchCoreV1PodListForAllNamespacesParams(args [0]string, r *http.Requ return params, nil } +// WatchCoreV1PodTemplateListForAllNamespacesParams is parameters of watchCoreV1PodTemplateListForAllNamespaces operation. type WatchCoreV1PodTemplateListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -94058,6 +94339,7 @@ func decodeWatchCoreV1PodTemplateListForAllNamespacesParams(args [0]string, r *h return params, nil } +// WatchCoreV1ReplicationControllerListForAllNamespacesParams is parameters of watchCoreV1ReplicationControllerListForAllNamespaces operation. type WatchCoreV1ReplicationControllerListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -94496,6 +94778,7 @@ func decodeWatchCoreV1ReplicationControllerListForAllNamespacesParams(args [0]st return params, nil } +// WatchCoreV1ResourceQuotaListForAllNamespacesParams is parameters of watchCoreV1ResourceQuotaListForAllNamespaces operation. type WatchCoreV1ResourceQuotaListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -94934,6 +95217,7 @@ func decodeWatchCoreV1ResourceQuotaListForAllNamespacesParams(args [0]string, r return params, nil } +// WatchCoreV1SecretListForAllNamespacesParams is parameters of watchCoreV1SecretListForAllNamespaces operation. type WatchCoreV1SecretListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -95372,6 +95656,7 @@ func decodeWatchCoreV1SecretListForAllNamespacesParams(args [0]string, r *http.R return params, nil } +// WatchCoreV1ServiceAccountListForAllNamespacesParams is parameters of watchCoreV1ServiceAccountListForAllNamespaces operation. type WatchCoreV1ServiceAccountListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -95810,6 +96095,7 @@ func decodeWatchCoreV1ServiceAccountListForAllNamespacesParams(args [0]string, r return params, nil } +// WatchCoreV1ServiceListForAllNamespacesParams is parameters of watchCoreV1ServiceListForAllNamespaces operation. type WatchCoreV1ServiceListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -96248,6 +96534,7 @@ func decodeWatchCoreV1ServiceListForAllNamespacesParams(args [0]string, r *http. return params, nil } +// WatchDiscoveryV1EndpointSliceListForAllNamespacesParams is parameters of watchDiscoveryV1EndpointSliceListForAllNamespaces operation. type WatchDiscoveryV1EndpointSliceListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -96686,6 +96973,7 @@ func decodeWatchDiscoveryV1EndpointSliceListForAllNamespacesParams(args [0]strin return params, nil } +// WatchDiscoveryV1NamespacedEndpointSliceParams is parameters of watchDiscoveryV1NamespacedEndpointSlice operation. type WatchDiscoveryV1NamespacedEndpointSliceParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -97192,6 +97480,7 @@ func decodeWatchDiscoveryV1NamespacedEndpointSliceParams(args [2]string, r *http return params, nil } +// WatchDiscoveryV1NamespacedEndpointSliceListParams is parameters of watchDiscoveryV1NamespacedEndpointSliceList operation. type WatchDiscoveryV1NamespacedEndpointSliceListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -97664,6 +97953,7 @@ func decodeWatchDiscoveryV1NamespacedEndpointSliceListParams(args [1]string, r * return params, nil } +// WatchDiscoveryV1beta1EndpointSliceListForAllNamespacesParams is parameters of watchDiscoveryV1beta1EndpointSliceListForAllNamespaces operation. type WatchDiscoveryV1beta1EndpointSliceListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -98102,6 +98392,7 @@ func decodeWatchDiscoveryV1beta1EndpointSliceListForAllNamespacesParams(args [0] return params, nil } +// WatchDiscoveryV1beta1NamespacedEndpointSliceParams is parameters of watchDiscoveryV1beta1NamespacedEndpointSlice operation. type WatchDiscoveryV1beta1NamespacedEndpointSliceParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -98608,6 +98899,7 @@ func decodeWatchDiscoveryV1beta1NamespacedEndpointSliceParams(args [2]string, r return params, nil } +// WatchDiscoveryV1beta1NamespacedEndpointSliceListParams is parameters of watchDiscoveryV1beta1NamespacedEndpointSliceList operation. type WatchDiscoveryV1beta1NamespacedEndpointSliceListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -99080,6 +99372,7 @@ func decodeWatchDiscoveryV1beta1NamespacedEndpointSliceListParams(args [1]string return params, nil } +// WatchEventsV1EventListForAllNamespacesParams is parameters of watchEventsV1EventListForAllNamespaces operation. type WatchEventsV1EventListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -99518,6 +99811,7 @@ func decodeWatchEventsV1EventListForAllNamespacesParams(args [0]string, r *http. return params, nil } +// WatchEventsV1NamespacedEventParams is parameters of watchEventsV1NamespacedEvent operation. type WatchEventsV1NamespacedEventParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -100024,6 +100318,7 @@ func decodeWatchEventsV1NamespacedEventParams(args [2]string, r *http.Request) ( return params, nil } +// WatchEventsV1NamespacedEventListParams is parameters of watchEventsV1NamespacedEventList operation. type WatchEventsV1NamespacedEventListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -100496,6 +100791,7 @@ func decodeWatchEventsV1NamespacedEventListParams(args [1]string, r *http.Reques return params, nil } +// WatchEventsV1beta1EventListForAllNamespacesParams is parameters of watchEventsV1beta1EventListForAllNamespaces operation. type WatchEventsV1beta1EventListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -100934,6 +101230,7 @@ func decodeWatchEventsV1beta1EventListForAllNamespacesParams(args [0]string, r * return params, nil } +// WatchEventsV1beta1NamespacedEventParams is parameters of watchEventsV1beta1NamespacedEvent operation. type WatchEventsV1beta1NamespacedEventParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -101440,6 +101737,7 @@ func decodeWatchEventsV1beta1NamespacedEventParams(args [2]string, r *http.Reque return params, nil } +// WatchEventsV1beta1NamespacedEventListParams is parameters of watchEventsV1beta1NamespacedEventList operation. type WatchEventsV1beta1NamespacedEventListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -101912,6 +102210,7 @@ func decodeWatchEventsV1beta1NamespacedEventListParams(args [1]string, r *http.R return params, nil } +// WatchFlowcontrolApiserverV1beta1FlowSchemaParams is parameters of watchFlowcontrolApiserverV1beta1FlowSchema operation. type WatchFlowcontrolApiserverV1beta1FlowSchemaParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -102384,6 +102683,7 @@ func decodeWatchFlowcontrolApiserverV1beta1FlowSchemaParams(args [1]string, r *h return params, nil } +// WatchFlowcontrolApiserverV1beta1FlowSchemaListParams is parameters of watchFlowcontrolApiserverV1beta1FlowSchemaList operation. type WatchFlowcontrolApiserverV1beta1FlowSchemaListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -102822,6 +103122,7 @@ func decodeWatchFlowcontrolApiserverV1beta1FlowSchemaListParams(args [0]string, return params, nil } +// WatchFlowcontrolApiserverV1beta1PriorityLevelConfigurationParams is parameters of watchFlowcontrolApiserverV1beta1PriorityLevelConfiguration operation. type WatchFlowcontrolApiserverV1beta1PriorityLevelConfigurationParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -103294,6 +103595,7 @@ func decodeWatchFlowcontrolApiserverV1beta1PriorityLevelConfigurationParams(args return params, nil } +// WatchFlowcontrolApiserverV1beta1PriorityLevelConfigurationListParams is parameters of watchFlowcontrolApiserverV1beta1PriorityLevelConfigurationList operation. type WatchFlowcontrolApiserverV1beta1PriorityLevelConfigurationListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -103732,6 +104034,7 @@ func decodeWatchFlowcontrolApiserverV1beta1PriorityLevelConfigurationListParams( return params, nil } +// WatchFlowcontrolApiserverV1beta2FlowSchemaParams is parameters of watchFlowcontrolApiserverV1beta2FlowSchema operation. type WatchFlowcontrolApiserverV1beta2FlowSchemaParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -104204,6 +104507,7 @@ func decodeWatchFlowcontrolApiserverV1beta2FlowSchemaParams(args [1]string, r *h return params, nil } +// WatchFlowcontrolApiserverV1beta2FlowSchemaListParams is parameters of watchFlowcontrolApiserverV1beta2FlowSchemaList operation. type WatchFlowcontrolApiserverV1beta2FlowSchemaListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -104642,6 +104946,7 @@ func decodeWatchFlowcontrolApiserverV1beta2FlowSchemaListParams(args [0]string, return params, nil } +// WatchFlowcontrolApiserverV1beta2PriorityLevelConfigurationParams is parameters of watchFlowcontrolApiserverV1beta2PriorityLevelConfiguration operation. type WatchFlowcontrolApiserverV1beta2PriorityLevelConfigurationParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -105114,6 +105419,7 @@ func decodeWatchFlowcontrolApiserverV1beta2PriorityLevelConfigurationParams(args return params, nil } +// WatchFlowcontrolApiserverV1beta2PriorityLevelConfigurationListParams is parameters of watchFlowcontrolApiserverV1beta2PriorityLevelConfigurationList operation. type WatchFlowcontrolApiserverV1beta2PriorityLevelConfigurationListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -105552,6 +105858,7 @@ func decodeWatchFlowcontrolApiserverV1beta2PriorityLevelConfigurationListParams( return params, nil } +// WatchInternalApiserverV1alpha1StorageVersionParams is parameters of watchInternalApiserverV1alpha1StorageVersion operation. type WatchInternalApiserverV1alpha1StorageVersionParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -106024,6 +106331,7 @@ func decodeWatchInternalApiserverV1alpha1StorageVersionParams(args [1]string, r return params, nil } +// WatchInternalApiserverV1alpha1StorageVersionListParams is parameters of watchInternalApiserverV1alpha1StorageVersionList operation. type WatchInternalApiserverV1alpha1StorageVersionListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -106462,6 +106770,7 @@ func decodeWatchInternalApiserverV1alpha1StorageVersionListParams(args [0]string return params, nil } +// WatchNetworkingV1IngressClassParams is parameters of watchNetworkingV1IngressClass operation. type WatchNetworkingV1IngressClassParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -106934,6 +107243,7 @@ func decodeWatchNetworkingV1IngressClassParams(args [1]string, r *http.Request) return params, nil } +// WatchNetworkingV1IngressClassListParams is parameters of watchNetworkingV1IngressClassList operation. type WatchNetworkingV1IngressClassListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -107372,6 +107682,7 @@ func decodeWatchNetworkingV1IngressClassListParams(args [0]string, r *http.Reque return params, nil } +// WatchNetworkingV1IngressListForAllNamespacesParams is parameters of watchNetworkingV1IngressListForAllNamespaces operation. type WatchNetworkingV1IngressListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -107810,6 +108121,7 @@ func decodeWatchNetworkingV1IngressListForAllNamespacesParams(args [0]string, r return params, nil } +// WatchNetworkingV1NamespacedIngressParams is parameters of watchNetworkingV1NamespacedIngress operation. type WatchNetworkingV1NamespacedIngressParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -108316,6 +108628,7 @@ func decodeWatchNetworkingV1NamespacedIngressParams(args [2]string, r *http.Requ return params, nil } +// WatchNetworkingV1NamespacedIngressListParams is parameters of watchNetworkingV1NamespacedIngressList operation. type WatchNetworkingV1NamespacedIngressListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -108788,6 +109101,7 @@ func decodeWatchNetworkingV1NamespacedIngressListParams(args [1]string, r *http. return params, nil } +// WatchNetworkingV1NamespacedNetworkPolicyParams is parameters of watchNetworkingV1NamespacedNetworkPolicy operation. type WatchNetworkingV1NamespacedNetworkPolicyParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -109294,6 +109608,7 @@ func decodeWatchNetworkingV1NamespacedNetworkPolicyParams(args [2]string, r *htt return params, nil } +// WatchNetworkingV1NamespacedNetworkPolicyListParams is parameters of watchNetworkingV1NamespacedNetworkPolicyList operation. type WatchNetworkingV1NamespacedNetworkPolicyListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -109766,6 +110081,7 @@ func decodeWatchNetworkingV1NamespacedNetworkPolicyListParams(args [1]string, r return params, nil } +// WatchNetworkingV1NetworkPolicyListForAllNamespacesParams is parameters of watchNetworkingV1NetworkPolicyListForAllNamespaces operation. type WatchNetworkingV1NetworkPolicyListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -110204,6 +110520,7 @@ func decodeWatchNetworkingV1NetworkPolicyListForAllNamespacesParams(args [0]stri return params, nil } +// WatchNodeV1RuntimeClassParams is parameters of watchNodeV1RuntimeClass operation. type WatchNodeV1RuntimeClassParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -110676,6 +110993,7 @@ func decodeWatchNodeV1RuntimeClassParams(args [1]string, r *http.Request) (param return params, nil } +// WatchNodeV1RuntimeClassListParams is parameters of watchNodeV1RuntimeClassList operation. type WatchNodeV1RuntimeClassListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -111114,6 +111432,7 @@ func decodeWatchNodeV1RuntimeClassListParams(args [0]string, r *http.Request) (p return params, nil } +// WatchNodeV1alpha1RuntimeClassParams is parameters of watchNodeV1alpha1RuntimeClass operation. type WatchNodeV1alpha1RuntimeClassParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -111586,6 +111905,7 @@ func decodeWatchNodeV1alpha1RuntimeClassParams(args [1]string, r *http.Request) return params, nil } +// WatchNodeV1alpha1RuntimeClassListParams is parameters of watchNodeV1alpha1RuntimeClassList operation. type WatchNodeV1alpha1RuntimeClassListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -112024,6 +112344,7 @@ func decodeWatchNodeV1alpha1RuntimeClassListParams(args [0]string, r *http.Reque return params, nil } +// WatchNodeV1beta1RuntimeClassParams is parameters of watchNodeV1beta1RuntimeClass operation. type WatchNodeV1beta1RuntimeClassParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -112496,6 +112817,7 @@ func decodeWatchNodeV1beta1RuntimeClassParams(args [1]string, r *http.Request) ( return params, nil } +// WatchNodeV1beta1RuntimeClassListParams is parameters of watchNodeV1beta1RuntimeClassList operation. type WatchNodeV1beta1RuntimeClassListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -112934,6 +113256,7 @@ func decodeWatchNodeV1beta1RuntimeClassListParams(args [0]string, r *http.Reques return params, nil } +// WatchPolicyV1NamespacedPodDisruptionBudgetParams is parameters of watchPolicyV1NamespacedPodDisruptionBudget operation. type WatchPolicyV1NamespacedPodDisruptionBudgetParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -113440,6 +113763,7 @@ func decodeWatchPolicyV1NamespacedPodDisruptionBudgetParams(args [2]string, r *h return params, nil } +// WatchPolicyV1NamespacedPodDisruptionBudgetListParams is parameters of watchPolicyV1NamespacedPodDisruptionBudgetList operation. type WatchPolicyV1NamespacedPodDisruptionBudgetListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -113912,6 +114236,7 @@ func decodeWatchPolicyV1NamespacedPodDisruptionBudgetListParams(args [1]string, return params, nil } +// WatchPolicyV1PodDisruptionBudgetListForAllNamespacesParams is parameters of watchPolicyV1PodDisruptionBudgetListForAllNamespaces operation. type WatchPolicyV1PodDisruptionBudgetListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -114350,6 +114675,7 @@ func decodeWatchPolicyV1PodDisruptionBudgetListForAllNamespacesParams(args [0]st return params, nil } +// WatchPolicyV1beta1NamespacedPodDisruptionBudgetParams is parameters of watchPolicyV1beta1NamespacedPodDisruptionBudget operation. type WatchPolicyV1beta1NamespacedPodDisruptionBudgetParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -114856,6 +115182,7 @@ func decodeWatchPolicyV1beta1NamespacedPodDisruptionBudgetParams(args [2]string, return params, nil } +// WatchPolicyV1beta1NamespacedPodDisruptionBudgetListParams is parameters of watchPolicyV1beta1NamespacedPodDisruptionBudgetList operation. type WatchPolicyV1beta1NamespacedPodDisruptionBudgetListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -115328,6 +115655,7 @@ func decodeWatchPolicyV1beta1NamespacedPodDisruptionBudgetListParams(args [1]str return params, nil } +// WatchPolicyV1beta1PodDisruptionBudgetListForAllNamespacesParams is parameters of watchPolicyV1beta1PodDisruptionBudgetListForAllNamespaces operation. type WatchPolicyV1beta1PodDisruptionBudgetListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -115766,6 +116094,7 @@ func decodeWatchPolicyV1beta1PodDisruptionBudgetListForAllNamespacesParams(args return params, nil } +// WatchPolicyV1beta1PodSecurityPolicyParams is parameters of watchPolicyV1beta1PodSecurityPolicy operation. type WatchPolicyV1beta1PodSecurityPolicyParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -116238,6 +116567,7 @@ func decodeWatchPolicyV1beta1PodSecurityPolicyParams(args [1]string, r *http.Req return params, nil } +// WatchPolicyV1beta1PodSecurityPolicyListParams is parameters of watchPolicyV1beta1PodSecurityPolicyList operation. type WatchPolicyV1beta1PodSecurityPolicyListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -116676,6 +117006,7 @@ func decodeWatchPolicyV1beta1PodSecurityPolicyListParams(args [0]string, r *http return params, nil } +// WatchRbacAuthorizationV1ClusterRoleParams is parameters of watchRbacAuthorizationV1ClusterRole operation. type WatchRbacAuthorizationV1ClusterRoleParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -117148,6 +117479,7 @@ func decodeWatchRbacAuthorizationV1ClusterRoleParams(args [1]string, r *http.Req return params, nil } +// WatchRbacAuthorizationV1ClusterRoleBindingParams is parameters of watchRbacAuthorizationV1ClusterRoleBinding operation. type WatchRbacAuthorizationV1ClusterRoleBindingParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -117620,6 +117952,7 @@ func decodeWatchRbacAuthorizationV1ClusterRoleBindingParams(args [1]string, r *h return params, nil } +// WatchRbacAuthorizationV1ClusterRoleBindingListParams is parameters of watchRbacAuthorizationV1ClusterRoleBindingList operation. type WatchRbacAuthorizationV1ClusterRoleBindingListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -118058,6 +118391,7 @@ func decodeWatchRbacAuthorizationV1ClusterRoleBindingListParams(args [0]string, return params, nil } +// WatchRbacAuthorizationV1ClusterRoleListParams is parameters of watchRbacAuthorizationV1ClusterRoleList operation. type WatchRbacAuthorizationV1ClusterRoleListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -118496,6 +118830,7 @@ func decodeWatchRbacAuthorizationV1ClusterRoleListParams(args [0]string, r *http return params, nil } +// WatchRbacAuthorizationV1NamespacedRoleParams is parameters of watchRbacAuthorizationV1NamespacedRole operation. type WatchRbacAuthorizationV1NamespacedRoleParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -119002,6 +119337,7 @@ func decodeWatchRbacAuthorizationV1NamespacedRoleParams(args [2]string, r *http. return params, nil } +// WatchRbacAuthorizationV1NamespacedRoleBindingParams is parameters of watchRbacAuthorizationV1NamespacedRoleBinding operation. type WatchRbacAuthorizationV1NamespacedRoleBindingParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -119508,6 +119844,7 @@ func decodeWatchRbacAuthorizationV1NamespacedRoleBindingParams(args [2]string, r return params, nil } +// WatchRbacAuthorizationV1NamespacedRoleBindingListParams is parameters of watchRbacAuthorizationV1NamespacedRoleBindingList operation. type WatchRbacAuthorizationV1NamespacedRoleBindingListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -119980,6 +120317,7 @@ func decodeWatchRbacAuthorizationV1NamespacedRoleBindingListParams(args [1]strin return params, nil } +// WatchRbacAuthorizationV1NamespacedRoleListParams is parameters of watchRbacAuthorizationV1NamespacedRoleList operation. type WatchRbacAuthorizationV1NamespacedRoleListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -120452,6 +120790,7 @@ func decodeWatchRbacAuthorizationV1NamespacedRoleListParams(args [1]string, r *h return params, nil } +// WatchRbacAuthorizationV1RoleBindingListForAllNamespacesParams is parameters of watchRbacAuthorizationV1RoleBindingListForAllNamespaces operation. type WatchRbacAuthorizationV1RoleBindingListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -120890,6 +121229,7 @@ func decodeWatchRbacAuthorizationV1RoleBindingListForAllNamespacesParams(args [0 return params, nil } +// WatchRbacAuthorizationV1RoleListForAllNamespacesParams is parameters of watchRbacAuthorizationV1RoleListForAllNamespaces operation. type WatchRbacAuthorizationV1RoleListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -121328,6 +121668,7 @@ func decodeWatchRbacAuthorizationV1RoleListForAllNamespacesParams(args [0]string return params, nil } +// WatchSchedulingV1PriorityClassParams is parameters of watchSchedulingV1PriorityClass operation. type WatchSchedulingV1PriorityClassParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -121800,6 +122141,7 @@ func decodeWatchSchedulingV1PriorityClassParams(args [1]string, r *http.Request) return params, nil } +// WatchSchedulingV1PriorityClassListParams is parameters of watchSchedulingV1PriorityClassList operation. type WatchSchedulingV1PriorityClassListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -122238,6 +122580,7 @@ func decodeWatchSchedulingV1PriorityClassListParams(args [0]string, r *http.Requ return params, nil } +// WatchStorageV1CSIDriverParams is parameters of watchStorageV1CSIDriver operation. type WatchStorageV1CSIDriverParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -122710,6 +123053,7 @@ func decodeWatchStorageV1CSIDriverParams(args [1]string, r *http.Request) (param return params, nil } +// WatchStorageV1CSIDriverListParams is parameters of watchStorageV1CSIDriverList operation. type WatchStorageV1CSIDriverListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -123148,6 +123492,7 @@ func decodeWatchStorageV1CSIDriverListParams(args [0]string, r *http.Request) (p return params, nil } +// WatchStorageV1CSINodeParams is parameters of watchStorageV1CSINode operation. type WatchStorageV1CSINodeParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -123620,6 +123965,7 @@ func decodeWatchStorageV1CSINodeParams(args [1]string, r *http.Request) (params return params, nil } +// WatchStorageV1CSINodeListParams is parameters of watchStorageV1CSINodeList operation. type WatchStorageV1CSINodeListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -124058,6 +124404,7 @@ func decodeWatchStorageV1CSINodeListParams(args [0]string, r *http.Request) (par return params, nil } +// WatchStorageV1StorageClassParams is parameters of watchStorageV1StorageClass operation. type WatchStorageV1StorageClassParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -124530,6 +124877,7 @@ func decodeWatchStorageV1StorageClassParams(args [1]string, r *http.Request) (pa return params, nil } +// WatchStorageV1StorageClassListParams is parameters of watchStorageV1StorageClassList operation. type WatchStorageV1StorageClassListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -124968,6 +125316,7 @@ func decodeWatchStorageV1StorageClassListParams(args [0]string, r *http.Request) return params, nil } +// WatchStorageV1VolumeAttachmentParams is parameters of watchStorageV1VolumeAttachment operation. type WatchStorageV1VolumeAttachmentParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -125440,6 +125789,7 @@ func decodeWatchStorageV1VolumeAttachmentParams(args [1]string, r *http.Request) return params, nil } +// WatchStorageV1VolumeAttachmentListParams is parameters of watchStorageV1VolumeAttachmentList operation. type WatchStorageV1VolumeAttachmentListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -125878,6 +126228,7 @@ func decodeWatchStorageV1VolumeAttachmentListParams(args [0]string, r *http.Requ return params, nil } +// WatchStorageV1alpha1CSIStorageCapacityListForAllNamespacesParams is parameters of watchStorageV1alpha1CSIStorageCapacityListForAllNamespaces operation. type WatchStorageV1alpha1CSIStorageCapacityListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -126316,6 +126667,7 @@ func decodeWatchStorageV1alpha1CSIStorageCapacityListForAllNamespacesParams(args return params, nil } +// WatchStorageV1alpha1NamespacedCSIStorageCapacityParams is parameters of watchStorageV1alpha1NamespacedCSIStorageCapacity operation. type WatchStorageV1alpha1NamespacedCSIStorageCapacityParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -126822,6 +127174,7 @@ func decodeWatchStorageV1alpha1NamespacedCSIStorageCapacityParams(args [2]string return params, nil } +// WatchStorageV1alpha1NamespacedCSIStorageCapacityListParams is parameters of watchStorageV1alpha1NamespacedCSIStorageCapacityList operation. type WatchStorageV1alpha1NamespacedCSIStorageCapacityListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -127294,6 +127647,7 @@ func decodeWatchStorageV1alpha1NamespacedCSIStorageCapacityListParams(args [1]st return params, nil } +// WatchStorageV1beta1CSIStorageCapacityListForAllNamespacesParams is parameters of watchStorageV1beta1CSIStorageCapacityListForAllNamespaces operation. type WatchStorageV1beta1CSIStorageCapacityListForAllNamespacesParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -127732,6 +128086,7 @@ func decodeWatchStorageV1beta1CSIStorageCapacityListForAllNamespacesParams(args return params, nil } +// WatchStorageV1beta1NamespacedCSIStorageCapacityParams is parameters of watchStorageV1beta1NamespacedCSIStorageCapacity operation. type WatchStorageV1beta1NamespacedCSIStorageCapacityParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should @@ -128238,6 +128593,7 @@ func decodeWatchStorageV1beta1NamespacedCSIStorageCapacityParams(args [2]string, return params, nil } +// WatchStorageV1beta1NamespacedCSIStorageCapacityListParams is parameters of watchStorageV1beta1NamespacedCSIStorageCapacityList operation. type WatchStorageV1beta1NamespacedCSIStorageCapacityListParams struct { // AllowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement // bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should diff --git a/examples/ex_k8s/oas_response_encoders_gen.go b/examples/ex_k8s/oas_response_encoders_gen.go index 0b12788a3..92583ba8e 100644 --- a/examples/ex_k8s/oas_response_encoders_gen.go +++ b/examples/ex_k8s/oas_response_encoders_gen.go @@ -35,6 +35,7 @@ func encodeGetAPIVersionsResponse(response GetAPIVersionsRes, w http.ResponseWri return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetAdmissionregistrationAPIGroupResponse(response GetAdmissionregistrationAPIGroupRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIGroup: @@ -58,6 +59,7 @@ func encodeGetAdmissionregistrationAPIGroupResponse(response GetAdmissionregistr return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetAdmissionregistrationV1APIResourcesResponse(response GetAdmissionregistrationV1APIResourcesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIResourceList: @@ -81,6 +83,7 @@ func encodeGetAdmissionregistrationV1APIResourcesResponse(response GetAdmissionr return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetApiextensionsAPIGroupResponse(response GetApiextensionsAPIGroupRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIGroup: @@ -104,6 +107,7 @@ func encodeGetApiextensionsAPIGroupResponse(response GetApiextensionsAPIGroupRes return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetApiextensionsV1APIResourcesResponse(response GetApiextensionsV1APIResourcesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIResourceList: @@ -127,6 +131,7 @@ func encodeGetApiextensionsV1APIResourcesResponse(response GetApiextensionsV1API return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetApiregistrationAPIGroupResponse(response GetApiregistrationAPIGroupRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIGroup: @@ -150,6 +155,7 @@ func encodeGetApiregistrationAPIGroupResponse(response GetApiregistrationAPIGrou return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetApiregistrationV1APIResourcesResponse(response GetApiregistrationV1APIResourcesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIResourceList: @@ -173,6 +179,7 @@ func encodeGetApiregistrationV1APIResourcesResponse(response GetApiregistrationV return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetAppsAPIGroupResponse(response GetAppsAPIGroupRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIGroup: @@ -196,6 +203,7 @@ func encodeGetAppsAPIGroupResponse(response GetAppsAPIGroupRes, w http.ResponseW return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetAppsV1APIResourcesResponse(response GetAppsV1APIResourcesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIResourceList: @@ -219,6 +227,7 @@ func encodeGetAppsV1APIResourcesResponse(response GetAppsV1APIResourcesRes, w ht return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetAuthenticationAPIGroupResponse(response GetAuthenticationAPIGroupRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIGroup: @@ -242,6 +251,7 @@ func encodeGetAuthenticationAPIGroupResponse(response GetAuthenticationAPIGroupR return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetAuthenticationV1APIResourcesResponse(response GetAuthenticationV1APIResourcesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIResourceList: @@ -265,6 +275,7 @@ func encodeGetAuthenticationV1APIResourcesResponse(response GetAuthenticationV1A return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetAuthorizationAPIGroupResponse(response GetAuthorizationAPIGroupRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIGroup: @@ -288,6 +299,7 @@ func encodeGetAuthorizationAPIGroupResponse(response GetAuthorizationAPIGroupRes return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetAuthorizationV1APIResourcesResponse(response GetAuthorizationV1APIResourcesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIResourceList: @@ -311,6 +323,7 @@ func encodeGetAuthorizationV1APIResourcesResponse(response GetAuthorizationV1API return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetAutoscalingAPIGroupResponse(response GetAutoscalingAPIGroupRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIGroup: @@ -334,6 +347,7 @@ func encodeGetAutoscalingAPIGroupResponse(response GetAutoscalingAPIGroupRes, w return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetAutoscalingV1APIResourcesResponse(response GetAutoscalingV1APIResourcesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIResourceList: @@ -357,6 +371,7 @@ func encodeGetAutoscalingV1APIResourcesResponse(response GetAutoscalingV1APIReso return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetAutoscalingV2beta1APIResourcesResponse(response GetAutoscalingV2beta1APIResourcesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIResourceList: @@ -380,6 +395,7 @@ func encodeGetAutoscalingV2beta1APIResourcesResponse(response GetAutoscalingV2be return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetAutoscalingV2beta2APIResourcesResponse(response GetAutoscalingV2beta2APIResourcesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIResourceList: @@ -403,6 +419,7 @@ func encodeGetAutoscalingV2beta2APIResourcesResponse(response GetAutoscalingV2be return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetBatchAPIGroupResponse(response GetBatchAPIGroupRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIGroup: @@ -426,6 +443,7 @@ func encodeGetBatchAPIGroupResponse(response GetBatchAPIGroupRes, w http.Respons return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetBatchV1APIResourcesResponse(response GetBatchV1APIResourcesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIResourceList: @@ -449,6 +467,7 @@ func encodeGetBatchV1APIResourcesResponse(response GetBatchV1APIResourcesRes, w return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetBatchV1beta1APIResourcesResponse(response GetBatchV1beta1APIResourcesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIResourceList: @@ -472,6 +491,7 @@ func encodeGetBatchV1beta1APIResourcesResponse(response GetBatchV1beta1APIResour return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetCertificatesAPIGroupResponse(response GetCertificatesAPIGroupRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIGroup: @@ -495,6 +515,7 @@ func encodeGetCertificatesAPIGroupResponse(response GetCertificatesAPIGroupRes, return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetCertificatesV1APIResourcesResponse(response GetCertificatesV1APIResourcesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIResourceList: @@ -518,6 +539,7 @@ func encodeGetCertificatesV1APIResourcesResponse(response GetCertificatesV1APIRe return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetCodeVersionResponse(response GetCodeVersionRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgVersionInfo: @@ -541,6 +563,7 @@ func encodeGetCodeVersionResponse(response GetCodeVersionRes, w http.ResponseWri return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetCoordinationAPIGroupResponse(response GetCoordinationAPIGroupRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIGroup: @@ -564,6 +587,7 @@ func encodeGetCoordinationAPIGroupResponse(response GetCoordinationAPIGroupRes, return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetCoordinationV1APIResourcesResponse(response GetCoordinationV1APIResourcesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIResourceList: @@ -587,6 +611,7 @@ func encodeGetCoordinationV1APIResourcesResponse(response GetCoordinationV1APIRe return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetCoreAPIVersionsResponse(response GetCoreAPIVersionsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIVersions: @@ -610,6 +635,7 @@ func encodeGetCoreAPIVersionsResponse(response GetCoreAPIVersionsRes, w http.Res return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetCoreV1APIResourcesResponse(response GetCoreV1APIResourcesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIResourceList: @@ -633,6 +659,7 @@ func encodeGetCoreV1APIResourcesResponse(response GetCoreV1APIResourcesRes, w ht return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetDiscoveryAPIGroupResponse(response GetDiscoveryAPIGroupRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIGroup: @@ -656,6 +683,7 @@ func encodeGetDiscoveryAPIGroupResponse(response GetDiscoveryAPIGroupRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetDiscoveryV1APIResourcesResponse(response GetDiscoveryV1APIResourcesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIResourceList: @@ -679,6 +707,7 @@ func encodeGetDiscoveryV1APIResourcesResponse(response GetDiscoveryV1APIResource return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetDiscoveryV1beta1APIResourcesResponse(response GetDiscoveryV1beta1APIResourcesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIResourceList: @@ -702,6 +731,7 @@ func encodeGetDiscoveryV1beta1APIResourcesResponse(response GetDiscoveryV1beta1A return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetEventsAPIGroupResponse(response GetEventsAPIGroupRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIGroup: @@ -725,6 +755,7 @@ func encodeGetEventsAPIGroupResponse(response GetEventsAPIGroupRes, w http.Respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetEventsV1APIResourcesResponse(response GetEventsV1APIResourcesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIResourceList: @@ -748,6 +779,7 @@ func encodeGetEventsV1APIResourcesResponse(response GetEventsV1APIResourcesRes, return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetEventsV1beta1APIResourcesResponse(response GetEventsV1beta1APIResourcesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIResourceList: @@ -771,6 +803,7 @@ func encodeGetEventsV1beta1APIResourcesResponse(response GetEventsV1beta1APIReso return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetFlowcontrolApiserverAPIGroupResponse(response GetFlowcontrolApiserverAPIGroupRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIGroup: @@ -794,6 +827,7 @@ func encodeGetFlowcontrolApiserverAPIGroupResponse(response GetFlowcontrolApiser return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetFlowcontrolApiserverV1beta1APIResourcesResponse(response GetFlowcontrolApiserverV1beta1APIResourcesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIResourceList: @@ -817,6 +851,7 @@ func encodeGetFlowcontrolApiserverV1beta1APIResourcesResponse(response GetFlowco return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetFlowcontrolApiserverV1beta2APIResourcesResponse(response GetFlowcontrolApiserverV1beta2APIResourcesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIResourceList: @@ -840,6 +875,7 @@ func encodeGetFlowcontrolApiserverV1beta2APIResourcesResponse(response GetFlowco return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetInternalApiserverAPIGroupResponse(response GetInternalApiserverAPIGroupRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIGroup: @@ -863,6 +899,7 @@ func encodeGetInternalApiserverAPIGroupResponse(response GetInternalApiserverAPI return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetInternalApiserverV1alpha1APIResourcesResponse(response GetInternalApiserverV1alpha1APIResourcesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIResourceList: @@ -886,6 +923,7 @@ func encodeGetInternalApiserverV1alpha1APIResourcesResponse(response GetInternal return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetNetworkingAPIGroupResponse(response GetNetworkingAPIGroupRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIGroup: @@ -909,6 +947,7 @@ func encodeGetNetworkingAPIGroupResponse(response GetNetworkingAPIGroupRes, w ht return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetNetworkingV1APIResourcesResponse(response GetNetworkingV1APIResourcesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIResourceList: @@ -932,6 +971,7 @@ func encodeGetNetworkingV1APIResourcesResponse(response GetNetworkingV1APIResour return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetNodeAPIGroupResponse(response GetNodeAPIGroupRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIGroup: @@ -955,6 +995,7 @@ func encodeGetNodeAPIGroupResponse(response GetNodeAPIGroupRes, w http.ResponseW return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetNodeV1APIResourcesResponse(response GetNodeV1APIResourcesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIResourceList: @@ -978,6 +1019,7 @@ func encodeGetNodeV1APIResourcesResponse(response GetNodeV1APIResourcesRes, w ht return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetNodeV1alpha1APIResourcesResponse(response GetNodeV1alpha1APIResourcesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIResourceList: @@ -1001,6 +1043,7 @@ func encodeGetNodeV1alpha1APIResourcesResponse(response GetNodeV1alpha1APIResour return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetNodeV1beta1APIResourcesResponse(response GetNodeV1beta1APIResourcesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIResourceList: @@ -1024,6 +1067,7 @@ func encodeGetNodeV1beta1APIResourcesResponse(response GetNodeV1beta1APIResource return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetPolicyAPIGroupResponse(response GetPolicyAPIGroupRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIGroup: @@ -1047,6 +1091,7 @@ func encodeGetPolicyAPIGroupResponse(response GetPolicyAPIGroupRes, w http.Respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetPolicyV1APIResourcesResponse(response GetPolicyV1APIResourcesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIResourceList: @@ -1070,6 +1115,7 @@ func encodeGetPolicyV1APIResourcesResponse(response GetPolicyV1APIResourcesRes, return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetPolicyV1beta1APIResourcesResponse(response GetPolicyV1beta1APIResourcesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIResourceList: @@ -1093,6 +1139,7 @@ func encodeGetPolicyV1beta1APIResourcesResponse(response GetPolicyV1beta1APIReso return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetRbacAuthorizationAPIGroupResponse(response GetRbacAuthorizationAPIGroupRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIGroup: @@ -1116,6 +1163,7 @@ func encodeGetRbacAuthorizationAPIGroupResponse(response GetRbacAuthorizationAPI return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetRbacAuthorizationV1APIResourcesResponse(response GetRbacAuthorizationV1APIResourcesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIResourceList: @@ -1139,6 +1187,7 @@ func encodeGetRbacAuthorizationV1APIResourcesResponse(response GetRbacAuthorizat return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetSchedulingAPIGroupResponse(response GetSchedulingAPIGroupRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIGroup: @@ -1162,6 +1211,7 @@ func encodeGetSchedulingAPIGroupResponse(response GetSchedulingAPIGroupRes, w ht return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetSchedulingV1APIResourcesResponse(response GetSchedulingV1APIResourcesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIResourceList: @@ -1185,6 +1235,7 @@ func encodeGetSchedulingV1APIResourcesResponse(response GetSchedulingV1APIResour return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetServiceAccountIssuerOpenIDConfigurationResponse(response GetServiceAccountIssuerOpenIDConfigurationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GetServiceAccountIssuerOpenIDConfigurationOKApplicationJSON: @@ -1208,6 +1259,7 @@ func encodeGetServiceAccountIssuerOpenIDConfigurationResponse(response GetServic return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetStorageAPIGroupResponse(response GetStorageAPIGroupRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIGroup: @@ -1231,6 +1283,7 @@ func encodeGetStorageAPIGroupResponse(response GetStorageAPIGroupRes, w http.Res return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetStorageV1APIResourcesResponse(response GetStorageV1APIResourcesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIResourceList: @@ -1254,6 +1307,7 @@ func encodeGetStorageV1APIResourcesResponse(response GetStorageV1APIResourcesRes return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetStorageV1alpha1APIResourcesResponse(response GetStorageV1alpha1APIResourcesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIResourceList: @@ -1277,6 +1331,7 @@ func encodeGetStorageV1alpha1APIResourcesResponse(response GetStorageV1alpha1API return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetStorageV1beta1APIResourcesResponse(response GetStorageV1beta1APIResourcesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1APIResourceList: @@ -1300,6 +1355,7 @@ func encodeGetStorageV1beta1APIResourcesResponse(response GetStorageV1beta1APIRe return errors.Errorf("unexpected response type: %T", response) } } + func encodeListAdmissionregistrationV1MutatingWebhookConfigurationResponse(response ListAdmissionregistrationV1MutatingWebhookConfigurationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAdmissionregistrationV1MutatingWebhookConfigurationList: @@ -1323,6 +1379,7 @@ func encodeListAdmissionregistrationV1MutatingWebhookConfigurationResponse(respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeListAdmissionregistrationV1ValidatingWebhookConfigurationResponse(response ListAdmissionregistrationV1ValidatingWebhookConfigurationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAdmissionregistrationV1ValidatingWebhookConfigurationList: @@ -1346,6 +1403,7 @@ func encodeListAdmissionregistrationV1ValidatingWebhookConfigurationResponse(res return errors.Errorf("unexpected response type: %T", response) } } + func encodeListApiextensionsV1CustomResourceDefinitionResponse(response ListApiextensionsV1CustomResourceDefinitionRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionList: @@ -1369,6 +1427,7 @@ func encodeListApiextensionsV1CustomResourceDefinitionResponse(response ListApie return errors.Errorf("unexpected response type: %T", response) } } + func encodeListApiregistrationV1APIServiceResponse(response ListApiregistrationV1APIServiceRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceList: @@ -1392,6 +1451,7 @@ func encodeListApiregistrationV1APIServiceResponse(response ListApiregistrationV return errors.Errorf("unexpected response type: %T", response) } } + func encodeListAppsV1ControllerRevisionForAllNamespacesResponse(response ListAppsV1ControllerRevisionForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAppsV1ControllerRevisionList: @@ -1415,6 +1475,7 @@ func encodeListAppsV1ControllerRevisionForAllNamespacesResponse(response ListApp return errors.Errorf("unexpected response type: %T", response) } } + func encodeListAppsV1DaemonSetForAllNamespacesResponse(response ListAppsV1DaemonSetForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAppsV1DaemonSetList: @@ -1438,6 +1499,7 @@ func encodeListAppsV1DaemonSetForAllNamespacesResponse(response ListAppsV1Daemon return errors.Errorf("unexpected response type: %T", response) } } + func encodeListAppsV1DeploymentForAllNamespacesResponse(response ListAppsV1DeploymentForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAppsV1DeploymentList: @@ -1461,6 +1523,7 @@ func encodeListAppsV1DeploymentForAllNamespacesResponse(response ListAppsV1Deplo return errors.Errorf("unexpected response type: %T", response) } } + func encodeListAppsV1NamespacedControllerRevisionResponse(response ListAppsV1NamespacedControllerRevisionRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAppsV1ControllerRevisionList: @@ -1484,6 +1547,7 @@ func encodeListAppsV1NamespacedControllerRevisionResponse(response ListAppsV1Nam return errors.Errorf("unexpected response type: %T", response) } } + func encodeListAppsV1NamespacedDaemonSetResponse(response ListAppsV1NamespacedDaemonSetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAppsV1DaemonSetList: @@ -1507,6 +1571,7 @@ func encodeListAppsV1NamespacedDaemonSetResponse(response ListAppsV1NamespacedDa return errors.Errorf("unexpected response type: %T", response) } } + func encodeListAppsV1NamespacedDeploymentResponse(response ListAppsV1NamespacedDeploymentRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAppsV1DeploymentList: @@ -1530,6 +1595,7 @@ func encodeListAppsV1NamespacedDeploymentResponse(response ListAppsV1NamespacedD return errors.Errorf("unexpected response type: %T", response) } } + func encodeListAppsV1NamespacedReplicaSetResponse(response ListAppsV1NamespacedReplicaSetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAppsV1ReplicaSetList: @@ -1553,6 +1619,7 @@ func encodeListAppsV1NamespacedReplicaSetResponse(response ListAppsV1NamespacedR return errors.Errorf("unexpected response type: %T", response) } } + func encodeListAppsV1NamespacedStatefulSetResponse(response ListAppsV1NamespacedStatefulSetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAppsV1StatefulSetList: @@ -1576,6 +1643,7 @@ func encodeListAppsV1NamespacedStatefulSetResponse(response ListAppsV1Namespaced return errors.Errorf("unexpected response type: %T", response) } } + func encodeListAppsV1ReplicaSetForAllNamespacesResponse(response ListAppsV1ReplicaSetForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAppsV1ReplicaSetList: @@ -1599,6 +1667,7 @@ func encodeListAppsV1ReplicaSetForAllNamespacesResponse(response ListAppsV1Repli return errors.Errorf("unexpected response type: %T", response) } } + func encodeListAppsV1StatefulSetForAllNamespacesResponse(response ListAppsV1StatefulSetForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAppsV1StatefulSetList: @@ -1622,6 +1691,7 @@ func encodeListAppsV1StatefulSetForAllNamespacesResponse(response ListAppsV1Stat return errors.Errorf("unexpected response type: %T", response) } } + func encodeListAutoscalingV1HorizontalPodAutoscalerForAllNamespacesResponse(response ListAutoscalingV1HorizontalPodAutoscalerForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAutoscalingV1HorizontalPodAutoscalerList: @@ -1645,6 +1715,7 @@ func encodeListAutoscalingV1HorizontalPodAutoscalerForAllNamespacesResponse(resp return errors.Errorf("unexpected response type: %T", response) } } + func encodeListAutoscalingV1NamespacedHorizontalPodAutoscalerResponse(response ListAutoscalingV1NamespacedHorizontalPodAutoscalerRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAutoscalingV1HorizontalPodAutoscalerList: @@ -1668,6 +1739,7 @@ func encodeListAutoscalingV1NamespacedHorizontalPodAutoscalerResponse(response L return errors.Errorf("unexpected response type: %T", response) } } + func encodeListAutoscalingV2beta1HorizontalPodAutoscalerForAllNamespacesResponse(response ListAutoscalingV2beta1HorizontalPodAutoscalerForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAutoscalingV2beta1HorizontalPodAutoscalerList: @@ -1691,6 +1763,7 @@ func encodeListAutoscalingV2beta1HorizontalPodAutoscalerForAllNamespacesResponse return errors.Errorf("unexpected response type: %T", response) } } + func encodeListAutoscalingV2beta1NamespacedHorizontalPodAutoscalerResponse(response ListAutoscalingV2beta1NamespacedHorizontalPodAutoscalerRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAutoscalingV2beta1HorizontalPodAutoscalerList: @@ -1714,6 +1787,7 @@ func encodeListAutoscalingV2beta1NamespacedHorizontalPodAutoscalerResponse(respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeListAutoscalingV2beta2HorizontalPodAutoscalerForAllNamespacesResponse(response ListAutoscalingV2beta2HorizontalPodAutoscalerForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAutoscalingV2beta2HorizontalPodAutoscalerList: @@ -1737,6 +1811,7 @@ func encodeListAutoscalingV2beta2HorizontalPodAutoscalerForAllNamespacesResponse return errors.Errorf("unexpected response type: %T", response) } } + func encodeListAutoscalingV2beta2NamespacedHorizontalPodAutoscalerResponse(response ListAutoscalingV2beta2NamespacedHorizontalPodAutoscalerRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAutoscalingV2beta2HorizontalPodAutoscalerList: @@ -1760,6 +1835,7 @@ func encodeListAutoscalingV2beta2NamespacedHorizontalPodAutoscalerResponse(respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeListBatchV1CronJobForAllNamespacesResponse(response ListBatchV1CronJobForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIBatchV1CronJobList: @@ -1783,6 +1859,7 @@ func encodeListBatchV1CronJobForAllNamespacesResponse(response ListBatchV1CronJo return errors.Errorf("unexpected response type: %T", response) } } + func encodeListBatchV1JobForAllNamespacesResponse(response ListBatchV1JobForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIBatchV1JobList: @@ -1806,6 +1883,7 @@ func encodeListBatchV1JobForAllNamespacesResponse(response ListBatchV1JobForAllN return errors.Errorf("unexpected response type: %T", response) } } + func encodeListBatchV1NamespacedCronJobResponse(response ListBatchV1NamespacedCronJobRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIBatchV1CronJobList: @@ -1829,6 +1907,7 @@ func encodeListBatchV1NamespacedCronJobResponse(response ListBatchV1NamespacedCr return errors.Errorf("unexpected response type: %T", response) } } + func encodeListBatchV1NamespacedJobResponse(response ListBatchV1NamespacedJobRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIBatchV1JobList: @@ -1852,6 +1931,7 @@ func encodeListBatchV1NamespacedJobResponse(response ListBatchV1NamespacedJobRes return errors.Errorf("unexpected response type: %T", response) } } + func encodeListBatchV1beta1CronJobForAllNamespacesResponse(response ListBatchV1beta1CronJobForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIBatchV1beta1CronJobList: @@ -1875,6 +1955,7 @@ func encodeListBatchV1beta1CronJobForAllNamespacesResponse(response ListBatchV1b return errors.Errorf("unexpected response type: %T", response) } } + func encodeListBatchV1beta1NamespacedCronJobResponse(response ListBatchV1beta1NamespacedCronJobRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIBatchV1beta1CronJobList: @@ -1898,6 +1979,7 @@ func encodeListBatchV1beta1NamespacedCronJobResponse(response ListBatchV1beta1Na return errors.Errorf("unexpected response type: %T", response) } } + func encodeListCertificatesV1CertificateSigningRequestResponse(response ListCertificatesV1CertificateSigningRequestRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICertificatesV1CertificateSigningRequestList: @@ -1921,6 +2003,7 @@ func encodeListCertificatesV1CertificateSigningRequestResponse(response ListCert return errors.Errorf("unexpected response type: %T", response) } } + func encodeListCoordinationV1LeaseForAllNamespacesResponse(response ListCoordinationV1LeaseForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoordinationV1LeaseList: @@ -1944,6 +2027,7 @@ func encodeListCoordinationV1LeaseForAllNamespacesResponse(response ListCoordina return errors.Errorf("unexpected response type: %T", response) } } + func encodeListCoordinationV1NamespacedLeaseResponse(response ListCoordinationV1NamespacedLeaseRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoordinationV1LeaseList: @@ -1967,6 +2051,7 @@ func encodeListCoordinationV1NamespacedLeaseResponse(response ListCoordinationV1 return errors.Errorf("unexpected response type: %T", response) } } + func encodeListCoreV1ComponentStatusResponse(response ListCoreV1ComponentStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1ComponentStatusList: @@ -1990,6 +2075,7 @@ func encodeListCoreV1ComponentStatusResponse(response ListCoreV1ComponentStatusR return errors.Errorf("unexpected response type: %T", response) } } + func encodeListCoreV1ConfigMapForAllNamespacesResponse(response ListCoreV1ConfigMapForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1ConfigMapList: @@ -2013,6 +2099,7 @@ func encodeListCoreV1ConfigMapForAllNamespacesResponse(response ListCoreV1Config return errors.Errorf("unexpected response type: %T", response) } } + func encodeListCoreV1EndpointsForAllNamespacesResponse(response ListCoreV1EndpointsForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1EndpointsList: @@ -2036,6 +2123,7 @@ func encodeListCoreV1EndpointsForAllNamespacesResponse(response ListCoreV1Endpoi return errors.Errorf("unexpected response type: %T", response) } } + func encodeListCoreV1EventForAllNamespacesResponse(response ListCoreV1EventForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1EventList: @@ -2059,6 +2147,7 @@ func encodeListCoreV1EventForAllNamespacesResponse(response ListCoreV1EventForAl return errors.Errorf("unexpected response type: %T", response) } } + func encodeListCoreV1LimitRangeForAllNamespacesResponse(response ListCoreV1LimitRangeForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1LimitRangeList: @@ -2082,6 +2171,7 @@ func encodeListCoreV1LimitRangeForAllNamespacesResponse(response ListCoreV1Limit return errors.Errorf("unexpected response type: %T", response) } } + func encodeListCoreV1NamespaceResponse(response ListCoreV1NamespaceRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1NamespaceList: @@ -2105,6 +2195,7 @@ func encodeListCoreV1NamespaceResponse(response ListCoreV1NamespaceRes, w http.R return errors.Errorf("unexpected response type: %T", response) } } + func encodeListCoreV1NamespacedConfigMapResponse(response ListCoreV1NamespacedConfigMapRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1ConfigMapList: @@ -2128,6 +2219,7 @@ func encodeListCoreV1NamespacedConfigMapResponse(response ListCoreV1NamespacedCo return errors.Errorf("unexpected response type: %T", response) } } + func encodeListCoreV1NamespacedEndpointsResponse(response ListCoreV1NamespacedEndpointsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1EndpointsList: @@ -2151,6 +2243,7 @@ func encodeListCoreV1NamespacedEndpointsResponse(response ListCoreV1NamespacedEn return errors.Errorf("unexpected response type: %T", response) } } + func encodeListCoreV1NamespacedEventResponse(response ListCoreV1NamespacedEventRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1EventList: @@ -2174,6 +2267,7 @@ func encodeListCoreV1NamespacedEventResponse(response ListCoreV1NamespacedEventR return errors.Errorf("unexpected response type: %T", response) } } + func encodeListCoreV1NamespacedLimitRangeResponse(response ListCoreV1NamespacedLimitRangeRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1LimitRangeList: @@ -2197,6 +2291,7 @@ func encodeListCoreV1NamespacedLimitRangeResponse(response ListCoreV1NamespacedL return errors.Errorf("unexpected response type: %T", response) } } + func encodeListCoreV1NamespacedPersistentVolumeClaimResponse(response ListCoreV1NamespacedPersistentVolumeClaimRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1PersistentVolumeClaimList: @@ -2220,6 +2315,7 @@ func encodeListCoreV1NamespacedPersistentVolumeClaimResponse(response ListCoreV1 return errors.Errorf("unexpected response type: %T", response) } } + func encodeListCoreV1NamespacedPodResponse(response ListCoreV1NamespacedPodRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1PodList: @@ -2243,6 +2339,7 @@ func encodeListCoreV1NamespacedPodResponse(response ListCoreV1NamespacedPodRes, return errors.Errorf("unexpected response type: %T", response) } } + func encodeListCoreV1NamespacedPodTemplateResponse(response ListCoreV1NamespacedPodTemplateRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1PodTemplateList: @@ -2266,6 +2363,7 @@ func encodeListCoreV1NamespacedPodTemplateResponse(response ListCoreV1Namespaced return errors.Errorf("unexpected response type: %T", response) } } + func encodeListCoreV1NamespacedReplicationControllerResponse(response ListCoreV1NamespacedReplicationControllerRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1ReplicationControllerList: @@ -2289,6 +2387,7 @@ func encodeListCoreV1NamespacedReplicationControllerResponse(response ListCoreV1 return errors.Errorf("unexpected response type: %T", response) } } + func encodeListCoreV1NamespacedResourceQuotaResponse(response ListCoreV1NamespacedResourceQuotaRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1ResourceQuotaList: @@ -2312,6 +2411,7 @@ func encodeListCoreV1NamespacedResourceQuotaResponse(response ListCoreV1Namespac return errors.Errorf("unexpected response type: %T", response) } } + func encodeListCoreV1NamespacedSecretResponse(response ListCoreV1NamespacedSecretRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1SecretList: @@ -2335,6 +2435,7 @@ func encodeListCoreV1NamespacedSecretResponse(response ListCoreV1NamespacedSecre return errors.Errorf("unexpected response type: %T", response) } } + func encodeListCoreV1NamespacedServiceResponse(response ListCoreV1NamespacedServiceRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1ServiceList: @@ -2358,6 +2459,7 @@ func encodeListCoreV1NamespacedServiceResponse(response ListCoreV1NamespacedServ return errors.Errorf("unexpected response type: %T", response) } } + func encodeListCoreV1NamespacedServiceAccountResponse(response ListCoreV1NamespacedServiceAccountRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1ServiceAccountList: @@ -2381,6 +2483,7 @@ func encodeListCoreV1NamespacedServiceAccountResponse(response ListCoreV1Namespa return errors.Errorf("unexpected response type: %T", response) } } + func encodeListCoreV1NodeResponse(response ListCoreV1NodeRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1NodeList: @@ -2404,6 +2507,7 @@ func encodeListCoreV1NodeResponse(response ListCoreV1NodeRes, w http.ResponseWri return errors.Errorf("unexpected response type: %T", response) } } + func encodeListCoreV1PersistentVolumeResponse(response ListCoreV1PersistentVolumeRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1PersistentVolumeList: @@ -2427,6 +2531,7 @@ func encodeListCoreV1PersistentVolumeResponse(response ListCoreV1PersistentVolum return errors.Errorf("unexpected response type: %T", response) } } + func encodeListCoreV1PersistentVolumeClaimForAllNamespacesResponse(response ListCoreV1PersistentVolumeClaimForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1PersistentVolumeClaimList: @@ -2450,6 +2555,7 @@ func encodeListCoreV1PersistentVolumeClaimForAllNamespacesResponse(response List return errors.Errorf("unexpected response type: %T", response) } } + func encodeListCoreV1PodForAllNamespacesResponse(response ListCoreV1PodForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1PodList: @@ -2473,6 +2579,7 @@ func encodeListCoreV1PodForAllNamespacesResponse(response ListCoreV1PodForAllNam return errors.Errorf("unexpected response type: %T", response) } } + func encodeListCoreV1PodTemplateForAllNamespacesResponse(response ListCoreV1PodTemplateForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1PodTemplateList: @@ -2496,6 +2603,7 @@ func encodeListCoreV1PodTemplateForAllNamespacesResponse(response ListCoreV1PodT return errors.Errorf("unexpected response type: %T", response) } } + func encodeListCoreV1ReplicationControllerForAllNamespacesResponse(response ListCoreV1ReplicationControllerForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1ReplicationControllerList: @@ -2519,6 +2627,7 @@ func encodeListCoreV1ReplicationControllerForAllNamespacesResponse(response List return errors.Errorf("unexpected response type: %T", response) } } + func encodeListCoreV1ResourceQuotaForAllNamespacesResponse(response ListCoreV1ResourceQuotaForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1ResourceQuotaList: @@ -2542,6 +2651,7 @@ func encodeListCoreV1ResourceQuotaForAllNamespacesResponse(response ListCoreV1Re return errors.Errorf("unexpected response type: %T", response) } } + func encodeListCoreV1SecretForAllNamespacesResponse(response ListCoreV1SecretForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1SecretList: @@ -2565,6 +2675,7 @@ func encodeListCoreV1SecretForAllNamespacesResponse(response ListCoreV1SecretFor return errors.Errorf("unexpected response type: %T", response) } } + func encodeListCoreV1ServiceAccountForAllNamespacesResponse(response ListCoreV1ServiceAccountForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1ServiceAccountList: @@ -2588,6 +2699,7 @@ func encodeListCoreV1ServiceAccountForAllNamespacesResponse(response ListCoreV1S return errors.Errorf("unexpected response type: %T", response) } } + func encodeListCoreV1ServiceForAllNamespacesResponse(response ListCoreV1ServiceForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1ServiceList: @@ -2611,6 +2723,7 @@ func encodeListCoreV1ServiceForAllNamespacesResponse(response ListCoreV1ServiceF return errors.Errorf("unexpected response type: %T", response) } } + func encodeListDiscoveryV1EndpointSliceForAllNamespacesResponse(response ListDiscoveryV1EndpointSliceForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIDiscoveryV1EndpointSliceList: @@ -2634,6 +2747,7 @@ func encodeListDiscoveryV1EndpointSliceForAllNamespacesResponse(response ListDis return errors.Errorf("unexpected response type: %T", response) } } + func encodeListDiscoveryV1NamespacedEndpointSliceResponse(response ListDiscoveryV1NamespacedEndpointSliceRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIDiscoveryV1EndpointSliceList: @@ -2657,6 +2771,7 @@ func encodeListDiscoveryV1NamespacedEndpointSliceResponse(response ListDiscovery return errors.Errorf("unexpected response type: %T", response) } } + func encodeListDiscoveryV1beta1EndpointSliceForAllNamespacesResponse(response ListDiscoveryV1beta1EndpointSliceForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIDiscoveryV1beta1EndpointSliceList: @@ -2680,6 +2795,7 @@ func encodeListDiscoveryV1beta1EndpointSliceForAllNamespacesResponse(response Li return errors.Errorf("unexpected response type: %T", response) } } + func encodeListDiscoveryV1beta1NamespacedEndpointSliceResponse(response ListDiscoveryV1beta1NamespacedEndpointSliceRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIDiscoveryV1beta1EndpointSliceList: @@ -2703,6 +2819,7 @@ func encodeListDiscoveryV1beta1NamespacedEndpointSliceResponse(response ListDisc return errors.Errorf("unexpected response type: %T", response) } } + func encodeListEventsV1EventForAllNamespacesResponse(response ListEventsV1EventForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIEventsV1EventList: @@ -2726,6 +2843,7 @@ func encodeListEventsV1EventForAllNamespacesResponse(response ListEventsV1EventF return errors.Errorf("unexpected response type: %T", response) } } + func encodeListEventsV1NamespacedEventResponse(response ListEventsV1NamespacedEventRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIEventsV1EventList: @@ -2749,6 +2867,7 @@ func encodeListEventsV1NamespacedEventResponse(response ListEventsV1NamespacedEv return errors.Errorf("unexpected response type: %T", response) } } + func encodeListEventsV1beta1EventForAllNamespacesResponse(response ListEventsV1beta1EventForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIEventsV1beta1EventList: @@ -2772,6 +2891,7 @@ func encodeListEventsV1beta1EventForAllNamespacesResponse(response ListEventsV1b return errors.Errorf("unexpected response type: %T", response) } } + func encodeListEventsV1beta1NamespacedEventResponse(response ListEventsV1beta1NamespacedEventRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIEventsV1beta1EventList: @@ -2795,6 +2915,7 @@ func encodeListEventsV1beta1NamespacedEventResponse(response ListEventsV1beta1Na return errors.Errorf("unexpected response type: %T", response) } } + func encodeListFlowcontrolApiserverV1beta1FlowSchemaResponse(response ListFlowcontrolApiserverV1beta1FlowSchemaRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIFlowcontrolV1beta1FlowSchemaList: @@ -2818,6 +2939,7 @@ func encodeListFlowcontrolApiserverV1beta1FlowSchemaResponse(response ListFlowco return errors.Errorf("unexpected response type: %T", response) } } + func encodeListFlowcontrolApiserverV1beta1PriorityLevelConfigurationResponse(response ListFlowcontrolApiserverV1beta1PriorityLevelConfigurationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIFlowcontrolV1beta1PriorityLevelConfigurationList: @@ -2841,6 +2963,7 @@ func encodeListFlowcontrolApiserverV1beta1PriorityLevelConfigurationResponse(res return errors.Errorf("unexpected response type: %T", response) } } + func encodeListFlowcontrolApiserverV1beta2FlowSchemaResponse(response ListFlowcontrolApiserverV1beta2FlowSchemaRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIFlowcontrolV1beta2FlowSchemaList: @@ -2864,6 +2987,7 @@ func encodeListFlowcontrolApiserverV1beta2FlowSchemaResponse(response ListFlowco return errors.Errorf("unexpected response type: %T", response) } } + func encodeListFlowcontrolApiserverV1beta2PriorityLevelConfigurationResponse(response ListFlowcontrolApiserverV1beta2PriorityLevelConfigurationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIFlowcontrolV1beta2PriorityLevelConfigurationList: @@ -2887,6 +3011,7 @@ func encodeListFlowcontrolApiserverV1beta2PriorityLevelConfigurationResponse(res return errors.Errorf("unexpected response type: %T", response) } } + func encodeListInternalApiserverV1alpha1StorageVersionResponse(response ListInternalApiserverV1alpha1StorageVersionRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIApiserverinternalV1alpha1StorageVersionList: @@ -2910,6 +3035,7 @@ func encodeListInternalApiserverV1alpha1StorageVersionResponse(response ListInte return errors.Errorf("unexpected response type: %T", response) } } + func encodeListNetworkingV1IngressClassResponse(response ListNetworkingV1IngressClassRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPINetworkingV1IngressClassList: @@ -2933,6 +3059,7 @@ func encodeListNetworkingV1IngressClassResponse(response ListNetworkingV1Ingress return errors.Errorf("unexpected response type: %T", response) } } + func encodeListNetworkingV1IngressForAllNamespacesResponse(response ListNetworkingV1IngressForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPINetworkingV1IngressList: @@ -2956,6 +3083,7 @@ func encodeListNetworkingV1IngressForAllNamespacesResponse(response ListNetworki return errors.Errorf("unexpected response type: %T", response) } } + func encodeListNetworkingV1NamespacedIngressResponse(response ListNetworkingV1NamespacedIngressRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPINetworkingV1IngressList: @@ -2979,6 +3107,7 @@ func encodeListNetworkingV1NamespacedIngressResponse(response ListNetworkingV1Na return errors.Errorf("unexpected response type: %T", response) } } + func encodeListNetworkingV1NamespacedNetworkPolicyResponse(response ListNetworkingV1NamespacedNetworkPolicyRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPINetworkingV1NetworkPolicyList: @@ -3002,6 +3131,7 @@ func encodeListNetworkingV1NamespacedNetworkPolicyResponse(response ListNetworki return errors.Errorf("unexpected response type: %T", response) } } + func encodeListNetworkingV1NetworkPolicyForAllNamespacesResponse(response ListNetworkingV1NetworkPolicyForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPINetworkingV1NetworkPolicyList: @@ -3025,6 +3155,7 @@ func encodeListNetworkingV1NetworkPolicyForAllNamespacesResponse(response ListNe return errors.Errorf("unexpected response type: %T", response) } } + func encodeListNodeV1RuntimeClassResponse(response ListNodeV1RuntimeClassRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPINodeV1RuntimeClassList: @@ -3048,6 +3179,7 @@ func encodeListNodeV1RuntimeClassResponse(response ListNodeV1RuntimeClassRes, w return errors.Errorf("unexpected response type: %T", response) } } + func encodeListNodeV1alpha1RuntimeClassResponse(response ListNodeV1alpha1RuntimeClassRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPINodeV1alpha1RuntimeClassList: @@ -3071,6 +3203,7 @@ func encodeListNodeV1alpha1RuntimeClassResponse(response ListNodeV1alpha1Runtime return errors.Errorf("unexpected response type: %T", response) } } + func encodeListNodeV1beta1RuntimeClassResponse(response ListNodeV1beta1RuntimeClassRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPINodeV1beta1RuntimeClassList: @@ -3094,6 +3227,7 @@ func encodeListNodeV1beta1RuntimeClassResponse(response ListNodeV1beta1RuntimeCl return errors.Errorf("unexpected response type: %T", response) } } + func encodeListPolicyV1NamespacedPodDisruptionBudgetResponse(response ListPolicyV1NamespacedPodDisruptionBudgetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIPolicyV1PodDisruptionBudgetList: @@ -3117,6 +3251,7 @@ func encodeListPolicyV1NamespacedPodDisruptionBudgetResponse(response ListPolicy return errors.Errorf("unexpected response type: %T", response) } } + func encodeListPolicyV1PodDisruptionBudgetForAllNamespacesResponse(response ListPolicyV1PodDisruptionBudgetForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIPolicyV1PodDisruptionBudgetList: @@ -3140,6 +3275,7 @@ func encodeListPolicyV1PodDisruptionBudgetForAllNamespacesResponse(response List return errors.Errorf("unexpected response type: %T", response) } } + func encodeListPolicyV1beta1NamespacedPodDisruptionBudgetResponse(response ListPolicyV1beta1NamespacedPodDisruptionBudgetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIPolicyV1beta1PodDisruptionBudgetList: @@ -3163,6 +3299,7 @@ func encodeListPolicyV1beta1NamespacedPodDisruptionBudgetResponse(response ListP return errors.Errorf("unexpected response type: %T", response) } } + func encodeListPolicyV1beta1PodDisruptionBudgetForAllNamespacesResponse(response ListPolicyV1beta1PodDisruptionBudgetForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIPolicyV1beta1PodDisruptionBudgetList: @@ -3186,6 +3323,7 @@ func encodeListPolicyV1beta1PodDisruptionBudgetForAllNamespacesResponse(response return errors.Errorf("unexpected response type: %T", response) } } + func encodeListPolicyV1beta1PodSecurityPolicyResponse(response ListPolicyV1beta1PodSecurityPolicyRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIPolicyV1beta1PodSecurityPolicyList: @@ -3209,6 +3347,7 @@ func encodeListPolicyV1beta1PodSecurityPolicyResponse(response ListPolicyV1beta1 return errors.Errorf("unexpected response type: %T", response) } } + func encodeListRbacAuthorizationV1ClusterRoleResponse(response ListRbacAuthorizationV1ClusterRoleRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIRbacV1ClusterRoleList: @@ -3232,6 +3371,7 @@ func encodeListRbacAuthorizationV1ClusterRoleResponse(response ListRbacAuthoriza return errors.Errorf("unexpected response type: %T", response) } } + func encodeListRbacAuthorizationV1ClusterRoleBindingResponse(response ListRbacAuthorizationV1ClusterRoleBindingRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIRbacV1ClusterRoleBindingList: @@ -3255,6 +3395,7 @@ func encodeListRbacAuthorizationV1ClusterRoleBindingResponse(response ListRbacAu return errors.Errorf("unexpected response type: %T", response) } } + func encodeListRbacAuthorizationV1NamespacedRoleResponse(response ListRbacAuthorizationV1NamespacedRoleRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIRbacV1RoleList: @@ -3278,6 +3419,7 @@ func encodeListRbacAuthorizationV1NamespacedRoleResponse(response ListRbacAuthor return errors.Errorf("unexpected response type: %T", response) } } + func encodeListRbacAuthorizationV1NamespacedRoleBindingResponse(response ListRbacAuthorizationV1NamespacedRoleBindingRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIRbacV1RoleBindingList: @@ -3301,6 +3443,7 @@ func encodeListRbacAuthorizationV1NamespacedRoleBindingResponse(response ListRba return errors.Errorf("unexpected response type: %T", response) } } + func encodeListRbacAuthorizationV1RoleBindingForAllNamespacesResponse(response ListRbacAuthorizationV1RoleBindingForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIRbacV1RoleBindingList: @@ -3324,6 +3467,7 @@ func encodeListRbacAuthorizationV1RoleBindingForAllNamespacesResponse(response L return errors.Errorf("unexpected response type: %T", response) } } + func encodeListRbacAuthorizationV1RoleForAllNamespacesResponse(response ListRbacAuthorizationV1RoleForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIRbacV1RoleList: @@ -3347,6 +3491,7 @@ func encodeListRbacAuthorizationV1RoleForAllNamespacesResponse(response ListRbac return errors.Errorf("unexpected response type: %T", response) } } + func encodeListSchedulingV1PriorityClassResponse(response ListSchedulingV1PriorityClassRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPISchedulingV1PriorityClassList: @@ -3370,6 +3515,7 @@ func encodeListSchedulingV1PriorityClassResponse(response ListSchedulingV1Priori return errors.Errorf("unexpected response type: %T", response) } } + func encodeListStorageV1CSIDriverResponse(response ListStorageV1CSIDriverRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIStorageV1CSIDriverList: @@ -3393,6 +3539,7 @@ func encodeListStorageV1CSIDriverResponse(response ListStorageV1CSIDriverRes, w return errors.Errorf("unexpected response type: %T", response) } } + func encodeListStorageV1CSINodeResponse(response ListStorageV1CSINodeRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIStorageV1CSINodeList: @@ -3416,6 +3563,7 @@ func encodeListStorageV1CSINodeResponse(response ListStorageV1CSINodeRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodeListStorageV1StorageClassResponse(response ListStorageV1StorageClassRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIStorageV1StorageClassList: @@ -3439,6 +3587,7 @@ func encodeListStorageV1StorageClassResponse(response ListStorageV1StorageClassR return errors.Errorf("unexpected response type: %T", response) } } + func encodeListStorageV1VolumeAttachmentResponse(response ListStorageV1VolumeAttachmentRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIStorageV1VolumeAttachmentList: @@ -3462,6 +3611,7 @@ func encodeListStorageV1VolumeAttachmentResponse(response ListStorageV1VolumeAtt return errors.Errorf("unexpected response type: %T", response) } } + func encodeListStorageV1alpha1CSIStorageCapacityForAllNamespacesResponse(response ListStorageV1alpha1CSIStorageCapacityForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIStorageV1alpha1CSIStorageCapacityList: @@ -3485,6 +3635,7 @@ func encodeListStorageV1alpha1CSIStorageCapacityForAllNamespacesResponse(respons return errors.Errorf("unexpected response type: %T", response) } } + func encodeListStorageV1alpha1NamespacedCSIStorageCapacityResponse(response ListStorageV1alpha1NamespacedCSIStorageCapacityRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIStorageV1alpha1CSIStorageCapacityList: @@ -3508,6 +3659,7 @@ func encodeListStorageV1alpha1NamespacedCSIStorageCapacityResponse(response List return errors.Errorf("unexpected response type: %T", response) } } + func encodeListStorageV1beta1CSIStorageCapacityForAllNamespacesResponse(response ListStorageV1beta1CSIStorageCapacityForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIStorageV1beta1CSIStorageCapacityList: @@ -3531,6 +3683,7 @@ func encodeListStorageV1beta1CSIStorageCapacityForAllNamespacesResponse(response return errors.Errorf("unexpected response type: %T", response) } } + func encodeListStorageV1beta1NamespacedCSIStorageCapacityResponse(response ListStorageV1beta1NamespacedCSIStorageCapacityRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIStorageV1beta1CSIStorageCapacityList: @@ -3554,18 +3707,21 @@ func encodeListStorageV1beta1NamespacedCSIStorageCapacityResponse(response ListS return errors.Errorf("unexpected response type: %T", response) } } + func encodeLogFileHandlerResponse(response LogFileHandlerUnauthorized, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(401) span.SetStatus(codes.Error, http.StatusText(401)) return nil } + func encodeLogFileListHandlerResponse(response LogFileListHandlerUnauthorized, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(401) span.SetStatus(codes.Error, http.StatusText(401)) return nil } + func encodeReadAdmissionregistrationV1MutatingWebhookConfigurationResponse(response ReadAdmissionregistrationV1MutatingWebhookConfigurationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAdmissionregistrationV1MutatingWebhookConfiguration: @@ -3589,6 +3745,7 @@ func encodeReadAdmissionregistrationV1MutatingWebhookConfigurationResponse(respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadAdmissionregistrationV1ValidatingWebhookConfigurationResponse(response ReadAdmissionregistrationV1ValidatingWebhookConfigurationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAdmissionregistrationV1ValidatingWebhookConfiguration: @@ -3612,6 +3769,7 @@ func encodeReadAdmissionregistrationV1ValidatingWebhookConfigurationResponse(res return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadApiextensionsV1CustomResourceDefinitionResponse(response ReadApiextensionsV1CustomResourceDefinitionRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinition: @@ -3635,6 +3793,7 @@ func encodeReadApiextensionsV1CustomResourceDefinitionResponse(response ReadApie return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadApiextensionsV1CustomResourceDefinitionStatusResponse(response ReadApiextensionsV1CustomResourceDefinitionStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinition: @@ -3658,6 +3817,7 @@ func encodeReadApiextensionsV1CustomResourceDefinitionStatusResponse(response Re return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadApiregistrationV1APIServiceResponse(response ReadApiregistrationV1APIServiceRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sKubeAggregatorPkgApisApiregistrationV1APIService: @@ -3681,6 +3841,7 @@ func encodeReadApiregistrationV1APIServiceResponse(response ReadApiregistrationV return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadApiregistrationV1APIServiceStatusResponse(response ReadApiregistrationV1APIServiceStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sKubeAggregatorPkgApisApiregistrationV1APIService: @@ -3704,6 +3865,7 @@ func encodeReadApiregistrationV1APIServiceStatusResponse(response ReadApiregistr return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadAppsV1NamespacedControllerRevisionResponse(response ReadAppsV1NamespacedControllerRevisionRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAppsV1ControllerRevision: @@ -3727,6 +3889,7 @@ func encodeReadAppsV1NamespacedControllerRevisionResponse(response ReadAppsV1Nam return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadAppsV1NamespacedDaemonSetResponse(response ReadAppsV1NamespacedDaemonSetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAppsV1DaemonSet: @@ -3750,6 +3913,7 @@ func encodeReadAppsV1NamespacedDaemonSetResponse(response ReadAppsV1NamespacedDa return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadAppsV1NamespacedDaemonSetStatusResponse(response ReadAppsV1NamespacedDaemonSetStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAppsV1DaemonSet: @@ -3773,6 +3937,7 @@ func encodeReadAppsV1NamespacedDaemonSetStatusResponse(response ReadAppsV1Namesp return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadAppsV1NamespacedDeploymentResponse(response ReadAppsV1NamespacedDeploymentRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAppsV1Deployment: @@ -3796,6 +3961,7 @@ func encodeReadAppsV1NamespacedDeploymentResponse(response ReadAppsV1NamespacedD return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadAppsV1NamespacedDeploymentScaleResponse(response ReadAppsV1NamespacedDeploymentScaleRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAutoscalingV1Scale: @@ -3819,6 +3985,7 @@ func encodeReadAppsV1NamespacedDeploymentScaleResponse(response ReadAppsV1Namesp return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadAppsV1NamespacedDeploymentStatusResponse(response ReadAppsV1NamespacedDeploymentStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAppsV1Deployment: @@ -3842,6 +4009,7 @@ func encodeReadAppsV1NamespacedDeploymentStatusResponse(response ReadAppsV1Names return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadAppsV1NamespacedReplicaSetResponse(response ReadAppsV1NamespacedReplicaSetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAppsV1ReplicaSet: @@ -3865,6 +4033,7 @@ func encodeReadAppsV1NamespacedReplicaSetResponse(response ReadAppsV1NamespacedR return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadAppsV1NamespacedReplicaSetScaleResponse(response ReadAppsV1NamespacedReplicaSetScaleRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAutoscalingV1Scale: @@ -3888,6 +4057,7 @@ func encodeReadAppsV1NamespacedReplicaSetScaleResponse(response ReadAppsV1Namesp return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadAppsV1NamespacedReplicaSetStatusResponse(response ReadAppsV1NamespacedReplicaSetStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAppsV1ReplicaSet: @@ -3911,6 +4081,7 @@ func encodeReadAppsV1NamespacedReplicaSetStatusResponse(response ReadAppsV1Names return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadAppsV1NamespacedStatefulSetResponse(response ReadAppsV1NamespacedStatefulSetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAppsV1StatefulSet: @@ -3934,6 +4105,7 @@ func encodeReadAppsV1NamespacedStatefulSetResponse(response ReadAppsV1Namespaced return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadAppsV1NamespacedStatefulSetScaleResponse(response ReadAppsV1NamespacedStatefulSetScaleRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAutoscalingV1Scale: @@ -3957,6 +4129,7 @@ func encodeReadAppsV1NamespacedStatefulSetScaleResponse(response ReadAppsV1Names return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadAppsV1NamespacedStatefulSetStatusResponse(response ReadAppsV1NamespacedStatefulSetStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAppsV1StatefulSet: @@ -3980,6 +4153,7 @@ func encodeReadAppsV1NamespacedStatefulSetStatusResponse(response ReadAppsV1Name return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadAutoscalingV1NamespacedHorizontalPodAutoscalerResponse(response ReadAutoscalingV1NamespacedHorizontalPodAutoscalerRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAutoscalingV1HorizontalPodAutoscaler: @@ -4003,6 +4177,7 @@ func encodeReadAutoscalingV1NamespacedHorizontalPodAutoscalerResponse(response R return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadAutoscalingV1NamespacedHorizontalPodAutoscalerStatusResponse(response ReadAutoscalingV1NamespacedHorizontalPodAutoscalerStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAutoscalingV1HorizontalPodAutoscaler: @@ -4026,6 +4201,7 @@ func encodeReadAutoscalingV1NamespacedHorizontalPodAutoscalerStatusResponse(resp return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerResponse(response ReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAutoscalingV2beta1HorizontalPodAutoscaler: @@ -4049,6 +4225,7 @@ func encodeReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerResponse(respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerStatusResponse(response ReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAutoscalingV2beta1HorizontalPodAutoscaler: @@ -4072,6 +4249,7 @@ func encodeReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerStatusResponse return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerResponse(response ReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAutoscalingV2beta2HorizontalPodAutoscaler: @@ -4095,6 +4273,7 @@ func encodeReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerResponse(respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerStatusResponse(response ReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAutoscalingV2beta2HorizontalPodAutoscaler: @@ -4118,6 +4297,7 @@ func encodeReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerStatusResponse return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadBatchV1NamespacedCronJobResponse(response ReadBatchV1NamespacedCronJobRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIBatchV1CronJob: @@ -4141,6 +4321,7 @@ func encodeReadBatchV1NamespacedCronJobResponse(response ReadBatchV1NamespacedCr return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadBatchV1NamespacedCronJobStatusResponse(response ReadBatchV1NamespacedCronJobStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIBatchV1CronJob: @@ -4164,6 +4345,7 @@ func encodeReadBatchV1NamespacedCronJobStatusResponse(response ReadBatchV1Namesp return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadBatchV1NamespacedJobResponse(response ReadBatchV1NamespacedJobRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIBatchV1Job: @@ -4187,6 +4369,7 @@ func encodeReadBatchV1NamespacedJobResponse(response ReadBatchV1NamespacedJobRes return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadBatchV1NamespacedJobStatusResponse(response ReadBatchV1NamespacedJobStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIBatchV1Job: @@ -4210,6 +4393,7 @@ func encodeReadBatchV1NamespacedJobStatusResponse(response ReadBatchV1Namespaced return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadBatchV1beta1NamespacedCronJobResponse(response ReadBatchV1beta1NamespacedCronJobRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIBatchV1beta1CronJob: @@ -4233,6 +4417,7 @@ func encodeReadBatchV1beta1NamespacedCronJobResponse(response ReadBatchV1beta1Na return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadBatchV1beta1NamespacedCronJobStatusResponse(response ReadBatchV1beta1NamespacedCronJobStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIBatchV1beta1CronJob: @@ -4256,6 +4441,7 @@ func encodeReadBatchV1beta1NamespacedCronJobStatusResponse(response ReadBatchV1b return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadCertificatesV1CertificateSigningRequestResponse(response ReadCertificatesV1CertificateSigningRequestRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICertificatesV1CertificateSigningRequest: @@ -4279,6 +4465,7 @@ func encodeReadCertificatesV1CertificateSigningRequestResponse(response ReadCert return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadCertificatesV1CertificateSigningRequestApprovalResponse(response ReadCertificatesV1CertificateSigningRequestApprovalRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICertificatesV1CertificateSigningRequest: @@ -4302,6 +4489,7 @@ func encodeReadCertificatesV1CertificateSigningRequestApprovalResponse(response return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadCertificatesV1CertificateSigningRequestStatusResponse(response ReadCertificatesV1CertificateSigningRequestStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICertificatesV1CertificateSigningRequest: @@ -4325,6 +4513,7 @@ func encodeReadCertificatesV1CertificateSigningRequestStatusResponse(response Re return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadCoordinationV1NamespacedLeaseResponse(response ReadCoordinationV1NamespacedLeaseRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoordinationV1Lease: @@ -4348,6 +4537,7 @@ func encodeReadCoordinationV1NamespacedLeaseResponse(response ReadCoordinationV1 return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadCoreV1ComponentStatusResponse(response ReadCoreV1ComponentStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1ComponentStatus: @@ -4371,6 +4561,7 @@ func encodeReadCoreV1ComponentStatusResponse(response ReadCoreV1ComponentStatusR return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadCoreV1NamespaceResponse(response ReadCoreV1NamespaceRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1Namespace: @@ -4394,6 +4585,7 @@ func encodeReadCoreV1NamespaceResponse(response ReadCoreV1NamespaceRes, w http.R return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadCoreV1NamespaceStatusResponse(response ReadCoreV1NamespaceStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1Namespace: @@ -4417,6 +4609,7 @@ func encodeReadCoreV1NamespaceStatusResponse(response ReadCoreV1NamespaceStatusR return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadCoreV1NamespacedConfigMapResponse(response ReadCoreV1NamespacedConfigMapRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1ConfigMap: @@ -4440,6 +4633,7 @@ func encodeReadCoreV1NamespacedConfigMapResponse(response ReadCoreV1NamespacedCo return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadCoreV1NamespacedEndpointsResponse(response ReadCoreV1NamespacedEndpointsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1Endpoints: @@ -4463,6 +4657,7 @@ func encodeReadCoreV1NamespacedEndpointsResponse(response ReadCoreV1NamespacedEn return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadCoreV1NamespacedEventResponse(response ReadCoreV1NamespacedEventRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1Event: @@ -4486,6 +4681,7 @@ func encodeReadCoreV1NamespacedEventResponse(response ReadCoreV1NamespacedEventR return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadCoreV1NamespacedLimitRangeResponse(response ReadCoreV1NamespacedLimitRangeRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1LimitRange: @@ -4509,6 +4705,7 @@ func encodeReadCoreV1NamespacedLimitRangeResponse(response ReadCoreV1NamespacedL return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadCoreV1NamespacedPersistentVolumeClaimResponse(response ReadCoreV1NamespacedPersistentVolumeClaimRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1PersistentVolumeClaim: @@ -4532,6 +4729,7 @@ func encodeReadCoreV1NamespacedPersistentVolumeClaimResponse(response ReadCoreV1 return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadCoreV1NamespacedPersistentVolumeClaimStatusResponse(response ReadCoreV1NamespacedPersistentVolumeClaimStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1PersistentVolumeClaim: @@ -4555,6 +4753,7 @@ func encodeReadCoreV1NamespacedPersistentVolumeClaimStatusResponse(response Read return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadCoreV1NamespacedPodResponse(response ReadCoreV1NamespacedPodRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1Pod: @@ -4578,6 +4777,7 @@ func encodeReadCoreV1NamespacedPodResponse(response ReadCoreV1NamespacedPodRes, return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadCoreV1NamespacedPodEphemeralcontainersResponse(response ReadCoreV1NamespacedPodEphemeralcontainersRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1Pod: @@ -4601,6 +4801,7 @@ func encodeReadCoreV1NamespacedPodEphemeralcontainersResponse(response ReadCoreV return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadCoreV1NamespacedPodLogResponse(response ReadCoreV1NamespacedPodLogRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *ReadCoreV1NamespacedPodLogOKApplicationJSON: @@ -4633,6 +4834,7 @@ func encodeReadCoreV1NamespacedPodLogResponse(response ReadCoreV1NamespacedPodLo return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadCoreV1NamespacedPodStatusResponse(response ReadCoreV1NamespacedPodStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1Pod: @@ -4656,6 +4858,7 @@ func encodeReadCoreV1NamespacedPodStatusResponse(response ReadCoreV1NamespacedPo return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadCoreV1NamespacedPodTemplateResponse(response ReadCoreV1NamespacedPodTemplateRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1PodTemplate: @@ -4679,6 +4882,7 @@ func encodeReadCoreV1NamespacedPodTemplateResponse(response ReadCoreV1Namespaced return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadCoreV1NamespacedReplicationControllerResponse(response ReadCoreV1NamespacedReplicationControllerRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1ReplicationController: @@ -4702,6 +4906,7 @@ func encodeReadCoreV1NamespacedReplicationControllerResponse(response ReadCoreV1 return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadCoreV1NamespacedReplicationControllerScaleResponse(response ReadCoreV1NamespacedReplicationControllerScaleRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIAutoscalingV1Scale: @@ -4725,6 +4930,7 @@ func encodeReadCoreV1NamespacedReplicationControllerScaleResponse(response ReadC return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadCoreV1NamespacedReplicationControllerStatusResponse(response ReadCoreV1NamespacedReplicationControllerStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1ReplicationController: @@ -4748,6 +4954,7 @@ func encodeReadCoreV1NamespacedReplicationControllerStatusResponse(response Read return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadCoreV1NamespacedResourceQuotaResponse(response ReadCoreV1NamespacedResourceQuotaRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1ResourceQuota: @@ -4771,6 +4978,7 @@ func encodeReadCoreV1NamespacedResourceQuotaResponse(response ReadCoreV1Namespac return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadCoreV1NamespacedResourceQuotaStatusResponse(response ReadCoreV1NamespacedResourceQuotaStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1ResourceQuota: @@ -4794,6 +5002,7 @@ func encodeReadCoreV1NamespacedResourceQuotaStatusResponse(response ReadCoreV1Na return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadCoreV1NamespacedSecretResponse(response ReadCoreV1NamespacedSecretRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1Secret: @@ -4817,6 +5026,7 @@ func encodeReadCoreV1NamespacedSecretResponse(response ReadCoreV1NamespacedSecre return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadCoreV1NamespacedServiceResponse(response ReadCoreV1NamespacedServiceRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1Service: @@ -4840,6 +5050,7 @@ func encodeReadCoreV1NamespacedServiceResponse(response ReadCoreV1NamespacedServ return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadCoreV1NamespacedServiceAccountResponse(response ReadCoreV1NamespacedServiceAccountRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1ServiceAccount: @@ -4863,6 +5074,7 @@ func encodeReadCoreV1NamespacedServiceAccountResponse(response ReadCoreV1Namespa return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadCoreV1NamespacedServiceStatusResponse(response ReadCoreV1NamespacedServiceStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1Service: @@ -4886,6 +5098,7 @@ func encodeReadCoreV1NamespacedServiceStatusResponse(response ReadCoreV1Namespac return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadCoreV1NodeResponse(response ReadCoreV1NodeRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1Node: @@ -4909,6 +5122,7 @@ func encodeReadCoreV1NodeResponse(response ReadCoreV1NodeRes, w http.ResponseWri return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadCoreV1NodeStatusResponse(response ReadCoreV1NodeStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1Node: @@ -4932,6 +5146,7 @@ func encodeReadCoreV1NodeStatusResponse(response ReadCoreV1NodeStatusRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadCoreV1PersistentVolumeResponse(response ReadCoreV1PersistentVolumeRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1PersistentVolume: @@ -4955,6 +5170,7 @@ func encodeReadCoreV1PersistentVolumeResponse(response ReadCoreV1PersistentVolum return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadCoreV1PersistentVolumeStatusResponse(response ReadCoreV1PersistentVolumeStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPICoreV1PersistentVolume: @@ -4978,6 +5194,7 @@ func encodeReadCoreV1PersistentVolumeStatusResponse(response ReadCoreV1Persisten return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadDiscoveryV1NamespacedEndpointSliceResponse(response ReadDiscoveryV1NamespacedEndpointSliceRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIDiscoveryV1EndpointSlice: @@ -5001,6 +5218,7 @@ func encodeReadDiscoveryV1NamespacedEndpointSliceResponse(response ReadDiscovery return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadDiscoveryV1beta1NamespacedEndpointSliceResponse(response ReadDiscoveryV1beta1NamespacedEndpointSliceRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIDiscoveryV1beta1EndpointSlice: @@ -5024,6 +5242,7 @@ func encodeReadDiscoveryV1beta1NamespacedEndpointSliceResponse(response ReadDisc return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadEventsV1NamespacedEventResponse(response ReadEventsV1NamespacedEventRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIEventsV1Event: @@ -5047,6 +5266,7 @@ func encodeReadEventsV1NamespacedEventResponse(response ReadEventsV1NamespacedEv return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadEventsV1beta1NamespacedEventResponse(response ReadEventsV1beta1NamespacedEventRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIEventsV1beta1Event: @@ -5070,6 +5290,7 @@ func encodeReadEventsV1beta1NamespacedEventResponse(response ReadEventsV1beta1Na return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadFlowcontrolApiserverV1beta1FlowSchemaResponse(response ReadFlowcontrolApiserverV1beta1FlowSchemaRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIFlowcontrolV1beta1FlowSchema: @@ -5093,6 +5314,7 @@ func encodeReadFlowcontrolApiserverV1beta1FlowSchemaResponse(response ReadFlowco return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadFlowcontrolApiserverV1beta1FlowSchemaStatusResponse(response ReadFlowcontrolApiserverV1beta1FlowSchemaStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIFlowcontrolV1beta1FlowSchema: @@ -5116,6 +5338,7 @@ func encodeReadFlowcontrolApiserverV1beta1FlowSchemaStatusResponse(response Read return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadFlowcontrolApiserverV1beta1PriorityLevelConfigurationResponse(response ReadFlowcontrolApiserverV1beta1PriorityLevelConfigurationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIFlowcontrolV1beta1PriorityLevelConfiguration: @@ -5139,6 +5362,7 @@ func encodeReadFlowcontrolApiserverV1beta1PriorityLevelConfigurationResponse(res return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadFlowcontrolApiserverV1beta1PriorityLevelConfigurationStatusResponse(response ReadFlowcontrolApiserverV1beta1PriorityLevelConfigurationStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIFlowcontrolV1beta1PriorityLevelConfiguration: @@ -5162,6 +5386,7 @@ func encodeReadFlowcontrolApiserverV1beta1PriorityLevelConfigurationStatusRespon return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadFlowcontrolApiserverV1beta2FlowSchemaResponse(response ReadFlowcontrolApiserverV1beta2FlowSchemaRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIFlowcontrolV1beta2FlowSchema: @@ -5185,6 +5410,7 @@ func encodeReadFlowcontrolApiserverV1beta2FlowSchemaResponse(response ReadFlowco return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadFlowcontrolApiserverV1beta2FlowSchemaStatusResponse(response ReadFlowcontrolApiserverV1beta2FlowSchemaStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIFlowcontrolV1beta2FlowSchema: @@ -5208,6 +5434,7 @@ func encodeReadFlowcontrolApiserverV1beta2FlowSchemaStatusResponse(response Read return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadFlowcontrolApiserverV1beta2PriorityLevelConfigurationResponse(response ReadFlowcontrolApiserverV1beta2PriorityLevelConfigurationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIFlowcontrolV1beta2PriorityLevelConfiguration: @@ -5231,6 +5458,7 @@ func encodeReadFlowcontrolApiserverV1beta2PriorityLevelConfigurationResponse(res return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadFlowcontrolApiserverV1beta2PriorityLevelConfigurationStatusResponse(response ReadFlowcontrolApiserverV1beta2PriorityLevelConfigurationStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIFlowcontrolV1beta2PriorityLevelConfiguration: @@ -5254,6 +5482,7 @@ func encodeReadFlowcontrolApiserverV1beta2PriorityLevelConfigurationStatusRespon return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadInternalApiserverV1alpha1StorageVersionResponse(response ReadInternalApiserverV1alpha1StorageVersionRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIApiserverinternalV1alpha1StorageVersion: @@ -5277,6 +5506,7 @@ func encodeReadInternalApiserverV1alpha1StorageVersionResponse(response ReadInte return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadInternalApiserverV1alpha1StorageVersionStatusResponse(response ReadInternalApiserverV1alpha1StorageVersionStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIApiserverinternalV1alpha1StorageVersion: @@ -5300,6 +5530,7 @@ func encodeReadInternalApiserverV1alpha1StorageVersionStatusResponse(response Re return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadNetworkingV1IngressClassResponse(response ReadNetworkingV1IngressClassRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPINetworkingV1IngressClass: @@ -5323,6 +5554,7 @@ func encodeReadNetworkingV1IngressClassResponse(response ReadNetworkingV1Ingress return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadNetworkingV1NamespacedIngressResponse(response ReadNetworkingV1NamespacedIngressRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPINetworkingV1Ingress: @@ -5346,6 +5578,7 @@ func encodeReadNetworkingV1NamespacedIngressResponse(response ReadNetworkingV1Na return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadNetworkingV1NamespacedIngressStatusResponse(response ReadNetworkingV1NamespacedIngressStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPINetworkingV1Ingress: @@ -5369,6 +5602,7 @@ func encodeReadNetworkingV1NamespacedIngressStatusResponse(response ReadNetworki return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadNetworkingV1NamespacedNetworkPolicyResponse(response ReadNetworkingV1NamespacedNetworkPolicyRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPINetworkingV1NetworkPolicy: @@ -5392,6 +5626,7 @@ func encodeReadNetworkingV1NamespacedNetworkPolicyResponse(response ReadNetworki return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadNodeV1RuntimeClassResponse(response ReadNodeV1RuntimeClassRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPINodeV1RuntimeClass: @@ -5415,6 +5650,7 @@ func encodeReadNodeV1RuntimeClassResponse(response ReadNodeV1RuntimeClassRes, w return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadNodeV1alpha1RuntimeClassResponse(response ReadNodeV1alpha1RuntimeClassRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPINodeV1alpha1RuntimeClass: @@ -5438,6 +5674,7 @@ func encodeReadNodeV1alpha1RuntimeClassResponse(response ReadNodeV1alpha1Runtime return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadNodeV1beta1RuntimeClassResponse(response ReadNodeV1beta1RuntimeClassRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPINodeV1beta1RuntimeClass: @@ -5461,6 +5698,7 @@ func encodeReadNodeV1beta1RuntimeClassResponse(response ReadNodeV1beta1RuntimeCl return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadPolicyV1NamespacedPodDisruptionBudgetResponse(response ReadPolicyV1NamespacedPodDisruptionBudgetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIPolicyV1PodDisruptionBudget: @@ -5484,6 +5722,7 @@ func encodeReadPolicyV1NamespacedPodDisruptionBudgetResponse(response ReadPolicy return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadPolicyV1NamespacedPodDisruptionBudgetStatusResponse(response ReadPolicyV1NamespacedPodDisruptionBudgetStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIPolicyV1PodDisruptionBudget: @@ -5507,6 +5746,7 @@ func encodeReadPolicyV1NamespacedPodDisruptionBudgetStatusResponse(response Read return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadPolicyV1beta1NamespacedPodDisruptionBudgetResponse(response ReadPolicyV1beta1NamespacedPodDisruptionBudgetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIPolicyV1beta1PodDisruptionBudget: @@ -5530,6 +5770,7 @@ func encodeReadPolicyV1beta1NamespacedPodDisruptionBudgetResponse(response ReadP return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadPolicyV1beta1NamespacedPodDisruptionBudgetStatusResponse(response ReadPolicyV1beta1NamespacedPodDisruptionBudgetStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIPolicyV1beta1PodDisruptionBudget: @@ -5553,6 +5794,7 @@ func encodeReadPolicyV1beta1NamespacedPodDisruptionBudgetStatusResponse(response return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadPolicyV1beta1PodSecurityPolicyResponse(response ReadPolicyV1beta1PodSecurityPolicyRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIPolicyV1beta1PodSecurityPolicy: @@ -5576,6 +5818,7 @@ func encodeReadPolicyV1beta1PodSecurityPolicyResponse(response ReadPolicyV1beta1 return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadRbacAuthorizationV1ClusterRoleResponse(response ReadRbacAuthorizationV1ClusterRoleRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIRbacV1ClusterRole: @@ -5599,6 +5842,7 @@ func encodeReadRbacAuthorizationV1ClusterRoleResponse(response ReadRbacAuthoriza return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadRbacAuthorizationV1ClusterRoleBindingResponse(response ReadRbacAuthorizationV1ClusterRoleBindingRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIRbacV1ClusterRoleBinding: @@ -5622,6 +5866,7 @@ func encodeReadRbacAuthorizationV1ClusterRoleBindingResponse(response ReadRbacAu return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadRbacAuthorizationV1NamespacedRoleResponse(response ReadRbacAuthorizationV1NamespacedRoleRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIRbacV1Role: @@ -5645,6 +5890,7 @@ func encodeReadRbacAuthorizationV1NamespacedRoleResponse(response ReadRbacAuthor return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadRbacAuthorizationV1NamespacedRoleBindingResponse(response ReadRbacAuthorizationV1NamespacedRoleBindingRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIRbacV1RoleBinding: @@ -5668,6 +5914,7 @@ func encodeReadRbacAuthorizationV1NamespacedRoleBindingResponse(response ReadRba return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadSchedulingV1PriorityClassResponse(response ReadSchedulingV1PriorityClassRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPISchedulingV1PriorityClass: @@ -5691,6 +5938,7 @@ func encodeReadSchedulingV1PriorityClassResponse(response ReadSchedulingV1Priori return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadStorageV1CSIDriverResponse(response ReadStorageV1CSIDriverRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIStorageV1CSIDriver: @@ -5714,6 +5962,7 @@ func encodeReadStorageV1CSIDriverResponse(response ReadStorageV1CSIDriverRes, w return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadStorageV1CSINodeResponse(response ReadStorageV1CSINodeRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIStorageV1CSINode: @@ -5737,6 +5986,7 @@ func encodeReadStorageV1CSINodeResponse(response ReadStorageV1CSINodeRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadStorageV1StorageClassResponse(response ReadStorageV1StorageClassRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIStorageV1StorageClass: @@ -5760,6 +6010,7 @@ func encodeReadStorageV1StorageClassResponse(response ReadStorageV1StorageClassR return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadStorageV1VolumeAttachmentResponse(response ReadStorageV1VolumeAttachmentRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIStorageV1VolumeAttachment: @@ -5783,6 +6034,7 @@ func encodeReadStorageV1VolumeAttachmentResponse(response ReadStorageV1VolumeAtt return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadStorageV1VolumeAttachmentStatusResponse(response ReadStorageV1VolumeAttachmentStatusRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIStorageV1VolumeAttachment: @@ -5806,6 +6058,7 @@ func encodeReadStorageV1VolumeAttachmentStatusResponse(response ReadStorageV1Vol return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadStorageV1alpha1NamespacedCSIStorageCapacityResponse(response ReadStorageV1alpha1NamespacedCSIStorageCapacityRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIStorageV1alpha1CSIStorageCapacity: @@ -5829,6 +6082,7 @@ func encodeReadStorageV1alpha1NamespacedCSIStorageCapacityResponse(response Read return errors.Errorf("unexpected response type: %T", response) } } + func encodeReadStorageV1beta1NamespacedCSIStorageCapacityResponse(response ReadStorageV1beta1NamespacedCSIStorageCapacityRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sAPIStorageV1beta1CSIStorageCapacity: @@ -5852,6 +6106,7 @@ func encodeReadStorageV1beta1NamespacedCSIStorageCapacityResponse(response ReadS return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchAdmissionregistrationV1MutatingWebhookConfigurationResponse(response WatchAdmissionregistrationV1MutatingWebhookConfigurationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -5875,6 +6130,7 @@ func encodeWatchAdmissionregistrationV1MutatingWebhookConfigurationResponse(resp return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchAdmissionregistrationV1MutatingWebhookConfigurationListResponse(response WatchAdmissionregistrationV1MutatingWebhookConfigurationListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -5898,6 +6154,7 @@ func encodeWatchAdmissionregistrationV1MutatingWebhookConfigurationListResponse( return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchAdmissionregistrationV1ValidatingWebhookConfigurationResponse(response WatchAdmissionregistrationV1ValidatingWebhookConfigurationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -5921,6 +6178,7 @@ func encodeWatchAdmissionregistrationV1ValidatingWebhookConfigurationResponse(re return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchAdmissionregistrationV1ValidatingWebhookConfigurationListResponse(response WatchAdmissionregistrationV1ValidatingWebhookConfigurationListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -5944,6 +6202,7 @@ func encodeWatchAdmissionregistrationV1ValidatingWebhookConfigurationListRespons return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchApiextensionsV1CustomResourceDefinitionResponse(response WatchApiextensionsV1CustomResourceDefinitionRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -5967,6 +6226,7 @@ func encodeWatchApiextensionsV1CustomResourceDefinitionResponse(response WatchAp return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchApiextensionsV1CustomResourceDefinitionListResponse(response WatchApiextensionsV1CustomResourceDefinitionListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -5990,6 +6250,7 @@ func encodeWatchApiextensionsV1CustomResourceDefinitionListResponse(response Wat return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchApiregistrationV1APIServiceResponse(response WatchApiregistrationV1APIServiceRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6013,6 +6274,7 @@ func encodeWatchApiregistrationV1APIServiceResponse(response WatchApiregistratio return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchApiregistrationV1APIServiceListResponse(response WatchApiregistrationV1APIServiceListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6036,6 +6298,7 @@ func encodeWatchApiregistrationV1APIServiceListResponse(response WatchApiregistr return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchAppsV1ControllerRevisionListForAllNamespacesResponse(response WatchAppsV1ControllerRevisionListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6059,6 +6322,7 @@ func encodeWatchAppsV1ControllerRevisionListForAllNamespacesResponse(response Wa return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchAppsV1DaemonSetListForAllNamespacesResponse(response WatchAppsV1DaemonSetListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6082,6 +6346,7 @@ func encodeWatchAppsV1DaemonSetListForAllNamespacesResponse(response WatchAppsV1 return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchAppsV1DeploymentListForAllNamespacesResponse(response WatchAppsV1DeploymentListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6105,6 +6370,7 @@ func encodeWatchAppsV1DeploymentListForAllNamespacesResponse(response WatchAppsV return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchAppsV1NamespacedControllerRevisionResponse(response WatchAppsV1NamespacedControllerRevisionRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6128,6 +6394,7 @@ func encodeWatchAppsV1NamespacedControllerRevisionResponse(response WatchAppsV1N return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchAppsV1NamespacedControllerRevisionListResponse(response WatchAppsV1NamespacedControllerRevisionListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6151,6 +6418,7 @@ func encodeWatchAppsV1NamespacedControllerRevisionListResponse(response WatchApp return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchAppsV1NamespacedDaemonSetResponse(response WatchAppsV1NamespacedDaemonSetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6174,6 +6442,7 @@ func encodeWatchAppsV1NamespacedDaemonSetResponse(response WatchAppsV1Namespaced return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchAppsV1NamespacedDaemonSetListResponse(response WatchAppsV1NamespacedDaemonSetListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6197,6 +6466,7 @@ func encodeWatchAppsV1NamespacedDaemonSetListResponse(response WatchAppsV1Namesp return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchAppsV1NamespacedDeploymentResponse(response WatchAppsV1NamespacedDeploymentRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6220,6 +6490,7 @@ func encodeWatchAppsV1NamespacedDeploymentResponse(response WatchAppsV1Namespace return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchAppsV1NamespacedDeploymentListResponse(response WatchAppsV1NamespacedDeploymentListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6243,6 +6514,7 @@ func encodeWatchAppsV1NamespacedDeploymentListResponse(response WatchAppsV1Names return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchAppsV1NamespacedReplicaSetResponse(response WatchAppsV1NamespacedReplicaSetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6266,6 +6538,7 @@ func encodeWatchAppsV1NamespacedReplicaSetResponse(response WatchAppsV1Namespace return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchAppsV1NamespacedReplicaSetListResponse(response WatchAppsV1NamespacedReplicaSetListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6289,6 +6562,7 @@ func encodeWatchAppsV1NamespacedReplicaSetListResponse(response WatchAppsV1Names return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchAppsV1NamespacedStatefulSetResponse(response WatchAppsV1NamespacedStatefulSetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6312,6 +6586,7 @@ func encodeWatchAppsV1NamespacedStatefulSetResponse(response WatchAppsV1Namespac return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchAppsV1NamespacedStatefulSetListResponse(response WatchAppsV1NamespacedStatefulSetListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6335,6 +6610,7 @@ func encodeWatchAppsV1NamespacedStatefulSetListResponse(response WatchAppsV1Name return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchAppsV1ReplicaSetListForAllNamespacesResponse(response WatchAppsV1ReplicaSetListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6358,6 +6634,7 @@ func encodeWatchAppsV1ReplicaSetListForAllNamespacesResponse(response WatchAppsV return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchAppsV1StatefulSetListForAllNamespacesResponse(response WatchAppsV1StatefulSetListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6381,6 +6658,7 @@ func encodeWatchAppsV1StatefulSetListForAllNamespacesResponse(response WatchApps return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchAutoscalingV1HorizontalPodAutoscalerListForAllNamespacesResponse(response WatchAutoscalingV1HorizontalPodAutoscalerListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6404,6 +6682,7 @@ func encodeWatchAutoscalingV1HorizontalPodAutoscalerListForAllNamespacesResponse return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchAutoscalingV1NamespacedHorizontalPodAutoscalerResponse(response WatchAutoscalingV1NamespacedHorizontalPodAutoscalerRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6427,6 +6706,7 @@ func encodeWatchAutoscalingV1NamespacedHorizontalPodAutoscalerResponse(response return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchAutoscalingV1NamespacedHorizontalPodAutoscalerListResponse(response WatchAutoscalingV1NamespacedHorizontalPodAutoscalerListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6450,6 +6730,7 @@ func encodeWatchAutoscalingV1NamespacedHorizontalPodAutoscalerListResponse(respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchAutoscalingV2beta1HorizontalPodAutoscalerListForAllNamespacesResponse(response WatchAutoscalingV2beta1HorizontalPodAutoscalerListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6473,6 +6754,7 @@ func encodeWatchAutoscalingV2beta1HorizontalPodAutoscalerListForAllNamespacesRes return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerResponse(response WatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6496,6 +6778,7 @@ func encodeWatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerResponse(resp return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerListResponse(response WatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6519,6 +6802,7 @@ func encodeWatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerListResponse( return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchAutoscalingV2beta2HorizontalPodAutoscalerListForAllNamespacesResponse(response WatchAutoscalingV2beta2HorizontalPodAutoscalerListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6542,6 +6826,7 @@ func encodeWatchAutoscalingV2beta2HorizontalPodAutoscalerListForAllNamespacesRes return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerResponse(response WatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6565,6 +6850,7 @@ func encodeWatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerResponse(resp return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerListResponse(response WatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6588,6 +6874,7 @@ func encodeWatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerListResponse( return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchBatchV1CronJobListForAllNamespacesResponse(response WatchBatchV1CronJobListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6611,6 +6898,7 @@ func encodeWatchBatchV1CronJobListForAllNamespacesResponse(response WatchBatchV1 return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchBatchV1JobListForAllNamespacesResponse(response WatchBatchV1JobListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6634,6 +6922,7 @@ func encodeWatchBatchV1JobListForAllNamespacesResponse(response WatchBatchV1JobL return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchBatchV1NamespacedCronJobResponse(response WatchBatchV1NamespacedCronJobRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6657,6 +6946,7 @@ func encodeWatchBatchV1NamespacedCronJobResponse(response WatchBatchV1Namespaced return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchBatchV1NamespacedCronJobListResponse(response WatchBatchV1NamespacedCronJobListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6680,6 +6970,7 @@ func encodeWatchBatchV1NamespacedCronJobListResponse(response WatchBatchV1Namesp return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchBatchV1NamespacedJobResponse(response WatchBatchV1NamespacedJobRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6703,6 +6994,7 @@ func encodeWatchBatchV1NamespacedJobResponse(response WatchBatchV1NamespacedJobR return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchBatchV1NamespacedJobListResponse(response WatchBatchV1NamespacedJobListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6726,6 +7018,7 @@ func encodeWatchBatchV1NamespacedJobListResponse(response WatchBatchV1Namespaced return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchBatchV1beta1CronJobListForAllNamespacesResponse(response WatchBatchV1beta1CronJobListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6749,6 +7042,7 @@ func encodeWatchBatchV1beta1CronJobListForAllNamespacesResponse(response WatchBa return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchBatchV1beta1NamespacedCronJobResponse(response WatchBatchV1beta1NamespacedCronJobRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6772,6 +7066,7 @@ func encodeWatchBatchV1beta1NamespacedCronJobResponse(response WatchBatchV1beta1 return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchBatchV1beta1NamespacedCronJobListResponse(response WatchBatchV1beta1NamespacedCronJobListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6795,6 +7090,7 @@ func encodeWatchBatchV1beta1NamespacedCronJobListResponse(response WatchBatchV1b return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCertificatesV1CertificateSigningRequestResponse(response WatchCertificatesV1CertificateSigningRequestRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6818,6 +7114,7 @@ func encodeWatchCertificatesV1CertificateSigningRequestResponse(response WatchCe return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCertificatesV1CertificateSigningRequestListResponse(response WatchCertificatesV1CertificateSigningRequestListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6841,6 +7138,7 @@ func encodeWatchCertificatesV1CertificateSigningRequestListResponse(response Wat return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoordinationV1LeaseListForAllNamespacesResponse(response WatchCoordinationV1LeaseListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6864,6 +7162,7 @@ func encodeWatchCoordinationV1LeaseListForAllNamespacesResponse(response WatchCo return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoordinationV1NamespacedLeaseResponse(response WatchCoordinationV1NamespacedLeaseRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6887,6 +7186,7 @@ func encodeWatchCoordinationV1NamespacedLeaseResponse(response WatchCoordination return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoordinationV1NamespacedLeaseListResponse(response WatchCoordinationV1NamespacedLeaseListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6910,6 +7210,7 @@ func encodeWatchCoordinationV1NamespacedLeaseListResponse(response WatchCoordina return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1ConfigMapListForAllNamespacesResponse(response WatchCoreV1ConfigMapListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6933,6 +7234,7 @@ func encodeWatchCoreV1ConfigMapListForAllNamespacesResponse(response WatchCoreV1 return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1EndpointsListForAllNamespacesResponse(response WatchCoreV1EndpointsListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6956,6 +7258,7 @@ func encodeWatchCoreV1EndpointsListForAllNamespacesResponse(response WatchCoreV1 return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1EventListForAllNamespacesResponse(response WatchCoreV1EventListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -6979,6 +7282,7 @@ func encodeWatchCoreV1EventListForAllNamespacesResponse(response WatchCoreV1Even return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1LimitRangeListForAllNamespacesResponse(response WatchCoreV1LimitRangeListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7002,6 +7306,7 @@ func encodeWatchCoreV1LimitRangeListForAllNamespacesResponse(response WatchCoreV return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1NamespaceResponse(response WatchCoreV1NamespaceRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7025,6 +7330,7 @@ func encodeWatchCoreV1NamespaceResponse(response WatchCoreV1NamespaceRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1NamespaceListResponse(response WatchCoreV1NamespaceListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7048,6 +7354,7 @@ func encodeWatchCoreV1NamespaceListResponse(response WatchCoreV1NamespaceListRes return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1NamespacedConfigMapResponse(response WatchCoreV1NamespacedConfigMapRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7071,6 +7378,7 @@ func encodeWatchCoreV1NamespacedConfigMapResponse(response WatchCoreV1Namespaced return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1NamespacedConfigMapListResponse(response WatchCoreV1NamespacedConfigMapListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7094,6 +7402,7 @@ func encodeWatchCoreV1NamespacedConfigMapListResponse(response WatchCoreV1Namesp return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1NamespacedEndpointsResponse(response WatchCoreV1NamespacedEndpointsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7117,6 +7426,7 @@ func encodeWatchCoreV1NamespacedEndpointsResponse(response WatchCoreV1Namespaced return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1NamespacedEndpointsListResponse(response WatchCoreV1NamespacedEndpointsListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7140,6 +7450,7 @@ func encodeWatchCoreV1NamespacedEndpointsListResponse(response WatchCoreV1Namesp return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1NamespacedEventResponse(response WatchCoreV1NamespacedEventRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7163,6 +7474,7 @@ func encodeWatchCoreV1NamespacedEventResponse(response WatchCoreV1NamespacedEven return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1NamespacedEventListResponse(response WatchCoreV1NamespacedEventListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7186,6 +7498,7 @@ func encodeWatchCoreV1NamespacedEventListResponse(response WatchCoreV1Namespaced return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1NamespacedLimitRangeResponse(response WatchCoreV1NamespacedLimitRangeRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7209,6 +7522,7 @@ func encodeWatchCoreV1NamespacedLimitRangeResponse(response WatchCoreV1Namespace return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1NamespacedLimitRangeListResponse(response WatchCoreV1NamespacedLimitRangeListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7232,6 +7546,7 @@ func encodeWatchCoreV1NamespacedLimitRangeListResponse(response WatchCoreV1Names return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1NamespacedPersistentVolumeClaimResponse(response WatchCoreV1NamespacedPersistentVolumeClaimRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7255,6 +7570,7 @@ func encodeWatchCoreV1NamespacedPersistentVolumeClaimResponse(response WatchCore return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1NamespacedPersistentVolumeClaimListResponse(response WatchCoreV1NamespacedPersistentVolumeClaimListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7278,6 +7594,7 @@ func encodeWatchCoreV1NamespacedPersistentVolumeClaimListResponse(response Watch return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1NamespacedPodResponse(response WatchCoreV1NamespacedPodRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7301,6 +7618,7 @@ func encodeWatchCoreV1NamespacedPodResponse(response WatchCoreV1NamespacedPodRes return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1NamespacedPodListResponse(response WatchCoreV1NamespacedPodListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7324,6 +7642,7 @@ func encodeWatchCoreV1NamespacedPodListResponse(response WatchCoreV1NamespacedPo return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1NamespacedPodTemplateResponse(response WatchCoreV1NamespacedPodTemplateRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7347,6 +7666,7 @@ func encodeWatchCoreV1NamespacedPodTemplateResponse(response WatchCoreV1Namespac return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1NamespacedPodTemplateListResponse(response WatchCoreV1NamespacedPodTemplateListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7370,6 +7690,7 @@ func encodeWatchCoreV1NamespacedPodTemplateListResponse(response WatchCoreV1Name return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1NamespacedReplicationControllerResponse(response WatchCoreV1NamespacedReplicationControllerRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7393,6 +7714,7 @@ func encodeWatchCoreV1NamespacedReplicationControllerResponse(response WatchCore return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1NamespacedReplicationControllerListResponse(response WatchCoreV1NamespacedReplicationControllerListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7416,6 +7738,7 @@ func encodeWatchCoreV1NamespacedReplicationControllerListResponse(response Watch return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1NamespacedResourceQuotaResponse(response WatchCoreV1NamespacedResourceQuotaRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7439,6 +7762,7 @@ func encodeWatchCoreV1NamespacedResourceQuotaResponse(response WatchCoreV1Namesp return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1NamespacedResourceQuotaListResponse(response WatchCoreV1NamespacedResourceQuotaListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7462,6 +7786,7 @@ func encodeWatchCoreV1NamespacedResourceQuotaListResponse(response WatchCoreV1Na return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1NamespacedSecretResponse(response WatchCoreV1NamespacedSecretRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7485,6 +7810,7 @@ func encodeWatchCoreV1NamespacedSecretResponse(response WatchCoreV1NamespacedSec return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1NamespacedSecretListResponse(response WatchCoreV1NamespacedSecretListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7508,6 +7834,7 @@ func encodeWatchCoreV1NamespacedSecretListResponse(response WatchCoreV1Namespace return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1NamespacedServiceResponse(response WatchCoreV1NamespacedServiceRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7531,6 +7858,7 @@ func encodeWatchCoreV1NamespacedServiceResponse(response WatchCoreV1NamespacedSe return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1NamespacedServiceAccountResponse(response WatchCoreV1NamespacedServiceAccountRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7554,6 +7882,7 @@ func encodeWatchCoreV1NamespacedServiceAccountResponse(response WatchCoreV1Names return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1NamespacedServiceAccountListResponse(response WatchCoreV1NamespacedServiceAccountListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7577,6 +7906,7 @@ func encodeWatchCoreV1NamespacedServiceAccountListResponse(response WatchCoreV1N return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1NamespacedServiceListResponse(response WatchCoreV1NamespacedServiceListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7600,6 +7930,7 @@ func encodeWatchCoreV1NamespacedServiceListResponse(response WatchCoreV1Namespac return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1NodeResponse(response WatchCoreV1NodeRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7623,6 +7954,7 @@ func encodeWatchCoreV1NodeResponse(response WatchCoreV1NodeRes, w http.ResponseW return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1NodeListResponse(response WatchCoreV1NodeListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7646,6 +7978,7 @@ func encodeWatchCoreV1NodeListResponse(response WatchCoreV1NodeListRes, w http.R return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1PersistentVolumeResponse(response WatchCoreV1PersistentVolumeRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7669,6 +8002,7 @@ func encodeWatchCoreV1PersistentVolumeResponse(response WatchCoreV1PersistentVol return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1PersistentVolumeClaimListForAllNamespacesResponse(response WatchCoreV1PersistentVolumeClaimListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7692,6 +8026,7 @@ func encodeWatchCoreV1PersistentVolumeClaimListForAllNamespacesResponse(response return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1PersistentVolumeListResponse(response WatchCoreV1PersistentVolumeListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7715,6 +8050,7 @@ func encodeWatchCoreV1PersistentVolumeListResponse(response WatchCoreV1Persisten return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1PodListForAllNamespacesResponse(response WatchCoreV1PodListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7738,6 +8074,7 @@ func encodeWatchCoreV1PodListForAllNamespacesResponse(response WatchCoreV1PodLis return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1PodTemplateListForAllNamespacesResponse(response WatchCoreV1PodTemplateListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7761,6 +8098,7 @@ func encodeWatchCoreV1PodTemplateListForAllNamespacesResponse(response WatchCore return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1ReplicationControllerListForAllNamespacesResponse(response WatchCoreV1ReplicationControllerListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7784,6 +8122,7 @@ func encodeWatchCoreV1ReplicationControllerListForAllNamespacesResponse(response return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1ResourceQuotaListForAllNamespacesResponse(response WatchCoreV1ResourceQuotaListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7807,6 +8146,7 @@ func encodeWatchCoreV1ResourceQuotaListForAllNamespacesResponse(response WatchCo return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1SecretListForAllNamespacesResponse(response WatchCoreV1SecretListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7830,6 +8170,7 @@ func encodeWatchCoreV1SecretListForAllNamespacesResponse(response WatchCoreV1Sec return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1ServiceAccountListForAllNamespacesResponse(response WatchCoreV1ServiceAccountListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7853,6 +8194,7 @@ func encodeWatchCoreV1ServiceAccountListForAllNamespacesResponse(response WatchC return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchCoreV1ServiceListForAllNamespacesResponse(response WatchCoreV1ServiceListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7876,6 +8218,7 @@ func encodeWatchCoreV1ServiceListForAllNamespacesResponse(response WatchCoreV1Se return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchDiscoveryV1EndpointSliceListForAllNamespacesResponse(response WatchDiscoveryV1EndpointSliceListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7899,6 +8242,7 @@ func encodeWatchDiscoveryV1EndpointSliceListForAllNamespacesResponse(response Wa return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchDiscoveryV1NamespacedEndpointSliceResponse(response WatchDiscoveryV1NamespacedEndpointSliceRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7922,6 +8266,7 @@ func encodeWatchDiscoveryV1NamespacedEndpointSliceResponse(response WatchDiscove return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchDiscoveryV1NamespacedEndpointSliceListResponse(response WatchDiscoveryV1NamespacedEndpointSliceListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7945,6 +8290,7 @@ func encodeWatchDiscoveryV1NamespacedEndpointSliceListResponse(response WatchDis return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchDiscoveryV1beta1EndpointSliceListForAllNamespacesResponse(response WatchDiscoveryV1beta1EndpointSliceListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7968,6 +8314,7 @@ func encodeWatchDiscoveryV1beta1EndpointSliceListForAllNamespacesResponse(respon return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchDiscoveryV1beta1NamespacedEndpointSliceResponse(response WatchDiscoveryV1beta1NamespacedEndpointSliceRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -7991,6 +8338,7 @@ func encodeWatchDiscoveryV1beta1NamespacedEndpointSliceResponse(response WatchDi return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchDiscoveryV1beta1NamespacedEndpointSliceListResponse(response WatchDiscoveryV1beta1NamespacedEndpointSliceListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8014,6 +8362,7 @@ func encodeWatchDiscoveryV1beta1NamespacedEndpointSliceListResponse(response Wat return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchEventsV1EventListForAllNamespacesResponse(response WatchEventsV1EventListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8037,6 +8386,7 @@ func encodeWatchEventsV1EventListForAllNamespacesResponse(response WatchEventsV1 return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchEventsV1NamespacedEventResponse(response WatchEventsV1NamespacedEventRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8060,6 +8410,7 @@ func encodeWatchEventsV1NamespacedEventResponse(response WatchEventsV1Namespaced return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchEventsV1NamespacedEventListResponse(response WatchEventsV1NamespacedEventListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8083,6 +8434,7 @@ func encodeWatchEventsV1NamespacedEventListResponse(response WatchEventsV1Namesp return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchEventsV1beta1EventListForAllNamespacesResponse(response WatchEventsV1beta1EventListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8106,6 +8458,7 @@ func encodeWatchEventsV1beta1EventListForAllNamespacesResponse(response WatchEve return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchEventsV1beta1NamespacedEventResponse(response WatchEventsV1beta1NamespacedEventRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8129,6 +8482,7 @@ func encodeWatchEventsV1beta1NamespacedEventResponse(response WatchEventsV1beta1 return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchEventsV1beta1NamespacedEventListResponse(response WatchEventsV1beta1NamespacedEventListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8152,6 +8506,7 @@ func encodeWatchEventsV1beta1NamespacedEventListResponse(response WatchEventsV1b return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchFlowcontrolApiserverV1beta1FlowSchemaResponse(response WatchFlowcontrolApiserverV1beta1FlowSchemaRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8175,6 +8530,7 @@ func encodeWatchFlowcontrolApiserverV1beta1FlowSchemaResponse(response WatchFlow return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchFlowcontrolApiserverV1beta1FlowSchemaListResponse(response WatchFlowcontrolApiserverV1beta1FlowSchemaListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8198,6 +8554,7 @@ func encodeWatchFlowcontrolApiserverV1beta1FlowSchemaListResponse(response Watch return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchFlowcontrolApiserverV1beta1PriorityLevelConfigurationResponse(response WatchFlowcontrolApiserverV1beta1PriorityLevelConfigurationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8221,6 +8578,7 @@ func encodeWatchFlowcontrolApiserverV1beta1PriorityLevelConfigurationResponse(re return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchFlowcontrolApiserverV1beta1PriorityLevelConfigurationListResponse(response WatchFlowcontrolApiserverV1beta1PriorityLevelConfigurationListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8244,6 +8602,7 @@ func encodeWatchFlowcontrolApiserverV1beta1PriorityLevelConfigurationListRespons return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchFlowcontrolApiserverV1beta2FlowSchemaResponse(response WatchFlowcontrolApiserverV1beta2FlowSchemaRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8267,6 +8626,7 @@ func encodeWatchFlowcontrolApiserverV1beta2FlowSchemaResponse(response WatchFlow return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchFlowcontrolApiserverV1beta2FlowSchemaListResponse(response WatchFlowcontrolApiserverV1beta2FlowSchemaListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8290,6 +8650,7 @@ func encodeWatchFlowcontrolApiserverV1beta2FlowSchemaListResponse(response Watch return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchFlowcontrolApiserverV1beta2PriorityLevelConfigurationResponse(response WatchFlowcontrolApiserverV1beta2PriorityLevelConfigurationRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8313,6 +8674,7 @@ func encodeWatchFlowcontrolApiserverV1beta2PriorityLevelConfigurationResponse(re return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchFlowcontrolApiserverV1beta2PriorityLevelConfigurationListResponse(response WatchFlowcontrolApiserverV1beta2PriorityLevelConfigurationListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8336,6 +8698,7 @@ func encodeWatchFlowcontrolApiserverV1beta2PriorityLevelConfigurationListRespons return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchInternalApiserverV1alpha1StorageVersionResponse(response WatchInternalApiserverV1alpha1StorageVersionRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8359,6 +8722,7 @@ func encodeWatchInternalApiserverV1alpha1StorageVersionResponse(response WatchIn return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchInternalApiserverV1alpha1StorageVersionListResponse(response WatchInternalApiserverV1alpha1StorageVersionListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8382,6 +8746,7 @@ func encodeWatchInternalApiserverV1alpha1StorageVersionListResponse(response Wat return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchNetworkingV1IngressClassResponse(response WatchNetworkingV1IngressClassRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8405,6 +8770,7 @@ func encodeWatchNetworkingV1IngressClassResponse(response WatchNetworkingV1Ingre return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchNetworkingV1IngressClassListResponse(response WatchNetworkingV1IngressClassListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8428,6 +8794,7 @@ func encodeWatchNetworkingV1IngressClassListResponse(response WatchNetworkingV1I return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchNetworkingV1IngressListForAllNamespacesResponse(response WatchNetworkingV1IngressListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8451,6 +8818,7 @@ func encodeWatchNetworkingV1IngressListForAllNamespacesResponse(response WatchNe return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchNetworkingV1NamespacedIngressResponse(response WatchNetworkingV1NamespacedIngressRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8474,6 +8842,7 @@ func encodeWatchNetworkingV1NamespacedIngressResponse(response WatchNetworkingV1 return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchNetworkingV1NamespacedIngressListResponse(response WatchNetworkingV1NamespacedIngressListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8497,6 +8866,7 @@ func encodeWatchNetworkingV1NamespacedIngressListResponse(response WatchNetworki return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchNetworkingV1NamespacedNetworkPolicyResponse(response WatchNetworkingV1NamespacedNetworkPolicyRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8520,6 +8890,7 @@ func encodeWatchNetworkingV1NamespacedNetworkPolicyResponse(response WatchNetwor return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchNetworkingV1NamespacedNetworkPolicyListResponse(response WatchNetworkingV1NamespacedNetworkPolicyListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8543,6 +8914,7 @@ func encodeWatchNetworkingV1NamespacedNetworkPolicyListResponse(response WatchNe return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchNetworkingV1NetworkPolicyListForAllNamespacesResponse(response WatchNetworkingV1NetworkPolicyListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8566,6 +8938,7 @@ func encodeWatchNetworkingV1NetworkPolicyListForAllNamespacesResponse(response W return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchNodeV1RuntimeClassResponse(response WatchNodeV1RuntimeClassRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8589,6 +8962,7 @@ func encodeWatchNodeV1RuntimeClassResponse(response WatchNodeV1RuntimeClassRes, return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchNodeV1RuntimeClassListResponse(response WatchNodeV1RuntimeClassListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8612,6 +8986,7 @@ func encodeWatchNodeV1RuntimeClassListResponse(response WatchNodeV1RuntimeClassL return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchNodeV1alpha1RuntimeClassResponse(response WatchNodeV1alpha1RuntimeClassRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8635,6 +9010,7 @@ func encodeWatchNodeV1alpha1RuntimeClassResponse(response WatchNodeV1alpha1Runti return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchNodeV1alpha1RuntimeClassListResponse(response WatchNodeV1alpha1RuntimeClassListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8658,6 +9034,7 @@ func encodeWatchNodeV1alpha1RuntimeClassListResponse(response WatchNodeV1alpha1R return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchNodeV1beta1RuntimeClassResponse(response WatchNodeV1beta1RuntimeClassRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8681,6 +9058,7 @@ func encodeWatchNodeV1beta1RuntimeClassResponse(response WatchNodeV1beta1Runtime return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchNodeV1beta1RuntimeClassListResponse(response WatchNodeV1beta1RuntimeClassListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8704,6 +9082,7 @@ func encodeWatchNodeV1beta1RuntimeClassListResponse(response WatchNodeV1beta1Run return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchPolicyV1NamespacedPodDisruptionBudgetResponse(response WatchPolicyV1NamespacedPodDisruptionBudgetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8727,6 +9106,7 @@ func encodeWatchPolicyV1NamespacedPodDisruptionBudgetResponse(response WatchPoli return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchPolicyV1NamespacedPodDisruptionBudgetListResponse(response WatchPolicyV1NamespacedPodDisruptionBudgetListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8750,6 +9130,7 @@ func encodeWatchPolicyV1NamespacedPodDisruptionBudgetListResponse(response Watch return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchPolicyV1PodDisruptionBudgetListForAllNamespacesResponse(response WatchPolicyV1PodDisruptionBudgetListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8773,6 +9154,7 @@ func encodeWatchPolicyV1PodDisruptionBudgetListForAllNamespacesResponse(response return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchPolicyV1beta1NamespacedPodDisruptionBudgetResponse(response WatchPolicyV1beta1NamespacedPodDisruptionBudgetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8796,6 +9178,7 @@ func encodeWatchPolicyV1beta1NamespacedPodDisruptionBudgetResponse(response Watc return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchPolicyV1beta1NamespacedPodDisruptionBudgetListResponse(response WatchPolicyV1beta1NamespacedPodDisruptionBudgetListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8819,6 +9202,7 @@ func encodeWatchPolicyV1beta1NamespacedPodDisruptionBudgetListResponse(response return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchPolicyV1beta1PodDisruptionBudgetListForAllNamespacesResponse(response WatchPolicyV1beta1PodDisruptionBudgetListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8842,6 +9226,7 @@ func encodeWatchPolicyV1beta1PodDisruptionBudgetListForAllNamespacesResponse(res return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchPolicyV1beta1PodSecurityPolicyResponse(response WatchPolicyV1beta1PodSecurityPolicyRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8865,6 +9250,7 @@ func encodeWatchPolicyV1beta1PodSecurityPolicyResponse(response WatchPolicyV1bet return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchPolicyV1beta1PodSecurityPolicyListResponse(response WatchPolicyV1beta1PodSecurityPolicyListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8888,6 +9274,7 @@ func encodeWatchPolicyV1beta1PodSecurityPolicyListResponse(response WatchPolicyV return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchRbacAuthorizationV1ClusterRoleResponse(response WatchRbacAuthorizationV1ClusterRoleRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8911,6 +9298,7 @@ func encodeWatchRbacAuthorizationV1ClusterRoleResponse(response WatchRbacAuthori return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchRbacAuthorizationV1ClusterRoleBindingResponse(response WatchRbacAuthorizationV1ClusterRoleBindingRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8934,6 +9322,7 @@ func encodeWatchRbacAuthorizationV1ClusterRoleBindingResponse(response WatchRbac return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchRbacAuthorizationV1ClusterRoleBindingListResponse(response WatchRbacAuthorizationV1ClusterRoleBindingListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8957,6 +9346,7 @@ func encodeWatchRbacAuthorizationV1ClusterRoleBindingListResponse(response Watch return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchRbacAuthorizationV1ClusterRoleListResponse(response WatchRbacAuthorizationV1ClusterRoleListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -8980,6 +9370,7 @@ func encodeWatchRbacAuthorizationV1ClusterRoleListResponse(response WatchRbacAut return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchRbacAuthorizationV1NamespacedRoleResponse(response WatchRbacAuthorizationV1NamespacedRoleRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -9003,6 +9394,7 @@ func encodeWatchRbacAuthorizationV1NamespacedRoleResponse(response WatchRbacAuth return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchRbacAuthorizationV1NamespacedRoleBindingResponse(response WatchRbacAuthorizationV1NamespacedRoleBindingRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -9026,6 +9418,7 @@ func encodeWatchRbacAuthorizationV1NamespacedRoleBindingResponse(response WatchR return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchRbacAuthorizationV1NamespacedRoleBindingListResponse(response WatchRbacAuthorizationV1NamespacedRoleBindingListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -9049,6 +9442,7 @@ func encodeWatchRbacAuthorizationV1NamespacedRoleBindingListResponse(response Wa return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchRbacAuthorizationV1NamespacedRoleListResponse(response WatchRbacAuthorizationV1NamespacedRoleListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -9072,6 +9466,7 @@ func encodeWatchRbacAuthorizationV1NamespacedRoleListResponse(response WatchRbac return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchRbacAuthorizationV1RoleBindingListForAllNamespacesResponse(response WatchRbacAuthorizationV1RoleBindingListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -9095,6 +9490,7 @@ func encodeWatchRbacAuthorizationV1RoleBindingListForAllNamespacesResponse(respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchRbacAuthorizationV1RoleListForAllNamespacesResponse(response WatchRbacAuthorizationV1RoleListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -9118,6 +9514,7 @@ func encodeWatchRbacAuthorizationV1RoleListForAllNamespacesResponse(response Wat return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchSchedulingV1PriorityClassResponse(response WatchSchedulingV1PriorityClassRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -9141,6 +9538,7 @@ func encodeWatchSchedulingV1PriorityClassResponse(response WatchSchedulingV1Prio return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchSchedulingV1PriorityClassListResponse(response WatchSchedulingV1PriorityClassListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -9164,6 +9562,7 @@ func encodeWatchSchedulingV1PriorityClassListResponse(response WatchSchedulingV1 return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchStorageV1CSIDriverResponse(response WatchStorageV1CSIDriverRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -9187,6 +9586,7 @@ func encodeWatchStorageV1CSIDriverResponse(response WatchStorageV1CSIDriverRes, return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchStorageV1CSIDriverListResponse(response WatchStorageV1CSIDriverListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -9210,6 +9610,7 @@ func encodeWatchStorageV1CSIDriverListResponse(response WatchStorageV1CSIDriverL return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchStorageV1CSINodeResponse(response WatchStorageV1CSINodeRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -9233,6 +9634,7 @@ func encodeWatchStorageV1CSINodeResponse(response WatchStorageV1CSINodeRes, w ht return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchStorageV1CSINodeListResponse(response WatchStorageV1CSINodeListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -9256,6 +9658,7 @@ func encodeWatchStorageV1CSINodeListResponse(response WatchStorageV1CSINodeListR return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchStorageV1StorageClassResponse(response WatchStorageV1StorageClassRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -9279,6 +9682,7 @@ func encodeWatchStorageV1StorageClassResponse(response WatchStorageV1StorageClas return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchStorageV1StorageClassListResponse(response WatchStorageV1StorageClassListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -9302,6 +9706,7 @@ func encodeWatchStorageV1StorageClassListResponse(response WatchStorageV1Storage return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchStorageV1VolumeAttachmentResponse(response WatchStorageV1VolumeAttachmentRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -9325,6 +9730,7 @@ func encodeWatchStorageV1VolumeAttachmentResponse(response WatchStorageV1VolumeA return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchStorageV1VolumeAttachmentListResponse(response WatchStorageV1VolumeAttachmentListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -9348,6 +9754,7 @@ func encodeWatchStorageV1VolumeAttachmentListResponse(response WatchStorageV1Vol return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchStorageV1alpha1CSIStorageCapacityListForAllNamespacesResponse(response WatchStorageV1alpha1CSIStorageCapacityListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -9371,6 +9778,7 @@ func encodeWatchStorageV1alpha1CSIStorageCapacityListForAllNamespacesResponse(re return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchStorageV1alpha1NamespacedCSIStorageCapacityResponse(response WatchStorageV1alpha1NamespacedCSIStorageCapacityRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -9394,6 +9802,7 @@ func encodeWatchStorageV1alpha1NamespacedCSIStorageCapacityResponse(response Wat return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchStorageV1alpha1NamespacedCSIStorageCapacityListResponse(response WatchStorageV1alpha1NamespacedCSIStorageCapacityListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -9417,6 +9826,7 @@ func encodeWatchStorageV1alpha1NamespacedCSIStorageCapacityListResponse(response return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchStorageV1beta1CSIStorageCapacityListForAllNamespacesResponse(response WatchStorageV1beta1CSIStorageCapacityListForAllNamespacesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -9440,6 +9850,7 @@ func encodeWatchStorageV1beta1CSIStorageCapacityListForAllNamespacesResponse(res return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchStorageV1beta1NamespacedCSIStorageCapacityResponse(response WatchStorageV1beta1NamespacedCSIStorageCapacityRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: @@ -9463,6 +9874,7 @@ func encodeWatchStorageV1beta1NamespacedCSIStorageCapacityResponse(response Watc return errors.Errorf("unexpected response type: %T", response) } } + func encodeWatchStorageV1beta1NamespacedCSIStorageCapacityListResponse(response WatchStorageV1beta1NamespacedCSIStorageCapacityListRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IoK8sApimachineryPkgApisMetaV1WatchEvent: diff --git a/examples/ex_k8s/oas_router_gen.go b/examples/ex_k8s/oas_router_gen.go index d7ab3c740..58c66b6f8 100644 --- a/examples/ex_k8s/oas_router_gen.go +++ b/examples/ex_k8s/oas_router_gen.go @@ -7,14 +7,6 @@ import ( "strings" ) -func (s *Server) notFound(w http.ResponseWriter, r *http.Request) { - s.cfg.NotFound(w, r) -} - -func (s *Server) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { - s.cfg.MethodNotAllowed(w, r, allowed) -} - // ServeHTTP serves http request as defined by OpenAPI v3 specification, // calling handler that matches the path or returning not found error. func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { diff --git a/examples/ex_k8s/oas_server_gen.go b/examples/ex_k8s/oas_server_gen.go index 6b1bc1138..2b7476121 100644 --- a/examples/ex_k8s/oas_server_gen.go +++ b/examples/ex_k8s/oas_server_gen.go @@ -4,10 +4,6 @@ package api import ( "context" - - "go.opentelemetry.io/otel/metric/instrument/syncint64" - - "github.com/ogen-go/ogen/otelogen" ) // Handler handles operations described by OpenAPI v3 specification. @@ -2656,29 +2652,18 @@ type Handler interface { type Server struct { h Handler sec SecurityHandler - cfg config - - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + baseServer } // NewServer creates new Server. func NewServer(h Handler, sec SecurityHandler, opts ...Option) (*Server, error) { - s := &Server{ - h: h, - sec: sec, - cfg: newConfig(opts...), - } - var err error - if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { - return nil, err - } - if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { - return nil, err - } - if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + s, err := newConfig(opts...).baseServer() + if err != nil { return nil, err } - return s, nil + return &Server{ + h: h, + sec: sec, + baseServer: s, + }, nil } diff --git a/examples/ex_k8s/oas_unimplemented_gen.go b/examples/ex_k8s/oas_unimplemented_gen.go index bb477e4cd..e8ae04f14 100644 --- a/examples/ex_k8s/oas_unimplemented_gen.go +++ b/examples/ex_k8s/oas_unimplemented_gen.go @@ -8,11 +8,11 @@ import ( ht "github.com/ogen-go/ogen/http" ) -var _ Handler = UnimplementedHandler{} - // UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented. type UnimplementedHandler struct{} +var _ Handler = UnimplementedHandler{} + // GetAPIVersions implements getAPIVersions operation. // // Get available API versions. diff --git a/examples/ex_manga/oas_cfg_gen.go b/examples/ex_manga/oas_cfg_gen.go index 43cd6eec1..d1c81762b 100644 --- a/examples/ex_manga/oas_cfg_gen.go +++ b/examples/ex_manga/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -15,6 +16,13 @@ import ( "github.com/ogen-go/ogen/otelogen" ) +var ( + // Allocate option closure once. + clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) + // Allocate option closure once. + serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) +) + // ErrorHandler is error handler. type ErrorHandler = ogenerrors.ErrorHandler @@ -56,6 +64,57 @@ func newConfig(opts ...Option) config { return cfg } +type baseServer struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (s baseServer) notFound(w http.ResponseWriter, r *http.Request) { + s.cfg.NotFound(w, r) +} + +func (s baseServer) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { + s.cfg.MethodNotAllowed(w, r, allowed) +} + +func (cfg config) baseServer() (s baseServer, err error) { + s = baseServer{cfg: cfg} + if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { + return s, err + } + if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { + return s, err + } + if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + return s, err + } + return s, nil +} + +type baseClient struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (cfg config) baseClient() (c baseClient, err error) { + c = baseClient{cfg: cfg} + if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { + return c, err + } + if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { + return c, err + } + if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + return c, err + } + return c, nil +} + +// Option is config option. type Option interface { apply(*config) } diff --git a/examples/ex_manga/oas_client_gen.go b/examples/ex_manga/oas_client_gen.go index 6bfbfd73e..ec29f8c0d 100644 --- a/examples/ex_manga/oas_client_gen.go +++ b/examples/ex_manga/oas_client_gen.go @@ -10,7 +10,6 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" - "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/conv" @@ -23,16 +22,10 @@ var _ Handler = struct { *Client }{} -// Allocate option closure once. -var clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) - // Client implements OAS client. type Client struct { serverURL *url.URL - cfg config - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + baseClient } // NewClient initializes new Client defined by OAS. @@ -41,20 +34,14 @@ func NewClient(serverURL string, opts ...Option) (*Client, error) { if err != nil { return nil, err } - c := &Client{ - cfg: newConfig(opts...), - serverURL: u, - } - if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { - return nil, err - } - if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { - return nil, err - } - if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + c, err := newConfig(opts...).baseClient() + if err != nil { return nil, err } - return c, nil + return &Client{ + serverURL: u, + baseClient: c, + }, nil } type serverURLKey struct{} diff --git a/examples/ex_manga/oas_handlers_gen.go b/examples/ex_manga/oas_handlers_gen.go index 31a0a58af..19f7b8468 100644 --- a/examples/ex_manga/oas_handlers_gen.go +++ b/examples/ex_manga/oas_handlers_gen.go @@ -16,11 +16,10 @@ import ( "github.com/ogen-go/ogen/otelogen" ) -// Allocate option closure once. -var serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) - // handleGetBookRequest handles getBook operation. // +// Gets metadata of book. +// // GET /api/gallery/{book_id} func (s *Server) handleGetBookRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -115,6 +114,8 @@ func (s *Server) handleGetBookRequest(args [1]string, w http.ResponseWriter, r * // handleGetPageCoverImageRequest handles getPageCoverImage operation. // +// Gets page cover. +// // GET /galleries/{media_id}/cover.{format} func (s *Server) handleGetPageCoverImageRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -210,6 +211,8 @@ func (s *Server) handleGetPageCoverImageRequest(args [2]string, w http.ResponseW // handleGetPageImageRequest handles getPageImage operation. // +// Gets page. +// // GET /galleries/{media_id}/{page}.{format} func (s *Server) handleGetPageImageRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -306,6 +309,8 @@ func (s *Server) handleGetPageImageRequest(args [3]string, w http.ResponseWriter // handleGetPageThumbnailImageRequest handles getPageThumbnailImage operation. // +// Gets page thumbnail. +// // GET /galleries/{media_id}/{page}t.{format} func (s *Server) handleGetPageThumbnailImageRequest(args [3]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -402,6 +407,8 @@ func (s *Server) handleGetPageThumbnailImageRequest(args [3]string, w http.Respo // handleSearchRequest handles search operation. // +// Search for comics. +// // GET /api/galleries/search func (s *Server) handleSearchRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -497,6 +504,8 @@ func (s *Server) handleSearchRequest(args [0]string, w http.ResponseWriter, r *h // handleSearchByTagIDRequest handles searchByTagID operation. // +// Search for comics by tag ID. +// // GET /api/galleries/tagged func (s *Server) handleSearchByTagIDRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ diff --git a/examples/ex_manga/oas_parameters_gen.go b/examples/ex_manga/oas_parameters_gen.go index d78ca5203..66d1b876d 100644 --- a/examples/ex_manga/oas_parameters_gen.go +++ b/examples/ex_manga/oas_parameters_gen.go @@ -12,6 +12,7 @@ import ( "github.com/ogen-go/ogen/validate" ) +// GetBookParams is parameters of getBook operation. type GetBookParams struct { // ID of book. BookID int @@ -74,6 +75,7 @@ func decodeGetBookParams(args [1]string, r *http.Request) (params GetBookParams, return params, nil } +// GetPageCoverImageParams is parameters of getPageCoverImage operation. type GetPageCoverImageParams struct { // ID of book. MediaID int @@ -175,6 +177,7 @@ func decodeGetPageCoverImageParams(args [2]string, r *http.Request) (params GetP return params, nil } +// GetPageImageParams is parameters of getPageImage operation. type GetPageImageParams struct { // ID of book. MediaID int @@ -327,6 +330,7 @@ func decodeGetPageImageParams(args [3]string, r *http.Request) (params GetPageIm return params, nil } +// GetPageThumbnailImageParams is parameters of getPageThumbnailImage operation. type GetPageThumbnailImageParams struct { // ID of book. MediaID int @@ -479,6 +483,7 @@ func decodeGetPageThumbnailImageParams(args [3]string, r *http.Request) (params return params, nil } +// SearchParams is parameters of search operation. type SearchParams struct { // Search query. // * You can search for multiple terms at the same time, and this will return only galleries that @@ -570,6 +575,7 @@ func decodeSearchParams(args [0]string, r *http.Request) (params SearchParams, _ return params, nil } +// SearchByTagIDParams is parameters of searchByTagID operation. type SearchByTagIDParams struct { // Tag ID. TagID int diff --git a/examples/ex_manga/oas_response_encoders_gen.go b/examples/ex_manga/oas_response_encoders_gen.go index acbc55b1f..4878b1386 100644 --- a/examples/ex_manga/oas_response_encoders_gen.go +++ b/examples/ex_manga/oas_response_encoders_gen.go @@ -35,6 +35,7 @@ func encodeGetBookResponse(response GetBookRes, w http.ResponseWriter, span trac return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetPageCoverImageResponse(response GetPageCoverImageRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GetPageCoverImageOK: @@ -54,6 +55,7 @@ func encodeGetPageCoverImageResponse(response GetPageCoverImageRes, w http.Respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetPageImageResponse(response GetPageImageRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GetPageImageOK: @@ -73,6 +75,7 @@ func encodeGetPageImageResponse(response GetPageImageRes, w http.ResponseWriter, return errors.Errorf("unexpected response type: %T", response) } } + func encodeGetPageThumbnailImageResponse(response GetPageThumbnailImageRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *GetPageThumbnailImageOK: @@ -92,6 +95,7 @@ func encodeGetPageThumbnailImageResponse(response GetPageThumbnailImageRes, w ht return errors.Errorf("unexpected response type: %T", response) } } + func encodeSearchResponse(response SearchRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *SearchOKApplicationJSON: @@ -115,6 +119,7 @@ func encodeSearchResponse(response SearchRes, w http.ResponseWriter, span trace. return errors.Errorf("unexpected response type: %T", response) } } + func encodeSearchByTagIDResponse(response SearchByTagIDRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *SearchByTagIDOKApplicationJSON: diff --git a/examples/ex_manga/oas_router_gen.go b/examples/ex_manga/oas_router_gen.go index 51330d1a8..6cf76a0a2 100644 --- a/examples/ex_manga/oas_router_gen.go +++ b/examples/ex_manga/oas_router_gen.go @@ -7,14 +7,6 @@ import ( "strings" ) -func (s *Server) notFound(w http.ResponseWriter, r *http.Request) { - s.cfg.NotFound(w, r) -} - -func (s *Server) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { - s.cfg.MethodNotAllowed(w, r, allowed) -} - // ServeHTTP serves http request as defined by OpenAPI v3 specification, // calling handler that matches the path or returning not found error. func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { diff --git a/examples/ex_manga/oas_server_gen.go b/examples/ex_manga/oas_server_gen.go index e3008322b..e7172aff4 100644 --- a/examples/ex_manga/oas_server_gen.go +++ b/examples/ex_manga/oas_server_gen.go @@ -4,10 +4,6 @@ package api import ( "context" - - "go.opentelemetry.io/otel/metric/instrument/syncint64" - - "github.com/ogen-go/ogen/otelogen" ) // Handler handles operations described by OpenAPI v3 specification. @@ -53,29 +49,18 @@ type Handler interface { // Server implements http server based on OpenAPI v3 specification and // calls Handler to handle requests. type Server struct { - h Handler - cfg config - - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + h Handler + baseServer } // NewServer creates new Server. func NewServer(h Handler, opts ...Option) (*Server, error) { - s := &Server{ - h: h, - cfg: newConfig(opts...), - } - var err error - if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { - return nil, err - } - if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { - return nil, err - } - if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + s, err := newConfig(opts...).baseServer() + if err != nil { return nil, err } - return s, nil + return &Server{ + h: h, + baseServer: s, + }, nil } diff --git a/examples/ex_manga/oas_unimplemented_gen.go b/examples/ex_manga/oas_unimplemented_gen.go index b08cb488c..7e35d63c1 100644 --- a/examples/ex_manga/oas_unimplemented_gen.go +++ b/examples/ex_manga/oas_unimplemented_gen.go @@ -8,11 +8,11 @@ import ( ht "github.com/ogen-go/ogen/http" ) -var _ Handler = UnimplementedHandler{} - // UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented. type UnimplementedHandler struct{} +var _ Handler = UnimplementedHandler{} + // GetBook implements getBook operation. // // Gets metadata of book. diff --git a/examples/ex_petstore/oas_cfg_gen.go b/examples/ex_petstore/oas_cfg_gen.go index 43cd6eec1..d1c81762b 100644 --- a/examples/ex_petstore/oas_cfg_gen.go +++ b/examples/ex_petstore/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -15,6 +16,13 @@ import ( "github.com/ogen-go/ogen/otelogen" ) +var ( + // Allocate option closure once. + clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) + // Allocate option closure once. + serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) +) + // ErrorHandler is error handler. type ErrorHandler = ogenerrors.ErrorHandler @@ -56,6 +64,57 @@ func newConfig(opts ...Option) config { return cfg } +type baseServer struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (s baseServer) notFound(w http.ResponseWriter, r *http.Request) { + s.cfg.NotFound(w, r) +} + +func (s baseServer) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { + s.cfg.MethodNotAllowed(w, r, allowed) +} + +func (cfg config) baseServer() (s baseServer, err error) { + s = baseServer{cfg: cfg} + if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { + return s, err + } + if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { + return s, err + } + if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + return s, err + } + return s, nil +} + +type baseClient struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (cfg config) baseClient() (c baseClient, err error) { + c = baseClient{cfg: cfg} + if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { + return c, err + } + if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { + return c, err + } + if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + return c, err + } + return c, nil +} + +// Option is config option. type Option interface { apply(*config) } diff --git a/examples/ex_petstore/oas_client_gen.go b/examples/ex_petstore/oas_client_gen.go index 08b1463b3..10f4f8e07 100644 --- a/examples/ex_petstore/oas_client_gen.go +++ b/examples/ex_petstore/oas_client_gen.go @@ -10,7 +10,6 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" - "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/conv" @@ -23,16 +22,10 @@ var _ Handler = struct { *Client }{} -// Allocate option closure once. -var clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) - // Client implements OAS client. type Client struct { serverURL *url.URL - cfg config - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + baseClient } // NewClient initializes new Client defined by OAS. @@ -41,20 +34,14 @@ func NewClient(serverURL string, opts ...Option) (*Client, error) { if err != nil { return nil, err } - c := &Client{ - cfg: newConfig(opts...), - serverURL: u, - } - if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { - return nil, err - } - if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { - return nil, err - } - if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + c, err := newConfig(opts...).baseClient() + if err != nil { return nil, err } - return c, nil + return &Client{ + serverURL: u, + baseClient: c, + }, nil } type serverURLKey struct{} diff --git a/examples/ex_petstore/oas_handlers_gen.go b/examples/ex_petstore/oas_handlers_gen.go index 276e2edd7..6416e32ce 100644 --- a/examples/ex_petstore/oas_handlers_gen.go +++ b/examples/ex_petstore/oas_handlers_gen.go @@ -16,11 +16,10 @@ import ( "github.com/ogen-go/ogen/otelogen" ) -// Allocate option closure once. -var serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) - // handleCreatePetsRequest handles createPets operation. // +// Create a pet. +// // POST /pets func (s *Server) handleCreatePetsRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -99,6 +98,8 @@ func (s *Server) handleCreatePetsRequest(args [0]string, w http.ResponseWriter, // handleListPetsRequest handles listPets operation. // +// List all pets. +// // GET /pets func (s *Server) handleListPetsRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -193,6 +194,8 @@ func (s *Server) handleListPetsRequest(args [0]string, w http.ResponseWriter, r // handleShowPetByIdRequest handles showPetById operation. // +// Info for a specific pet. +// // GET /pets/{petId} func (s *Server) handleShowPetByIdRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ diff --git a/examples/ex_petstore/oas_parameters_gen.go b/examples/ex_petstore/oas_parameters_gen.go index 968f701c3..063b20b82 100644 --- a/examples/ex_petstore/oas_parameters_gen.go +++ b/examples/ex_petstore/oas_parameters_gen.go @@ -11,6 +11,7 @@ import ( "github.com/ogen-go/ogen/uri" ) +// ListPetsParams is parameters of listPets operation. type ListPetsParams struct { // How many items to return at one time (max 100). Limit OptInt32 @@ -62,6 +63,7 @@ func decodeListPetsParams(args [0]string, r *http.Request) (params ListPetsParam return params, nil } +// ShowPetByIdParams is parameters of showPetById operation. type ShowPetByIdParams struct { // The id of the pet to retrieve. PetId string diff --git a/examples/ex_petstore/oas_response_encoders_gen.go b/examples/ex_petstore/oas_response_encoders_gen.go index b2868af0d..6c46927a2 100644 --- a/examples/ex_petstore/oas_response_encoders_gen.go +++ b/examples/ex_petstore/oas_response_encoders_gen.go @@ -47,6 +47,7 @@ func encodeCreatePetsResponse(response CreatePetsRes, w http.ResponseWriter, spa return errors.Errorf("unexpected response type: %T", response) } } + func encodeListPetsResponse(response ListPetsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PetsHeaders: @@ -106,6 +107,7 @@ func encodeListPetsResponse(response ListPetsRes, w http.ResponseWriter, span tr return errors.Errorf("unexpected response type: %T", response) } } + func encodeShowPetByIdResponse(response ShowPetByIdRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Pet: diff --git a/examples/ex_petstore/oas_router_gen.go b/examples/ex_petstore/oas_router_gen.go index 7fcee9585..e148cf5c6 100644 --- a/examples/ex_petstore/oas_router_gen.go +++ b/examples/ex_petstore/oas_router_gen.go @@ -7,14 +7,6 @@ import ( "strings" ) -func (s *Server) notFound(w http.ResponseWriter, r *http.Request) { - s.cfg.NotFound(w, r) -} - -func (s *Server) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { - s.cfg.MethodNotAllowed(w, r, allowed) -} - // ServeHTTP serves http request as defined by OpenAPI v3 specification, // calling handler that matches the path or returning not found error. func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { diff --git a/examples/ex_petstore/oas_server_gen.go b/examples/ex_petstore/oas_server_gen.go index 9f378906d..df251ae6b 100644 --- a/examples/ex_petstore/oas_server_gen.go +++ b/examples/ex_petstore/oas_server_gen.go @@ -4,10 +4,6 @@ package api import ( "context" - - "go.opentelemetry.io/otel/metric/instrument/syncint64" - - "github.com/ogen-go/ogen/otelogen" ) // Handler handles operations described by OpenAPI v3 specification. @@ -35,29 +31,18 @@ type Handler interface { // Server implements http server based on OpenAPI v3 specification and // calls Handler to handle requests. type Server struct { - h Handler - cfg config - - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + h Handler + baseServer } // NewServer creates new Server. func NewServer(h Handler, opts ...Option) (*Server, error) { - s := &Server{ - h: h, - cfg: newConfig(opts...), - } - var err error - if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { - return nil, err - } - if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { - return nil, err - } - if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + s, err := newConfig(opts...).baseServer() + if err != nil { return nil, err } - return s, nil + return &Server{ + h: h, + baseServer: s, + }, nil } diff --git a/examples/ex_petstore/oas_unimplemented_gen.go b/examples/ex_petstore/oas_unimplemented_gen.go index 9bd9e0a52..819df9052 100644 --- a/examples/ex_petstore/oas_unimplemented_gen.go +++ b/examples/ex_petstore/oas_unimplemented_gen.go @@ -8,11 +8,11 @@ import ( ht "github.com/ogen-go/ogen/http" ) -var _ Handler = UnimplementedHandler{} - // UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented. type UnimplementedHandler struct{} +var _ Handler = UnimplementedHandler{} + // CreatePets implements createPets operation. // // Create a pet. diff --git a/examples/ex_petstore_expanded/oas_cfg_gen.go b/examples/ex_petstore_expanded/oas_cfg_gen.go index 43cd6eec1..d1c81762b 100644 --- a/examples/ex_petstore_expanded/oas_cfg_gen.go +++ b/examples/ex_petstore_expanded/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -15,6 +16,13 @@ import ( "github.com/ogen-go/ogen/otelogen" ) +var ( + // Allocate option closure once. + clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) + // Allocate option closure once. + serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) +) + // ErrorHandler is error handler. type ErrorHandler = ogenerrors.ErrorHandler @@ -56,6 +64,57 @@ func newConfig(opts ...Option) config { return cfg } +type baseServer struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (s baseServer) notFound(w http.ResponseWriter, r *http.Request) { + s.cfg.NotFound(w, r) +} + +func (s baseServer) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { + s.cfg.MethodNotAllowed(w, r, allowed) +} + +func (cfg config) baseServer() (s baseServer, err error) { + s = baseServer{cfg: cfg} + if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { + return s, err + } + if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { + return s, err + } + if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + return s, err + } + return s, nil +} + +type baseClient struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (cfg config) baseClient() (c baseClient, err error) { + c = baseClient{cfg: cfg} + if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { + return c, err + } + if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { + return c, err + } + if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + return c, err + } + return c, nil +} + +// Option is config option. type Option interface { apply(*config) } diff --git a/examples/ex_petstore_expanded/oas_client_gen.go b/examples/ex_petstore_expanded/oas_client_gen.go index b463189c8..e549c49a7 100644 --- a/examples/ex_petstore_expanded/oas_client_gen.go +++ b/examples/ex_petstore_expanded/oas_client_gen.go @@ -10,7 +10,6 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" - "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/conv" @@ -23,16 +22,10 @@ var _ Handler = struct { *Client }{} -// Allocate option closure once. -var clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) - // Client implements OAS client. type Client struct { serverURL *url.URL - cfg config - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + baseClient } // NewClient initializes new Client defined by OAS. @@ -41,20 +34,14 @@ func NewClient(serverURL string, opts ...Option) (*Client, error) { if err != nil { return nil, err } - c := &Client{ - cfg: newConfig(opts...), - serverURL: u, - } - if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { - return nil, err - } - if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { - return nil, err - } - if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + c, err := newConfig(opts...).baseClient() + if err != nil { return nil, err } - return c, nil + return &Client{ + serverURL: u, + baseClient: c, + }, nil } type serverURLKey struct{} diff --git a/examples/ex_petstore_expanded/oas_handlers_gen.go b/examples/ex_petstore_expanded/oas_handlers_gen.go index d2a0f697e..6e2217f12 100644 --- a/examples/ex_petstore_expanded/oas_handlers_gen.go +++ b/examples/ex_petstore_expanded/oas_handlers_gen.go @@ -16,11 +16,10 @@ import ( "github.com/ogen-go/ogen/otelogen" ) -// Allocate option closure once. -var serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) - // handleAddPetRequest handles addPet operation. // +// Creates a new pet in the store. Duplicates are allowed. +// // POST /pets func (s *Server) handleAddPetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -118,6 +117,8 @@ func (s *Server) handleAddPetRequest(args [0]string, w http.ResponseWriter, r *h // handleDeletePetRequest handles deletePet operation. // +// Deletes a single pet based on the ID supplied. +// // DELETE /pets/{id} func (s *Server) handleDeletePetRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -212,6 +213,8 @@ func (s *Server) handleDeletePetRequest(args [1]string, w http.ResponseWriter, r // handleFindPetByIDRequest handles find pet by id operation. // +// Returns a user based on a single ID, if the user does not have access to the pet. +// // GET /pets/{id} func (s *Server) handleFindPetByIDRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -306,6 +309,26 @@ func (s *Server) handleFindPetByIDRequest(args [1]string, w http.ResponseWriter, // handleFindPetsRequest handles findPets operation. // +// Returns all pets from the system that the user has access to +// Nam sed condimentum est. Maecenas tempor sagittis sapien, nec rhoncus sem sagittis sit amet. +// Aenean at gravida augue, ac iaculis sem. Curabitur odio lorem, ornare eget elementum nec, cursus +// id lectus. Duis mi turpis, pulvinar ac eros ac, tincidunt varius justo. In hac habitasse platea +// dictumst. Integer at adipiscing ante, a sagittis ligula. Aenean pharetra tempor ante molestie +// imperdiet. Vivamus id aliquam diam. Cras quis velit non tortor eleifend sagittis. Praesent at enim +// pharetra urna volutpat venenatis eget eget mauris. In eleifend fermentum facilisis. Praesent enim +// enim, gravida ac sodales sed, placerat id erat. Suspendisse lacus dolor, consectetur non augue vel, +// +// vehicula interdum libero. Morbi euismod sagittis libero sed lacinia. +// +// Sed tempus felis lobortis leo pulvinar rutrum. Nam mattis velit nisl, eu condimentum ligula luctus +// nec. Phasellus semper velit eget aliquet faucibus. In a mattis elit. Phasellus vel urna viverra, +// condimentum lorem id, rhoncus nibh. Ut pellentesque posuere elementum. Sed a varius odio. Morbi +// rhoncus ligula libero, vel eleifend nunc tristique vitae. Fusce et sem dui. Aenean nec scelerisque +// tortor. Fusce malesuada accumsan magna vel tempus. Quisque mollis felis eu dolor tristique, sit +// amet auctor felis gravida. Sed libero lorem, molestie sed nisl in, accumsan tempor nisi. Fusce +// sollicitudin massa ut lacinia mattis. Sed vel eleifend lorem. Pellentesque vitae felis pretium, +// pulvinar elit eu, euismod sapien. +// // GET /pets func (s *Server) handleFindPetsRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ diff --git a/examples/ex_petstore_expanded/oas_parameters_gen.go b/examples/ex_petstore_expanded/oas_parameters_gen.go index 39555cc7a..da9f9321d 100644 --- a/examples/ex_petstore_expanded/oas_parameters_gen.go +++ b/examples/ex_petstore_expanded/oas_parameters_gen.go @@ -11,6 +11,7 @@ import ( "github.com/ogen-go/ogen/uri" ) +// DeletePetParams is parameters of deletePet operation. type DeletePetParams struct { // ID of pet to delete. ID int64 @@ -56,6 +57,7 @@ func decodeDeletePetParams(args [1]string, r *http.Request) (params DeletePetPar return params, nil } +// FindPetByIDParams is parameters of find pet by id operation. type FindPetByIDParams struct { // ID of pet to fetch. ID int64 @@ -101,6 +103,7 @@ func decodeFindPetByIDParams(args [1]string, r *http.Request) (params FindPetByI return params, nil } +// FindPetsParams is parameters of findPets operation. type FindPetsParams struct { // Tags to filter by. Tags []string diff --git a/examples/ex_petstore_expanded/oas_response_encoders_gen.go b/examples/ex_petstore_expanded/oas_response_encoders_gen.go index f5f21867e..99109776c 100644 --- a/examples/ex_petstore_expanded/oas_response_encoders_gen.go +++ b/examples/ex_petstore_expanded/oas_response_encoders_gen.go @@ -51,6 +51,7 @@ func encodeAddPetResponse(response AddPetRes, w http.ResponseWriter, span trace. return errors.Errorf("unexpected response type: %T", response) } } + func encodeDeletePetResponse(response DeletePetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *DeletePetNoContent: @@ -84,6 +85,7 @@ func encodeDeletePetResponse(response DeletePetRes, w http.ResponseWriter, span return errors.Errorf("unexpected response type: %T", response) } } + func encodeFindPetByIDResponse(response FindPetByIDRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Pet: @@ -124,6 +126,7 @@ func encodeFindPetByIDResponse(response FindPetByIDRes, w http.ResponseWriter, s return errors.Errorf("unexpected response type: %T", response) } } + func encodeFindPetsResponse(response FindPetsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *FindPetsOKApplicationJSON: diff --git a/examples/ex_petstore_expanded/oas_router_gen.go b/examples/ex_petstore_expanded/oas_router_gen.go index d505433d8..ef8eb06c2 100644 --- a/examples/ex_petstore_expanded/oas_router_gen.go +++ b/examples/ex_petstore_expanded/oas_router_gen.go @@ -7,14 +7,6 @@ import ( "strings" ) -func (s *Server) notFound(w http.ResponseWriter, r *http.Request) { - s.cfg.NotFound(w, r) -} - -func (s *Server) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { - s.cfg.MethodNotAllowed(w, r, allowed) -} - // ServeHTTP serves http request as defined by OpenAPI v3 specification, // calling handler that matches the path or returning not found error. func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { diff --git a/examples/ex_petstore_expanded/oas_server_gen.go b/examples/ex_petstore_expanded/oas_server_gen.go index f04e5b56d..631cd21cf 100644 --- a/examples/ex_petstore_expanded/oas_server_gen.go +++ b/examples/ex_petstore_expanded/oas_server_gen.go @@ -4,10 +4,6 @@ package api import ( "context" - - "go.opentelemetry.io/otel/metric/instrument/syncint64" - - "github.com/ogen-go/ogen/otelogen" ) // Handler handles operations described by OpenAPI v3 specification. @@ -57,29 +53,18 @@ type Handler interface { // Server implements http server based on OpenAPI v3 specification and // calls Handler to handle requests. type Server struct { - h Handler - cfg config - - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + h Handler + baseServer } // NewServer creates new Server. func NewServer(h Handler, opts ...Option) (*Server, error) { - s := &Server{ - h: h, - cfg: newConfig(opts...), - } - var err error - if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { - return nil, err - } - if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { - return nil, err - } - if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + s, err := newConfig(opts...).baseServer() + if err != nil { return nil, err } - return s, nil + return &Server{ + h: h, + baseServer: s, + }, nil } diff --git a/examples/ex_petstore_expanded/oas_unimplemented_gen.go b/examples/ex_petstore_expanded/oas_unimplemented_gen.go index 70bd1da64..07de0a7a7 100644 --- a/examples/ex_petstore_expanded/oas_unimplemented_gen.go +++ b/examples/ex_petstore_expanded/oas_unimplemented_gen.go @@ -8,11 +8,11 @@ import ( ht "github.com/ogen-go/ogen/http" ) -var _ Handler = UnimplementedHandler{} - // UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented. type UnimplementedHandler struct{} +var _ Handler = UnimplementedHandler{} + // AddPet implements addPet operation. // // Creates a new pet in the store. Duplicates are allowed. diff --git a/examples/ex_route_params/oas_cfg_gen.go b/examples/ex_route_params/oas_cfg_gen.go index 43cd6eec1..d1c81762b 100644 --- a/examples/ex_route_params/oas_cfg_gen.go +++ b/examples/ex_route_params/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -15,6 +16,13 @@ import ( "github.com/ogen-go/ogen/otelogen" ) +var ( + // Allocate option closure once. + clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) + // Allocate option closure once. + serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) +) + // ErrorHandler is error handler. type ErrorHandler = ogenerrors.ErrorHandler @@ -56,6 +64,57 @@ func newConfig(opts ...Option) config { return cfg } +type baseServer struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (s baseServer) notFound(w http.ResponseWriter, r *http.Request) { + s.cfg.NotFound(w, r) +} + +func (s baseServer) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { + s.cfg.MethodNotAllowed(w, r, allowed) +} + +func (cfg config) baseServer() (s baseServer, err error) { + s = baseServer{cfg: cfg} + if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { + return s, err + } + if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { + return s, err + } + if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + return s, err + } + return s, nil +} + +type baseClient struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (cfg config) baseClient() (c baseClient, err error) { + c = baseClient{cfg: cfg} + if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { + return c, err + } + if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { + return c, err + } + if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + return c, err + } + return c, nil +} + +// Option is config option. type Option interface { apply(*config) } diff --git a/examples/ex_route_params/oas_client_gen.go b/examples/ex_route_params/oas_client_gen.go index a4152ce30..2f5cc6558 100644 --- a/examples/ex_route_params/oas_client_gen.go +++ b/examples/ex_route_params/oas_client_gen.go @@ -10,7 +10,6 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" - "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/conv" @@ -23,16 +22,10 @@ var _ Handler = struct { *Client }{} -// Allocate option closure once. -var clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) - // Client implements OAS client. type Client struct { serverURL *url.URL - cfg config - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + baseClient } // NewClient initializes new Client defined by OAS. @@ -41,20 +34,14 @@ func NewClient(serverURL string, opts ...Option) (*Client, error) { if err != nil { return nil, err } - c := &Client{ - cfg: newConfig(opts...), - serverURL: u, - } - if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { - return nil, err - } - if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { - return nil, err - } - if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + c, err := newConfig(opts...).baseClient() + if err != nil { return nil, err } - return c, nil + return &Client{ + serverURL: u, + baseClient: c, + }, nil } type serverURLKey struct{} diff --git a/examples/ex_route_params/oas_handlers_gen.go b/examples/ex_route_params/oas_handlers_gen.go index f5c992e5a..35e58c131 100644 --- a/examples/ex_route_params/oas_handlers_gen.go +++ b/examples/ex_route_params/oas_handlers_gen.go @@ -16,11 +16,10 @@ import ( "github.com/ogen-go/ogen/otelogen" ) -// Allocate option closure once. -var serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) - // handleDataGetRequest handles dataGet operation. // +// Retrieve data. +// // GET /name/{id}/{key} func (s *Server) handleDataGetRequest(args [2]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -116,6 +115,8 @@ func (s *Server) handleDataGetRequest(args [2]string, w http.ResponseWriter, r * // handleDataGetAnyRequest handles dataGetAny operation. // +// Retrieve any data. +// // GET /name func (s *Server) handleDataGetAnyRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -194,6 +195,8 @@ func (s *Server) handleDataGetAnyRequest(args [0]string, w http.ResponseWriter, // handleDataGetIDRequest handles dataGetID operation. // +// Retrieve data. +// // GET /name/{id} func (s *Server) handleDataGetIDRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ diff --git a/examples/ex_route_params/oas_parameters_gen.go b/examples/ex_route_params/oas_parameters_gen.go index e317985ae..be90a52b6 100644 --- a/examples/ex_route_params/oas_parameters_gen.go +++ b/examples/ex_route_params/oas_parameters_gen.go @@ -12,6 +12,7 @@ import ( "github.com/ogen-go/ogen/validate" ) +// DataGetParams is parameters of dataGet operation. type DataGetParams struct { ID int Key string @@ -106,6 +107,7 @@ func decodeDataGetParams(args [2]string, r *http.Request) (params DataGetParams, return params, nil } +// DataGetIDParams is parameters of dataGetID operation. type DataGetIDParams struct { ID int } diff --git a/examples/ex_route_params/oas_response_encoders_gen.go b/examples/ex_route_params/oas_response_encoders_gen.go index 984965073..0c525992d 100644 --- a/examples/ex_route_params/oas_response_encoders_gen.go +++ b/examples/ex_route_params/oas_response_encoders_gen.go @@ -24,6 +24,7 @@ func encodeDataGetResponse(response string, w http.ResponseWriter, span trace.Sp return nil } + func encodeDataGetAnyResponse(response string, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -37,6 +38,7 @@ func encodeDataGetAnyResponse(response string, w http.ResponseWriter, span trace return nil } + func encodeDataGetIDResponse(response string, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) diff --git a/examples/ex_route_params/oas_router_gen.go b/examples/ex_route_params/oas_router_gen.go index 290bca259..96afb87d5 100644 --- a/examples/ex_route_params/oas_router_gen.go +++ b/examples/ex_route_params/oas_router_gen.go @@ -7,14 +7,6 @@ import ( "strings" ) -func (s *Server) notFound(w http.ResponseWriter, r *http.Request) { - s.cfg.NotFound(w, r) -} - -func (s *Server) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { - s.cfg.MethodNotAllowed(w, r, allowed) -} - // ServeHTTP serves http request as defined by OpenAPI v3 specification, // calling handler that matches the path or returning not found error. func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { diff --git a/examples/ex_route_params/oas_server_gen.go b/examples/ex_route_params/oas_server_gen.go index 4796c5aa4..8b5ce61b2 100644 --- a/examples/ex_route_params/oas_server_gen.go +++ b/examples/ex_route_params/oas_server_gen.go @@ -4,10 +4,6 @@ package api import ( "context" - - "go.opentelemetry.io/otel/metric/instrument/syncint64" - - "github.com/ogen-go/ogen/otelogen" ) // Handler handles operations described by OpenAPI v3 specification. @@ -35,29 +31,18 @@ type Handler interface { // Server implements http server based on OpenAPI v3 specification and // calls Handler to handle requests. type Server struct { - h Handler - cfg config - - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + h Handler + baseServer } // NewServer creates new Server. func NewServer(h Handler, opts ...Option) (*Server, error) { - s := &Server{ - h: h, - cfg: newConfig(opts...), - } - var err error - if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { - return nil, err - } - if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { - return nil, err - } - if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + s, err := newConfig(opts...).baseServer() + if err != nil { return nil, err } - return s, nil + return &Server{ + h: h, + baseServer: s, + }, nil } diff --git a/examples/ex_route_params/oas_unimplemented_gen.go b/examples/ex_route_params/oas_unimplemented_gen.go index 45fee219c..d3fa46ac3 100644 --- a/examples/ex_route_params/oas_unimplemented_gen.go +++ b/examples/ex_route_params/oas_unimplemented_gen.go @@ -8,11 +8,11 @@ import ( ht "github.com/ogen-go/ogen/http" ) -var _ Handler = UnimplementedHandler{} - // UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented. type UnimplementedHandler struct{} +var _ Handler = UnimplementedHandler{} + // DataGet implements dataGet operation. // // Retrieve data. diff --git a/examples/ex_telegram/oas_cfg_gen.go b/examples/ex_telegram/oas_cfg_gen.go index 43cd6eec1..d1c81762b 100644 --- a/examples/ex_telegram/oas_cfg_gen.go +++ b/examples/ex_telegram/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -15,6 +16,13 @@ import ( "github.com/ogen-go/ogen/otelogen" ) +var ( + // Allocate option closure once. + clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) + // Allocate option closure once. + serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) +) + // ErrorHandler is error handler. type ErrorHandler = ogenerrors.ErrorHandler @@ -56,6 +64,57 @@ func newConfig(opts ...Option) config { return cfg } +type baseServer struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (s baseServer) notFound(w http.ResponseWriter, r *http.Request) { + s.cfg.NotFound(w, r) +} + +func (s baseServer) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { + s.cfg.MethodNotAllowed(w, r, allowed) +} + +func (cfg config) baseServer() (s baseServer, err error) { + s = baseServer{cfg: cfg} + if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { + return s, err + } + if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { + return s, err + } + if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + return s, err + } + return s, nil +} + +type baseClient struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (cfg config) baseClient() (c baseClient, err error) { + c = baseClient{cfg: cfg} + if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { + return c, err + } + if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { + return c, err + } + if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + return c, err + } + return c, nil +} + +// Option is config option. type Option interface { apply(*config) } diff --git a/examples/ex_telegram/oas_client_gen.go b/examples/ex_telegram/oas_client_gen.go index f04810419..a4af041e8 100644 --- a/examples/ex_telegram/oas_client_gen.go +++ b/examples/ex_telegram/oas_client_gen.go @@ -10,7 +10,6 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" - "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -27,16 +26,10 @@ var _ Handler = struct { *Client }{} -// Allocate option closure once. -var clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) - // Client implements OAS client. type Client struct { serverURL *url.URL - cfg config - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + baseClient } // NewClient initializes new Client defined by OAS. @@ -45,20 +38,14 @@ func NewClient(serverURL string, opts ...Option) (*Client, error) { if err != nil { return nil, err } - c := &Client{ - cfg: newConfig(opts...), - serverURL: u, - } - if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { - return nil, err - } - if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { - return nil, err - } - if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + c, err := newConfig(opts...).baseClient() + if err != nil { return nil, err } - return c, nil + return &Client{ + serverURL: u, + baseClient: c, + }, nil } type serverURLKey struct{} diff --git a/examples/ex_telegram/oas_handlers_gen.go b/examples/ex_telegram/oas_handlers_gen.go index 26ec670ec..061528282 100644 --- a/examples/ex_telegram/oas_handlers_gen.go +++ b/examples/ex_telegram/oas_handlers_gen.go @@ -18,9 +18,6 @@ import ( "github.com/ogen-go/ogen/otelogen" ) -// Allocate option closure once. -var serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) - // handleAddStickerToSetRequest handles addStickerToSet operation. // // POST /addStickerToSet diff --git a/examples/ex_telegram/oas_request_encoders_gen.go b/examples/ex_telegram/oas_request_encoders_gen.go index 8c4b0f7f2..57e45b00a 100644 --- a/examples/ex_telegram/oas_request_encoders_gen.go +++ b/examples/ex_telegram/oas_request_encoders_gen.go @@ -24,6 +24,7 @@ func encodeAddStickerToSetRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeAnswerCallbackQueryRequest( req AnswerCallbackQuery, r *http.Request, @@ -37,6 +38,7 @@ func encodeAnswerCallbackQueryRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeAnswerInlineQueryRequest( req AnswerInlineQuery, r *http.Request, @@ -50,6 +52,7 @@ func encodeAnswerInlineQueryRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeAnswerPreCheckoutQueryRequest( req AnswerPreCheckoutQuery, r *http.Request, @@ -63,6 +66,7 @@ func encodeAnswerPreCheckoutQueryRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeAnswerShippingQueryRequest( req AnswerShippingQuery, r *http.Request, @@ -76,6 +80,7 @@ func encodeAnswerShippingQueryRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeApproveChatJoinRequestRequest( req ApproveChatJoinRequest, r *http.Request, @@ -89,6 +94,7 @@ func encodeApproveChatJoinRequestRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeBanChatMemberRequest( req BanChatMember, r *http.Request, @@ -102,6 +108,7 @@ func encodeBanChatMemberRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeBanChatSenderChatRequest( req BanChatSenderChat, r *http.Request, @@ -115,6 +122,7 @@ func encodeBanChatSenderChatRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeCopyMessageRequest( req CopyMessage, r *http.Request, @@ -128,6 +136,7 @@ func encodeCopyMessageRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeCreateChatInviteLinkRequest( req CreateChatInviteLink, r *http.Request, @@ -141,6 +150,7 @@ func encodeCreateChatInviteLinkRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeCreateNewStickerSetRequest( req CreateNewStickerSet, r *http.Request, @@ -154,6 +164,7 @@ func encodeCreateNewStickerSetRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeDeclineChatJoinRequestRequest( req DeclineChatJoinRequest, r *http.Request, @@ -167,6 +178,7 @@ func encodeDeclineChatJoinRequestRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeDeleteChatPhotoRequest( req DeleteChatPhoto, r *http.Request, @@ -180,6 +192,7 @@ func encodeDeleteChatPhotoRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeDeleteChatStickerSetRequest( req DeleteChatStickerSet, r *http.Request, @@ -193,6 +206,7 @@ func encodeDeleteChatStickerSetRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeDeleteMessageRequest( req DeleteMessage, r *http.Request, @@ -206,6 +220,7 @@ func encodeDeleteMessageRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeDeleteMyCommandsRequest( req OptDeleteMyCommands, r *http.Request, @@ -225,6 +240,7 @@ func encodeDeleteMyCommandsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeDeleteStickerFromSetRequest( req DeleteStickerFromSet, r *http.Request, @@ -238,6 +254,7 @@ func encodeDeleteStickerFromSetRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeDeleteWebhookRequest( req OptDeleteWebhook, r *http.Request, @@ -257,6 +274,7 @@ func encodeDeleteWebhookRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeEditChatInviteLinkRequest( req EditChatInviteLink, r *http.Request, @@ -270,6 +288,7 @@ func encodeEditChatInviteLinkRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeEditMessageCaptionRequest( req EditMessageCaption, r *http.Request, @@ -283,6 +302,7 @@ func encodeEditMessageCaptionRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeEditMessageLiveLocationRequest( req EditMessageLiveLocation, r *http.Request, @@ -296,6 +316,7 @@ func encodeEditMessageLiveLocationRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeEditMessageMediaRequest( req EditMessageMedia, r *http.Request, @@ -309,6 +330,7 @@ func encodeEditMessageMediaRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeEditMessageReplyMarkupRequest( req EditMessageReplyMarkup, r *http.Request, @@ -322,6 +344,7 @@ func encodeEditMessageReplyMarkupRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeEditMessageTextRequest( req EditMessageText, r *http.Request, @@ -335,6 +358,7 @@ func encodeEditMessageTextRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeExportChatInviteLinkRequest( req ExportChatInviteLink, r *http.Request, @@ -348,6 +372,7 @@ func encodeExportChatInviteLinkRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeForwardMessageRequest( req ForwardMessage, r *http.Request, @@ -361,6 +386,7 @@ func encodeForwardMessageRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeGetChatRequest( req GetChat, r *http.Request, @@ -374,6 +400,7 @@ func encodeGetChatRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeGetChatAdministratorsRequest( req GetChatAdministrators, r *http.Request, @@ -387,6 +414,7 @@ func encodeGetChatAdministratorsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeGetChatMemberRequest( req GetChatMember, r *http.Request, @@ -400,6 +428,7 @@ func encodeGetChatMemberRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeGetChatMemberCountRequest( req GetChatMemberCount, r *http.Request, @@ -413,6 +442,7 @@ func encodeGetChatMemberCountRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeGetFileRequest( req GetFile, r *http.Request, @@ -426,6 +456,7 @@ func encodeGetFileRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeGetGameHighScoresRequest( req GetGameHighScores, r *http.Request, @@ -439,6 +470,7 @@ func encodeGetGameHighScoresRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeGetMyCommandsRequest( req OptGetMyCommands, r *http.Request, @@ -458,6 +490,7 @@ func encodeGetMyCommandsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeGetStickerSetRequest( req GetStickerSet, r *http.Request, @@ -471,6 +504,7 @@ func encodeGetStickerSetRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeGetUpdatesRequest( req OptGetUpdates, r *http.Request, @@ -490,6 +524,7 @@ func encodeGetUpdatesRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeGetUserProfilePhotosRequest( req GetUserProfilePhotos, r *http.Request, @@ -503,6 +538,7 @@ func encodeGetUserProfilePhotosRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeLeaveChatRequest( req LeaveChat, r *http.Request, @@ -516,6 +552,7 @@ func encodeLeaveChatRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePinChatMessageRequest( req PinChatMessage, r *http.Request, @@ -529,6 +566,7 @@ func encodePinChatMessageRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePromoteChatMemberRequest( req PromoteChatMember, r *http.Request, @@ -542,6 +580,7 @@ func encodePromoteChatMemberRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeRestrictChatMemberRequest( req RestrictChatMember, r *http.Request, @@ -555,6 +594,7 @@ func encodeRestrictChatMemberRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeRevokeChatInviteLinkRequest( req RevokeChatInviteLink, r *http.Request, @@ -568,6 +608,7 @@ func encodeRevokeChatInviteLinkRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendAnimationRequest( req SendAnimation, r *http.Request, @@ -581,6 +622,7 @@ func encodeSendAnimationRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendAudioRequest( req SendAudio, r *http.Request, @@ -594,6 +636,7 @@ func encodeSendAudioRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendChatActionRequest( req SendChatAction, r *http.Request, @@ -607,6 +650,7 @@ func encodeSendChatActionRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendContactRequest( req SendContact, r *http.Request, @@ -620,6 +664,7 @@ func encodeSendContactRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendDiceRequest( req SendDice, r *http.Request, @@ -633,6 +678,7 @@ func encodeSendDiceRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendDocumentRequest( req SendDocument, r *http.Request, @@ -646,6 +692,7 @@ func encodeSendDocumentRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendGameRequest( req SendGame, r *http.Request, @@ -659,6 +706,7 @@ func encodeSendGameRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendInvoiceRequest( req SendInvoice, r *http.Request, @@ -672,6 +720,7 @@ func encodeSendInvoiceRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendLocationRequest( req SendLocation, r *http.Request, @@ -685,6 +734,7 @@ func encodeSendLocationRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendMediaGroupRequest( req SendMediaGroup, r *http.Request, @@ -698,6 +748,7 @@ func encodeSendMediaGroupRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendMessageRequest( req SendMessage, r *http.Request, @@ -711,6 +762,7 @@ func encodeSendMessageRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendPhotoRequest( req SendPhoto, r *http.Request, @@ -724,6 +776,7 @@ func encodeSendPhotoRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendPollRequest( req SendPoll, r *http.Request, @@ -737,6 +790,7 @@ func encodeSendPollRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendStickerRequest( req SendSticker, r *http.Request, @@ -750,6 +804,7 @@ func encodeSendStickerRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendVenueRequest( req SendVenue, r *http.Request, @@ -763,6 +818,7 @@ func encodeSendVenueRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendVideoRequest( req SendVideo, r *http.Request, @@ -776,6 +832,7 @@ func encodeSendVideoRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendVideoNoteRequest( req SendVideoNote, r *http.Request, @@ -789,6 +846,7 @@ func encodeSendVideoNoteRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSendVoiceRequest( req SendVoice, r *http.Request, @@ -802,6 +860,7 @@ func encodeSendVoiceRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSetChatAdministratorCustomTitleRequest( req SetChatAdministratorCustomTitle, r *http.Request, @@ -815,6 +874,7 @@ func encodeSetChatAdministratorCustomTitleRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSetChatDescriptionRequest( req SetChatDescription, r *http.Request, @@ -828,6 +888,7 @@ func encodeSetChatDescriptionRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSetChatPermissionsRequest( req SetChatPermissions, r *http.Request, @@ -841,6 +902,7 @@ func encodeSetChatPermissionsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSetChatPhotoRequest( req SetChatPhoto, r *http.Request, @@ -854,6 +916,7 @@ func encodeSetChatPhotoRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSetChatStickerSetRequest( req SetChatStickerSet, r *http.Request, @@ -867,6 +930,7 @@ func encodeSetChatStickerSetRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSetChatTitleRequest( req SetChatTitle, r *http.Request, @@ -880,6 +944,7 @@ func encodeSetChatTitleRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSetGameScoreRequest( req SetGameScore, r *http.Request, @@ -893,6 +958,7 @@ func encodeSetGameScoreRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSetMyCommandsRequest( req SetMyCommands, r *http.Request, @@ -906,6 +972,7 @@ func encodeSetMyCommandsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSetPassportDataErrorsRequest( req SetPassportDataErrors, r *http.Request, @@ -919,6 +986,7 @@ func encodeSetPassportDataErrorsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSetStickerPositionInSetRequest( req SetStickerPositionInSet, r *http.Request, @@ -932,6 +1000,7 @@ func encodeSetStickerPositionInSetRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSetStickerSetThumbRequest( req SetStickerSetThumb, r *http.Request, @@ -945,6 +1014,7 @@ func encodeSetStickerSetThumbRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSetWebhookRequest( req SetWebhook, r *http.Request, @@ -958,6 +1028,7 @@ func encodeSetWebhookRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeStopMessageLiveLocationRequest( req StopMessageLiveLocation, r *http.Request, @@ -971,6 +1042,7 @@ func encodeStopMessageLiveLocationRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeStopPollRequest( req StopPoll, r *http.Request, @@ -984,6 +1056,7 @@ func encodeStopPollRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeUnbanChatMemberRequest( req UnbanChatMember, r *http.Request, @@ -997,6 +1070,7 @@ func encodeUnbanChatMemberRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeUnbanChatSenderChatRequest( req UnbanChatSenderChat, r *http.Request, @@ -1010,6 +1084,7 @@ func encodeUnbanChatSenderChatRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeUnpinAllChatMessagesRequest( req UnpinAllChatMessages, r *http.Request, @@ -1023,6 +1098,7 @@ func encodeUnpinAllChatMessagesRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeUnpinChatMessageRequest( req UnpinChatMessage, r *http.Request, @@ -1036,6 +1112,7 @@ func encodeUnpinChatMessageRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeUploadStickerFileRequest( req UploadStickerFile, r *http.Request, diff --git a/examples/ex_telegram/oas_response_encoders_gen.go b/examples/ex_telegram/oas_response_encoders_gen.go index bb6f91cd1..69932adff 100644 --- a/examples/ex_telegram/oas_response_encoders_gen.go +++ b/examples/ex_telegram/oas_response_encoders_gen.go @@ -24,6 +24,7 @@ func encodeAddStickerToSetResponse(response Result, w http.ResponseWriter, span return nil } + func encodeAnswerCallbackQueryResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -37,6 +38,7 @@ func encodeAnswerCallbackQueryResponse(response Result, w http.ResponseWriter, s return nil } + func encodeAnswerInlineQueryResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -50,6 +52,7 @@ func encodeAnswerInlineQueryResponse(response Result, w http.ResponseWriter, spa return nil } + func encodeAnswerPreCheckoutQueryResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -63,6 +66,7 @@ func encodeAnswerPreCheckoutQueryResponse(response Result, w http.ResponseWriter return nil } + func encodeAnswerShippingQueryResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -76,6 +80,7 @@ func encodeAnswerShippingQueryResponse(response Result, w http.ResponseWriter, s return nil } + func encodeApproveChatJoinRequestResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -89,6 +94,7 @@ func encodeApproveChatJoinRequestResponse(response Result, w http.ResponseWriter return nil } + func encodeBanChatMemberResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -102,6 +108,7 @@ func encodeBanChatMemberResponse(response Result, w http.ResponseWriter, span tr return nil } + func encodeBanChatSenderChatResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -115,6 +122,7 @@ func encodeBanChatSenderChatResponse(response Result, w http.ResponseWriter, spa return nil } + func encodeCloseResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -128,6 +136,7 @@ func encodeCloseResponse(response Result, w http.ResponseWriter, span trace.Span return nil } + func encodeCopyMessageResponse(response ResultMessageId, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -141,6 +150,7 @@ func encodeCopyMessageResponse(response ResultMessageId, w http.ResponseWriter, return nil } + func encodeCreateChatInviteLinkResponse(response ResultChatInviteLink, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -154,6 +164,7 @@ func encodeCreateChatInviteLinkResponse(response ResultChatInviteLink, w http.Re return nil } + func encodeCreateNewStickerSetResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -167,6 +178,7 @@ func encodeCreateNewStickerSetResponse(response Result, w http.ResponseWriter, s return nil } + func encodeDeclineChatJoinRequestResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -180,6 +192,7 @@ func encodeDeclineChatJoinRequestResponse(response Result, w http.ResponseWriter return nil } + func encodeDeleteChatPhotoResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -193,6 +206,7 @@ func encodeDeleteChatPhotoResponse(response Result, w http.ResponseWriter, span return nil } + func encodeDeleteChatStickerSetResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -206,6 +220,7 @@ func encodeDeleteChatStickerSetResponse(response Result, w http.ResponseWriter, return nil } + func encodeDeleteMessageResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -219,6 +234,7 @@ func encodeDeleteMessageResponse(response Result, w http.ResponseWriter, span tr return nil } + func encodeDeleteMyCommandsResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -232,6 +248,7 @@ func encodeDeleteMyCommandsResponse(response Result, w http.ResponseWriter, span return nil } + func encodeDeleteStickerFromSetResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -245,6 +262,7 @@ func encodeDeleteStickerFromSetResponse(response Result, w http.ResponseWriter, return nil } + func encodeDeleteWebhookResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -258,6 +276,7 @@ func encodeDeleteWebhookResponse(response Result, w http.ResponseWriter, span tr return nil } + func encodeEditChatInviteLinkResponse(response ResultChatInviteLink, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -271,6 +290,7 @@ func encodeEditChatInviteLinkResponse(response ResultChatInviteLink, w http.Resp return nil } + func encodeEditMessageCaptionResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -284,6 +304,7 @@ func encodeEditMessageCaptionResponse(response Result, w http.ResponseWriter, sp return nil } + func encodeEditMessageLiveLocationResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -297,6 +318,7 @@ func encodeEditMessageLiveLocationResponse(response Result, w http.ResponseWrite return nil } + func encodeEditMessageMediaResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -310,6 +332,7 @@ func encodeEditMessageMediaResponse(response Result, w http.ResponseWriter, span return nil } + func encodeEditMessageReplyMarkupResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -323,6 +346,7 @@ func encodeEditMessageReplyMarkupResponse(response Result, w http.ResponseWriter return nil } + func encodeEditMessageTextResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -336,6 +360,7 @@ func encodeEditMessageTextResponse(response Result, w http.ResponseWriter, span return nil } + func encodeExportChatInviteLinkResponse(response ResultString, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -349,6 +374,7 @@ func encodeExportChatInviteLinkResponse(response ResultString, w http.ResponseWr return nil } + func encodeForwardMessageResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -362,6 +388,7 @@ func encodeForwardMessageResponse(response ResultMessage, w http.ResponseWriter, return nil } + func encodeGetChatResponse(response ResultChat, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -375,6 +402,7 @@ func encodeGetChatResponse(response ResultChat, w http.ResponseWriter, span trac return nil } + func encodeGetChatAdministratorsResponse(response ResultArrayOfChatMember, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -388,6 +416,7 @@ func encodeGetChatAdministratorsResponse(response ResultArrayOfChatMember, w htt return nil } + func encodeGetChatMemberResponse(response ResultChatMember, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -401,6 +430,7 @@ func encodeGetChatMemberResponse(response ResultChatMember, w http.ResponseWrite return nil } + func encodeGetChatMemberCountResponse(response ResultInt, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -414,6 +444,7 @@ func encodeGetChatMemberCountResponse(response ResultInt, w http.ResponseWriter, return nil } + func encodeGetFileResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -427,6 +458,7 @@ func encodeGetFileResponse(response Result, w http.ResponseWriter, span trace.Sp return nil } + func encodeGetGameHighScoresResponse(response ResultArrayOfGameHighScore, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -440,6 +472,7 @@ func encodeGetGameHighScoresResponse(response ResultArrayOfGameHighScore, w http return nil } + func encodeGetMeResponse(response ResultUser, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -453,6 +486,7 @@ func encodeGetMeResponse(response ResultUser, w http.ResponseWriter, span trace. return nil } + func encodeGetMyCommandsResponse(response ResultArrayOfBotCommand, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -466,6 +500,7 @@ func encodeGetMyCommandsResponse(response ResultArrayOfBotCommand, w http.Respon return nil } + func encodeGetStickerSetResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -479,6 +514,7 @@ func encodeGetStickerSetResponse(response Result, w http.ResponseWriter, span tr return nil } + func encodeGetUpdatesResponse(response ResultArrayOfUpdate, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -492,6 +528,7 @@ func encodeGetUpdatesResponse(response ResultArrayOfUpdate, w http.ResponseWrite return nil } + func encodeGetUserProfilePhotosResponse(response ResultUserProfilePhotos, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -505,6 +542,7 @@ func encodeGetUserProfilePhotosResponse(response ResultUserProfilePhotos, w http return nil } + func encodeGetWebhookInfoResponse(response ResultWebhookInfo, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -518,6 +556,7 @@ func encodeGetWebhookInfoResponse(response ResultWebhookInfo, w http.ResponseWri return nil } + func encodeLeaveChatResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -531,6 +570,7 @@ func encodeLeaveChatResponse(response Result, w http.ResponseWriter, span trace. return nil } + func encodeLogOutResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -544,6 +584,7 @@ func encodeLogOutResponse(response Result, w http.ResponseWriter, span trace.Spa return nil } + func encodePinChatMessageResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -557,6 +598,7 @@ func encodePinChatMessageResponse(response Result, w http.ResponseWriter, span t return nil } + func encodePromoteChatMemberResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -570,6 +612,7 @@ func encodePromoteChatMemberResponse(response Result, w http.ResponseWriter, spa return nil } + func encodeRestrictChatMemberResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -583,6 +626,7 @@ func encodeRestrictChatMemberResponse(response Result, w http.ResponseWriter, sp return nil } + func encodeRevokeChatInviteLinkResponse(response ResultChatInviteLink, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -596,6 +640,7 @@ func encodeRevokeChatInviteLinkResponse(response ResultChatInviteLink, w http.Re return nil } + func encodeSendAnimationResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -609,6 +654,7 @@ func encodeSendAnimationResponse(response ResultMessage, w http.ResponseWriter, return nil } + func encodeSendAudioResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -622,6 +668,7 @@ func encodeSendAudioResponse(response ResultMessage, w http.ResponseWriter, span return nil } + func encodeSendChatActionResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -635,6 +682,7 @@ func encodeSendChatActionResponse(response Result, w http.ResponseWriter, span t return nil } + func encodeSendContactResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -648,6 +696,7 @@ func encodeSendContactResponse(response ResultMessage, w http.ResponseWriter, sp return nil } + func encodeSendDiceResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -661,6 +710,7 @@ func encodeSendDiceResponse(response ResultMessage, w http.ResponseWriter, span return nil } + func encodeSendDocumentResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -674,6 +724,7 @@ func encodeSendDocumentResponse(response ResultMessage, w http.ResponseWriter, s return nil } + func encodeSendGameResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -687,6 +738,7 @@ func encodeSendGameResponse(response ResultMessage, w http.ResponseWriter, span return nil } + func encodeSendInvoiceResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -700,6 +752,7 @@ func encodeSendInvoiceResponse(response ResultMessage, w http.ResponseWriter, sp return nil } + func encodeSendLocationResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -713,6 +766,7 @@ func encodeSendLocationResponse(response ResultMessage, w http.ResponseWriter, s return nil } + func encodeSendMediaGroupResponse(response ResultArrayOfMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -726,6 +780,7 @@ func encodeSendMediaGroupResponse(response ResultArrayOfMessage, w http.Response return nil } + func encodeSendMessageResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -739,6 +794,7 @@ func encodeSendMessageResponse(response ResultMessage, w http.ResponseWriter, sp return nil } + func encodeSendPhotoResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -752,6 +808,7 @@ func encodeSendPhotoResponse(response ResultMessage, w http.ResponseWriter, span return nil } + func encodeSendPollResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -765,6 +822,7 @@ func encodeSendPollResponse(response ResultMessage, w http.ResponseWriter, span return nil } + func encodeSendStickerResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -778,6 +836,7 @@ func encodeSendStickerResponse(response ResultMessage, w http.ResponseWriter, sp return nil } + func encodeSendVenueResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -791,6 +850,7 @@ func encodeSendVenueResponse(response ResultMessage, w http.ResponseWriter, span return nil } + func encodeSendVideoResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -804,6 +864,7 @@ func encodeSendVideoResponse(response ResultMessage, w http.ResponseWriter, span return nil } + func encodeSendVideoNoteResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -817,6 +878,7 @@ func encodeSendVideoNoteResponse(response ResultMessage, w http.ResponseWriter, return nil } + func encodeSendVoiceResponse(response ResultMessage, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -830,6 +892,7 @@ func encodeSendVoiceResponse(response ResultMessage, w http.ResponseWriter, span return nil } + func encodeSetChatAdministratorCustomTitleResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -843,6 +906,7 @@ func encodeSetChatAdministratorCustomTitleResponse(response Result, w http.Respo return nil } + func encodeSetChatDescriptionResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -856,6 +920,7 @@ func encodeSetChatDescriptionResponse(response Result, w http.ResponseWriter, sp return nil } + func encodeSetChatPermissionsResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -869,6 +934,7 @@ func encodeSetChatPermissionsResponse(response Result, w http.ResponseWriter, sp return nil } + func encodeSetChatPhotoResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -882,6 +948,7 @@ func encodeSetChatPhotoResponse(response Result, w http.ResponseWriter, span tra return nil } + func encodeSetChatStickerSetResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -895,6 +962,7 @@ func encodeSetChatStickerSetResponse(response Result, w http.ResponseWriter, spa return nil } + func encodeSetChatTitleResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -908,6 +976,7 @@ func encodeSetChatTitleResponse(response Result, w http.ResponseWriter, span tra return nil } + func encodeSetGameScoreResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -921,6 +990,7 @@ func encodeSetGameScoreResponse(response Result, w http.ResponseWriter, span tra return nil } + func encodeSetMyCommandsResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -934,6 +1004,7 @@ func encodeSetMyCommandsResponse(response Result, w http.ResponseWriter, span tr return nil } + func encodeSetPassportDataErrorsResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -947,6 +1018,7 @@ func encodeSetPassportDataErrorsResponse(response Result, w http.ResponseWriter, return nil } + func encodeSetStickerPositionInSetResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -960,6 +1032,7 @@ func encodeSetStickerPositionInSetResponse(response Result, w http.ResponseWrite return nil } + func encodeSetStickerSetThumbResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -973,6 +1046,7 @@ func encodeSetStickerSetThumbResponse(response Result, w http.ResponseWriter, sp return nil } + func encodeSetWebhookResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -986,6 +1060,7 @@ func encodeSetWebhookResponse(response Result, w http.ResponseWriter, span trace return nil } + func encodeStopMessageLiveLocationResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -999,6 +1074,7 @@ func encodeStopMessageLiveLocationResponse(response Result, w http.ResponseWrite return nil } + func encodeStopPollResponse(response ResultPoll, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1012,6 +1088,7 @@ func encodeStopPollResponse(response ResultPoll, w http.ResponseWriter, span tra return nil } + func encodeUnbanChatMemberResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1025,6 +1102,7 @@ func encodeUnbanChatMemberResponse(response Result, w http.ResponseWriter, span return nil } + func encodeUnbanChatSenderChatResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1038,6 +1116,7 @@ func encodeUnbanChatSenderChatResponse(response Result, w http.ResponseWriter, s return nil } + func encodeUnpinAllChatMessagesResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1051,6 +1130,7 @@ func encodeUnpinAllChatMessagesResponse(response Result, w http.ResponseWriter, return nil } + func encodeUnpinChatMessageResponse(response Result, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1064,6 +1144,7 @@ func encodeUnpinChatMessageResponse(response Result, w http.ResponseWriter, span return nil } + func encodeUploadStickerFileResponse(response ResultFile, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1077,6 +1158,7 @@ func encodeUploadStickerFileResponse(response ResultFile, w http.ResponseWriter, return nil } + func encodeErrorResponse(response ErrorStatusCode, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") code := response.StatusCode diff --git a/examples/ex_telegram/oas_router_gen.go b/examples/ex_telegram/oas_router_gen.go index bfdd49665..e9640acbd 100644 --- a/examples/ex_telegram/oas_router_gen.go +++ b/examples/ex_telegram/oas_router_gen.go @@ -7,14 +7,6 @@ import ( "strings" ) -func (s *Server) notFound(w http.ResponseWriter, r *http.Request) { - s.cfg.NotFound(w, r) -} - -func (s *Server) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { - s.cfg.MethodNotAllowed(w, r, allowed) -} - // ServeHTTP serves http request as defined by OpenAPI v3 specification, // calling handler that matches the path or returning not found error. func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { diff --git a/examples/ex_telegram/oas_server_gen.go b/examples/ex_telegram/oas_server_gen.go index b7d8ba883..b24a96b41 100644 --- a/examples/ex_telegram/oas_server_gen.go +++ b/examples/ex_telegram/oas_server_gen.go @@ -4,10 +4,6 @@ package api import ( "context" - - "go.opentelemetry.io/otel/metric/instrument/syncint64" - - "github.com/ogen-go/ogen/otelogen" ) // Handler handles operations described by OpenAPI v3 specification. @@ -349,29 +345,18 @@ type Handler interface { // Server implements http server based on OpenAPI v3 specification and // calls Handler to handle requests. type Server struct { - h Handler - cfg config - - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + h Handler + baseServer } // NewServer creates new Server. func NewServer(h Handler, opts ...Option) (*Server, error) { - s := &Server{ - h: h, - cfg: newConfig(opts...), - } - var err error - if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { - return nil, err - } - if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { - return nil, err - } - if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + s, err := newConfig(opts...).baseServer() + if err != nil { return nil, err } - return s, nil + return &Server{ + h: h, + baseServer: s, + }, nil } diff --git a/examples/ex_telegram/oas_unimplemented_gen.go b/examples/ex_telegram/oas_unimplemented_gen.go index 53ceed292..f77f852ee 100644 --- a/examples/ex_telegram/oas_unimplemented_gen.go +++ b/examples/ex_telegram/oas_unimplemented_gen.go @@ -8,11 +8,11 @@ import ( ht "github.com/ogen-go/ogen/http" ) -var _ Handler = UnimplementedHandler{} - // UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented. type UnimplementedHandler struct{} +var _ Handler = UnimplementedHandler{} + // AddStickerToSet implements addStickerToSet operation. // // POST /addStickerToSet diff --git a/examples/ex_test_format/oas_cfg_gen.go b/examples/ex_test_format/oas_cfg_gen.go index 43cd6eec1..d1c81762b 100644 --- a/examples/ex_test_format/oas_cfg_gen.go +++ b/examples/ex_test_format/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -15,6 +16,13 @@ import ( "github.com/ogen-go/ogen/otelogen" ) +var ( + // Allocate option closure once. + clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) + // Allocate option closure once. + serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) +) + // ErrorHandler is error handler. type ErrorHandler = ogenerrors.ErrorHandler @@ -56,6 +64,57 @@ func newConfig(opts ...Option) config { return cfg } +type baseServer struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (s baseServer) notFound(w http.ResponseWriter, r *http.Request) { + s.cfg.NotFound(w, r) +} + +func (s baseServer) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { + s.cfg.MethodNotAllowed(w, r, allowed) +} + +func (cfg config) baseServer() (s baseServer, err error) { + s = baseServer{cfg: cfg} + if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { + return s, err + } + if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { + return s, err + } + if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + return s, err + } + return s, nil +} + +type baseClient struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (cfg config) baseClient() (c baseClient, err error) { + c = baseClient{cfg: cfg} + if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { + return c, err + } + if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { + return c, err + } + if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + return c, err + } + return c, nil +} + +// Option is config option. type Option interface { apply(*config) } diff --git a/examples/ex_test_format/oas_client_gen.go b/examples/ex_test_format/oas_client_gen.go index ba83efde0..2403be1be 100644 --- a/examples/ex_test_format/oas_client_gen.go +++ b/examples/ex_test_format/oas_client_gen.go @@ -14,7 +14,6 @@ import ( "github.com/google/uuid" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" - "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/conv" @@ -28,16 +27,10 @@ var _ Handler = struct { *Client }{} -// Allocate option closure once. -var clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) - // Client implements OAS client. type Client struct { serverURL *url.URL - cfg config - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + baseClient } // NewClient initializes new Client defined by OAS. @@ -46,20 +39,14 @@ func NewClient(serverURL string, opts ...Option) (*Client, error) { if err != nil { return nil, err } - c := &Client{ - cfg: newConfig(opts...), - serverURL: u, - } - if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { - return nil, err - } - if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { - return nil, err - } - if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + c, err := newConfig(opts...).baseClient() + if err != nil { return nil, err } - return c, nil + return &Client{ + serverURL: u, + baseClient: c, + }, nil } type serverURLKey struct{} diff --git a/examples/ex_test_format/oas_handlers_gen.go b/examples/ex_test_format/oas_handlers_gen.go index 329f18a72..b8b24ab7f 100644 --- a/examples/ex_test_format/oas_handlers_gen.go +++ b/examples/ex_test_format/oas_handlers_gen.go @@ -20,9 +20,6 @@ import ( "github.com/ogen-go/ogen/otelogen" ) -// Allocate option closure once. -var serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) - // handleTestQueryParameterRequest handles test_query_parameter operation. // // POST /test_query_parameter diff --git a/examples/ex_test_format/oas_parameters_gen.go b/examples/ex_test_format/oas_parameters_gen.go index fb72445df..8f40bb9f6 100644 --- a/examples/ex_test_format/oas_parameters_gen.go +++ b/examples/ex_test_format/oas_parameters_gen.go @@ -17,6 +17,7 @@ import ( "github.com/ogen-go/ogen/validate" ) +// TestQueryParameterParams is parameters of test_query_parameter operation. type TestQueryParameterParams struct { Boolean bool BooleanArray []bool diff --git a/examples/ex_test_format/oas_request_encoders_gen.go b/examples/ex_test_format/oas_request_encoders_gen.go index 26e7a1566..900bdda51 100644 --- a/examples/ex_test_format/oas_request_encoders_gen.go +++ b/examples/ex_test_format/oas_request_encoders_gen.go @@ -29,6 +29,7 @@ func encodeTestQueryParameterRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestAnyRequest( req jx.Raw, r *http.Request, @@ -44,6 +45,7 @@ func encodeTestRequestAnyRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestBooleanRequest( req OptBool, r *http.Request, @@ -63,6 +65,7 @@ func encodeTestRequestBooleanRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestBooleanArrayRequest( req []bool, r *http.Request, @@ -82,6 +85,7 @@ func encodeTestRequestBooleanArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestBooleanArrayArrayRequest( req [][]bool, r *http.Request, @@ -105,6 +109,7 @@ func encodeTestRequestBooleanArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestBooleanNullableRequest( req OptNilBool, r *http.Request, @@ -124,6 +129,7 @@ func encodeTestRequestBooleanNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestBooleanNullableArrayRequest( req []NilBool, r *http.Request, @@ -143,6 +149,7 @@ func encodeTestRequestBooleanNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestBooleanNullableArrayArrayRequest( req [][]NilBool, r *http.Request, @@ -166,6 +173,7 @@ func encodeTestRequestBooleanNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestEmptyStructRequest( req *TestRequestEmptyStructReq, r *http.Request, @@ -181,6 +189,7 @@ func encodeTestRequestEmptyStructRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestFormatTestRequest( req OptTestRequestFormatTestReq, r *http.Request, @@ -200,6 +209,7 @@ func encodeTestRequestFormatTestRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerRequest( req OptInt, r *http.Request, @@ -219,6 +229,7 @@ func encodeTestRequestIntegerRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerArrayRequest( req []int, r *http.Request, @@ -238,6 +249,7 @@ func encodeTestRequestIntegerArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerArrayArrayRequest( req [][]int, r *http.Request, @@ -261,6 +273,7 @@ func encodeTestRequestIntegerArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerInt32Request( req OptInt32, r *http.Request, @@ -280,6 +293,7 @@ func encodeTestRequestIntegerInt32Request( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerInt32ArrayRequest( req []int32, r *http.Request, @@ -299,6 +313,7 @@ func encodeTestRequestIntegerInt32ArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerInt32ArrayArrayRequest( req [][]int32, r *http.Request, @@ -322,6 +337,7 @@ func encodeTestRequestIntegerInt32ArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerInt32NullableRequest( req OptNilInt32, r *http.Request, @@ -341,6 +357,7 @@ func encodeTestRequestIntegerInt32NullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerInt32NullableArrayRequest( req []NilInt32, r *http.Request, @@ -360,6 +377,7 @@ func encodeTestRequestIntegerInt32NullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerInt32NullableArrayArrayRequest( req [][]NilInt32, r *http.Request, @@ -383,6 +401,7 @@ func encodeTestRequestIntegerInt32NullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerInt64Request( req OptInt64, r *http.Request, @@ -402,6 +421,7 @@ func encodeTestRequestIntegerInt64Request( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerInt64ArrayRequest( req []int64, r *http.Request, @@ -421,6 +441,7 @@ func encodeTestRequestIntegerInt64ArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerInt64ArrayArrayRequest( req [][]int64, r *http.Request, @@ -444,6 +465,7 @@ func encodeTestRequestIntegerInt64ArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerInt64NullableRequest( req OptNilInt64, r *http.Request, @@ -463,6 +485,7 @@ func encodeTestRequestIntegerInt64NullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerInt64NullableArrayRequest( req []NilInt64, r *http.Request, @@ -482,6 +505,7 @@ func encodeTestRequestIntegerInt64NullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerInt64NullableArrayArrayRequest( req [][]NilInt64, r *http.Request, @@ -505,6 +529,7 @@ func encodeTestRequestIntegerInt64NullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerNullableRequest( req OptNilInt, r *http.Request, @@ -524,6 +549,7 @@ func encodeTestRequestIntegerNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerNullableArrayRequest( req []NilInt, r *http.Request, @@ -543,6 +569,7 @@ func encodeTestRequestIntegerNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerNullableArrayArrayRequest( req [][]NilInt, r *http.Request, @@ -566,6 +593,7 @@ func encodeTestRequestIntegerNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUintRequest( req OptUint, r *http.Request, @@ -585,6 +613,7 @@ func encodeTestRequestIntegerUintRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUint32Request( req OptUint32, r *http.Request, @@ -604,6 +633,7 @@ func encodeTestRequestIntegerUint32Request( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUint32ArrayRequest( req []uint32, r *http.Request, @@ -623,6 +653,7 @@ func encodeTestRequestIntegerUint32ArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUint32ArrayArrayRequest( req [][]uint32, r *http.Request, @@ -646,6 +677,7 @@ func encodeTestRequestIntegerUint32ArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUint32NullableRequest( req OptNilUint32, r *http.Request, @@ -665,6 +697,7 @@ func encodeTestRequestIntegerUint32NullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUint32NullableArrayRequest( req []NilUint32, r *http.Request, @@ -684,6 +717,7 @@ func encodeTestRequestIntegerUint32NullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUint32NullableArrayArrayRequest( req [][]NilUint32, r *http.Request, @@ -707,6 +741,7 @@ func encodeTestRequestIntegerUint32NullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUint64Request( req OptUint64, r *http.Request, @@ -726,6 +761,7 @@ func encodeTestRequestIntegerUint64Request( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUint64ArrayRequest( req []uint64, r *http.Request, @@ -745,6 +781,7 @@ func encodeTestRequestIntegerUint64ArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUint64ArrayArrayRequest( req [][]uint64, r *http.Request, @@ -768,6 +805,7 @@ func encodeTestRequestIntegerUint64ArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUint64NullableRequest( req OptNilUint64, r *http.Request, @@ -787,6 +825,7 @@ func encodeTestRequestIntegerUint64NullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUint64NullableArrayRequest( req []NilUint64, r *http.Request, @@ -806,6 +845,7 @@ func encodeTestRequestIntegerUint64NullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUint64NullableArrayArrayRequest( req [][]NilUint64, r *http.Request, @@ -829,6 +869,7 @@ func encodeTestRequestIntegerUint64NullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUintArrayRequest( req []uint, r *http.Request, @@ -848,6 +889,7 @@ func encodeTestRequestIntegerUintArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUintArrayArrayRequest( req [][]uint, r *http.Request, @@ -871,6 +913,7 @@ func encodeTestRequestIntegerUintArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUintNullableRequest( req OptNilUint, r *http.Request, @@ -890,6 +933,7 @@ func encodeTestRequestIntegerUintNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUintNullableArrayRequest( req []NilUint, r *http.Request, @@ -909,6 +953,7 @@ func encodeTestRequestIntegerUintNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUintNullableArrayArrayRequest( req [][]NilUint, r *http.Request, @@ -932,6 +977,7 @@ func encodeTestRequestIntegerUintNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUnixRequest( req OptUnixSeconds, r *http.Request, @@ -951,6 +997,7 @@ func encodeTestRequestIntegerUnixRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUnixArrayRequest( req []time.Time, r *http.Request, @@ -970,6 +1017,7 @@ func encodeTestRequestIntegerUnixArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUnixArrayArrayRequest( req [][]time.Time, r *http.Request, @@ -993,6 +1041,7 @@ func encodeTestRequestIntegerUnixArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUnixMicroRequest( req OptUnixMicro, r *http.Request, @@ -1012,6 +1061,7 @@ func encodeTestRequestIntegerUnixMicroRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUnixMicroArrayRequest( req []time.Time, r *http.Request, @@ -1031,6 +1081,7 @@ func encodeTestRequestIntegerUnixMicroArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUnixMicroArrayArrayRequest( req [][]time.Time, r *http.Request, @@ -1054,6 +1105,7 @@ func encodeTestRequestIntegerUnixMicroArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUnixMicroNullableRequest( req OptNilUnixMicro, r *http.Request, @@ -1073,6 +1125,7 @@ func encodeTestRequestIntegerUnixMicroNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUnixMicroNullableArrayRequest( req []NilUnixMicro, r *http.Request, @@ -1092,6 +1145,7 @@ func encodeTestRequestIntegerUnixMicroNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUnixMicroNullableArrayArrayRequest( req [][]NilUnixMicro, r *http.Request, @@ -1115,6 +1169,7 @@ func encodeTestRequestIntegerUnixMicroNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUnixMilliRequest( req OptUnixMilli, r *http.Request, @@ -1134,6 +1189,7 @@ func encodeTestRequestIntegerUnixMilliRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUnixMilliArrayRequest( req []time.Time, r *http.Request, @@ -1153,6 +1209,7 @@ func encodeTestRequestIntegerUnixMilliArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUnixMilliArrayArrayRequest( req [][]time.Time, r *http.Request, @@ -1176,6 +1233,7 @@ func encodeTestRequestIntegerUnixMilliArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUnixMilliNullableRequest( req OptNilUnixMilli, r *http.Request, @@ -1195,6 +1253,7 @@ func encodeTestRequestIntegerUnixMilliNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUnixMilliNullableArrayRequest( req []NilUnixMilli, r *http.Request, @@ -1214,6 +1273,7 @@ func encodeTestRequestIntegerUnixMilliNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUnixMilliNullableArrayArrayRequest( req [][]NilUnixMilli, r *http.Request, @@ -1237,6 +1297,7 @@ func encodeTestRequestIntegerUnixMilliNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUnixNanoRequest( req OptUnixNano, r *http.Request, @@ -1256,6 +1317,7 @@ func encodeTestRequestIntegerUnixNanoRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUnixNanoArrayRequest( req []time.Time, r *http.Request, @@ -1275,6 +1337,7 @@ func encodeTestRequestIntegerUnixNanoArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUnixNanoArrayArrayRequest( req [][]time.Time, r *http.Request, @@ -1298,6 +1361,7 @@ func encodeTestRequestIntegerUnixNanoArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUnixNanoNullableRequest( req OptNilUnixNano, r *http.Request, @@ -1317,6 +1381,7 @@ func encodeTestRequestIntegerUnixNanoNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUnixNanoNullableArrayRequest( req []NilUnixNano, r *http.Request, @@ -1336,6 +1401,7 @@ func encodeTestRequestIntegerUnixNanoNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUnixNanoNullableArrayArrayRequest( req [][]NilUnixNano, r *http.Request, @@ -1359,6 +1425,7 @@ func encodeTestRequestIntegerUnixNanoNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUnixNullableRequest( req OptNilUnixSeconds, r *http.Request, @@ -1378,6 +1445,7 @@ func encodeTestRequestIntegerUnixNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUnixNullableArrayRequest( req []NilUnixSeconds, r *http.Request, @@ -1397,6 +1465,7 @@ func encodeTestRequestIntegerUnixNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUnixNullableArrayArrayRequest( req [][]NilUnixSeconds, r *http.Request, @@ -1420,6 +1489,7 @@ func encodeTestRequestIntegerUnixNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUnixSecondsRequest( req OptUnixSeconds, r *http.Request, @@ -1439,6 +1509,7 @@ func encodeTestRequestIntegerUnixSecondsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUnixSecondsArrayRequest( req []time.Time, r *http.Request, @@ -1458,6 +1529,7 @@ func encodeTestRequestIntegerUnixSecondsArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUnixSecondsArrayArrayRequest( req [][]time.Time, r *http.Request, @@ -1481,6 +1553,7 @@ func encodeTestRequestIntegerUnixSecondsArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUnixSecondsNullableRequest( req OptNilUnixSeconds, r *http.Request, @@ -1500,6 +1573,7 @@ func encodeTestRequestIntegerUnixSecondsNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUnixSecondsNullableArrayRequest( req []NilUnixSeconds, r *http.Request, @@ -1519,6 +1593,7 @@ func encodeTestRequestIntegerUnixSecondsNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestIntegerUnixSecondsNullableArrayArrayRequest( req [][]NilUnixSeconds, r *http.Request, @@ -1542,6 +1617,7 @@ func encodeTestRequestIntegerUnixSecondsNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNullRequest( req OptNull, r *http.Request, @@ -1561,6 +1637,7 @@ func encodeTestRequestNullRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNullArrayRequest( req []struct{}, r *http.Request, @@ -1581,6 +1658,7 @@ func encodeTestRequestNullArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNullArrayArrayRequest( req [][]struct{}, r *http.Request, @@ -1605,6 +1683,7 @@ func encodeTestRequestNullArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNullNullableRequest( req OptNull, r *http.Request, @@ -1624,6 +1703,7 @@ func encodeTestRequestNullNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNullNullableArrayRequest( req []struct{}, r *http.Request, @@ -1644,6 +1724,7 @@ func encodeTestRequestNullNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNullNullableArrayArrayRequest( req [][]struct{}, r *http.Request, @@ -1668,6 +1749,7 @@ func encodeTestRequestNullNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNumberRequest( req OptFloat64, r *http.Request, @@ -1687,6 +1769,7 @@ func encodeTestRequestNumberRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNumberArrayRequest( req []float64, r *http.Request, @@ -1706,6 +1789,7 @@ func encodeTestRequestNumberArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNumberArrayArrayRequest( req [][]float64, r *http.Request, @@ -1729,6 +1813,7 @@ func encodeTestRequestNumberArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNumberDoubleRequest( req OptFloat64, r *http.Request, @@ -1748,6 +1833,7 @@ func encodeTestRequestNumberDoubleRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNumberDoubleArrayRequest( req []float64, r *http.Request, @@ -1767,6 +1853,7 @@ func encodeTestRequestNumberDoubleArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNumberDoubleArrayArrayRequest( req [][]float64, r *http.Request, @@ -1790,6 +1877,7 @@ func encodeTestRequestNumberDoubleArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNumberDoubleNullableRequest( req OptNilFloat64, r *http.Request, @@ -1809,6 +1897,7 @@ func encodeTestRequestNumberDoubleNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNumberDoubleNullableArrayRequest( req []NilFloat64, r *http.Request, @@ -1828,6 +1917,7 @@ func encodeTestRequestNumberDoubleNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNumberDoubleNullableArrayArrayRequest( req [][]NilFloat64, r *http.Request, @@ -1851,6 +1941,7 @@ func encodeTestRequestNumberDoubleNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNumberFloatRequest( req OptFloat32, r *http.Request, @@ -1870,6 +1961,7 @@ func encodeTestRequestNumberFloatRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNumberFloatArrayRequest( req []float32, r *http.Request, @@ -1889,6 +1981,7 @@ func encodeTestRequestNumberFloatArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNumberFloatArrayArrayRequest( req [][]float32, r *http.Request, @@ -1912,6 +2005,7 @@ func encodeTestRequestNumberFloatArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNumberFloatNullableRequest( req OptNilFloat32, r *http.Request, @@ -1931,6 +2025,7 @@ func encodeTestRequestNumberFloatNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNumberFloatNullableArrayRequest( req []NilFloat32, r *http.Request, @@ -1950,6 +2045,7 @@ func encodeTestRequestNumberFloatNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNumberFloatNullableArrayArrayRequest( req [][]NilFloat32, r *http.Request, @@ -1973,6 +2069,7 @@ func encodeTestRequestNumberFloatNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNumberInt32Request( req OptInt32, r *http.Request, @@ -1992,6 +2089,7 @@ func encodeTestRequestNumberInt32Request( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNumberInt32ArrayRequest( req []int32, r *http.Request, @@ -2011,6 +2109,7 @@ func encodeTestRequestNumberInt32ArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNumberInt32ArrayArrayRequest( req [][]int32, r *http.Request, @@ -2034,6 +2133,7 @@ func encodeTestRequestNumberInt32ArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNumberInt32NullableRequest( req OptNilInt32, r *http.Request, @@ -2053,6 +2153,7 @@ func encodeTestRequestNumberInt32NullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNumberInt32NullableArrayRequest( req []NilInt32, r *http.Request, @@ -2072,6 +2173,7 @@ func encodeTestRequestNumberInt32NullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNumberInt32NullableArrayArrayRequest( req [][]NilInt32, r *http.Request, @@ -2095,6 +2197,7 @@ func encodeTestRequestNumberInt32NullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNumberInt64Request( req OptInt64, r *http.Request, @@ -2114,6 +2217,7 @@ func encodeTestRequestNumberInt64Request( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNumberInt64ArrayRequest( req []int64, r *http.Request, @@ -2133,6 +2237,7 @@ func encodeTestRequestNumberInt64ArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNumberInt64ArrayArrayRequest( req [][]int64, r *http.Request, @@ -2156,6 +2261,7 @@ func encodeTestRequestNumberInt64ArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNumberInt64NullableRequest( req OptNilInt64, r *http.Request, @@ -2175,6 +2281,7 @@ func encodeTestRequestNumberInt64NullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNumberInt64NullableArrayRequest( req []NilInt64, r *http.Request, @@ -2194,6 +2301,7 @@ func encodeTestRequestNumberInt64NullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNumberInt64NullableArrayArrayRequest( req [][]NilInt64, r *http.Request, @@ -2217,6 +2325,7 @@ func encodeTestRequestNumberInt64NullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNumberNullableRequest( req OptNilFloat64, r *http.Request, @@ -2236,6 +2345,7 @@ func encodeTestRequestNumberNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNumberNullableArrayRequest( req []NilFloat64, r *http.Request, @@ -2255,6 +2365,7 @@ func encodeTestRequestNumberNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestNumberNullableArrayArrayRequest( req [][]NilFloat64, r *http.Request, @@ -2278,6 +2389,7 @@ func encodeTestRequestNumberNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredAnyRequest( req jx.Raw, r *http.Request, @@ -2293,6 +2405,7 @@ func encodeTestRequestRequiredAnyRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredBooleanRequest( req bool, r *http.Request, @@ -2306,6 +2419,7 @@ func encodeTestRequestRequiredBooleanRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredBooleanArrayRequest( req []bool, r *http.Request, @@ -2323,6 +2437,7 @@ func encodeTestRequestRequiredBooleanArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredBooleanArrayArrayRequest( req [][]bool, r *http.Request, @@ -2344,6 +2459,7 @@ func encodeTestRequestRequiredBooleanArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredBooleanNullableRequest( req NilBool, r *http.Request, @@ -2357,6 +2473,7 @@ func encodeTestRequestRequiredBooleanNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredBooleanNullableArrayRequest( req []NilBool, r *http.Request, @@ -2374,6 +2491,7 @@ func encodeTestRequestRequiredBooleanNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredBooleanNullableArrayArrayRequest( req [][]NilBool, r *http.Request, @@ -2395,6 +2513,7 @@ func encodeTestRequestRequiredBooleanNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredEmptyStructRequest( req TestRequestRequiredEmptyStructReq, r *http.Request, @@ -2408,6 +2527,7 @@ func encodeTestRequestRequiredEmptyStructRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredFormatTestRequest( req TestRequestRequiredFormatTestReq, r *http.Request, @@ -2421,6 +2541,7 @@ func encodeTestRequestRequiredFormatTestRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerRequest( req int, r *http.Request, @@ -2434,6 +2555,7 @@ func encodeTestRequestRequiredIntegerRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerArrayRequest( req []int, r *http.Request, @@ -2451,6 +2573,7 @@ func encodeTestRequestRequiredIntegerArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerArrayArrayRequest( req [][]int, r *http.Request, @@ -2472,6 +2595,7 @@ func encodeTestRequestRequiredIntegerArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerInt32Request( req int32, r *http.Request, @@ -2485,6 +2609,7 @@ func encodeTestRequestRequiredIntegerInt32Request( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerInt32ArrayRequest( req []int32, r *http.Request, @@ -2502,6 +2627,7 @@ func encodeTestRequestRequiredIntegerInt32ArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerInt32ArrayArrayRequest( req [][]int32, r *http.Request, @@ -2523,6 +2649,7 @@ func encodeTestRequestRequiredIntegerInt32ArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerInt32NullableRequest( req NilInt32, r *http.Request, @@ -2536,6 +2663,7 @@ func encodeTestRequestRequiredIntegerInt32NullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerInt32NullableArrayRequest( req []NilInt32, r *http.Request, @@ -2553,6 +2681,7 @@ func encodeTestRequestRequiredIntegerInt32NullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerInt32NullableArrayArrayRequest( req [][]NilInt32, r *http.Request, @@ -2574,6 +2703,7 @@ func encodeTestRequestRequiredIntegerInt32NullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerInt64Request( req int64, r *http.Request, @@ -2587,6 +2717,7 @@ func encodeTestRequestRequiredIntegerInt64Request( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerInt64ArrayRequest( req []int64, r *http.Request, @@ -2604,6 +2735,7 @@ func encodeTestRequestRequiredIntegerInt64ArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerInt64ArrayArrayRequest( req [][]int64, r *http.Request, @@ -2625,6 +2757,7 @@ func encodeTestRequestRequiredIntegerInt64ArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerInt64NullableRequest( req NilInt64, r *http.Request, @@ -2638,6 +2771,7 @@ func encodeTestRequestRequiredIntegerInt64NullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerInt64NullableArrayRequest( req []NilInt64, r *http.Request, @@ -2655,6 +2789,7 @@ func encodeTestRequestRequiredIntegerInt64NullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerInt64NullableArrayArrayRequest( req [][]NilInt64, r *http.Request, @@ -2676,6 +2811,7 @@ func encodeTestRequestRequiredIntegerInt64NullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerNullableRequest( req NilInt, r *http.Request, @@ -2689,6 +2825,7 @@ func encodeTestRequestRequiredIntegerNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerNullableArrayRequest( req []NilInt, r *http.Request, @@ -2706,6 +2843,7 @@ func encodeTestRequestRequiredIntegerNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerNullableArrayArrayRequest( req [][]NilInt, r *http.Request, @@ -2727,6 +2865,7 @@ func encodeTestRequestRequiredIntegerNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUintRequest( req uint, r *http.Request, @@ -2740,6 +2879,7 @@ func encodeTestRequestRequiredIntegerUintRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUint32Request( req uint32, r *http.Request, @@ -2753,6 +2893,7 @@ func encodeTestRequestRequiredIntegerUint32Request( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUint32ArrayRequest( req []uint32, r *http.Request, @@ -2770,6 +2911,7 @@ func encodeTestRequestRequiredIntegerUint32ArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUint32ArrayArrayRequest( req [][]uint32, r *http.Request, @@ -2791,6 +2933,7 @@ func encodeTestRequestRequiredIntegerUint32ArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUint32NullableRequest( req NilUint32, r *http.Request, @@ -2804,6 +2947,7 @@ func encodeTestRequestRequiredIntegerUint32NullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUint32NullableArrayRequest( req []NilUint32, r *http.Request, @@ -2821,6 +2965,7 @@ func encodeTestRequestRequiredIntegerUint32NullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUint32NullableArrayArrayRequest( req [][]NilUint32, r *http.Request, @@ -2842,6 +2987,7 @@ func encodeTestRequestRequiredIntegerUint32NullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUint64Request( req uint64, r *http.Request, @@ -2855,6 +3001,7 @@ func encodeTestRequestRequiredIntegerUint64Request( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUint64ArrayRequest( req []uint64, r *http.Request, @@ -2872,6 +3019,7 @@ func encodeTestRequestRequiredIntegerUint64ArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUint64ArrayArrayRequest( req [][]uint64, r *http.Request, @@ -2893,6 +3041,7 @@ func encodeTestRequestRequiredIntegerUint64ArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUint64NullableRequest( req NilUint64, r *http.Request, @@ -2906,6 +3055,7 @@ func encodeTestRequestRequiredIntegerUint64NullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUint64NullableArrayRequest( req []NilUint64, r *http.Request, @@ -2923,6 +3073,7 @@ func encodeTestRequestRequiredIntegerUint64NullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUint64NullableArrayArrayRequest( req [][]NilUint64, r *http.Request, @@ -2944,6 +3095,7 @@ func encodeTestRequestRequiredIntegerUint64NullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUintArrayRequest( req []uint, r *http.Request, @@ -2961,6 +3113,7 @@ func encodeTestRequestRequiredIntegerUintArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUintArrayArrayRequest( req [][]uint, r *http.Request, @@ -2982,6 +3135,7 @@ func encodeTestRequestRequiredIntegerUintArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUintNullableRequest( req NilUint, r *http.Request, @@ -2995,6 +3149,7 @@ func encodeTestRequestRequiredIntegerUintNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUintNullableArrayRequest( req []NilUint, r *http.Request, @@ -3012,6 +3167,7 @@ func encodeTestRequestRequiredIntegerUintNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUintNullableArrayArrayRequest( req [][]NilUint, r *http.Request, @@ -3033,6 +3189,7 @@ func encodeTestRequestRequiredIntegerUintNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUnixRequest( req time.Time, r *http.Request, @@ -3046,6 +3203,7 @@ func encodeTestRequestRequiredIntegerUnixRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUnixArrayRequest( req []time.Time, r *http.Request, @@ -3063,6 +3221,7 @@ func encodeTestRequestRequiredIntegerUnixArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUnixArrayArrayRequest( req [][]time.Time, r *http.Request, @@ -3084,6 +3243,7 @@ func encodeTestRequestRequiredIntegerUnixArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUnixMicroRequest( req time.Time, r *http.Request, @@ -3097,6 +3257,7 @@ func encodeTestRequestRequiredIntegerUnixMicroRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUnixMicroArrayRequest( req []time.Time, r *http.Request, @@ -3114,6 +3275,7 @@ func encodeTestRequestRequiredIntegerUnixMicroArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUnixMicroArrayArrayRequest( req [][]time.Time, r *http.Request, @@ -3135,6 +3297,7 @@ func encodeTestRequestRequiredIntegerUnixMicroArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUnixMicroNullableRequest( req NilUnixMicro, r *http.Request, @@ -3148,6 +3311,7 @@ func encodeTestRequestRequiredIntegerUnixMicroNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUnixMicroNullableArrayRequest( req []NilUnixMicro, r *http.Request, @@ -3165,6 +3329,7 @@ func encodeTestRequestRequiredIntegerUnixMicroNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUnixMicroNullableArrayArrayRequest( req [][]NilUnixMicro, r *http.Request, @@ -3186,6 +3351,7 @@ func encodeTestRequestRequiredIntegerUnixMicroNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUnixMilliRequest( req time.Time, r *http.Request, @@ -3199,6 +3365,7 @@ func encodeTestRequestRequiredIntegerUnixMilliRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUnixMilliArrayRequest( req []time.Time, r *http.Request, @@ -3216,6 +3383,7 @@ func encodeTestRequestRequiredIntegerUnixMilliArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUnixMilliArrayArrayRequest( req [][]time.Time, r *http.Request, @@ -3237,6 +3405,7 @@ func encodeTestRequestRequiredIntegerUnixMilliArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUnixMilliNullableRequest( req NilUnixMilli, r *http.Request, @@ -3250,6 +3419,7 @@ func encodeTestRequestRequiredIntegerUnixMilliNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUnixMilliNullableArrayRequest( req []NilUnixMilli, r *http.Request, @@ -3267,6 +3437,7 @@ func encodeTestRequestRequiredIntegerUnixMilliNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUnixMilliNullableArrayArrayRequest( req [][]NilUnixMilli, r *http.Request, @@ -3288,6 +3459,7 @@ func encodeTestRequestRequiredIntegerUnixMilliNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUnixNanoRequest( req time.Time, r *http.Request, @@ -3301,6 +3473,7 @@ func encodeTestRequestRequiredIntegerUnixNanoRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUnixNanoArrayRequest( req []time.Time, r *http.Request, @@ -3318,6 +3491,7 @@ func encodeTestRequestRequiredIntegerUnixNanoArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUnixNanoArrayArrayRequest( req [][]time.Time, r *http.Request, @@ -3339,6 +3513,7 @@ func encodeTestRequestRequiredIntegerUnixNanoArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUnixNanoNullableRequest( req NilUnixNano, r *http.Request, @@ -3352,6 +3527,7 @@ func encodeTestRequestRequiredIntegerUnixNanoNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUnixNanoNullableArrayRequest( req []NilUnixNano, r *http.Request, @@ -3369,6 +3545,7 @@ func encodeTestRequestRequiredIntegerUnixNanoNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUnixNanoNullableArrayArrayRequest( req [][]NilUnixNano, r *http.Request, @@ -3390,6 +3567,7 @@ func encodeTestRequestRequiredIntegerUnixNanoNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUnixNullableRequest( req NilUnixSeconds, r *http.Request, @@ -3403,6 +3581,7 @@ func encodeTestRequestRequiredIntegerUnixNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUnixNullableArrayRequest( req []NilUnixSeconds, r *http.Request, @@ -3420,6 +3599,7 @@ func encodeTestRequestRequiredIntegerUnixNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUnixNullableArrayArrayRequest( req [][]NilUnixSeconds, r *http.Request, @@ -3441,6 +3621,7 @@ func encodeTestRequestRequiredIntegerUnixNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUnixSecondsRequest( req time.Time, r *http.Request, @@ -3454,6 +3635,7 @@ func encodeTestRequestRequiredIntegerUnixSecondsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUnixSecondsArrayRequest( req []time.Time, r *http.Request, @@ -3471,6 +3653,7 @@ func encodeTestRequestRequiredIntegerUnixSecondsArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUnixSecondsArrayArrayRequest( req [][]time.Time, r *http.Request, @@ -3492,6 +3675,7 @@ func encodeTestRequestRequiredIntegerUnixSecondsArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUnixSecondsNullableRequest( req NilUnixSeconds, r *http.Request, @@ -3505,6 +3689,7 @@ func encodeTestRequestRequiredIntegerUnixSecondsNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUnixSecondsNullableArrayRequest( req []NilUnixSeconds, r *http.Request, @@ -3522,6 +3707,7 @@ func encodeTestRequestRequiredIntegerUnixSecondsNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredIntegerUnixSecondsNullableArrayArrayRequest( req [][]NilUnixSeconds, r *http.Request, @@ -3543,6 +3729,7 @@ func encodeTestRequestRequiredIntegerUnixSecondsNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNullRequest( req struct{}, r *http.Request, @@ -3557,6 +3744,7 @@ func encodeTestRequestRequiredNullRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNullArrayRequest( req []struct{}, r *http.Request, @@ -3575,6 +3763,7 @@ func encodeTestRequestRequiredNullArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNullArrayArrayRequest( req [][]struct{}, r *http.Request, @@ -3597,6 +3786,7 @@ func encodeTestRequestRequiredNullArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNullNullableRequest( req struct{}, r *http.Request, @@ -3611,6 +3801,7 @@ func encodeTestRequestRequiredNullNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNullNullableArrayRequest( req []struct{}, r *http.Request, @@ -3629,6 +3820,7 @@ func encodeTestRequestRequiredNullNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNullNullableArrayArrayRequest( req [][]struct{}, r *http.Request, @@ -3651,6 +3843,7 @@ func encodeTestRequestRequiredNullNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNumberRequest( req float64, r *http.Request, @@ -3664,6 +3857,7 @@ func encodeTestRequestRequiredNumberRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNumberArrayRequest( req []float64, r *http.Request, @@ -3681,6 +3875,7 @@ func encodeTestRequestRequiredNumberArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNumberArrayArrayRequest( req [][]float64, r *http.Request, @@ -3702,6 +3897,7 @@ func encodeTestRequestRequiredNumberArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNumberDoubleRequest( req float64, r *http.Request, @@ -3715,6 +3911,7 @@ func encodeTestRequestRequiredNumberDoubleRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNumberDoubleArrayRequest( req []float64, r *http.Request, @@ -3732,6 +3929,7 @@ func encodeTestRequestRequiredNumberDoubleArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNumberDoubleArrayArrayRequest( req [][]float64, r *http.Request, @@ -3753,6 +3951,7 @@ func encodeTestRequestRequiredNumberDoubleArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNumberDoubleNullableRequest( req NilFloat64, r *http.Request, @@ -3766,6 +3965,7 @@ func encodeTestRequestRequiredNumberDoubleNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNumberDoubleNullableArrayRequest( req []NilFloat64, r *http.Request, @@ -3783,6 +3983,7 @@ func encodeTestRequestRequiredNumberDoubleNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNumberDoubleNullableArrayArrayRequest( req [][]NilFloat64, r *http.Request, @@ -3804,6 +4005,7 @@ func encodeTestRequestRequiredNumberDoubleNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNumberFloatRequest( req float32, r *http.Request, @@ -3817,6 +4019,7 @@ func encodeTestRequestRequiredNumberFloatRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNumberFloatArrayRequest( req []float32, r *http.Request, @@ -3834,6 +4037,7 @@ func encodeTestRequestRequiredNumberFloatArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNumberFloatArrayArrayRequest( req [][]float32, r *http.Request, @@ -3855,6 +4059,7 @@ func encodeTestRequestRequiredNumberFloatArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNumberFloatNullableRequest( req NilFloat32, r *http.Request, @@ -3868,6 +4073,7 @@ func encodeTestRequestRequiredNumberFloatNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNumberFloatNullableArrayRequest( req []NilFloat32, r *http.Request, @@ -3885,6 +4091,7 @@ func encodeTestRequestRequiredNumberFloatNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNumberFloatNullableArrayArrayRequest( req [][]NilFloat32, r *http.Request, @@ -3906,6 +4113,7 @@ func encodeTestRequestRequiredNumberFloatNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNumberInt32Request( req int32, r *http.Request, @@ -3919,6 +4127,7 @@ func encodeTestRequestRequiredNumberInt32Request( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNumberInt32ArrayRequest( req []int32, r *http.Request, @@ -3936,6 +4145,7 @@ func encodeTestRequestRequiredNumberInt32ArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNumberInt32ArrayArrayRequest( req [][]int32, r *http.Request, @@ -3957,6 +4167,7 @@ func encodeTestRequestRequiredNumberInt32ArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNumberInt32NullableRequest( req NilInt32, r *http.Request, @@ -3970,6 +4181,7 @@ func encodeTestRequestRequiredNumberInt32NullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNumberInt32NullableArrayRequest( req []NilInt32, r *http.Request, @@ -3987,6 +4199,7 @@ func encodeTestRequestRequiredNumberInt32NullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNumberInt32NullableArrayArrayRequest( req [][]NilInt32, r *http.Request, @@ -4008,6 +4221,7 @@ func encodeTestRequestRequiredNumberInt32NullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNumberInt64Request( req int64, r *http.Request, @@ -4021,6 +4235,7 @@ func encodeTestRequestRequiredNumberInt64Request( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNumberInt64ArrayRequest( req []int64, r *http.Request, @@ -4038,6 +4253,7 @@ func encodeTestRequestRequiredNumberInt64ArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNumberInt64ArrayArrayRequest( req [][]int64, r *http.Request, @@ -4059,6 +4275,7 @@ func encodeTestRequestRequiredNumberInt64ArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNumberInt64NullableRequest( req NilInt64, r *http.Request, @@ -4072,6 +4289,7 @@ func encodeTestRequestRequiredNumberInt64NullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNumberInt64NullableArrayRequest( req []NilInt64, r *http.Request, @@ -4089,6 +4307,7 @@ func encodeTestRequestRequiredNumberInt64NullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNumberInt64NullableArrayArrayRequest( req [][]NilInt64, r *http.Request, @@ -4110,6 +4329,7 @@ func encodeTestRequestRequiredNumberInt64NullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNumberNullableRequest( req NilFloat64, r *http.Request, @@ -4123,6 +4343,7 @@ func encodeTestRequestRequiredNumberNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNumberNullableArrayRequest( req []NilFloat64, r *http.Request, @@ -4140,6 +4361,7 @@ func encodeTestRequestRequiredNumberNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredNumberNullableArrayArrayRequest( req [][]NilFloat64, r *http.Request, @@ -4161,6 +4383,7 @@ func encodeTestRequestRequiredNumberNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringRequest( req string, r *http.Request, @@ -4174,6 +4397,7 @@ func encodeTestRequestRequiredStringRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringArrayRequest( req []string, r *http.Request, @@ -4191,6 +4415,7 @@ func encodeTestRequestRequiredStringArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringArrayArrayRequest( req [][]string, r *http.Request, @@ -4212,6 +4437,7 @@ func encodeTestRequestRequiredStringArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringBinaryRequest( req string, r *http.Request, @@ -4225,6 +4451,7 @@ func encodeTestRequestRequiredStringBinaryRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringBinaryArrayRequest( req []string, r *http.Request, @@ -4242,6 +4469,7 @@ func encodeTestRequestRequiredStringBinaryArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringBinaryArrayArrayRequest( req [][]string, r *http.Request, @@ -4263,6 +4491,7 @@ func encodeTestRequestRequiredStringBinaryArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringBinaryNullableRequest( req NilString, r *http.Request, @@ -4276,6 +4505,7 @@ func encodeTestRequestRequiredStringBinaryNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringBinaryNullableArrayRequest( req []NilString, r *http.Request, @@ -4293,6 +4523,7 @@ func encodeTestRequestRequiredStringBinaryNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringBinaryNullableArrayArrayRequest( req [][]NilString, r *http.Request, @@ -4314,6 +4545,7 @@ func encodeTestRequestRequiredStringBinaryNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringByteRequest( req []byte, r *http.Request, @@ -4327,6 +4559,7 @@ func encodeTestRequestRequiredStringByteRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringByteArrayRequest( req [][]byte, r *http.Request, @@ -4344,6 +4577,7 @@ func encodeTestRequestRequiredStringByteArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringByteArrayArrayRequest( req [][][]byte, r *http.Request, @@ -4365,6 +4599,7 @@ func encodeTestRequestRequiredStringByteArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringByteNullableRequest( req []byte, r *http.Request, @@ -4378,6 +4613,7 @@ func encodeTestRequestRequiredStringByteNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringByteNullableArrayRequest( req [][]byte, r *http.Request, @@ -4395,6 +4631,7 @@ func encodeTestRequestRequiredStringByteNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringByteNullableArrayArrayRequest( req [][][]byte, r *http.Request, @@ -4416,6 +4653,7 @@ func encodeTestRequestRequiredStringByteNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringDateRequest( req time.Time, r *http.Request, @@ -4429,6 +4667,7 @@ func encodeTestRequestRequiredStringDateRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringDateArrayRequest( req []time.Time, r *http.Request, @@ -4446,6 +4685,7 @@ func encodeTestRequestRequiredStringDateArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringDateArrayArrayRequest( req [][]time.Time, r *http.Request, @@ -4467,6 +4707,7 @@ func encodeTestRequestRequiredStringDateArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringDateNullableRequest( req NilDate, r *http.Request, @@ -4480,6 +4721,7 @@ func encodeTestRequestRequiredStringDateNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringDateNullableArrayRequest( req []NilDate, r *http.Request, @@ -4497,6 +4739,7 @@ func encodeTestRequestRequiredStringDateNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringDateNullableArrayArrayRequest( req [][]NilDate, r *http.Request, @@ -4518,6 +4761,7 @@ func encodeTestRequestRequiredStringDateNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringDateTimeRequest( req time.Time, r *http.Request, @@ -4531,6 +4775,7 @@ func encodeTestRequestRequiredStringDateTimeRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringDateTimeArrayRequest( req []time.Time, r *http.Request, @@ -4548,6 +4793,7 @@ func encodeTestRequestRequiredStringDateTimeArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringDateTimeArrayArrayRequest( req [][]time.Time, r *http.Request, @@ -4569,6 +4815,7 @@ func encodeTestRequestRequiredStringDateTimeArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringDateTimeNullableRequest( req NilDateTime, r *http.Request, @@ -4582,6 +4829,7 @@ func encodeTestRequestRequiredStringDateTimeNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringDateTimeNullableArrayRequest( req []NilDateTime, r *http.Request, @@ -4599,6 +4847,7 @@ func encodeTestRequestRequiredStringDateTimeNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringDateTimeNullableArrayArrayRequest( req [][]NilDateTime, r *http.Request, @@ -4620,6 +4869,7 @@ func encodeTestRequestRequiredStringDateTimeNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringDurationRequest( req time.Duration, r *http.Request, @@ -4633,6 +4883,7 @@ func encodeTestRequestRequiredStringDurationRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringDurationArrayRequest( req []time.Duration, r *http.Request, @@ -4650,6 +4901,7 @@ func encodeTestRequestRequiredStringDurationArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringDurationArrayArrayRequest( req [][]time.Duration, r *http.Request, @@ -4671,6 +4923,7 @@ func encodeTestRequestRequiredStringDurationArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringDurationNullableRequest( req NilDuration, r *http.Request, @@ -4684,6 +4937,7 @@ func encodeTestRequestRequiredStringDurationNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringDurationNullableArrayRequest( req []NilDuration, r *http.Request, @@ -4701,6 +4955,7 @@ func encodeTestRequestRequiredStringDurationNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringDurationNullableArrayArrayRequest( req [][]NilDuration, r *http.Request, @@ -4722,6 +4977,7 @@ func encodeTestRequestRequiredStringDurationNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringEmailRequest( req string, r *http.Request, @@ -4735,6 +4991,7 @@ func encodeTestRequestRequiredStringEmailRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringEmailArrayRequest( req []string, r *http.Request, @@ -4752,6 +5009,7 @@ func encodeTestRequestRequiredStringEmailArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringEmailArrayArrayRequest( req [][]string, r *http.Request, @@ -4773,6 +5031,7 @@ func encodeTestRequestRequiredStringEmailArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringEmailNullableRequest( req NilString, r *http.Request, @@ -4786,6 +5045,7 @@ func encodeTestRequestRequiredStringEmailNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringEmailNullableArrayRequest( req []NilString, r *http.Request, @@ -4803,6 +5063,7 @@ func encodeTestRequestRequiredStringEmailNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringEmailNullableArrayArrayRequest( req [][]NilString, r *http.Request, @@ -4824,6 +5085,7 @@ func encodeTestRequestRequiredStringEmailNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringHostnameRequest( req string, r *http.Request, @@ -4837,6 +5099,7 @@ func encodeTestRequestRequiredStringHostnameRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringHostnameArrayRequest( req []string, r *http.Request, @@ -4854,6 +5117,7 @@ func encodeTestRequestRequiredStringHostnameArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringHostnameArrayArrayRequest( req [][]string, r *http.Request, @@ -4875,6 +5139,7 @@ func encodeTestRequestRequiredStringHostnameArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringHostnameNullableRequest( req NilString, r *http.Request, @@ -4888,6 +5153,7 @@ func encodeTestRequestRequiredStringHostnameNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringHostnameNullableArrayRequest( req []NilString, r *http.Request, @@ -4905,6 +5171,7 @@ func encodeTestRequestRequiredStringHostnameNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringHostnameNullableArrayArrayRequest( req [][]NilString, r *http.Request, @@ -4926,6 +5193,7 @@ func encodeTestRequestRequiredStringHostnameNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringIPRequest( req netip.Addr, r *http.Request, @@ -4939,6 +5207,7 @@ func encodeTestRequestRequiredStringIPRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringIPArrayRequest( req []netip.Addr, r *http.Request, @@ -4956,6 +5225,7 @@ func encodeTestRequestRequiredStringIPArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringIPArrayArrayRequest( req [][]netip.Addr, r *http.Request, @@ -4977,6 +5247,7 @@ func encodeTestRequestRequiredStringIPArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringIPNullableRequest( req NilIP, r *http.Request, @@ -4990,6 +5261,7 @@ func encodeTestRequestRequiredStringIPNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringIPNullableArrayRequest( req []NilIP, r *http.Request, @@ -5007,6 +5279,7 @@ func encodeTestRequestRequiredStringIPNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringIPNullableArrayArrayRequest( req [][]NilIP, r *http.Request, @@ -5028,6 +5301,7 @@ func encodeTestRequestRequiredStringIPNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringInt32Request( req int32, r *http.Request, @@ -5041,6 +5315,7 @@ func encodeTestRequestRequiredStringInt32Request( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringInt32ArrayRequest( req []int32, r *http.Request, @@ -5058,6 +5333,7 @@ func encodeTestRequestRequiredStringInt32ArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringInt32ArrayArrayRequest( req [][]int32, r *http.Request, @@ -5079,6 +5355,7 @@ func encodeTestRequestRequiredStringInt32ArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringInt32NullableRequest( req NilStringInt32, r *http.Request, @@ -5092,6 +5369,7 @@ func encodeTestRequestRequiredStringInt32NullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringInt32NullableArrayRequest( req []NilStringInt32, r *http.Request, @@ -5109,6 +5387,7 @@ func encodeTestRequestRequiredStringInt32NullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringInt32NullableArrayArrayRequest( req [][]NilStringInt32, r *http.Request, @@ -5130,6 +5409,7 @@ func encodeTestRequestRequiredStringInt32NullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringInt64Request( req int64, r *http.Request, @@ -5143,6 +5423,7 @@ func encodeTestRequestRequiredStringInt64Request( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringInt64ArrayRequest( req []int64, r *http.Request, @@ -5160,6 +5441,7 @@ func encodeTestRequestRequiredStringInt64ArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringInt64ArrayArrayRequest( req [][]int64, r *http.Request, @@ -5181,6 +5463,7 @@ func encodeTestRequestRequiredStringInt64ArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringInt64NullableRequest( req NilStringInt64, r *http.Request, @@ -5194,6 +5477,7 @@ func encodeTestRequestRequiredStringInt64NullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringInt64NullableArrayRequest( req []NilStringInt64, r *http.Request, @@ -5211,6 +5495,7 @@ func encodeTestRequestRequiredStringInt64NullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringInt64NullableArrayArrayRequest( req [][]NilStringInt64, r *http.Request, @@ -5232,6 +5517,7 @@ func encodeTestRequestRequiredStringInt64NullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringIpv4Request( req netip.Addr, r *http.Request, @@ -5245,6 +5531,7 @@ func encodeTestRequestRequiredStringIpv4Request( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringIpv4ArrayRequest( req []netip.Addr, r *http.Request, @@ -5262,6 +5549,7 @@ func encodeTestRequestRequiredStringIpv4ArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringIpv4ArrayArrayRequest( req [][]netip.Addr, r *http.Request, @@ -5283,6 +5571,7 @@ func encodeTestRequestRequiredStringIpv4ArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringIpv4NullableRequest( req NilIPv4, r *http.Request, @@ -5296,6 +5585,7 @@ func encodeTestRequestRequiredStringIpv4NullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringIpv4NullableArrayRequest( req []NilIPv4, r *http.Request, @@ -5313,6 +5603,7 @@ func encodeTestRequestRequiredStringIpv4NullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringIpv4NullableArrayArrayRequest( req [][]NilIPv4, r *http.Request, @@ -5334,6 +5625,7 @@ func encodeTestRequestRequiredStringIpv4NullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringIpv6Request( req netip.Addr, r *http.Request, @@ -5347,6 +5639,7 @@ func encodeTestRequestRequiredStringIpv6Request( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringIpv6ArrayRequest( req []netip.Addr, r *http.Request, @@ -5364,6 +5657,7 @@ func encodeTestRequestRequiredStringIpv6ArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringIpv6ArrayArrayRequest( req [][]netip.Addr, r *http.Request, @@ -5385,6 +5679,7 @@ func encodeTestRequestRequiredStringIpv6ArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringIpv6NullableRequest( req NilIPv6, r *http.Request, @@ -5398,6 +5693,7 @@ func encodeTestRequestRequiredStringIpv6NullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringIpv6NullableArrayRequest( req []NilIPv6, r *http.Request, @@ -5415,6 +5711,7 @@ func encodeTestRequestRequiredStringIpv6NullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringIpv6NullableArrayArrayRequest( req [][]NilIPv6, r *http.Request, @@ -5436,6 +5733,7 @@ func encodeTestRequestRequiredStringIpv6NullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringNullableRequest( req NilString, r *http.Request, @@ -5449,6 +5747,7 @@ func encodeTestRequestRequiredStringNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringNullableArrayRequest( req []NilString, r *http.Request, @@ -5466,6 +5765,7 @@ func encodeTestRequestRequiredStringNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringNullableArrayArrayRequest( req [][]NilString, r *http.Request, @@ -5487,6 +5787,7 @@ func encodeTestRequestRequiredStringNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringPasswordRequest( req string, r *http.Request, @@ -5500,6 +5801,7 @@ func encodeTestRequestRequiredStringPasswordRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringPasswordArrayRequest( req []string, r *http.Request, @@ -5517,6 +5819,7 @@ func encodeTestRequestRequiredStringPasswordArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringPasswordArrayArrayRequest( req [][]string, r *http.Request, @@ -5538,6 +5841,7 @@ func encodeTestRequestRequiredStringPasswordArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringPasswordNullableRequest( req NilString, r *http.Request, @@ -5551,6 +5855,7 @@ func encodeTestRequestRequiredStringPasswordNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringPasswordNullableArrayRequest( req []NilString, r *http.Request, @@ -5568,6 +5873,7 @@ func encodeTestRequestRequiredStringPasswordNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringPasswordNullableArrayArrayRequest( req [][]NilString, r *http.Request, @@ -5589,6 +5895,7 @@ func encodeTestRequestRequiredStringPasswordNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringTimeRequest( req time.Time, r *http.Request, @@ -5602,6 +5909,7 @@ func encodeTestRequestRequiredStringTimeRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringTimeArrayRequest( req []time.Time, r *http.Request, @@ -5619,6 +5927,7 @@ func encodeTestRequestRequiredStringTimeArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringTimeArrayArrayRequest( req [][]time.Time, r *http.Request, @@ -5640,6 +5949,7 @@ func encodeTestRequestRequiredStringTimeArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringTimeNullableRequest( req NilTime, r *http.Request, @@ -5653,6 +5963,7 @@ func encodeTestRequestRequiredStringTimeNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringTimeNullableArrayRequest( req []NilTime, r *http.Request, @@ -5670,6 +5981,7 @@ func encodeTestRequestRequiredStringTimeNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringTimeNullableArrayArrayRequest( req [][]NilTime, r *http.Request, @@ -5691,6 +6003,7 @@ func encodeTestRequestRequiredStringTimeNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringURIRequest( req url.URL, r *http.Request, @@ -5704,6 +6017,7 @@ func encodeTestRequestRequiredStringURIRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringURIArrayRequest( req []url.URL, r *http.Request, @@ -5721,6 +6035,7 @@ func encodeTestRequestRequiredStringURIArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringURIArrayArrayRequest( req [][]url.URL, r *http.Request, @@ -5742,6 +6057,7 @@ func encodeTestRequestRequiredStringURIArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringURINullableRequest( req NilURI, r *http.Request, @@ -5755,6 +6071,7 @@ func encodeTestRequestRequiredStringURINullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringURINullableArrayRequest( req []NilURI, r *http.Request, @@ -5772,6 +6089,7 @@ func encodeTestRequestRequiredStringURINullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringURINullableArrayArrayRequest( req [][]NilURI, r *http.Request, @@ -5793,6 +6111,7 @@ func encodeTestRequestRequiredStringURINullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUUIDRequest( req uuid.UUID, r *http.Request, @@ -5806,6 +6125,7 @@ func encodeTestRequestRequiredStringUUIDRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUUIDArrayRequest( req []uuid.UUID, r *http.Request, @@ -5823,6 +6143,7 @@ func encodeTestRequestRequiredStringUUIDArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUUIDArrayArrayRequest( req [][]uuid.UUID, r *http.Request, @@ -5844,6 +6165,7 @@ func encodeTestRequestRequiredStringUUIDArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUUIDNullableRequest( req NilUUID, r *http.Request, @@ -5857,6 +6179,7 @@ func encodeTestRequestRequiredStringUUIDNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUUIDNullableArrayRequest( req []NilUUID, r *http.Request, @@ -5874,6 +6197,7 @@ func encodeTestRequestRequiredStringUUIDNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUUIDNullableArrayArrayRequest( req [][]NilUUID, r *http.Request, @@ -5895,6 +6219,7 @@ func encodeTestRequestRequiredStringUUIDNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUnixRequest( req time.Time, r *http.Request, @@ -5908,6 +6233,7 @@ func encodeTestRequestRequiredStringUnixRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUnixArrayRequest( req []time.Time, r *http.Request, @@ -5925,6 +6251,7 @@ func encodeTestRequestRequiredStringUnixArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUnixArrayArrayRequest( req [][]time.Time, r *http.Request, @@ -5946,6 +6273,7 @@ func encodeTestRequestRequiredStringUnixArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUnixMicroRequest( req time.Time, r *http.Request, @@ -5959,6 +6287,7 @@ func encodeTestRequestRequiredStringUnixMicroRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUnixMicroArrayRequest( req []time.Time, r *http.Request, @@ -5976,6 +6305,7 @@ func encodeTestRequestRequiredStringUnixMicroArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUnixMicroArrayArrayRequest( req [][]time.Time, r *http.Request, @@ -5997,6 +6327,7 @@ func encodeTestRequestRequiredStringUnixMicroArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUnixMicroNullableRequest( req NilStringUnixMicro, r *http.Request, @@ -6010,6 +6341,7 @@ func encodeTestRequestRequiredStringUnixMicroNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUnixMicroNullableArrayRequest( req []NilStringUnixMicro, r *http.Request, @@ -6027,6 +6359,7 @@ func encodeTestRequestRequiredStringUnixMicroNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUnixMicroNullableArrayArrayRequest( req [][]NilStringUnixMicro, r *http.Request, @@ -6048,6 +6381,7 @@ func encodeTestRequestRequiredStringUnixMicroNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUnixMilliRequest( req time.Time, r *http.Request, @@ -6061,6 +6395,7 @@ func encodeTestRequestRequiredStringUnixMilliRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUnixMilliArrayRequest( req []time.Time, r *http.Request, @@ -6078,6 +6413,7 @@ func encodeTestRequestRequiredStringUnixMilliArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUnixMilliArrayArrayRequest( req [][]time.Time, r *http.Request, @@ -6099,6 +6435,7 @@ func encodeTestRequestRequiredStringUnixMilliArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUnixMilliNullableRequest( req NilStringUnixMilli, r *http.Request, @@ -6112,6 +6449,7 @@ func encodeTestRequestRequiredStringUnixMilliNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUnixMilliNullableArrayRequest( req []NilStringUnixMilli, r *http.Request, @@ -6129,6 +6467,7 @@ func encodeTestRequestRequiredStringUnixMilliNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUnixMilliNullableArrayArrayRequest( req [][]NilStringUnixMilli, r *http.Request, @@ -6150,6 +6489,7 @@ func encodeTestRequestRequiredStringUnixMilliNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUnixNanoRequest( req time.Time, r *http.Request, @@ -6163,6 +6503,7 @@ func encodeTestRequestRequiredStringUnixNanoRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUnixNanoArrayRequest( req []time.Time, r *http.Request, @@ -6180,6 +6521,7 @@ func encodeTestRequestRequiredStringUnixNanoArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUnixNanoArrayArrayRequest( req [][]time.Time, r *http.Request, @@ -6201,6 +6543,7 @@ func encodeTestRequestRequiredStringUnixNanoArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUnixNanoNullableRequest( req NilStringUnixNano, r *http.Request, @@ -6214,6 +6557,7 @@ func encodeTestRequestRequiredStringUnixNanoNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUnixNanoNullableArrayRequest( req []NilStringUnixNano, r *http.Request, @@ -6231,6 +6575,7 @@ func encodeTestRequestRequiredStringUnixNanoNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUnixNanoNullableArrayArrayRequest( req [][]NilStringUnixNano, r *http.Request, @@ -6252,6 +6597,7 @@ func encodeTestRequestRequiredStringUnixNanoNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUnixNullableRequest( req NilStringUnixSeconds, r *http.Request, @@ -6265,6 +6611,7 @@ func encodeTestRequestRequiredStringUnixNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUnixNullableArrayRequest( req []NilStringUnixSeconds, r *http.Request, @@ -6282,6 +6629,7 @@ func encodeTestRequestRequiredStringUnixNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUnixNullableArrayArrayRequest( req [][]NilStringUnixSeconds, r *http.Request, @@ -6303,6 +6651,7 @@ func encodeTestRequestRequiredStringUnixNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUnixSecondsRequest( req time.Time, r *http.Request, @@ -6316,6 +6665,7 @@ func encodeTestRequestRequiredStringUnixSecondsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUnixSecondsArrayRequest( req []time.Time, r *http.Request, @@ -6333,6 +6683,7 @@ func encodeTestRequestRequiredStringUnixSecondsArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUnixSecondsArrayArrayRequest( req [][]time.Time, r *http.Request, @@ -6354,6 +6705,7 @@ func encodeTestRequestRequiredStringUnixSecondsArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUnixSecondsNullableRequest( req NilStringUnixSeconds, r *http.Request, @@ -6367,6 +6719,7 @@ func encodeTestRequestRequiredStringUnixSecondsNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUnixSecondsNullableArrayRequest( req []NilStringUnixSeconds, r *http.Request, @@ -6384,6 +6737,7 @@ func encodeTestRequestRequiredStringUnixSecondsNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestRequiredStringUnixSecondsNullableArrayArrayRequest( req [][]NilStringUnixSeconds, r *http.Request, @@ -6405,6 +6759,7 @@ func encodeTestRequestRequiredStringUnixSecondsNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringRequest( req OptString, r *http.Request, @@ -6424,6 +6779,7 @@ func encodeTestRequestStringRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringArrayRequest( req []string, r *http.Request, @@ -6443,6 +6799,7 @@ func encodeTestRequestStringArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringArrayArrayRequest( req [][]string, r *http.Request, @@ -6466,6 +6823,7 @@ func encodeTestRequestStringArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringBinaryRequest( req OptString, r *http.Request, @@ -6485,6 +6843,7 @@ func encodeTestRequestStringBinaryRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringBinaryArrayRequest( req []string, r *http.Request, @@ -6504,6 +6863,7 @@ func encodeTestRequestStringBinaryArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringBinaryArrayArrayRequest( req [][]string, r *http.Request, @@ -6527,6 +6887,7 @@ func encodeTestRequestStringBinaryArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringBinaryNullableRequest( req OptNilString, r *http.Request, @@ -6546,6 +6907,7 @@ func encodeTestRequestStringBinaryNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringBinaryNullableArrayRequest( req []NilString, r *http.Request, @@ -6565,6 +6927,7 @@ func encodeTestRequestStringBinaryNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringBinaryNullableArrayArrayRequest( req [][]NilString, r *http.Request, @@ -6588,6 +6951,7 @@ func encodeTestRequestStringBinaryNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringByteRequest( req []byte, r *http.Request, @@ -6601,6 +6965,7 @@ func encodeTestRequestStringByteRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringByteArrayRequest( req [][]byte, r *http.Request, @@ -6620,6 +6985,7 @@ func encodeTestRequestStringByteArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringByteArrayArrayRequest( req [][][]byte, r *http.Request, @@ -6643,6 +7009,7 @@ func encodeTestRequestStringByteArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringByteNullableRequest( req OptNilByte, r *http.Request, @@ -6662,6 +7029,7 @@ func encodeTestRequestStringByteNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringByteNullableArrayRequest( req [][]byte, r *http.Request, @@ -6681,6 +7049,7 @@ func encodeTestRequestStringByteNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringByteNullableArrayArrayRequest( req [][][]byte, r *http.Request, @@ -6704,6 +7073,7 @@ func encodeTestRequestStringByteNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringDateRequest( req OptDate, r *http.Request, @@ -6723,6 +7093,7 @@ func encodeTestRequestStringDateRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringDateArrayRequest( req []time.Time, r *http.Request, @@ -6742,6 +7113,7 @@ func encodeTestRequestStringDateArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringDateArrayArrayRequest( req [][]time.Time, r *http.Request, @@ -6765,6 +7137,7 @@ func encodeTestRequestStringDateArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringDateNullableRequest( req OptNilDate, r *http.Request, @@ -6784,6 +7157,7 @@ func encodeTestRequestStringDateNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringDateNullableArrayRequest( req []NilDate, r *http.Request, @@ -6803,6 +7177,7 @@ func encodeTestRequestStringDateNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringDateNullableArrayArrayRequest( req [][]NilDate, r *http.Request, @@ -6826,6 +7201,7 @@ func encodeTestRequestStringDateNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringDateTimeRequest( req OptDateTime, r *http.Request, @@ -6845,6 +7221,7 @@ func encodeTestRequestStringDateTimeRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringDateTimeArrayRequest( req []time.Time, r *http.Request, @@ -6864,6 +7241,7 @@ func encodeTestRequestStringDateTimeArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringDateTimeArrayArrayRequest( req [][]time.Time, r *http.Request, @@ -6887,6 +7265,7 @@ func encodeTestRequestStringDateTimeArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringDateTimeNullableRequest( req OptNilDateTime, r *http.Request, @@ -6906,6 +7285,7 @@ func encodeTestRequestStringDateTimeNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringDateTimeNullableArrayRequest( req []NilDateTime, r *http.Request, @@ -6925,6 +7305,7 @@ func encodeTestRequestStringDateTimeNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringDateTimeNullableArrayArrayRequest( req [][]NilDateTime, r *http.Request, @@ -6948,6 +7329,7 @@ func encodeTestRequestStringDateTimeNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringDurationRequest( req OptDuration, r *http.Request, @@ -6967,6 +7349,7 @@ func encodeTestRequestStringDurationRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringDurationArrayRequest( req []time.Duration, r *http.Request, @@ -6986,6 +7369,7 @@ func encodeTestRequestStringDurationArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringDurationArrayArrayRequest( req [][]time.Duration, r *http.Request, @@ -7009,6 +7393,7 @@ func encodeTestRequestStringDurationArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringDurationNullableRequest( req OptNilDuration, r *http.Request, @@ -7028,6 +7413,7 @@ func encodeTestRequestStringDurationNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringDurationNullableArrayRequest( req []NilDuration, r *http.Request, @@ -7047,6 +7433,7 @@ func encodeTestRequestStringDurationNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringDurationNullableArrayArrayRequest( req [][]NilDuration, r *http.Request, @@ -7070,6 +7457,7 @@ func encodeTestRequestStringDurationNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringEmailRequest( req OptString, r *http.Request, @@ -7089,6 +7477,7 @@ func encodeTestRequestStringEmailRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringEmailArrayRequest( req []string, r *http.Request, @@ -7108,6 +7497,7 @@ func encodeTestRequestStringEmailArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringEmailArrayArrayRequest( req [][]string, r *http.Request, @@ -7131,6 +7521,7 @@ func encodeTestRequestStringEmailArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringEmailNullableRequest( req OptNilString, r *http.Request, @@ -7150,6 +7541,7 @@ func encodeTestRequestStringEmailNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringEmailNullableArrayRequest( req []NilString, r *http.Request, @@ -7169,6 +7561,7 @@ func encodeTestRequestStringEmailNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringEmailNullableArrayArrayRequest( req [][]NilString, r *http.Request, @@ -7192,6 +7585,7 @@ func encodeTestRequestStringEmailNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringHostnameRequest( req OptString, r *http.Request, @@ -7211,6 +7605,7 @@ func encodeTestRequestStringHostnameRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringHostnameArrayRequest( req []string, r *http.Request, @@ -7230,6 +7625,7 @@ func encodeTestRequestStringHostnameArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringHostnameArrayArrayRequest( req [][]string, r *http.Request, @@ -7253,6 +7649,7 @@ func encodeTestRequestStringHostnameArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringHostnameNullableRequest( req OptNilString, r *http.Request, @@ -7272,6 +7669,7 @@ func encodeTestRequestStringHostnameNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringHostnameNullableArrayRequest( req []NilString, r *http.Request, @@ -7291,6 +7689,7 @@ func encodeTestRequestStringHostnameNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringHostnameNullableArrayArrayRequest( req [][]NilString, r *http.Request, @@ -7314,6 +7713,7 @@ func encodeTestRequestStringHostnameNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringIPRequest( req OptIP, r *http.Request, @@ -7333,6 +7733,7 @@ func encodeTestRequestStringIPRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringIPArrayRequest( req []netip.Addr, r *http.Request, @@ -7352,6 +7753,7 @@ func encodeTestRequestStringIPArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringIPArrayArrayRequest( req [][]netip.Addr, r *http.Request, @@ -7375,6 +7777,7 @@ func encodeTestRequestStringIPArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringIPNullableRequest( req OptNilIP, r *http.Request, @@ -7394,6 +7797,7 @@ func encodeTestRequestStringIPNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringIPNullableArrayRequest( req []NilIP, r *http.Request, @@ -7413,6 +7817,7 @@ func encodeTestRequestStringIPNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringIPNullableArrayArrayRequest( req [][]NilIP, r *http.Request, @@ -7436,6 +7841,7 @@ func encodeTestRequestStringIPNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringInt32Request( req OptStringInt32, r *http.Request, @@ -7455,6 +7861,7 @@ func encodeTestRequestStringInt32Request( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringInt32ArrayRequest( req []int32, r *http.Request, @@ -7474,6 +7881,7 @@ func encodeTestRequestStringInt32ArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringInt32ArrayArrayRequest( req [][]int32, r *http.Request, @@ -7497,6 +7905,7 @@ func encodeTestRequestStringInt32ArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringInt32NullableRequest( req OptNilStringInt32, r *http.Request, @@ -7516,6 +7925,7 @@ func encodeTestRequestStringInt32NullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringInt32NullableArrayRequest( req []NilStringInt32, r *http.Request, @@ -7535,6 +7945,7 @@ func encodeTestRequestStringInt32NullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringInt32NullableArrayArrayRequest( req [][]NilStringInt32, r *http.Request, @@ -7558,6 +7969,7 @@ func encodeTestRequestStringInt32NullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringInt64Request( req OptStringInt64, r *http.Request, @@ -7577,6 +7989,7 @@ func encodeTestRequestStringInt64Request( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringInt64ArrayRequest( req []int64, r *http.Request, @@ -7596,6 +8009,7 @@ func encodeTestRequestStringInt64ArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringInt64ArrayArrayRequest( req [][]int64, r *http.Request, @@ -7619,6 +8033,7 @@ func encodeTestRequestStringInt64ArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringInt64NullableRequest( req OptNilStringInt64, r *http.Request, @@ -7638,6 +8053,7 @@ func encodeTestRequestStringInt64NullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringInt64NullableArrayRequest( req []NilStringInt64, r *http.Request, @@ -7657,6 +8073,7 @@ func encodeTestRequestStringInt64NullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringInt64NullableArrayArrayRequest( req [][]NilStringInt64, r *http.Request, @@ -7680,6 +8097,7 @@ func encodeTestRequestStringInt64NullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringIpv4Request( req OptIPv4, r *http.Request, @@ -7699,6 +8117,7 @@ func encodeTestRequestStringIpv4Request( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringIpv4ArrayRequest( req []netip.Addr, r *http.Request, @@ -7718,6 +8137,7 @@ func encodeTestRequestStringIpv4ArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringIpv4ArrayArrayRequest( req [][]netip.Addr, r *http.Request, @@ -7741,6 +8161,7 @@ func encodeTestRequestStringIpv4ArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringIpv4NullableRequest( req OptNilIPv4, r *http.Request, @@ -7760,6 +8181,7 @@ func encodeTestRequestStringIpv4NullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringIpv4NullableArrayRequest( req []NilIPv4, r *http.Request, @@ -7779,6 +8201,7 @@ func encodeTestRequestStringIpv4NullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringIpv4NullableArrayArrayRequest( req [][]NilIPv4, r *http.Request, @@ -7802,6 +8225,7 @@ func encodeTestRequestStringIpv4NullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringIpv6Request( req OptIPv6, r *http.Request, @@ -7821,6 +8245,7 @@ func encodeTestRequestStringIpv6Request( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringIpv6ArrayRequest( req []netip.Addr, r *http.Request, @@ -7840,6 +8265,7 @@ func encodeTestRequestStringIpv6ArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringIpv6ArrayArrayRequest( req [][]netip.Addr, r *http.Request, @@ -7863,6 +8289,7 @@ func encodeTestRequestStringIpv6ArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringIpv6NullableRequest( req OptNilIPv6, r *http.Request, @@ -7882,6 +8309,7 @@ func encodeTestRequestStringIpv6NullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringIpv6NullableArrayRequest( req []NilIPv6, r *http.Request, @@ -7901,6 +8329,7 @@ func encodeTestRequestStringIpv6NullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringIpv6NullableArrayArrayRequest( req [][]NilIPv6, r *http.Request, @@ -7924,6 +8353,7 @@ func encodeTestRequestStringIpv6NullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringNullableRequest( req OptNilString, r *http.Request, @@ -7943,6 +8373,7 @@ func encodeTestRequestStringNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringNullableArrayRequest( req []NilString, r *http.Request, @@ -7962,6 +8393,7 @@ func encodeTestRequestStringNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringNullableArrayArrayRequest( req [][]NilString, r *http.Request, @@ -7985,6 +8417,7 @@ func encodeTestRequestStringNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringPasswordRequest( req OptString, r *http.Request, @@ -8004,6 +8437,7 @@ func encodeTestRequestStringPasswordRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringPasswordArrayRequest( req []string, r *http.Request, @@ -8023,6 +8457,7 @@ func encodeTestRequestStringPasswordArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringPasswordArrayArrayRequest( req [][]string, r *http.Request, @@ -8046,6 +8481,7 @@ func encodeTestRequestStringPasswordArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringPasswordNullableRequest( req OptNilString, r *http.Request, @@ -8065,6 +8501,7 @@ func encodeTestRequestStringPasswordNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringPasswordNullableArrayRequest( req []NilString, r *http.Request, @@ -8084,6 +8521,7 @@ func encodeTestRequestStringPasswordNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringPasswordNullableArrayArrayRequest( req [][]NilString, r *http.Request, @@ -8107,6 +8545,7 @@ func encodeTestRequestStringPasswordNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringTimeRequest( req OptTime, r *http.Request, @@ -8126,6 +8565,7 @@ func encodeTestRequestStringTimeRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringTimeArrayRequest( req []time.Time, r *http.Request, @@ -8145,6 +8585,7 @@ func encodeTestRequestStringTimeArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringTimeArrayArrayRequest( req [][]time.Time, r *http.Request, @@ -8168,6 +8609,7 @@ func encodeTestRequestStringTimeArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringTimeNullableRequest( req OptNilTime, r *http.Request, @@ -8187,6 +8629,7 @@ func encodeTestRequestStringTimeNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringTimeNullableArrayRequest( req []NilTime, r *http.Request, @@ -8206,6 +8649,7 @@ func encodeTestRequestStringTimeNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringTimeNullableArrayArrayRequest( req [][]NilTime, r *http.Request, @@ -8229,6 +8673,7 @@ func encodeTestRequestStringTimeNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringURIRequest( req OptURI, r *http.Request, @@ -8248,6 +8693,7 @@ func encodeTestRequestStringURIRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringURIArrayRequest( req []url.URL, r *http.Request, @@ -8267,6 +8713,7 @@ func encodeTestRequestStringURIArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringURIArrayArrayRequest( req [][]url.URL, r *http.Request, @@ -8290,6 +8737,7 @@ func encodeTestRequestStringURIArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringURINullableRequest( req OptNilURI, r *http.Request, @@ -8309,6 +8757,7 @@ func encodeTestRequestStringURINullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringURINullableArrayRequest( req []NilURI, r *http.Request, @@ -8328,6 +8777,7 @@ func encodeTestRequestStringURINullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringURINullableArrayArrayRequest( req [][]NilURI, r *http.Request, @@ -8351,6 +8801,7 @@ func encodeTestRequestStringURINullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUUIDRequest( req OptUUID, r *http.Request, @@ -8370,6 +8821,7 @@ func encodeTestRequestStringUUIDRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUUIDArrayRequest( req []uuid.UUID, r *http.Request, @@ -8389,6 +8841,7 @@ func encodeTestRequestStringUUIDArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUUIDArrayArrayRequest( req [][]uuid.UUID, r *http.Request, @@ -8412,6 +8865,7 @@ func encodeTestRequestStringUUIDArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUUIDNullableRequest( req OptNilUUID, r *http.Request, @@ -8431,6 +8885,7 @@ func encodeTestRequestStringUUIDNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUUIDNullableArrayRequest( req []NilUUID, r *http.Request, @@ -8450,6 +8905,7 @@ func encodeTestRequestStringUUIDNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUUIDNullableArrayArrayRequest( req [][]NilUUID, r *http.Request, @@ -8473,6 +8929,7 @@ func encodeTestRequestStringUUIDNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUnixRequest( req OptStringUnixSeconds, r *http.Request, @@ -8492,6 +8949,7 @@ func encodeTestRequestStringUnixRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUnixArrayRequest( req []time.Time, r *http.Request, @@ -8511,6 +8969,7 @@ func encodeTestRequestStringUnixArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUnixArrayArrayRequest( req [][]time.Time, r *http.Request, @@ -8534,6 +8993,7 @@ func encodeTestRequestStringUnixArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUnixMicroRequest( req OptStringUnixMicro, r *http.Request, @@ -8553,6 +9013,7 @@ func encodeTestRequestStringUnixMicroRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUnixMicroArrayRequest( req []time.Time, r *http.Request, @@ -8572,6 +9033,7 @@ func encodeTestRequestStringUnixMicroArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUnixMicroArrayArrayRequest( req [][]time.Time, r *http.Request, @@ -8595,6 +9057,7 @@ func encodeTestRequestStringUnixMicroArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUnixMicroNullableRequest( req OptNilStringUnixMicro, r *http.Request, @@ -8614,6 +9077,7 @@ func encodeTestRequestStringUnixMicroNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUnixMicroNullableArrayRequest( req []NilStringUnixMicro, r *http.Request, @@ -8633,6 +9097,7 @@ func encodeTestRequestStringUnixMicroNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUnixMicroNullableArrayArrayRequest( req [][]NilStringUnixMicro, r *http.Request, @@ -8656,6 +9121,7 @@ func encodeTestRequestStringUnixMicroNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUnixMilliRequest( req OptStringUnixMilli, r *http.Request, @@ -8675,6 +9141,7 @@ func encodeTestRequestStringUnixMilliRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUnixMilliArrayRequest( req []time.Time, r *http.Request, @@ -8694,6 +9161,7 @@ func encodeTestRequestStringUnixMilliArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUnixMilliArrayArrayRequest( req [][]time.Time, r *http.Request, @@ -8717,6 +9185,7 @@ func encodeTestRequestStringUnixMilliArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUnixMilliNullableRequest( req OptNilStringUnixMilli, r *http.Request, @@ -8736,6 +9205,7 @@ func encodeTestRequestStringUnixMilliNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUnixMilliNullableArrayRequest( req []NilStringUnixMilli, r *http.Request, @@ -8755,6 +9225,7 @@ func encodeTestRequestStringUnixMilliNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUnixMilliNullableArrayArrayRequest( req [][]NilStringUnixMilli, r *http.Request, @@ -8778,6 +9249,7 @@ func encodeTestRequestStringUnixMilliNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUnixNanoRequest( req OptStringUnixNano, r *http.Request, @@ -8797,6 +9269,7 @@ func encodeTestRequestStringUnixNanoRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUnixNanoArrayRequest( req []time.Time, r *http.Request, @@ -8816,6 +9289,7 @@ func encodeTestRequestStringUnixNanoArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUnixNanoArrayArrayRequest( req [][]time.Time, r *http.Request, @@ -8839,6 +9313,7 @@ func encodeTestRequestStringUnixNanoArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUnixNanoNullableRequest( req OptNilStringUnixNano, r *http.Request, @@ -8858,6 +9333,7 @@ func encodeTestRequestStringUnixNanoNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUnixNanoNullableArrayRequest( req []NilStringUnixNano, r *http.Request, @@ -8877,6 +9353,7 @@ func encodeTestRequestStringUnixNanoNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUnixNanoNullableArrayArrayRequest( req [][]NilStringUnixNano, r *http.Request, @@ -8900,6 +9377,7 @@ func encodeTestRequestStringUnixNanoNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUnixNullableRequest( req OptNilStringUnixSeconds, r *http.Request, @@ -8919,6 +9397,7 @@ func encodeTestRequestStringUnixNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUnixNullableArrayRequest( req []NilStringUnixSeconds, r *http.Request, @@ -8938,6 +9417,7 @@ func encodeTestRequestStringUnixNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUnixNullableArrayArrayRequest( req [][]NilStringUnixSeconds, r *http.Request, @@ -8961,6 +9441,7 @@ func encodeTestRequestStringUnixNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUnixSecondsRequest( req OptStringUnixSeconds, r *http.Request, @@ -8980,6 +9461,7 @@ func encodeTestRequestStringUnixSecondsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUnixSecondsArrayRequest( req []time.Time, r *http.Request, @@ -8999,6 +9481,7 @@ func encodeTestRequestStringUnixSecondsArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUnixSecondsArrayArrayRequest( req [][]time.Time, r *http.Request, @@ -9022,6 +9505,7 @@ func encodeTestRequestStringUnixSecondsArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUnixSecondsNullableRequest( req OptNilStringUnixSeconds, r *http.Request, @@ -9041,6 +9525,7 @@ func encodeTestRequestStringUnixSecondsNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUnixSecondsNullableArrayRequest( req []NilStringUnixSeconds, r *http.Request, @@ -9060,6 +9545,7 @@ func encodeTestRequestStringUnixSecondsNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestRequestStringUnixSecondsNullableArrayArrayRequest( req [][]NilStringUnixSeconds, r *http.Request, @@ -9083,6 +9569,7 @@ func encodeTestRequestStringUnixSecondsNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseAnyRequest( req string, r *http.Request, @@ -9096,6 +9583,7 @@ func encodeTestResponseAnyRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseBooleanRequest( req string, r *http.Request, @@ -9109,6 +9597,7 @@ func encodeTestResponseBooleanRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseBooleanArrayRequest( req string, r *http.Request, @@ -9122,6 +9611,7 @@ func encodeTestResponseBooleanArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseBooleanArrayArrayRequest( req string, r *http.Request, @@ -9135,6 +9625,7 @@ func encodeTestResponseBooleanArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseBooleanNullableRequest( req string, r *http.Request, @@ -9148,6 +9639,7 @@ func encodeTestResponseBooleanNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseBooleanNullableArrayRequest( req string, r *http.Request, @@ -9161,6 +9653,7 @@ func encodeTestResponseBooleanNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseBooleanNullableArrayArrayRequest( req string, r *http.Request, @@ -9174,6 +9667,7 @@ func encodeTestResponseBooleanNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseEmptyStructRequest( req string, r *http.Request, @@ -9187,6 +9681,7 @@ func encodeTestResponseEmptyStructRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseFormatTestRequest( req string, r *http.Request, @@ -9200,6 +9695,7 @@ func encodeTestResponseFormatTestRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerRequest( req string, r *http.Request, @@ -9213,6 +9709,7 @@ func encodeTestResponseIntegerRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerArrayRequest( req string, r *http.Request, @@ -9226,6 +9723,7 @@ func encodeTestResponseIntegerArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerArrayArrayRequest( req string, r *http.Request, @@ -9239,6 +9737,7 @@ func encodeTestResponseIntegerArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerInt32Request( req string, r *http.Request, @@ -9252,6 +9751,7 @@ func encodeTestResponseIntegerInt32Request( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerInt32ArrayRequest( req string, r *http.Request, @@ -9265,6 +9765,7 @@ func encodeTestResponseIntegerInt32ArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerInt32ArrayArrayRequest( req string, r *http.Request, @@ -9278,6 +9779,7 @@ func encodeTestResponseIntegerInt32ArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerInt32NullableRequest( req string, r *http.Request, @@ -9291,6 +9793,7 @@ func encodeTestResponseIntegerInt32NullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerInt32NullableArrayRequest( req string, r *http.Request, @@ -9304,6 +9807,7 @@ func encodeTestResponseIntegerInt32NullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerInt32NullableArrayArrayRequest( req string, r *http.Request, @@ -9317,6 +9821,7 @@ func encodeTestResponseIntegerInt32NullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerInt64Request( req string, r *http.Request, @@ -9330,6 +9835,7 @@ func encodeTestResponseIntegerInt64Request( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerInt64ArrayRequest( req string, r *http.Request, @@ -9343,6 +9849,7 @@ func encodeTestResponseIntegerInt64ArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerInt64ArrayArrayRequest( req string, r *http.Request, @@ -9356,6 +9863,7 @@ func encodeTestResponseIntegerInt64ArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerInt64NullableRequest( req string, r *http.Request, @@ -9369,6 +9877,7 @@ func encodeTestResponseIntegerInt64NullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerInt64NullableArrayRequest( req string, r *http.Request, @@ -9382,6 +9891,7 @@ func encodeTestResponseIntegerInt64NullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerInt64NullableArrayArrayRequest( req string, r *http.Request, @@ -9395,6 +9905,7 @@ func encodeTestResponseIntegerInt64NullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerNullableRequest( req string, r *http.Request, @@ -9408,6 +9919,7 @@ func encodeTestResponseIntegerNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerNullableArrayRequest( req string, r *http.Request, @@ -9421,6 +9933,7 @@ func encodeTestResponseIntegerNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerNullableArrayArrayRequest( req string, r *http.Request, @@ -9434,6 +9947,7 @@ func encodeTestResponseIntegerNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUintRequest( req string, r *http.Request, @@ -9447,6 +9961,7 @@ func encodeTestResponseIntegerUintRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUint32Request( req string, r *http.Request, @@ -9460,6 +9975,7 @@ func encodeTestResponseIntegerUint32Request( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUint32ArrayRequest( req string, r *http.Request, @@ -9473,6 +9989,7 @@ func encodeTestResponseIntegerUint32ArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUint32ArrayArrayRequest( req string, r *http.Request, @@ -9486,6 +10003,7 @@ func encodeTestResponseIntegerUint32ArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUint32NullableRequest( req string, r *http.Request, @@ -9499,6 +10017,7 @@ func encodeTestResponseIntegerUint32NullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUint32NullableArrayRequest( req string, r *http.Request, @@ -9512,6 +10031,7 @@ func encodeTestResponseIntegerUint32NullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUint32NullableArrayArrayRequest( req string, r *http.Request, @@ -9525,6 +10045,7 @@ func encodeTestResponseIntegerUint32NullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUint64Request( req string, r *http.Request, @@ -9538,6 +10059,7 @@ func encodeTestResponseIntegerUint64Request( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUint64ArrayRequest( req string, r *http.Request, @@ -9551,6 +10073,7 @@ func encodeTestResponseIntegerUint64ArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUint64ArrayArrayRequest( req string, r *http.Request, @@ -9564,6 +10087,7 @@ func encodeTestResponseIntegerUint64ArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUint64NullableRequest( req string, r *http.Request, @@ -9577,6 +10101,7 @@ func encodeTestResponseIntegerUint64NullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUint64NullableArrayRequest( req string, r *http.Request, @@ -9590,6 +10115,7 @@ func encodeTestResponseIntegerUint64NullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUint64NullableArrayArrayRequest( req string, r *http.Request, @@ -9603,6 +10129,7 @@ func encodeTestResponseIntegerUint64NullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUintArrayRequest( req string, r *http.Request, @@ -9616,6 +10143,7 @@ func encodeTestResponseIntegerUintArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUintArrayArrayRequest( req string, r *http.Request, @@ -9629,6 +10157,7 @@ func encodeTestResponseIntegerUintArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUintNullableRequest( req string, r *http.Request, @@ -9642,6 +10171,7 @@ func encodeTestResponseIntegerUintNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUintNullableArrayRequest( req string, r *http.Request, @@ -9655,6 +10185,7 @@ func encodeTestResponseIntegerUintNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUintNullableArrayArrayRequest( req string, r *http.Request, @@ -9668,6 +10199,7 @@ func encodeTestResponseIntegerUintNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUnixRequest( req string, r *http.Request, @@ -9681,6 +10213,7 @@ func encodeTestResponseIntegerUnixRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUnixArrayRequest( req string, r *http.Request, @@ -9694,6 +10227,7 @@ func encodeTestResponseIntegerUnixArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUnixArrayArrayRequest( req string, r *http.Request, @@ -9707,6 +10241,7 @@ func encodeTestResponseIntegerUnixArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUnixMicroRequest( req string, r *http.Request, @@ -9720,6 +10255,7 @@ func encodeTestResponseIntegerUnixMicroRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUnixMicroArrayRequest( req string, r *http.Request, @@ -9733,6 +10269,7 @@ func encodeTestResponseIntegerUnixMicroArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUnixMicroArrayArrayRequest( req string, r *http.Request, @@ -9746,6 +10283,7 @@ func encodeTestResponseIntegerUnixMicroArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUnixMicroNullableRequest( req string, r *http.Request, @@ -9759,6 +10297,7 @@ func encodeTestResponseIntegerUnixMicroNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUnixMicroNullableArrayRequest( req string, r *http.Request, @@ -9772,6 +10311,7 @@ func encodeTestResponseIntegerUnixMicroNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUnixMicroNullableArrayArrayRequest( req string, r *http.Request, @@ -9785,6 +10325,7 @@ func encodeTestResponseIntegerUnixMicroNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUnixMilliRequest( req string, r *http.Request, @@ -9798,6 +10339,7 @@ func encodeTestResponseIntegerUnixMilliRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUnixMilliArrayRequest( req string, r *http.Request, @@ -9811,6 +10353,7 @@ func encodeTestResponseIntegerUnixMilliArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUnixMilliArrayArrayRequest( req string, r *http.Request, @@ -9824,6 +10367,7 @@ func encodeTestResponseIntegerUnixMilliArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUnixMilliNullableRequest( req string, r *http.Request, @@ -9837,6 +10381,7 @@ func encodeTestResponseIntegerUnixMilliNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUnixMilliNullableArrayRequest( req string, r *http.Request, @@ -9850,6 +10395,7 @@ func encodeTestResponseIntegerUnixMilliNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUnixMilliNullableArrayArrayRequest( req string, r *http.Request, @@ -9863,6 +10409,7 @@ func encodeTestResponseIntegerUnixMilliNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUnixNanoRequest( req string, r *http.Request, @@ -9876,6 +10423,7 @@ func encodeTestResponseIntegerUnixNanoRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUnixNanoArrayRequest( req string, r *http.Request, @@ -9889,6 +10437,7 @@ func encodeTestResponseIntegerUnixNanoArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUnixNanoArrayArrayRequest( req string, r *http.Request, @@ -9902,6 +10451,7 @@ func encodeTestResponseIntegerUnixNanoArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUnixNanoNullableRequest( req string, r *http.Request, @@ -9915,6 +10465,7 @@ func encodeTestResponseIntegerUnixNanoNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUnixNanoNullableArrayRequest( req string, r *http.Request, @@ -9928,6 +10479,7 @@ func encodeTestResponseIntegerUnixNanoNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUnixNanoNullableArrayArrayRequest( req string, r *http.Request, @@ -9941,6 +10493,7 @@ func encodeTestResponseIntegerUnixNanoNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUnixNullableRequest( req string, r *http.Request, @@ -9954,6 +10507,7 @@ func encodeTestResponseIntegerUnixNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUnixNullableArrayRequest( req string, r *http.Request, @@ -9967,6 +10521,7 @@ func encodeTestResponseIntegerUnixNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUnixNullableArrayArrayRequest( req string, r *http.Request, @@ -9980,6 +10535,7 @@ func encodeTestResponseIntegerUnixNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUnixSecondsRequest( req string, r *http.Request, @@ -9993,6 +10549,7 @@ func encodeTestResponseIntegerUnixSecondsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUnixSecondsArrayRequest( req string, r *http.Request, @@ -10006,6 +10563,7 @@ func encodeTestResponseIntegerUnixSecondsArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUnixSecondsArrayArrayRequest( req string, r *http.Request, @@ -10019,6 +10577,7 @@ func encodeTestResponseIntegerUnixSecondsArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUnixSecondsNullableRequest( req string, r *http.Request, @@ -10032,6 +10591,7 @@ func encodeTestResponseIntegerUnixSecondsNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUnixSecondsNullableArrayRequest( req string, r *http.Request, @@ -10045,6 +10605,7 @@ func encodeTestResponseIntegerUnixSecondsNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseIntegerUnixSecondsNullableArrayArrayRequest( req string, r *http.Request, @@ -10058,6 +10619,7 @@ func encodeTestResponseIntegerUnixSecondsNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNullRequest( req string, r *http.Request, @@ -10071,6 +10633,7 @@ func encodeTestResponseNullRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNullArrayRequest( req string, r *http.Request, @@ -10084,6 +10647,7 @@ func encodeTestResponseNullArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNullArrayArrayRequest( req string, r *http.Request, @@ -10097,6 +10661,7 @@ func encodeTestResponseNullArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNullNullableRequest( req string, r *http.Request, @@ -10110,6 +10675,7 @@ func encodeTestResponseNullNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNullNullableArrayRequest( req string, r *http.Request, @@ -10123,6 +10689,7 @@ func encodeTestResponseNullNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNullNullableArrayArrayRequest( req string, r *http.Request, @@ -10136,6 +10703,7 @@ func encodeTestResponseNullNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNumberRequest( req string, r *http.Request, @@ -10149,6 +10717,7 @@ func encodeTestResponseNumberRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNumberArrayRequest( req string, r *http.Request, @@ -10162,6 +10731,7 @@ func encodeTestResponseNumberArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNumberArrayArrayRequest( req string, r *http.Request, @@ -10175,6 +10745,7 @@ func encodeTestResponseNumberArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNumberDoubleRequest( req string, r *http.Request, @@ -10188,6 +10759,7 @@ func encodeTestResponseNumberDoubleRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNumberDoubleArrayRequest( req string, r *http.Request, @@ -10201,6 +10773,7 @@ func encodeTestResponseNumberDoubleArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNumberDoubleArrayArrayRequest( req string, r *http.Request, @@ -10214,6 +10787,7 @@ func encodeTestResponseNumberDoubleArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNumberDoubleNullableRequest( req string, r *http.Request, @@ -10227,6 +10801,7 @@ func encodeTestResponseNumberDoubleNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNumberDoubleNullableArrayRequest( req string, r *http.Request, @@ -10240,6 +10815,7 @@ func encodeTestResponseNumberDoubleNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNumberDoubleNullableArrayArrayRequest( req string, r *http.Request, @@ -10253,6 +10829,7 @@ func encodeTestResponseNumberDoubleNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNumberFloatRequest( req string, r *http.Request, @@ -10266,6 +10843,7 @@ func encodeTestResponseNumberFloatRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNumberFloatArrayRequest( req string, r *http.Request, @@ -10279,6 +10857,7 @@ func encodeTestResponseNumberFloatArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNumberFloatArrayArrayRequest( req string, r *http.Request, @@ -10292,6 +10871,7 @@ func encodeTestResponseNumberFloatArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNumberFloatNullableRequest( req string, r *http.Request, @@ -10305,6 +10885,7 @@ func encodeTestResponseNumberFloatNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNumberFloatNullableArrayRequest( req string, r *http.Request, @@ -10318,6 +10899,7 @@ func encodeTestResponseNumberFloatNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNumberFloatNullableArrayArrayRequest( req string, r *http.Request, @@ -10331,6 +10913,7 @@ func encodeTestResponseNumberFloatNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNumberInt32Request( req string, r *http.Request, @@ -10344,6 +10927,7 @@ func encodeTestResponseNumberInt32Request( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNumberInt32ArrayRequest( req string, r *http.Request, @@ -10357,6 +10941,7 @@ func encodeTestResponseNumberInt32ArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNumberInt32ArrayArrayRequest( req string, r *http.Request, @@ -10370,6 +10955,7 @@ func encodeTestResponseNumberInt32ArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNumberInt32NullableRequest( req string, r *http.Request, @@ -10383,6 +10969,7 @@ func encodeTestResponseNumberInt32NullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNumberInt32NullableArrayRequest( req string, r *http.Request, @@ -10396,6 +10983,7 @@ func encodeTestResponseNumberInt32NullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNumberInt32NullableArrayArrayRequest( req string, r *http.Request, @@ -10409,6 +10997,7 @@ func encodeTestResponseNumberInt32NullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNumberInt64Request( req string, r *http.Request, @@ -10422,6 +11011,7 @@ func encodeTestResponseNumberInt64Request( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNumberInt64ArrayRequest( req string, r *http.Request, @@ -10435,6 +11025,7 @@ func encodeTestResponseNumberInt64ArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNumberInt64ArrayArrayRequest( req string, r *http.Request, @@ -10448,6 +11039,7 @@ func encodeTestResponseNumberInt64ArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNumberInt64NullableRequest( req string, r *http.Request, @@ -10461,6 +11053,7 @@ func encodeTestResponseNumberInt64NullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNumberInt64NullableArrayRequest( req string, r *http.Request, @@ -10474,6 +11067,7 @@ func encodeTestResponseNumberInt64NullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNumberInt64NullableArrayArrayRequest( req string, r *http.Request, @@ -10487,6 +11081,7 @@ func encodeTestResponseNumberInt64NullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNumberNullableRequest( req string, r *http.Request, @@ -10500,6 +11095,7 @@ func encodeTestResponseNumberNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNumberNullableArrayRequest( req string, r *http.Request, @@ -10513,6 +11109,7 @@ func encodeTestResponseNumberNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseNumberNullableArrayArrayRequest( req string, r *http.Request, @@ -10526,6 +11123,7 @@ func encodeTestResponseNumberNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringRequest( req string, r *http.Request, @@ -10539,6 +11137,7 @@ func encodeTestResponseStringRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringArrayRequest( req string, r *http.Request, @@ -10552,6 +11151,7 @@ func encodeTestResponseStringArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringArrayArrayRequest( req string, r *http.Request, @@ -10565,6 +11165,7 @@ func encodeTestResponseStringArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringBinaryRequest( req string, r *http.Request, @@ -10578,6 +11179,7 @@ func encodeTestResponseStringBinaryRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringBinaryArrayRequest( req string, r *http.Request, @@ -10591,6 +11193,7 @@ func encodeTestResponseStringBinaryArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringBinaryArrayArrayRequest( req string, r *http.Request, @@ -10604,6 +11207,7 @@ func encodeTestResponseStringBinaryArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringBinaryNullableRequest( req string, r *http.Request, @@ -10617,6 +11221,7 @@ func encodeTestResponseStringBinaryNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringBinaryNullableArrayRequest( req string, r *http.Request, @@ -10630,6 +11235,7 @@ func encodeTestResponseStringBinaryNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringBinaryNullableArrayArrayRequest( req string, r *http.Request, @@ -10643,6 +11249,7 @@ func encodeTestResponseStringBinaryNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringByteRequest( req string, r *http.Request, @@ -10656,6 +11263,7 @@ func encodeTestResponseStringByteRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringByteArrayRequest( req string, r *http.Request, @@ -10669,6 +11277,7 @@ func encodeTestResponseStringByteArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringByteArrayArrayRequest( req string, r *http.Request, @@ -10682,6 +11291,7 @@ func encodeTestResponseStringByteArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringByteNullableRequest( req string, r *http.Request, @@ -10695,6 +11305,7 @@ func encodeTestResponseStringByteNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringByteNullableArrayRequest( req string, r *http.Request, @@ -10708,6 +11319,7 @@ func encodeTestResponseStringByteNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringByteNullableArrayArrayRequest( req string, r *http.Request, @@ -10721,6 +11333,7 @@ func encodeTestResponseStringByteNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringDateRequest( req string, r *http.Request, @@ -10734,6 +11347,7 @@ func encodeTestResponseStringDateRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringDateArrayRequest( req string, r *http.Request, @@ -10747,6 +11361,7 @@ func encodeTestResponseStringDateArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringDateArrayArrayRequest( req string, r *http.Request, @@ -10760,6 +11375,7 @@ func encodeTestResponseStringDateArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringDateNullableRequest( req string, r *http.Request, @@ -10773,6 +11389,7 @@ func encodeTestResponseStringDateNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringDateNullableArrayRequest( req string, r *http.Request, @@ -10786,6 +11403,7 @@ func encodeTestResponseStringDateNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringDateNullableArrayArrayRequest( req string, r *http.Request, @@ -10799,6 +11417,7 @@ func encodeTestResponseStringDateNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringDateTimeRequest( req string, r *http.Request, @@ -10812,6 +11431,7 @@ func encodeTestResponseStringDateTimeRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringDateTimeArrayRequest( req string, r *http.Request, @@ -10825,6 +11445,7 @@ func encodeTestResponseStringDateTimeArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringDateTimeArrayArrayRequest( req string, r *http.Request, @@ -10838,6 +11459,7 @@ func encodeTestResponseStringDateTimeArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringDateTimeNullableRequest( req string, r *http.Request, @@ -10851,6 +11473,7 @@ func encodeTestResponseStringDateTimeNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringDateTimeNullableArrayRequest( req string, r *http.Request, @@ -10864,6 +11487,7 @@ func encodeTestResponseStringDateTimeNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringDateTimeNullableArrayArrayRequest( req string, r *http.Request, @@ -10877,6 +11501,7 @@ func encodeTestResponseStringDateTimeNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringDurationRequest( req string, r *http.Request, @@ -10890,6 +11515,7 @@ func encodeTestResponseStringDurationRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringDurationArrayRequest( req string, r *http.Request, @@ -10903,6 +11529,7 @@ func encodeTestResponseStringDurationArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringDurationArrayArrayRequest( req string, r *http.Request, @@ -10916,6 +11543,7 @@ func encodeTestResponseStringDurationArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringDurationNullableRequest( req string, r *http.Request, @@ -10929,6 +11557,7 @@ func encodeTestResponseStringDurationNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringDurationNullableArrayRequest( req string, r *http.Request, @@ -10942,6 +11571,7 @@ func encodeTestResponseStringDurationNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringDurationNullableArrayArrayRequest( req string, r *http.Request, @@ -10955,6 +11585,7 @@ func encodeTestResponseStringDurationNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringEmailRequest( req string, r *http.Request, @@ -10968,6 +11599,7 @@ func encodeTestResponseStringEmailRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringEmailArrayRequest( req string, r *http.Request, @@ -10981,6 +11613,7 @@ func encodeTestResponseStringEmailArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringEmailArrayArrayRequest( req string, r *http.Request, @@ -10994,6 +11627,7 @@ func encodeTestResponseStringEmailArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringEmailNullableRequest( req string, r *http.Request, @@ -11007,6 +11641,7 @@ func encodeTestResponseStringEmailNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringEmailNullableArrayRequest( req string, r *http.Request, @@ -11020,6 +11655,7 @@ func encodeTestResponseStringEmailNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringEmailNullableArrayArrayRequest( req string, r *http.Request, @@ -11033,6 +11669,7 @@ func encodeTestResponseStringEmailNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringHostnameRequest( req string, r *http.Request, @@ -11046,6 +11683,7 @@ func encodeTestResponseStringHostnameRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringHostnameArrayRequest( req string, r *http.Request, @@ -11059,6 +11697,7 @@ func encodeTestResponseStringHostnameArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringHostnameArrayArrayRequest( req string, r *http.Request, @@ -11072,6 +11711,7 @@ func encodeTestResponseStringHostnameArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringHostnameNullableRequest( req string, r *http.Request, @@ -11085,6 +11725,7 @@ func encodeTestResponseStringHostnameNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringHostnameNullableArrayRequest( req string, r *http.Request, @@ -11098,6 +11739,7 @@ func encodeTestResponseStringHostnameNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringHostnameNullableArrayArrayRequest( req string, r *http.Request, @@ -11111,6 +11753,7 @@ func encodeTestResponseStringHostnameNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringIPRequest( req string, r *http.Request, @@ -11124,6 +11767,7 @@ func encodeTestResponseStringIPRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringIPArrayRequest( req string, r *http.Request, @@ -11137,6 +11781,7 @@ func encodeTestResponseStringIPArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringIPArrayArrayRequest( req string, r *http.Request, @@ -11150,6 +11795,7 @@ func encodeTestResponseStringIPArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringIPNullableRequest( req string, r *http.Request, @@ -11163,6 +11809,7 @@ func encodeTestResponseStringIPNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringIPNullableArrayRequest( req string, r *http.Request, @@ -11176,6 +11823,7 @@ func encodeTestResponseStringIPNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringIPNullableArrayArrayRequest( req string, r *http.Request, @@ -11189,6 +11837,7 @@ func encodeTestResponseStringIPNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringInt32Request( req string, r *http.Request, @@ -11202,6 +11851,7 @@ func encodeTestResponseStringInt32Request( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringInt32ArrayRequest( req string, r *http.Request, @@ -11215,6 +11865,7 @@ func encodeTestResponseStringInt32ArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringInt32ArrayArrayRequest( req string, r *http.Request, @@ -11228,6 +11879,7 @@ func encodeTestResponseStringInt32ArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringInt32NullableRequest( req string, r *http.Request, @@ -11241,6 +11893,7 @@ func encodeTestResponseStringInt32NullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringInt32NullableArrayRequest( req string, r *http.Request, @@ -11254,6 +11907,7 @@ func encodeTestResponseStringInt32NullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringInt32NullableArrayArrayRequest( req string, r *http.Request, @@ -11267,6 +11921,7 @@ func encodeTestResponseStringInt32NullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringInt64Request( req string, r *http.Request, @@ -11280,6 +11935,7 @@ func encodeTestResponseStringInt64Request( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringInt64ArrayRequest( req string, r *http.Request, @@ -11293,6 +11949,7 @@ func encodeTestResponseStringInt64ArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringInt64ArrayArrayRequest( req string, r *http.Request, @@ -11306,6 +11963,7 @@ func encodeTestResponseStringInt64ArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringInt64NullableRequest( req string, r *http.Request, @@ -11319,6 +11977,7 @@ func encodeTestResponseStringInt64NullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringInt64NullableArrayRequest( req string, r *http.Request, @@ -11332,6 +11991,7 @@ func encodeTestResponseStringInt64NullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringInt64NullableArrayArrayRequest( req string, r *http.Request, @@ -11345,6 +12005,7 @@ func encodeTestResponseStringInt64NullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringIpv4Request( req string, r *http.Request, @@ -11358,6 +12019,7 @@ func encodeTestResponseStringIpv4Request( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringIpv4ArrayRequest( req string, r *http.Request, @@ -11371,6 +12033,7 @@ func encodeTestResponseStringIpv4ArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringIpv4ArrayArrayRequest( req string, r *http.Request, @@ -11384,6 +12047,7 @@ func encodeTestResponseStringIpv4ArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringIpv4NullableRequest( req string, r *http.Request, @@ -11397,6 +12061,7 @@ func encodeTestResponseStringIpv4NullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringIpv4NullableArrayRequest( req string, r *http.Request, @@ -11410,6 +12075,7 @@ func encodeTestResponseStringIpv4NullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringIpv4NullableArrayArrayRequest( req string, r *http.Request, @@ -11423,6 +12089,7 @@ func encodeTestResponseStringIpv4NullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringIpv6Request( req string, r *http.Request, @@ -11436,6 +12103,7 @@ func encodeTestResponseStringIpv6Request( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringIpv6ArrayRequest( req string, r *http.Request, @@ -11449,6 +12117,7 @@ func encodeTestResponseStringIpv6ArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringIpv6ArrayArrayRequest( req string, r *http.Request, @@ -11462,6 +12131,7 @@ func encodeTestResponseStringIpv6ArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringIpv6NullableRequest( req string, r *http.Request, @@ -11475,6 +12145,7 @@ func encodeTestResponseStringIpv6NullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringIpv6NullableArrayRequest( req string, r *http.Request, @@ -11488,6 +12159,7 @@ func encodeTestResponseStringIpv6NullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringIpv6NullableArrayArrayRequest( req string, r *http.Request, @@ -11501,6 +12173,7 @@ func encodeTestResponseStringIpv6NullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringNullableRequest( req string, r *http.Request, @@ -11514,6 +12187,7 @@ func encodeTestResponseStringNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringNullableArrayRequest( req string, r *http.Request, @@ -11527,6 +12201,7 @@ func encodeTestResponseStringNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringNullableArrayArrayRequest( req string, r *http.Request, @@ -11540,6 +12215,7 @@ func encodeTestResponseStringNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringPasswordRequest( req string, r *http.Request, @@ -11553,6 +12229,7 @@ func encodeTestResponseStringPasswordRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringPasswordArrayRequest( req string, r *http.Request, @@ -11566,6 +12243,7 @@ func encodeTestResponseStringPasswordArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringPasswordArrayArrayRequest( req string, r *http.Request, @@ -11579,6 +12257,7 @@ func encodeTestResponseStringPasswordArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringPasswordNullableRequest( req string, r *http.Request, @@ -11592,6 +12271,7 @@ func encodeTestResponseStringPasswordNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringPasswordNullableArrayRequest( req string, r *http.Request, @@ -11605,6 +12285,7 @@ func encodeTestResponseStringPasswordNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringPasswordNullableArrayArrayRequest( req string, r *http.Request, @@ -11618,6 +12299,7 @@ func encodeTestResponseStringPasswordNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringTimeRequest( req string, r *http.Request, @@ -11631,6 +12313,7 @@ func encodeTestResponseStringTimeRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringTimeArrayRequest( req string, r *http.Request, @@ -11644,6 +12327,7 @@ func encodeTestResponseStringTimeArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringTimeArrayArrayRequest( req string, r *http.Request, @@ -11657,6 +12341,7 @@ func encodeTestResponseStringTimeArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringTimeNullableRequest( req string, r *http.Request, @@ -11670,6 +12355,7 @@ func encodeTestResponseStringTimeNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringTimeNullableArrayRequest( req string, r *http.Request, @@ -11683,6 +12369,7 @@ func encodeTestResponseStringTimeNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringTimeNullableArrayArrayRequest( req string, r *http.Request, @@ -11696,6 +12383,7 @@ func encodeTestResponseStringTimeNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringURIRequest( req string, r *http.Request, @@ -11709,6 +12397,7 @@ func encodeTestResponseStringURIRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringURIArrayRequest( req string, r *http.Request, @@ -11722,6 +12411,7 @@ func encodeTestResponseStringURIArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringURIArrayArrayRequest( req string, r *http.Request, @@ -11735,6 +12425,7 @@ func encodeTestResponseStringURIArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringURINullableRequest( req string, r *http.Request, @@ -11748,6 +12439,7 @@ func encodeTestResponseStringURINullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringURINullableArrayRequest( req string, r *http.Request, @@ -11761,6 +12453,7 @@ func encodeTestResponseStringURINullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringURINullableArrayArrayRequest( req string, r *http.Request, @@ -11774,6 +12467,7 @@ func encodeTestResponseStringURINullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUUIDRequest( req string, r *http.Request, @@ -11787,6 +12481,7 @@ func encodeTestResponseStringUUIDRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUUIDArrayRequest( req string, r *http.Request, @@ -11800,6 +12495,7 @@ func encodeTestResponseStringUUIDArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUUIDArrayArrayRequest( req string, r *http.Request, @@ -11813,6 +12509,7 @@ func encodeTestResponseStringUUIDArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUUIDNullableRequest( req string, r *http.Request, @@ -11826,6 +12523,7 @@ func encodeTestResponseStringUUIDNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUUIDNullableArrayRequest( req string, r *http.Request, @@ -11839,6 +12537,7 @@ func encodeTestResponseStringUUIDNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUUIDNullableArrayArrayRequest( req string, r *http.Request, @@ -11852,6 +12551,7 @@ func encodeTestResponseStringUUIDNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUnixRequest( req string, r *http.Request, @@ -11865,6 +12565,7 @@ func encodeTestResponseStringUnixRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUnixArrayRequest( req string, r *http.Request, @@ -11878,6 +12579,7 @@ func encodeTestResponseStringUnixArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUnixArrayArrayRequest( req string, r *http.Request, @@ -11891,6 +12593,7 @@ func encodeTestResponseStringUnixArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUnixMicroRequest( req string, r *http.Request, @@ -11904,6 +12607,7 @@ func encodeTestResponseStringUnixMicroRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUnixMicroArrayRequest( req string, r *http.Request, @@ -11917,6 +12621,7 @@ func encodeTestResponseStringUnixMicroArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUnixMicroArrayArrayRequest( req string, r *http.Request, @@ -11930,6 +12635,7 @@ func encodeTestResponseStringUnixMicroArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUnixMicroNullableRequest( req string, r *http.Request, @@ -11943,6 +12649,7 @@ func encodeTestResponseStringUnixMicroNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUnixMicroNullableArrayRequest( req string, r *http.Request, @@ -11956,6 +12663,7 @@ func encodeTestResponseStringUnixMicroNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUnixMicroNullableArrayArrayRequest( req string, r *http.Request, @@ -11969,6 +12677,7 @@ func encodeTestResponseStringUnixMicroNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUnixMilliRequest( req string, r *http.Request, @@ -11982,6 +12691,7 @@ func encodeTestResponseStringUnixMilliRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUnixMilliArrayRequest( req string, r *http.Request, @@ -11995,6 +12705,7 @@ func encodeTestResponseStringUnixMilliArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUnixMilliArrayArrayRequest( req string, r *http.Request, @@ -12008,6 +12719,7 @@ func encodeTestResponseStringUnixMilliArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUnixMilliNullableRequest( req string, r *http.Request, @@ -12021,6 +12733,7 @@ func encodeTestResponseStringUnixMilliNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUnixMilliNullableArrayRequest( req string, r *http.Request, @@ -12034,6 +12747,7 @@ func encodeTestResponseStringUnixMilliNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUnixMilliNullableArrayArrayRequest( req string, r *http.Request, @@ -12047,6 +12761,7 @@ func encodeTestResponseStringUnixMilliNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUnixNanoRequest( req string, r *http.Request, @@ -12060,6 +12775,7 @@ func encodeTestResponseStringUnixNanoRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUnixNanoArrayRequest( req string, r *http.Request, @@ -12073,6 +12789,7 @@ func encodeTestResponseStringUnixNanoArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUnixNanoArrayArrayRequest( req string, r *http.Request, @@ -12086,6 +12803,7 @@ func encodeTestResponseStringUnixNanoArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUnixNanoNullableRequest( req string, r *http.Request, @@ -12099,6 +12817,7 @@ func encodeTestResponseStringUnixNanoNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUnixNanoNullableArrayRequest( req string, r *http.Request, @@ -12112,6 +12831,7 @@ func encodeTestResponseStringUnixNanoNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUnixNanoNullableArrayArrayRequest( req string, r *http.Request, @@ -12125,6 +12845,7 @@ func encodeTestResponseStringUnixNanoNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUnixNullableRequest( req string, r *http.Request, @@ -12138,6 +12859,7 @@ func encodeTestResponseStringUnixNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUnixNullableArrayRequest( req string, r *http.Request, @@ -12151,6 +12873,7 @@ func encodeTestResponseStringUnixNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUnixNullableArrayArrayRequest( req string, r *http.Request, @@ -12164,6 +12887,7 @@ func encodeTestResponseStringUnixNullableArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUnixSecondsRequest( req string, r *http.Request, @@ -12177,6 +12901,7 @@ func encodeTestResponseStringUnixSecondsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUnixSecondsArrayRequest( req string, r *http.Request, @@ -12190,6 +12915,7 @@ func encodeTestResponseStringUnixSecondsArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUnixSecondsArrayArrayRequest( req string, r *http.Request, @@ -12203,6 +12929,7 @@ func encodeTestResponseStringUnixSecondsArrayArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUnixSecondsNullableRequest( req string, r *http.Request, @@ -12216,6 +12943,7 @@ func encodeTestResponseStringUnixSecondsNullableRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUnixSecondsNullableArrayRequest( req string, r *http.Request, @@ -12229,6 +12957,7 @@ func encodeTestResponseStringUnixSecondsNullableArrayRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeTestResponseStringUnixSecondsNullableArrayArrayRequest( req string, r *http.Request, diff --git a/examples/ex_test_format/oas_response_encoders_gen.go b/examples/ex_test_format/oas_response_encoders_gen.go index 924940af6..3b4357778 100644 --- a/examples/ex_test_format/oas_response_encoders_gen.go +++ b/examples/ex_test_format/oas_response_encoders_gen.go @@ -30,6 +30,7 @@ func encodeTestQueryParameterResponse(response Error, w http.ResponseWriter, spa return nil } + func encodeTestRequestAnyResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -43,6 +44,7 @@ func encodeTestRequestAnyResponse(response Error, w http.ResponseWriter, span tr return nil } + func encodeTestRequestBooleanResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -56,6 +58,7 @@ func encodeTestRequestBooleanResponse(response Error, w http.ResponseWriter, spa return nil } + func encodeTestRequestBooleanArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -69,6 +72,7 @@ func encodeTestRequestBooleanArrayResponse(response Error, w http.ResponseWriter return nil } + func encodeTestRequestBooleanArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -82,6 +86,7 @@ func encodeTestRequestBooleanArrayArrayResponse(response Error, w http.ResponseW return nil } + func encodeTestRequestBooleanNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -95,6 +100,7 @@ func encodeTestRequestBooleanNullableResponse(response Error, w http.ResponseWri return nil } + func encodeTestRequestBooleanNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -108,6 +114,7 @@ func encodeTestRequestBooleanNullableArrayResponse(response Error, w http.Respon return nil } + func encodeTestRequestBooleanNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -121,6 +128,7 @@ func encodeTestRequestBooleanNullableArrayArrayResponse(response Error, w http.R return nil } + func encodeTestRequestEmptyStructResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -134,6 +142,7 @@ func encodeTestRequestEmptyStructResponse(response Error, w http.ResponseWriter, return nil } + func encodeTestRequestFormatTestResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -147,6 +156,7 @@ func encodeTestRequestFormatTestResponse(response Error, w http.ResponseWriter, return nil } + func encodeTestRequestIntegerResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -160,6 +170,7 @@ func encodeTestRequestIntegerResponse(response Error, w http.ResponseWriter, spa return nil } + func encodeTestRequestIntegerArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -173,6 +184,7 @@ func encodeTestRequestIntegerArrayResponse(response Error, w http.ResponseWriter return nil } + func encodeTestRequestIntegerArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -186,6 +198,7 @@ func encodeTestRequestIntegerArrayArrayResponse(response Error, w http.ResponseW return nil } + func encodeTestRequestIntegerInt32Response(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -199,6 +212,7 @@ func encodeTestRequestIntegerInt32Response(response Error, w http.ResponseWriter return nil } + func encodeTestRequestIntegerInt32ArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -212,6 +226,7 @@ func encodeTestRequestIntegerInt32ArrayResponse(response Error, w http.ResponseW return nil } + func encodeTestRequestIntegerInt32ArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -225,6 +240,7 @@ func encodeTestRequestIntegerInt32ArrayArrayResponse(response Error, w http.Resp return nil } + func encodeTestRequestIntegerInt32NullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -238,6 +254,7 @@ func encodeTestRequestIntegerInt32NullableResponse(response Error, w http.Respon return nil } + func encodeTestRequestIntegerInt32NullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -251,6 +268,7 @@ func encodeTestRequestIntegerInt32NullableArrayResponse(response Error, w http.R return nil } + func encodeTestRequestIntegerInt32NullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -264,6 +282,7 @@ func encodeTestRequestIntegerInt32NullableArrayArrayResponse(response Error, w h return nil } + func encodeTestRequestIntegerInt64Response(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -277,6 +296,7 @@ func encodeTestRequestIntegerInt64Response(response Error, w http.ResponseWriter return nil } + func encodeTestRequestIntegerInt64ArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -290,6 +310,7 @@ func encodeTestRequestIntegerInt64ArrayResponse(response Error, w http.ResponseW return nil } + func encodeTestRequestIntegerInt64ArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -303,6 +324,7 @@ func encodeTestRequestIntegerInt64ArrayArrayResponse(response Error, w http.Resp return nil } + func encodeTestRequestIntegerInt64NullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -316,6 +338,7 @@ func encodeTestRequestIntegerInt64NullableResponse(response Error, w http.Respon return nil } + func encodeTestRequestIntegerInt64NullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -329,6 +352,7 @@ func encodeTestRequestIntegerInt64NullableArrayResponse(response Error, w http.R return nil } + func encodeTestRequestIntegerInt64NullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -342,6 +366,7 @@ func encodeTestRequestIntegerInt64NullableArrayArrayResponse(response Error, w h return nil } + func encodeTestRequestIntegerNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -355,6 +380,7 @@ func encodeTestRequestIntegerNullableResponse(response Error, w http.ResponseWri return nil } + func encodeTestRequestIntegerNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -368,6 +394,7 @@ func encodeTestRequestIntegerNullableArrayResponse(response Error, w http.Respon return nil } + func encodeTestRequestIntegerNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -381,6 +408,7 @@ func encodeTestRequestIntegerNullableArrayArrayResponse(response Error, w http.R return nil } + func encodeTestRequestIntegerUintResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -394,6 +422,7 @@ func encodeTestRequestIntegerUintResponse(response Error, w http.ResponseWriter, return nil } + func encodeTestRequestIntegerUint32Response(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -407,6 +436,7 @@ func encodeTestRequestIntegerUint32Response(response Error, w http.ResponseWrite return nil } + func encodeTestRequestIntegerUint32ArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -420,6 +450,7 @@ func encodeTestRequestIntegerUint32ArrayResponse(response Error, w http.Response return nil } + func encodeTestRequestIntegerUint32ArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -433,6 +464,7 @@ func encodeTestRequestIntegerUint32ArrayArrayResponse(response Error, w http.Res return nil } + func encodeTestRequestIntegerUint32NullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -446,6 +478,7 @@ func encodeTestRequestIntegerUint32NullableResponse(response Error, w http.Respo return nil } + func encodeTestRequestIntegerUint32NullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -459,6 +492,7 @@ func encodeTestRequestIntegerUint32NullableArrayResponse(response Error, w http. return nil } + func encodeTestRequestIntegerUint32NullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -472,6 +506,7 @@ func encodeTestRequestIntegerUint32NullableArrayArrayResponse(response Error, w return nil } + func encodeTestRequestIntegerUint64Response(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -485,6 +520,7 @@ func encodeTestRequestIntegerUint64Response(response Error, w http.ResponseWrite return nil } + func encodeTestRequestIntegerUint64ArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -498,6 +534,7 @@ func encodeTestRequestIntegerUint64ArrayResponse(response Error, w http.Response return nil } + func encodeTestRequestIntegerUint64ArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -511,6 +548,7 @@ func encodeTestRequestIntegerUint64ArrayArrayResponse(response Error, w http.Res return nil } + func encodeTestRequestIntegerUint64NullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -524,6 +562,7 @@ func encodeTestRequestIntegerUint64NullableResponse(response Error, w http.Respo return nil } + func encodeTestRequestIntegerUint64NullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -537,6 +576,7 @@ func encodeTestRequestIntegerUint64NullableArrayResponse(response Error, w http. return nil } + func encodeTestRequestIntegerUint64NullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -550,6 +590,7 @@ func encodeTestRequestIntegerUint64NullableArrayArrayResponse(response Error, w return nil } + func encodeTestRequestIntegerUintArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -563,6 +604,7 @@ func encodeTestRequestIntegerUintArrayResponse(response Error, w http.ResponseWr return nil } + func encodeTestRequestIntegerUintArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -576,6 +618,7 @@ func encodeTestRequestIntegerUintArrayArrayResponse(response Error, w http.Respo return nil } + func encodeTestRequestIntegerUintNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -589,6 +632,7 @@ func encodeTestRequestIntegerUintNullableResponse(response Error, w http.Respons return nil } + func encodeTestRequestIntegerUintNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -602,6 +646,7 @@ func encodeTestRequestIntegerUintNullableArrayResponse(response Error, w http.Re return nil } + func encodeTestRequestIntegerUintNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -615,6 +660,7 @@ func encodeTestRequestIntegerUintNullableArrayArrayResponse(response Error, w ht return nil } + func encodeTestRequestIntegerUnixResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -628,6 +674,7 @@ func encodeTestRequestIntegerUnixResponse(response Error, w http.ResponseWriter, return nil } + func encodeTestRequestIntegerUnixArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -641,6 +688,7 @@ func encodeTestRequestIntegerUnixArrayResponse(response Error, w http.ResponseWr return nil } + func encodeTestRequestIntegerUnixArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -654,6 +702,7 @@ func encodeTestRequestIntegerUnixArrayArrayResponse(response Error, w http.Respo return nil } + func encodeTestRequestIntegerUnixMicroResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -667,6 +716,7 @@ func encodeTestRequestIntegerUnixMicroResponse(response Error, w http.ResponseWr return nil } + func encodeTestRequestIntegerUnixMicroArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -680,6 +730,7 @@ func encodeTestRequestIntegerUnixMicroArrayResponse(response Error, w http.Respo return nil } + func encodeTestRequestIntegerUnixMicroArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -693,6 +744,7 @@ func encodeTestRequestIntegerUnixMicroArrayArrayResponse(response Error, w http. return nil } + func encodeTestRequestIntegerUnixMicroNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -706,6 +758,7 @@ func encodeTestRequestIntegerUnixMicroNullableResponse(response Error, w http.Re return nil } + func encodeTestRequestIntegerUnixMicroNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -719,6 +772,7 @@ func encodeTestRequestIntegerUnixMicroNullableArrayResponse(response Error, w ht return nil } + func encodeTestRequestIntegerUnixMicroNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -732,6 +786,7 @@ func encodeTestRequestIntegerUnixMicroNullableArrayArrayResponse(response Error, return nil } + func encodeTestRequestIntegerUnixMilliResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -745,6 +800,7 @@ func encodeTestRequestIntegerUnixMilliResponse(response Error, w http.ResponseWr return nil } + func encodeTestRequestIntegerUnixMilliArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -758,6 +814,7 @@ func encodeTestRequestIntegerUnixMilliArrayResponse(response Error, w http.Respo return nil } + func encodeTestRequestIntegerUnixMilliArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -771,6 +828,7 @@ func encodeTestRequestIntegerUnixMilliArrayArrayResponse(response Error, w http. return nil } + func encodeTestRequestIntegerUnixMilliNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -784,6 +842,7 @@ func encodeTestRequestIntegerUnixMilliNullableResponse(response Error, w http.Re return nil } + func encodeTestRequestIntegerUnixMilliNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -797,6 +856,7 @@ func encodeTestRequestIntegerUnixMilliNullableArrayResponse(response Error, w ht return nil } + func encodeTestRequestIntegerUnixMilliNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -810,6 +870,7 @@ func encodeTestRequestIntegerUnixMilliNullableArrayArrayResponse(response Error, return nil } + func encodeTestRequestIntegerUnixNanoResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -823,6 +884,7 @@ func encodeTestRequestIntegerUnixNanoResponse(response Error, w http.ResponseWri return nil } + func encodeTestRequestIntegerUnixNanoArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -836,6 +898,7 @@ func encodeTestRequestIntegerUnixNanoArrayResponse(response Error, w http.Respon return nil } + func encodeTestRequestIntegerUnixNanoArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -849,6 +912,7 @@ func encodeTestRequestIntegerUnixNanoArrayArrayResponse(response Error, w http.R return nil } + func encodeTestRequestIntegerUnixNanoNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -862,6 +926,7 @@ func encodeTestRequestIntegerUnixNanoNullableResponse(response Error, w http.Res return nil } + func encodeTestRequestIntegerUnixNanoNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -875,6 +940,7 @@ func encodeTestRequestIntegerUnixNanoNullableArrayResponse(response Error, w htt return nil } + func encodeTestRequestIntegerUnixNanoNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -888,6 +954,7 @@ func encodeTestRequestIntegerUnixNanoNullableArrayArrayResponse(response Error, return nil } + func encodeTestRequestIntegerUnixNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -901,6 +968,7 @@ func encodeTestRequestIntegerUnixNullableResponse(response Error, w http.Respons return nil } + func encodeTestRequestIntegerUnixNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -914,6 +982,7 @@ func encodeTestRequestIntegerUnixNullableArrayResponse(response Error, w http.Re return nil } + func encodeTestRequestIntegerUnixNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -927,6 +996,7 @@ func encodeTestRequestIntegerUnixNullableArrayArrayResponse(response Error, w ht return nil } + func encodeTestRequestIntegerUnixSecondsResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -940,6 +1010,7 @@ func encodeTestRequestIntegerUnixSecondsResponse(response Error, w http.Response return nil } + func encodeTestRequestIntegerUnixSecondsArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -953,6 +1024,7 @@ func encodeTestRequestIntegerUnixSecondsArrayResponse(response Error, w http.Res return nil } + func encodeTestRequestIntegerUnixSecondsArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -966,6 +1038,7 @@ func encodeTestRequestIntegerUnixSecondsArrayArrayResponse(response Error, w htt return nil } + func encodeTestRequestIntegerUnixSecondsNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -979,6 +1052,7 @@ func encodeTestRequestIntegerUnixSecondsNullableResponse(response Error, w http. return nil } + func encodeTestRequestIntegerUnixSecondsNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -992,6 +1066,7 @@ func encodeTestRequestIntegerUnixSecondsNullableArrayResponse(response Error, w return nil } + func encodeTestRequestIntegerUnixSecondsNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1005,6 +1080,7 @@ func encodeTestRequestIntegerUnixSecondsNullableArrayArrayResponse(response Erro return nil } + func encodeTestRequestNullResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1018,6 +1094,7 @@ func encodeTestRequestNullResponse(response Error, w http.ResponseWriter, span t return nil } + func encodeTestRequestNullArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1031,6 +1108,7 @@ func encodeTestRequestNullArrayResponse(response Error, w http.ResponseWriter, s return nil } + func encodeTestRequestNullArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1044,6 +1122,7 @@ func encodeTestRequestNullArrayArrayResponse(response Error, w http.ResponseWrit return nil } + func encodeTestRequestNullNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1057,6 +1136,7 @@ func encodeTestRequestNullNullableResponse(response Error, w http.ResponseWriter return nil } + func encodeTestRequestNullNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1070,6 +1150,7 @@ func encodeTestRequestNullNullableArrayResponse(response Error, w http.ResponseW return nil } + func encodeTestRequestNullNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1083,6 +1164,7 @@ func encodeTestRequestNullNullableArrayArrayResponse(response Error, w http.Resp return nil } + func encodeTestRequestNumberResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1096,6 +1178,7 @@ func encodeTestRequestNumberResponse(response Error, w http.ResponseWriter, span return nil } + func encodeTestRequestNumberArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1109,6 +1192,7 @@ func encodeTestRequestNumberArrayResponse(response Error, w http.ResponseWriter, return nil } + func encodeTestRequestNumberArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1122,6 +1206,7 @@ func encodeTestRequestNumberArrayArrayResponse(response Error, w http.ResponseWr return nil } + func encodeTestRequestNumberDoubleResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1135,6 +1220,7 @@ func encodeTestRequestNumberDoubleResponse(response Error, w http.ResponseWriter return nil } + func encodeTestRequestNumberDoubleArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1148,6 +1234,7 @@ func encodeTestRequestNumberDoubleArrayResponse(response Error, w http.ResponseW return nil } + func encodeTestRequestNumberDoubleArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1161,6 +1248,7 @@ func encodeTestRequestNumberDoubleArrayArrayResponse(response Error, w http.Resp return nil } + func encodeTestRequestNumberDoubleNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1174,6 +1262,7 @@ func encodeTestRequestNumberDoubleNullableResponse(response Error, w http.Respon return nil } + func encodeTestRequestNumberDoubleNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1187,6 +1276,7 @@ func encodeTestRequestNumberDoubleNullableArrayResponse(response Error, w http.R return nil } + func encodeTestRequestNumberDoubleNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1200,6 +1290,7 @@ func encodeTestRequestNumberDoubleNullableArrayArrayResponse(response Error, w h return nil } + func encodeTestRequestNumberFloatResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1213,6 +1304,7 @@ func encodeTestRequestNumberFloatResponse(response Error, w http.ResponseWriter, return nil } + func encodeTestRequestNumberFloatArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1226,6 +1318,7 @@ func encodeTestRequestNumberFloatArrayResponse(response Error, w http.ResponseWr return nil } + func encodeTestRequestNumberFloatArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1239,6 +1332,7 @@ func encodeTestRequestNumberFloatArrayArrayResponse(response Error, w http.Respo return nil } + func encodeTestRequestNumberFloatNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1252,6 +1346,7 @@ func encodeTestRequestNumberFloatNullableResponse(response Error, w http.Respons return nil } + func encodeTestRequestNumberFloatNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1265,6 +1360,7 @@ func encodeTestRequestNumberFloatNullableArrayResponse(response Error, w http.Re return nil } + func encodeTestRequestNumberFloatNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1278,6 +1374,7 @@ func encodeTestRequestNumberFloatNullableArrayArrayResponse(response Error, w ht return nil } + func encodeTestRequestNumberInt32Response(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1291,6 +1388,7 @@ func encodeTestRequestNumberInt32Response(response Error, w http.ResponseWriter, return nil } + func encodeTestRequestNumberInt32ArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1304,6 +1402,7 @@ func encodeTestRequestNumberInt32ArrayResponse(response Error, w http.ResponseWr return nil } + func encodeTestRequestNumberInt32ArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1317,6 +1416,7 @@ func encodeTestRequestNumberInt32ArrayArrayResponse(response Error, w http.Respo return nil } + func encodeTestRequestNumberInt32NullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1330,6 +1430,7 @@ func encodeTestRequestNumberInt32NullableResponse(response Error, w http.Respons return nil } + func encodeTestRequestNumberInt32NullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1343,6 +1444,7 @@ func encodeTestRequestNumberInt32NullableArrayResponse(response Error, w http.Re return nil } + func encodeTestRequestNumberInt32NullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1356,6 +1458,7 @@ func encodeTestRequestNumberInt32NullableArrayArrayResponse(response Error, w ht return nil } + func encodeTestRequestNumberInt64Response(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1369,6 +1472,7 @@ func encodeTestRequestNumberInt64Response(response Error, w http.ResponseWriter, return nil } + func encodeTestRequestNumberInt64ArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1382,6 +1486,7 @@ func encodeTestRequestNumberInt64ArrayResponse(response Error, w http.ResponseWr return nil } + func encodeTestRequestNumberInt64ArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1395,6 +1500,7 @@ func encodeTestRequestNumberInt64ArrayArrayResponse(response Error, w http.Respo return nil } + func encodeTestRequestNumberInt64NullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1408,6 +1514,7 @@ func encodeTestRequestNumberInt64NullableResponse(response Error, w http.Respons return nil } + func encodeTestRequestNumberInt64NullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1421,6 +1528,7 @@ func encodeTestRequestNumberInt64NullableArrayResponse(response Error, w http.Re return nil } + func encodeTestRequestNumberInt64NullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1434,6 +1542,7 @@ func encodeTestRequestNumberInt64NullableArrayArrayResponse(response Error, w ht return nil } + func encodeTestRequestNumberNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1447,6 +1556,7 @@ func encodeTestRequestNumberNullableResponse(response Error, w http.ResponseWrit return nil } + func encodeTestRequestNumberNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1460,6 +1570,7 @@ func encodeTestRequestNumberNullableArrayResponse(response Error, w http.Respons return nil } + func encodeTestRequestNumberNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1473,6 +1584,7 @@ func encodeTestRequestNumberNullableArrayArrayResponse(response Error, w http.Re return nil } + func encodeTestRequestRequiredAnyResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1486,6 +1598,7 @@ func encodeTestRequestRequiredAnyResponse(response Error, w http.ResponseWriter, return nil } + func encodeTestRequestRequiredBooleanResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1499,6 +1612,7 @@ func encodeTestRequestRequiredBooleanResponse(response Error, w http.ResponseWri return nil } + func encodeTestRequestRequiredBooleanArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1512,6 +1626,7 @@ func encodeTestRequestRequiredBooleanArrayResponse(response Error, w http.Respon return nil } + func encodeTestRequestRequiredBooleanArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1525,6 +1640,7 @@ func encodeTestRequestRequiredBooleanArrayArrayResponse(response Error, w http.R return nil } + func encodeTestRequestRequiredBooleanNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1538,6 +1654,7 @@ func encodeTestRequestRequiredBooleanNullableResponse(response Error, w http.Res return nil } + func encodeTestRequestRequiredBooleanNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1551,6 +1668,7 @@ func encodeTestRequestRequiredBooleanNullableArrayResponse(response Error, w htt return nil } + func encodeTestRequestRequiredBooleanNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1564,6 +1682,7 @@ func encodeTestRequestRequiredBooleanNullableArrayArrayResponse(response Error, return nil } + func encodeTestRequestRequiredEmptyStructResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1577,6 +1696,7 @@ func encodeTestRequestRequiredEmptyStructResponse(response Error, w http.Respons return nil } + func encodeTestRequestRequiredFormatTestResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1590,6 +1710,7 @@ func encodeTestRequestRequiredFormatTestResponse(response Error, w http.Response return nil } + func encodeTestRequestRequiredIntegerResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1603,6 +1724,7 @@ func encodeTestRequestRequiredIntegerResponse(response Error, w http.ResponseWri return nil } + func encodeTestRequestRequiredIntegerArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1616,6 +1738,7 @@ func encodeTestRequestRequiredIntegerArrayResponse(response Error, w http.Respon return nil } + func encodeTestRequestRequiredIntegerArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1629,6 +1752,7 @@ func encodeTestRequestRequiredIntegerArrayArrayResponse(response Error, w http.R return nil } + func encodeTestRequestRequiredIntegerInt32Response(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1642,6 +1766,7 @@ func encodeTestRequestRequiredIntegerInt32Response(response Error, w http.Respon return nil } + func encodeTestRequestRequiredIntegerInt32ArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1655,6 +1780,7 @@ func encodeTestRequestRequiredIntegerInt32ArrayResponse(response Error, w http.R return nil } + func encodeTestRequestRequiredIntegerInt32ArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1668,6 +1794,7 @@ func encodeTestRequestRequiredIntegerInt32ArrayArrayResponse(response Error, w h return nil } + func encodeTestRequestRequiredIntegerInt32NullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1681,6 +1808,7 @@ func encodeTestRequestRequiredIntegerInt32NullableResponse(response Error, w htt return nil } + func encodeTestRequestRequiredIntegerInt32NullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1694,6 +1822,7 @@ func encodeTestRequestRequiredIntegerInt32NullableArrayResponse(response Error, return nil } + func encodeTestRequestRequiredIntegerInt32NullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1707,6 +1836,7 @@ func encodeTestRequestRequiredIntegerInt32NullableArrayArrayResponse(response Er return nil } + func encodeTestRequestRequiredIntegerInt64Response(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1720,6 +1850,7 @@ func encodeTestRequestRequiredIntegerInt64Response(response Error, w http.Respon return nil } + func encodeTestRequestRequiredIntegerInt64ArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1733,6 +1864,7 @@ func encodeTestRequestRequiredIntegerInt64ArrayResponse(response Error, w http.R return nil } + func encodeTestRequestRequiredIntegerInt64ArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1746,6 +1878,7 @@ func encodeTestRequestRequiredIntegerInt64ArrayArrayResponse(response Error, w h return nil } + func encodeTestRequestRequiredIntegerInt64NullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1759,6 +1892,7 @@ func encodeTestRequestRequiredIntegerInt64NullableResponse(response Error, w htt return nil } + func encodeTestRequestRequiredIntegerInt64NullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1772,6 +1906,7 @@ func encodeTestRequestRequiredIntegerInt64NullableArrayResponse(response Error, return nil } + func encodeTestRequestRequiredIntegerInt64NullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1785,6 +1920,7 @@ func encodeTestRequestRequiredIntegerInt64NullableArrayArrayResponse(response Er return nil } + func encodeTestRequestRequiredIntegerNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1798,6 +1934,7 @@ func encodeTestRequestRequiredIntegerNullableResponse(response Error, w http.Res return nil } + func encodeTestRequestRequiredIntegerNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1811,6 +1948,7 @@ func encodeTestRequestRequiredIntegerNullableArrayResponse(response Error, w htt return nil } + func encodeTestRequestRequiredIntegerNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1824,6 +1962,7 @@ func encodeTestRequestRequiredIntegerNullableArrayArrayResponse(response Error, return nil } + func encodeTestRequestRequiredIntegerUintResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1837,6 +1976,7 @@ func encodeTestRequestRequiredIntegerUintResponse(response Error, w http.Respons return nil } + func encodeTestRequestRequiredIntegerUint32Response(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1850,6 +1990,7 @@ func encodeTestRequestRequiredIntegerUint32Response(response Error, w http.Respo return nil } + func encodeTestRequestRequiredIntegerUint32ArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1863,6 +2004,7 @@ func encodeTestRequestRequiredIntegerUint32ArrayResponse(response Error, w http. return nil } + func encodeTestRequestRequiredIntegerUint32ArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1876,6 +2018,7 @@ func encodeTestRequestRequiredIntegerUint32ArrayArrayResponse(response Error, w return nil } + func encodeTestRequestRequiredIntegerUint32NullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1889,6 +2032,7 @@ func encodeTestRequestRequiredIntegerUint32NullableResponse(response Error, w ht return nil } + func encodeTestRequestRequiredIntegerUint32NullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1902,6 +2046,7 @@ func encodeTestRequestRequiredIntegerUint32NullableArrayResponse(response Error, return nil } + func encodeTestRequestRequiredIntegerUint32NullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1915,6 +2060,7 @@ func encodeTestRequestRequiredIntegerUint32NullableArrayArrayResponse(response E return nil } + func encodeTestRequestRequiredIntegerUint64Response(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1928,6 +2074,7 @@ func encodeTestRequestRequiredIntegerUint64Response(response Error, w http.Respo return nil } + func encodeTestRequestRequiredIntegerUint64ArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1941,6 +2088,7 @@ func encodeTestRequestRequiredIntegerUint64ArrayResponse(response Error, w http. return nil } + func encodeTestRequestRequiredIntegerUint64ArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1954,6 +2102,7 @@ func encodeTestRequestRequiredIntegerUint64ArrayArrayResponse(response Error, w return nil } + func encodeTestRequestRequiredIntegerUint64NullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1967,6 +2116,7 @@ func encodeTestRequestRequiredIntegerUint64NullableResponse(response Error, w ht return nil } + func encodeTestRequestRequiredIntegerUint64NullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1980,6 +2130,7 @@ func encodeTestRequestRequiredIntegerUint64NullableArrayResponse(response Error, return nil } + func encodeTestRequestRequiredIntegerUint64NullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -1993,6 +2144,7 @@ func encodeTestRequestRequiredIntegerUint64NullableArrayArrayResponse(response E return nil } + func encodeTestRequestRequiredIntegerUintArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2006,6 +2158,7 @@ func encodeTestRequestRequiredIntegerUintArrayResponse(response Error, w http.Re return nil } + func encodeTestRequestRequiredIntegerUintArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2019,6 +2172,7 @@ func encodeTestRequestRequiredIntegerUintArrayArrayResponse(response Error, w ht return nil } + func encodeTestRequestRequiredIntegerUintNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2032,6 +2186,7 @@ func encodeTestRequestRequiredIntegerUintNullableResponse(response Error, w http return nil } + func encodeTestRequestRequiredIntegerUintNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2045,6 +2200,7 @@ func encodeTestRequestRequiredIntegerUintNullableArrayResponse(response Error, w return nil } + func encodeTestRequestRequiredIntegerUintNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2058,6 +2214,7 @@ func encodeTestRequestRequiredIntegerUintNullableArrayArrayResponse(response Err return nil } + func encodeTestRequestRequiredIntegerUnixResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2071,6 +2228,7 @@ func encodeTestRequestRequiredIntegerUnixResponse(response Error, w http.Respons return nil } + func encodeTestRequestRequiredIntegerUnixArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2084,6 +2242,7 @@ func encodeTestRequestRequiredIntegerUnixArrayResponse(response Error, w http.Re return nil } + func encodeTestRequestRequiredIntegerUnixArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2097,6 +2256,7 @@ func encodeTestRequestRequiredIntegerUnixArrayArrayResponse(response Error, w ht return nil } + func encodeTestRequestRequiredIntegerUnixMicroResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2110,6 +2270,7 @@ func encodeTestRequestRequiredIntegerUnixMicroResponse(response Error, w http.Re return nil } + func encodeTestRequestRequiredIntegerUnixMicroArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2123,6 +2284,7 @@ func encodeTestRequestRequiredIntegerUnixMicroArrayResponse(response Error, w ht return nil } + func encodeTestRequestRequiredIntegerUnixMicroArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2136,6 +2298,7 @@ func encodeTestRequestRequiredIntegerUnixMicroArrayArrayResponse(response Error, return nil } + func encodeTestRequestRequiredIntegerUnixMicroNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2149,6 +2312,7 @@ func encodeTestRequestRequiredIntegerUnixMicroNullableResponse(response Error, w return nil } + func encodeTestRequestRequiredIntegerUnixMicroNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2162,6 +2326,7 @@ func encodeTestRequestRequiredIntegerUnixMicroNullableArrayResponse(response Err return nil } + func encodeTestRequestRequiredIntegerUnixMicroNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2175,6 +2340,7 @@ func encodeTestRequestRequiredIntegerUnixMicroNullableArrayArrayResponse(respons return nil } + func encodeTestRequestRequiredIntegerUnixMilliResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2188,6 +2354,7 @@ func encodeTestRequestRequiredIntegerUnixMilliResponse(response Error, w http.Re return nil } + func encodeTestRequestRequiredIntegerUnixMilliArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2201,6 +2368,7 @@ func encodeTestRequestRequiredIntegerUnixMilliArrayResponse(response Error, w ht return nil } + func encodeTestRequestRequiredIntegerUnixMilliArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2214,6 +2382,7 @@ func encodeTestRequestRequiredIntegerUnixMilliArrayArrayResponse(response Error, return nil } + func encodeTestRequestRequiredIntegerUnixMilliNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2227,6 +2396,7 @@ func encodeTestRequestRequiredIntegerUnixMilliNullableResponse(response Error, w return nil } + func encodeTestRequestRequiredIntegerUnixMilliNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2240,6 +2410,7 @@ func encodeTestRequestRequiredIntegerUnixMilliNullableArrayResponse(response Err return nil } + func encodeTestRequestRequiredIntegerUnixMilliNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2253,6 +2424,7 @@ func encodeTestRequestRequiredIntegerUnixMilliNullableArrayArrayResponse(respons return nil } + func encodeTestRequestRequiredIntegerUnixNanoResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2266,6 +2438,7 @@ func encodeTestRequestRequiredIntegerUnixNanoResponse(response Error, w http.Res return nil } + func encodeTestRequestRequiredIntegerUnixNanoArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2279,6 +2452,7 @@ func encodeTestRequestRequiredIntegerUnixNanoArrayResponse(response Error, w htt return nil } + func encodeTestRequestRequiredIntegerUnixNanoArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2292,6 +2466,7 @@ func encodeTestRequestRequiredIntegerUnixNanoArrayArrayResponse(response Error, return nil } + func encodeTestRequestRequiredIntegerUnixNanoNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2305,6 +2480,7 @@ func encodeTestRequestRequiredIntegerUnixNanoNullableResponse(response Error, w return nil } + func encodeTestRequestRequiredIntegerUnixNanoNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2318,6 +2494,7 @@ func encodeTestRequestRequiredIntegerUnixNanoNullableArrayResponse(response Erro return nil } + func encodeTestRequestRequiredIntegerUnixNanoNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2331,6 +2508,7 @@ func encodeTestRequestRequiredIntegerUnixNanoNullableArrayArrayResponse(response return nil } + func encodeTestRequestRequiredIntegerUnixNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2344,6 +2522,7 @@ func encodeTestRequestRequiredIntegerUnixNullableResponse(response Error, w http return nil } + func encodeTestRequestRequiredIntegerUnixNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2357,6 +2536,7 @@ func encodeTestRequestRequiredIntegerUnixNullableArrayResponse(response Error, w return nil } + func encodeTestRequestRequiredIntegerUnixNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2370,6 +2550,7 @@ func encodeTestRequestRequiredIntegerUnixNullableArrayArrayResponse(response Err return nil } + func encodeTestRequestRequiredIntegerUnixSecondsResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2383,6 +2564,7 @@ func encodeTestRequestRequiredIntegerUnixSecondsResponse(response Error, w http. return nil } + func encodeTestRequestRequiredIntegerUnixSecondsArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2396,6 +2578,7 @@ func encodeTestRequestRequiredIntegerUnixSecondsArrayResponse(response Error, w return nil } + func encodeTestRequestRequiredIntegerUnixSecondsArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2409,6 +2592,7 @@ func encodeTestRequestRequiredIntegerUnixSecondsArrayArrayResponse(response Erro return nil } + func encodeTestRequestRequiredIntegerUnixSecondsNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2422,6 +2606,7 @@ func encodeTestRequestRequiredIntegerUnixSecondsNullableResponse(response Error, return nil } + func encodeTestRequestRequiredIntegerUnixSecondsNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2435,6 +2620,7 @@ func encodeTestRequestRequiredIntegerUnixSecondsNullableArrayResponse(response E return nil } + func encodeTestRequestRequiredIntegerUnixSecondsNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2448,6 +2634,7 @@ func encodeTestRequestRequiredIntegerUnixSecondsNullableArrayArrayResponse(respo return nil } + func encodeTestRequestRequiredNullResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2461,6 +2648,7 @@ func encodeTestRequestRequiredNullResponse(response Error, w http.ResponseWriter return nil } + func encodeTestRequestRequiredNullArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2474,6 +2662,7 @@ func encodeTestRequestRequiredNullArrayResponse(response Error, w http.ResponseW return nil } + func encodeTestRequestRequiredNullArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2487,6 +2676,7 @@ func encodeTestRequestRequiredNullArrayArrayResponse(response Error, w http.Resp return nil } + func encodeTestRequestRequiredNullNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2500,6 +2690,7 @@ func encodeTestRequestRequiredNullNullableResponse(response Error, w http.Respon return nil } + func encodeTestRequestRequiredNullNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2513,6 +2704,7 @@ func encodeTestRequestRequiredNullNullableArrayResponse(response Error, w http.R return nil } + func encodeTestRequestRequiredNullNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2526,6 +2718,7 @@ func encodeTestRequestRequiredNullNullableArrayArrayResponse(response Error, w h return nil } + func encodeTestRequestRequiredNumberResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2539,6 +2732,7 @@ func encodeTestRequestRequiredNumberResponse(response Error, w http.ResponseWrit return nil } + func encodeTestRequestRequiredNumberArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2552,6 +2746,7 @@ func encodeTestRequestRequiredNumberArrayResponse(response Error, w http.Respons return nil } + func encodeTestRequestRequiredNumberArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2565,6 +2760,7 @@ func encodeTestRequestRequiredNumberArrayArrayResponse(response Error, w http.Re return nil } + func encodeTestRequestRequiredNumberDoubleResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2578,6 +2774,7 @@ func encodeTestRequestRequiredNumberDoubleResponse(response Error, w http.Respon return nil } + func encodeTestRequestRequiredNumberDoubleArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2591,6 +2788,7 @@ func encodeTestRequestRequiredNumberDoubleArrayResponse(response Error, w http.R return nil } + func encodeTestRequestRequiredNumberDoubleArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2604,6 +2802,7 @@ func encodeTestRequestRequiredNumberDoubleArrayArrayResponse(response Error, w h return nil } + func encodeTestRequestRequiredNumberDoubleNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2617,6 +2816,7 @@ func encodeTestRequestRequiredNumberDoubleNullableResponse(response Error, w htt return nil } + func encodeTestRequestRequiredNumberDoubleNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2630,6 +2830,7 @@ func encodeTestRequestRequiredNumberDoubleNullableArrayResponse(response Error, return nil } + func encodeTestRequestRequiredNumberDoubleNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2643,6 +2844,7 @@ func encodeTestRequestRequiredNumberDoubleNullableArrayArrayResponse(response Er return nil } + func encodeTestRequestRequiredNumberFloatResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2656,6 +2858,7 @@ func encodeTestRequestRequiredNumberFloatResponse(response Error, w http.Respons return nil } + func encodeTestRequestRequiredNumberFloatArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2669,6 +2872,7 @@ func encodeTestRequestRequiredNumberFloatArrayResponse(response Error, w http.Re return nil } + func encodeTestRequestRequiredNumberFloatArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2682,6 +2886,7 @@ func encodeTestRequestRequiredNumberFloatArrayArrayResponse(response Error, w ht return nil } + func encodeTestRequestRequiredNumberFloatNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2695,6 +2900,7 @@ func encodeTestRequestRequiredNumberFloatNullableResponse(response Error, w http return nil } + func encodeTestRequestRequiredNumberFloatNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2708,6 +2914,7 @@ func encodeTestRequestRequiredNumberFloatNullableArrayResponse(response Error, w return nil } + func encodeTestRequestRequiredNumberFloatNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2721,6 +2928,7 @@ func encodeTestRequestRequiredNumberFloatNullableArrayArrayResponse(response Err return nil } + func encodeTestRequestRequiredNumberInt32Response(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2734,6 +2942,7 @@ func encodeTestRequestRequiredNumberInt32Response(response Error, w http.Respons return nil } + func encodeTestRequestRequiredNumberInt32ArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2747,6 +2956,7 @@ func encodeTestRequestRequiredNumberInt32ArrayResponse(response Error, w http.Re return nil } + func encodeTestRequestRequiredNumberInt32ArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2760,6 +2970,7 @@ func encodeTestRequestRequiredNumberInt32ArrayArrayResponse(response Error, w ht return nil } + func encodeTestRequestRequiredNumberInt32NullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2773,6 +2984,7 @@ func encodeTestRequestRequiredNumberInt32NullableResponse(response Error, w http return nil } + func encodeTestRequestRequiredNumberInt32NullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2786,6 +2998,7 @@ func encodeTestRequestRequiredNumberInt32NullableArrayResponse(response Error, w return nil } + func encodeTestRequestRequiredNumberInt32NullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2799,6 +3012,7 @@ func encodeTestRequestRequiredNumberInt32NullableArrayArrayResponse(response Err return nil } + func encodeTestRequestRequiredNumberInt64Response(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2812,6 +3026,7 @@ func encodeTestRequestRequiredNumberInt64Response(response Error, w http.Respons return nil } + func encodeTestRequestRequiredNumberInt64ArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2825,6 +3040,7 @@ func encodeTestRequestRequiredNumberInt64ArrayResponse(response Error, w http.Re return nil } + func encodeTestRequestRequiredNumberInt64ArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2838,6 +3054,7 @@ func encodeTestRequestRequiredNumberInt64ArrayArrayResponse(response Error, w ht return nil } + func encodeTestRequestRequiredNumberInt64NullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2851,6 +3068,7 @@ func encodeTestRequestRequiredNumberInt64NullableResponse(response Error, w http return nil } + func encodeTestRequestRequiredNumberInt64NullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2864,6 +3082,7 @@ func encodeTestRequestRequiredNumberInt64NullableArrayResponse(response Error, w return nil } + func encodeTestRequestRequiredNumberInt64NullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2877,6 +3096,7 @@ func encodeTestRequestRequiredNumberInt64NullableArrayArrayResponse(response Err return nil } + func encodeTestRequestRequiredNumberNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2890,6 +3110,7 @@ func encodeTestRequestRequiredNumberNullableResponse(response Error, w http.Resp return nil } + func encodeTestRequestRequiredNumberNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2903,6 +3124,7 @@ func encodeTestRequestRequiredNumberNullableArrayResponse(response Error, w http return nil } + func encodeTestRequestRequiredNumberNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2916,6 +3138,7 @@ func encodeTestRequestRequiredNumberNullableArrayArrayResponse(response Error, w return nil } + func encodeTestRequestRequiredStringResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2929,6 +3152,7 @@ func encodeTestRequestRequiredStringResponse(response Error, w http.ResponseWrit return nil } + func encodeTestRequestRequiredStringArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2942,6 +3166,7 @@ func encodeTestRequestRequiredStringArrayResponse(response Error, w http.Respons return nil } + func encodeTestRequestRequiredStringArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2955,6 +3180,7 @@ func encodeTestRequestRequiredStringArrayArrayResponse(response Error, w http.Re return nil } + func encodeTestRequestRequiredStringBinaryResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2968,6 +3194,7 @@ func encodeTestRequestRequiredStringBinaryResponse(response Error, w http.Respon return nil } + func encodeTestRequestRequiredStringBinaryArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2981,6 +3208,7 @@ func encodeTestRequestRequiredStringBinaryArrayResponse(response Error, w http.R return nil } + func encodeTestRequestRequiredStringBinaryArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -2994,6 +3222,7 @@ func encodeTestRequestRequiredStringBinaryArrayArrayResponse(response Error, w h return nil } + func encodeTestRequestRequiredStringBinaryNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3007,6 +3236,7 @@ func encodeTestRequestRequiredStringBinaryNullableResponse(response Error, w htt return nil } + func encodeTestRequestRequiredStringBinaryNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3020,6 +3250,7 @@ func encodeTestRequestRequiredStringBinaryNullableArrayResponse(response Error, return nil } + func encodeTestRequestRequiredStringBinaryNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3033,6 +3264,7 @@ func encodeTestRequestRequiredStringBinaryNullableArrayArrayResponse(response Er return nil } + func encodeTestRequestRequiredStringByteResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3046,6 +3278,7 @@ func encodeTestRequestRequiredStringByteResponse(response Error, w http.Response return nil } + func encodeTestRequestRequiredStringByteArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3059,6 +3292,7 @@ func encodeTestRequestRequiredStringByteArrayResponse(response Error, w http.Res return nil } + func encodeTestRequestRequiredStringByteArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3072,6 +3306,7 @@ func encodeTestRequestRequiredStringByteArrayArrayResponse(response Error, w htt return nil } + func encodeTestRequestRequiredStringByteNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3085,6 +3320,7 @@ func encodeTestRequestRequiredStringByteNullableResponse(response Error, w http. return nil } + func encodeTestRequestRequiredStringByteNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3098,6 +3334,7 @@ func encodeTestRequestRequiredStringByteNullableArrayResponse(response Error, w return nil } + func encodeTestRequestRequiredStringByteNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3111,6 +3348,7 @@ func encodeTestRequestRequiredStringByteNullableArrayArrayResponse(response Erro return nil } + func encodeTestRequestRequiredStringDateResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3124,6 +3362,7 @@ func encodeTestRequestRequiredStringDateResponse(response Error, w http.Response return nil } + func encodeTestRequestRequiredStringDateArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3137,6 +3376,7 @@ func encodeTestRequestRequiredStringDateArrayResponse(response Error, w http.Res return nil } + func encodeTestRequestRequiredStringDateArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3150,6 +3390,7 @@ func encodeTestRequestRequiredStringDateArrayArrayResponse(response Error, w htt return nil } + func encodeTestRequestRequiredStringDateNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3163,6 +3404,7 @@ func encodeTestRequestRequiredStringDateNullableResponse(response Error, w http. return nil } + func encodeTestRequestRequiredStringDateNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3176,6 +3418,7 @@ func encodeTestRequestRequiredStringDateNullableArrayResponse(response Error, w return nil } + func encodeTestRequestRequiredStringDateNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3189,6 +3432,7 @@ func encodeTestRequestRequiredStringDateNullableArrayArrayResponse(response Erro return nil } + func encodeTestRequestRequiredStringDateTimeResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3202,6 +3446,7 @@ func encodeTestRequestRequiredStringDateTimeResponse(response Error, w http.Resp return nil } + func encodeTestRequestRequiredStringDateTimeArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3215,6 +3460,7 @@ func encodeTestRequestRequiredStringDateTimeArrayResponse(response Error, w http return nil } + func encodeTestRequestRequiredStringDateTimeArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3228,6 +3474,7 @@ func encodeTestRequestRequiredStringDateTimeArrayArrayResponse(response Error, w return nil } + func encodeTestRequestRequiredStringDateTimeNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3241,6 +3488,7 @@ func encodeTestRequestRequiredStringDateTimeNullableResponse(response Error, w h return nil } + func encodeTestRequestRequiredStringDateTimeNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3254,6 +3502,7 @@ func encodeTestRequestRequiredStringDateTimeNullableArrayResponse(response Error return nil } + func encodeTestRequestRequiredStringDateTimeNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3267,6 +3516,7 @@ func encodeTestRequestRequiredStringDateTimeNullableArrayArrayResponse(response return nil } + func encodeTestRequestRequiredStringDurationResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3280,6 +3530,7 @@ func encodeTestRequestRequiredStringDurationResponse(response Error, w http.Resp return nil } + func encodeTestRequestRequiredStringDurationArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3293,6 +3544,7 @@ func encodeTestRequestRequiredStringDurationArrayResponse(response Error, w http return nil } + func encodeTestRequestRequiredStringDurationArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3306,6 +3558,7 @@ func encodeTestRequestRequiredStringDurationArrayArrayResponse(response Error, w return nil } + func encodeTestRequestRequiredStringDurationNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3319,6 +3572,7 @@ func encodeTestRequestRequiredStringDurationNullableResponse(response Error, w h return nil } + func encodeTestRequestRequiredStringDurationNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3332,6 +3586,7 @@ func encodeTestRequestRequiredStringDurationNullableArrayResponse(response Error return nil } + func encodeTestRequestRequiredStringDurationNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3345,6 +3600,7 @@ func encodeTestRequestRequiredStringDurationNullableArrayArrayResponse(response return nil } + func encodeTestRequestRequiredStringEmailResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3358,6 +3614,7 @@ func encodeTestRequestRequiredStringEmailResponse(response Error, w http.Respons return nil } + func encodeTestRequestRequiredStringEmailArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3371,6 +3628,7 @@ func encodeTestRequestRequiredStringEmailArrayResponse(response Error, w http.Re return nil } + func encodeTestRequestRequiredStringEmailArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3384,6 +3642,7 @@ func encodeTestRequestRequiredStringEmailArrayArrayResponse(response Error, w ht return nil } + func encodeTestRequestRequiredStringEmailNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3397,6 +3656,7 @@ func encodeTestRequestRequiredStringEmailNullableResponse(response Error, w http return nil } + func encodeTestRequestRequiredStringEmailNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3410,6 +3670,7 @@ func encodeTestRequestRequiredStringEmailNullableArrayResponse(response Error, w return nil } + func encodeTestRequestRequiredStringEmailNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3423,6 +3684,7 @@ func encodeTestRequestRequiredStringEmailNullableArrayArrayResponse(response Err return nil } + func encodeTestRequestRequiredStringHostnameResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3436,6 +3698,7 @@ func encodeTestRequestRequiredStringHostnameResponse(response Error, w http.Resp return nil } + func encodeTestRequestRequiredStringHostnameArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3449,6 +3712,7 @@ func encodeTestRequestRequiredStringHostnameArrayResponse(response Error, w http return nil } + func encodeTestRequestRequiredStringHostnameArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3462,6 +3726,7 @@ func encodeTestRequestRequiredStringHostnameArrayArrayResponse(response Error, w return nil } + func encodeTestRequestRequiredStringHostnameNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3475,6 +3740,7 @@ func encodeTestRequestRequiredStringHostnameNullableResponse(response Error, w h return nil } + func encodeTestRequestRequiredStringHostnameNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3488,6 +3754,7 @@ func encodeTestRequestRequiredStringHostnameNullableArrayResponse(response Error return nil } + func encodeTestRequestRequiredStringHostnameNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3501,6 +3768,7 @@ func encodeTestRequestRequiredStringHostnameNullableArrayArrayResponse(response return nil } + func encodeTestRequestRequiredStringIPResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3514,6 +3782,7 @@ func encodeTestRequestRequiredStringIPResponse(response Error, w http.ResponseWr return nil } + func encodeTestRequestRequiredStringIPArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3527,6 +3796,7 @@ func encodeTestRequestRequiredStringIPArrayResponse(response Error, w http.Respo return nil } + func encodeTestRequestRequiredStringIPArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3540,6 +3810,7 @@ func encodeTestRequestRequiredStringIPArrayArrayResponse(response Error, w http. return nil } + func encodeTestRequestRequiredStringIPNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3553,6 +3824,7 @@ func encodeTestRequestRequiredStringIPNullableResponse(response Error, w http.Re return nil } + func encodeTestRequestRequiredStringIPNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3566,6 +3838,7 @@ func encodeTestRequestRequiredStringIPNullableArrayResponse(response Error, w ht return nil } + func encodeTestRequestRequiredStringIPNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3579,6 +3852,7 @@ func encodeTestRequestRequiredStringIPNullableArrayArrayResponse(response Error, return nil } + func encodeTestRequestRequiredStringInt32Response(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3592,6 +3866,7 @@ func encodeTestRequestRequiredStringInt32Response(response Error, w http.Respons return nil } + func encodeTestRequestRequiredStringInt32ArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3605,6 +3880,7 @@ func encodeTestRequestRequiredStringInt32ArrayResponse(response Error, w http.Re return nil } + func encodeTestRequestRequiredStringInt32ArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3618,6 +3894,7 @@ func encodeTestRequestRequiredStringInt32ArrayArrayResponse(response Error, w ht return nil } + func encodeTestRequestRequiredStringInt32NullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3631,6 +3908,7 @@ func encodeTestRequestRequiredStringInt32NullableResponse(response Error, w http return nil } + func encodeTestRequestRequiredStringInt32NullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3644,6 +3922,7 @@ func encodeTestRequestRequiredStringInt32NullableArrayResponse(response Error, w return nil } + func encodeTestRequestRequiredStringInt32NullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3657,6 +3936,7 @@ func encodeTestRequestRequiredStringInt32NullableArrayArrayResponse(response Err return nil } + func encodeTestRequestRequiredStringInt64Response(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3670,6 +3950,7 @@ func encodeTestRequestRequiredStringInt64Response(response Error, w http.Respons return nil } + func encodeTestRequestRequiredStringInt64ArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3683,6 +3964,7 @@ func encodeTestRequestRequiredStringInt64ArrayResponse(response Error, w http.Re return nil } + func encodeTestRequestRequiredStringInt64ArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3696,6 +3978,7 @@ func encodeTestRequestRequiredStringInt64ArrayArrayResponse(response Error, w ht return nil } + func encodeTestRequestRequiredStringInt64NullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3709,6 +3992,7 @@ func encodeTestRequestRequiredStringInt64NullableResponse(response Error, w http return nil } + func encodeTestRequestRequiredStringInt64NullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3722,6 +4006,7 @@ func encodeTestRequestRequiredStringInt64NullableArrayResponse(response Error, w return nil } + func encodeTestRequestRequiredStringInt64NullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3735,6 +4020,7 @@ func encodeTestRequestRequiredStringInt64NullableArrayArrayResponse(response Err return nil } + func encodeTestRequestRequiredStringIpv4Response(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3748,6 +4034,7 @@ func encodeTestRequestRequiredStringIpv4Response(response Error, w http.Response return nil } + func encodeTestRequestRequiredStringIpv4ArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3761,6 +4048,7 @@ func encodeTestRequestRequiredStringIpv4ArrayResponse(response Error, w http.Res return nil } + func encodeTestRequestRequiredStringIpv4ArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3774,6 +4062,7 @@ func encodeTestRequestRequiredStringIpv4ArrayArrayResponse(response Error, w htt return nil } + func encodeTestRequestRequiredStringIpv4NullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3787,6 +4076,7 @@ func encodeTestRequestRequiredStringIpv4NullableResponse(response Error, w http. return nil } + func encodeTestRequestRequiredStringIpv4NullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3800,6 +4090,7 @@ func encodeTestRequestRequiredStringIpv4NullableArrayResponse(response Error, w return nil } + func encodeTestRequestRequiredStringIpv4NullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3813,6 +4104,7 @@ func encodeTestRequestRequiredStringIpv4NullableArrayArrayResponse(response Erro return nil } + func encodeTestRequestRequiredStringIpv6Response(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3826,6 +4118,7 @@ func encodeTestRequestRequiredStringIpv6Response(response Error, w http.Response return nil } + func encodeTestRequestRequiredStringIpv6ArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3839,6 +4132,7 @@ func encodeTestRequestRequiredStringIpv6ArrayResponse(response Error, w http.Res return nil } + func encodeTestRequestRequiredStringIpv6ArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3852,6 +4146,7 @@ func encodeTestRequestRequiredStringIpv6ArrayArrayResponse(response Error, w htt return nil } + func encodeTestRequestRequiredStringIpv6NullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3865,6 +4160,7 @@ func encodeTestRequestRequiredStringIpv6NullableResponse(response Error, w http. return nil } + func encodeTestRequestRequiredStringIpv6NullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3878,6 +4174,7 @@ func encodeTestRequestRequiredStringIpv6NullableArrayResponse(response Error, w return nil } + func encodeTestRequestRequiredStringIpv6NullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3891,6 +4188,7 @@ func encodeTestRequestRequiredStringIpv6NullableArrayArrayResponse(response Erro return nil } + func encodeTestRequestRequiredStringNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3904,6 +4202,7 @@ func encodeTestRequestRequiredStringNullableResponse(response Error, w http.Resp return nil } + func encodeTestRequestRequiredStringNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3917,6 +4216,7 @@ func encodeTestRequestRequiredStringNullableArrayResponse(response Error, w http return nil } + func encodeTestRequestRequiredStringNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3930,6 +4230,7 @@ func encodeTestRequestRequiredStringNullableArrayArrayResponse(response Error, w return nil } + func encodeTestRequestRequiredStringPasswordResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3943,6 +4244,7 @@ func encodeTestRequestRequiredStringPasswordResponse(response Error, w http.Resp return nil } + func encodeTestRequestRequiredStringPasswordArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3956,6 +4258,7 @@ func encodeTestRequestRequiredStringPasswordArrayResponse(response Error, w http return nil } + func encodeTestRequestRequiredStringPasswordArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3969,6 +4272,7 @@ func encodeTestRequestRequiredStringPasswordArrayArrayResponse(response Error, w return nil } + func encodeTestRequestRequiredStringPasswordNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3982,6 +4286,7 @@ func encodeTestRequestRequiredStringPasswordNullableResponse(response Error, w h return nil } + func encodeTestRequestRequiredStringPasswordNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -3995,6 +4300,7 @@ func encodeTestRequestRequiredStringPasswordNullableArrayResponse(response Error return nil } + func encodeTestRequestRequiredStringPasswordNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4008,6 +4314,7 @@ func encodeTestRequestRequiredStringPasswordNullableArrayArrayResponse(response return nil } + func encodeTestRequestRequiredStringTimeResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4021,6 +4328,7 @@ func encodeTestRequestRequiredStringTimeResponse(response Error, w http.Response return nil } + func encodeTestRequestRequiredStringTimeArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4034,6 +4342,7 @@ func encodeTestRequestRequiredStringTimeArrayResponse(response Error, w http.Res return nil } + func encodeTestRequestRequiredStringTimeArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4047,6 +4356,7 @@ func encodeTestRequestRequiredStringTimeArrayArrayResponse(response Error, w htt return nil } + func encodeTestRequestRequiredStringTimeNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4060,6 +4370,7 @@ func encodeTestRequestRequiredStringTimeNullableResponse(response Error, w http. return nil } + func encodeTestRequestRequiredStringTimeNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4073,6 +4384,7 @@ func encodeTestRequestRequiredStringTimeNullableArrayResponse(response Error, w return nil } + func encodeTestRequestRequiredStringTimeNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4086,6 +4398,7 @@ func encodeTestRequestRequiredStringTimeNullableArrayArrayResponse(response Erro return nil } + func encodeTestRequestRequiredStringURIResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4099,6 +4412,7 @@ func encodeTestRequestRequiredStringURIResponse(response Error, w http.ResponseW return nil } + func encodeTestRequestRequiredStringURIArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4112,6 +4426,7 @@ func encodeTestRequestRequiredStringURIArrayResponse(response Error, w http.Resp return nil } + func encodeTestRequestRequiredStringURIArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4125,6 +4440,7 @@ func encodeTestRequestRequiredStringURIArrayArrayResponse(response Error, w http return nil } + func encodeTestRequestRequiredStringURINullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4138,6 +4454,7 @@ func encodeTestRequestRequiredStringURINullableResponse(response Error, w http.R return nil } + func encodeTestRequestRequiredStringURINullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4151,6 +4468,7 @@ func encodeTestRequestRequiredStringURINullableArrayResponse(response Error, w h return nil } + func encodeTestRequestRequiredStringURINullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4164,6 +4482,7 @@ func encodeTestRequestRequiredStringURINullableArrayArrayResponse(response Error return nil } + func encodeTestRequestRequiredStringUUIDResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4177,6 +4496,7 @@ func encodeTestRequestRequiredStringUUIDResponse(response Error, w http.Response return nil } + func encodeTestRequestRequiredStringUUIDArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4190,6 +4510,7 @@ func encodeTestRequestRequiredStringUUIDArrayResponse(response Error, w http.Res return nil } + func encodeTestRequestRequiredStringUUIDArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4203,6 +4524,7 @@ func encodeTestRequestRequiredStringUUIDArrayArrayResponse(response Error, w htt return nil } + func encodeTestRequestRequiredStringUUIDNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4216,6 +4538,7 @@ func encodeTestRequestRequiredStringUUIDNullableResponse(response Error, w http. return nil } + func encodeTestRequestRequiredStringUUIDNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4229,6 +4552,7 @@ func encodeTestRequestRequiredStringUUIDNullableArrayResponse(response Error, w return nil } + func encodeTestRequestRequiredStringUUIDNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4242,6 +4566,7 @@ func encodeTestRequestRequiredStringUUIDNullableArrayArrayResponse(response Erro return nil } + func encodeTestRequestRequiredStringUnixResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4255,6 +4580,7 @@ func encodeTestRequestRequiredStringUnixResponse(response Error, w http.Response return nil } + func encodeTestRequestRequiredStringUnixArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4268,6 +4594,7 @@ func encodeTestRequestRequiredStringUnixArrayResponse(response Error, w http.Res return nil } + func encodeTestRequestRequiredStringUnixArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4281,6 +4608,7 @@ func encodeTestRequestRequiredStringUnixArrayArrayResponse(response Error, w htt return nil } + func encodeTestRequestRequiredStringUnixMicroResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4294,6 +4622,7 @@ func encodeTestRequestRequiredStringUnixMicroResponse(response Error, w http.Res return nil } + func encodeTestRequestRequiredStringUnixMicroArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4307,6 +4636,7 @@ func encodeTestRequestRequiredStringUnixMicroArrayResponse(response Error, w htt return nil } + func encodeTestRequestRequiredStringUnixMicroArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4320,6 +4650,7 @@ func encodeTestRequestRequiredStringUnixMicroArrayArrayResponse(response Error, return nil } + func encodeTestRequestRequiredStringUnixMicroNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4333,6 +4664,7 @@ func encodeTestRequestRequiredStringUnixMicroNullableResponse(response Error, w return nil } + func encodeTestRequestRequiredStringUnixMicroNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4346,6 +4678,7 @@ func encodeTestRequestRequiredStringUnixMicroNullableArrayResponse(response Erro return nil } + func encodeTestRequestRequiredStringUnixMicroNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4359,6 +4692,7 @@ func encodeTestRequestRequiredStringUnixMicroNullableArrayArrayResponse(response return nil } + func encodeTestRequestRequiredStringUnixMilliResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4372,6 +4706,7 @@ func encodeTestRequestRequiredStringUnixMilliResponse(response Error, w http.Res return nil } + func encodeTestRequestRequiredStringUnixMilliArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4385,6 +4720,7 @@ func encodeTestRequestRequiredStringUnixMilliArrayResponse(response Error, w htt return nil } + func encodeTestRequestRequiredStringUnixMilliArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4398,6 +4734,7 @@ func encodeTestRequestRequiredStringUnixMilliArrayArrayResponse(response Error, return nil } + func encodeTestRequestRequiredStringUnixMilliNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4411,6 +4748,7 @@ func encodeTestRequestRequiredStringUnixMilliNullableResponse(response Error, w return nil } + func encodeTestRequestRequiredStringUnixMilliNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4424,6 +4762,7 @@ func encodeTestRequestRequiredStringUnixMilliNullableArrayResponse(response Erro return nil } + func encodeTestRequestRequiredStringUnixMilliNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4437,6 +4776,7 @@ func encodeTestRequestRequiredStringUnixMilliNullableArrayArrayResponse(response return nil } + func encodeTestRequestRequiredStringUnixNanoResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4450,6 +4790,7 @@ func encodeTestRequestRequiredStringUnixNanoResponse(response Error, w http.Resp return nil } + func encodeTestRequestRequiredStringUnixNanoArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4463,6 +4804,7 @@ func encodeTestRequestRequiredStringUnixNanoArrayResponse(response Error, w http return nil } + func encodeTestRequestRequiredStringUnixNanoArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4476,6 +4818,7 @@ func encodeTestRequestRequiredStringUnixNanoArrayArrayResponse(response Error, w return nil } + func encodeTestRequestRequiredStringUnixNanoNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4489,6 +4832,7 @@ func encodeTestRequestRequiredStringUnixNanoNullableResponse(response Error, w h return nil } + func encodeTestRequestRequiredStringUnixNanoNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4502,6 +4846,7 @@ func encodeTestRequestRequiredStringUnixNanoNullableArrayResponse(response Error return nil } + func encodeTestRequestRequiredStringUnixNanoNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4515,6 +4860,7 @@ func encodeTestRequestRequiredStringUnixNanoNullableArrayArrayResponse(response return nil } + func encodeTestRequestRequiredStringUnixNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4528,6 +4874,7 @@ func encodeTestRequestRequiredStringUnixNullableResponse(response Error, w http. return nil } + func encodeTestRequestRequiredStringUnixNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4541,6 +4888,7 @@ func encodeTestRequestRequiredStringUnixNullableArrayResponse(response Error, w return nil } + func encodeTestRequestRequiredStringUnixNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4554,6 +4902,7 @@ func encodeTestRequestRequiredStringUnixNullableArrayArrayResponse(response Erro return nil } + func encodeTestRequestRequiredStringUnixSecondsResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4567,6 +4916,7 @@ func encodeTestRequestRequiredStringUnixSecondsResponse(response Error, w http.R return nil } + func encodeTestRequestRequiredStringUnixSecondsArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4580,6 +4930,7 @@ func encodeTestRequestRequiredStringUnixSecondsArrayResponse(response Error, w h return nil } + func encodeTestRequestRequiredStringUnixSecondsArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4593,6 +4944,7 @@ func encodeTestRequestRequiredStringUnixSecondsArrayArrayResponse(response Error return nil } + func encodeTestRequestRequiredStringUnixSecondsNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4606,6 +4958,7 @@ func encodeTestRequestRequiredStringUnixSecondsNullableResponse(response Error, return nil } + func encodeTestRequestRequiredStringUnixSecondsNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4619,6 +4972,7 @@ func encodeTestRequestRequiredStringUnixSecondsNullableArrayResponse(response Er return nil } + func encodeTestRequestRequiredStringUnixSecondsNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4632,6 +4986,7 @@ func encodeTestRequestRequiredStringUnixSecondsNullableArrayArrayResponse(respon return nil } + func encodeTestRequestStringResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4645,6 +5000,7 @@ func encodeTestRequestStringResponse(response Error, w http.ResponseWriter, span return nil } + func encodeTestRequestStringArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4658,6 +5014,7 @@ func encodeTestRequestStringArrayResponse(response Error, w http.ResponseWriter, return nil } + func encodeTestRequestStringArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4671,6 +5028,7 @@ func encodeTestRequestStringArrayArrayResponse(response Error, w http.ResponseWr return nil } + func encodeTestRequestStringBinaryResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4684,6 +5042,7 @@ func encodeTestRequestStringBinaryResponse(response Error, w http.ResponseWriter return nil } + func encodeTestRequestStringBinaryArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4697,6 +5056,7 @@ func encodeTestRequestStringBinaryArrayResponse(response Error, w http.ResponseW return nil } + func encodeTestRequestStringBinaryArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4710,6 +5070,7 @@ func encodeTestRequestStringBinaryArrayArrayResponse(response Error, w http.Resp return nil } + func encodeTestRequestStringBinaryNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4723,6 +5084,7 @@ func encodeTestRequestStringBinaryNullableResponse(response Error, w http.Respon return nil } + func encodeTestRequestStringBinaryNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4736,6 +5098,7 @@ func encodeTestRequestStringBinaryNullableArrayResponse(response Error, w http.R return nil } + func encodeTestRequestStringBinaryNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4749,6 +5112,7 @@ func encodeTestRequestStringBinaryNullableArrayArrayResponse(response Error, w h return nil } + func encodeTestRequestStringByteResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4762,6 +5126,7 @@ func encodeTestRequestStringByteResponse(response Error, w http.ResponseWriter, return nil } + func encodeTestRequestStringByteArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4775,6 +5140,7 @@ func encodeTestRequestStringByteArrayResponse(response Error, w http.ResponseWri return nil } + func encodeTestRequestStringByteArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4788,6 +5154,7 @@ func encodeTestRequestStringByteArrayArrayResponse(response Error, w http.Respon return nil } + func encodeTestRequestStringByteNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4801,6 +5168,7 @@ func encodeTestRequestStringByteNullableResponse(response Error, w http.Response return nil } + func encodeTestRequestStringByteNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4814,6 +5182,7 @@ func encodeTestRequestStringByteNullableArrayResponse(response Error, w http.Res return nil } + func encodeTestRequestStringByteNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4827,6 +5196,7 @@ func encodeTestRequestStringByteNullableArrayArrayResponse(response Error, w htt return nil } + func encodeTestRequestStringDateResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4840,6 +5210,7 @@ func encodeTestRequestStringDateResponse(response Error, w http.ResponseWriter, return nil } + func encodeTestRequestStringDateArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4853,6 +5224,7 @@ func encodeTestRequestStringDateArrayResponse(response Error, w http.ResponseWri return nil } + func encodeTestRequestStringDateArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4866,6 +5238,7 @@ func encodeTestRequestStringDateArrayArrayResponse(response Error, w http.Respon return nil } + func encodeTestRequestStringDateNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4879,6 +5252,7 @@ func encodeTestRequestStringDateNullableResponse(response Error, w http.Response return nil } + func encodeTestRequestStringDateNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4892,6 +5266,7 @@ func encodeTestRequestStringDateNullableArrayResponse(response Error, w http.Res return nil } + func encodeTestRequestStringDateNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4905,6 +5280,7 @@ func encodeTestRequestStringDateNullableArrayArrayResponse(response Error, w htt return nil } + func encodeTestRequestStringDateTimeResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4918,6 +5294,7 @@ func encodeTestRequestStringDateTimeResponse(response Error, w http.ResponseWrit return nil } + func encodeTestRequestStringDateTimeArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4931,6 +5308,7 @@ func encodeTestRequestStringDateTimeArrayResponse(response Error, w http.Respons return nil } + func encodeTestRequestStringDateTimeArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4944,6 +5322,7 @@ func encodeTestRequestStringDateTimeArrayArrayResponse(response Error, w http.Re return nil } + func encodeTestRequestStringDateTimeNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4957,6 +5336,7 @@ func encodeTestRequestStringDateTimeNullableResponse(response Error, w http.Resp return nil } + func encodeTestRequestStringDateTimeNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4970,6 +5350,7 @@ func encodeTestRequestStringDateTimeNullableArrayResponse(response Error, w http return nil } + func encodeTestRequestStringDateTimeNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4983,6 +5364,7 @@ func encodeTestRequestStringDateTimeNullableArrayArrayResponse(response Error, w return nil } + func encodeTestRequestStringDurationResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -4996,6 +5378,7 @@ func encodeTestRequestStringDurationResponse(response Error, w http.ResponseWrit return nil } + func encodeTestRequestStringDurationArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5009,6 +5392,7 @@ func encodeTestRequestStringDurationArrayResponse(response Error, w http.Respons return nil } + func encodeTestRequestStringDurationArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5022,6 +5406,7 @@ func encodeTestRequestStringDurationArrayArrayResponse(response Error, w http.Re return nil } + func encodeTestRequestStringDurationNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5035,6 +5420,7 @@ func encodeTestRequestStringDurationNullableResponse(response Error, w http.Resp return nil } + func encodeTestRequestStringDurationNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5048,6 +5434,7 @@ func encodeTestRequestStringDurationNullableArrayResponse(response Error, w http return nil } + func encodeTestRequestStringDurationNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5061,6 +5448,7 @@ func encodeTestRequestStringDurationNullableArrayArrayResponse(response Error, w return nil } + func encodeTestRequestStringEmailResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5074,6 +5462,7 @@ func encodeTestRequestStringEmailResponse(response Error, w http.ResponseWriter, return nil } + func encodeTestRequestStringEmailArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5087,6 +5476,7 @@ func encodeTestRequestStringEmailArrayResponse(response Error, w http.ResponseWr return nil } + func encodeTestRequestStringEmailArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5100,6 +5490,7 @@ func encodeTestRequestStringEmailArrayArrayResponse(response Error, w http.Respo return nil } + func encodeTestRequestStringEmailNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5113,6 +5504,7 @@ func encodeTestRequestStringEmailNullableResponse(response Error, w http.Respons return nil } + func encodeTestRequestStringEmailNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5126,6 +5518,7 @@ func encodeTestRequestStringEmailNullableArrayResponse(response Error, w http.Re return nil } + func encodeTestRequestStringEmailNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5139,6 +5532,7 @@ func encodeTestRequestStringEmailNullableArrayArrayResponse(response Error, w ht return nil } + func encodeTestRequestStringHostnameResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5152,6 +5546,7 @@ func encodeTestRequestStringHostnameResponse(response Error, w http.ResponseWrit return nil } + func encodeTestRequestStringHostnameArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5165,6 +5560,7 @@ func encodeTestRequestStringHostnameArrayResponse(response Error, w http.Respons return nil } + func encodeTestRequestStringHostnameArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5178,6 +5574,7 @@ func encodeTestRequestStringHostnameArrayArrayResponse(response Error, w http.Re return nil } + func encodeTestRequestStringHostnameNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5191,6 +5588,7 @@ func encodeTestRequestStringHostnameNullableResponse(response Error, w http.Resp return nil } + func encodeTestRequestStringHostnameNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5204,6 +5602,7 @@ func encodeTestRequestStringHostnameNullableArrayResponse(response Error, w http return nil } + func encodeTestRequestStringHostnameNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5217,6 +5616,7 @@ func encodeTestRequestStringHostnameNullableArrayArrayResponse(response Error, w return nil } + func encodeTestRequestStringIPResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5230,6 +5630,7 @@ func encodeTestRequestStringIPResponse(response Error, w http.ResponseWriter, sp return nil } + func encodeTestRequestStringIPArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5243,6 +5644,7 @@ func encodeTestRequestStringIPArrayResponse(response Error, w http.ResponseWrite return nil } + func encodeTestRequestStringIPArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5256,6 +5658,7 @@ func encodeTestRequestStringIPArrayArrayResponse(response Error, w http.Response return nil } + func encodeTestRequestStringIPNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5269,6 +5672,7 @@ func encodeTestRequestStringIPNullableResponse(response Error, w http.ResponseWr return nil } + func encodeTestRequestStringIPNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5282,6 +5686,7 @@ func encodeTestRequestStringIPNullableArrayResponse(response Error, w http.Respo return nil } + func encodeTestRequestStringIPNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5295,6 +5700,7 @@ func encodeTestRequestStringIPNullableArrayArrayResponse(response Error, w http. return nil } + func encodeTestRequestStringInt32Response(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5308,6 +5714,7 @@ func encodeTestRequestStringInt32Response(response Error, w http.ResponseWriter, return nil } + func encodeTestRequestStringInt32ArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5321,6 +5728,7 @@ func encodeTestRequestStringInt32ArrayResponse(response Error, w http.ResponseWr return nil } + func encodeTestRequestStringInt32ArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5334,6 +5742,7 @@ func encodeTestRequestStringInt32ArrayArrayResponse(response Error, w http.Respo return nil } + func encodeTestRequestStringInt32NullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5347,6 +5756,7 @@ func encodeTestRequestStringInt32NullableResponse(response Error, w http.Respons return nil } + func encodeTestRequestStringInt32NullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5360,6 +5770,7 @@ func encodeTestRequestStringInt32NullableArrayResponse(response Error, w http.Re return nil } + func encodeTestRequestStringInt32NullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5373,6 +5784,7 @@ func encodeTestRequestStringInt32NullableArrayArrayResponse(response Error, w ht return nil } + func encodeTestRequestStringInt64Response(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5386,6 +5798,7 @@ func encodeTestRequestStringInt64Response(response Error, w http.ResponseWriter, return nil } + func encodeTestRequestStringInt64ArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5399,6 +5812,7 @@ func encodeTestRequestStringInt64ArrayResponse(response Error, w http.ResponseWr return nil } + func encodeTestRequestStringInt64ArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5412,6 +5826,7 @@ func encodeTestRequestStringInt64ArrayArrayResponse(response Error, w http.Respo return nil } + func encodeTestRequestStringInt64NullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5425,6 +5840,7 @@ func encodeTestRequestStringInt64NullableResponse(response Error, w http.Respons return nil } + func encodeTestRequestStringInt64NullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5438,6 +5854,7 @@ func encodeTestRequestStringInt64NullableArrayResponse(response Error, w http.Re return nil } + func encodeTestRequestStringInt64NullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5451,6 +5868,7 @@ func encodeTestRequestStringInt64NullableArrayArrayResponse(response Error, w ht return nil } + func encodeTestRequestStringIpv4Response(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5464,6 +5882,7 @@ func encodeTestRequestStringIpv4Response(response Error, w http.ResponseWriter, return nil } + func encodeTestRequestStringIpv4ArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5477,6 +5896,7 @@ func encodeTestRequestStringIpv4ArrayResponse(response Error, w http.ResponseWri return nil } + func encodeTestRequestStringIpv4ArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5490,6 +5910,7 @@ func encodeTestRequestStringIpv4ArrayArrayResponse(response Error, w http.Respon return nil } + func encodeTestRequestStringIpv4NullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5503,6 +5924,7 @@ func encodeTestRequestStringIpv4NullableResponse(response Error, w http.Response return nil } + func encodeTestRequestStringIpv4NullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5516,6 +5938,7 @@ func encodeTestRequestStringIpv4NullableArrayResponse(response Error, w http.Res return nil } + func encodeTestRequestStringIpv4NullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5529,6 +5952,7 @@ func encodeTestRequestStringIpv4NullableArrayArrayResponse(response Error, w htt return nil } + func encodeTestRequestStringIpv6Response(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5542,6 +5966,7 @@ func encodeTestRequestStringIpv6Response(response Error, w http.ResponseWriter, return nil } + func encodeTestRequestStringIpv6ArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5555,6 +5980,7 @@ func encodeTestRequestStringIpv6ArrayResponse(response Error, w http.ResponseWri return nil } + func encodeTestRequestStringIpv6ArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5568,6 +5994,7 @@ func encodeTestRequestStringIpv6ArrayArrayResponse(response Error, w http.Respon return nil } + func encodeTestRequestStringIpv6NullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5581,6 +6008,7 @@ func encodeTestRequestStringIpv6NullableResponse(response Error, w http.Response return nil } + func encodeTestRequestStringIpv6NullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5594,6 +6022,7 @@ func encodeTestRequestStringIpv6NullableArrayResponse(response Error, w http.Res return nil } + func encodeTestRequestStringIpv6NullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5607,6 +6036,7 @@ func encodeTestRequestStringIpv6NullableArrayArrayResponse(response Error, w htt return nil } + func encodeTestRequestStringNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5620,6 +6050,7 @@ func encodeTestRequestStringNullableResponse(response Error, w http.ResponseWrit return nil } + func encodeTestRequestStringNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5633,6 +6064,7 @@ func encodeTestRequestStringNullableArrayResponse(response Error, w http.Respons return nil } + func encodeTestRequestStringNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5646,6 +6078,7 @@ func encodeTestRequestStringNullableArrayArrayResponse(response Error, w http.Re return nil } + func encodeTestRequestStringPasswordResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5659,6 +6092,7 @@ func encodeTestRequestStringPasswordResponse(response Error, w http.ResponseWrit return nil } + func encodeTestRequestStringPasswordArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5672,6 +6106,7 @@ func encodeTestRequestStringPasswordArrayResponse(response Error, w http.Respons return nil } + func encodeTestRequestStringPasswordArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5685,6 +6120,7 @@ func encodeTestRequestStringPasswordArrayArrayResponse(response Error, w http.Re return nil } + func encodeTestRequestStringPasswordNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5698,6 +6134,7 @@ func encodeTestRequestStringPasswordNullableResponse(response Error, w http.Resp return nil } + func encodeTestRequestStringPasswordNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5711,6 +6148,7 @@ func encodeTestRequestStringPasswordNullableArrayResponse(response Error, w http return nil } + func encodeTestRequestStringPasswordNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5724,6 +6162,7 @@ func encodeTestRequestStringPasswordNullableArrayArrayResponse(response Error, w return nil } + func encodeTestRequestStringTimeResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5737,6 +6176,7 @@ func encodeTestRequestStringTimeResponse(response Error, w http.ResponseWriter, return nil } + func encodeTestRequestStringTimeArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5750,6 +6190,7 @@ func encodeTestRequestStringTimeArrayResponse(response Error, w http.ResponseWri return nil } + func encodeTestRequestStringTimeArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5763,6 +6204,7 @@ func encodeTestRequestStringTimeArrayArrayResponse(response Error, w http.Respon return nil } + func encodeTestRequestStringTimeNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5776,6 +6218,7 @@ func encodeTestRequestStringTimeNullableResponse(response Error, w http.Response return nil } + func encodeTestRequestStringTimeNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5789,6 +6232,7 @@ func encodeTestRequestStringTimeNullableArrayResponse(response Error, w http.Res return nil } + func encodeTestRequestStringTimeNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5802,6 +6246,7 @@ func encodeTestRequestStringTimeNullableArrayArrayResponse(response Error, w htt return nil } + func encodeTestRequestStringURIResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5815,6 +6260,7 @@ func encodeTestRequestStringURIResponse(response Error, w http.ResponseWriter, s return nil } + func encodeTestRequestStringURIArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5828,6 +6274,7 @@ func encodeTestRequestStringURIArrayResponse(response Error, w http.ResponseWrit return nil } + func encodeTestRequestStringURIArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5841,6 +6288,7 @@ func encodeTestRequestStringURIArrayArrayResponse(response Error, w http.Respons return nil } + func encodeTestRequestStringURINullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5854,6 +6302,7 @@ func encodeTestRequestStringURINullableResponse(response Error, w http.ResponseW return nil } + func encodeTestRequestStringURINullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5867,6 +6316,7 @@ func encodeTestRequestStringURINullableArrayResponse(response Error, w http.Resp return nil } + func encodeTestRequestStringURINullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5880,6 +6330,7 @@ func encodeTestRequestStringURINullableArrayArrayResponse(response Error, w http return nil } + func encodeTestRequestStringUUIDResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5893,6 +6344,7 @@ func encodeTestRequestStringUUIDResponse(response Error, w http.ResponseWriter, return nil } + func encodeTestRequestStringUUIDArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5906,6 +6358,7 @@ func encodeTestRequestStringUUIDArrayResponse(response Error, w http.ResponseWri return nil } + func encodeTestRequestStringUUIDArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5919,6 +6372,7 @@ func encodeTestRequestStringUUIDArrayArrayResponse(response Error, w http.Respon return nil } + func encodeTestRequestStringUUIDNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5932,6 +6386,7 @@ func encodeTestRequestStringUUIDNullableResponse(response Error, w http.Response return nil } + func encodeTestRequestStringUUIDNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5945,6 +6400,7 @@ func encodeTestRequestStringUUIDNullableArrayResponse(response Error, w http.Res return nil } + func encodeTestRequestStringUUIDNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5958,6 +6414,7 @@ func encodeTestRequestStringUUIDNullableArrayArrayResponse(response Error, w htt return nil } + func encodeTestRequestStringUnixResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5971,6 +6428,7 @@ func encodeTestRequestStringUnixResponse(response Error, w http.ResponseWriter, return nil } + func encodeTestRequestStringUnixArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5984,6 +6442,7 @@ func encodeTestRequestStringUnixArrayResponse(response Error, w http.ResponseWri return nil } + func encodeTestRequestStringUnixArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -5997,6 +6456,7 @@ func encodeTestRequestStringUnixArrayArrayResponse(response Error, w http.Respon return nil } + func encodeTestRequestStringUnixMicroResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6010,6 +6470,7 @@ func encodeTestRequestStringUnixMicroResponse(response Error, w http.ResponseWri return nil } + func encodeTestRequestStringUnixMicroArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6023,6 +6484,7 @@ func encodeTestRequestStringUnixMicroArrayResponse(response Error, w http.Respon return nil } + func encodeTestRequestStringUnixMicroArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6036,6 +6498,7 @@ func encodeTestRequestStringUnixMicroArrayArrayResponse(response Error, w http.R return nil } + func encodeTestRequestStringUnixMicroNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6049,6 +6512,7 @@ func encodeTestRequestStringUnixMicroNullableResponse(response Error, w http.Res return nil } + func encodeTestRequestStringUnixMicroNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6062,6 +6526,7 @@ func encodeTestRequestStringUnixMicroNullableArrayResponse(response Error, w htt return nil } + func encodeTestRequestStringUnixMicroNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6075,6 +6540,7 @@ func encodeTestRequestStringUnixMicroNullableArrayArrayResponse(response Error, return nil } + func encodeTestRequestStringUnixMilliResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6088,6 +6554,7 @@ func encodeTestRequestStringUnixMilliResponse(response Error, w http.ResponseWri return nil } + func encodeTestRequestStringUnixMilliArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6101,6 +6568,7 @@ func encodeTestRequestStringUnixMilliArrayResponse(response Error, w http.Respon return nil } + func encodeTestRequestStringUnixMilliArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6114,6 +6582,7 @@ func encodeTestRequestStringUnixMilliArrayArrayResponse(response Error, w http.R return nil } + func encodeTestRequestStringUnixMilliNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6127,6 +6596,7 @@ func encodeTestRequestStringUnixMilliNullableResponse(response Error, w http.Res return nil } + func encodeTestRequestStringUnixMilliNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6140,6 +6610,7 @@ func encodeTestRequestStringUnixMilliNullableArrayResponse(response Error, w htt return nil } + func encodeTestRequestStringUnixMilliNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6153,6 +6624,7 @@ func encodeTestRequestStringUnixMilliNullableArrayArrayResponse(response Error, return nil } + func encodeTestRequestStringUnixNanoResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6166,6 +6638,7 @@ func encodeTestRequestStringUnixNanoResponse(response Error, w http.ResponseWrit return nil } + func encodeTestRequestStringUnixNanoArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6179,6 +6652,7 @@ func encodeTestRequestStringUnixNanoArrayResponse(response Error, w http.Respons return nil } + func encodeTestRequestStringUnixNanoArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6192,6 +6666,7 @@ func encodeTestRequestStringUnixNanoArrayArrayResponse(response Error, w http.Re return nil } + func encodeTestRequestStringUnixNanoNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6205,6 +6680,7 @@ func encodeTestRequestStringUnixNanoNullableResponse(response Error, w http.Resp return nil } + func encodeTestRequestStringUnixNanoNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6218,6 +6694,7 @@ func encodeTestRequestStringUnixNanoNullableArrayResponse(response Error, w http return nil } + func encodeTestRequestStringUnixNanoNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6231,6 +6708,7 @@ func encodeTestRequestStringUnixNanoNullableArrayArrayResponse(response Error, w return nil } + func encodeTestRequestStringUnixNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6244,6 +6722,7 @@ func encodeTestRequestStringUnixNullableResponse(response Error, w http.Response return nil } + func encodeTestRequestStringUnixNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6257,6 +6736,7 @@ func encodeTestRequestStringUnixNullableArrayResponse(response Error, w http.Res return nil } + func encodeTestRequestStringUnixNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6270,6 +6750,7 @@ func encodeTestRequestStringUnixNullableArrayArrayResponse(response Error, w htt return nil } + func encodeTestRequestStringUnixSecondsResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6283,6 +6764,7 @@ func encodeTestRequestStringUnixSecondsResponse(response Error, w http.ResponseW return nil } + func encodeTestRequestStringUnixSecondsArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6296,6 +6778,7 @@ func encodeTestRequestStringUnixSecondsArrayResponse(response Error, w http.Resp return nil } + func encodeTestRequestStringUnixSecondsArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6309,6 +6792,7 @@ func encodeTestRequestStringUnixSecondsArrayArrayResponse(response Error, w http return nil } + func encodeTestRequestStringUnixSecondsNullableResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6322,6 +6806,7 @@ func encodeTestRequestStringUnixSecondsNullableResponse(response Error, w http.R return nil } + func encodeTestRequestStringUnixSecondsNullableArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6335,6 +6820,7 @@ func encodeTestRequestStringUnixSecondsNullableArrayResponse(response Error, w h return nil } + func encodeTestRequestStringUnixSecondsNullableArrayArrayResponse(response Error, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6348,6 +6834,7 @@ func encodeTestRequestStringUnixSecondsNullableArrayArrayResponse(response Error return nil } + func encodeTestResponseAnyResponse(response jx.Raw, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6363,6 +6850,7 @@ func encodeTestResponseAnyResponse(response jx.Raw, w http.ResponseWriter, span return nil } + func encodeTestResponseBooleanResponse(response bool, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6376,6 +6864,7 @@ func encodeTestResponseBooleanResponse(response bool, w http.ResponseWriter, spa return nil } + func encodeTestResponseBooleanArrayResponse(response []bool, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6393,6 +6882,7 @@ func encodeTestResponseBooleanArrayResponse(response []bool, w http.ResponseWrit return nil } + func encodeTestResponseBooleanArrayArrayResponse(response [][]bool, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6414,6 +6904,7 @@ func encodeTestResponseBooleanArrayArrayResponse(response [][]bool, w http.Respo return nil } + func encodeTestResponseBooleanNullableResponse(response NilBool, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6427,6 +6918,7 @@ func encodeTestResponseBooleanNullableResponse(response NilBool, w http.Response return nil } + func encodeTestResponseBooleanNullableArrayResponse(response []NilBool, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6444,6 +6936,7 @@ func encodeTestResponseBooleanNullableArrayResponse(response []NilBool, w http.R return nil } + func encodeTestResponseBooleanNullableArrayArrayResponse(response [][]NilBool, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6465,6 +6958,7 @@ func encodeTestResponseBooleanNullableArrayArrayResponse(response [][]NilBool, w return nil } + func encodeTestResponseEmptyStructResponse(response TestResponseEmptyStructOK, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6478,6 +6972,7 @@ func encodeTestResponseEmptyStructResponse(response TestResponseEmptyStructOK, w return nil } + func encodeTestResponseFormatTestResponse(response TestResponseFormatTestOK, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6491,6 +6986,7 @@ func encodeTestResponseFormatTestResponse(response TestResponseFormatTestOK, w h return nil } + func encodeTestResponseIntegerResponse(response int, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6504,6 +7000,7 @@ func encodeTestResponseIntegerResponse(response int, w http.ResponseWriter, span return nil } + func encodeTestResponseIntegerArrayResponse(response []int, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6521,6 +7018,7 @@ func encodeTestResponseIntegerArrayResponse(response []int, w http.ResponseWrite return nil } + func encodeTestResponseIntegerArrayArrayResponse(response [][]int, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6542,6 +7040,7 @@ func encodeTestResponseIntegerArrayArrayResponse(response [][]int, w http.Respon return nil } + func encodeTestResponseIntegerInt32Response(response int32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6555,6 +7054,7 @@ func encodeTestResponseIntegerInt32Response(response int32, w http.ResponseWrite return nil } + func encodeTestResponseIntegerInt32ArrayResponse(response []int32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6572,6 +7072,7 @@ func encodeTestResponseIntegerInt32ArrayResponse(response []int32, w http.Respon return nil } + func encodeTestResponseIntegerInt32ArrayArrayResponse(response [][]int32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6593,6 +7094,7 @@ func encodeTestResponseIntegerInt32ArrayArrayResponse(response [][]int32, w http return nil } + func encodeTestResponseIntegerInt32NullableResponse(response NilInt32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6606,6 +7108,7 @@ func encodeTestResponseIntegerInt32NullableResponse(response NilInt32, w http.Re return nil } + func encodeTestResponseIntegerInt32NullableArrayResponse(response []NilInt32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6623,6 +7126,7 @@ func encodeTestResponseIntegerInt32NullableArrayResponse(response []NilInt32, w return nil } + func encodeTestResponseIntegerInt32NullableArrayArrayResponse(response [][]NilInt32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6644,6 +7148,7 @@ func encodeTestResponseIntegerInt32NullableArrayArrayResponse(response [][]NilIn return nil } + func encodeTestResponseIntegerInt64Response(response int64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6657,6 +7162,7 @@ func encodeTestResponseIntegerInt64Response(response int64, w http.ResponseWrite return nil } + func encodeTestResponseIntegerInt64ArrayResponse(response []int64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6674,6 +7180,7 @@ func encodeTestResponseIntegerInt64ArrayResponse(response []int64, w http.Respon return nil } + func encodeTestResponseIntegerInt64ArrayArrayResponse(response [][]int64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6695,6 +7202,7 @@ func encodeTestResponseIntegerInt64ArrayArrayResponse(response [][]int64, w http return nil } + func encodeTestResponseIntegerInt64NullableResponse(response NilInt64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6708,6 +7216,7 @@ func encodeTestResponseIntegerInt64NullableResponse(response NilInt64, w http.Re return nil } + func encodeTestResponseIntegerInt64NullableArrayResponse(response []NilInt64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6725,6 +7234,7 @@ func encodeTestResponseIntegerInt64NullableArrayResponse(response []NilInt64, w return nil } + func encodeTestResponseIntegerInt64NullableArrayArrayResponse(response [][]NilInt64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6746,6 +7256,7 @@ func encodeTestResponseIntegerInt64NullableArrayArrayResponse(response [][]NilIn return nil } + func encodeTestResponseIntegerNullableResponse(response NilInt, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6759,6 +7270,7 @@ func encodeTestResponseIntegerNullableResponse(response NilInt, w http.ResponseW return nil } + func encodeTestResponseIntegerNullableArrayResponse(response []NilInt, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6776,6 +7288,7 @@ func encodeTestResponseIntegerNullableArrayResponse(response []NilInt, w http.Re return nil } + func encodeTestResponseIntegerNullableArrayArrayResponse(response [][]NilInt, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6797,6 +7310,7 @@ func encodeTestResponseIntegerNullableArrayArrayResponse(response [][]NilInt, w return nil } + func encodeTestResponseIntegerUintResponse(response uint, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6810,6 +7324,7 @@ func encodeTestResponseIntegerUintResponse(response uint, w http.ResponseWriter, return nil } + func encodeTestResponseIntegerUint32Response(response uint32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6823,6 +7338,7 @@ func encodeTestResponseIntegerUint32Response(response uint32, w http.ResponseWri return nil } + func encodeTestResponseIntegerUint32ArrayResponse(response []uint32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6840,6 +7356,7 @@ func encodeTestResponseIntegerUint32ArrayResponse(response []uint32, w http.Resp return nil } + func encodeTestResponseIntegerUint32ArrayArrayResponse(response [][]uint32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6861,6 +7378,7 @@ func encodeTestResponseIntegerUint32ArrayArrayResponse(response [][]uint32, w ht return nil } + func encodeTestResponseIntegerUint32NullableResponse(response NilUint32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6874,6 +7392,7 @@ func encodeTestResponseIntegerUint32NullableResponse(response NilUint32, w http. return nil } + func encodeTestResponseIntegerUint32NullableArrayResponse(response []NilUint32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6891,6 +7410,7 @@ func encodeTestResponseIntegerUint32NullableArrayResponse(response []NilUint32, return nil } + func encodeTestResponseIntegerUint32NullableArrayArrayResponse(response [][]NilUint32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6912,6 +7432,7 @@ func encodeTestResponseIntegerUint32NullableArrayArrayResponse(response [][]NilU return nil } + func encodeTestResponseIntegerUint64Response(response uint64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6925,6 +7446,7 @@ func encodeTestResponseIntegerUint64Response(response uint64, w http.ResponseWri return nil } + func encodeTestResponseIntegerUint64ArrayResponse(response []uint64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6942,6 +7464,7 @@ func encodeTestResponseIntegerUint64ArrayResponse(response []uint64, w http.Resp return nil } + func encodeTestResponseIntegerUint64ArrayArrayResponse(response [][]uint64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6963,6 +7486,7 @@ func encodeTestResponseIntegerUint64ArrayArrayResponse(response [][]uint64, w ht return nil } + func encodeTestResponseIntegerUint64NullableResponse(response NilUint64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6976,6 +7500,7 @@ func encodeTestResponseIntegerUint64NullableResponse(response NilUint64, w http. return nil } + func encodeTestResponseIntegerUint64NullableArrayResponse(response []NilUint64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -6993,6 +7518,7 @@ func encodeTestResponseIntegerUint64NullableArrayResponse(response []NilUint64, return nil } + func encodeTestResponseIntegerUint64NullableArrayArrayResponse(response [][]NilUint64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7014,6 +7540,7 @@ func encodeTestResponseIntegerUint64NullableArrayArrayResponse(response [][]NilU return nil } + func encodeTestResponseIntegerUintArrayResponse(response []uint, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7031,6 +7558,7 @@ func encodeTestResponseIntegerUintArrayResponse(response []uint, w http.Response return nil } + func encodeTestResponseIntegerUintArrayArrayResponse(response [][]uint, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7052,6 +7580,7 @@ func encodeTestResponseIntegerUintArrayArrayResponse(response [][]uint, w http.R return nil } + func encodeTestResponseIntegerUintNullableResponse(response NilUint, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7065,6 +7594,7 @@ func encodeTestResponseIntegerUintNullableResponse(response NilUint, w http.Resp return nil } + func encodeTestResponseIntegerUintNullableArrayResponse(response []NilUint, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7082,6 +7612,7 @@ func encodeTestResponseIntegerUintNullableArrayResponse(response []NilUint, w ht return nil } + func encodeTestResponseIntegerUintNullableArrayArrayResponse(response [][]NilUint, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7103,6 +7634,7 @@ func encodeTestResponseIntegerUintNullableArrayArrayResponse(response [][]NilUin return nil } + func encodeTestResponseIntegerUnixResponse(response time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7116,6 +7648,7 @@ func encodeTestResponseIntegerUnixResponse(response time.Time, w http.ResponseWr return nil } + func encodeTestResponseIntegerUnixArrayResponse(response []time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7133,6 +7666,7 @@ func encodeTestResponseIntegerUnixArrayResponse(response []time.Time, w http.Res return nil } + func encodeTestResponseIntegerUnixArrayArrayResponse(response [][]time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7154,6 +7688,7 @@ func encodeTestResponseIntegerUnixArrayArrayResponse(response [][]time.Time, w h return nil } + func encodeTestResponseIntegerUnixMicroResponse(response time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7167,6 +7702,7 @@ func encodeTestResponseIntegerUnixMicroResponse(response time.Time, w http.Respo return nil } + func encodeTestResponseIntegerUnixMicroArrayResponse(response []time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7184,6 +7720,7 @@ func encodeTestResponseIntegerUnixMicroArrayResponse(response []time.Time, w htt return nil } + func encodeTestResponseIntegerUnixMicroArrayArrayResponse(response [][]time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7205,6 +7742,7 @@ func encodeTestResponseIntegerUnixMicroArrayArrayResponse(response [][]time.Time return nil } + func encodeTestResponseIntegerUnixMicroNullableResponse(response NilUnixMicro, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7218,6 +7756,7 @@ func encodeTestResponseIntegerUnixMicroNullableResponse(response NilUnixMicro, w return nil } + func encodeTestResponseIntegerUnixMicroNullableArrayResponse(response []NilUnixMicro, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7235,6 +7774,7 @@ func encodeTestResponseIntegerUnixMicroNullableArrayResponse(response []NilUnixM return nil } + func encodeTestResponseIntegerUnixMicroNullableArrayArrayResponse(response [][]NilUnixMicro, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7256,6 +7796,7 @@ func encodeTestResponseIntegerUnixMicroNullableArrayArrayResponse(response [][]N return nil } + func encodeTestResponseIntegerUnixMilliResponse(response time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7269,6 +7810,7 @@ func encodeTestResponseIntegerUnixMilliResponse(response time.Time, w http.Respo return nil } + func encodeTestResponseIntegerUnixMilliArrayResponse(response []time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7286,6 +7828,7 @@ func encodeTestResponseIntegerUnixMilliArrayResponse(response []time.Time, w htt return nil } + func encodeTestResponseIntegerUnixMilliArrayArrayResponse(response [][]time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7307,6 +7850,7 @@ func encodeTestResponseIntegerUnixMilliArrayArrayResponse(response [][]time.Time return nil } + func encodeTestResponseIntegerUnixMilliNullableResponse(response NilUnixMilli, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7320,6 +7864,7 @@ func encodeTestResponseIntegerUnixMilliNullableResponse(response NilUnixMilli, w return nil } + func encodeTestResponseIntegerUnixMilliNullableArrayResponse(response []NilUnixMilli, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7337,6 +7882,7 @@ func encodeTestResponseIntegerUnixMilliNullableArrayResponse(response []NilUnixM return nil } + func encodeTestResponseIntegerUnixMilliNullableArrayArrayResponse(response [][]NilUnixMilli, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7358,6 +7904,7 @@ func encodeTestResponseIntegerUnixMilliNullableArrayArrayResponse(response [][]N return nil } + func encodeTestResponseIntegerUnixNanoResponse(response time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7371,6 +7918,7 @@ func encodeTestResponseIntegerUnixNanoResponse(response time.Time, w http.Respon return nil } + func encodeTestResponseIntegerUnixNanoArrayResponse(response []time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7388,6 +7936,7 @@ func encodeTestResponseIntegerUnixNanoArrayResponse(response []time.Time, w http return nil } + func encodeTestResponseIntegerUnixNanoArrayArrayResponse(response [][]time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7409,6 +7958,7 @@ func encodeTestResponseIntegerUnixNanoArrayArrayResponse(response [][]time.Time, return nil } + func encodeTestResponseIntegerUnixNanoNullableResponse(response NilUnixNano, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7422,6 +7972,7 @@ func encodeTestResponseIntegerUnixNanoNullableResponse(response NilUnixNano, w h return nil } + func encodeTestResponseIntegerUnixNanoNullableArrayResponse(response []NilUnixNano, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7439,6 +7990,7 @@ func encodeTestResponseIntegerUnixNanoNullableArrayResponse(response []NilUnixNa return nil } + func encodeTestResponseIntegerUnixNanoNullableArrayArrayResponse(response [][]NilUnixNano, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7460,6 +8012,7 @@ func encodeTestResponseIntegerUnixNanoNullableArrayArrayResponse(response [][]Ni return nil } + func encodeTestResponseIntegerUnixNullableResponse(response NilUnixSeconds, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7473,6 +8026,7 @@ func encodeTestResponseIntegerUnixNullableResponse(response NilUnixSeconds, w ht return nil } + func encodeTestResponseIntegerUnixNullableArrayResponse(response []NilUnixSeconds, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7490,6 +8044,7 @@ func encodeTestResponseIntegerUnixNullableArrayResponse(response []NilUnixSecond return nil } + func encodeTestResponseIntegerUnixNullableArrayArrayResponse(response [][]NilUnixSeconds, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7511,6 +8066,7 @@ func encodeTestResponseIntegerUnixNullableArrayArrayResponse(response [][]NilUni return nil } + func encodeTestResponseIntegerUnixSecondsResponse(response time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7524,6 +8080,7 @@ func encodeTestResponseIntegerUnixSecondsResponse(response time.Time, w http.Res return nil } + func encodeTestResponseIntegerUnixSecondsArrayResponse(response []time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7541,6 +8098,7 @@ func encodeTestResponseIntegerUnixSecondsArrayResponse(response []time.Time, w h return nil } + func encodeTestResponseIntegerUnixSecondsArrayArrayResponse(response [][]time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7562,6 +8120,7 @@ func encodeTestResponseIntegerUnixSecondsArrayArrayResponse(response [][]time.Ti return nil } + func encodeTestResponseIntegerUnixSecondsNullableResponse(response NilUnixSeconds, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7575,6 +8134,7 @@ func encodeTestResponseIntegerUnixSecondsNullableResponse(response NilUnixSecond return nil } + func encodeTestResponseIntegerUnixSecondsNullableArrayResponse(response []NilUnixSeconds, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7592,6 +8152,7 @@ func encodeTestResponseIntegerUnixSecondsNullableArrayResponse(response []NilUni return nil } + func encodeTestResponseIntegerUnixSecondsNullableArrayArrayResponse(response [][]NilUnixSeconds, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7613,6 +8174,7 @@ func encodeTestResponseIntegerUnixSecondsNullableArrayArrayResponse(response [][ return nil } + func encodeTestResponseNullResponse(response struct{}, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7627,6 +8189,7 @@ func encodeTestResponseNullResponse(response struct{}, w http.ResponseWriter, sp return nil } + func encodeTestResponseNullArrayResponse(response []struct{}, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7645,6 +8208,7 @@ func encodeTestResponseNullArrayResponse(response []struct{}, w http.ResponseWri return nil } + func encodeTestResponseNullArrayArrayResponse(response [][]struct{}, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7667,6 +8231,7 @@ func encodeTestResponseNullArrayArrayResponse(response [][]struct{}, w http.Resp return nil } + func encodeTestResponseNullNullableResponse(response struct{}, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7681,6 +8246,7 @@ func encodeTestResponseNullNullableResponse(response struct{}, w http.ResponseWr return nil } + func encodeTestResponseNullNullableArrayResponse(response []struct{}, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7699,6 +8265,7 @@ func encodeTestResponseNullNullableArrayResponse(response []struct{}, w http.Res return nil } + func encodeTestResponseNullNullableArrayArrayResponse(response [][]struct{}, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7721,6 +8288,7 @@ func encodeTestResponseNullNullableArrayArrayResponse(response [][]struct{}, w h return nil } + func encodeTestResponseNumberResponse(response float64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7734,6 +8302,7 @@ func encodeTestResponseNumberResponse(response float64, w http.ResponseWriter, s return nil } + func encodeTestResponseNumberArrayResponse(response []float64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7751,6 +8320,7 @@ func encodeTestResponseNumberArrayResponse(response []float64, w http.ResponseWr return nil } + func encodeTestResponseNumberArrayArrayResponse(response [][]float64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7772,6 +8342,7 @@ func encodeTestResponseNumberArrayArrayResponse(response [][]float64, w http.Res return nil } + func encodeTestResponseNumberDoubleResponse(response float64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7785,6 +8356,7 @@ func encodeTestResponseNumberDoubleResponse(response float64, w http.ResponseWri return nil } + func encodeTestResponseNumberDoubleArrayResponse(response []float64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7802,6 +8374,7 @@ func encodeTestResponseNumberDoubleArrayResponse(response []float64, w http.Resp return nil } + func encodeTestResponseNumberDoubleArrayArrayResponse(response [][]float64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7823,6 +8396,7 @@ func encodeTestResponseNumberDoubleArrayArrayResponse(response [][]float64, w ht return nil } + func encodeTestResponseNumberDoubleNullableResponse(response NilFloat64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7836,6 +8410,7 @@ func encodeTestResponseNumberDoubleNullableResponse(response NilFloat64, w http. return nil } + func encodeTestResponseNumberDoubleNullableArrayResponse(response []NilFloat64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7853,6 +8428,7 @@ func encodeTestResponseNumberDoubleNullableArrayResponse(response []NilFloat64, return nil } + func encodeTestResponseNumberDoubleNullableArrayArrayResponse(response [][]NilFloat64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7874,6 +8450,7 @@ func encodeTestResponseNumberDoubleNullableArrayArrayResponse(response [][]NilFl return nil } + func encodeTestResponseNumberFloatResponse(response float32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7887,6 +8464,7 @@ func encodeTestResponseNumberFloatResponse(response float32, w http.ResponseWrit return nil } + func encodeTestResponseNumberFloatArrayResponse(response []float32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7904,6 +8482,7 @@ func encodeTestResponseNumberFloatArrayResponse(response []float32, w http.Respo return nil } + func encodeTestResponseNumberFloatArrayArrayResponse(response [][]float32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7925,6 +8504,7 @@ func encodeTestResponseNumberFloatArrayArrayResponse(response [][]float32, w htt return nil } + func encodeTestResponseNumberFloatNullableResponse(response NilFloat32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7938,6 +8518,7 @@ func encodeTestResponseNumberFloatNullableResponse(response NilFloat32, w http.R return nil } + func encodeTestResponseNumberFloatNullableArrayResponse(response []NilFloat32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7955,6 +8536,7 @@ func encodeTestResponseNumberFloatNullableArrayResponse(response []NilFloat32, w return nil } + func encodeTestResponseNumberFloatNullableArrayArrayResponse(response [][]NilFloat32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7976,6 +8558,7 @@ func encodeTestResponseNumberFloatNullableArrayArrayResponse(response [][]NilFlo return nil } + func encodeTestResponseNumberInt32Response(response int32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -7989,6 +8572,7 @@ func encodeTestResponseNumberInt32Response(response int32, w http.ResponseWriter return nil } + func encodeTestResponseNumberInt32ArrayResponse(response []int32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8006,6 +8590,7 @@ func encodeTestResponseNumberInt32ArrayResponse(response []int32, w http.Respons return nil } + func encodeTestResponseNumberInt32ArrayArrayResponse(response [][]int32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8027,6 +8612,7 @@ func encodeTestResponseNumberInt32ArrayArrayResponse(response [][]int32, w http. return nil } + func encodeTestResponseNumberInt32NullableResponse(response NilInt32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8040,6 +8626,7 @@ func encodeTestResponseNumberInt32NullableResponse(response NilInt32, w http.Res return nil } + func encodeTestResponseNumberInt32NullableArrayResponse(response []NilInt32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8057,6 +8644,7 @@ func encodeTestResponseNumberInt32NullableArrayResponse(response []NilInt32, w h return nil } + func encodeTestResponseNumberInt32NullableArrayArrayResponse(response [][]NilInt32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8078,6 +8666,7 @@ func encodeTestResponseNumberInt32NullableArrayArrayResponse(response [][]NilInt return nil } + func encodeTestResponseNumberInt64Response(response int64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8091,6 +8680,7 @@ func encodeTestResponseNumberInt64Response(response int64, w http.ResponseWriter return nil } + func encodeTestResponseNumberInt64ArrayResponse(response []int64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8108,6 +8698,7 @@ func encodeTestResponseNumberInt64ArrayResponse(response []int64, w http.Respons return nil } + func encodeTestResponseNumberInt64ArrayArrayResponse(response [][]int64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8129,6 +8720,7 @@ func encodeTestResponseNumberInt64ArrayArrayResponse(response [][]int64, w http. return nil } + func encodeTestResponseNumberInt64NullableResponse(response NilInt64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8142,6 +8734,7 @@ func encodeTestResponseNumberInt64NullableResponse(response NilInt64, w http.Res return nil } + func encodeTestResponseNumberInt64NullableArrayResponse(response []NilInt64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8159,6 +8752,7 @@ func encodeTestResponseNumberInt64NullableArrayResponse(response []NilInt64, w h return nil } + func encodeTestResponseNumberInt64NullableArrayArrayResponse(response [][]NilInt64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8180,6 +8774,7 @@ func encodeTestResponseNumberInt64NullableArrayArrayResponse(response [][]NilInt return nil } + func encodeTestResponseNumberNullableResponse(response NilFloat64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8193,6 +8788,7 @@ func encodeTestResponseNumberNullableResponse(response NilFloat64, w http.Respon return nil } + func encodeTestResponseNumberNullableArrayResponse(response []NilFloat64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8210,6 +8806,7 @@ func encodeTestResponseNumberNullableArrayResponse(response []NilFloat64, w http return nil } + func encodeTestResponseNumberNullableArrayArrayResponse(response [][]NilFloat64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8231,6 +8828,7 @@ func encodeTestResponseNumberNullableArrayArrayResponse(response [][]NilFloat64, return nil } + func encodeTestResponseStringResponse(response string, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8244,6 +8842,7 @@ func encodeTestResponseStringResponse(response string, w http.ResponseWriter, sp return nil } + func encodeTestResponseStringArrayResponse(response []string, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8261,6 +8860,7 @@ func encodeTestResponseStringArrayResponse(response []string, w http.ResponseWri return nil } + func encodeTestResponseStringArrayArrayResponse(response [][]string, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8282,6 +8882,7 @@ func encodeTestResponseStringArrayArrayResponse(response [][]string, w http.Resp return nil } + func encodeTestResponseStringBinaryResponse(response string, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8295,6 +8896,7 @@ func encodeTestResponseStringBinaryResponse(response string, w http.ResponseWrit return nil } + func encodeTestResponseStringBinaryArrayResponse(response []string, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8312,6 +8914,7 @@ func encodeTestResponseStringBinaryArrayResponse(response []string, w http.Respo return nil } + func encodeTestResponseStringBinaryArrayArrayResponse(response [][]string, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8333,6 +8936,7 @@ func encodeTestResponseStringBinaryArrayArrayResponse(response [][]string, w htt return nil } + func encodeTestResponseStringBinaryNullableResponse(response NilString, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8346,6 +8950,7 @@ func encodeTestResponseStringBinaryNullableResponse(response NilString, w http.R return nil } + func encodeTestResponseStringBinaryNullableArrayResponse(response []NilString, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8363,6 +8968,7 @@ func encodeTestResponseStringBinaryNullableArrayResponse(response []NilString, w return nil } + func encodeTestResponseStringBinaryNullableArrayArrayResponse(response [][]NilString, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8384,6 +8990,7 @@ func encodeTestResponseStringBinaryNullableArrayArrayResponse(response [][]NilSt return nil } + func encodeTestResponseStringByteResponse(response []byte, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8397,6 +9004,7 @@ func encodeTestResponseStringByteResponse(response []byte, w http.ResponseWriter return nil } + func encodeTestResponseStringByteArrayResponse(response [][]byte, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8414,6 +9022,7 @@ func encodeTestResponseStringByteArrayResponse(response [][]byte, w http.Respons return nil } + func encodeTestResponseStringByteArrayArrayResponse(response [][][]byte, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8435,6 +9044,7 @@ func encodeTestResponseStringByteArrayArrayResponse(response [][][]byte, w http. return nil } + func encodeTestResponseStringByteNullableResponse(response []byte, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8448,6 +9058,7 @@ func encodeTestResponseStringByteNullableResponse(response []byte, w http.Respon return nil } + func encodeTestResponseStringByteNullableArrayResponse(response [][]byte, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8465,6 +9076,7 @@ func encodeTestResponseStringByteNullableArrayResponse(response [][]byte, w http return nil } + func encodeTestResponseStringByteNullableArrayArrayResponse(response [][][]byte, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8486,6 +9098,7 @@ func encodeTestResponseStringByteNullableArrayArrayResponse(response [][][]byte, return nil } + func encodeTestResponseStringDateResponse(response time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8499,6 +9112,7 @@ func encodeTestResponseStringDateResponse(response time.Time, w http.ResponseWri return nil } + func encodeTestResponseStringDateArrayResponse(response []time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8516,6 +9130,7 @@ func encodeTestResponseStringDateArrayResponse(response []time.Time, w http.Resp return nil } + func encodeTestResponseStringDateArrayArrayResponse(response [][]time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8537,6 +9152,7 @@ func encodeTestResponseStringDateArrayArrayResponse(response [][]time.Time, w ht return nil } + func encodeTestResponseStringDateNullableResponse(response NilDate, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8550,6 +9166,7 @@ func encodeTestResponseStringDateNullableResponse(response NilDate, w http.Respo return nil } + func encodeTestResponseStringDateNullableArrayResponse(response []NilDate, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8567,6 +9184,7 @@ func encodeTestResponseStringDateNullableArrayResponse(response []NilDate, w htt return nil } + func encodeTestResponseStringDateNullableArrayArrayResponse(response [][]NilDate, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8588,6 +9206,7 @@ func encodeTestResponseStringDateNullableArrayArrayResponse(response [][]NilDate return nil } + func encodeTestResponseStringDateTimeResponse(response time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8601,6 +9220,7 @@ func encodeTestResponseStringDateTimeResponse(response time.Time, w http.Respons return nil } + func encodeTestResponseStringDateTimeArrayResponse(response []time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8618,6 +9238,7 @@ func encodeTestResponseStringDateTimeArrayResponse(response []time.Time, w http. return nil } + func encodeTestResponseStringDateTimeArrayArrayResponse(response [][]time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8639,6 +9260,7 @@ func encodeTestResponseStringDateTimeArrayArrayResponse(response [][]time.Time, return nil } + func encodeTestResponseStringDateTimeNullableResponse(response NilDateTime, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8652,6 +9274,7 @@ func encodeTestResponseStringDateTimeNullableResponse(response NilDateTime, w ht return nil } + func encodeTestResponseStringDateTimeNullableArrayResponse(response []NilDateTime, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8669,6 +9292,7 @@ func encodeTestResponseStringDateTimeNullableArrayResponse(response []NilDateTim return nil } + func encodeTestResponseStringDateTimeNullableArrayArrayResponse(response [][]NilDateTime, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8690,6 +9314,7 @@ func encodeTestResponseStringDateTimeNullableArrayArrayResponse(response [][]Nil return nil } + func encodeTestResponseStringDurationResponse(response time.Duration, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8703,6 +9328,7 @@ func encodeTestResponseStringDurationResponse(response time.Duration, w http.Res return nil } + func encodeTestResponseStringDurationArrayResponse(response []time.Duration, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8720,6 +9346,7 @@ func encodeTestResponseStringDurationArrayResponse(response []time.Duration, w h return nil } + func encodeTestResponseStringDurationArrayArrayResponse(response [][]time.Duration, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8741,6 +9368,7 @@ func encodeTestResponseStringDurationArrayArrayResponse(response [][]time.Durati return nil } + func encodeTestResponseStringDurationNullableResponse(response NilDuration, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8754,6 +9382,7 @@ func encodeTestResponseStringDurationNullableResponse(response NilDuration, w ht return nil } + func encodeTestResponseStringDurationNullableArrayResponse(response []NilDuration, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8771,6 +9400,7 @@ func encodeTestResponseStringDurationNullableArrayResponse(response []NilDuratio return nil } + func encodeTestResponseStringDurationNullableArrayArrayResponse(response [][]NilDuration, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8792,6 +9422,7 @@ func encodeTestResponseStringDurationNullableArrayArrayResponse(response [][]Nil return nil } + func encodeTestResponseStringEmailResponse(response string, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8805,6 +9436,7 @@ func encodeTestResponseStringEmailResponse(response string, w http.ResponseWrite return nil } + func encodeTestResponseStringEmailArrayResponse(response []string, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8822,6 +9454,7 @@ func encodeTestResponseStringEmailArrayResponse(response []string, w http.Respon return nil } + func encodeTestResponseStringEmailArrayArrayResponse(response [][]string, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8843,6 +9476,7 @@ func encodeTestResponseStringEmailArrayArrayResponse(response [][]string, w http return nil } + func encodeTestResponseStringEmailNullableResponse(response NilString, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8856,6 +9490,7 @@ func encodeTestResponseStringEmailNullableResponse(response NilString, w http.Re return nil } + func encodeTestResponseStringEmailNullableArrayResponse(response []NilString, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8873,6 +9508,7 @@ func encodeTestResponseStringEmailNullableArrayResponse(response []NilString, w return nil } + func encodeTestResponseStringEmailNullableArrayArrayResponse(response [][]NilString, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8894,6 +9530,7 @@ func encodeTestResponseStringEmailNullableArrayArrayResponse(response [][]NilStr return nil } + func encodeTestResponseStringHostnameResponse(response string, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8907,6 +9544,7 @@ func encodeTestResponseStringHostnameResponse(response string, w http.ResponseWr return nil } + func encodeTestResponseStringHostnameArrayResponse(response []string, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8924,6 +9562,7 @@ func encodeTestResponseStringHostnameArrayResponse(response []string, w http.Res return nil } + func encodeTestResponseStringHostnameArrayArrayResponse(response [][]string, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8945,6 +9584,7 @@ func encodeTestResponseStringHostnameArrayArrayResponse(response [][]string, w h return nil } + func encodeTestResponseStringHostnameNullableResponse(response NilString, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8958,6 +9598,7 @@ func encodeTestResponseStringHostnameNullableResponse(response NilString, w http return nil } + func encodeTestResponseStringHostnameNullableArrayResponse(response []NilString, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8975,6 +9616,7 @@ func encodeTestResponseStringHostnameNullableArrayResponse(response []NilString, return nil } + func encodeTestResponseStringHostnameNullableArrayArrayResponse(response [][]NilString, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -8996,6 +9638,7 @@ func encodeTestResponseStringHostnameNullableArrayArrayResponse(response [][]Nil return nil } + func encodeTestResponseStringIPResponse(response netip.Addr, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9009,6 +9652,7 @@ func encodeTestResponseStringIPResponse(response netip.Addr, w http.ResponseWrit return nil } + func encodeTestResponseStringIPArrayResponse(response []netip.Addr, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9026,6 +9670,7 @@ func encodeTestResponseStringIPArrayResponse(response []netip.Addr, w http.Respo return nil } + func encodeTestResponseStringIPArrayArrayResponse(response [][]netip.Addr, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9047,6 +9692,7 @@ func encodeTestResponseStringIPArrayArrayResponse(response [][]netip.Addr, w htt return nil } + func encodeTestResponseStringIPNullableResponse(response NilIP, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9060,6 +9706,7 @@ func encodeTestResponseStringIPNullableResponse(response NilIP, w http.ResponseW return nil } + func encodeTestResponseStringIPNullableArrayResponse(response []NilIP, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9077,6 +9724,7 @@ func encodeTestResponseStringIPNullableArrayResponse(response []NilIP, w http.Re return nil } + func encodeTestResponseStringIPNullableArrayArrayResponse(response [][]NilIP, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9098,6 +9746,7 @@ func encodeTestResponseStringIPNullableArrayArrayResponse(response [][]NilIP, w return nil } + func encodeTestResponseStringInt32Response(response int32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9111,6 +9760,7 @@ func encodeTestResponseStringInt32Response(response int32, w http.ResponseWriter return nil } + func encodeTestResponseStringInt32ArrayResponse(response []int32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9128,6 +9778,7 @@ func encodeTestResponseStringInt32ArrayResponse(response []int32, w http.Respons return nil } + func encodeTestResponseStringInt32ArrayArrayResponse(response [][]int32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9149,6 +9800,7 @@ func encodeTestResponseStringInt32ArrayArrayResponse(response [][]int32, w http. return nil } + func encodeTestResponseStringInt32NullableResponse(response NilStringInt32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9162,6 +9814,7 @@ func encodeTestResponseStringInt32NullableResponse(response NilStringInt32, w ht return nil } + func encodeTestResponseStringInt32NullableArrayResponse(response []NilStringInt32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9179,6 +9832,7 @@ func encodeTestResponseStringInt32NullableArrayResponse(response []NilStringInt3 return nil } + func encodeTestResponseStringInt32NullableArrayArrayResponse(response [][]NilStringInt32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9200,6 +9854,7 @@ func encodeTestResponseStringInt32NullableArrayArrayResponse(response [][]NilStr return nil } + func encodeTestResponseStringInt64Response(response int64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9213,6 +9868,7 @@ func encodeTestResponseStringInt64Response(response int64, w http.ResponseWriter return nil } + func encodeTestResponseStringInt64ArrayResponse(response []int64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9230,6 +9886,7 @@ func encodeTestResponseStringInt64ArrayResponse(response []int64, w http.Respons return nil } + func encodeTestResponseStringInt64ArrayArrayResponse(response [][]int64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9251,6 +9908,7 @@ func encodeTestResponseStringInt64ArrayArrayResponse(response [][]int64, w http. return nil } + func encodeTestResponseStringInt64NullableResponse(response NilStringInt64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9264,6 +9922,7 @@ func encodeTestResponseStringInt64NullableResponse(response NilStringInt64, w ht return nil } + func encodeTestResponseStringInt64NullableArrayResponse(response []NilStringInt64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9281,6 +9940,7 @@ func encodeTestResponseStringInt64NullableArrayResponse(response []NilStringInt6 return nil } + func encodeTestResponseStringInt64NullableArrayArrayResponse(response [][]NilStringInt64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9302,6 +9962,7 @@ func encodeTestResponseStringInt64NullableArrayArrayResponse(response [][]NilStr return nil } + func encodeTestResponseStringIpv4Response(response netip.Addr, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9315,6 +9976,7 @@ func encodeTestResponseStringIpv4Response(response netip.Addr, w http.ResponseWr return nil } + func encodeTestResponseStringIpv4ArrayResponse(response []netip.Addr, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9332,6 +9994,7 @@ func encodeTestResponseStringIpv4ArrayResponse(response []netip.Addr, w http.Res return nil } + func encodeTestResponseStringIpv4ArrayArrayResponse(response [][]netip.Addr, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9353,6 +10016,7 @@ func encodeTestResponseStringIpv4ArrayArrayResponse(response [][]netip.Addr, w h return nil } + func encodeTestResponseStringIpv4NullableResponse(response NilIPv4, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9366,6 +10030,7 @@ func encodeTestResponseStringIpv4NullableResponse(response NilIPv4, w http.Respo return nil } + func encodeTestResponseStringIpv4NullableArrayResponse(response []NilIPv4, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9383,6 +10048,7 @@ func encodeTestResponseStringIpv4NullableArrayResponse(response []NilIPv4, w htt return nil } + func encodeTestResponseStringIpv4NullableArrayArrayResponse(response [][]NilIPv4, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9404,6 +10070,7 @@ func encodeTestResponseStringIpv4NullableArrayArrayResponse(response [][]NilIPv4 return nil } + func encodeTestResponseStringIpv6Response(response netip.Addr, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9417,6 +10084,7 @@ func encodeTestResponseStringIpv6Response(response netip.Addr, w http.ResponseWr return nil } + func encodeTestResponseStringIpv6ArrayResponse(response []netip.Addr, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9434,6 +10102,7 @@ func encodeTestResponseStringIpv6ArrayResponse(response []netip.Addr, w http.Res return nil } + func encodeTestResponseStringIpv6ArrayArrayResponse(response [][]netip.Addr, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9455,6 +10124,7 @@ func encodeTestResponseStringIpv6ArrayArrayResponse(response [][]netip.Addr, w h return nil } + func encodeTestResponseStringIpv6NullableResponse(response NilIPv6, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9468,6 +10138,7 @@ func encodeTestResponseStringIpv6NullableResponse(response NilIPv6, w http.Respo return nil } + func encodeTestResponseStringIpv6NullableArrayResponse(response []NilIPv6, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9485,6 +10156,7 @@ func encodeTestResponseStringIpv6NullableArrayResponse(response []NilIPv6, w htt return nil } + func encodeTestResponseStringIpv6NullableArrayArrayResponse(response [][]NilIPv6, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9506,6 +10178,7 @@ func encodeTestResponseStringIpv6NullableArrayArrayResponse(response [][]NilIPv6 return nil } + func encodeTestResponseStringNullableResponse(response NilString, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9519,6 +10192,7 @@ func encodeTestResponseStringNullableResponse(response NilString, w http.Respons return nil } + func encodeTestResponseStringNullableArrayResponse(response []NilString, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9536,6 +10210,7 @@ func encodeTestResponseStringNullableArrayResponse(response []NilString, w http. return nil } + func encodeTestResponseStringNullableArrayArrayResponse(response [][]NilString, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9557,6 +10232,7 @@ func encodeTestResponseStringNullableArrayArrayResponse(response [][]NilString, return nil } + func encodeTestResponseStringPasswordResponse(response string, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9570,6 +10246,7 @@ func encodeTestResponseStringPasswordResponse(response string, w http.ResponseWr return nil } + func encodeTestResponseStringPasswordArrayResponse(response []string, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9587,6 +10264,7 @@ func encodeTestResponseStringPasswordArrayResponse(response []string, w http.Res return nil } + func encodeTestResponseStringPasswordArrayArrayResponse(response [][]string, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9608,6 +10286,7 @@ func encodeTestResponseStringPasswordArrayArrayResponse(response [][]string, w h return nil } + func encodeTestResponseStringPasswordNullableResponse(response NilString, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9621,6 +10300,7 @@ func encodeTestResponseStringPasswordNullableResponse(response NilString, w http return nil } + func encodeTestResponseStringPasswordNullableArrayResponse(response []NilString, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9638,6 +10318,7 @@ func encodeTestResponseStringPasswordNullableArrayResponse(response []NilString, return nil } + func encodeTestResponseStringPasswordNullableArrayArrayResponse(response [][]NilString, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9659,6 +10340,7 @@ func encodeTestResponseStringPasswordNullableArrayArrayResponse(response [][]Nil return nil } + func encodeTestResponseStringTimeResponse(response time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9672,6 +10354,7 @@ func encodeTestResponseStringTimeResponse(response time.Time, w http.ResponseWri return nil } + func encodeTestResponseStringTimeArrayResponse(response []time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9689,6 +10372,7 @@ func encodeTestResponseStringTimeArrayResponse(response []time.Time, w http.Resp return nil } + func encodeTestResponseStringTimeArrayArrayResponse(response [][]time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9710,6 +10394,7 @@ func encodeTestResponseStringTimeArrayArrayResponse(response [][]time.Time, w ht return nil } + func encodeTestResponseStringTimeNullableResponse(response NilTime, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9723,6 +10408,7 @@ func encodeTestResponseStringTimeNullableResponse(response NilTime, w http.Respo return nil } + func encodeTestResponseStringTimeNullableArrayResponse(response []NilTime, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9740,6 +10426,7 @@ func encodeTestResponseStringTimeNullableArrayResponse(response []NilTime, w htt return nil } + func encodeTestResponseStringTimeNullableArrayArrayResponse(response [][]NilTime, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9761,6 +10448,7 @@ func encodeTestResponseStringTimeNullableArrayArrayResponse(response [][]NilTime return nil } + func encodeTestResponseStringURIResponse(response url.URL, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9774,6 +10462,7 @@ func encodeTestResponseStringURIResponse(response url.URL, w http.ResponseWriter return nil } + func encodeTestResponseStringURIArrayResponse(response []url.URL, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9791,6 +10480,7 @@ func encodeTestResponseStringURIArrayResponse(response []url.URL, w http.Respons return nil } + func encodeTestResponseStringURIArrayArrayResponse(response [][]url.URL, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9812,6 +10502,7 @@ func encodeTestResponseStringURIArrayArrayResponse(response [][]url.URL, w http. return nil } + func encodeTestResponseStringURINullableResponse(response NilURI, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9825,6 +10516,7 @@ func encodeTestResponseStringURINullableResponse(response NilURI, w http.Respons return nil } + func encodeTestResponseStringURINullableArrayResponse(response []NilURI, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9842,6 +10534,7 @@ func encodeTestResponseStringURINullableArrayResponse(response []NilURI, w http. return nil } + func encodeTestResponseStringURINullableArrayArrayResponse(response [][]NilURI, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9863,6 +10556,7 @@ func encodeTestResponseStringURINullableArrayArrayResponse(response [][]NilURI, return nil } + func encodeTestResponseStringUUIDResponse(response uuid.UUID, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9876,6 +10570,7 @@ func encodeTestResponseStringUUIDResponse(response uuid.UUID, w http.ResponseWri return nil } + func encodeTestResponseStringUUIDArrayResponse(response []uuid.UUID, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9893,6 +10588,7 @@ func encodeTestResponseStringUUIDArrayResponse(response []uuid.UUID, w http.Resp return nil } + func encodeTestResponseStringUUIDArrayArrayResponse(response [][]uuid.UUID, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9914,6 +10610,7 @@ func encodeTestResponseStringUUIDArrayArrayResponse(response [][]uuid.UUID, w ht return nil } + func encodeTestResponseStringUUIDNullableResponse(response NilUUID, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9927,6 +10624,7 @@ func encodeTestResponseStringUUIDNullableResponse(response NilUUID, w http.Respo return nil } + func encodeTestResponseStringUUIDNullableArrayResponse(response []NilUUID, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9944,6 +10642,7 @@ func encodeTestResponseStringUUIDNullableArrayResponse(response []NilUUID, w htt return nil } + func encodeTestResponseStringUUIDNullableArrayArrayResponse(response [][]NilUUID, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9965,6 +10664,7 @@ func encodeTestResponseStringUUIDNullableArrayArrayResponse(response [][]NilUUID return nil } + func encodeTestResponseStringUnixResponse(response time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9978,6 +10678,7 @@ func encodeTestResponseStringUnixResponse(response time.Time, w http.ResponseWri return nil } + func encodeTestResponseStringUnixArrayResponse(response []time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -9995,6 +10696,7 @@ func encodeTestResponseStringUnixArrayResponse(response []time.Time, w http.Resp return nil } + func encodeTestResponseStringUnixArrayArrayResponse(response [][]time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -10016,6 +10718,7 @@ func encodeTestResponseStringUnixArrayArrayResponse(response [][]time.Time, w ht return nil } + func encodeTestResponseStringUnixMicroResponse(response time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -10029,6 +10732,7 @@ func encodeTestResponseStringUnixMicroResponse(response time.Time, w http.Respon return nil } + func encodeTestResponseStringUnixMicroArrayResponse(response []time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -10046,6 +10750,7 @@ func encodeTestResponseStringUnixMicroArrayResponse(response []time.Time, w http return nil } + func encodeTestResponseStringUnixMicroArrayArrayResponse(response [][]time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -10067,6 +10772,7 @@ func encodeTestResponseStringUnixMicroArrayArrayResponse(response [][]time.Time, return nil } + func encodeTestResponseStringUnixMicroNullableResponse(response NilStringUnixMicro, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -10080,6 +10786,7 @@ func encodeTestResponseStringUnixMicroNullableResponse(response NilStringUnixMic return nil } + func encodeTestResponseStringUnixMicroNullableArrayResponse(response []NilStringUnixMicro, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -10097,6 +10804,7 @@ func encodeTestResponseStringUnixMicroNullableArrayResponse(response []NilString return nil } + func encodeTestResponseStringUnixMicroNullableArrayArrayResponse(response [][]NilStringUnixMicro, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -10118,6 +10826,7 @@ func encodeTestResponseStringUnixMicroNullableArrayArrayResponse(response [][]Ni return nil } + func encodeTestResponseStringUnixMilliResponse(response time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -10131,6 +10840,7 @@ func encodeTestResponseStringUnixMilliResponse(response time.Time, w http.Respon return nil } + func encodeTestResponseStringUnixMilliArrayResponse(response []time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -10148,6 +10858,7 @@ func encodeTestResponseStringUnixMilliArrayResponse(response []time.Time, w http return nil } + func encodeTestResponseStringUnixMilliArrayArrayResponse(response [][]time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -10169,6 +10880,7 @@ func encodeTestResponseStringUnixMilliArrayArrayResponse(response [][]time.Time, return nil } + func encodeTestResponseStringUnixMilliNullableResponse(response NilStringUnixMilli, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -10182,6 +10894,7 @@ func encodeTestResponseStringUnixMilliNullableResponse(response NilStringUnixMil return nil } + func encodeTestResponseStringUnixMilliNullableArrayResponse(response []NilStringUnixMilli, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -10199,6 +10912,7 @@ func encodeTestResponseStringUnixMilliNullableArrayResponse(response []NilString return nil } + func encodeTestResponseStringUnixMilliNullableArrayArrayResponse(response [][]NilStringUnixMilli, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -10220,6 +10934,7 @@ func encodeTestResponseStringUnixMilliNullableArrayArrayResponse(response [][]Ni return nil } + func encodeTestResponseStringUnixNanoResponse(response time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -10233,6 +10948,7 @@ func encodeTestResponseStringUnixNanoResponse(response time.Time, w http.Respons return nil } + func encodeTestResponseStringUnixNanoArrayResponse(response []time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -10250,6 +10966,7 @@ func encodeTestResponseStringUnixNanoArrayResponse(response []time.Time, w http. return nil } + func encodeTestResponseStringUnixNanoArrayArrayResponse(response [][]time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -10271,6 +10988,7 @@ func encodeTestResponseStringUnixNanoArrayArrayResponse(response [][]time.Time, return nil } + func encodeTestResponseStringUnixNanoNullableResponse(response NilStringUnixNano, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -10284,6 +11002,7 @@ func encodeTestResponseStringUnixNanoNullableResponse(response NilStringUnixNano return nil } + func encodeTestResponseStringUnixNanoNullableArrayResponse(response []NilStringUnixNano, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -10301,6 +11020,7 @@ func encodeTestResponseStringUnixNanoNullableArrayResponse(response []NilStringU return nil } + func encodeTestResponseStringUnixNanoNullableArrayArrayResponse(response [][]NilStringUnixNano, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -10322,6 +11042,7 @@ func encodeTestResponseStringUnixNanoNullableArrayArrayResponse(response [][]Nil return nil } + func encodeTestResponseStringUnixNullableResponse(response NilStringUnixSeconds, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -10335,6 +11056,7 @@ func encodeTestResponseStringUnixNullableResponse(response NilStringUnixSeconds, return nil } + func encodeTestResponseStringUnixNullableArrayResponse(response []NilStringUnixSeconds, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -10352,6 +11074,7 @@ func encodeTestResponseStringUnixNullableArrayResponse(response []NilStringUnixS return nil } + func encodeTestResponseStringUnixNullableArrayArrayResponse(response [][]NilStringUnixSeconds, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -10373,6 +11096,7 @@ func encodeTestResponseStringUnixNullableArrayArrayResponse(response [][]NilStri return nil } + func encodeTestResponseStringUnixSecondsResponse(response time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -10386,6 +11110,7 @@ func encodeTestResponseStringUnixSecondsResponse(response time.Time, w http.Resp return nil } + func encodeTestResponseStringUnixSecondsArrayResponse(response []time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -10403,6 +11128,7 @@ func encodeTestResponseStringUnixSecondsArrayResponse(response []time.Time, w ht return nil } + func encodeTestResponseStringUnixSecondsArrayArrayResponse(response [][]time.Time, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -10424,6 +11150,7 @@ func encodeTestResponseStringUnixSecondsArrayArrayResponse(response [][]time.Tim return nil } + func encodeTestResponseStringUnixSecondsNullableResponse(response NilStringUnixSeconds, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -10437,6 +11164,7 @@ func encodeTestResponseStringUnixSecondsNullableResponse(response NilStringUnixS return nil } + func encodeTestResponseStringUnixSecondsNullableArrayResponse(response []NilStringUnixSeconds, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -10454,6 +11182,7 @@ func encodeTestResponseStringUnixSecondsNullableArrayResponse(response []NilStri return nil } + func encodeTestResponseStringUnixSecondsNullableArrayArrayResponse(response [][]NilStringUnixSeconds, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) diff --git a/examples/ex_test_format/oas_router_gen.go b/examples/ex_test_format/oas_router_gen.go index 219eb26fa..88c9d9a41 100644 --- a/examples/ex_test_format/oas_router_gen.go +++ b/examples/ex_test_format/oas_router_gen.go @@ -7,14 +7,6 @@ import ( "strings" ) -func (s *Server) notFound(w http.ResponseWriter, r *http.Request) { - s.cfg.NotFound(w, r) -} - -func (s *Server) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { - s.cfg.MethodNotAllowed(w, r, allowed) -} - // ServeHTTP serves http request as defined by OpenAPI v3 specification, // calling handler that matches the path or returning not found error. func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { diff --git a/examples/ex_test_format/oas_server_gen.go b/examples/ex_test_format/oas_server_gen.go index d528fa2b4..1fef479e4 100644 --- a/examples/ex_test_format/oas_server_gen.go +++ b/examples/ex_test_format/oas_server_gen.go @@ -10,9 +10,6 @@ import ( "github.com/go-faster/jx" "github.com/google/uuid" - "go.opentelemetry.io/otel/metric/instrument/syncint64" - - "github.com/ogen-go/ogen/otelogen" ) // Handler handles operations described by OpenAPI v3 specification. @@ -2942,29 +2939,18 @@ type Handler interface { // Server implements http server based on OpenAPI v3 specification and // calls Handler to handle requests. type Server struct { - h Handler - cfg config - - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + h Handler + baseServer } // NewServer creates new Server. func NewServer(h Handler, opts ...Option) (*Server, error) { - s := &Server{ - h: h, - cfg: newConfig(opts...), - } - var err error - if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { - return nil, err - } - if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { - return nil, err - } - if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + s, err := newConfig(opts...).baseServer() + if err != nil { return nil, err } - return s, nil + return &Server{ + h: h, + baseServer: s, + }, nil } diff --git a/examples/ex_test_format/oas_unimplemented_gen.go b/examples/ex_test_format/oas_unimplemented_gen.go index 98db90aab..f4cf99003 100644 --- a/examples/ex_test_format/oas_unimplemented_gen.go +++ b/examples/ex_test_format/oas_unimplemented_gen.go @@ -14,11 +14,11 @@ import ( ht "github.com/ogen-go/ogen/http" ) -var _ Handler = UnimplementedHandler{} - // UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented. type UnimplementedHandler struct{} +var _ Handler = UnimplementedHandler{} + // TestQueryParameter implements test_query_parameter operation. // // POST /test_query_parameter diff --git a/examples/ex_tinkoff/oas_cfg_gen.go b/examples/ex_tinkoff/oas_cfg_gen.go index 43cd6eec1..d1c81762b 100644 --- a/examples/ex_tinkoff/oas_cfg_gen.go +++ b/examples/ex_tinkoff/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -15,6 +16,13 @@ import ( "github.com/ogen-go/ogen/otelogen" ) +var ( + // Allocate option closure once. + clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) + // Allocate option closure once. + serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) +) + // ErrorHandler is error handler. type ErrorHandler = ogenerrors.ErrorHandler @@ -56,6 +64,57 @@ func newConfig(opts ...Option) config { return cfg } +type baseServer struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (s baseServer) notFound(w http.ResponseWriter, r *http.Request) { + s.cfg.NotFound(w, r) +} + +func (s baseServer) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { + s.cfg.MethodNotAllowed(w, r, allowed) +} + +func (cfg config) baseServer() (s baseServer, err error) { + s = baseServer{cfg: cfg} + if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { + return s, err + } + if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { + return s, err + } + if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + return s, err + } + return s, nil +} + +type baseClient struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (cfg config) baseClient() (c baseClient, err error) { + c = baseClient{cfg: cfg} + if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { + return c, err + } + if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { + return c, err + } + if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + return c, err + } + return c, nil +} + +// Option is config option. type Option interface { apply(*config) } diff --git a/examples/ex_tinkoff/oas_client_gen.go b/examples/ex_tinkoff/oas_client_gen.go index a9673e41e..615f2ef5c 100644 --- a/examples/ex_tinkoff/oas_client_gen.go +++ b/examples/ex_tinkoff/oas_client_gen.go @@ -10,12 +10,9 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" - "go.opentelemetry.io/otel/metric/instrument/syncint64" - "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/conv" ht "github.com/ogen-go/ogen/http" - "github.com/ogen-go/ogen/otelogen" "github.com/ogen-go/ogen/uri" ) @@ -23,17 +20,11 @@ var _ Handler = struct { *Client }{} -// Allocate option closure once. -var clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) - // Client implements OAS client. type Client struct { serverURL *url.URL sec SecuritySource - cfg config - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + baseClient } // NewClient initializes new Client defined by OAS. @@ -42,21 +33,15 @@ func NewClient(serverURL string, sec SecuritySource, opts ...Option) (*Client, e if err != nil { return nil, err } - c := &Client{ - cfg: newConfig(opts...), - sec: sec, - serverURL: u, - } - if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { - return nil, err - } - if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { - return nil, err - } - if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + c, err := newConfig(opts...).baseClient() + if err != nil { return nil, err } - return c, nil + return &Client{ + serverURL: u, + sec: sec, + baseClient: c, + }, nil } type serverURLKey struct{} diff --git a/examples/ex_tinkoff/oas_handlers_gen.go b/examples/ex_tinkoff/oas_handlers_gen.go index 87eb357e1..48e2496bb 100644 --- a/examples/ex_tinkoff/oas_handlers_gen.go +++ b/examples/ex_tinkoff/oas_handlers_gen.go @@ -9,17 +9,15 @@ import ( "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" - "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/middleware" "github.com/ogen-go/ogen/ogenerrors" ) -// Allocate option closure once. -var serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) - // handleMarketBondsGetRequest handles GET /market/bonds operation. // +// Получение списка облигаций. +// // GET /market/bonds func (s *Server) handleMarketBondsGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -112,6 +110,8 @@ func (s *Server) handleMarketBondsGetRequest(args [0]string, w http.ResponseWrit // handleMarketCandlesGetRequest handles GET /market/candles operation. // +// Получение исторических свечей по FIGI. +// // GET /market/candles func (s *Server) handleMarketCandlesGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -219,6 +219,8 @@ func (s *Server) handleMarketCandlesGetRequest(args [0]string, w http.ResponseWr // handleMarketCurrenciesGetRequest handles GET /market/currencies operation. // +// Получение списка валютных пар. +// // GET /market/currencies func (s *Server) handleMarketCurrenciesGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -311,6 +313,8 @@ func (s *Server) handleMarketCurrenciesGetRequest(args [0]string, w http.Respons // handleMarketEtfsGetRequest handles GET /market/etfs operation. // +// Получение списка ETF. +// // GET /market/etfs func (s *Server) handleMarketEtfsGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -403,6 +407,8 @@ func (s *Server) handleMarketEtfsGetRequest(args [0]string, w http.ResponseWrite // handleMarketOrderbookGetRequest handles GET /market/orderbook operation. // +// Получение стакана по FIGI. +// // GET /market/orderbook func (s *Server) handleMarketOrderbookGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -508,6 +514,8 @@ func (s *Server) handleMarketOrderbookGetRequest(args [0]string, w http.Response // handleMarketSearchByFigiGetRequest handles GET /market/search/by-figi operation. // +// Получение инструмента по FIGI. +// // GET /market/search/by-figi func (s *Server) handleMarketSearchByFigiGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -612,6 +620,8 @@ func (s *Server) handleMarketSearchByFigiGetRequest(args [0]string, w http.Respo // handleMarketSearchByTickerGetRequest handles GET /market/search/by-ticker operation. // +// Получение инструмента по тикеру. +// // GET /market/search/by-ticker func (s *Server) handleMarketSearchByTickerGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -716,6 +726,8 @@ func (s *Server) handleMarketSearchByTickerGetRequest(args [0]string, w http.Res // handleMarketStocksGetRequest handles GET /market/stocks operation. // +// Получение списка акций. +// // GET /market/stocks func (s *Server) handleMarketStocksGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -808,6 +820,8 @@ func (s *Server) handleMarketStocksGetRequest(args [0]string, w http.ResponseWri // handleOperationsGetRequest handles GET /operations operation. // +// Получение списка операций. +// // GET /operations func (s *Server) handleOperationsGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -915,6 +929,8 @@ func (s *Server) handleOperationsGetRequest(args [0]string, w http.ResponseWrite // handleOrdersCancelPostRequest handles POST /orders/cancel operation. // +// Отмена заявки. +// // POST /orders/cancel func (s *Server) handleOrdersCancelPostRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -1020,6 +1036,8 @@ func (s *Server) handleOrdersCancelPostRequest(args [0]string, w http.ResponseWr // handleOrdersGetRequest handles GET /orders operation. // +// Получение списка активных заявок. +// // GET /orders func (s *Server) handleOrdersGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -1124,6 +1142,8 @@ func (s *Server) handleOrdersGetRequest(args [0]string, w http.ResponseWriter, r // handleOrdersLimitOrderPostRequest handles POST /orders/limit-order operation. // +// Создание лимитной заявки. +// // POST /orders/limit-order func (s *Server) handleOrdersLimitOrderPostRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -1244,6 +1264,8 @@ func (s *Server) handleOrdersLimitOrderPostRequest(args [0]string, w http.Respon // handleOrdersMarketOrderPostRequest handles POST /orders/market-order operation. // +// Создание рыночной заявки. +// // POST /orders/market-order func (s *Server) handleOrdersMarketOrderPostRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -1364,6 +1386,8 @@ func (s *Server) handleOrdersMarketOrderPostRequest(args [0]string, w http.Respo // handlePortfolioCurrenciesGetRequest handles GET /portfolio/currencies operation. // +// Получение валютных активов клиента. +// // GET /portfolio/currencies func (s *Server) handlePortfolioCurrenciesGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -1468,6 +1492,8 @@ func (s *Server) handlePortfolioCurrenciesGetRequest(args [0]string, w http.Resp // handlePortfolioGetRequest handles GET /portfolio operation. // +// Получение портфеля клиента. +// // GET /portfolio func (s *Server) handlePortfolioGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -1572,6 +1598,8 @@ func (s *Server) handlePortfolioGetRequest(args [0]string, w http.ResponseWriter // handleSandboxClearPostRequest handles POST /sandbox/clear operation. // +// Удаление всех позиций клиента. +// // POST /sandbox/clear func (s *Server) handleSandboxClearPostRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -1676,6 +1704,8 @@ func (s *Server) handleSandboxClearPostRequest(args [0]string, w http.ResponseWr // handleSandboxCurrenciesBalancePostRequest handles POST /sandbox/currencies/balance operation. // +// Выставление баланса по валютным позициям. +// // POST /sandbox/currencies/balance func (s *Server) handleSandboxCurrenciesBalancePostRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -1795,6 +1825,8 @@ func (s *Server) handleSandboxCurrenciesBalancePostRequest(args [0]string, w htt // handleSandboxPositionsBalancePostRequest handles POST /sandbox/positions/balance operation. // +// Выставление баланса по инструментным позициям. +// // POST /sandbox/positions/balance func (s *Server) handleSandboxPositionsBalancePostRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -1914,6 +1946,8 @@ func (s *Server) handleSandboxPositionsBalancePostRequest(args [0]string, w http // handleSandboxRegisterPostRequest handles POST /sandbox/register operation. // +// Создание счета и валютных позиций для клиента. +// // POST /sandbox/register func (s *Server) handleSandboxRegisterPostRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -2021,6 +2055,8 @@ func (s *Server) handleSandboxRegisterPostRequest(args [0]string, w http.Respons // handleSandboxRemovePostRequest handles POST /sandbox/remove operation. // +// Удаление счета клиента. +// // POST /sandbox/remove func (s *Server) handleSandboxRemovePostRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue @@ -2125,6 +2161,8 @@ func (s *Server) handleSandboxRemovePostRequest(args [0]string, w http.ResponseW // handleUserAccountsGetRequest handles GET /user/accounts operation. // +// Получение брокерских счетов клиента. +// // GET /user/accounts func (s *Server) handleUserAccountsGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { var otelAttrs []attribute.KeyValue diff --git a/examples/ex_tinkoff/oas_parameters_gen.go b/examples/ex_tinkoff/oas_parameters_gen.go index ba615ab8c..a5a7a2896 100644 --- a/examples/ex_tinkoff/oas_parameters_gen.go +++ b/examples/ex_tinkoff/oas_parameters_gen.go @@ -12,6 +12,7 @@ import ( "github.com/ogen-go/ogen/uri" ) +// MarketCandlesGetParams is parameters of GET /market/candles operation. type MarketCandlesGetParams struct { // FIGI. Figi string @@ -160,6 +161,7 @@ func decodeMarketCandlesGetParams(args [0]string, r *http.Request) (params Marke return params, nil } +// MarketOrderbookGetParams is parameters of GET /market/orderbook operation. type MarketOrderbookGetParams struct { // FIGI. Figi string @@ -236,6 +238,7 @@ func decodeMarketOrderbookGetParams(args [0]string, r *http.Request) (params Mar return params, nil } +// MarketSearchByFigiGetParams is parameters of GET /market/search/by-figi operation. type MarketSearchByFigiGetParams struct { // FIGI. Figi string @@ -280,6 +283,7 @@ func decodeMarketSearchByFigiGetParams(args [0]string, r *http.Request) (params return params, nil } +// MarketSearchByTickerGetParams is parameters of GET /market/search/by-ticker operation. type MarketSearchByTickerGetParams struct { // Тикер инструмента. Ticker string @@ -324,6 +328,7 @@ func decodeMarketSearchByTickerGetParams(args [0]string, r *http.Request) (param return params, nil } +// OperationsGetParams is parameters of GET /operations operation. type OperationsGetParams struct { // Начало временного промежутка. From time.Time @@ -478,6 +483,7 @@ func decodeOperationsGetParams(args [0]string, r *http.Request) (params Operatio return params, nil } +// OrdersCancelPostParams is parameters of POST /orders/cancel operation. type OrdersCancelPostParams struct { // ID заявки. OrderId string @@ -561,6 +567,7 @@ func decodeOrdersCancelPostParams(args [0]string, r *http.Request) (params Order return params, nil } +// OrdersGetParams is parameters of GET /orders operation. type OrdersGetParams struct { // Номер счета (по умолчанию - Тинькофф). BrokerAccountId OptString @@ -612,6 +619,7 @@ func decodeOrdersGetParams(args [0]string, r *http.Request) (params OrdersGetPar return params, nil } +// OrdersLimitOrderPostParams is parameters of POST /orders/limit-order operation. type OrdersLimitOrderPostParams struct { // FIGI инструмента. Figi string @@ -695,6 +703,7 @@ func decodeOrdersLimitOrderPostParams(args [0]string, r *http.Request) (params O return params, nil } +// OrdersMarketOrderPostParams is parameters of POST /orders/market-order operation. type OrdersMarketOrderPostParams struct { // FIGI инструмента. Figi string @@ -779,6 +788,7 @@ func decodeOrdersMarketOrderPostParams(args [0]string, r *http.Request) (params return params, nil } +// PortfolioCurrenciesGetParams is parameters of GET /portfolio/currencies operation. type PortfolioCurrenciesGetParams struct { // Номер счета (по умолчанию - Тинькофф). BrokerAccountId OptString @@ -830,6 +840,7 @@ func decodePortfolioCurrenciesGetParams(args [0]string, r *http.Request) (params return params, nil } +// PortfolioGetParams is parameters of GET /portfolio operation. type PortfolioGetParams struct { // Номер счета (по умолчанию - Тинькофф). BrokerAccountId OptString @@ -881,6 +892,7 @@ func decodePortfolioGetParams(args [0]string, r *http.Request) (params Portfolio return params, nil } +// SandboxClearPostParams is parameters of POST /sandbox/clear operation. type SandboxClearPostParams struct { // Номер счета (по умолчанию - Тинькофф). BrokerAccountId OptString @@ -932,6 +944,7 @@ func decodeSandboxClearPostParams(args [0]string, r *http.Request) (params Sandb return params, nil } +// SandboxCurrenciesBalancePostParams is parameters of POST /sandbox/currencies/balance operation. type SandboxCurrenciesBalancePostParams struct { // Номер счета (по умолчанию - Тинькофф). BrokerAccountId OptString @@ -983,6 +996,7 @@ func decodeSandboxCurrenciesBalancePostParams(args [0]string, r *http.Request) ( return params, nil } +// SandboxPositionsBalancePostParams is parameters of POST /sandbox/positions/balance operation. type SandboxPositionsBalancePostParams struct { // Номер счета (по умолчанию - Тинькофф). BrokerAccountId OptString @@ -1034,6 +1048,7 @@ func decodeSandboxPositionsBalancePostParams(args [0]string, r *http.Request) (p return params, nil } +// SandboxRemovePostParams is parameters of POST /sandbox/remove operation. type SandboxRemovePostParams struct { // Номер счета (по умолчанию - Тинькофф). BrokerAccountId OptString diff --git a/examples/ex_tinkoff/oas_request_encoders_gen.go b/examples/ex_tinkoff/oas_request_encoders_gen.go index 6701381f8..335f6a9ab 100644 --- a/examples/ex_tinkoff/oas_request_encoders_gen.go +++ b/examples/ex_tinkoff/oas_request_encoders_gen.go @@ -24,6 +24,7 @@ func encodeOrdersLimitOrderPostRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeOrdersMarketOrderPostRequest( req MarketOrderRequest, r *http.Request, @@ -37,6 +38,7 @@ func encodeOrdersMarketOrderPostRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSandboxCurrenciesBalancePostRequest( req SandboxSetCurrencyBalanceRequest, r *http.Request, @@ -50,6 +52,7 @@ func encodeSandboxCurrenciesBalancePostRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSandboxPositionsBalancePostRequest( req SandboxSetPositionBalanceRequest, r *http.Request, @@ -63,6 +66,7 @@ func encodeSandboxPositionsBalancePostRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSandboxRegisterPostRequest( req OptSandboxRegisterRequest, r *http.Request, diff --git a/examples/ex_tinkoff/oas_response_encoders_gen.go b/examples/ex_tinkoff/oas_response_encoders_gen.go index d3f5bfef4..4c4658926 100644 --- a/examples/ex_tinkoff/oas_response_encoders_gen.go +++ b/examples/ex_tinkoff/oas_response_encoders_gen.go @@ -41,6 +41,7 @@ func encodeMarketBondsGetResponse(response MarketBondsGetRes, w http.ResponseWri return errors.Errorf("unexpected response type: %T", response) } } + func encodeMarketCandlesGetResponse(response MarketCandlesGetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *CandlesResponse: @@ -71,6 +72,7 @@ func encodeMarketCandlesGetResponse(response MarketCandlesGetRes, w http.Respons return errors.Errorf("unexpected response type: %T", response) } } + func encodeMarketCurrenciesGetResponse(response MarketCurrenciesGetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *MarketInstrumentListResponse: @@ -101,6 +103,7 @@ func encodeMarketCurrenciesGetResponse(response MarketCurrenciesGetRes, w http.R return errors.Errorf("unexpected response type: %T", response) } } + func encodeMarketEtfsGetResponse(response MarketEtfsGetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *MarketInstrumentListResponse: @@ -131,6 +134,7 @@ func encodeMarketEtfsGetResponse(response MarketEtfsGetRes, w http.ResponseWrite return errors.Errorf("unexpected response type: %T", response) } } + func encodeMarketOrderbookGetResponse(response MarketOrderbookGetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrderbookResponse: @@ -161,6 +165,7 @@ func encodeMarketOrderbookGetResponse(response MarketOrderbookGetRes, w http.Res return errors.Errorf("unexpected response type: %T", response) } } + func encodeMarketSearchByFigiGetResponse(response MarketSearchByFigiGetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *SearchMarketInstrumentResponse: @@ -191,6 +196,7 @@ func encodeMarketSearchByFigiGetResponse(response MarketSearchByFigiGetRes, w ht return errors.Errorf("unexpected response type: %T", response) } } + func encodeMarketSearchByTickerGetResponse(response MarketSearchByTickerGetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *MarketInstrumentListResponse: @@ -221,6 +227,7 @@ func encodeMarketSearchByTickerGetResponse(response MarketSearchByTickerGetRes, return errors.Errorf("unexpected response type: %T", response) } } + func encodeMarketStocksGetResponse(response MarketStocksGetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *MarketInstrumentListResponse: @@ -251,6 +258,7 @@ func encodeMarketStocksGetResponse(response MarketStocksGetRes, w http.ResponseW return errors.Errorf("unexpected response type: %T", response) } } + func encodeOperationsGetResponse(response OperationsGetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OperationsResponse: @@ -281,6 +289,7 @@ func encodeOperationsGetResponse(response OperationsGetRes, w http.ResponseWrite return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrdersCancelPostResponse(response OrdersCancelPostRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Empty: @@ -311,6 +320,7 @@ func encodeOrdersCancelPostResponse(response OrdersCancelPostRes, w http.Respons return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrdersGetResponse(response OrdersGetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *OrdersResponse: @@ -341,6 +351,7 @@ func encodeOrdersGetResponse(response OrdersGetRes, w http.ResponseWriter, span return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrdersLimitOrderPostResponse(response OrdersLimitOrderPostRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *LimitOrderResponse: @@ -371,6 +382,7 @@ func encodeOrdersLimitOrderPostResponse(response OrdersLimitOrderPostRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodeOrdersMarketOrderPostResponse(response OrdersMarketOrderPostRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *MarketOrderResponse: @@ -401,6 +413,7 @@ func encodeOrdersMarketOrderPostResponse(response OrdersMarketOrderPostRes, w ht return errors.Errorf("unexpected response type: %T", response) } } + func encodePortfolioCurrenciesGetResponse(response PortfolioCurrenciesGetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PortfolioCurrenciesResponse: @@ -431,6 +444,7 @@ func encodePortfolioCurrenciesGetResponse(response PortfolioCurrenciesGetRes, w return errors.Errorf("unexpected response type: %T", response) } } + func encodePortfolioGetResponse(response PortfolioGetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PortfolioResponse: @@ -461,6 +475,7 @@ func encodePortfolioGetResponse(response PortfolioGetRes, w http.ResponseWriter, return errors.Errorf("unexpected response type: %T", response) } } + func encodeSandboxClearPostResponse(response SandboxClearPostRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Empty: @@ -491,6 +506,7 @@ func encodeSandboxClearPostResponse(response SandboxClearPostRes, w http.Respons return errors.Errorf("unexpected response type: %T", response) } } + func encodeSandboxCurrenciesBalancePostResponse(response SandboxCurrenciesBalancePostRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Empty: @@ -521,6 +537,7 @@ func encodeSandboxCurrenciesBalancePostResponse(response SandboxCurrenciesBalanc return errors.Errorf("unexpected response type: %T", response) } } + func encodeSandboxPositionsBalancePostResponse(response SandboxPositionsBalancePostRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Empty: @@ -551,6 +568,7 @@ func encodeSandboxPositionsBalancePostResponse(response SandboxPositionsBalanceP return errors.Errorf("unexpected response type: %T", response) } } + func encodeSandboxRegisterPostResponse(response SandboxRegisterPostRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *SandboxRegisterResponse: @@ -581,6 +599,7 @@ func encodeSandboxRegisterPostResponse(response SandboxRegisterPostRes, w http.R return errors.Errorf("unexpected response type: %T", response) } } + func encodeSandboxRemovePostResponse(response SandboxRemovePostRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Empty: @@ -611,6 +630,7 @@ func encodeSandboxRemovePostResponse(response SandboxRemovePostRes, w http.Respo return errors.Errorf("unexpected response type: %T", response) } } + func encodeUserAccountsGetResponse(response UserAccountsGetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *UserAccountsResponse: diff --git a/examples/ex_tinkoff/oas_router_gen.go b/examples/ex_tinkoff/oas_router_gen.go index 165988ddf..25f51f954 100644 --- a/examples/ex_tinkoff/oas_router_gen.go +++ b/examples/ex_tinkoff/oas_router_gen.go @@ -7,14 +7,6 @@ import ( "strings" ) -func (s *Server) notFound(w http.ResponseWriter, r *http.Request) { - s.cfg.NotFound(w, r) -} - -func (s *Server) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { - s.cfg.MethodNotAllowed(w, r, allowed) -} - // ServeHTTP serves http request as defined by OpenAPI v3 specification, // calling handler that matches the path or returning not found error. func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { diff --git a/examples/ex_tinkoff/oas_server_gen.go b/examples/ex_tinkoff/oas_server_gen.go index 55fe5ad49..f6ceaf8a0 100644 --- a/examples/ex_tinkoff/oas_server_gen.go +++ b/examples/ex_tinkoff/oas_server_gen.go @@ -4,10 +4,6 @@ package api import ( "context" - - "go.opentelemetry.io/otel/metric/instrument/syncint64" - - "github.com/ogen-go/ogen/otelogen" ) // Handler handles operations described by OpenAPI v3 specification. @@ -145,29 +141,18 @@ type Handler interface { type Server struct { h Handler sec SecurityHandler - cfg config - - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + baseServer } // NewServer creates new Server. func NewServer(h Handler, sec SecurityHandler, opts ...Option) (*Server, error) { - s := &Server{ - h: h, - sec: sec, - cfg: newConfig(opts...), - } - var err error - if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { - return nil, err - } - if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { - return nil, err - } - if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + s, err := newConfig(opts...).baseServer() + if err != nil { return nil, err } - return s, nil + return &Server{ + h: h, + sec: sec, + baseServer: s, + }, nil } diff --git a/examples/ex_tinkoff/oas_unimplemented_gen.go b/examples/ex_tinkoff/oas_unimplemented_gen.go index 7ad67c366..bd198b5b3 100644 --- a/examples/ex_tinkoff/oas_unimplemented_gen.go +++ b/examples/ex_tinkoff/oas_unimplemented_gen.go @@ -8,11 +8,11 @@ import ( ht "github.com/ogen-go/ogen/http" ) -var _ Handler = UnimplementedHandler{} - // UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented. type UnimplementedHandler struct{} +var _ Handler = UnimplementedHandler{} + // MarketBondsGet implements GET /market/bonds operation. // // Получение списка облигаций. diff --git a/internal/referenced_path_item/oas_cfg_gen.go b/internal/referenced_path_item/oas_cfg_gen.go index 43cd6eec1..d1c81762b 100644 --- a/internal/referenced_path_item/oas_cfg_gen.go +++ b/internal/referenced_path_item/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -15,6 +16,13 @@ import ( "github.com/ogen-go/ogen/otelogen" ) +var ( + // Allocate option closure once. + clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) + // Allocate option closure once. + serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) +) + // ErrorHandler is error handler. type ErrorHandler = ogenerrors.ErrorHandler @@ -56,6 +64,57 @@ func newConfig(opts ...Option) config { return cfg } +type baseServer struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (s baseServer) notFound(w http.ResponseWriter, r *http.Request) { + s.cfg.NotFound(w, r) +} + +func (s baseServer) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { + s.cfg.MethodNotAllowed(w, r, allowed) +} + +func (cfg config) baseServer() (s baseServer, err error) { + s = baseServer{cfg: cfg} + if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { + return s, err + } + if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { + return s, err + } + if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + return s, err + } + return s, nil +} + +type baseClient struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (cfg config) baseClient() (c baseClient, err error) { + c = baseClient{cfg: cfg} + if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { + return c, err + } + if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { + return c, err + } + if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + return c, err + } + return c, nil +} + +// Option is config option. type Option interface { apply(*config) } diff --git a/internal/referenced_path_item/oas_client_gen.go b/internal/referenced_path_item/oas_client_gen.go index 730c808f7..8bb3e407c 100644 --- a/internal/referenced_path_item/oas_client_gen.go +++ b/internal/referenced_path_item/oas_client_gen.go @@ -10,11 +10,8 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" - "go.opentelemetry.io/otel/metric/instrument/syncint64" - "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" - "github.com/ogen-go/ogen/otelogen" "github.com/ogen-go/ogen/uri" ) @@ -22,16 +19,10 @@ var _ Handler = struct { *Client }{} -// Allocate option closure once. -var clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) - // Client implements OAS client. type Client struct { serverURL *url.URL - cfg config - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + baseClient } // NewClient initializes new Client defined by OAS. @@ -40,20 +31,14 @@ func NewClient(serverURL string, opts ...Option) (*Client, error) { if err != nil { return nil, err } - c := &Client{ - cfg: newConfig(opts...), - serverURL: u, - } - if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { - return nil, err - } - if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { - return nil, err - } - if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + c, err := newConfig(opts...).baseClient() + if err != nil { return nil, err } - return c, nil + return &Client{ + serverURL: u, + baseClient: c, + }, nil } type serverURLKey struct{} diff --git a/internal/referenced_path_item/oas_handlers_gen.go b/internal/referenced_path_item/oas_handlers_gen.go index 58a483302..f166f7584 100644 --- a/internal/referenced_path_item/oas_handlers_gen.go +++ b/internal/referenced_path_item/oas_handlers_gen.go @@ -9,14 +9,10 @@ import ( "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" - "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/middleware" ) -// Allocate option closure once. -var serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) - // handleFooGetRequest handles GET /foo operation. // // GET /foo diff --git a/internal/referenced_path_item/oas_router_gen.go b/internal/referenced_path_item/oas_router_gen.go index c3cac6c79..ed72f86f4 100644 --- a/internal/referenced_path_item/oas_router_gen.go +++ b/internal/referenced_path_item/oas_router_gen.go @@ -7,14 +7,6 @@ import ( "strings" ) -func (s *Server) notFound(w http.ResponseWriter, r *http.Request) { - s.cfg.NotFound(w, r) -} - -func (s *Server) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { - s.cfg.MethodNotAllowed(w, r, allowed) -} - // ServeHTTP serves http request as defined by OpenAPI v3 specification, // calling handler that matches the path or returning not found error. func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { diff --git a/internal/referenced_path_item/oas_server_gen.go b/internal/referenced_path_item/oas_server_gen.go index 77743753f..94c961dba 100644 --- a/internal/referenced_path_item/oas_server_gen.go +++ b/internal/referenced_path_item/oas_server_gen.go @@ -4,10 +4,6 @@ package api import ( "context" - - "go.opentelemetry.io/otel/metric/instrument/syncint64" - - "github.com/ogen-go/ogen/otelogen" ) // Handler handles operations described by OpenAPI v3 specification. @@ -21,29 +17,18 @@ type Handler interface { // Server implements http server based on OpenAPI v3 specification and // calls Handler to handle requests. type Server struct { - h Handler - cfg config - - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + h Handler + baseServer } // NewServer creates new Server. func NewServer(h Handler, opts ...Option) (*Server, error) { - s := &Server{ - h: h, - cfg: newConfig(opts...), - } - var err error - if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { - return nil, err - } - if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { - return nil, err - } - if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + s, err := newConfig(opts...).baseServer() + if err != nil { return nil, err } - return s, nil + return &Server{ + h: h, + baseServer: s, + }, nil } diff --git a/internal/referenced_path_item/oas_unimplemented_gen.go b/internal/referenced_path_item/oas_unimplemented_gen.go index 4524fc0cd..82140c7ae 100644 --- a/internal/referenced_path_item/oas_unimplemented_gen.go +++ b/internal/referenced_path_item/oas_unimplemented_gen.go @@ -8,11 +8,11 @@ import ( ht "github.com/ogen-go/ogen/http" ) -var _ Handler = UnimplementedHandler{} - // UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented. type UnimplementedHandler struct{} +var _ Handler = UnimplementedHandler{} + // FooGet implements GET /foo operation. // // GET /foo diff --git a/internal/sample_api/oas_cfg_gen.go b/internal/sample_api/oas_cfg_gen.go index 2f5ba9596..9897cb5c3 100644 --- a/internal/sample_api/oas_cfg_gen.go +++ b/internal/sample_api/oas_cfg_gen.go @@ -10,6 +10,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -40,6 +41,12 @@ var ratMap = map[string]*big.Rat{ return r }(), } +var ( + // Allocate option closure once. + clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) + // Allocate option closure once. + serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) +) // ErrorHandler is error handler. type ErrorHandler = ogenerrors.ErrorHandler @@ -82,6 +89,57 @@ func newConfig(opts ...Option) config { return cfg } +type baseServer struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (s baseServer) notFound(w http.ResponseWriter, r *http.Request) { + s.cfg.NotFound(w, r) +} + +func (s baseServer) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { + s.cfg.MethodNotAllowed(w, r, allowed) +} + +func (cfg config) baseServer() (s baseServer, err error) { + s = baseServer{cfg: cfg} + if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { + return s, err + } + if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { + return s, err + } + if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + return s, err + } + return s, nil +} + +type baseClient struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (cfg config) baseClient() (c baseClient, err error) { + c = baseClient{cfg: cfg} + if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { + return c, err + } + if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { + return c, err + } + if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + return c, err + } + return c, nil +} + +// Option is config option. type Option interface { apply(*config) } diff --git a/internal/sample_api/oas_client_gen.go b/internal/sample_api/oas_client_gen.go index 3cee3ee23..93b17eaf6 100644 --- a/internal/sample_api/oas_client_gen.go +++ b/internal/sample_api/oas_client_gen.go @@ -11,7 +11,6 @@ import ( "github.com/go-faster/jx" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" - "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/conv" @@ -25,17 +24,11 @@ var _ Handler = struct { *Client }{} -// Allocate option closure once. -var clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) - // Client implements OAS client. type Client struct { serverURL *url.URL sec SecuritySource - cfg config - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + baseClient } // NewClient initializes new Client defined by OAS. @@ -44,21 +37,15 @@ func NewClient(serverURL string, sec SecuritySource, opts ...Option) (*Client, e if err != nil { return nil, err } - c := &Client{ - cfg: newConfig(opts...), - sec: sec, - serverURL: u, - } - if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { - return nil, err - } - if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { - return nil, err - } - if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + c, err := newConfig(opts...).baseClient() + if err != nil { return nil, err } - return c, nil + return &Client{ + serverURL: u, + sec: sec, + baseClient: c, + }, nil } type serverURLKey struct{} diff --git a/internal/sample_api/oas_handlers_gen.go b/internal/sample_api/oas_handlers_gen.go index b9ade6f4d..a95523809 100644 --- a/internal/sample_api/oas_handlers_gen.go +++ b/internal/sample_api/oas_handlers_gen.go @@ -16,11 +16,10 @@ import ( "github.com/ogen-go/ogen/otelogen" ) -// Allocate option closure once. -var serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) - // handleDataGetFormatRequest handles dataGetFormat operation. // +// Retrieve data. +// // GET /name/{id}/{foo}1234{bar}-{baz}!{kek} func (s *Server) handleDataGetFormatRequest(args [5]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -228,6 +227,8 @@ func (s *Server) handleDefaultTestRequest(args [0]string, w http.ResponseWriter, // handleErrorGetRequest handles errorGet operation. // +// Returns error. +// // GET /error func (s *Server) handleErrorGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -306,6 +307,8 @@ func (s *Server) handleErrorGetRequest(args [0]string, w http.ResponseWriter, r // handleFoobarGetRequest handles foobarGet operation. // +// Dumb endpoint for testing things. +// // GET /foobar func (s *Server) handleFoobarGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -401,6 +404,8 @@ func (s *Server) handleFoobarGetRequest(args [0]string, w http.ResponseWriter, r // handleFoobarPostRequest handles foobarPost operation. // +// Dumb endpoint for testing things. +// // POST /foobar func (s *Server) handleFoobarPostRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -573,6 +578,8 @@ func (s *Server) handleFoobarPutRequest(args [0]string, w http.ResponseWriter, r // handleGetHeaderRequest handles getHeader operation. // +// Test for header param. +// // GET /test/header func (s *Server) handleGetHeaderRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -995,6 +1002,8 @@ func (s *Server) handlePatternRecursiveMapGetRequest(args [0]string, w http.Resp // handlePetCreateRequest handles petCreate operation. // +// Creates pet. +// // POST /pet func (s *Server) handlePetCreateRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1092,6 +1101,8 @@ func (s *Server) handlePetCreateRequest(args [0]string, w http.ResponseWriter, r // handlePetFriendsNamesByIDRequest handles petFriendsNamesByID operation. // +// Returns names of all friends of pet. +// // GET /pet/friendNames/{id} func (s *Server) handlePetFriendsNamesByIDRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1186,6 +1197,8 @@ func (s *Server) handlePetFriendsNamesByIDRequest(args [1]string, w http.Respons // handlePetGetRequest handles petGet operation. // +// Returns pet from the system that the user has access to. +// // GET /pet func (s *Server) handlePetGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1283,6 +1296,8 @@ func (s *Server) handlePetGetRequest(args [0]string, w http.ResponseWriter, r *h // handlePetGetAvatarByIDRequest handles petGetAvatarByID operation. // +// Returns pet avatar by id. +// // GET /pet/avatar func (s *Server) handlePetGetAvatarByIDRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1377,6 +1392,8 @@ func (s *Server) handlePetGetAvatarByIDRequest(args [0]string, w http.ResponseWr // handlePetGetAvatarByNameRequest handles petGetAvatarByName operation. // +// Returns pet's avatar by name. +// // GET /pet/{name}/avatar func (s *Server) handlePetGetAvatarByNameRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1471,6 +1488,8 @@ func (s *Server) handlePetGetAvatarByNameRequest(args [1]string, w http.Response // handlePetGetByNameRequest handles petGetByName operation. // +// Returns pet by name from the system that the user has access to. +// // GET /pet/{name} func (s *Server) handlePetGetByNameRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1565,6 +1584,8 @@ func (s *Server) handlePetGetByNameRequest(args [1]string, w http.ResponseWriter // handlePetNameByIDRequest handles petNameByID operation. // +// Returns pet name by pet id. +// // GET /pet/name/{id} func (s *Server) handlePetNameByIDRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1847,6 +1868,8 @@ func (s *Server) handlePetUpdateNamePostRequest(args [0]string, w http.ResponseW // handlePetUploadAvatarByIDRequest handles petUploadAvatarByID operation. // +// Uploads pet avatar by id. +// // POST /pet/avatar func (s *Server) handlePetUploadAvatarByIDRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ diff --git a/internal/sample_api/oas_parameters_gen.go b/internal/sample_api/oas_parameters_gen.go index 0580072c3..7fbdb7cea 100644 --- a/internal/sample_api/oas_parameters_gen.go +++ b/internal/sample_api/oas_parameters_gen.go @@ -14,6 +14,7 @@ import ( "github.com/ogen-go/ogen/validate" ) +// DataGetFormatParams is parameters of dataGetFormat operation. type DataGetFormatParams struct { ID int Foo string @@ -207,6 +208,7 @@ func decodeDataGetFormatParams(args [5]string, r *http.Request) (params DataGetF return params, nil } +// DefaultTestParams is parameters of defaultTest operation. type DefaultTestParams struct { Default OptInt32 } @@ -262,6 +264,7 @@ func decodeDefaultTestParams(args [0]string, r *http.Request) (params DefaultTes return params, nil } +// FoobarGetParams is parameters of foobarGet operation. type FoobarGetParams struct { // InlinedParam. InlinedParam int64 @@ -338,6 +341,7 @@ func decodeFoobarGetParams(args [0]string, r *http.Request) (params FoobarGetPar return params, nil } +// GetHeaderParams is parameters of getHeader operation. type GetHeaderParams struct { XAuthToken string } @@ -379,6 +383,7 @@ func decodeGetHeaderParams(args [0]string, r *http.Request) (params GetHeaderPar return params, nil } +// PetFriendsNamesByIDParams is parameters of petFriendsNamesByID operation. type PetFriendsNamesByIDParams struct { // Pet ID. ID int @@ -424,6 +429,7 @@ func decodePetFriendsNamesByIDParams(args [1]string, r *http.Request) (params Pe return params, nil } +// PetGetParams is parameters of petGet operation. type PetGetParams struct { // ID of pet. PetID int64 @@ -612,6 +618,7 @@ func decodePetGetParams(args [0]string, r *http.Request) (params PetGetParams, _ return params, nil } +// PetGetAvatarByIDParams is parameters of petGetAvatarByID operation. type PetGetAvatarByIDParams struct { // ID of pet. PetID int64 @@ -656,6 +663,7 @@ func decodePetGetAvatarByIDParams(args [0]string, r *http.Request) (params PetGe return params, nil } +// PetGetAvatarByNameParams is parameters of petGetAvatarByName operation. type PetGetAvatarByNameParams struct { // Name of pet. Name string @@ -701,6 +709,7 @@ func decodePetGetAvatarByNameParams(args [1]string, r *http.Request) (params Pet return params, nil } +// PetGetByNameParams is parameters of petGetByName operation. type PetGetByNameParams struct { // Name of pet. Name string @@ -746,6 +755,7 @@ func decodePetGetByNameParams(args [1]string, r *http.Request) (params PetGetByN return params, nil } +// PetNameByIDParams is parameters of petNameByID operation. type PetNameByIDParams struct { // Pet ID. ID int @@ -791,6 +801,7 @@ func decodePetNameByIDParams(args [1]string, r *http.Request) (params PetNameByI return params, nil } +// PetUploadAvatarByIDParams is parameters of petUploadAvatarByID operation. type PetUploadAvatarByIDParams struct { // ID of pet. PetID int64 @@ -835,6 +846,7 @@ func decodePetUploadAvatarByIDParams(args [0]string, r *http.Request) (params Pe return params, nil } +// TestContentParameterParams is parameters of testContentParameter operation. type TestContentParameterParams struct { Param OptTestContentParameterParam } @@ -880,6 +892,7 @@ func decodeTestContentParameterParams(args [0]string, r *http.Request) (params T return params, nil } +// TestObjectQueryParameterParams is parameters of testObjectQueryParameter operation. type TestObjectQueryParameterParams struct { FormObject OptTestObjectQueryParameterFormObject DeepObject OptTestObjectQueryParameterDeepObject diff --git a/internal/sample_api/oas_request_encoders_gen.go b/internal/sample_api/oas_request_encoders_gen.go index 4a1dc2f42..737324dbc 100644 --- a/internal/sample_api/oas_request_encoders_gen.go +++ b/internal/sample_api/oas_request_encoders_gen.go @@ -24,6 +24,7 @@ func encodeDefaultTestRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeFoobarPostRequest( req OptPet, r *http.Request, @@ -43,6 +44,7 @@ func encodeFoobarPostRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeOneofBugRequest( req OneOfBugs, r *http.Request, @@ -56,6 +58,7 @@ func encodeOneofBugRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePetCreateRequest( req OptPet, r *http.Request, @@ -75,6 +78,7 @@ func encodePetCreateRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePetUpdateNameAliasPostRequest( req OptPetName, r *http.Request, @@ -94,6 +98,7 @@ func encodePetUpdateNameAliasPostRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePetUpdateNamePostRequest( req OptString, r *http.Request, @@ -113,6 +118,7 @@ func encodePetUpdateNamePostRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePetUploadAvatarByIDRequest( req PetUploadAvatarByIDReq, r *http.Request, @@ -121,6 +127,7 @@ func encodePetUploadAvatarByIDRequest( ht.SetBody(r, req, contentType) return nil } + func encodeTestFloatValidationRequest( req TestFloatValidation, r *http.Request, diff --git a/internal/sample_api/oas_response_encoders_gen.go b/internal/sample_api/oas_response_encoders_gen.go index bb7adb1ab..0a7bd588e 100644 --- a/internal/sample_api/oas_response_encoders_gen.go +++ b/internal/sample_api/oas_response_encoders_gen.go @@ -25,6 +25,7 @@ func encodeDataGetFormatResponse(response string, w http.ResponseWriter, span tr return nil } + func encodeDefaultTestResponse(response int32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -38,6 +39,7 @@ func encodeDefaultTestResponse(response int32, w http.ResponseWriter, span trace return nil } + func encodeErrorGetResponse(response ErrorStatusCode, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") code := response.StatusCode @@ -61,6 +63,7 @@ func encodeErrorGetResponse(response ErrorStatusCode, w http.ResponseWriter, spa return nil } + func encodeFoobarGetResponse(response FoobarGetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Pet: @@ -84,6 +87,7 @@ func encodeFoobarGetResponse(response FoobarGetRes, w http.ResponseWriter, span return errors.Errorf("unexpected response type: %T", response) } } + func encodeFoobarPostResponse(response FoobarPostRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Pet: @@ -129,6 +133,7 @@ func encodeFoobarPostResponse(response FoobarPostRes, w http.ResponseWriter, spa return errors.Errorf("unexpected response type: %T", response) } } + func encodeFoobarPutResponse(response FoobarPutDef, w http.ResponseWriter, span trace.Span) error { code := response.StatusCode if code == 0 { @@ -145,6 +150,7 @@ func encodeFoobarPutResponse(response FoobarPutDef, w http.ResponseWriter, span return nil } + func encodeGetHeaderResponse(response Hash, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -158,6 +164,7 @@ func encodeGetHeaderResponse(response Hash, w http.ResponseWriter, span trace.Sp return nil } + func encodeNoAdditionalPropertiesTestResponse(response NoAdditionalPropertiesTest, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -171,6 +178,7 @@ func encodeNoAdditionalPropertiesTestResponse(response NoAdditionalPropertiesTes return nil } + func encodeNullableDefaultResponseResponse(response NilIntStatusCode, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") code := response.StatusCode @@ -194,12 +202,14 @@ func encodeNullableDefaultResponseResponse(response NilIntStatusCode, w http.Res return nil } + func encodeOneofBugResponse(response OneofBugOK, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) return nil } + func encodePatternRecursiveMapGetResponse(response PatternRecursiveMap, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -213,6 +223,7 @@ func encodePatternRecursiveMapGetResponse(response PatternRecursiveMap, w http.R return nil } + func encodePetCreateResponse(response Pet, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -226,6 +237,7 @@ func encodePetCreateResponse(response Pet, w http.ResponseWriter, span trace.Spa return nil } + func encodePetFriendsNamesByIDResponse(response []string, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -243,6 +255,7 @@ func encodePetFriendsNamesByIDResponse(response []string, w http.ResponseWriter, return nil } + func encodePetGetResponse(response PetGetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Pet: @@ -283,6 +296,7 @@ func encodePetGetResponse(response PetGetRes, w http.ResponseWriter, span trace. return errors.Errorf("unexpected response type: %T", response) } } + func encodePetGetAvatarByIDResponse(response PetGetAvatarByIDRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PetGetAvatarByIDOK: @@ -325,6 +339,7 @@ func encodePetGetAvatarByIDResponse(response PetGetAvatarByIDRes, w http.Respons return errors.Errorf("unexpected response type: %T", response) } } + func encodePetGetAvatarByNameResponse(response PetGetAvatarByNameRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PetGetAvatarByNameOK: @@ -367,6 +382,7 @@ func encodePetGetAvatarByNameResponse(response PetGetAvatarByNameRes, w http.Res return errors.Errorf("unexpected response type: %T", response) } } + func encodePetGetByNameResponse(response Pet, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -380,6 +396,7 @@ func encodePetGetByNameResponse(response Pet, w http.ResponseWriter, span trace. return nil } + func encodePetNameByIDResponse(response string, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -393,6 +410,7 @@ func encodePetNameByIDResponse(response string, w http.ResponseWriter, span trac return nil } + func encodePetUpdateNameAliasPostResponse(response PetUpdateNameAliasPostDef, w http.ResponseWriter, span trace.Span) error { code := response.StatusCode if code == 0 { @@ -409,6 +427,7 @@ func encodePetUpdateNameAliasPostResponse(response PetUpdateNameAliasPostDef, w return nil } + func encodePetUpdateNamePostResponse(response PetUpdateNamePostDef, w http.ResponseWriter, span trace.Span) error { code := response.StatusCode if code == 0 { @@ -425,6 +444,7 @@ func encodePetUpdateNamePostResponse(response PetUpdateNamePostDef, w http.Respo return nil } + func encodePetUploadAvatarByIDResponse(response PetUploadAvatarByIDRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PetUploadAvatarByIDOK: @@ -463,6 +483,7 @@ func encodePetUploadAvatarByIDResponse(response PetUploadAvatarByIDRes, w http.R return errors.Errorf("unexpected response type: %T", response) } } + func encodeRecursiveArrayGetResponse(response RecursiveArray, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -476,6 +497,7 @@ func encodeRecursiveArrayGetResponse(response RecursiveArray, w http.ResponseWri return nil } + func encodeRecursiveMapGetResponse(response RecursiveMap, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -489,6 +511,7 @@ func encodeRecursiveMapGetResponse(response RecursiveMap, w http.ResponseWriter, return nil } + func encodeSecurityTestResponse(response string, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -502,6 +525,7 @@ func encodeSecurityTestResponse(response string, w http.ResponseWriter, span tra return nil } + func encodeStringIntMapGetResponse(response StringIntMap, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -515,6 +539,7 @@ func encodeStringIntMapGetResponse(response StringIntMap, w http.ResponseWriter, return nil } + func encodeTestContentParameterResponse(response string, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -528,12 +553,14 @@ func encodeTestContentParameterResponse(response string, w http.ResponseWriter, return nil } + func encodeTestFloatValidationResponse(response TestFloatValidationOK, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) return nil } + func encodeTestNullableOneofsResponse(response TestNullableOneofsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *TestNullableOneofsApplicationJSONOK: @@ -576,6 +603,7 @@ func encodeTestNullableOneofsResponse(response TestNullableOneofsRes, w http.Res return errors.Errorf("unexpected response type: %T", response) } } + func encodeTestObjectQueryParameterResponse(response TestObjectQueryParameterOK, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) diff --git a/internal/sample_api/oas_router_gen.go b/internal/sample_api/oas_router_gen.go index d4994193d..b45604616 100644 --- a/internal/sample_api/oas_router_gen.go +++ b/internal/sample_api/oas_router_gen.go @@ -7,14 +7,6 @@ import ( "strings" ) -func (s *Server) notFound(w http.ResponseWriter, r *http.Request) { - s.cfg.NotFound(w, r) -} - -func (s *Server) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { - s.cfg.MethodNotAllowed(w, r, allowed) -} - // ServeHTTP serves http request as defined by OpenAPI v3 specification, // calling handler that matches the path or returning not found error. func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { diff --git a/internal/sample_api/oas_server_gen.go b/internal/sample_api/oas_server_gen.go index 439cb838c..d03aecf53 100644 --- a/internal/sample_api/oas_server_gen.go +++ b/internal/sample_api/oas_server_gen.go @@ -4,10 +4,6 @@ package api import ( "context" - - "go.opentelemetry.io/otel/metric/instrument/syncint64" - - "github.com/ogen-go/ogen/otelogen" ) // Handler handles operations described by OpenAPI v3 specification. @@ -161,29 +157,18 @@ type Handler interface { type Server struct { h Handler sec SecurityHandler - cfg config - - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + baseServer } // NewServer creates new Server. func NewServer(h Handler, sec SecurityHandler, opts ...Option) (*Server, error) { - s := &Server{ - h: h, - sec: sec, - cfg: newConfig(opts...), - } - var err error - if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { - return nil, err - } - if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { - return nil, err - } - if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + s, err := newConfig(opts...).baseServer() + if err != nil { return nil, err } - return s, nil + return &Server{ + h: h, + sec: sec, + baseServer: s, + }, nil } diff --git a/internal/sample_api/oas_unimplemented_gen.go b/internal/sample_api/oas_unimplemented_gen.go index a374222f7..1206c08c3 100644 --- a/internal/sample_api/oas_unimplemented_gen.go +++ b/internal/sample_api/oas_unimplemented_gen.go @@ -8,11 +8,11 @@ import ( ht "github.com/ogen-go/ogen/http" ) -var _ Handler = UnimplementedHandler{} - // UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented. type UnimplementedHandler struct{} +var _ Handler = UnimplementedHandler{} + // DataGetFormat implements dataGetFormat operation. // // Retrieve data. diff --git a/internal/sample_api_nc/oas_cfg_gen.go b/internal/sample_api_nc/oas_cfg_gen.go index cc435bb19..71aaaf250 100644 --- a/internal/sample_api_nc/oas_cfg_gen.go +++ b/internal/sample_api_nc/oas_cfg_gen.go @@ -10,6 +10,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/middleware" @@ -39,6 +40,10 @@ var ratMap = map[string]*big.Rat{ return r }(), } +var ( + // Allocate option closure once. + serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) +) // ErrorHandler is error handler. type ErrorHandler = ogenerrors.ErrorHandler @@ -79,6 +84,36 @@ func newConfig(opts ...Option) config { return cfg } +type baseServer struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (s baseServer) notFound(w http.ResponseWriter, r *http.Request) { + s.cfg.NotFound(w, r) +} + +func (s baseServer) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { + s.cfg.MethodNotAllowed(w, r, allowed) +} + +func (cfg config) baseServer() (s baseServer, err error) { + s = baseServer{cfg: cfg} + if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { + return s, err + } + if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { + return s, err + } + if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + return s, err + } + return s, nil +} + +// Option is config option. type Option interface { apply(*config) } diff --git a/internal/sample_api_nc/oas_handlers_gen.go b/internal/sample_api_nc/oas_handlers_gen.go index b9ade6f4d..a95523809 100644 --- a/internal/sample_api_nc/oas_handlers_gen.go +++ b/internal/sample_api_nc/oas_handlers_gen.go @@ -16,11 +16,10 @@ import ( "github.com/ogen-go/ogen/otelogen" ) -// Allocate option closure once. -var serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) - // handleDataGetFormatRequest handles dataGetFormat operation. // +// Retrieve data. +// // GET /name/{id}/{foo}1234{bar}-{baz}!{kek} func (s *Server) handleDataGetFormatRequest(args [5]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -228,6 +227,8 @@ func (s *Server) handleDefaultTestRequest(args [0]string, w http.ResponseWriter, // handleErrorGetRequest handles errorGet operation. // +// Returns error. +// // GET /error func (s *Server) handleErrorGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -306,6 +307,8 @@ func (s *Server) handleErrorGetRequest(args [0]string, w http.ResponseWriter, r // handleFoobarGetRequest handles foobarGet operation. // +// Dumb endpoint for testing things. +// // GET /foobar func (s *Server) handleFoobarGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -401,6 +404,8 @@ func (s *Server) handleFoobarGetRequest(args [0]string, w http.ResponseWriter, r // handleFoobarPostRequest handles foobarPost operation. // +// Dumb endpoint for testing things. +// // POST /foobar func (s *Server) handleFoobarPostRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -573,6 +578,8 @@ func (s *Server) handleFoobarPutRequest(args [0]string, w http.ResponseWriter, r // handleGetHeaderRequest handles getHeader operation. // +// Test for header param. +// // GET /test/header func (s *Server) handleGetHeaderRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -995,6 +1002,8 @@ func (s *Server) handlePatternRecursiveMapGetRequest(args [0]string, w http.Resp // handlePetCreateRequest handles petCreate operation. // +// Creates pet. +// // POST /pet func (s *Server) handlePetCreateRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1092,6 +1101,8 @@ func (s *Server) handlePetCreateRequest(args [0]string, w http.ResponseWriter, r // handlePetFriendsNamesByIDRequest handles petFriendsNamesByID operation. // +// Returns names of all friends of pet. +// // GET /pet/friendNames/{id} func (s *Server) handlePetFriendsNamesByIDRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1186,6 +1197,8 @@ func (s *Server) handlePetFriendsNamesByIDRequest(args [1]string, w http.Respons // handlePetGetRequest handles petGet operation. // +// Returns pet from the system that the user has access to. +// // GET /pet func (s *Server) handlePetGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1283,6 +1296,8 @@ func (s *Server) handlePetGetRequest(args [0]string, w http.ResponseWriter, r *h // handlePetGetAvatarByIDRequest handles petGetAvatarByID operation. // +// Returns pet avatar by id. +// // GET /pet/avatar func (s *Server) handlePetGetAvatarByIDRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1377,6 +1392,8 @@ func (s *Server) handlePetGetAvatarByIDRequest(args [0]string, w http.ResponseWr // handlePetGetAvatarByNameRequest handles petGetAvatarByName operation. // +// Returns pet's avatar by name. +// // GET /pet/{name}/avatar func (s *Server) handlePetGetAvatarByNameRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1471,6 +1488,8 @@ func (s *Server) handlePetGetAvatarByNameRequest(args [1]string, w http.Response // handlePetGetByNameRequest handles petGetByName operation. // +// Returns pet by name from the system that the user has access to. +// // GET /pet/{name} func (s *Server) handlePetGetByNameRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1565,6 +1584,8 @@ func (s *Server) handlePetGetByNameRequest(args [1]string, w http.ResponseWriter // handlePetNameByIDRequest handles petNameByID operation. // +// Returns pet name by pet id. +// // GET /pet/name/{id} func (s *Server) handlePetNameByIDRequest(args [1]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -1847,6 +1868,8 @@ func (s *Server) handlePetUpdateNamePostRequest(args [0]string, w http.ResponseW // handlePetUploadAvatarByIDRequest handles petUploadAvatarByID operation. // +// Uploads pet avatar by id. +// // POST /pet/avatar func (s *Server) handlePetUploadAvatarByIDRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ diff --git a/internal/sample_api_nc/oas_parameters_gen.go b/internal/sample_api_nc/oas_parameters_gen.go index 0580072c3..7fbdb7cea 100644 --- a/internal/sample_api_nc/oas_parameters_gen.go +++ b/internal/sample_api_nc/oas_parameters_gen.go @@ -14,6 +14,7 @@ import ( "github.com/ogen-go/ogen/validate" ) +// DataGetFormatParams is parameters of dataGetFormat operation. type DataGetFormatParams struct { ID int Foo string @@ -207,6 +208,7 @@ func decodeDataGetFormatParams(args [5]string, r *http.Request) (params DataGetF return params, nil } +// DefaultTestParams is parameters of defaultTest operation. type DefaultTestParams struct { Default OptInt32 } @@ -262,6 +264,7 @@ func decodeDefaultTestParams(args [0]string, r *http.Request) (params DefaultTes return params, nil } +// FoobarGetParams is parameters of foobarGet operation. type FoobarGetParams struct { // InlinedParam. InlinedParam int64 @@ -338,6 +341,7 @@ func decodeFoobarGetParams(args [0]string, r *http.Request) (params FoobarGetPar return params, nil } +// GetHeaderParams is parameters of getHeader operation. type GetHeaderParams struct { XAuthToken string } @@ -379,6 +383,7 @@ func decodeGetHeaderParams(args [0]string, r *http.Request) (params GetHeaderPar return params, nil } +// PetFriendsNamesByIDParams is parameters of petFriendsNamesByID operation. type PetFriendsNamesByIDParams struct { // Pet ID. ID int @@ -424,6 +429,7 @@ func decodePetFriendsNamesByIDParams(args [1]string, r *http.Request) (params Pe return params, nil } +// PetGetParams is parameters of petGet operation. type PetGetParams struct { // ID of pet. PetID int64 @@ -612,6 +618,7 @@ func decodePetGetParams(args [0]string, r *http.Request) (params PetGetParams, _ return params, nil } +// PetGetAvatarByIDParams is parameters of petGetAvatarByID operation. type PetGetAvatarByIDParams struct { // ID of pet. PetID int64 @@ -656,6 +663,7 @@ func decodePetGetAvatarByIDParams(args [0]string, r *http.Request) (params PetGe return params, nil } +// PetGetAvatarByNameParams is parameters of petGetAvatarByName operation. type PetGetAvatarByNameParams struct { // Name of pet. Name string @@ -701,6 +709,7 @@ func decodePetGetAvatarByNameParams(args [1]string, r *http.Request) (params Pet return params, nil } +// PetGetByNameParams is parameters of petGetByName operation. type PetGetByNameParams struct { // Name of pet. Name string @@ -746,6 +755,7 @@ func decodePetGetByNameParams(args [1]string, r *http.Request) (params PetGetByN return params, nil } +// PetNameByIDParams is parameters of petNameByID operation. type PetNameByIDParams struct { // Pet ID. ID int @@ -791,6 +801,7 @@ func decodePetNameByIDParams(args [1]string, r *http.Request) (params PetNameByI return params, nil } +// PetUploadAvatarByIDParams is parameters of petUploadAvatarByID operation. type PetUploadAvatarByIDParams struct { // ID of pet. PetID int64 @@ -835,6 +846,7 @@ func decodePetUploadAvatarByIDParams(args [0]string, r *http.Request) (params Pe return params, nil } +// TestContentParameterParams is parameters of testContentParameter operation. type TestContentParameterParams struct { Param OptTestContentParameterParam } @@ -880,6 +892,7 @@ func decodeTestContentParameterParams(args [0]string, r *http.Request) (params T return params, nil } +// TestObjectQueryParameterParams is parameters of testObjectQueryParameter operation. type TestObjectQueryParameterParams struct { FormObject OptTestObjectQueryParameterFormObject DeepObject OptTestObjectQueryParameterDeepObject diff --git a/internal/sample_api_nc/oas_response_encoders_gen.go b/internal/sample_api_nc/oas_response_encoders_gen.go index bb7adb1ab..0a7bd588e 100644 --- a/internal/sample_api_nc/oas_response_encoders_gen.go +++ b/internal/sample_api_nc/oas_response_encoders_gen.go @@ -25,6 +25,7 @@ func encodeDataGetFormatResponse(response string, w http.ResponseWriter, span tr return nil } + func encodeDefaultTestResponse(response int32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -38,6 +39,7 @@ func encodeDefaultTestResponse(response int32, w http.ResponseWriter, span trace return nil } + func encodeErrorGetResponse(response ErrorStatusCode, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") code := response.StatusCode @@ -61,6 +63,7 @@ func encodeErrorGetResponse(response ErrorStatusCode, w http.ResponseWriter, spa return nil } + func encodeFoobarGetResponse(response FoobarGetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Pet: @@ -84,6 +87,7 @@ func encodeFoobarGetResponse(response FoobarGetRes, w http.ResponseWriter, span return errors.Errorf("unexpected response type: %T", response) } } + func encodeFoobarPostResponse(response FoobarPostRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Pet: @@ -129,6 +133,7 @@ func encodeFoobarPostResponse(response FoobarPostRes, w http.ResponseWriter, spa return errors.Errorf("unexpected response type: %T", response) } } + func encodeFoobarPutResponse(response FoobarPutDef, w http.ResponseWriter, span trace.Span) error { code := response.StatusCode if code == 0 { @@ -145,6 +150,7 @@ func encodeFoobarPutResponse(response FoobarPutDef, w http.ResponseWriter, span return nil } + func encodeGetHeaderResponse(response Hash, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -158,6 +164,7 @@ func encodeGetHeaderResponse(response Hash, w http.ResponseWriter, span trace.Sp return nil } + func encodeNoAdditionalPropertiesTestResponse(response NoAdditionalPropertiesTest, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -171,6 +178,7 @@ func encodeNoAdditionalPropertiesTestResponse(response NoAdditionalPropertiesTes return nil } + func encodeNullableDefaultResponseResponse(response NilIntStatusCode, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") code := response.StatusCode @@ -194,12 +202,14 @@ func encodeNullableDefaultResponseResponse(response NilIntStatusCode, w http.Res return nil } + func encodeOneofBugResponse(response OneofBugOK, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) return nil } + func encodePatternRecursiveMapGetResponse(response PatternRecursiveMap, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -213,6 +223,7 @@ func encodePatternRecursiveMapGetResponse(response PatternRecursiveMap, w http.R return nil } + func encodePetCreateResponse(response Pet, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -226,6 +237,7 @@ func encodePetCreateResponse(response Pet, w http.ResponseWriter, span trace.Spa return nil } + func encodePetFriendsNamesByIDResponse(response []string, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -243,6 +255,7 @@ func encodePetFriendsNamesByIDResponse(response []string, w http.ResponseWriter, return nil } + func encodePetGetResponse(response PetGetRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *Pet: @@ -283,6 +296,7 @@ func encodePetGetResponse(response PetGetRes, w http.ResponseWriter, span trace. return errors.Errorf("unexpected response type: %T", response) } } + func encodePetGetAvatarByIDResponse(response PetGetAvatarByIDRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PetGetAvatarByIDOK: @@ -325,6 +339,7 @@ func encodePetGetAvatarByIDResponse(response PetGetAvatarByIDRes, w http.Respons return errors.Errorf("unexpected response type: %T", response) } } + func encodePetGetAvatarByNameResponse(response PetGetAvatarByNameRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PetGetAvatarByNameOK: @@ -367,6 +382,7 @@ func encodePetGetAvatarByNameResponse(response PetGetAvatarByNameRes, w http.Res return errors.Errorf("unexpected response type: %T", response) } } + func encodePetGetByNameResponse(response Pet, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -380,6 +396,7 @@ func encodePetGetByNameResponse(response Pet, w http.ResponseWriter, span trace. return nil } + func encodePetNameByIDResponse(response string, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -393,6 +410,7 @@ func encodePetNameByIDResponse(response string, w http.ResponseWriter, span trac return nil } + func encodePetUpdateNameAliasPostResponse(response PetUpdateNameAliasPostDef, w http.ResponseWriter, span trace.Span) error { code := response.StatusCode if code == 0 { @@ -409,6 +427,7 @@ func encodePetUpdateNameAliasPostResponse(response PetUpdateNameAliasPostDef, w return nil } + func encodePetUpdateNamePostResponse(response PetUpdateNamePostDef, w http.ResponseWriter, span trace.Span) error { code := response.StatusCode if code == 0 { @@ -425,6 +444,7 @@ func encodePetUpdateNamePostResponse(response PetUpdateNamePostDef, w http.Respo return nil } + func encodePetUploadAvatarByIDResponse(response PetUploadAvatarByIDRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *PetUploadAvatarByIDOK: @@ -463,6 +483,7 @@ func encodePetUploadAvatarByIDResponse(response PetUploadAvatarByIDRes, w http.R return errors.Errorf("unexpected response type: %T", response) } } + func encodeRecursiveArrayGetResponse(response RecursiveArray, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -476,6 +497,7 @@ func encodeRecursiveArrayGetResponse(response RecursiveArray, w http.ResponseWri return nil } + func encodeRecursiveMapGetResponse(response RecursiveMap, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -489,6 +511,7 @@ func encodeRecursiveMapGetResponse(response RecursiveMap, w http.ResponseWriter, return nil } + func encodeSecurityTestResponse(response string, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -502,6 +525,7 @@ func encodeSecurityTestResponse(response string, w http.ResponseWriter, span tra return nil } + func encodeStringIntMapGetResponse(response StringIntMap, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -515,6 +539,7 @@ func encodeStringIntMapGetResponse(response StringIntMap, w http.ResponseWriter, return nil } + func encodeTestContentParameterResponse(response string, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -528,12 +553,14 @@ func encodeTestContentParameterResponse(response string, w http.ResponseWriter, return nil } + func encodeTestFloatValidationResponse(response TestFloatValidationOK, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) return nil } + func encodeTestNullableOneofsResponse(response TestNullableOneofsRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *TestNullableOneofsApplicationJSONOK: @@ -576,6 +603,7 @@ func encodeTestNullableOneofsResponse(response TestNullableOneofsRes, w http.Res return errors.Errorf("unexpected response type: %T", response) } } + func encodeTestObjectQueryParameterResponse(response TestObjectQueryParameterOK, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) diff --git a/internal/sample_api_nc/oas_router_gen.go b/internal/sample_api_nc/oas_router_gen.go index d4994193d..b45604616 100644 --- a/internal/sample_api_nc/oas_router_gen.go +++ b/internal/sample_api_nc/oas_router_gen.go @@ -7,14 +7,6 @@ import ( "strings" ) -func (s *Server) notFound(w http.ResponseWriter, r *http.Request) { - s.cfg.NotFound(w, r) -} - -func (s *Server) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { - s.cfg.MethodNotAllowed(w, r, allowed) -} - // ServeHTTP serves http request as defined by OpenAPI v3 specification, // calling handler that matches the path or returning not found error. func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { diff --git a/internal/sample_api_nc/oas_server_gen.go b/internal/sample_api_nc/oas_server_gen.go index 439cb838c..d03aecf53 100644 --- a/internal/sample_api_nc/oas_server_gen.go +++ b/internal/sample_api_nc/oas_server_gen.go @@ -4,10 +4,6 @@ package api import ( "context" - - "go.opentelemetry.io/otel/metric/instrument/syncint64" - - "github.com/ogen-go/ogen/otelogen" ) // Handler handles operations described by OpenAPI v3 specification. @@ -161,29 +157,18 @@ type Handler interface { type Server struct { h Handler sec SecurityHandler - cfg config - - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + baseServer } // NewServer creates new Server. func NewServer(h Handler, sec SecurityHandler, opts ...Option) (*Server, error) { - s := &Server{ - h: h, - sec: sec, - cfg: newConfig(opts...), - } - var err error - if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { - return nil, err - } - if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { - return nil, err - } - if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + s, err := newConfig(opts...).baseServer() + if err != nil { return nil, err } - return s, nil + return &Server{ + h: h, + sec: sec, + baseServer: s, + }, nil } diff --git a/internal/sample_api_nc/oas_unimplemented_gen.go b/internal/sample_api_nc/oas_unimplemented_gen.go index a374222f7..1206c08c3 100644 --- a/internal/sample_api_nc/oas_unimplemented_gen.go +++ b/internal/sample_api_nc/oas_unimplemented_gen.go @@ -8,11 +8,11 @@ import ( ht "github.com/ogen-go/ogen/http" ) -var _ Handler = UnimplementedHandler{} - // UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented. type UnimplementedHandler struct{} +var _ Handler = UnimplementedHandler{} + // DataGetFormat implements dataGetFormat operation. // // Retrieve data. diff --git a/internal/sample_api_ns/oas_cfg_gen.go b/internal/sample_api_ns/oas_cfg_gen.go index f1777d7d5..e4c7d2974 100644 --- a/internal/sample_api_ns/oas_cfg_gen.go +++ b/internal/sample_api_ns/oas_cfg_gen.go @@ -10,6 +10,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -38,6 +39,10 @@ var ratMap = map[string]*big.Rat{ return r }(), } +var ( + // Allocate option closure once. + clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) +) type config struct { TracerProvider trace.TracerProvider @@ -63,6 +68,28 @@ func newConfig(opts ...Option) config { return cfg } +type baseClient struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (cfg config) baseClient() (c baseClient, err error) { + c = baseClient{cfg: cfg} + if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { + return c, err + } + if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { + return c, err + } + if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + return c, err + } + return c, nil +} + +// Option is config option. type Option interface { apply(*config) } diff --git a/internal/sample_api_ns/oas_client_gen.go b/internal/sample_api_ns/oas_client_gen.go index 762cc66e1..9c07ace75 100644 --- a/internal/sample_api_ns/oas_client_gen.go +++ b/internal/sample_api_ns/oas_client_gen.go @@ -11,7 +11,6 @@ import ( "github.com/go-faster/jx" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" - "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/conv" @@ -21,17 +20,11 @@ import ( "github.com/ogen-go/ogen/validate" ) -// Allocate option closure once. -var clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) - // Client implements OAS client. type Client struct { serverURL *url.URL sec SecuritySource - cfg config - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + baseClient } // NewClient initializes new Client defined by OAS. @@ -40,21 +33,15 @@ func NewClient(serverURL string, sec SecuritySource, opts ...Option) (*Client, e if err != nil { return nil, err } - c := &Client{ - cfg: newConfig(opts...), - sec: sec, - serverURL: u, - } - if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { - return nil, err - } - if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { - return nil, err - } - if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + c, err := newConfig(opts...).baseClient() + if err != nil { return nil, err } - return c, nil + return &Client{ + serverURL: u, + sec: sec, + baseClient: c, + }, nil } type serverURLKey struct{} diff --git a/internal/sample_api_ns/oas_parameters_gen.go b/internal/sample_api_ns/oas_parameters_gen.go index 2461ccd8f..c4de1e0d8 100644 --- a/internal/sample_api_ns/oas_parameters_gen.go +++ b/internal/sample_api_ns/oas_parameters_gen.go @@ -6,6 +6,7 @@ import ( "github.com/google/uuid" ) +// DataGetFormatParams is parameters of dataGetFormat operation. type DataGetFormatParams struct { ID int Foo string @@ -14,10 +15,12 @@ type DataGetFormatParams struct { Kek string } +// DefaultTestParams is parameters of defaultTest operation. type DefaultTestParams struct { Default OptInt32 } +// FoobarGetParams is parameters of foobarGet operation. type FoobarGetParams struct { // InlinedParam. InlinedParam int64 @@ -25,15 +28,18 @@ type FoobarGetParams struct { Skip int32 } +// GetHeaderParams is parameters of getHeader operation. type GetHeaderParams struct { XAuthToken string } +// PetFriendsNamesByIDParams is parameters of petFriendsNamesByID operation. type PetFriendsNamesByIDParams struct { // Pet ID. ID int } +// PetGetParams is parameters of petGet operation. type PetGetParams struct { // ID of pet. PetID int64 @@ -45,35 +51,42 @@ type PetGetParams struct { Token string } +// PetGetAvatarByIDParams is parameters of petGetAvatarByID operation. type PetGetAvatarByIDParams struct { // ID of pet. PetID int64 } +// PetGetAvatarByNameParams is parameters of petGetAvatarByName operation. type PetGetAvatarByNameParams struct { // Name of pet. Name string } +// PetGetByNameParams is parameters of petGetByName operation. type PetGetByNameParams struct { // Name of pet. Name string } +// PetNameByIDParams is parameters of petNameByID operation. type PetNameByIDParams struct { // Pet ID. ID int } +// PetUploadAvatarByIDParams is parameters of petUploadAvatarByID operation. type PetUploadAvatarByIDParams struct { // ID of pet. PetID int64 } +// TestContentParameterParams is parameters of testContentParameter operation. type TestContentParameterParams struct { Param OptTestContentParameterParam } +// TestObjectQueryParameterParams is parameters of testObjectQueryParameter operation. type TestObjectQueryParameterParams struct { FormObject OptTestObjectQueryParameterFormObject DeepObject OptTestObjectQueryParameterDeepObject diff --git a/internal/sample_api_ns/oas_request_encoders_gen.go b/internal/sample_api_ns/oas_request_encoders_gen.go index 4a1dc2f42..737324dbc 100644 --- a/internal/sample_api_ns/oas_request_encoders_gen.go +++ b/internal/sample_api_ns/oas_request_encoders_gen.go @@ -24,6 +24,7 @@ func encodeDefaultTestRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeFoobarPostRequest( req OptPet, r *http.Request, @@ -43,6 +44,7 @@ func encodeFoobarPostRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeOneofBugRequest( req OneOfBugs, r *http.Request, @@ -56,6 +58,7 @@ func encodeOneofBugRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePetCreateRequest( req OptPet, r *http.Request, @@ -75,6 +78,7 @@ func encodePetCreateRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePetUpdateNameAliasPostRequest( req OptPetName, r *http.Request, @@ -94,6 +98,7 @@ func encodePetUpdateNameAliasPostRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePetUpdateNamePostRequest( req OptString, r *http.Request, @@ -113,6 +118,7 @@ func encodePetUpdateNamePostRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodePetUploadAvatarByIDRequest( req PetUploadAvatarByIDReq, r *http.Request, @@ -121,6 +127,7 @@ func encodePetUploadAvatarByIDRequest( ht.SetBody(r, req, contentType) return nil } + func encodeTestFloatValidationRequest( req TestFloatValidation, r *http.Request, diff --git a/internal/sample_api_nsnc/oas_parameters_gen.go b/internal/sample_api_nsnc/oas_parameters_gen.go index 2461ccd8f..c4de1e0d8 100644 --- a/internal/sample_api_nsnc/oas_parameters_gen.go +++ b/internal/sample_api_nsnc/oas_parameters_gen.go @@ -6,6 +6,7 @@ import ( "github.com/google/uuid" ) +// DataGetFormatParams is parameters of dataGetFormat operation. type DataGetFormatParams struct { ID int Foo string @@ -14,10 +15,12 @@ type DataGetFormatParams struct { Kek string } +// DefaultTestParams is parameters of defaultTest operation. type DefaultTestParams struct { Default OptInt32 } +// FoobarGetParams is parameters of foobarGet operation. type FoobarGetParams struct { // InlinedParam. InlinedParam int64 @@ -25,15 +28,18 @@ type FoobarGetParams struct { Skip int32 } +// GetHeaderParams is parameters of getHeader operation. type GetHeaderParams struct { XAuthToken string } +// PetFriendsNamesByIDParams is parameters of petFriendsNamesByID operation. type PetFriendsNamesByIDParams struct { // Pet ID. ID int } +// PetGetParams is parameters of petGet operation. type PetGetParams struct { // ID of pet. PetID int64 @@ -45,35 +51,42 @@ type PetGetParams struct { Token string } +// PetGetAvatarByIDParams is parameters of petGetAvatarByID operation. type PetGetAvatarByIDParams struct { // ID of pet. PetID int64 } +// PetGetAvatarByNameParams is parameters of petGetAvatarByName operation. type PetGetAvatarByNameParams struct { // Name of pet. Name string } +// PetGetByNameParams is parameters of petGetByName operation. type PetGetByNameParams struct { // Name of pet. Name string } +// PetNameByIDParams is parameters of petNameByID operation. type PetNameByIDParams struct { // Pet ID. ID int } +// PetUploadAvatarByIDParams is parameters of petUploadAvatarByID operation. type PetUploadAvatarByIDParams struct { // ID of pet. PetID int64 } +// TestContentParameterParams is parameters of testContentParameter operation. type TestContentParameterParams struct { Param OptTestContentParameterParam } +// TestObjectQueryParameterParams is parameters of testObjectQueryParameter operation. type TestObjectQueryParameterParams struct { FormObject OptTestObjectQueryParameterFormObject DeepObject OptTestObjectQueryParameterDeepObject diff --git a/internal/sample_err/oas_cfg_gen.go b/internal/sample_err/oas_cfg_gen.go index 43cd6eec1..d1c81762b 100644 --- a/internal/sample_err/oas_cfg_gen.go +++ b/internal/sample_err/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -15,6 +16,13 @@ import ( "github.com/ogen-go/ogen/otelogen" ) +var ( + // Allocate option closure once. + clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) + // Allocate option closure once. + serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) +) + // ErrorHandler is error handler. type ErrorHandler = ogenerrors.ErrorHandler @@ -56,6 +64,57 @@ func newConfig(opts ...Option) config { return cfg } +type baseServer struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (s baseServer) notFound(w http.ResponseWriter, r *http.Request) { + s.cfg.NotFound(w, r) +} + +func (s baseServer) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { + s.cfg.MethodNotAllowed(w, r, allowed) +} + +func (cfg config) baseServer() (s baseServer, err error) { + s = baseServer{cfg: cfg} + if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { + return s, err + } + if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { + return s, err + } + if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + return s, err + } + return s, nil +} + +type baseClient struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (cfg config) baseClient() (c baseClient, err error) { + c = baseClient{cfg: cfg} + if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { + return c, err + } + if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { + return c, err + } + if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + return c, err + } + return c, nil +} + +// Option is config option. type Option interface { apply(*config) } diff --git a/internal/sample_err/oas_client_gen.go b/internal/sample_err/oas_client_gen.go index f7419741f..6b1412e23 100644 --- a/internal/sample_err/oas_client_gen.go +++ b/internal/sample_err/oas_client_gen.go @@ -10,7 +10,6 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" - "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -27,16 +26,10 @@ var _ Handler = struct { *Client }{} -// Allocate option closure once. -var clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) - // Client implements OAS client. type Client struct { serverURL *url.URL - cfg config - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + baseClient } // NewClient initializes new Client defined by OAS. @@ -45,20 +38,14 @@ func NewClient(serverURL string, opts ...Option) (*Client, error) { if err != nil { return nil, err } - c := &Client{ - cfg: newConfig(opts...), - serverURL: u, - } - if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { - return nil, err - } - if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { - return nil, err - } - if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + c, err := newConfig(opts...).baseClient() + if err != nil { return nil, err } - return c, nil + return &Client{ + serverURL: u, + baseClient: c, + }, nil } type serverURLKey struct{} diff --git a/internal/sample_err/oas_handlers_gen.go b/internal/sample_err/oas_handlers_gen.go index 76aa4d913..ea192669b 100644 --- a/internal/sample_err/oas_handlers_gen.go +++ b/internal/sample_err/oas_handlers_gen.go @@ -18,11 +18,10 @@ import ( "github.com/ogen-go/ogen/otelogen" ) -// Allocate option closure once. -var serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) - // handleDataCreateRequest handles dataCreate operation. // +// Creates data. +// // POST /data func (s *Server) handleDataCreateRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -128,6 +127,8 @@ func (s *Server) handleDataCreateRequest(args [0]string, w http.ResponseWriter, // handleDataGetRequest handles dataGet operation. // +// Retrieve data. +// // GET /data func (s *Server) handleDataGetRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ diff --git a/internal/sample_err/oas_response_encoders_gen.go b/internal/sample_err/oas_response_encoders_gen.go index 1fc40b757..b0499c2f1 100644 --- a/internal/sample_err/oas_response_encoders_gen.go +++ b/internal/sample_err/oas_response_encoders_gen.go @@ -24,6 +24,7 @@ func encodeDataCreateResponse(response Data, w http.ResponseWriter, span trace.S return nil } + func encodeDataGetResponse(response Data, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -37,6 +38,7 @@ func encodeDataGetResponse(response Data, w http.ResponseWriter, span trace.Span return nil } + func encodeErrorResponse(response ErrorStatusCode, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") code := response.StatusCode diff --git a/internal/sample_err/oas_router_gen.go b/internal/sample_err/oas_router_gen.go index 4ece73921..103230503 100644 --- a/internal/sample_err/oas_router_gen.go +++ b/internal/sample_err/oas_router_gen.go @@ -7,14 +7,6 @@ import ( "strings" ) -func (s *Server) notFound(w http.ResponseWriter, r *http.Request) { - s.cfg.NotFound(w, r) -} - -func (s *Server) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { - s.cfg.MethodNotAllowed(w, r, allowed) -} - // ServeHTTP serves http request as defined by OpenAPI v3 specification, // calling handler that matches the path or returning not found error. func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { diff --git a/internal/sample_err/oas_server_gen.go b/internal/sample_err/oas_server_gen.go index f1b4b744f..c3becb2ac 100644 --- a/internal/sample_err/oas_server_gen.go +++ b/internal/sample_err/oas_server_gen.go @@ -4,10 +4,6 @@ package api import ( "context" - - "go.opentelemetry.io/otel/metric/instrument/syncint64" - - "github.com/ogen-go/ogen/otelogen" ) // Handler handles operations described by OpenAPI v3 specification. @@ -33,29 +29,18 @@ type Handler interface { // Server implements http server based on OpenAPI v3 specification and // calls Handler to handle requests. type Server struct { - h Handler - cfg config - - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + h Handler + baseServer } // NewServer creates new Server. func NewServer(h Handler, opts ...Option) (*Server, error) { - s := &Server{ - h: h, - cfg: newConfig(opts...), - } - var err error - if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { - return nil, err - } - if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { - return nil, err - } - if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + s, err := newConfig(opts...).baseServer() + if err != nil { return nil, err } - return s, nil + return &Server{ + h: h, + baseServer: s, + }, nil } diff --git a/internal/sample_err/oas_unimplemented_gen.go b/internal/sample_err/oas_unimplemented_gen.go index 420f42842..a4d733234 100644 --- a/internal/sample_err/oas_unimplemented_gen.go +++ b/internal/sample_err/oas_unimplemented_gen.go @@ -8,11 +8,11 @@ import ( ht "github.com/ogen-go/ogen/http" ) -var _ Handler = UnimplementedHandler{} - // UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented. type UnimplementedHandler struct{} +var _ Handler = UnimplementedHandler{} + // DataCreate implements dataCreate operation. // // Creates data. diff --git a/internal/techempower/oas_cfg_gen.go b/internal/techempower/oas_cfg_gen.go index a112c7519..cbcb4ccf6 100644 --- a/internal/techempower/oas_cfg_gen.go +++ b/internal/techempower/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -15,6 +16,13 @@ import ( "github.com/ogen-go/ogen/otelogen" ) +var ( + // Allocate option closure once. + clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) + // Allocate option closure once. + serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) +) + // ErrorHandler is error handler. type ErrorHandler = ogenerrors.ErrorHandler @@ -56,6 +64,57 @@ func newConfig(opts ...Option) config { return cfg } +type baseServer struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (s baseServer) notFound(w http.ResponseWriter, r *http.Request) { + s.cfg.NotFound(w, r) +} + +func (s baseServer) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { + s.cfg.MethodNotAllowed(w, r, allowed) +} + +func (cfg config) baseServer() (s baseServer, err error) { + s = baseServer{cfg: cfg} + if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { + return s, err + } + if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { + return s, err + } + if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + return s, err + } + return s, nil +} + +type baseClient struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (cfg config) baseClient() (c baseClient, err error) { + c = baseClient{cfg: cfg} + if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { + return c, err + } + if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { + return c, err + } + if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + return c, err + } + return c, nil +} + +// Option is config option. type Option interface { apply(*config) } diff --git a/internal/techempower/oas_client_gen.go b/internal/techempower/oas_client_gen.go index 3a3bbeb50..6cabe7b5e 100644 --- a/internal/techempower/oas_client_gen.go +++ b/internal/techempower/oas_client_gen.go @@ -10,7 +10,6 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" - "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/conv" @@ -23,16 +22,10 @@ var _ Handler = struct { *Client }{} -// Allocate option closure once. -var clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) - // Client implements OAS client. type Client struct { serverURL *url.URL - cfg config - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + baseClient } // NewClient initializes new Client defined by OAS. @@ -41,20 +34,14 @@ func NewClient(serverURL string, opts ...Option) (*Client, error) { if err != nil { return nil, err } - c := &Client{ - cfg: newConfig(opts...), - serverURL: u, - } - if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { - return nil, err - } - if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { - return nil, err - } - if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + c, err := newConfig(opts...).baseClient() + if err != nil { return nil, err } - return c, nil + return &Client{ + serverURL: u, + baseClient: c, + }, nil } type serverURLKey struct{} diff --git a/internal/techempower/oas_handlers_gen.go b/internal/techempower/oas_handlers_gen.go index be6088216..2b9978048 100644 --- a/internal/techempower/oas_handlers_gen.go +++ b/internal/techempower/oas_handlers_gen.go @@ -16,11 +16,15 @@ import ( "github.com/ogen-go/ogen/otelogen" ) -// Allocate option closure once. -var serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) - // handleCachingRequest handles Caching operation. // +// Test #7. The Caching test exercises the preferred in-memory or separate-process caching technology +// for the platform or framework. For implementation simplicity, the requirements are very similar to +// the multiple database-query test Test #3, but use a separate database table. The requirements are +// quite generous, affording each framework fairly broad freedom to meet the requirements in the +// manner that best represents the canonical non-distributed caching approach for the framework. +// (Note: a distributed caching test type could be added later.). +// // GET /cached-worlds func (s *Server) handleCachingRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -115,6 +119,9 @@ func (s *Server) handleCachingRequest(args [0]string, w http.ResponseWriter, r * // handleDBRequest handles DB operation. // +// Test #2. The Single Database Query test exercises the framework's object-relational mapper (ORM), +// random number generator, database driver, and database connection pool. +// // GET /db func (s *Server) handleDBRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -193,6 +200,10 @@ func (s *Server) handleDBRequest(args [0]string, w http.ResponseWriter, r *http. // handleJSONRequest handles json operation. // +// Test #1. The JSON Serialization test exercises the framework fundamentals including keep-alive +// support, request routing, request header parsing, object instantiation, JSON serialization, +// response header generation, and request count throughput. +// // GET /json func (s *Server) handleJSONRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -271,6 +282,11 @@ func (s *Server) handleJSONRequest(args [0]string, w http.ResponseWriter, r *htt // handleQueriesRequest handles Queries operation. // +// Test #3. The Multiple Database Queries test is a variation of Test #2 and also uses the World +// table. Multiple rows are fetched to more dramatically punish the database driver and connection +// pool. At the highest queries-per-request tested (20), this test demonstrates all frameworks' +// convergence toward zero requests-per-second as database activity increases. +// // GET /queries func (s *Server) handleQueriesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -365,6 +381,10 @@ func (s *Server) handleQueriesRequest(args [0]string, w http.ResponseWriter, r * // handleUpdatesRequest handles Updates operation. // +// Test #5. The Database Updates test is a variation of Test #3 that exercises the ORM's persistence +// of objects and the database driver's performance at running UPDATE statements or similar. The +// spirit of this test is to exercise a variable number of read-then-write style database operations. +// // GET /updates func (s *Server) handleUpdatesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ diff --git a/internal/techempower/oas_parameters_gen.go b/internal/techempower/oas_parameters_gen.go index 1166b7b21..7991e6b31 100644 --- a/internal/techempower/oas_parameters_gen.go +++ b/internal/techempower/oas_parameters_gen.go @@ -11,6 +11,7 @@ import ( "github.com/ogen-go/ogen/uri" ) +// CachingParams is parameters of Caching operation. type CachingParams struct { Count int64 } @@ -54,6 +55,7 @@ func decodeCachingParams(args [0]string, r *http.Request) (params CachingParams, return params, nil } +// QueriesParams is parameters of Queries operation. type QueriesParams struct { Queries int64 } @@ -97,6 +99,7 @@ func decodeQueriesParams(args [0]string, r *http.Request) (params QueriesParams, return params, nil } +// UpdatesParams is parameters of Updates operation. type UpdatesParams struct { Queries int64 } diff --git a/internal/techempower/oas_response_encoders_gen.go b/internal/techempower/oas_response_encoders_gen.go index 59d4fff6e..2ddfd7a1a 100644 --- a/internal/techempower/oas_response_encoders_gen.go +++ b/internal/techempower/oas_response_encoders_gen.go @@ -24,6 +24,7 @@ func encodeCachingResponse(response WorldObjects, w http.ResponseWriter, span tr return nil } + func encodeDBResponse(response WorldObject, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -37,6 +38,7 @@ func encodeDBResponse(response WorldObject, w http.ResponseWriter, span trace.Sp return nil } + func encodeJSONResponse(response HelloWorld, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -50,6 +52,7 @@ func encodeJSONResponse(response HelloWorld, w http.ResponseWriter, span trace.S return nil } + func encodeQueriesResponse(response WorldObjects, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -63,6 +66,7 @@ func encodeQueriesResponse(response WorldObjects, w http.ResponseWriter, span tr return nil } + func encodeUpdatesResponse(response WorldObjects, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) diff --git a/internal/techempower/oas_router_gen.go b/internal/techempower/oas_router_gen.go index 31706ffa2..9a1b8e8c1 100644 --- a/internal/techempower/oas_router_gen.go +++ b/internal/techempower/oas_router_gen.go @@ -7,14 +7,6 @@ import ( "strings" ) -func (s *Server) notFound(w http.ResponseWriter, r *http.Request) { - s.cfg.NotFound(w, r) -} - -func (s *Server) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { - s.cfg.MethodNotAllowed(w, r, allowed) -} - // ServeHTTP serves http request as defined by OpenAPI v3 specification, // calling handler that matches the path or returning not found error. func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { diff --git a/internal/techempower/oas_server_gen.go b/internal/techempower/oas_server_gen.go index 9f1bab3ba..ba445d333 100644 --- a/internal/techempower/oas_server_gen.go +++ b/internal/techempower/oas_server_gen.go @@ -4,10 +4,6 @@ package techempower import ( "context" - - "go.opentelemetry.io/otel/metric/instrument/syncint64" - - "github.com/ogen-go/ogen/otelogen" ) // Handler handles operations described by OpenAPI v3 specification. @@ -60,29 +56,18 @@ type Handler interface { // Server implements http server based on OpenAPI v3 specification and // calls Handler to handle requests. type Server struct { - h Handler - cfg config - - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + h Handler + baseServer } // NewServer creates new Server. func NewServer(h Handler, opts ...Option) (*Server, error) { - s := &Server{ - h: h, - cfg: newConfig(opts...), - } - var err error - if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { - return nil, err - } - if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { - return nil, err - } - if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + s, err := newConfig(opts...).baseServer() + if err != nil { return nil, err } - return s, nil + return &Server{ + h: h, + baseServer: s, + }, nil } diff --git a/internal/techempower/oas_unimplemented_gen.go b/internal/techempower/oas_unimplemented_gen.go index 9c2dec268..ca8746af5 100644 --- a/internal/techempower/oas_unimplemented_gen.go +++ b/internal/techempower/oas_unimplemented_gen.go @@ -8,11 +8,11 @@ import ( ht "github.com/ogen-go/ogen/http" ) -var _ Handler = UnimplementedHandler{} - // UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented. type UnimplementedHandler struct{} +var _ Handler = UnimplementedHandler{} + // Caching implements Caching operation. // // Test #7. The Caching test exercises the preferred in-memory or separate-process caching technology diff --git a/internal/test_allof/oas_cfg_gen.go b/internal/test_allof/oas_cfg_gen.go index d07615fdd..2e2dadc6f 100644 --- a/internal/test_allof/oas_cfg_gen.go +++ b/internal/test_allof/oas_cfg_gen.go @@ -8,6 +8,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -19,6 +20,12 @@ import ( var regexMap = map[string]*regexp.Regexp{ "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$": regexp.MustCompile("^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$"), } +var ( + // Allocate option closure once. + clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) + // Allocate option closure once. + serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) +) // ErrorHandler is error handler. type ErrorHandler = ogenerrors.ErrorHandler @@ -61,6 +68,57 @@ func newConfig(opts ...Option) config { return cfg } +type baseServer struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (s baseServer) notFound(w http.ResponseWriter, r *http.Request) { + s.cfg.NotFound(w, r) +} + +func (s baseServer) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { + s.cfg.MethodNotAllowed(w, r, allowed) +} + +func (cfg config) baseServer() (s baseServer, err error) { + s = baseServer{cfg: cfg} + if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { + return s, err + } + if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { + return s, err + } + if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + return s, err + } + return s, nil +} + +type baseClient struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (cfg config) baseClient() (c baseClient, err error) { + c = baseClient{cfg: cfg} + if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { + return c, err + } + if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { + return c, err + } + if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + return c, err + } + return c, nil +} + +// Option is config option. type Option interface { apply(*config) } diff --git a/internal/test_allof/oas_client_gen.go b/internal/test_allof/oas_client_gen.go index 8c8cc460e..b44b6c36e 100644 --- a/internal/test_allof/oas_client_gen.go +++ b/internal/test_allof/oas_client_gen.go @@ -10,7 +10,6 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" - "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -23,16 +22,10 @@ var _ Handler = struct { *Client }{} -// Allocate option closure once. -var clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) - // Client implements OAS client. type Client struct { serverURL *url.URL - cfg config - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + baseClient } // NewClient initializes new Client defined by OAS. @@ -41,20 +34,14 @@ func NewClient(serverURL string, opts ...Option) (*Client, error) { if err != nil { return nil, err } - c := &Client{ - cfg: newConfig(opts...), - serverURL: u, - } - if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { - return nil, err - } - if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { - return nil, err - } - if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + c, err := newConfig(opts...).baseClient() + if err != nil { return nil, err } - return c, nil + return &Client{ + serverURL: u, + baseClient: c, + }, nil } type serverURLKey struct{} diff --git a/internal/test_allof/oas_handlers_gen.go b/internal/test_allof/oas_handlers_gen.go index d7e3b8c64..7ab06458e 100644 --- a/internal/test_allof/oas_handlers_gen.go +++ b/internal/test_allof/oas_handlers_gen.go @@ -16,11 +16,10 @@ import ( "github.com/ogen-go/ogen/otelogen" ) -// Allocate option closure once. -var serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) - // handleNullableStringsRequest handles nullableStrings operation. // +// Nullable strings. +// // POST /nullableStrings func (s *Server) handleNullableStringsRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -118,6 +117,8 @@ func (s *Server) handleNullableStringsRequest(args [0]string, w http.ResponseWri // handleObjectsWithConflictingArrayPropertyRequest handles objectsWithConflictingArrayProperty operation. // +// Objects with conflicting array property. +// // POST /objectsWithConflictingArrayProperty func (s *Server) handleObjectsWithConflictingArrayPropertyRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -215,6 +216,8 @@ func (s *Server) handleObjectsWithConflictingArrayPropertyRequest(args [0]string // handleObjectsWithConflictingPropertiesRequest handles objectsWithConflictingProperties operation. // +// Objects with conflicting properties. +// // POST /objectsWithConflictingProperties func (s *Server) handleObjectsWithConflictingPropertiesRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -312,6 +315,8 @@ func (s *Server) handleObjectsWithConflictingPropertiesRequest(args [0]string, w // handleReferencedAllofRequest handles referencedAllof operation. // +// Referenced allOf. +// // POST /referencedAllof func (s *Server) handleReferencedAllofRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -409,6 +414,8 @@ func (s *Server) handleReferencedAllofRequest(args [0]string, w http.ResponseWri // handleReferencedAllofOptionalRequest handles referencedAllofOptional operation. // +// Referenced allOf, but requestBody is not required. +// // POST /referencedAllofOptional func (s *Server) handleReferencedAllofOptionalRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -506,6 +513,8 @@ func (s *Server) handleReferencedAllofOptionalRequest(args [0]string, w http.Res // handleSimpleIntegerRequest handles simpleInteger operation. // +// Simple integers with validation. +// // POST /simpleInteger func (s *Server) handleSimpleIntegerRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ @@ -603,6 +612,8 @@ func (s *Server) handleSimpleIntegerRequest(args [0]string, w http.ResponseWrite // handleSimpleObjectsRequest handles simpleObjects operation. // +// Simple objects. +// // POST /simpleObjects func (s *Server) handleSimpleObjectsRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ diff --git a/internal/test_allof/oas_request_encoders_gen.go b/internal/test_allof/oas_request_encoders_gen.go index a8d954495..20ddd19d1 100644 --- a/internal/test_allof/oas_request_encoders_gen.go +++ b/internal/test_allof/oas_request_encoders_gen.go @@ -29,6 +29,7 @@ func encodeNullableStringsRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeObjectsWithConflictingArrayPropertyRequest( req ObjectsWithConflictingArrayPropertyReq, r *http.Request, @@ -42,6 +43,7 @@ func encodeObjectsWithConflictingArrayPropertyRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeObjectsWithConflictingPropertiesRequest( req ObjectsWithConflictingPropertiesReq, r *http.Request, @@ -55,6 +57,7 @@ func encodeObjectsWithConflictingPropertiesRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeReferencedAllofRequest( req ReferencedAllofReq, r *http.Request, @@ -125,6 +128,7 @@ func encodeReferencedAllofRequest( return errors.Errorf("unexpected request type: %T", req) } } + func encodeReferencedAllofOptionalRequest( req ReferencedAllofOptionalReq, r *http.Request, @@ -198,6 +202,7 @@ func encodeReferencedAllofOptionalRequest( return errors.Errorf("unexpected request type: %T", req) } } + func encodeSimpleIntegerRequest( req int, r *http.Request, @@ -211,6 +216,7 @@ func encodeSimpleIntegerRequest( ht.SetBody(r, bytes.NewReader(encoded), contentType) return nil } + func encodeSimpleObjectsRequest( req SimpleObjectsReq, r *http.Request, diff --git a/internal/test_allof/oas_response_encoders_gen.go b/internal/test_allof/oas_response_encoders_gen.go index bcc0faff9..76dece58d 100644 --- a/internal/test_allof/oas_response_encoders_gen.go +++ b/internal/test_allof/oas_response_encoders_gen.go @@ -15,36 +15,42 @@ func encodeNullableStringsResponse(response NullableStringsOK, w http.ResponseWr return nil } + func encodeObjectsWithConflictingArrayPropertyResponse(response ObjectsWithConflictingArrayPropertyOK, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) return nil } + func encodeObjectsWithConflictingPropertiesResponse(response ObjectsWithConflictingPropertiesOK, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) return nil } + func encodeReferencedAllofResponse(response ReferencedAllofOK, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) return nil } + func encodeReferencedAllofOptionalResponse(response ReferencedAllofOptionalOK, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) return nil } + func encodeSimpleIntegerResponse(response SimpleIntegerOK, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) return nil } + func encodeSimpleObjectsResponse(response SimpleObjectsOK, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) diff --git a/internal/test_allof/oas_router_gen.go b/internal/test_allof/oas_router_gen.go index 8222c591e..5bfba94e3 100644 --- a/internal/test_allof/oas_router_gen.go +++ b/internal/test_allof/oas_router_gen.go @@ -7,14 +7,6 @@ import ( "strings" ) -func (s *Server) notFound(w http.ResponseWriter, r *http.Request) { - s.cfg.NotFound(w, r) -} - -func (s *Server) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { - s.cfg.MethodNotAllowed(w, r, allowed) -} - // ServeHTTP serves http request as defined by OpenAPI v3 specification, // calling handler that matches the path or returning not found error. func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { diff --git a/internal/test_allof/oas_server_gen.go b/internal/test_allof/oas_server_gen.go index 1dda1b94d..774ad44c1 100644 --- a/internal/test_allof/oas_server_gen.go +++ b/internal/test_allof/oas_server_gen.go @@ -4,10 +4,6 @@ package api import ( "context" - - "go.opentelemetry.io/otel/metric/instrument/syncint64" - - "github.com/ogen-go/ogen/otelogen" ) // Handler handles operations described by OpenAPI v3 specification. @@ -59,29 +55,18 @@ type Handler interface { // Server implements http server based on OpenAPI v3 specification and // calls Handler to handle requests. type Server struct { - h Handler - cfg config - - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + h Handler + baseServer } // NewServer creates new Server. func NewServer(h Handler, opts ...Option) (*Server, error) { - s := &Server{ - h: h, - cfg: newConfig(opts...), - } - var err error - if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { - return nil, err - } - if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { - return nil, err - } - if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + s, err := newConfig(opts...).baseServer() + if err != nil { return nil, err } - return s, nil + return &Server{ + h: h, + baseServer: s, + }, nil } diff --git a/internal/test_allof/oas_unimplemented_gen.go b/internal/test_allof/oas_unimplemented_gen.go index a9274a6fd..e836fd550 100644 --- a/internal/test_allof/oas_unimplemented_gen.go +++ b/internal/test_allof/oas_unimplemented_gen.go @@ -8,11 +8,11 @@ import ( ht "github.com/ogen-go/ogen/http" ) -var _ Handler = UnimplementedHandler{} - // UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented. type UnimplementedHandler struct{} +var _ Handler = UnimplementedHandler{} + // NullableStrings implements nullableStrings operation. // // Nullable strings. diff --git a/internal/test_form/oas_cfg_gen.go b/internal/test_form/oas_cfg_gen.go index 43cd6eec1..d1c81762b 100644 --- a/internal/test_form/oas_cfg_gen.go +++ b/internal/test_form/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -15,6 +16,13 @@ import ( "github.com/ogen-go/ogen/otelogen" ) +var ( + // Allocate option closure once. + clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) + // Allocate option closure once. + serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) +) + // ErrorHandler is error handler. type ErrorHandler = ogenerrors.ErrorHandler @@ -56,6 +64,57 @@ func newConfig(opts ...Option) config { return cfg } +type baseServer struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (s baseServer) notFound(w http.ResponseWriter, r *http.Request) { + s.cfg.NotFound(w, r) +} + +func (s baseServer) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { + s.cfg.MethodNotAllowed(w, r, allowed) +} + +func (cfg config) baseServer() (s baseServer, err error) { + s = baseServer{cfg: cfg} + if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { + return s, err + } + if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { + return s, err + } + if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + return s, err + } + return s, nil +} + +type baseClient struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (cfg config) baseClient() (c baseClient, err error) { + c = baseClient{cfg: cfg} + if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { + return c, err + } + if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { + return c, err + } + if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + return c, err + } + return c, nil +} + +// Option is config option. type Option interface { apply(*config) } diff --git a/internal/test_form/oas_client_gen.go b/internal/test_form/oas_client_gen.go index e8dc232e8..22930be27 100644 --- a/internal/test_form/oas_client_gen.go +++ b/internal/test_form/oas_client_gen.go @@ -10,7 +10,6 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" - "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -22,16 +21,10 @@ var _ Handler = struct { *Client }{} -// Allocate option closure once. -var clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) - // Client implements OAS client. type Client struct { serverURL *url.URL - cfg config - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + baseClient } // NewClient initializes new Client defined by OAS. @@ -40,20 +33,14 @@ func NewClient(serverURL string, opts ...Option) (*Client, error) { if err != nil { return nil, err } - c := &Client{ - cfg: newConfig(opts...), - serverURL: u, - } - if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { - return nil, err - } - if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { - return nil, err - } - if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + c, err := newConfig(opts...).baseClient() + if err != nil { return nil, err } - return c, nil + return &Client{ + serverURL: u, + baseClient: c, + }, nil } type serverURLKey struct{} diff --git a/internal/test_form/oas_handlers_gen.go b/internal/test_form/oas_handlers_gen.go index 65c7c18ef..252ae6c39 100644 --- a/internal/test_form/oas_handlers_gen.go +++ b/internal/test_form/oas_handlers_gen.go @@ -16,9 +16,6 @@ import ( "github.com/ogen-go/ogen/otelogen" ) -// Allocate option closure once. -var serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) - // handleTestFormURLEncodedRequest handles testFormURLEncoded operation. // // POST /testFormURLEncoded diff --git a/internal/test_form/oas_request_encoders_gen.go b/internal/test_form/oas_request_encoders_gen.go index 3a37790fe..1d7c13bee 100644 --- a/internal/test_form/oas_request_encoders_gen.go +++ b/internal/test_form/oas_request_encoders_gen.go @@ -128,6 +128,7 @@ func encodeTestFormURLEncodedRequest( ht.SetBody(r, strings.NewReader(encoded), contentType) return nil } + func encodeTestMultipartRequest( req TestForm, r *http.Request, @@ -244,6 +245,7 @@ func encodeTestMultipartRequest( ht.SetBody(r, body, mime.FormatMediaType(contentType, map[string]string{"boundary": boundary})) return nil } + func encodeTestMultipartUploadRequest( req TestMultipartUploadReqForm, r *http.Request, @@ -311,6 +313,7 @@ func encodeTestMultipartUploadRequest( ht.SetBody(r, body, mime.FormatMediaType(contentType, map[string]string{"boundary": boundary})) return nil } + func encodeTestShareFormSchemaRequest( req TestShareFormSchemaReq, r *http.Request, diff --git a/internal/test_form/oas_response_encoders_gen.go b/internal/test_form/oas_response_encoders_gen.go index 2fdb568aa..2543694f0 100644 --- a/internal/test_form/oas_response_encoders_gen.go +++ b/internal/test_form/oas_response_encoders_gen.go @@ -17,12 +17,14 @@ func encodeTestFormURLEncodedResponse(response TestFormURLEncodedOK, w http.Resp return nil } + func encodeTestMultipartResponse(response TestMultipartOK, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) return nil } + func encodeTestMultipartUploadResponse(response TestMultipartUploadOK, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -36,6 +38,7 @@ func encodeTestMultipartUploadResponse(response TestMultipartUploadOK, w http.Re return nil } + func encodeTestShareFormSchemaResponse(response TestShareFormSchemaOK, w http.ResponseWriter, span trace.Span) error { w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) diff --git a/internal/test_form/oas_router_gen.go b/internal/test_form/oas_router_gen.go index 6eda6ae81..bae7d622e 100644 --- a/internal/test_form/oas_router_gen.go +++ b/internal/test_form/oas_router_gen.go @@ -7,14 +7,6 @@ import ( "strings" ) -func (s *Server) notFound(w http.ResponseWriter, r *http.Request) { - s.cfg.NotFound(w, r) -} - -func (s *Server) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { - s.cfg.MethodNotAllowed(w, r, allowed) -} - // ServeHTTP serves http request as defined by OpenAPI v3 specification, // calling handler that matches the path or returning not found error. func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { diff --git a/internal/test_form/oas_server_gen.go b/internal/test_form/oas_server_gen.go index 348b0b7ba..ad63890cb 100644 --- a/internal/test_form/oas_server_gen.go +++ b/internal/test_form/oas_server_gen.go @@ -4,10 +4,6 @@ package api import ( "context" - - "go.opentelemetry.io/otel/metric/instrument/syncint64" - - "github.com/ogen-go/ogen/otelogen" ) // Handler handles operations described by OpenAPI v3 specification. @@ -33,29 +29,18 @@ type Handler interface { // Server implements http server based on OpenAPI v3 specification and // calls Handler to handle requests. type Server struct { - h Handler - cfg config - - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + h Handler + baseServer } // NewServer creates new Server. func NewServer(h Handler, opts ...Option) (*Server, error) { - s := &Server{ - h: h, - cfg: newConfig(opts...), - } - var err error - if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { - return nil, err - } - if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { - return nil, err - } - if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + s, err := newConfig(opts...).baseServer() + if err != nil { return nil, err } - return s, nil + return &Server{ + h: h, + baseServer: s, + }, nil } diff --git a/internal/test_form/oas_unimplemented_gen.go b/internal/test_form/oas_unimplemented_gen.go index a0b0b1474..f537cd2dc 100644 --- a/internal/test_form/oas_unimplemented_gen.go +++ b/internal/test_form/oas_unimplemented_gen.go @@ -8,11 +8,11 @@ import ( ht "github.com/ogen-go/ogen/http" ) -var _ Handler = UnimplementedHandler{} - // UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented. type UnimplementedHandler struct{} +var _ Handler = UnimplementedHandler{} + // TestFormURLEncoded implements testFormURLEncoded operation. // // POST /testFormURLEncoded diff --git a/internal/test_http_requests/oas_cfg_gen.go b/internal/test_http_requests/oas_cfg_gen.go index 43cd6eec1..d1c81762b 100644 --- a/internal/test_http_requests/oas_cfg_gen.go +++ b/internal/test_http_requests/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -15,6 +16,13 @@ import ( "github.com/ogen-go/ogen/otelogen" ) +var ( + // Allocate option closure once. + clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) + // Allocate option closure once. + serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) +) + // ErrorHandler is error handler. type ErrorHandler = ogenerrors.ErrorHandler @@ -56,6 +64,57 @@ func newConfig(opts ...Option) config { return cfg } +type baseServer struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (s baseServer) notFound(w http.ResponseWriter, r *http.Request) { + s.cfg.NotFound(w, r) +} + +func (s baseServer) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { + s.cfg.MethodNotAllowed(w, r, allowed) +} + +func (cfg config) baseServer() (s baseServer, err error) { + s = baseServer{cfg: cfg} + if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { + return s, err + } + if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { + return s, err + } + if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + return s, err + } + return s, nil +} + +type baseClient struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (cfg config) baseClient() (c baseClient, err error) { + c = baseClient{cfg: cfg} + if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { + return c, err + } + if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { + return c, err + } + if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + return c, err + } + return c, nil +} + +// Option is config option. type Option interface { apply(*config) } diff --git a/internal/test_http_requests/oas_client_gen.go b/internal/test_http_requests/oas_client_gen.go index 6b70e4ebb..35f209b84 100644 --- a/internal/test_http_requests/oas_client_gen.go +++ b/internal/test_http_requests/oas_client_gen.go @@ -10,7 +10,6 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" - "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -22,16 +21,10 @@ var _ Handler = struct { *Client }{} -// Allocate option closure once. -var clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) - // Client implements OAS client. type Client struct { serverURL *url.URL - cfg config - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + baseClient } // NewClient initializes new Client defined by OAS. @@ -40,20 +33,14 @@ func NewClient(serverURL string, opts ...Option) (*Client, error) { if err != nil { return nil, err } - c := &Client{ - cfg: newConfig(opts...), - serverURL: u, - } - if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { - return nil, err - } - if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { - return nil, err - } - if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + c, err := newConfig(opts...).baseClient() + if err != nil { return nil, err } - return c, nil + return &Client{ + serverURL: u, + baseClient: c, + }, nil } type serverURLKey struct{} diff --git a/internal/test_http_requests/oas_handlers_gen.go b/internal/test_http_requests/oas_handlers_gen.go index 8eb1522c5..674ffd418 100644 --- a/internal/test_http_requests/oas_handlers_gen.go +++ b/internal/test_http_requests/oas_handlers_gen.go @@ -16,9 +16,6 @@ import ( "github.com/ogen-go/ogen/otelogen" ) -// Allocate option closure once. -var serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) - // handleAllRequestBodiesRequest handles allRequestBodies operation. // // POST /allRequestBodies diff --git a/internal/test_http_requests/oas_request_encoders_gen.go b/internal/test_http_requests/oas_request_encoders_gen.go index d5ebfba6a..789e16ed2 100644 --- a/internal/test_http_requests/oas_request_encoders_gen.go +++ b/internal/test_http_requests/oas_request_encoders_gen.go @@ -122,6 +122,7 @@ func encodeAllRequestBodiesRequest( return errors.Errorf("unexpected request type: %T", req) } } + func encodeAllRequestBodiesOptionalRequest( req AllRequestBodiesOptionalReq, r *http.Request, @@ -230,6 +231,7 @@ func encodeAllRequestBodiesOptionalRequest( return errors.Errorf("unexpected request type: %T", req) } } + func encodeMaskContentTypeRequest( req MaskContentTypeReqWithContentType, r *http.Request, @@ -244,6 +246,7 @@ func encodeMaskContentTypeRequest( return nil } } + func encodeMaskContentTypeOptionalRequest( req MaskContentTypeOptionalReqWithContentType, r *http.Request, diff --git a/internal/test_http_requests/oas_response_encoders_gen.go b/internal/test_http_requests/oas_response_encoders_gen.go index 63f91d71a..1eef59f11 100644 --- a/internal/test_http_requests/oas_response_encoders_gen.go +++ b/internal/test_http_requests/oas_response_encoders_gen.go @@ -22,6 +22,7 @@ func encodeAllRequestBodiesResponse(response AllRequestBodiesOK, w http.Response return nil } + func encodeAllRequestBodiesOptionalResponse(response AllRequestBodiesOptionalOK, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/octet-stream") w.WriteHeader(200) @@ -32,6 +33,7 @@ func encodeAllRequestBodiesOptionalResponse(response AllRequestBodiesOptionalOK, return nil } + func encodeMaskContentTypeResponse(response MaskResponse, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) @@ -45,6 +47,7 @@ func encodeMaskContentTypeResponse(response MaskResponse, w http.ResponseWriter, return nil } + func encodeMaskContentTypeOptionalResponse(response MaskResponse, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) diff --git a/internal/test_http_requests/oas_router_gen.go b/internal/test_http_requests/oas_router_gen.go index 2703ac3c8..99f4b2729 100644 --- a/internal/test_http_requests/oas_router_gen.go +++ b/internal/test_http_requests/oas_router_gen.go @@ -7,14 +7,6 @@ import ( "strings" ) -func (s *Server) notFound(w http.ResponseWriter, r *http.Request) { - s.cfg.NotFound(w, r) -} - -func (s *Server) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { - s.cfg.MethodNotAllowed(w, r, allowed) -} - // ServeHTTP serves http request as defined by OpenAPI v3 specification, // calling handler that matches the path or returning not found error. func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { diff --git a/internal/test_http_requests/oas_server_gen.go b/internal/test_http_requests/oas_server_gen.go index 78ff3c9b7..73e618113 100644 --- a/internal/test_http_requests/oas_server_gen.go +++ b/internal/test_http_requests/oas_server_gen.go @@ -4,10 +4,6 @@ package api import ( "context" - - "go.opentelemetry.io/otel/metric/instrument/syncint64" - - "github.com/ogen-go/ogen/otelogen" ) // Handler handles operations described by OpenAPI v3 specification. @@ -33,29 +29,18 @@ type Handler interface { // Server implements http server based on OpenAPI v3 specification and // calls Handler to handle requests. type Server struct { - h Handler - cfg config - - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + h Handler + baseServer } // NewServer creates new Server. func NewServer(h Handler, opts ...Option) (*Server, error) { - s := &Server{ - h: h, - cfg: newConfig(opts...), - } - var err error - if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { - return nil, err - } - if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { - return nil, err - } - if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + s, err := newConfig(opts...).baseServer() + if err != nil { return nil, err } - return s, nil + return &Server{ + h: h, + baseServer: s, + }, nil } diff --git a/internal/test_http_requests/oas_unimplemented_gen.go b/internal/test_http_requests/oas_unimplemented_gen.go index 403226347..cdf176575 100644 --- a/internal/test_http_requests/oas_unimplemented_gen.go +++ b/internal/test_http_requests/oas_unimplemented_gen.go @@ -8,11 +8,11 @@ import ( ht "github.com/ogen-go/ogen/http" ) -var _ Handler = UnimplementedHandler{} - // UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented. type UnimplementedHandler struct{} +var _ Handler = UnimplementedHandler{} + // AllRequestBodies implements allRequestBodies operation. // // POST /allRequestBodies diff --git a/internal/test_http_responses/oas_cfg_gen.go b/internal/test_http_responses/oas_cfg_gen.go index 43cd6eec1..d1c81762b 100644 --- a/internal/test_http_responses/oas_cfg_gen.go +++ b/internal/test_http_responses/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -15,6 +16,13 @@ import ( "github.com/ogen-go/ogen/otelogen" ) +var ( + // Allocate option closure once. + clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) + // Allocate option closure once. + serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) +) + // ErrorHandler is error handler. type ErrorHandler = ogenerrors.ErrorHandler @@ -56,6 +64,57 @@ func newConfig(opts ...Option) config { return cfg } +type baseServer struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (s baseServer) notFound(w http.ResponseWriter, r *http.Request) { + s.cfg.NotFound(w, r) +} + +func (s baseServer) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { + s.cfg.MethodNotAllowed(w, r, allowed) +} + +func (cfg config) baseServer() (s baseServer, err error) { + s = baseServer{cfg: cfg} + if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { + return s, err + } + if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { + return s, err + } + if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + return s, err + } + return s, nil +} + +type baseClient struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (cfg config) baseClient() (c baseClient, err error) { + c = baseClient{cfg: cfg} + if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { + return c, err + } + if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { + return c, err + } + if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + return c, err + } + return c, nil +} + +// Option is config option. type Option interface { apply(*config) } diff --git a/internal/test_http_responses/oas_client_gen.go b/internal/test_http_responses/oas_client_gen.go index 7cd52b443..3a6d6ee12 100644 --- a/internal/test_http_responses/oas_client_gen.go +++ b/internal/test_http_responses/oas_client_gen.go @@ -10,7 +10,6 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" - "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" "github.com/ogen-go/ogen/conv" @@ -23,16 +22,10 @@ var _ Handler = struct { *Client }{} -// Allocate option closure once. -var clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) - // Client implements OAS client. type Client struct { serverURL *url.URL - cfg config - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + baseClient } // NewClient initializes new Client defined by OAS. @@ -41,20 +34,14 @@ func NewClient(serverURL string, opts ...Option) (*Client, error) { if err != nil { return nil, err } - c := &Client{ - cfg: newConfig(opts...), - serverURL: u, - } - if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { - return nil, err - } - if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { - return nil, err - } - if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + c, err := newConfig(opts...).baseClient() + if err != nil { return nil, err } - return c, nil + return &Client{ + serverURL: u, + baseClient: c, + }, nil } type serverURLKey struct{} diff --git a/internal/test_http_responses/oas_handlers_gen.go b/internal/test_http_responses/oas_handlers_gen.go index dfc470c4b..986ca067d 100644 --- a/internal/test_http_responses/oas_handlers_gen.go +++ b/internal/test_http_responses/oas_handlers_gen.go @@ -16,9 +16,6 @@ import ( "github.com/ogen-go/ogen/otelogen" ) -// Allocate option closure once. -var serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) - // handleAnyContentTypeBinaryStringSchemaRequest handles anyContentTypeBinaryStringSchema operation. // // GET /anyContentTypeBinaryStringSchema @@ -599,6 +596,9 @@ func (s *Server) handleHeadersPatternRequest(args [0]string, w http.ResponseWrit // handleIntersectPatternCodeRequest handles intersectPatternCode operation. // +// If a response is defined using an explicit code, the explicit code definition takes precedence +// over the range definition for that code. +// // GET /intersectPatternCode func (s *Server) handleIntersectPatternCodeRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ diff --git a/internal/test_http_responses/oas_parameters_gen.go b/internal/test_http_responses/oas_parameters_gen.go index 95f321881..e11e93393 100644 --- a/internal/test_http_responses/oas_parameters_gen.go +++ b/internal/test_http_responses/oas_parameters_gen.go @@ -11,6 +11,7 @@ import ( "github.com/ogen-go/ogen/uri" ) +// CombinedParams is parameters of combined operation. type CombinedParams struct { Type CombinedType } @@ -62,6 +63,7 @@ func decodeCombinedParams(args [0]string, r *http.Request) (params CombinedParam return params, nil } +// HeadersCombinedParams is parameters of headersCombined operation. type HeadersCombinedParams struct { Type HeadersCombinedType } @@ -113,6 +115,7 @@ func decodeHeadersCombinedParams(args [0]string, r *http.Request) (params Header return params, nil } +// IntersectPatternCodeParams is parameters of intersectPatternCode operation. type IntersectPatternCodeParams struct { Code int } diff --git a/internal/test_http_responses/oas_response_encoders_gen.go b/internal/test_http_responses/oas_response_encoders_gen.go index a5981b0f1..b7939340f 100644 --- a/internal/test_http_responses/oas_response_encoders_gen.go +++ b/internal/test_http_responses/oas_response_encoders_gen.go @@ -24,6 +24,7 @@ func encodeAnyContentTypeBinaryStringSchemaResponse(response AnyContentTypeBinar return nil } + func encodeAnyContentTypeBinaryStringSchemaDefaultResponse(response AnyContentTypeBinaryStringSchemaDefaultDefStatusCode, w http.ResponseWriter, span trace.Span) error { code := response.StatusCode if code == 0 { @@ -43,6 +44,7 @@ func encodeAnyContentTypeBinaryStringSchemaDefaultResponse(response AnyContentTy return nil } + func encodeCombinedResponse(response CombinedRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *CombinedOK: @@ -131,6 +133,7 @@ func encodeCombinedResponse(response CombinedRes, w http.ResponseWriter, span tr return errors.Errorf("unexpected response type: %T", response) } } + func encodeHeaders200Response(response Headers200OK, w http.ResponseWriter, span trace.Span) error { // Encoding response headers. { @@ -153,6 +156,7 @@ func encodeHeaders200Response(response Headers200OK, w http.ResponseWriter, span return nil } + func encodeHeadersCombinedResponse(response HeadersCombinedRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *HeadersCombinedOK: @@ -242,6 +246,7 @@ func encodeHeadersCombinedResponse(response HeadersCombinedRes, w http.ResponseW return errors.Errorf("unexpected response type: %T", response) } } + func encodeHeadersDefaultResponse(response HeadersDefaultDef, w http.ResponseWriter, span trace.Span) error { // Encoding response headers. { @@ -274,6 +279,7 @@ func encodeHeadersDefaultResponse(response HeadersDefaultDef, w http.ResponseWri return nil } + func encodeHeadersPatternResponse(response HeadersPattern4XX, w http.ResponseWriter, span trace.Span) error { // Encoding response headers. { @@ -306,6 +312,7 @@ func encodeHeadersPatternResponse(response HeadersPattern4XX, w http.ResponseWri return nil } + func encodeIntersectPatternCodeResponse(response IntersectPatternCodeRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *IntersectPatternCodeOKApplicationJSON: @@ -346,6 +353,7 @@ func encodeIntersectPatternCodeResponse(response IntersectPatternCodeRes, w http return errors.Errorf("unexpected response type: %T", response) } } + func encodeMultipleGenericResponsesResponse(response MultipleGenericResponsesRes, w http.ResponseWriter, span trace.Span) error { switch response := response.(type) { case *NilInt: @@ -376,6 +384,7 @@ func encodeMultipleGenericResponsesResponse(response MultipleGenericResponsesRes return errors.Errorf("unexpected response type: %T", response) } } + func encodeOctetStreamBinaryStringSchemaResponse(response OctetStreamBinaryStringSchemaOK, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/octet-stream") w.WriteHeader(200) @@ -386,6 +395,7 @@ func encodeOctetStreamBinaryStringSchemaResponse(response OctetStreamBinaryStrin return nil } + func encodeOctetStreamEmptySchemaResponse(response OctetStreamEmptySchemaOK, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/octet-stream") w.WriteHeader(200) @@ -396,6 +406,7 @@ func encodeOctetStreamEmptySchemaResponse(response OctetStreamEmptySchemaOK, w h return nil } + func encodeTextPlainBinaryStringSchemaResponse(response TextPlainBinaryStringSchemaOK, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "text/plain") w.WriteHeader(200) diff --git a/internal/test_http_responses/oas_router_gen.go b/internal/test_http_responses/oas_router_gen.go index f5dd3a16d..ef4a1837f 100644 --- a/internal/test_http_responses/oas_router_gen.go +++ b/internal/test_http_responses/oas_router_gen.go @@ -7,14 +7,6 @@ import ( "strings" ) -func (s *Server) notFound(w http.ResponseWriter, r *http.Request) { - s.cfg.NotFound(w, r) -} - -func (s *Server) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { - s.cfg.MethodNotAllowed(w, r, allowed) -} - // ServeHTTP serves http request as defined by OpenAPI v3 specification, // calling handler that matches the path or returning not found error. func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { diff --git a/internal/test_http_responses/oas_server_gen.go b/internal/test_http_responses/oas_server_gen.go index 0128d62c9..83f58c3df 100644 --- a/internal/test_http_responses/oas_server_gen.go +++ b/internal/test_http_responses/oas_server_gen.go @@ -4,10 +4,6 @@ package api import ( "context" - - "go.opentelemetry.io/otel/metric/instrument/syncint64" - - "github.com/ogen-go/ogen/otelogen" ) // Handler handles operations described by OpenAPI v3 specification. @@ -68,29 +64,18 @@ type Handler interface { // Server implements http server based on OpenAPI v3 specification and // calls Handler to handle requests. type Server struct { - h Handler - cfg config - - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + h Handler + baseServer } // NewServer creates new Server. func NewServer(h Handler, opts ...Option) (*Server, error) { - s := &Server{ - h: h, - cfg: newConfig(opts...), - } - var err error - if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { - return nil, err - } - if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { - return nil, err - } - if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + s, err := newConfig(opts...).baseServer() + if err != nil { return nil, err } - return s, nil + return &Server{ + h: h, + baseServer: s, + }, nil } diff --git a/internal/test_http_responses/oas_unimplemented_gen.go b/internal/test_http_responses/oas_unimplemented_gen.go index 46824806b..9993c73b1 100644 --- a/internal/test_http_responses/oas_unimplemented_gen.go +++ b/internal/test_http_responses/oas_unimplemented_gen.go @@ -8,11 +8,11 @@ import ( ht "github.com/ogen-go/ogen/http" ) -var _ Handler = UnimplementedHandler{} - // UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented. type UnimplementedHandler struct{} +var _ Handler = UnimplementedHandler{} + // AnyContentTypeBinaryStringSchema implements anyContentTypeBinaryStringSchema operation. // // GET /anyContentTypeBinaryStringSchema diff --git a/internal/test_servers/oas_cfg_gen.go b/internal/test_servers/oas_cfg_gen.go index 43cd6eec1..d1c81762b 100644 --- a/internal/test_servers/oas_cfg_gen.go +++ b/internal/test_servers/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -15,6 +16,13 @@ import ( "github.com/ogen-go/ogen/otelogen" ) +var ( + // Allocate option closure once. + clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) + // Allocate option closure once. + serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) +) + // ErrorHandler is error handler. type ErrorHandler = ogenerrors.ErrorHandler @@ -56,6 +64,57 @@ func newConfig(opts ...Option) config { return cfg } +type baseServer struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (s baseServer) notFound(w http.ResponseWriter, r *http.Request) { + s.cfg.NotFound(w, r) +} + +func (s baseServer) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { + s.cfg.MethodNotAllowed(w, r, allowed) +} + +func (cfg config) baseServer() (s baseServer, err error) { + s = baseServer{cfg: cfg} + if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { + return s, err + } + if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { + return s, err + } + if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + return s, err + } + return s, nil +} + +type baseClient struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (cfg config) baseClient() (c baseClient, err error) { + c = baseClient{cfg: cfg} + if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { + return c, err + } + if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { + return c, err + } + if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + return c, err + } + return c, nil +} + +// Option is config option. type Option interface { apply(*config) } diff --git a/internal/test_servers/oas_client_gen.go b/internal/test_servers/oas_client_gen.go index 7600598a3..d6dd4d757 100644 --- a/internal/test_servers/oas_client_gen.go +++ b/internal/test_servers/oas_client_gen.go @@ -10,7 +10,6 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" - "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -27,16 +26,10 @@ var _ Handler = struct { *Client }{} -// Allocate option closure once. -var clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) - // Client implements OAS client. type Client struct { serverURL *url.URL - cfg config - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + baseClient } // NewClient initializes new Client defined by OAS. @@ -45,20 +38,14 @@ func NewClient(serverURL string, opts ...Option) (*Client, error) { if err != nil { return nil, err } - c := &Client{ - cfg: newConfig(opts...), - serverURL: u, - } - if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { - return nil, err - } - if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { - return nil, err - } - if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + c, err := newConfig(opts...).baseClient() + if err != nil { return nil, err } - return c, nil + return &Client{ + serverURL: u, + baseClient: c, + }, nil } type serverURLKey struct{} diff --git a/internal/test_servers/oas_handlers_gen.go b/internal/test_servers/oas_handlers_gen.go index 626b57461..0c9c120e8 100644 --- a/internal/test_servers/oas_handlers_gen.go +++ b/internal/test_servers/oas_handlers_gen.go @@ -17,11 +17,10 @@ import ( "github.com/ogen-go/ogen/otelogen" ) -// Allocate option closure once. -var serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) - // handleProbeLivenessRequest handles probeLiveness operation. // +// Liveness probe for kubernetes. +// // GET /healthz func (s *Server) handleProbeLivenessRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ diff --git a/internal/test_servers/oas_response_encoders_gen.go b/internal/test_servers/oas_response_encoders_gen.go index 6bbbcbd4e..19808459d 100644 --- a/internal/test_servers/oas_response_encoders_gen.go +++ b/internal/test_servers/oas_response_encoders_gen.go @@ -24,6 +24,7 @@ func encodeProbeLivenessResponse(response string, w http.ResponseWriter, span tr return nil } + func encodeErrorResponse(response ErrorStatusCode, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") code := response.StatusCode diff --git a/internal/test_servers/oas_router_gen.go b/internal/test_servers/oas_router_gen.go index 5a990ebf6..4f3452c76 100644 --- a/internal/test_servers/oas_router_gen.go +++ b/internal/test_servers/oas_router_gen.go @@ -7,14 +7,6 @@ import ( "strings" ) -func (s *Server) notFound(w http.ResponseWriter, r *http.Request) { - s.cfg.NotFound(w, r) -} - -func (s *Server) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { - s.cfg.MethodNotAllowed(w, r, allowed) -} - // ServeHTTP serves http request as defined by OpenAPI v3 specification, // calling handler that matches the path or returning not found error. func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { diff --git a/internal/test_servers/oas_server_gen.go b/internal/test_servers/oas_server_gen.go index f406c44a8..04bc97e38 100644 --- a/internal/test_servers/oas_server_gen.go +++ b/internal/test_servers/oas_server_gen.go @@ -4,10 +4,6 @@ package api import ( "context" - - "go.opentelemetry.io/otel/metric/instrument/syncint64" - - "github.com/ogen-go/ogen/otelogen" ) // Handler handles operations described by OpenAPI v3 specification. @@ -27,29 +23,18 @@ type Handler interface { // Server implements http server based on OpenAPI v3 specification and // calls Handler to handle requests. type Server struct { - h Handler - cfg config - - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + h Handler + baseServer } // NewServer creates new Server. func NewServer(h Handler, opts ...Option) (*Server, error) { - s := &Server{ - h: h, - cfg: newConfig(opts...), - } - var err error - if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { - return nil, err - } - if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { - return nil, err - } - if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + s, err := newConfig(opts...).baseServer() + if err != nil { return nil, err } - return s, nil + return &Server{ + h: h, + baseServer: s, + }, nil } diff --git a/internal/test_servers/oas_unimplemented_gen.go b/internal/test_servers/oas_unimplemented_gen.go index daaefce0f..fd5d70d9b 100644 --- a/internal/test_servers/oas_unimplemented_gen.go +++ b/internal/test_servers/oas_unimplemented_gen.go @@ -8,11 +8,11 @@ import ( ht "github.com/ogen-go/ogen/http" ) -var _ Handler = UnimplementedHandler{} - // UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented. type UnimplementedHandler struct{} +var _ Handler = UnimplementedHandler{} + // ProbeLiveness implements probeLiveness operation. // // Liveness probe for kubernetes. diff --git a/internal/test_single_endpoint/oas_cfg_gen.go b/internal/test_single_endpoint/oas_cfg_gen.go index 43cd6eec1..d1c81762b 100644 --- a/internal/test_single_endpoint/oas_cfg_gen.go +++ b/internal/test_single_endpoint/oas_cfg_gen.go @@ -7,6 +7,7 @@ import ( "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -15,6 +16,13 @@ import ( "github.com/ogen-go/ogen/otelogen" ) +var ( + // Allocate option closure once. + clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) + // Allocate option closure once. + serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) +) + // ErrorHandler is error handler. type ErrorHandler = ogenerrors.ErrorHandler @@ -56,6 +64,57 @@ func newConfig(opts ...Option) config { return cfg } +type baseServer struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (s baseServer) notFound(w http.ResponseWriter, r *http.Request) { + s.cfg.NotFound(w, r) +} + +func (s baseServer) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { + s.cfg.MethodNotAllowed(w, r, allowed) +} + +func (cfg config) baseServer() (s baseServer, err error) { + s = baseServer{cfg: cfg} + if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { + return s, err + } + if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { + return s, err + } + if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + return s, err + } + return s, nil +} + +type baseClient struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (cfg config) baseClient() (c baseClient, err error) { + c = baseClient{cfg: cfg} + if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { + return c, err + } + if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { + return c, err + } + if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + return c, err + } + return c, nil +} + +// Option is config option. type Option interface { apply(*config) } diff --git a/internal/test_single_endpoint/oas_client_gen.go b/internal/test_single_endpoint/oas_client_gen.go index 7600598a3..d6dd4d757 100644 --- a/internal/test_single_endpoint/oas_client_gen.go +++ b/internal/test_single_endpoint/oas_client_gen.go @@ -10,7 +10,6 @@ import ( "github.com/go-faster/errors" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" - "go.opentelemetry.io/otel/metric/instrument/syncint64" "go.opentelemetry.io/otel/trace" ht "github.com/ogen-go/ogen/http" @@ -27,16 +26,10 @@ var _ Handler = struct { *Client }{} -// Allocate option closure once. -var clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) - // Client implements OAS client. type Client struct { serverURL *url.URL - cfg config - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + baseClient } // NewClient initializes new Client defined by OAS. @@ -45,20 +38,14 @@ func NewClient(serverURL string, opts ...Option) (*Client, error) { if err != nil { return nil, err } - c := &Client{ - cfg: newConfig(opts...), - serverURL: u, - } - if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { - return nil, err - } - if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { - return nil, err - } - if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + c, err := newConfig(opts...).baseClient() + if err != nil { return nil, err } - return c, nil + return &Client{ + serverURL: u, + baseClient: c, + }, nil } type serverURLKey struct{} diff --git a/internal/test_single_endpoint/oas_handlers_gen.go b/internal/test_single_endpoint/oas_handlers_gen.go index 626b57461..0c9c120e8 100644 --- a/internal/test_single_endpoint/oas_handlers_gen.go +++ b/internal/test_single_endpoint/oas_handlers_gen.go @@ -17,11 +17,10 @@ import ( "github.com/ogen-go/ogen/otelogen" ) -// Allocate option closure once. -var serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) - // handleProbeLivenessRequest handles probeLiveness operation. // +// Liveness probe for kubernetes. +// // GET /healthz func (s *Server) handleProbeLivenessRequest(args [0]string, w http.ResponseWriter, r *http.Request) { otelAttrs := []attribute.KeyValue{ diff --git a/internal/test_single_endpoint/oas_response_encoders_gen.go b/internal/test_single_endpoint/oas_response_encoders_gen.go index 6bbbcbd4e..19808459d 100644 --- a/internal/test_single_endpoint/oas_response_encoders_gen.go +++ b/internal/test_single_endpoint/oas_response_encoders_gen.go @@ -24,6 +24,7 @@ func encodeProbeLivenessResponse(response string, w http.ResponseWriter, span tr return nil } + func encodeErrorResponse(response ErrorStatusCode, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json") code := response.StatusCode diff --git a/internal/test_single_endpoint/oas_router_gen.go b/internal/test_single_endpoint/oas_router_gen.go index 5a990ebf6..4f3452c76 100644 --- a/internal/test_single_endpoint/oas_router_gen.go +++ b/internal/test_single_endpoint/oas_router_gen.go @@ -7,14 +7,6 @@ import ( "strings" ) -func (s *Server) notFound(w http.ResponseWriter, r *http.Request) { - s.cfg.NotFound(w, r) -} - -func (s *Server) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { - s.cfg.MethodNotAllowed(w, r, allowed) -} - // ServeHTTP serves http request as defined by OpenAPI v3 specification, // calling handler that matches the path or returning not found error. func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { diff --git a/internal/test_single_endpoint/oas_server_gen.go b/internal/test_single_endpoint/oas_server_gen.go index f406c44a8..04bc97e38 100644 --- a/internal/test_single_endpoint/oas_server_gen.go +++ b/internal/test_single_endpoint/oas_server_gen.go @@ -4,10 +4,6 @@ package api import ( "context" - - "go.opentelemetry.io/otel/metric/instrument/syncint64" - - "github.com/ogen-go/ogen/otelogen" ) // Handler handles operations described by OpenAPI v3 specification. @@ -27,29 +23,18 @@ type Handler interface { // Server implements http server based on OpenAPI v3 specification and // calls Handler to handle requests. type Server struct { - h Handler - cfg config - - requests syncint64.Counter - errors syncint64.Counter - duration syncint64.Histogram + h Handler + baseServer } // NewServer creates new Server. func NewServer(h Handler, opts ...Option) (*Server, error) { - s := &Server{ - h: h, - cfg: newConfig(opts...), - } - var err error - if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { - return nil, err - } - if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { - return nil, err - } - if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + s, err := newConfig(opts...).baseServer() + if err != nil { return nil, err } - return s, nil + return &Server{ + h: h, + baseServer: s, + }, nil } diff --git a/internal/test_single_endpoint/oas_unimplemented_gen.go b/internal/test_single_endpoint/oas_unimplemented_gen.go index daaefce0f..fd5d70d9b 100644 --- a/internal/test_single_endpoint/oas_unimplemented_gen.go +++ b/internal/test_single_endpoint/oas_unimplemented_gen.go @@ -8,11 +8,11 @@ import ( ht "github.com/ogen-go/ogen/http" ) -var _ Handler = UnimplementedHandler{} - // UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented. type UnimplementedHandler struct{} +var _ Handler = UnimplementedHandler{} + // ProbeLiveness implements probeLiveness operation. // // Liveness probe for kubernetes. diff --git a/internal/test_webhooks/oas_cfg_gen.go b/internal/test_webhooks/oas_cfg_gen.go new file mode 100644 index 000000000..d1c81762b --- /dev/null +++ b/internal/test_webhooks/oas_cfg_gen.go @@ -0,0 +1,215 @@ +// Code generated by ogen, DO NOT EDIT. + +package api + +import ( + "net/http" + + "go.opentelemetry.io/otel" + "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/metric/instrument/syncint64" + "go.opentelemetry.io/otel/trace" + + ht "github.com/ogen-go/ogen/http" + "github.com/ogen-go/ogen/middleware" + "github.com/ogen-go/ogen/ogenerrors" + "github.com/ogen-go/ogen/otelogen" +) + +var ( + // Allocate option closure once. + clientSpanKind = trace.WithSpanKind(trace.SpanKindClient) + // Allocate option closure once. + serverSpanKind = trace.WithSpanKind(trace.SpanKindServer) +) + +// ErrorHandler is error handler. +type ErrorHandler = ogenerrors.ErrorHandler + +type config struct { + TracerProvider trace.TracerProvider + Tracer trace.Tracer + MeterProvider metric.MeterProvider + Meter metric.Meter + Client ht.Client + NotFound http.HandlerFunc + MethodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string) + ErrorHandler ErrorHandler + Prefix string + Middleware Middleware + MaxMultipartMemory int64 +} + +func newConfig(opts ...Option) config { + cfg := config{ + TracerProvider: otel.GetTracerProvider(), + MeterProvider: metric.NewNoopMeterProvider(), + Client: http.DefaultClient, + NotFound: http.NotFound, + MethodNotAllowed: func(w http.ResponseWriter, r *http.Request, allowed string) { + w.Header().Set("Allow", allowed) + w.WriteHeader(http.StatusMethodNotAllowed) + }, + ErrorHandler: ogenerrors.DefaultErrorHandler, + Middleware: nil, + MaxMultipartMemory: 32 << 20, // 32 MB + } + for _, opt := range opts { + opt.apply(&cfg) + } + cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name, + trace.WithInstrumentationVersion(otelogen.SemVersion()), + ) + cfg.Meter = cfg.MeterProvider.Meter(otelogen.Name) + return cfg +} + +type baseServer struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (s baseServer) notFound(w http.ResponseWriter, r *http.Request) { + s.cfg.NotFound(w, r) +} + +func (s baseServer) notAllowed(w http.ResponseWriter, r *http.Request, allowed string) { + s.cfg.MethodNotAllowed(w, r, allowed) +} + +func (cfg config) baseServer() (s baseServer, err error) { + s = baseServer{cfg: cfg} + if s.requests, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerRequestCount); err != nil { + return s, err + } + if s.errors, err = s.cfg.Meter.SyncInt64().Counter(otelogen.ServerErrorsCount); err != nil { + return s, err + } + if s.duration, err = s.cfg.Meter.SyncInt64().Histogram(otelogen.ServerDuration); err != nil { + return s, err + } + return s, nil +} + +type baseClient struct { + cfg config + requests syncint64.Counter + errors syncint64.Counter + duration syncint64.Histogram +} + +func (cfg config) baseClient() (c baseClient, err error) { + c = baseClient{cfg: cfg} + if c.requests, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientRequestCount); err != nil { + return c, err + } + if c.errors, err = c.cfg.Meter.SyncInt64().Counter(otelogen.ClientErrorsCount); err != nil { + return c, err + } + if c.duration, err = c.cfg.Meter.SyncInt64().Histogram(otelogen.ClientDuration); err != nil { + return c, err + } + return c, nil +} + +// Option is config option. +type Option interface { + apply(*config) +} + +type optionFunc func(*config) + +func (o optionFunc) apply(c *config) { + o(c) +} + +// WithTracerProvider specifies a tracer provider to use for creating a tracer. +// +// If none is specified, the global provider is used. +func WithTracerProvider(provider trace.TracerProvider) Option { + return optionFunc(func(cfg *config) { + if provider != nil { + cfg.TracerProvider = provider + } + }) +} + +// WithMeterProvider specifies a meter provider to use for creating a meter. +// +// If none is specified, the metric.NewNoopMeterProvider is used. +func WithMeterProvider(provider metric.MeterProvider) Option { + return optionFunc(func(cfg *config) { + if provider != nil { + cfg.MeterProvider = provider + } + }) +} + +// WithClient specifies http client to use. +func WithClient(client ht.Client) Option { + return optionFunc(func(cfg *config) { + if client != nil { + cfg.Client = client + } + }) +} + +// WithNotFound specifies Not Found handler to use. +func WithNotFound(notFound http.HandlerFunc) Option { + return optionFunc(func(cfg *config) { + if notFound != nil { + cfg.NotFound = notFound + } + }) +} + +// WithMethodNotAllowed specifies Method Not Allowed handler to use. +func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) Option { + return optionFunc(func(cfg *config) { + if methodNotAllowed != nil { + cfg.MethodNotAllowed = methodNotAllowed + } + }) +} + +// WithErrorHandler specifies error handler to use. +func WithErrorHandler(h ErrorHandler) Option { + return optionFunc(func(cfg *config) { + if h != nil { + cfg.ErrorHandler = h + } + }) +} + +// WithPathPrefix specifies server path prefix. +func WithPathPrefix(prefix string) Option { + return optionFunc(func(cfg *config) { + cfg.Prefix = prefix + }) +} + +// WithMiddleware specifies middlewares to use. +func WithMiddleware(m ...Middleware) Option { + return optionFunc(func(cfg *config) { + switch len(m) { + case 0: + cfg.Middleware = nil + case 1: + cfg.Middleware = m[0] + default: + cfg.Middleware = middleware.ChainMiddlewares(m...) + } + }) +} + +// WithMaxMultipartMemory specifies limit of memory for storing file parts. +// File parts which can't be stored in memory will be stored on disk in temporary files. +func WithMaxMultipartMemory(max int64) Option { + return optionFunc(func(cfg *config) { + if max > 0 { + cfg.MaxMultipartMemory = max + } + }) +} diff --git a/internal/test_webhooks/oas_client_gen.go b/internal/test_webhooks/oas_client_gen.go new file mode 100644 index 000000000..6a2a07686 --- /dev/null +++ b/internal/test_webhooks/oas_client_gen.go @@ -0,0 +1,366 @@ +// Code generated by ogen, DO NOT EDIT. + +package api + +import ( + "context" + "net/url" + "time" + + "github.com/go-faster/errors" + "go.opentelemetry.io/otel/attribute" + "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/trace" + + "github.com/ogen-go/ogen/conv" + ht "github.com/ogen-go/ogen/http" + "github.com/ogen-go/ogen/otelogen" + "github.com/ogen-go/ogen/uri" +) + +type errorHandler interface { + NewError(ctx context.Context, err error) ErrorStatusCode +} + +var _ Handler = struct { + errorHandler + *Client +}{} + +// Client implements OAS client. +type Client struct { + serverURL *url.URL + baseClient +} + +// NewClient initializes new Client defined by OAS. +func NewClient(serverURL string, opts ...Option) (*Client, error) { + u, err := url.Parse(serverURL) + if err != nil { + return nil, err + } + c, err := newConfig(opts...).baseClient() + if err != nil { + return nil, err + } + return &Client{ + serverURL: u, + baseClient: c, + }, nil +} + +type serverURLKey struct{} + +// WithServerURL sets context key to override server URL. +func WithServerURL(ctx context.Context, u *url.URL) context.Context { + return context.WithValue(ctx, serverURLKey{}, u) +} + +func (c *Client) requestURL(ctx context.Context) *url.URL { + u, ok := ctx.Value(serverURLKey{}).(*url.URL) + if !ok { + return c.serverURL + } + return u +} + +// PublishEvent invokes publishEvent operation. +// +// POST /event +func (c *Client) PublishEvent(ctx context.Context, request OptEvent) (res Event, err error) { + otelAttrs := []attribute.KeyValue{ + otelogen.OperationID("publishEvent"), + } + // Validate request before sending. + + // Run stopwatch. + startTime := time.Now() + defer func() { + elapsedDuration := time.Since(startTime) + c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + }() + + // Increment request counter. + c.requests.Add(ctx, 1, otelAttrs...) + + // Start a span for this request. + ctx, span := c.cfg.Tracer.Start(ctx, "PublishEvent", + trace.WithAttributes(otelAttrs...), + clientSpanKind, + ) + // Track stage for error reporting. + var stage string + defer func() { + if err != nil { + span.RecordError(err) + span.SetStatus(codes.Error, stage) + c.errors.Add(ctx, 1, otelAttrs...) + } + span.End() + }() + + stage = "BuildURL" + u := uri.Clone(c.requestURL(ctx)) + u.Path += "/event" + + stage = "EncodeRequest" + r, err := ht.NewRequest(ctx, "POST", u, nil) + if err != nil { + return res, errors.Wrap(err, "create request") + } + if err := encodePublishEventRequest(request, r); err != nil { + return res, errors.Wrap(err, "encode request") + } + + stage = "SendRequest" + resp, err := c.cfg.Client.Do(r) + if err != nil { + return res, errors.Wrap(err, "do request") + } + defer resp.Body.Close() + + stage = "DecodeResponse" + result, err := decodePublishEventResponse(resp) + if err != nil { + return res, errors.Wrap(err, "decode response") + } + + return result, nil +} + +// WebhookClient implements webhook client. +type WebhookClient struct { + baseClient +} + +// NewWebhookClient initializes new WebhookClient. +func NewWebhookClient(opts ...Option) (*WebhookClient, error) { + c, err := newConfig(opts...).baseClient() + if err != nil { + return nil, err + } + return &WebhookClient{ + baseClient: c, + }, nil +} + +// StatusWebhook invokes statusWebhook operation. +func (c *WebhookClient) StatusWebhook(ctx context.Context, targetURL string) (res StatusWebhookOK, err error) { + otelAttrs := []attribute.KeyValue{ + otelogen.OperationID("statusWebhook"), + otelogen.WebhookName("status"), + } + + // Run stopwatch. + startTime := time.Now() + defer func() { + elapsedDuration := time.Since(startTime) + c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + }() + + // Increment request counter. + c.requests.Add(ctx, 1, otelAttrs...) + + // Start a span for this request. + ctx, span := c.cfg.Tracer.Start(ctx, "StatusWebhook", + trace.WithAttributes(otelAttrs...), + clientSpanKind, + ) + // Track stage for error reporting. + var stage string + defer func() { + if err != nil { + span.RecordError(err) + span.SetStatus(codes.Error, stage) + c.errors.Add(ctx, 1, otelAttrs...) + } + span.End() + }() + + stage = "BuildURL" + u, err := url.Parse(targetURL) + if err != nil { + return res, errors.Wrap(err, "parse target URL") + } + + stage = "EncodeRequest" + r, err := ht.NewRequest(ctx, "GET", u, nil) + if err != nil { + return res, errors.Wrap(err, "create request") + } + + stage = "SendRequest" + resp, err := c.cfg.Client.Do(r) + if err != nil { + return res, errors.Wrap(err, "do request") + } + defer resp.Body.Close() + + stage = "DecodeResponse" + result, err := decodeStatusWebhookResponse(resp) + if err != nil { + return res, errors.Wrap(err, "decode response") + } + + return result, nil +} + +// UpdateDelete invokes DELETE update operation. +func (c *WebhookClient) UpdateDelete(ctx context.Context, targetURL string) (res UpdateDeleteRes, err error) { + otelAttrs := []attribute.KeyValue{ + otelogen.WebhookName("update"), + } + + // Run stopwatch. + startTime := time.Now() + defer func() { + elapsedDuration := time.Since(startTime) + c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + }() + + // Increment request counter. + c.requests.Add(ctx, 1, otelAttrs...) + + // Start a span for this request. + ctx, span := c.cfg.Tracer.Start(ctx, "UpdateDelete", + trace.WithAttributes(otelAttrs...), + clientSpanKind, + ) + // Track stage for error reporting. + var stage string + defer func() { + if err != nil { + span.RecordError(err) + span.SetStatus(codes.Error, stage) + c.errors.Add(ctx, 1, otelAttrs...) + } + span.End() + }() + + stage = "BuildURL" + u, err := url.Parse(targetURL) + if err != nil { + return res, errors.Wrap(err, "parse target URL") + } + + stage = "EncodeRequest" + r, err := ht.NewRequest(ctx, "DELETE", u, nil) + if err != nil { + return res, errors.Wrap(err, "create request") + } + + stage = "SendRequest" + resp, err := c.cfg.Client.Do(r) + if err != nil { + return res, errors.Wrap(err, "do request") + } + defer resp.Body.Close() + + stage = "DecodeResponse" + result, err := decodeUpdateDeleteResponse(resp) + if err != nil { + return res, errors.Wrap(err, "decode response") + } + + return result, nil +} + +// UpdateWebhook invokes updateWebhook operation. +func (c *WebhookClient) UpdateWebhook(ctx context.Context, targetURL string, request OptEvent, params UpdateWebhookParams) (res UpdateWebhookRes, err error) { + otelAttrs := []attribute.KeyValue{ + otelogen.OperationID("updateWebhook"), + otelogen.WebhookName("update"), + } + // Validate request before sending. + + // Run stopwatch. + startTime := time.Now() + defer func() { + elapsedDuration := time.Since(startTime) + c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + }() + + // Increment request counter. + c.requests.Add(ctx, 1, otelAttrs...) + + // Start a span for this request. + ctx, span := c.cfg.Tracer.Start(ctx, "UpdateWebhook", + trace.WithAttributes(otelAttrs...), + clientSpanKind, + ) + // Track stage for error reporting. + var stage string + defer func() { + if err != nil { + span.RecordError(err) + span.SetStatus(codes.Error, stage) + c.errors.Add(ctx, 1, otelAttrs...) + } + span.End() + }() + + stage = "BuildURL" + u, err := url.Parse(targetURL) + if err != nil { + return res, errors.Wrap(err, "parse target URL") + } + + stage = "EncodeQueryParams" + q := uri.NewQueryEncoder() + { + // Encode "event_type" parameter. + cfg := uri.QueryParameterEncodingConfig{ + Name: "event_type", + Style: uri.QueryStyleForm, + Explode: true, + } + + if err := q.EncodeParam(cfg, func(e uri.Encoder) error { + return e.EncodeValue(conv.StringToString(params.EventType)) + }); err != nil { + return res, errors.Wrap(err, "encode query") + } + } + u.RawQuery = q.Values().Encode() + + stage = "EncodeRequest" + r, err := ht.NewRequest(ctx, "POST", u, nil) + if err != nil { + return res, errors.Wrap(err, "create request") + } + if err := encodeUpdateWebhookRequest(request, r); err != nil { + return res, errors.Wrap(err, "encode request") + } + + stage = "EncodeHeaderParams" + h := uri.NewHeaderEncoder(r.Header) + { + cfg := uri.HeaderParameterEncodingConfig{ + Name: "X-Webhook-Token", + Explode: false, + } + if err := h.EncodeParam(cfg, func(e uri.Encoder) error { + if val, ok := params.XWebhookToken.Get(); ok { + return e.EncodeValue(conv.StringToString(val)) + } + return nil + }); err != nil { + return res, errors.Wrap(err, "encode header param X-Webhook-Token") + } + } + + stage = "SendRequest" + resp, err := c.cfg.Client.Do(r) + if err != nil { + return res, errors.Wrap(err, "do request") + } + defer resp.Body.Close() + + stage = "DecodeResponse" + result, err := decodeUpdateWebhookResponse(resp) + if err != nil { + return res, errors.Wrap(err, "decode response") + } + + return result, nil +} diff --git a/internal/test_webhooks/oas_handlers_gen.go b/internal/test_webhooks/oas_handlers_gen.go new file mode 100644 index 000000000..020206a61 --- /dev/null +++ b/internal/test_webhooks/oas_handlers_gen.go @@ -0,0 +1,386 @@ +// Code generated by ogen, DO NOT EDIT. + +package api + +import ( + "context" + "net/http" + "time" + + "github.com/go-faster/errors" + "go.opentelemetry.io/otel/attribute" + "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/trace" + + ht "github.com/ogen-go/ogen/http" + "github.com/ogen-go/ogen/middleware" + "github.com/ogen-go/ogen/ogenerrors" + "github.com/ogen-go/ogen/otelogen" +) + +// handlePublishEventRequest handles publishEvent operation. +// +// POST /event +func (s *Server) handlePublishEventRequest(args [0]string, w http.ResponseWriter, r *http.Request) { + otelAttrs := []attribute.KeyValue{ + otelogen.OperationID("publishEvent"), + } + + // Start a span for this request. + ctx, span := s.cfg.Tracer.Start(r.Context(), "PublishEvent", + trace.WithAttributes(otelAttrs...), + serverSpanKind, + ) + defer span.End() + + // Run stopwatch. + startTime := time.Now() + defer func() { + elapsedDuration := time.Since(startTime) + s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + }() + + // Increment request counter. + s.requests.Add(ctx, 1, otelAttrs...) + + var ( + recordError = func(stage string, err error) { + span.RecordError(err) + span.SetStatus(codes.Error, stage) + s.errors.Add(ctx, 1, otelAttrs...) + } + err error + opErrContext = ogenerrors.OperationContext{ + Name: "PublishEvent", + ID: "publishEvent", + } + ) + request, close, err := s.decodePublishEventRequest(r) + if err != nil { + err = &ogenerrors.DecodeRequestError{ + OperationContext: opErrContext, + Err: err, + } + recordError("DecodeRequest", err) + s.cfg.ErrorHandler(ctx, w, r, err) + return + } + defer func() { + if err := close(); err != nil { + recordError("CloseRequest", err) + } + }() + + var response Event + if m := s.cfg.Middleware; m != nil { + mreq := middleware.Request{ + Context: ctx, + OperationName: "PublishEvent", + OperationID: "publishEvent", + Body: request, + Params: map[string]any{}, + Raw: r, + } + + type ( + Request = OptEvent + Params = struct{} + Response = Event + ) + response, err = middleware.HookMiddleware[ + Request, + Params, + Response, + ]( + m, + mreq, + nil, + func(ctx context.Context, request Request, params Params) (Response, error) { + return s.h.PublishEvent(ctx, request) + }, + ) + } else { + response, err = s.h.PublishEvent(ctx, request) + } + if err != nil { + recordError("Internal", err) + if errRes, ok := errors.Into[*ErrorStatusCode](err); ok { + encodeErrorResponse(*errRes, w, span) + return + } + if errors.Is(err, ht.ErrNotImplemented) { + s.cfg.ErrorHandler(ctx, w, r, err) + return + } + encodeErrorResponse(s.h.NewError(ctx, err), w, span) + return + } + + if err := encodePublishEventResponse(response, w, span); err != nil { + recordError("EncodeResponse", err) + s.cfg.ErrorHandler(ctx, w, r, err) + return + } +} + +// handleStatusWebhookRequest handles statusWebhook operation. +func (s *WebhookServer) handleStatusWebhookRequest(args [0]string, w http.ResponseWriter, r *http.Request) { + otelAttrs := []attribute.KeyValue{ + otelogen.OperationID("statusWebhook"), + otelogen.WebhookName("status"), + } + + // Start a span for this request. + ctx, span := s.cfg.Tracer.Start(r.Context(), "StatusWebhook", + trace.WithAttributes(otelAttrs...), + serverSpanKind, + ) + defer span.End() + + // Run stopwatch. + startTime := time.Now() + defer func() { + elapsedDuration := time.Since(startTime) + s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + }() + + // Increment request counter. + s.requests.Add(ctx, 1, otelAttrs...) + + var ( + recordError = func(stage string, err error) { + span.RecordError(err) + span.SetStatus(codes.Error, stage) + s.errors.Add(ctx, 1, otelAttrs...) + } + err error + ) + + var response StatusWebhookOK + if m := s.cfg.Middleware; m != nil { + mreq := middleware.Request{ + Context: ctx, + OperationName: "StatusWebhook", + OperationID: "statusWebhook", + Body: nil, + Params: map[string]any{}, + Raw: r, + } + + type ( + Request = struct{} + Params = struct{} + Response = StatusWebhookOK + ) + response, err = middleware.HookMiddleware[ + Request, + Params, + Response, + ]( + m, + mreq, + nil, + func(ctx context.Context, request Request, params Params) (Response, error) { + return s.h.StatusWebhook(ctx) + }, + ) + } else { + response, err = s.h.StatusWebhook(ctx) + } + if err != nil { + recordError("Internal", err) + s.cfg.ErrorHandler(ctx, w, r, err) + return + } + + if err := encodeStatusWebhookResponse(response, w, span); err != nil { + recordError("EncodeResponse", err) + s.cfg.ErrorHandler(ctx, w, r, err) + return + } +} + +// handleUpdateDeleteRequest handles DELETE update operation. +func (s *WebhookServer) handleUpdateDeleteRequest(args [0]string, w http.ResponseWriter, r *http.Request) { + otelAttrs := []attribute.KeyValue{ + otelogen.WebhookName("update"), + } + + // Start a span for this request. + ctx, span := s.cfg.Tracer.Start(r.Context(), "UpdateDelete", + trace.WithAttributes(otelAttrs...), + serverSpanKind, + ) + defer span.End() + + // Run stopwatch. + startTime := time.Now() + defer func() { + elapsedDuration := time.Since(startTime) + s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + }() + + // Increment request counter. + s.requests.Add(ctx, 1, otelAttrs...) + + var ( + recordError = func(stage string, err error) { + span.RecordError(err) + span.SetStatus(codes.Error, stage) + s.errors.Add(ctx, 1, otelAttrs...) + } + err error + ) + + var response UpdateDeleteRes + if m := s.cfg.Middleware; m != nil { + mreq := middleware.Request{ + Context: ctx, + OperationName: "UpdateDelete", + OperationID: "", + Body: nil, + Params: map[string]any{}, + Raw: r, + } + + type ( + Request = struct{} + Params = struct{} + Response = UpdateDeleteRes + ) + response, err = middleware.HookMiddleware[ + Request, + Params, + Response, + ]( + m, + mreq, + nil, + func(ctx context.Context, request Request, params Params) (Response, error) { + return s.h.UpdateDelete(ctx) + }, + ) + } else { + response, err = s.h.UpdateDelete(ctx) + } + if err != nil { + recordError("Internal", err) + s.cfg.ErrorHandler(ctx, w, r, err) + return + } + + if err := encodeUpdateDeleteResponse(response, w, span); err != nil { + recordError("EncodeResponse", err) + s.cfg.ErrorHandler(ctx, w, r, err) + return + } +} + +// handleUpdateWebhookRequest handles updateWebhook operation. +func (s *WebhookServer) handleUpdateWebhookRequest(args [0]string, w http.ResponseWriter, r *http.Request) { + otelAttrs := []attribute.KeyValue{ + otelogen.OperationID("updateWebhook"), + otelogen.WebhookName("update"), + } + + // Start a span for this request. + ctx, span := s.cfg.Tracer.Start(r.Context(), "UpdateWebhook", + trace.WithAttributes(otelAttrs...), + serverSpanKind, + ) + defer span.End() + + // Run stopwatch. + startTime := time.Now() + defer func() { + elapsedDuration := time.Since(startTime) + s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + }() + + // Increment request counter. + s.requests.Add(ctx, 1, otelAttrs...) + + var ( + recordError = func(stage string, err error) { + span.RecordError(err) + span.SetStatus(codes.Error, stage) + s.errors.Add(ctx, 1, otelAttrs...) + } + err error + opErrContext = ogenerrors.OperationContext{ + Name: "UpdateWebhook", + ID: "updateWebhook", + } + ) + params, err := decodeUpdateWebhookParams(args, r) + if err != nil { + err = &ogenerrors.DecodeParamsError{ + OperationContext: opErrContext, + Err: err, + } + recordError("DecodeParams", err) + s.cfg.ErrorHandler(ctx, w, r, err) + return + } + request, close, err := s.decodeUpdateWebhookRequest(r) + if err != nil { + err = &ogenerrors.DecodeRequestError{ + OperationContext: opErrContext, + Err: err, + } + recordError("DecodeRequest", err) + s.cfg.ErrorHandler(ctx, w, r, err) + return + } + defer func() { + if err := close(); err != nil { + recordError("CloseRequest", err) + } + }() + + var response UpdateWebhookRes + if m := s.cfg.Middleware; m != nil { + mreq := middleware.Request{ + Context: ctx, + OperationName: "UpdateWebhook", + OperationID: "updateWebhook", + Body: request, + Params: map[string]any{ + "event_type": params.EventType, + "X-Webhook-Token": params.XWebhookToken, + }, + Raw: r, + } + + type ( + Request = OptEvent + Params = UpdateWebhookParams + Response = UpdateWebhookRes + ) + response, err = middleware.HookMiddleware[ + Request, + Params, + Response, + ]( + m, + mreq, + unpackUpdateWebhookParams, + func(ctx context.Context, request Request, params Params) (Response, error) { + return s.h.UpdateWebhook(ctx, request, params) + }, + ) + } else { + response, err = s.h.UpdateWebhook(ctx, request, params) + } + if err != nil { + recordError("Internal", err) + s.cfg.ErrorHandler(ctx, w, r, err) + return + } + + if err := encodeUpdateWebhookResponse(response, w, span); err != nil { + recordError("EncodeResponse", err) + s.cfg.ErrorHandler(ctx, w, r, err) + return + } +} diff --git a/internal/test_webhooks/oas_interfaces_gen.go b/internal/test_webhooks/oas_interfaces_gen.go new file mode 100644 index 000000000..8668377ad --- /dev/null +++ b/internal/test_webhooks/oas_interfaces_gen.go @@ -0,0 +1,10 @@ +// Code generated by ogen, DO NOT EDIT. +package api + +type UpdateDeleteRes interface { + updateDeleteRes() +} + +type UpdateWebhookRes interface { + updateWebhookRes() +} diff --git a/internal/test_webhooks/oas_json_gen.go b/internal/test_webhooks/oas_json_gen.go new file mode 100644 index 000000000..279dd2e85 --- /dev/null +++ b/internal/test_webhooks/oas_json_gen.go @@ -0,0 +1,471 @@ +// Code generated by ogen, DO NOT EDIT. + +package api + +import ( + "math/bits" + "strconv" + + "github.com/go-faster/errors" + "github.com/go-faster/jx" + + "github.com/ogen-go/ogen/json" + "github.com/ogen-go/ogen/validate" +) + +// Encode implements json.Marshaler. +func (s Error) Encode(e *jx.Encoder) { + e.ObjStart() + s.encodeFields(e) + e.ObjEnd() +} + +// encodeFields encodes fields. +func (s Error) encodeFields(e *jx.Encoder) { + { + + e.FieldStart("error") + e.Str(s.Error) + } +} + +var jsonFieldsNameOfError = [1]string{ + 0: "error", +} + +// Decode decodes Error from json. +func (s *Error) Decode(d *jx.Decoder) error { + if s == nil { + return errors.New("invalid: unable to decode Error to nil") + } + var requiredBitSet [1]uint8 + + if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error { + switch string(k) { + case "error": + requiredBitSet[0] |= 1 << 0 + if err := func() error { + v, err := d.Str() + s.Error = string(v) + if err != nil { + return err + } + return nil + }(); err != nil { + return errors.Wrap(err, "decode field \"error\"") + } + default: + return d.Skip() + } + return nil + }); err != nil { + return errors.Wrap(err, "decode Error") + } + // Validate required fields. + var failures []validate.FieldError + for i, mask := range [1]uint8{ + 0b00000001, + } { + if result := (requiredBitSet[i] & mask) ^ mask; result != 0 { + // Mask only required fields and check equality to mask using XOR. + // + // If XOR result is not zero, result is not equal to expected, so some fields are missed. + // Bits of fields which would be set are actually bits of missed fields. + missed := bits.OnesCount8(result) + for bitN := 0; bitN < missed; bitN++ { + bitIdx := bits.TrailingZeros8(result) + fieldIdx := i*8 + bitIdx + var name string + if fieldIdx < len(jsonFieldsNameOfError) { + name = jsonFieldsNameOfError[fieldIdx] + } else { + name = strconv.Itoa(fieldIdx) + } + failures = append(failures, validate.FieldError{ + Name: name, + Error: validate.ErrFieldRequired, + }) + // Reset bit. + result &^= 1 << bitIdx + } + } + } + if len(failures) > 0 { + return &validate.Error{Fields: failures} + } + + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s Error) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *Error) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d) +} + +// Encode implements json.Marshaler. +func (s Event) Encode(e *jx.Encoder) { + e.ObjStart() + s.encodeFields(e) + e.ObjEnd() +} + +// encodeFields encodes fields. +func (s Event) encodeFields(e *jx.Encoder) { + { + + e.FieldStart("id") + json.EncodeUUID(e, s.ID) + } + { + + e.FieldStart("message") + e.Str(s.Message) + } +} + +var jsonFieldsNameOfEvent = [2]string{ + 0: "id", + 1: "message", +} + +// Decode decodes Event from json. +func (s *Event) Decode(d *jx.Decoder) error { + if s == nil { + return errors.New("invalid: unable to decode Event to nil") + } + var requiredBitSet [1]uint8 + + if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error { + switch string(k) { + case "id": + requiredBitSet[0] |= 1 << 0 + if err := func() error { + v, err := json.DecodeUUID(d) + s.ID = v + if err != nil { + return err + } + return nil + }(); err != nil { + return errors.Wrap(err, "decode field \"id\"") + } + case "message": + requiredBitSet[0] |= 1 << 1 + if err := func() error { + v, err := d.Str() + s.Message = string(v) + if err != nil { + return err + } + return nil + }(); err != nil { + return errors.Wrap(err, "decode field \"message\"") + } + default: + return d.Skip() + } + return nil + }); err != nil { + return errors.Wrap(err, "decode Event") + } + // Validate required fields. + var failures []validate.FieldError + for i, mask := range [1]uint8{ + 0b00000011, + } { + if result := (requiredBitSet[i] & mask) ^ mask; result != 0 { + // Mask only required fields and check equality to mask using XOR. + // + // If XOR result is not zero, result is not equal to expected, so some fields are missed. + // Bits of fields which would be set are actually bits of missed fields. + missed := bits.OnesCount8(result) + for bitN := 0; bitN < missed; bitN++ { + bitIdx := bits.TrailingZeros8(result) + fieldIdx := i*8 + bitIdx + var name string + if fieldIdx < len(jsonFieldsNameOfEvent) { + name = jsonFieldsNameOfEvent[fieldIdx] + } else { + name = strconv.Itoa(fieldIdx) + } + failures = append(failures, validate.FieldError{ + Name: name, + Error: validate.ErrFieldRequired, + }) + // Reset bit. + result &^= 1 << bitIdx + } + } + } + if len(failures) > 0 { + return &validate.Error{Fields: failures} + } + + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s Event) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *Event) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d) +} + +// Encode encodes Event as json. +func (o OptEvent) Encode(e *jx.Encoder) { + if !o.Set { + return + } + o.Value.Encode(e) +} + +// Decode decodes Event from json. +func (o *OptEvent) Decode(d *jx.Decoder) error { + if o == nil { + return errors.New("invalid: unable to decode OptEvent to nil") + } + o.Set = true + if err := o.Value.Decode(d); err != nil { + return err + } + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s OptEvent) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *OptEvent) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d) +} + +// Encode encodes string as json. +func (o OptString) Encode(e *jx.Encoder) { + if !o.Set { + return + } + e.Str(string(o.Value)) +} + +// Decode decodes string from json. +func (o *OptString) Decode(d *jx.Decoder) error { + if o == nil { + return errors.New("invalid: unable to decode OptString to nil") + } + o.Set = true + v, err := d.Str() + if err != nil { + return err + } + o.Value = string(v) + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s OptString) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *OptString) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d) +} + +// Encode implements json.Marshaler. +func (s StatusWebhookOK) Encode(e *jx.Encoder) { + e.ObjStart() + s.encodeFields(e) + e.ObjEnd() +} + +// encodeFields encodes fields. +func (s StatusWebhookOK) encodeFields(e *jx.Encoder) { + { + if s.Status.Set { + e.FieldStart("status") + s.Status.Encode(e) + } + } +} + +var jsonFieldsNameOfStatusWebhookOK = [1]string{ + 0: "status", +} + +// Decode decodes StatusWebhookOK from json. +func (s *StatusWebhookOK) Decode(d *jx.Decoder) error { + if s == nil { + return errors.New("invalid: unable to decode StatusWebhookOK to nil") + } + + if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error { + switch string(k) { + case "status": + if err := func() error { + s.Status.Reset() + if err := s.Status.Decode(d); err != nil { + return err + } + return nil + }(); err != nil { + return errors.Wrap(err, "decode field \"status\"") + } + default: + return d.Skip() + } + return nil + }); err != nil { + return errors.Wrap(err, "decode StatusWebhookOK") + } + + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s StatusWebhookOK) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *StatusWebhookOK) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d) +} + +// Encode implements json.Marshaler. +func (s WebhookResponse) Encode(e *jx.Encoder) { + e.ObjStart() + s.encodeFields(e) + e.ObjEnd() +} + +// encodeFields encodes fields. +func (s WebhookResponse) encodeFields(e *jx.Encoder) { + { + + e.FieldStart("id") + json.EncodeUUID(e, s.ID) + } + { + if s.EventType.Set { + e.FieldStart("event_type") + s.EventType.Encode(e) + } + } +} + +var jsonFieldsNameOfWebhookResponse = [2]string{ + 0: "id", + 1: "event_type", +} + +// Decode decodes WebhookResponse from json. +func (s *WebhookResponse) Decode(d *jx.Decoder) error { + if s == nil { + return errors.New("invalid: unable to decode WebhookResponse to nil") + } + var requiredBitSet [1]uint8 + + if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error { + switch string(k) { + case "id": + requiredBitSet[0] |= 1 << 0 + if err := func() error { + v, err := json.DecodeUUID(d) + s.ID = v + if err != nil { + return err + } + return nil + }(); err != nil { + return errors.Wrap(err, "decode field \"id\"") + } + case "event_type": + if err := func() error { + s.EventType.Reset() + if err := s.EventType.Decode(d); err != nil { + return err + } + return nil + }(); err != nil { + return errors.Wrap(err, "decode field \"event_type\"") + } + default: + return d.Skip() + } + return nil + }); err != nil { + return errors.Wrap(err, "decode WebhookResponse") + } + // Validate required fields. + var failures []validate.FieldError + for i, mask := range [1]uint8{ + 0b00000001, + } { + if result := (requiredBitSet[i] & mask) ^ mask; result != 0 { + // Mask only required fields and check equality to mask using XOR. + // + // If XOR result is not zero, result is not equal to expected, so some fields are missed. + // Bits of fields which would be set are actually bits of missed fields. + missed := bits.OnesCount8(result) + for bitN := 0; bitN < missed; bitN++ { + bitIdx := bits.TrailingZeros8(result) + fieldIdx := i*8 + bitIdx + var name string + if fieldIdx < len(jsonFieldsNameOfWebhookResponse) { + name = jsonFieldsNameOfWebhookResponse[fieldIdx] + } else { + name = strconv.Itoa(fieldIdx) + } + failures = append(failures, validate.FieldError{ + Name: name, + Error: validate.ErrFieldRequired, + }) + // Reset bit. + result &^= 1 << bitIdx + } + } + } + if len(failures) > 0 { + return &validate.Error{Fields: failures} + } + + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s WebhookResponse) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *WebhookResponse) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d) +} diff --git a/internal/test_webhooks/oas_middleware_gen.go b/internal/test_webhooks/oas_middleware_gen.go new file mode 100644 index 000000000..6f58a1a79 --- /dev/null +++ b/internal/test_webhooks/oas_middleware_gen.go @@ -0,0 +1,10 @@ +// Code generated by ogen, DO NOT EDIT. + +package api + +import ( + "github.com/ogen-go/ogen/middleware" +) + +// Middleware is middleware type. +type Middleware = middleware.Middleware diff --git a/internal/test_webhooks/oas_parameters_gen.go b/internal/test_webhooks/oas_parameters_gen.go new file mode 100644 index 000000000..dbe7617c3 --- /dev/null +++ b/internal/test_webhooks/oas_parameters_gen.go @@ -0,0 +1,93 @@ +// Code generated by ogen, DO NOT EDIT. + +package api + +import ( + "net/http" + + "github.com/go-faster/errors" + + "github.com/ogen-go/ogen/conv" + "github.com/ogen-go/ogen/uri" +) + +// UpdateWebhookParams is parameters of updateWebhook operation. +type UpdateWebhookParams struct { + EventType string + XWebhookToken OptString +} + +func unpackUpdateWebhookParams(packed map[string]any) (params UpdateWebhookParams) { + params.EventType = packed["event_type"].(string) + if v, ok := packed["X-Webhook-Token"]; ok { + params.XWebhookToken = v.(OptString) + } + return params +} + +func decodeUpdateWebhookParams(args [0]string, r *http.Request) (params UpdateWebhookParams, _ error) { + q := uri.NewQueryDecoder(r.URL.Query()) + h := uri.NewHeaderDecoder(r.Header) + // Decode query: event_type. + { + cfg := uri.QueryParameterDecodingConfig{ + Name: "event_type", + Style: uri.QueryStyleForm, + Explode: true, + } + + if err := q.HasParam(cfg); err == nil { + if err := q.DecodeParam(cfg, func(d uri.Decoder) error { + val, err := d.DecodeValue() + if err != nil { + return err + } + + c, err := conv.ToString(val) + if err != nil { + return err + } + + params.EventType = c + return nil + }); err != nil { + return params, errors.Wrap(err, "query: event_type: parse") + } + } else { + return params, errors.Wrap(err, "query") + } + } + // Decode header: X-Webhook-Token. + { + cfg := uri.HeaderParameterDecodingConfig{ + Name: "X-Webhook-Token", + Explode: false, + } + if err := h.HasParam(cfg); err == nil { + if err := h.DecodeParam(cfg, func(d uri.Decoder) error { + var paramsDotXWebhookTokenVal string + if err := func() error { + val, err := d.DecodeValue() + if err != nil { + return err + } + + c, err := conv.ToString(val) + if err != nil { + return err + } + + paramsDotXWebhookTokenVal = c + return nil + }(); err != nil { + return err + } + params.XWebhookToken.SetTo(paramsDotXWebhookTokenVal) + return nil + }); err != nil { + return params, errors.Wrap(err, "header: X-Webhook-Token: parse") + } + } + } + return params, nil +} diff --git a/internal/test_webhooks/oas_request_decoders_gen.go b/internal/test_webhooks/oas_request_decoders_gen.go new file mode 100644 index 000000000..7a997f05c --- /dev/null +++ b/internal/test_webhooks/oas_request_decoders_gen.go @@ -0,0 +1,139 @@ +// Code generated by ogen, DO NOT EDIT. + +package api + +import ( + "io" + "mime" + "net/http" + + "github.com/go-faster/errors" + "github.com/go-faster/jx" + "go.uber.org/multierr" + + "github.com/ogen-go/ogen/validate" +) + +func (s *Server) decodePublishEventRequest(r *http.Request) ( + req OptEvent, + close func() error, + rerr error, +) { + var closers []func() error + close = func() error { + var merr error + // Close in reverse order, to match defer behavior. + for i := len(closers) - 1; i >= 0; i-- { + c := closers[i] + merr = multierr.Append(merr, c()) + } + return merr + } + defer func() { + if rerr != nil { + rerr = multierr.Append(rerr, close()) + } + }() + if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { + return req, close, nil + } + ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) + if err != nil { + return req, close, errors.Wrap(err, "parse media type") + } + switch { + case ct == "application/json": + if r.ContentLength == 0 { + return req, close, nil + } + + var request OptEvent + buf, err := io.ReadAll(r.Body) + if err != nil { + return req, close, err + } + + if len(buf) == 0 { + return req, close, nil + } + + d := jx.DecodeBytes(buf) + if err := func() error { + request.Reset() + if err := request.Decode(d); err != nil { + return err + } + return nil + }(); err != nil { + return req, close, errors.Wrap(err, "decode \"application/json\"") + } + if err := d.Skip(); err != io.EOF { + return req, close, errors.New("unexpected trailing data") + } + return request, close, nil + default: + return req, close, validate.InvalidContentType(ct) + } +} + +func (s *WebhookServer) decodeUpdateWebhookRequest(r *http.Request) ( + req OptEvent, + close func() error, + rerr error, +) { + var closers []func() error + close = func() error { + var merr error + // Close in reverse order, to match defer behavior. + for i := len(closers) - 1; i >= 0; i-- { + c := closers[i] + merr = multierr.Append(merr, c()) + } + return merr + } + defer func() { + if rerr != nil { + rerr = multierr.Append(rerr, close()) + } + }() + if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { + return req, close, nil + } + ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) + if err != nil { + return req, close, errors.Wrap(err, "parse media type") + } + switch { + case ct == "application/json": + if r.ContentLength == 0 { + return req, close, nil + } + + var request OptEvent + buf, err := io.ReadAll(r.Body) + if err != nil { + return req, close, err + } + + if len(buf) == 0 { + return req, close, nil + } + + d := jx.DecodeBytes(buf) + if err := func() error { + request.Reset() + if err := request.Decode(d); err != nil { + return err + } + return nil + }(); err != nil { + return req, close, errors.Wrap(err, "decode \"application/json\"") + } + if err := d.Skip(); err != io.EOF { + return req, close, errors.New("unexpected trailing data") + } + return request, close, nil + default: + return req, close, validate.InvalidContentType(ct) + } +} diff --git a/internal/test_webhooks/oas_request_encoders_gen.go b/internal/test_webhooks/oas_request_encoders_gen.go new file mode 100644 index 000000000..1e014251e --- /dev/null +++ b/internal/test_webhooks/oas_request_encoders_gen.go @@ -0,0 +1,52 @@ +// Code generated by ogen, DO NOT EDIT. + +package api + +import ( + "bytes" + "net/http" + + "github.com/go-faster/jx" + + ht "github.com/ogen-go/ogen/http" +) + +func encodePublishEventRequest( + req OptEvent, + r *http.Request, +) error { + const contentType = "application/json" + if !req.Set { + // Keep request with empty body if value is not set. + return nil + } + e := jx.GetEncoder() + { + if req.Set { + req.Encode(e) + } + } + encoded := e.Bytes() + ht.SetBody(r, bytes.NewReader(encoded), contentType) + return nil +} + +func encodeUpdateWebhookRequest( + req OptEvent, + r *http.Request, +) error { + const contentType = "application/json" + if !req.Set { + // Keep request with empty body if value is not set. + return nil + } + e := jx.GetEncoder() + { + if req.Set { + req.Encode(e) + } + } + encoded := e.Bytes() + ht.SetBody(r, bytes.NewReader(encoded), contentType) + return nil +} diff --git a/internal/test_webhooks/oas_response_decoders_gen.go b/internal/test_webhooks/oas_response_decoders_gen.go new file mode 100644 index 000000000..30a99c642 --- /dev/null +++ b/internal/test_webhooks/oas_response_decoders_gen.go @@ -0,0 +1,230 @@ +// Code generated by ogen, DO NOT EDIT. + +package api + +import ( + "io" + "mime" + "net/http" + + "github.com/go-faster/errors" + "github.com/go-faster/jx" + + "github.com/ogen-go/ogen/validate" +) + +func decodePublishEventResponse(resp *http.Response) (res Event, err error) { + switch resp.StatusCode { + case 200: + // Code 200. + ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type")) + if err != nil { + return res, errors.Wrap(err, "parse media type") + } + switch { + case ct == "application/json": + b, err := io.ReadAll(resp.Body) + if err != nil { + return res, err + } + + d := jx.DecodeBytes(b) + var response Event + if err := func() error { + if err := response.Decode(d); err != nil { + return err + } + return nil + }(); err != nil { + return res, errors.Wrap(err, "decode \"application/json\"") + } + if err := d.Skip(); err != io.EOF { + return res, errors.New("unexpected trailing data") + } + return response, nil + default: + return res, validate.InvalidContentType(ct) + } + } + // Convenient error response. + defRes, err := func() (res ErrorStatusCode, err error) { + ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type")) + if err != nil { + return res, errors.Wrap(err, "parse media type") + } + switch { + case ct == "application/json": + b, err := io.ReadAll(resp.Body) + if err != nil { + return res, err + } + + d := jx.DecodeBytes(b) + var response Error + if err := func() error { + if err := response.Decode(d); err != nil { + return err + } + return nil + }(); err != nil { + return res, errors.Wrap(err, "decode \"application/json\"") + } + if err := d.Skip(); err != io.EOF { + return res, errors.New("unexpected trailing data") + } + return ErrorStatusCode{ + StatusCode: resp.StatusCode, + Response: response, + }, nil + default: + return res, validate.InvalidContentType(ct) + } + }() + if err != nil { + return res, errors.Wrap(err, "default") + } + return res, errors.Wrap(&defRes, "error") +} + +func decodeStatusWebhookResponse(resp *http.Response) (res StatusWebhookOK, err error) { + switch resp.StatusCode { + case 200: + // Code 200. + ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type")) + if err != nil { + return res, errors.Wrap(err, "parse media type") + } + switch { + case ct == "application/json": + b, err := io.ReadAll(resp.Body) + if err != nil { + return res, err + } + + d := jx.DecodeBytes(b) + var response StatusWebhookOK + if err := func() error { + if err := response.Decode(d); err != nil { + return err + } + return nil + }(); err != nil { + return res, errors.Wrap(err, "decode \"application/json\"") + } + if err := d.Skip(); err != io.EOF { + return res, errors.New("unexpected trailing data") + } + return response, nil + default: + return res, validate.InvalidContentType(ct) + } + } + return res, validate.UnexpectedStatusCode(resp.StatusCode) +} + +func decodeUpdateDeleteResponse(resp *http.Response) (res UpdateDeleteRes, err error) { + switch resp.StatusCode { + case 200: + // Code 200. + return &UpdateDeleteOK{}, nil + } + // Default response. + ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type")) + if err != nil { + return res, errors.Wrap(err, "parse media type") + } + switch { + case ct == "application/json": + b, err := io.ReadAll(resp.Body) + if err != nil { + return res, err + } + + d := jx.DecodeBytes(b) + var response Error + if err := func() error { + if err := response.Decode(d); err != nil { + return err + } + return nil + }(); err != nil { + return res, errors.Wrap(err, "decode \"application/json\"") + } + if err := d.Skip(); err != io.EOF { + return res, errors.New("unexpected trailing data") + } + return &ErrorStatusCode{ + StatusCode: resp.StatusCode, + Response: response, + }, nil + default: + return res, validate.InvalidContentType(ct) + } +} + +func decodeUpdateWebhookResponse(resp *http.Response) (res UpdateWebhookRes, err error) { + switch resp.StatusCode { + case 200: + // Code 200. + ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type")) + if err != nil { + return res, errors.Wrap(err, "parse media type") + } + switch { + case ct == "application/json": + b, err := io.ReadAll(resp.Body) + if err != nil { + return res, err + } + + d := jx.DecodeBytes(b) + var response WebhookResponse + if err := func() error { + if err := response.Decode(d); err != nil { + return err + } + return nil + }(); err != nil { + return res, errors.Wrap(err, "decode \"application/json\"") + } + if err := d.Skip(); err != io.EOF { + return res, errors.New("unexpected trailing data") + } + return &response, nil + default: + return res, validate.InvalidContentType(ct) + } + } + // Default response. + ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type")) + if err != nil { + return res, errors.Wrap(err, "parse media type") + } + switch { + case ct == "application/json": + b, err := io.ReadAll(resp.Body) + if err != nil { + return res, err + } + + d := jx.DecodeBytes(b) + var response Error + if err := func() error { + if err := response.Decode(d); err != nil { + return err + } + return nil + }(); err != nil { + return res, errors.Wrap(err, "decode \"application/json\"") + } + if err := d.Skip(); err != io.EOF { + return res, errors.New("unexpected trailing data") + } + return &ErrorStatusCode{ + StatusCode: resp.StatusCode, + Response: response, + }, nil + default: + return res, validate.InvalidContentType(ct) + } +} diff --git a/internal/test_webhooks/oas_response_encoders_gen.go b/internal/test_webhooks/oas_response_encoders_gen.go new file mode 100644 index 000000000..36443dca7 --- /dev/null +++ b/internal/test_webhooks/oas_response_encoders_gen.go @@ -0,0 +1,138 @@ +// Code generated by ogen, DO NOT EDIT. + +package api + +import ( + "net/http" + + "github.com/go-faster/errors" + "github.com/go-faster/jx" + "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/trace" +) + +func encodePublishEventResponse(response Event, w http.ResponseWriter, span trace.Span) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + span.SetStatus(codes.Ok, http.StatusText(200)) + e := jx.GetEncoder() + + response.Encode(e) + if _, err := e.WriteTo(w); err != nil { + return errors.Wrap(err, "write") + } + return nil + +} + +func encodeErrorResponse(response ErrorStatusCode, w http.ResponseWriter, span trace.Span) error { + w.Header().Set("Content-Type", "application/json") + code := response.StatusCode + if code == 0 { + // Set default status code. + code = http.StatusOK + } + w.WriteHeader(code) + st := http.StatusText(code) + if code >= http.StatusBadRequest { + span.SetStatus(codes.Error, st) + } else { + span.SetStatus(codes.Ok, st) + } + e := jx.GetEncoder() + + response.Response.Encode(e) + if _, err := e.WriteTo(w); err != nil { + return errors.Wrap(err, "write") + } + return nil + +} +func encodeStatusWebhookResponse(response StatusWebhookOK, w http.ResponseWriter, span trace.Span) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + span.SetStatus(codes.Ok, http.StatusText(200)) + e := jx.GetEncoder() + + response.Encode(e) + if _, err := e.WriteTo(w); err != nil { + return errors.Wrap(err, "write") + } + return nil + +} + +func encodeUpdateDeleteResponse(response UpdateDeleteRes, w http.ResponseWriter, span trace.Span) error { + switch response := response.(type) { + case *UpdateDeleteOK: + w.WriteHeader(200) + span.SetStatus(codes.Ok, http.StatusText(200)) + return nil + + case *ErrorStatusCode: + w.Header().Set("Content-Type", "application/json") + code := response.StatusCode + if code == 0 { + // Set default status code. + code = http.StatusOK + } + w.WriteHeader(code) + st := http.StatusText(code) + if code >= http.StatusBadRequest { + span.SetStatus(codes.Error, st) + } else { + span.SetStatus(codes.Ok, st) + } + e := jx.GetEncoder() + + response.Response.Encode(e) + if _, err := e.WriteTo(w); err != nil { + return errors.Wrap(err, "write") + } + return nil + + default: + return errors.Errorf("unexpected response type: %T", response) + } +} + +func encodeUpdateWebhookResponse(response UpdateWebhookRes, w http.ResponseWriter, span trace.Span) error { + switch response := response.(type) { + case *WebhookResponse: + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + span.SetStatus(codes.Ok, http.StatusText(200)) + e := jx.GetEncoder() + + response.Encode(e) + if _, err := e.WriteTo(w); err != nil { + return errors.Wrap(err, "write") + } + return nil + + case *ErrorStatusCode: + w.Header().Set("Content-Type", "application/json") + code := response.StatusCode + if code == 0 { + // Set default status code. + code = http.StatusOK + } + w.WriteHeader(code) + st := http.StatusText(code) + if code >= http.StatusBadRequest { + span.SetStatus(codes.Error, st) + } else { + span.SetStatus(codes.Ok, st) + } + e := jx.GetEncoder() + + response.Response.Encode(e) + if _, err := e.WriteTo(w); err != nil { + return errors.Wrap(err, "write") + } + return nil + + default: + return errors.Errorf("unexpected response type: %T", response) + } +} diff --git a/internal/test_webhooks/oas_router_gen.go b/internal/test_webhooks/oas_router_gen.go new file mode 100644 index 000000000..a751a356a --- /dev/null +++ b/internal/test_webhooks/oas_router_gen.go @@ -0,0 +1,179 @@ +// Code generated by ogen, DO NOT EDIT. + +package api + +import ( + "net/http" + "strings" +) + +// ServeHTTP serves http request as defined by OpenAPI v3 specification, +// calling handler that matches the path or returning not found error. +func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { + elem := r.URL.Path + if prefix := s.cfg.Prefix; len(prefix) > 0 { + if strings.HasPrefix(elem, prefix) { + // Cut prefix from the path. + elem = strings.TrimPrefix(elem, prefix) + } else { + // Prefix doesn't match. + s.notFound(w, r) + return + } + } + if len(elem) == 0 { + s.notFound(w, r) + return + } + + // Static code generated router with unwrapped path search. + switch { + default: + if len(elem) == 0 { + break + } + switch elem[0] { + case '/': // Prefix: "/event" + if l := len("/event"); len(elem) >= l && elem[0:l] == "/event" { + elem = elem[l:] + } else { + break + } + + if len(elem) == 0 { + // Leaf node. + switch r.Method { + case "POST": + s.handlePublishEventRequest([0]string{}, w, r) + default: + s.notAllowed(w, r, "POST") + } + + return + } + } + } + s.notFound(w, r) +} + +// Route is route object. +type Route struct { + name string + operationID string + count int + args [0]string +} + +// Name returns ogen operation name. +// +// It is guaranteed to be unique and not empty. +func (r Route) Name() string { + return r.name +} + +// OperationID returns OpenAPI operationId. +func (r Route) OperationID() string { + return r.operationID +} + +// Args returns parsed arguments. +func (r Route) Args() []string { + return r.args[:r.count] +} + +// FindRoute finds Route for given method and path. +func (s *Server) FindRoute(method, path string) (r Route, _ bool) { + var ( + args = [0]string{} + elem = path + ) + r.args = args + if elem == "" { + return r, false + } + + // Static code generated router with unwrapped path search. + switch { + default: + if len(elem) == 0 { + break + } + switch elem[0] { + case '/': // Prefix: "/event" + if l := len("/event"); len(elem) >= l && elem[0:l] == "/event" { + elem = elem[l:] + } else { + break + } + + if len(elem) == 0 { + switch method { + case "POST": + // Leaf: PublishEvent + r.name = "PublishEvent" + r.operationID = "publishEvent" + r.args = args + r.count = 0 + return r, true + default: + return + } + } + } + } + return r, false +} + +// Handle handles webhook request. +// +// Returns true if there is a webhook handler for given name and requested method. +func (s *WebhookServer) Handle(webhookName string, w http.ResponseWriter, r *http.Request) bool { + switch webhookName { + case "status": + switch r.Method { + case "GET": + s.handleStatusWebhookRequest([0]string{}, w, r) + default: + return false + } + return true + case "update": + switch r.Method { + case "DELETE": + s.handleUpdateDeleteRequest([0]string{}, w, r) + case "POST": + s.handleUpdateWebhookRequest([0]string{}, w, r) + default: + return false + } + return true + default: + return false + } +} + +// Handler returns http.Handler for webhook. +// +// Returns NotFound handler if spec doesn't contain webhook with given name. +// +// Returned handler calls MethodNotAllowed handler if webhook doesn't define requested method. +func (s *WebhookServer) Handler(webhookName string) http.Handler { + switch webhookName { + case "status": + return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + // We know that webhook exists, so false means wrong method. + if !s.Handle(webhookName, w, r) { + s.notAllowed(w, r, "GET") + } + }) + case "update": + return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + // We know that webhook exists, so false means wrong method. + if !s.Handle(webhookName, w, r) { + s.notAllowed(w, r, "DELETE,POST") + } + }) + default: + return http.HandlerFunc(s.notFound) + } +} diff --git a/internal/test_webhooks/oas_schemas_gen.go b/internal/test_webhooks/oas_schemas_gen.go new file mode 100644 index 000000000..31a4accda --- /dev/null +++ b/internal/test_webhooks/oas_schemas_gen.go @@ -0,0 +1,222 @@ +// Code generated by ogen, DO NOT EDIT. + +package api + +import ( + "fmt" + + "github.com/google/uuid" +) + +func (s *ErrorStatusCode) Error() string { + return fmt.Sprintf("code %d: %+v", s.StatusCode, s.Response) +} + +// Ref: #/components/schemas/Error +type Error struct { + Error string `json:"error"` +} + +// GetError returns the value of Error. +func (s Error) GetError() string { + return s.Error +} + +// SetError sets the value of Error. +func (s *Error) SetError(val string) { + s.Error = val +} + +// ErrorStatusCode wraps Error with StatusCode. +type ErrorStatusCode struct { + StatusCode int + Response Error +} + +// GetStatusCode returns the value of StatusCode. +func (s ErrorStatusCode) GetStatusCode() int { + return s.StatusCode +} + +// GetResponse returns the value of Response. +func (s ErrorStatusCode) GetResponse() Error { + return s.Response +} + +// SetStatusCode sets the value of StatusCode. +func (s *ErrorStatusCode) SetStatusCode(val int) { + s.StatusCode = val +} + +// SetResponse sets the value of Response. +func (s *ErrorStatusCode) SetResponse(val Error) { + s.Response = val +} + +func (*ErrorStatusCode) updateDeleteRes() {} +func (*ErrorStatusCode) updateWebhookRes() {} + +// Ref: #/components/schemas/Event +type Event struct { + ID uuid.UUID `json:"id"` + Message string `json:"message"` +} + +// GetID returns the value of ID. +func (s Event) GetID() uuid.UUID { + return s.ID +} + +// GetMessage returns the value of Message. +func (s Event) GetMessage() string { + return s.Message +} + +// SetID sets the value of ID. +func (s *Event) SetID(val uuid.UUID) { + s.ID = val +} + +// SetMessage sets the value of Message. +func (s *Event) SetMessage(val string) { + s.Message = val +} + +// NewOptEvent returns new OptEvent with value set to v. +func NewOptEvent(v Event) OptEvent { + return OptEvent{ + Value: v, + Set: true, + } +} + +// OptEvent is optional Event. +type OptEvent struct { + Value Event + Set bool +} + +// IsSet returns true if OptEvent was set. +func (o OptEvent) IsSet() bool { return o.Set } + +// Reset unsets value. +func (o *OptEvent) Reset() { + var v Event + o.Value = v + o.Set = false +} + +// SetTo sets value to v. +func (o *OptEvent) SetTo(v Event) { + o.Set = true + o.Value = v +} + +// Get returns value and boolean that denotes whether value was set. +func (o OptEvent) Get() (v Event, ok bool) { + if !o.Set { + return v, false + } + return o.Value, true +} + +// Or returns value if set, or given parameter if does not. +func (o OptEvent) Or(d Event) Event { + if v, ok := o.Get(); ok { + return v + } + return d +} + +// NewOptString returns new OptString with value set to v. +func NewOptString(v string) OptString { + return OptString{ + Value: v, + Set: true, + } +} + +// OptString is optional string. +type OptString struct { + Value string + Set bool +} + +// IsSet returns true if OptString was set. +func (o OptString) IsSet() bool { return o.Set } + +// Reset unsets value. +func (o *OptString) Reset() { + var v string + o.Value = v + o.Set = false +} + +// SetTo sets value to v. +func (o *OptString) SetTo(v string) { + o.Set = true + o.Value = v +} + +// Get returns value and boolean that denotes whether value was set. +func (o OptString) Get() (v string, ok bool) { + if !o.Set { + return v, false + } + return o.Value, true +} + +// Or returns value if set, or given parameter if does not. +func (o OptString) Or(d string) string { + if v, ok := o.Get(); ok { + return v + } + return d +} + +type StatusWebhookOK struct { + Status OptString `json:"status"` +} + +// GetStatus returns the value of Status. +func (s StatusWebhookOK) GetStatus() OptString { + return s.Status +} + +// SetStatus sets the value of Status. +func (s *StatusWebhookOK) SetStatus(val OptString) { + s.Status = val +} + +// UpdateDeleteOK is response for UpdateDelete operation. +type UpdateDeleteOK struct{} + +func (*UpdateDeleteOK) updateDeleteRes() {} + +// Ref: #/components/schemas/WebhookResponse +type WebhookResponse struct { + ID uuid.UUID `json:"id"` + EventType OptString `json:"event_type"` +} + +// GetID returns the value of ID. +func (s WebhookResponse) GetID() uuid.UUID { + return s.ID +} + +// GetEventType returns the value of EventType. +func (s WebhookResponse) GetEventType() OptString { + return s.EventType +} + +// SetID sets the value of ID. +func (s *WebhookResponse) SetID(val uuid.UUID) { + s.ID = val +} + +// SetEventType sets the value of EventType. +func (s *WebhookResponse) SetEventType(val OptString) { + s.EventType = val +} + +func (*WebhookResponse) updateWebhookRes() {} diff --git a/internal/test_webhooks/oas_server_gen.go b/internal/test_webhooks/oas_server_gen.go new file mode 100644 index 000000000..b2eec1ecf --- /dev/null +++ b/internal/test_webhooks/oas_server_gen.go @@ -0,0 +1,70 @@ +// Code generated by ogen, DO NOT EDIT. + +package api + +import ( + "context" +) + +// Handler handles operations described by OpenAPI v3 specification. +type Handler interface { + // PublishEvent implements publishEvent operation. + // + // POST /event + PublishEvent(ctx context.Context, req OptEvent) (Event, error) + // NewError creates ErrorStatusCode from error returned by handler. + // + // Used for common default response. + NewError(ctx context.Context, err error) ErrorStatusCode +} + +// Server implements http server based on OpenAPI v3 specification and +// calls Handler to handle requests. +type Server struct { + h Handler + baseServer +} + +// NewServer creates new Server. +func NewServer(h Handler, opts ...Option) (*Server, error) { + s, err := newConfig(opts...).baseServer() + if err != nil { + return nil, err + } + return &Server{ + h: h, + baseServer: s, + }, nil +} + +// WebhookHandler handles webhooks described by OpenAPI v3 specification. +type WebhookHandler interface { + // StatusWebhook implements statusWebhook operation. + // + StatusWebhook(ctx context.Context) (StatusWebhookOK, error) + // UpdateDelete implements DELETE update operation. + // + UpdateDelete(ctx context.Context) (UpdateDeleteRes, error) + // UpdateWebhook implements updateWebhook operation. + // + UpdateWebhook(ctx context.Context, req OptEvent, params UpdateWebhookParams) (UpdateWebhookRes, error) +} + +// WebhookServer implements http server based on OpenAPI v3 specification and +// calls WebhookHandler to handle requests. +type WebhookServer struct { + h WebhookHandler + baseServer +} + +// NewWebhookServer creates new WebhookServer. +func NewWebhookServer(h WebhookHandler, opts ...Option) (*WebhookServer, error) { + s, err := newConfig(opts...).baseServer() + if err != nil { + return nil, err + } + return &WebhookServer{ + h: h, + baseServer: s, + }, nil +} diff --git a/internal/test_webhooks/oas_unimplemented_gen.go b/internal/test_webhooks/oas_unimplemented_gen.go new file mode 100644 index 000000000..bc3765f21 --- /dev/null +++ b/internal/test_webhooks/oas_unimplemented_gen.go @@ -0,0 +1,45 @@ +// Code generated by ogen, DO NOT EDIT. + +package api + +import ( + "context" + + ht "github.com/ogen-go/ogen/http" +) + +// UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented. +type UnimplementedHandler struct{} + +var _ Handler = UnimplementedHandler{} + +// PublishEvent implements publishEvent operation. +// +// POST /event +func (UnimplementedHandler) PublishEvent(ctx context.Context, req OptEvent) (r Event, _ error) { + return r, ht.ErrNotImplemented +} + +// NewError creates ErrorStatusCode from error returned by handler. +// +// Used for common default response. +func (UnimplementedHandler) NewError(ctx context.Context, err error) (r ErrorStatusCode) { + return r +} + +var _ WebhookHandler = UnimplementedHandler{} + +// StatusWebhook implements statusWebhook operation. +func (UnimplementedHandler) StatusWebhook(ctx context.Context) (r StatusWebhookOK, _ error) { + return r, ht.ErrNotImplemented +} + +// UpdateDelete implements DELETE update operation. +func (UnimplementedHandler) UpdateDelete(ctx context.Context) (r UpdateDeleteRes, _ error) { + return r, ht.ErrNotImplemented +} + +// UpdateWebhook implements updateWebhook operation. +func (UnimplementedHandler) UpdateWebhook(ctx context.Context, req OptEvent, params UpdateWebhookParams) (r UpdateWebhookRes, _ error) { + return r, ht.ErrNotImplemented +} From 7fdceaf1dbe23b2b700bd1edaaaaf5740a48d715 Mon Sep 17 00:00:00 2001 From: tdakkota Date: Fri, 14 Oct 2022 01:35:13 +0300 Subject: [PATCH 14/14] docs(roadmap): mark webhooks feature as implemented --- ROADMAP.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ROADMAP.md b/ROADMAP.md index d78a2a8a1..4007ca143 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -23,8 +23,9 @@ - [ ] OpenID Connect - [ ] HTTP Digest - [ ] Other (?) -- [ ] Webhooks -- [ ] Links (?) +- [x] Webhooks +- [ ] Callbacks + - [ ] Links (?) - [ ] Documentation - [ ] Handle Common Mark in description (#142)